diff --git a/.vs/WinformGeneralDeveloperFrame/v16/.suo b/.vs/WinformGeneralDeveloperFrame/v16/.suo index c963997..408f865 100644 Binary files a/.vs/WinformGeneralDeveloperFrame/v16/.suo and b/.vs/WinformGeneralDeveloperFrame/v16/.suo differ diff --git a/WinformGeneralDeveloperFrame/DB/MESDB.cs b/WinformGeneralDeveloperFrame/DB/MESDB.cs index 20696d6..681c631 100644 --- a/WinformGeneralDeveloperFrame/DB/MESDB.cs +++ b/WinformGeneralDeveloperFrame/DB/MESDB.cs @@ -17,5 +17,7 @@ namespace MES public virtual DbSet sysUserInfo { get; set; } public virtual DbSet sysDictDataInfo { get; set; } public virtual DbSet sysDictTypeInfo { get; set; } + + public virtual DbSet stockInfo { get; set; } } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/stockInfo.cs b/WinformGeneralDeveloperFrame/Entity/stockInfo.cs new file mode 100644 index 0000000..6238ab2 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Entity/stockInfo.cs @@ -0,0 +1,82 @@ +using WinformGeneralDeveloperFrame.Commons; + +namespace MES.Entity +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.ComponentModel.DataAnnotations.Schema; + using System.Data.Entity.Spatial; + + [Table("stock")] + public partial class stockInfo + { + [Key] + [NoEdit("txtcode")] + [ModelBindControl("txtcode")] + public string code{set;get;} + [ModelBindControl("txtname")] + public string name{set;get;} + [ModelBindControl("txtstartPrice")] + public decimal startPrice{set;get;} + [ModelBindControl("txtolePrice")] + public decimal olePrice{set;get;} + [ModelBindControl("txtnowPrice")] + public decimal nowPrice{set;get;} + [ModelBindControl("txtmaxPrice")] + public decimal maxPrice{set;get;} + [ModelBindControl("txtminPrice")] + public decimal minPrice{set;get;} + [ModelBindControl("txtbidderPrice")] + public decimal bidderPrice{set;get;} + [ModelBindControl("txtauctionPrice")] + public decimal auctionPrice{set;get;} + [ModelBindControl("txtturnover")] + public int turnover{set;get;} + [ModelBindControl("txtturnoverPrice")] + public decimal turnoverPrice{set;get;} + [ModelBindControl("txtbuyOneNum")] + public int buyOneNum{set;get;} + [ModelBindControl("txtbuyOnePrice")] + public decimal buyOnePrice{set;get;} + [ModelBindControl("txtbuyTwoNum")] + public int buyTwoNum{set;get;} + [ModelBindControl("txtbuyTwoPrice")] + public decimal buyTwoPrice{set;get;} + [ModelBindControl("txtbuyThreeNum")] + public int buyThreeNum{set;get;} + [ModelBindControl("txtbuyThreePrice")] + public decimal buyThreePrice{set;get;} + [ModelBindControl("txtbuyFourNum")] + public int buyFourNum{set;get;} + [ModelBindControl("txtbuyFourPrice")] + public decimal buyFourPrice{set;get;} + [ModelBindControl("txtbuyFiveNum")] + public int buyFiveNum{set;get;} + [ModelBindControl("txtbuyFivePrice")] + public decimal buyFivePrice{set;get;} + [ModelBindControl("txtsellOneNum")] + public int sellOneNum{set;get;} + [ModelBindControl("txtsellOnePrice")] + public decimal sellOnePrice{set;get;} + [ModelBindControl("txtsellTwoNum")] + public int sellTwoNum{set;get;} + [ModelBindControl("txtsellTwoPrice")] + public decimal sellTwoPrice{set;get;} + [ModelBindControl("txtsellThreeNum")] + public int sellThreeNum{set;get;} + [ModelBindControl("txtsellThreePrice")] + public decimal sellThreePrice{set;get;} + [ModelBindControl("txtsellFourNum")] + public int sellFourNum{set;get;} + [ModelBindControl("txtsellFourPrice")] + public decimal sellFourPrice{set;get;} + [ModelBindControl("txtsellFiveNum")] + public int sellFiveNum{set;get;} + [ModelBindControl("txtsellFivePrice")] + public decimal sellFivePrice{set;get;} + [ModelBindControl("txttimeStr")] + public DateTime? timeStr{set;get;}=DateTime.Now; + + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/sysMenuInfo.cs b/WinformGeneralDeveloperFrame/Entity/sysMenuInfo.cs index cb4dc83..d6f3846 100644 --- a/WinformGeneralDeveloperFrame/Entity/sysMenuInfo.cs +++ b/WinformGeneralDeveloperFrame/Entity/sysMenuInfo.cs @@ -37,6 +37,8 @@ namespace MES.Entity public DateTime? editTime{set;get;}=DateTime.Now; [ModelBindControl("txtisForm")] public bool isForm{set;get;} - + [ModelBindControl("txtisToolBtn")] + public bool isToolBtn { set; get; } + } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmstock.cs b/WinformGeneralDeveloperFrame/Form/Frmstock.cs new file mode 100644 index 0000000..7718560 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmstock.cs @@ -0,0 +1,331 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; +using WinformGeneralDeveloperFrame; +using WinformGeneralDeveloperFrame.Commons; +using DevExpress.XtraLayout; +using MES.Entity; +using System.Data.Entity.Migrations; +using System.Data.Entity; +namespace MES.Form +{ + public partial class Frmstock : FrmBaseForm + { + private Dictionary fieldDictionary = new Dictionary(); + public Frmstock() + { + InitializeComponent(); + } + private void Frmstock_Load(object sender, EventArgs e) + { + + InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new stockInfo()); + InitSearchDicData(); + } + /// + /// 数据源初始化 + /// + /// + private void Init() + { + + + + + + + } + /// + /// 搜索字段 + /// + /// + private void InitSearchDicData() + { + fieldDictionary.Add("代码","code"); + fieldDictionary.Add("名称","name"); + fieldDictionary.Add("时间","timeStr"); + } + /// + /// 保存 + /// + /// + public override bool SaveFunction() + { + try + { + stockInfo info= (stockInfo)this.ControlDataToModel(new stockInfo()); + using (var db = new MESDB()) + { + db.stockInfo.AddOrUpdate(info); + db.SaveChanges(); + } + } + catch (Exception ex) + { + ex.Message.ShowError(); + return false; + } + return true; + } + public override void InitgrdListDataSource() + { + using (var con=new MESDB())/// + { + grdList.DataSource=con.stockInfo.ToList(); + } + Init(); + } + /// + /// 字段为空校验 + /// + /// + public override bool CheckInput() + { + if(string.IsNullOrEmpty(txtname.EditValue.ToString())) + { + "名称不能为空".ShowWarning(); + txtname.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtstartPrice.EditValue.ToString())) + { + "今日开盘价不能为空".ShowWarning(); + txtstartPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtolePrice.EditValue.ToString())) + { + "昨日收盘价不能为空".ShowWarning(); + txtolePrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtnowPrice.EditValue.ToString())) + { + "当前价格不能为空".ShowWarning(); + txtnowPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtmaxPrice.EditValue.ToString())) + { + "今日最高价不能为空".ShowWarning(); + txtmaxPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtminPrice.EditValue.ToString())) + { + "今日最低价不能为空".ShowWarning(); + txtminPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbidderPrice.EditValue.ToString())) + { + "竞买价不能为空".ShowWarning(); + txtbidderPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtauctionPrice.EditValue.ToString())) + { + "竞卖价不能为空".ShowWarning(); + txtauctionPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtturnover.EditValue.ToString())) + { + "成交股票数不能为空".ShowWarning(); + txtturnover.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtturnoverPrice.EditValue.ToString())) + { + "成交金额不能为空".ShowWarning(); + txtturnoverPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbuyOneNum.EditValue.ToString())) + { + "买1数量不能为空".ShowWarning(); + txtbuyOneNum.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbuyOnePrice.EditValue.ToString())) + { + "买1价格不能为空".ShowWarning(); + txtbuyOnePrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbuyTwoNum.EditValue.ToString())) + { + "买2数量不能为空".ShowWarning(); + txtbuyTwoNum.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbuyTwoPrice.EditValue.ToString())) + { + "买2价格不能为空".ShowWarning(); + txtbuyTwoPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbuyThreeNum.EditValue.ToString())) + { + "买3数量不能为空".ShowWarning(); + txtbuyThreeNum.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbuyThreePrice.EditValue.ToString())) + { + "买3价格不能为空".ShowWarning(); + txtbuyThreePrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbuyFourNum.EditValue.ToString())) + { + "买4数量不能为空".ShowWarning(); + txtbuyFourNum.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbuyFourPrice.EditValue.ToString())) + { + "买4价格不能为空".ShowWarning(); + txtbuyFourPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbuyFiveNum.EditValue.ToString())) + { + "买5数量不能为空".ShowWarning(); + txtbuyFiveNum.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbuyFivePrice.EditValue.ToString())) + { + "买5价格不能为空".ShowWarning(); + txtbuyFivePrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsellOneNum.EditValue.ToString())) + { + "卖1数量不能为空".ShowWarning(); + txtsellOneNum.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsellOnePrice.EditValue.ToString())) + { + "卖1价格不能为空".ShowWarning(); + txtsellOnePrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsellTwoNum.EditValue.ToString())) + { + "卖2数量不能为空".ShowWarning(); + txtsellTwoNum.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsellTwoPrice.EditValue.ToString())) + { + "卖2价格不能为空".ShowWarning(); + txtsellTwoPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsellThreeNum.EditValue.ToString())) + { + "卖3数量不能为空".ShowWarning(); + txtsellThreeNum.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsellThreePrice.EditValue.ToString())) + { + "卖3价格不能为空".ShowWarning(); + txtsellThreePrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsellFourNum.EditValue.ToString())) + { + "卖4数量不能为空".ShowWarning(); + txtsellFourNum.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsellFourPrice.EditValue.ToString())) + { + "卖4价格不能为空".ShowWarning(); + txtsellFourPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsellFiveNum.EditValue.ToString())) + { + "卖5数量不能为空".ShowWarning(); + txtsellFiveNum.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsellFivePrice.EditValue.ToString())) + { + "卖5价格不能为空".ShowWarning(); + txtsellFivePrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txttimeStr.EditValue.ToString())) + { + "时间不能为空".ShowWarning(); + txttimeStr.Focus(); + return false; + } + return true; + } + /// + /// 删除 + /// + /// + public override bool DelFunction() + { + try + { + stockInfo info = (stockInfo)this.ControlDataToModel(new stockInfo()); + using (var db = new MESDB()) + { + db.Entry(info).State=EntityState.Deleted; + db.SaveChanges(); + } + } + catch (Exception ex) + { + ex.Message.ShowError(); + return false; + } + return true; + } + /// + /// 搜索 + /// + /// + public override void SearchFunction() + { + FrmSearch frm = new FrmSearch(fieldDictionary); + if (frm.ShowDialog()==DialogResult.OK) + { + string sql = frm.sql; + using (var db = new MESDB()) + { + if (string.IsNullOrEmpty(sql)) + { + grdList.DataSource = db.stockInfo.SqlQuery("select * from stock").ToList(); + } + else + { + grdList.DataSource = db.stockInfo.SqlQuery($"select * from stock where {sql}").ToList(); + } + } + } + } + + private void timer1_Tick(object sender, EventArgs e) + { + using (var con = new MESDB()) + { + grdList.DataSource = con.stockInfo.ToList().OrderByDescending(p=>p.turnoverPrice); + } + } + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmstock.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmstock.designer.cs new file mode 100644 index 0000000..755081a --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmstock.designer.cs @@ -0,0 +1,1501 @@ + +using DevExpress.XtraEditors; +using DevExpress.XtraLayout; +using DevExpress.XtraTab; + +namespace MES.Form +{ + partial class Frmstock + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn9 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn10 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn11 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn13 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn14 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn15 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn16 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn17 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn18 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn19 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn20 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn21 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn22 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn23 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn24 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn25 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn26 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn27 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn28 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn29 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn30 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn31 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn32 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); + this.tabDataList = new DevExpress.XtraTab.XtraTabPage(); + this.grdList = new DevExpress.XtraGrid.GridControl(); + this.grdListView = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.tabDataDetail = new DevExpress.XtraTab.XtraTabPage(); + this.panelControl2 = new DevExpress.XtraEditors.PanelControl(); + this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); + this.txtcode = new DevExpress.XtraEditors.TextEdit(); + this.txtname = new DevExpress.XtraEditors.TextEdit(); + this.txtstartPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtolePrice = new DevExpress.XtraEditors.TextEdit(); + this.txtnowPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtmaxPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtminPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtbidderPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtauctionPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtturnover = new DevExpress.XtraEditors.TextEdit(); + this.txtturnoverPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyOneNum = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyOnePrice = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyTwoNum = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyTwoPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyThreeNum = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyThreePrice = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyFourNum = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyFourPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyFiveNum = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyFivePrice = new DevExpress.XtraEditors.TextEdit(); + this.txtsellOneNum = new DevExpress.XtraEditors.TextEdit(); + this.txtsellOnePrice = new DevExpress.XtraEditors.TextEdit(); + this.txtsellTwoNum = new DevExpress.XtraEditors.TextEdit(); + this.txtsellTwoPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtsellThreeNum = new DevExpress.XtraEditors.TextEdit(); + this.txtsellThreePrice = new DevExpress.XtraEditors.TextEdit(); + this.txtsellFourNum = new DevExpress.XtraEditors.TextEdit(); + this.txtsellFourPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtsellFiveNum = new DevExpress.XtraEditors.TextEdit(); + this.txtsellFivePrice = new DevExpress.XtraEditors.TextEdit(); + this.txttimeStr = new DevExpress.XtraEditors.DateEdit(); + this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); + this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem16 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem18 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem20 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem22 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem24 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem26 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem28 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem30 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem32 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem17 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem19 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem21 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem23 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem25 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem27 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem29 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem31 = new DevExpress.XtraLayout.LayoutControlItem(); + this.timer1 = new System.Windows.Forms.Timer(this.components); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); + this.xtraTabControl1.SuspendLayout(); + this.tabDataList.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.grdList)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.grdListView)).BeginInit(); + this.tabDataDetail.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit(); + this.panelControl2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); + this.layoutControl1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txtcode.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtname.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtstartPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtolePrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtnowPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtmaxPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtminPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbidderPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtauctionPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtturnover.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtturnoverPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyOneNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyOnePrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyTwoNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyTwoPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyThreeNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyThreePrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFourNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFourPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFiveNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFivePrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellOneNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellOnePrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellTwoNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellTwoPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellThreeNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellThreePrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellFourNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellFourPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellFiveNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellFivePrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttimeStr.Properties.CalendarTimeProperties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttimeStr.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem20)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem22)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem24)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem26)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem28)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem30)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem32)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem19)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem21)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem23)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem25)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem27)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem29)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem31)).BeginInit(); + this.SuspendLayout(); + // + // gridColumn1 + // + this.gridColumn1.Caption = "代码"; + this.gridColumn1.FieldName = "code"; + this.gridColumn1.Name = "gridColumn1"; + this.gridColumn1.Visible = true; + this.gridColumn1.VisibleIndex = 0; + this.gridColumn1.Width = 201; + // + // gridColumn2 + // + this.gridColumn2.Caption = "名称"; + this.gridColumn2.FieldName = "name"; + this.gridColumn2.Name = "gridColumn2"; + this.gridColumn2.Visible = true; + this.gridColumn2.VisibleIndex = 1; + this.gridColumn2.Width = 201; + // + // gridColumn3 + // + this.gridColumn3.Caption = "今日开盘价"; + this.gridColumn3.FieldName = "startPrice"; + this.gridColumn3.Name = "gridColumn3"; + this.gridColumn3.Visible = true; + this.gridColumn3.VisibleIndex = 2; + this.gridColumn3.Width = 201; + // + // gridColumn4 + // + this.gridColumn4.Caption = "昨日收盘价"; + this.gridColumn4.FieldName = "olePrice"; + this.gridColumn4.Name = "gridColumn4"; + this.gridColumn4.Visible = true; + this.gridColumn4.VisibleIndex = 3; + this.gridColumn4.Width = 201; + // + // gridColumn5 + // + this.gridColumn5.Caption = "当前价格"; + this.gridColumn5.FieldName = "nowPrice"; + this.gridColumn5.Name = "gridColumn5"; + this.gridColumn5.Visible = true; + this.gridColumn5.VisibleIndex = 4; + this.gridColumn5.Width = 201; + // + // gridColumn6 + // + this.gridColumn6.Caption = "今日最高价"; + this.gridColumn6.FieldName = "maxPrice"; + this.gridColumn6.Name = "gridColumn6"; + this.gridColumn6.Visible = true; + this.gridColumn6.VisibleIndex = 5; + this.gridColumn6.Width = 201; + // + // gridColumn7 + // + this.gridColumn7.Caption = "今日最低价"; + this.gridColumn7.FieldName = "minPrice"; + this.gridColumn7.Name = "gridColumn7"; + this.gridColumn7.Visible = true; + this.gridColumn7.VisibleIndex = 6; + this.gridColumn7.Width = 201; + // + // gridColumn8 + // + this.gridColumn8.Caption = "竞买价"; + this.gridColumn8.FieldName = "bidderPrice"; + this.gridColumn8.Name = "gridColumn8"; + this.gridColumn8.Visible = true; + this.gridColumn8.VisibleIndex = 7; + this.gridColumn8.Width = 201; + // + // gridColumn9 + // + this.gridColumn9.Caption = "竞卖价"; + this.gridColumn9.FieldName = "auctionPrice"; + this.gridColumn9.Name = "gridColumn9"; + this.gridColumn9.Visible = true; + this.gridColumn9.VisibleIndex = 8; + this.gridColumn9.Width = 201; + // + // gridColumn10 + // + this.gridColumn10.Caption = "成交股票数"; + this.gridColumn10.FieldName = "turnover"; + this.gridColumn10.Name = "gridColumn10"; + this.gridColumn10.Visible = true; + this.gridColumn10.VisibleIndex = 9; + this.gridColumn10.Width = 201; + // + // gridColumn11 + // + this.gridColumn11.Caption = "成交金额"; + this.gridColumn11.FieldName = "turnoverPrice"; + this.gridColumn11.Name = "gridColumn11"; + this.gridColumn11.Visible = true; + this.gridColumn11.VisibleIndex = 10; + this.gridColumn11.Width = 201; + // + // gridColumn12 + // + this.gridColumn12.Caption = "买1数量"; + this.gridColumn12.FieldName = "buyOneNum"; + this.gridColumn12.Name = "gridColumn12"; + this.gridColumn12.Visible = true; + this.gridColumn12.VisibleIndex = 11; + this.gridColumn12.Width = 201; + // + // gridColumn13 + // + this.gridColumn13.Caption = "买1价格"; + this.gridColumn13.FieldName = "buyOnePrice"; + this.gridColumn13.Name = "gridColumn13"; + this.gridColumn13.Visible = true; + this.gridColumn13.VisibleIndex = 12; + this.gridColumn13.Width = 201; + // + // gridColumn14 + // + this.gridColumn14.Caption = "买2数量"; + this.gridColumn14.FieldName = "buyTwoNum"; + this.gridColumn14.Name = "gridColumn14"; + this.gridColumn14.Visible = true; + this.gridColumn14.VisibleIndex = 13; + this.gridColumn14.Width = 201; + // + // gridColumn15 + // + this.gridColumn15.Caption = "买2价格"; + this.gridColumn15.FieldName = "buyTwoPrice"; + this.gridColumn15.Name = "gridColumn15"; + this.gridColumn15.Visible = true; + this.gridColumn15.VisibleIndex = 14; + this.gridColumn15.Width = 201; + // + // gridColumn16 + // + this.gridColumn16.Caption = "买3数量"; + this.gridColumn16.FieldName = "buyThreeNum"; + this.gridColumn16.Name = "gridColumn16"; + this.gridColumn16.Visible = true; + this.gridColumn16.VisibleIndex = 15; + this.gridColumn16.Width = 201; + // + // gridColumn17 + // + this.gridColumn17.Caption = "买3价格"; + this.gridColumn17.FieldName = "buyThreePrice"; + this.gridColumn17.Name = "gridColumn17"; + this.gridColumn17.Visible = true; + this.gridColumn17.VisibleIndex = 16; + this.gridColumn17.Width = 201; + // + // gridColumn18 + // + this.gridColumn18.Caption = "买4数量"; + this.gridColumn18.FieldName = "buyFourNum"; + this.gridColumn18.Name = "gridColumn18"; + this.gridColumn18.Visible = true; + this.gridColumn18.VisibleIndex = 17; + this.gridColumn18.Width = 201; + // + // gridColumn19 + // + this.gridColumn19.Caption = "买4价格"; + this.gridColumn19.FieldName = "buyFourPrice"; + this.gridColumn19.Name = "gridColumn19"; + this.gridColumn19.Visible = true; + this.gridColumn19.VisibleIndex = 18; + this.gridColumn19.Width = 201; + // + // gridColumn20 + // + this.gridColumn20.Caption = "买5数量"; + this.gridColumn20.FieldName = "buyFiveNum"; + this.gridColumn20.Name = "gridColumn20"; + this.gridColumn20.Visible = true; + this.gridColumn20.VisibleIndex = 19; + this.gridColumn20.Width = 201; + // + // gridColumn21 + // + this.gridColumn21.Caption = "买5价格"; + this.gridColumn21.FieldName = "buyFivePrice"; + this.gridColumn21.Name = "gridColumn21"; + this.gridColumn21.Visible = true; + this.gridColumn21.VisibleIndex = 20; + this.gridColumn21.Width = 201; + // + // gridColumn22 + // + this.gridColumn22.Caption = "卖1数量"; + this.gridColumn22.FieldName = "sellOneNum"; + this.gridColumn22.Name = "gridColumn22"; + this.gridColumn22.Visible = true; + this.gridColumn22.VisibleIndex = 21; + this.gridColumn22.Width = 201; + // + // gridColumn23 + // + this.gridColumn23.Caption = "卖1价格"; + this.gridColumn23.FieldName = "sellOnePrice"; + this.gridColumn23.Name = "gridColumn23"; + this.gridColumn23.Visible = true; + this.gridColumn23.VisibleIndex = 22; + this.gridColumn23.Width = 201; + // + // gridColumn24 + // + this.gridColumn24.Caption = "卖2数量"; + this.gridColumn24.FieldName = "sellTwoNum"; + this.gridColumn24.Name = "gridColumn24"; + this.gridColumn24.Visible = true; + this.gridColumn24.VisibleIndex = 23; + this.gridColumn24.Width = 201; + // + // gridColumn25 + // + this.gridColumn25.Caption = "卖2价格"; + this.gridColumn25.FieldName = "sellTwoPrice"; + this.gridColumn25.Name = "gridColumn25"; + this.gridColumn25.Visible = true; + this.gridColumn25.VisibleIndex = 24; + this.gridColumn25.Width = 201; + // + // gridColumn26 + // + this.gridColumn26.Caption = "卖3数量"; + this.gridColumn26.FieldName = "sellThreeNum"; + this.gridColumn26.Name = "gridColumn26"; + this.gridColumn26.Visible = true; + this.gridColumn26.VisibleIndex = 25; + this.gridColumn26.Width = 201; + // + // gridColumn27 + // + this.gridColumn27.Caption = "卖3价格"; + this.gridColumn27.FieldName = "sellThreePrice"; + this.gridColumn27.Name = "gridColumn27"; + this.gridColumn27.Visible = true; + this.gridColumn27.VisibleIndex = 26; + this.gridColumn27.Width = 201; + // + // gridColumn28 + // + this.gridColumn28.Caption = "卖4数量"; + this.gridColumn28.FieldName = "sellFourNum"; + this.gridColumn28.Name = "gridColumn28"; + this.gridColumn28.Visible = true; + this.gridColumn28.VisibleIndex = 27; + this.gridColumn28.Width = 201; + // + // gridColumn29 + // + this.gridColumn29.Caption = "卖4价格"; + this.gridColumn29.FieldName = "sellFourPrice"; + this.gridColumn29.Name = "gridColumn29"; + this.gridColumn29.Visible = true; + this.gridColumn29.VisibleIndex = 28; + this.gridColumn29.Width = 201; + // + // gridColumn30 + // + this.gridColumn30.Caption = "卖5数量"; + this.gridColumn30.FieldName = "sellFiveNum"; + this.gridColumn30.Name = "gridColumn30"; + this.gridColumn30.Visible = true; + this.gridColumn30.VisibleIndex = 29; + this.gridColumn30.Width = 201; + // + // gridColumn31 + // + this.gridColumn31.Caption = "卖5价格"; + this.gridColumn31.FieldName = "sellFivePrice"; + this.gridColumn31.Name = "gridColumn31"; + this.gridColumn31.Visible = true; + this.gridColumn31.VisibleIndex = 30; + this.gridColumn31.Width = 201; + // + // gridColumn32 + // + this.gridColumn32.Caption = "时间"; + this.gridColumn32.DisplayFormat.FormatString = "G"; + this.gridColumn32.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.gridColumn32.FieldName = "timeStr"; + this.gridColumn32.Name = "gridColumn32"; + this.gridColumn32.Visible = true; + this.gridColumn32.VisibleIndex = 31; + this.gridColumn32.Width = 201; + // + // xtraTabControl1 + // + this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.xtraTabControl1.Location = new System.Drawing.Point(0, 34); + this.xtraTabControl1.Name = "xtraTabControl1"; + this.xtraTabControl1.SelectedTabPage = this.tabDataList; + this.xtraTabControl1.Size = new System.Drawing.Size(1300, 766); + this.xtraTabControl1.TabIndex = 1; + this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { + this.tabDataList, + this.tabDataDetail}); + // + // tabDataList + // + this.tabDataList.Controls.Add(this.grdList); + this.tabDataList.Name = "tabDataList"; + this.tabDataList.Size = new System.Drawing.Size(1294, 737); + this.tabDataList.Text = "数据列表"; + // + // grdList + // + this.grdList.Dock = System.Windows.Forms.DockStyle.Fill; + this.grdList.Location = new System.Drawing.Point(0, 0); + this.grdList.MainView = this.grdListView; + this.grdList.Name = "grdList"; + this.grdList.Size = new System.Drawing.Size(1294, 737); + this.grdList.TabIndex = 0; + this.grdList.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { + this.grdListView}); + // + // grdListView + // + this.grdListView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { + this.gridColumn1, + this.gridColumn2, + this.gridColumn3, + this.gridColumn4, + this.gridColumn5, + this.gridColumn6, + this.gridColumn7, + this.gridColumn8, + this.gridColumn9, + this.gridColumn10, + this.gridColumn11, + this.gridColumn12, + this.gridColumn13, + this.gridColumn14, + this.gridColumn15, + this.gridColumn16, + this.gridColumn17, + this.gridColumn18, + this.gridColumn19, + this.gridColumn20, + this.gridColumn21, + this.gridColumn22, + this.gridColumn23, + this.gridColumn24, + this.gridColumn25, + this.gridColumn26, + this.gridColumn27, + this.gridColumn28, + this.gridColumn29, + this.gridColumn30, + this.gridColumn31, + this.gridColumn32}); + this.grdListView.GridControl = this.grdList; + this.grdListView.Name = "grdListView"; + this.grdListView.OptionsBehavior.Editable = false; + this.grdListView.OptionsView.ColumnAutoWidth = false; + // + // tabDataDetail + // + this.tabDataDetail.Controls.Add(this.panelControl2); + this.tabDataDetail.Name = "tabDataDetail"; + this.tabDataDetail.Size = new System.Drawing.Size(1294, 737); + this.tabDataDetail.Text = "数据编辑"; + // + // panelControl2 + // + this.panelControl2.Controls.Add(this.layoutControl1); + this.panelControl2.Dock = System.Windows.Forms.DockStyle.Fill; + this.panelControl2.Location = new System.Drawing.Point(0, 0); + this.panelControl2.Name = "panelControl2"; + this.panelControl2.Size = new System.Drawing.Size(1294, 737); + this.panelControl2.TabIndex = 0; + // + // layoutControl1 + // + this.layoutControl1.Controls.Add(this.txtcode); + this.layoutControl1.Controls.Add(this.txtname); + this.layoutControl1.Controls.Add(this.txtstartPrice); + this.layoutControl1.Controls.Add(this.txtolePrice); + this.layoutControl1.Controls.Add(this.txtnowPrice); + this.layoutControl1.Controls.Add(this.txtmaxPrice); + this.layoutControl1.Controls.Add(this.txtminPrice); + this.layoutControl1.Controls.Add(this.txtbidderPrice); + this.layoutControl1.Controls.Add(this.txtauctionPrice); + this.layoutControl1.Controls.Add(this.txtturnover); + this.layoutControl1.Controls.Add(this.txtturnoverPrice); + this.layoutControl1.Controls.Add(this.txtbuyOneNum); + this.layoutControl1.Controls.Add(this.txtbuyOnePrice); + this.layoutControl1.Controls.Add(this.txtbuyTwoNum); + this.layoutControl1.Controls.Add(this.txtbuyTwoPrice); + this.layoutControl1.Controls.Add(this.txtbuyThreeNum); + this.layoutControl1.Controls.Add(this.txtbuyThreePrice); + this.layoutControl1.Controls.Add(this.txtbuyFourNum); + this.layoutControl1.Controls.Add(this.txtbuyFourPrice); + this.layoutControl1.Controls.Add(this.txtbuyFiveNum); + this.layoutControl1.Controls.Add(this.txtbuyFivePrice); + this.layoutControl1.Controls.Add(this.txtsellOneNum); + this.layoutControl1.Controls.Add(this.txtsellOnePrice); + this.layoutControl1.Controls.Add(this.txtsellTwoNum); + this.layoutControl1.Controls.Add(this.txtsellTwoPrice); + this.layoutControl1.Controls.Add(this.txtsellThreeNum); + this.layoutControl1.Controls.Add(this.txtsellThreePrice); + this.layoutControl1.Controls.Add(this.txtsellFourNum); + this.layoutControl1.Controls.Add(this.txtsellFourPrice); + this.layoutControl1.Controls.Add(this.txtsellFiveNum); + this.layoutControl1.Controls.Add(this.txtsellFivePrice); + this.layoutControl1.Controls.Add(this.txttimeStr); + this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.layoutControl1.Location = new System.Drawing.Point(2, 2); + this.layoutControl1.Name = "layoutControl1"; + this.layoutControl1.Root = this.layoutControlGroup1; + this.layoutControl1.Size = new System.Drawing.Size(1290, 733); + this.layoutControl1.TabIndex = 6; + this.layoutControl1.Text = "layoutControl1"; + // + // txtcode + // + this.txtcode.Location = new System.Drawing.Point(75, 12); + this.txtcode.Name = "txtcode"; + this.txtcode.Size = new System.Drawing.Size(567, 20); + this.txtcode.StyleController = this.layoutControl1; + this.txtcode.TabIndex = 1; + // + // txtname + // + this.txtname.Location = new System.Drawing.Point(709, 12); + this.txtname.Name = "txtname"; + this.txtname.Size = new System.Drawing.Size(569, 20); + this.txtname.StyleController = this.layoutControl1; + this.txtname.TabIndex = 2; + // + // txtstartPrice + // + this.txtstartPrice.Location = new System.Drawing.Point(75, 36); + this.txtstartPrice.Name = "txtstartPrice"; + this.txtstartPrice.Size = new System.Drawing.Size(567, 20); + this.txtstartPrice.StyleController = this.layoutControl1; + this.txtstartPrice.TabIndex = 3; + // + // txtolePrice + // + this.txtolePrice.Location = new System.Drawing.Point(709, 36); + this.txtolePrice.Name = "txtolePrice"; + this.txtolePrice.Size = new System.Drawing.Size(250, 20); + this.txtolePrice.StyleController = this.layoutControl1; + this.txtolePrice.TabIndex = 4; + // + // txtnowPrice + // + this.txtnowPrice.Location = new System.Drawing.Point(1026, 36); + this.txtnowPrice.Name = "txtnowPrice"; + this.txtnowPrice.Size = new System.Drawing.Size(252, 20); + this.txtnowPrice.StyleController = this.layoutControl1; + this.txtnowPrice.TabIndex = 5; + // + // txtmaxPrice + // + this.txtmaxPrice.Location = new System.Drawing.Point(75, 60); + this.txtmaxPrice.Name = "txtmaxPrice"; + this.txtmaxPrice.Size = new System.Drawing.Size(568, 20); + this.txtmaxPrice.StyleController = this.layoutControl1; + this.txtmaxPrice.TabIndex = 6; + // + // txtminPrice + // + this.txtminPrice.Location = new System.Drawing.Point(710, 60); + this.txtminPrice.Name = "txtminPrice"; + this.txtminPrice.Size = new System.Drawing.Size(568, 20); + this.txtminPrice.StyleController = this.layoutControl1; + this.txtminPrice.TabIndex = 7; + // + // txtbidderPrice + // + this.txtbidderPrice.Location = new System.Drawing.Point(75, 84); + this.txtbidderPrice.Name = "txtbidderPrice"; + this.txtbidderPrice.Size = new System.Drawing.Size(568, 20); + this.txtbidderPrice.StyleController = this.layoutControl1; + this.txtbidderPrice.TabIndex = 8; + // + // txtauctionPrice + // + this.txtauctionPrice.Location = new System.Drawing.Point(710, 84); + this.txtauctionPrice.Name = "txtauctionPrice"; + this.txtauctionPrice.Size = new System.Drawing.Size(568, 20); + this.txtauctionPrice.StyleController = this.layoutControl1; + this.txtauctionPrice.TabIndex = 9; + // + // txtturnover + // + this.txtturnover.Location = new System.Drawing.Point(75, 108); + this.txtturnover.Name = "txtturnover"; + this.txtturnover.Size = new System.Drawing.Size(568, 20); + this.txtturnover.StyleController = this.layoutControl1; + this.txtturnover.TabIndex = 10; + // + // txtturnoverPrice + // + this.txtturnoverPrice.Location = new System.Drawing.Point(710, 108); + this.txtturnoverPrice.Name = "txtturnoverPrice"; + this.txtturnoverPrice.Size = new System.Drawing.Size(568, 20); + this.txtturnoverPrice.StyleController = this.layoutControl1; + this.txtturnoverPrice.TabIndex = 11; + // + // txtbuyOneNum + // + this.txtbuyOneNum.Location = new System.Drawing.Point(75, 132); + this.txtbuyOneNum.Name = "txtbuyOneNum"; + this.txtbuyOneNum.Size = new System.Drawing.Size(568, 20); + this.txtbuyOneNum.StyleController = this.layoutControl1; + this.txtbuyOneNum.TabIndex = 12; + // + // txtbuyOnePrice + // + this.txtbuyOnePrice.Location = new System.Drawing.Point(710, 132); + this.txtbuyOnePrice.Name = "txtbuyOnePrice"; + this.txtbuyOnePrice.Size = new System.Drawing.Size(568, 20); + this.txtbuyOnePrice.StyleController = this.layoutControl1; + this.txtbuyOnePrice.TabIndex = 13; + // + // txtbuyTwoNum + // + this.txtbuyTwoNum.Location = new System.Drawing.Point(75, 156); + this.txtbuyTwoNum.Name = "txtbuyTwoNum"; + this.txtbuyTwoNum.Size = new System.Drawing.Size(568, 20); + this.txtbuyTwoNum.StyleController = this.layoutControl1; + this.txtbuyTwoNum.TabIndex = 14; + // + // txtbuyTwoPrice + // + this.txtbuyTwoPrice.Location = new System.Drawing.Point(710, 156); + this.txtbuyTwoPrice.Name = "txtbuyTwoPrice"; + this.txtbuyTwoPrice.Size = new System.Drawing.Size(568, 20); + this.txtbuyTwoPrice.StyleController = this.layoutControl1; + this.txtbuyTwoPrice.TabIndex = 15; + // + // txtbuyThreeNum + // + this.txtbuyThreeNum.Location = new System.Drawing.Point(75, 180); + this.txtbuyThreeNum.Name = "txtbuyThreeNum"; + this.txtbuyThreeNum.Size = new System.Drawing.Size(568, 20); + this.txtbuyThreeNum.StyleController = this.layoutControl1; + this.txtbuyThreeNum.TabIndex = 16; + // + // txtbuyThreePrice + // + this.txtbuyThreePrice.Location = new System.Drawing.Point(710, 180); + this.txtbuyThreePrice.Name = "txtbuyThreePrice"; + this.txtbuyThreePrice.Size = new System.Drawing.Size(568, 20); + this.txtbuyThreePrice.StyleController = this.layoutControl1; + this.txtbuyThreePrice.TabIndex = 17; + // + // txtbuyFourNum + // + this.txtbuyFourNum.Location = new System.Drawing.Point(75, 204); + this.txtbuyFourNum.Name = "txtbuyFourNum"; + this.txtbuyFourNum.Size = new System.Drawing.Size(568, 20); + this.txtbuyFourNum.StyleController = this.layoutControl1; + this.txtbuyFourNum.TabIndex = 18; + // + // txtbuyFourPrice + // + this.txtbuyFourPrice.Location = new System.Drawing.Point(710, 204); + this.txtbuyFourPrice.Name = "txtbuyFourPrice"; + this.txtbuyFourPrice.Size = new System.Drawing.Size(568, 20); + this.txtbuyFourPrice.StyleController = this.layoutControl1; + this.txtbuyFourPrice.TabIndex = 19; + // + // txtbuyFiveNum + // + this.txtbuyFiveNum.Location = new System.Drawing.Point(75, 228); + this.txtbuyFiveNum.Name = "txtbuyFiveNum"; + this.txtbuyFiveNum.Size = new System.Drawing.Size(568, 20); + this.txtbuyFiveNum.StyleController = this.layoutControl1; + this.txtbuyFiveNum.TabIndex = 20; + // + // txtbuyFivePrice + // + this.txtbuyFivePrice.Location = new System.Drawing.Point(710, 228); + this.txtbuyFivePrice.Name = "txtbuyFivePrice"; + this.txtbuyFivePrice.Size = new System.Drawing.Size(568, 20); + this.txtbuyFivePrice.StyleController = this.layoutControl1; + this.txtbuyFivePrice.TabIndex = 21; + // + // txtsellOneNum + // + this.txtsellOneNum.Location = new System.Drawing.Point(75, 252); + this.txtsellOneNum.Name = "txtsellOneNum"; + this.txtsellOneNum.Size = new System.Drawing.Size(568, 20); + this.txtsellOneNum.StyleController = this.layoutControl1; + this.txtsellOneNum.TabIndex = 22; + // + // txtsellOnePrice + // + this.txtsellOnePrice.Location = new System.Drawing.Point(710, 252); + this.txtsellOnePrice.Name = "txtsellOnePrice"; + this.txtsellOnePrice.Size = new System.Drawing.Size(568, 20); + this.txtsellOnePrice.StyleController = this.layoutControl1; + this.txtsellOnePrice.TabIndex = 23; + // + // txtsellTwoNum + // + this.txtsellTwoNum.Location = new System.Drawing.Point(75, 276); + this.txtsellTwoNum.Name = "txtsellTwoNum"; + this.txtsellTwoNum.Size = new System.Drawing.Size(568, 20); + this.txtsellTwoNum.StyleController = this.layoutControl1; + this.txtsellTwoNum.TabIndex = 24; + // + // txtsellTwoPrice + // + this.txtsellTwoPrice.Location = new System.Drawing.Point(710, 276); + this.txtsellTwoPrice.Name = "txtsellTwoPrice"; + this.txtsellTwoPrice.Size = new System.Drawing.Size(568, 20); + this.txtsellTwoPrice.StyleController = this.layoutControl1; + this.txtsellTwoPrice.TabIndex = 25; + // + // txtsellThreeNum + // + this.txtsellThreeNum.Location = new System.Drawing.Point(75, 300); + this.txtsellThreeNum.Name = "txtsellThreeNum"; + this.txtsellThreeNum.Size = new System.Drawing.Size(568, 20); + this.txtsellThreeNum.StyleController = this.layoutControl1; + this.txtsellThreeNum.TabIndex = 26; + // + // txtsellThreePrice + // + this.txtsellThreePrice.Location = new System.Drawing.Point(710, 300); + this.txtsellThreePrice.Name = "txtsellThreePrice"; + this.txtsellThreePrice.Size = new System.Drawing.Size(568, 20); + this.txtsellThreePrice.StyleController = this.layoutControl1; + this.txtsellThreePrice.TabIndex = 27; + // + // txtsellFourNum + // + this.txtsellFourNum.Location = new System.Drawing.Point(75, 324); + this.txtsellFourNum.Name = "txtsellFourNum"; + this.txtsellFourNum.Size = new System.Drawing.Size(568, 20); + this.txtsellFourNum.StyleController = this.layoutControl1; + this.txtsellFourNum.TabIndex = 28; + // + // txtsellFourPrice + // + this.txtsellFourPrice.Location = new System.Drawing.Point(710, 324); + this.txtsellFourPrice.Name = "txtsellFourPrice"; + this.txtsellFourPrice.Size = new System.Drawing.Size(568, 20); + this.txtsellFourPrice.StyleController = this.layoutControl1; + this.txtsellFourPrice.TabIndex = 29; + // + // txtsellFiveNum + // + this.txtsellFiveNum.Location = new System.Drawing.Point(75, 348); + this.txtsellFiveNum.Name = "txtsellFiveNum"; + this.txtsellFiveNum.Size = new System.Drawing.Size(568, 20); + this.txtsellFiveNum.StyleController = this.layoutControl1; + this.txtsellFiveNum.TabIndex = 30; + // + // txtsellFivePrice + // + this.txtsellFivePrice.Location = new System.Drawing.Point(710, 348); + this.txtsellFivePrice.Name = "txtsellFivePrice"; + this.txtsellFivePrice.Size = new System.Drawing.Size(568, 20); + this.txtsellFivePrice.StyleController = this.layoutControl1; + this.txtsellFivePrice.TabIndex = 31; + // + // txttimeStr + // + this.txttimeStr.EditValue = null; + this.txttimeStr.ImeMode = System.Windows.Forms.ImeMode.Off; + this.txttimeStr.Location = new System.Drawing.Point(75, 372); + this.txttimeStr.Name = "txttimeStr"; + this.txttimeStr.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txttimeStr.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton()}); + this.txttimeStr.Properties.DisplayFormat.FormatString = "G"; + this.txttimeStr.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.txttimeStr.Size = new System.Drawing.Size(1203, 20); + this.txttimeStr.StyleController = this.layoutControl1; + this.txttimeStr.TabIndex = 32; + // + // layoutControlGroup1 + // + this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; + this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; + this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { + this.layoutControlItem1, + this.layoutControlItem3, + this.layoutControlItem6, + this.layoutControlItem8, + this.layoutControlItem10, + this.layoutControlItem12, + this.layoutControlItem14, + this.layoutControlItem16, + this.layoutControlItem18, + this.layoutControlItem20, + this.layoutControlItem22, + this.layoutControlItem24, + this.layoutControlItem26, + this.layoutControlItem28, + this.layoutControlItem30, + this.layoutControlItem32, + this.layoutControlItem2, + this.layoutControlItem4, + this.layoutControlItem5, + this.layoutControlItem7, + this.layoutControlItem9, + this.layoutControlItem11, + this.layoutControlItem13, + this.layoutControlItem15, + this.layoutControlItem17, + this.layoutControlItem19, + this.layoutControlItem21, + this.layoutControlItem23, + this.layoutControlItem25, + this.layoutControlItem27, + this.layoutControlItem29, + this.layoutControlItem31}); + this.layoutControlGroup1.Name = "layoutControlGroup1"; + this.layoutControlGroup1.Size = new System.Drawing.Size(1290, 733); + this.layoutControlGroup1.TextVisible = false; + // + // layoutControlItem1 + // + this.layoutControlItem1.Control = this.txtcode; + this.layoutControlItem1.CustomizationFormText = "代码"; + this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); + this.layoutControlItem1.Name = "layoutControlItem1"; + this.layoutControlItem1.Size = new System.Drawing.Size(634, 24); + this.layoutControlItem1.Text = "代码"; + this.layoutControlItem1.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem3 + // + this.layoutControlItem3.Control = this.txtstartPrice; + this.layoutControlItem3.CustomizationFormText = "今日开盘价"; + this.layoutControlItem3.Location = new System.Drawing.Point(0, 24); + this.layoutControlItem3.Name = "layoutControlItem3"; + this.layoutControlItem3.Size = new System.Drawing.Size(634, 24); + this.layoutControlItem3.Text = "今日开盘价"; + this.layoutControlItem3.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem6 + // + this.layoutControlItem6.Control = this.txtmaxPrice; + this.layoutControlItem6.CustomizationFormText = "今日最高价"; + this.layoutControlItem6.Location = new System.Drawing.Point(0, 48); + this.layoutControlItem6.Name = "layoutControlItem6"; + this.layoutControlItem6.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem6.Text = "今日最高价"; + this.layoutControlItem6.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem8 + // + this.layoutControlItem8.Control = this.txtbidderPrice; + this.layoutControlItem8.CustomizationFormText = "竞买价"; + this.layoutControlItem8.Location = new System.Drawing.Point(0, 72); + this.layoutControlItem8.Name = "layoutControlItem8"; + this.layoutControlItem8.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem8.Text = "竞买价"; + this.layoutControlItem8.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem10 + // + this.layoutControlItem10.Control = this.txtturnover; + this.layoutControlItem10.CustomizationFormText = "成交股票数"; + this.layoutControlItem10.Location = new System.Drawing.Point(0, 96); + this.layoutControlItem10.Name = "layoutControlItem10"; + this.layoutControlItem10.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem10.Text = "成交股票数"; + this.layoutControlItem10.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem12 + // + this.layoutControlItem12.Control = this.txtbuyOneNum; + this.layoutControlItem12.CustomizationFormText = "买1数量"; + this.layoutControlItem12.Location = new System.Drawing.Point(0, 120); + this.layoutControlItem12.Name = "layoutControlItem12"; + this.layoutControlItem12.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem12.Text = "买1数量"; + this.layoutControlItem12.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem14 + // + this.layoutControlItem14.Control = this.txtbuyTwoNum; + this.layoutControlItem14.CustomizationFormText = "买2数量"; + this.layoutControlItem14.Location = new System.Drawing.Point(0, 144); + this.layoutControlItem14.Name = "layoutControlItem14"; + this.layoutControlItem14.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem14.Text = "买2数量"; + this.layoutControlItem14.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem16 + // + this.layoutControlItem16.Control = this.txtbuyThreeNum; + this.layoutControlItem16.CustomizationFormText = "买3数量"; + this.layoutControlItem16.Location = new System.Drawing.Point(0, 168); + this.layoutControlItem16.Name = "layoutControlItem16"; + this.layoutControlItem16.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem16.Text = "买3数量"; + this.layoutControlItem16.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem18 + // + this.layoutControlItem18.Control = this.txtbuyFourNum; + this.layoutControlItem18.CustomizationFormText = "买4数量"; + this.layoutControlItem18.Location = new System.Drawing.Point(0, 192); + this.layoutControlItem18.Name = "layoutControlItem18"; + this.layoutControlItem18.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem18.Text = "买4数量"; + this.layoutControlItem18.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem20 + // + this.layoutControlItem20.Control = this.txtbuyFiveNum; + this.layoutControlItem20.CustomizationFormText = "买5数量"; + this.layoutControlItem20.Location = new System.Drawing.Point(0, 216); + this.layoutControlItem20.Name = "layoutControlItem20"; + this.layoutControlItem20.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem20.Text = "买5数量"; + this.layoutControlItem20.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem22 + // + this.layoutControlItem22.Control = this.txtsellOneNum; + this.layoutControlItem22.CustomizationFormText = "卖1数量"; + this.layoutControlItem22.Location = new System.Drawing.Point(0, 240); + this.layoutControlItem22.Name = "layoutControlItem22"; + this.layoutControlItem22.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem22.Text = "卖1数量"; + this.layoutControlItem22.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem24 + // + this.layoutControlItem24.Control = this.txtsellTwoNum; + this.layoutControlItem24.CustomizationFormText = "卖2数量"; + this.layoutControlItem24.Location = new System.Drawing.Point(0, 264); + this.layoutControlItem24.Name = "layoutControlItem24"; + this.layoutControlItem24.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem24.Text = "卖2数量"; + this.layoutControlItem24.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem26 + // + this.layoutControlItem26.Control = this.txtsellThreeNum; + this.layoutControlItem26.CustomizationFormText = "卖3数量"; + this.layoutControlItem26.Location = new System.Drawing.Point(0, 288); + this.layoutControlItem26.Name = "layoutControlItem26"; + this.layoutControlItem26.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem26.Text = "卖3数量"; + this.layoutControlItem26.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem28 + // + this.layoutControlItem28.Control = this.txtsellFourNum; + this.layoutControlItem28.CustomizationFormText = "卖4数量"; + this.layoutControlItem28.Location = new System.Drawing.Point(0, 312); + this.layoutControlItem28.Name = "layoutControlItem28"; + this.layoutControlItem28.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem28.Text = "卖4数量"; + this.layoutControlItem28.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem30 + // + this.layoutControlItem30.Control = this.txtsellFiveNum; + this.layoutControlItem30.CustomizationFormText = "卖5数量"; + this.layoutControlItem30.Location = new System.Drawing.Point(0, 336); + this.layoutControlItem30.Name = "layoutControlItem30"; + this.layoutControlItem30.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem30.Text = "卖5数量"; + this.layoutControlItem30.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem32 + // + this.layoutControlItem32.Control = this.txttimeStr; + this.layoutControlItem32.CustomizationFormText = "时间"; + this.layoutControlItem32.Location = new System.Drawing.Point(0, 360); + this.layoutControlItem32.Name = "layoutControlItem32"; + this.layoutControlItem32.Size = new System.Drawing.Size(1270, 353); + this.layoutControlItem32.Text = "时间"; + this.layoutControlItem32.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem2 + // + this.layoutControlItem2.Control = this.txtname; + this.layoutControlItem2.CustomizationFormText = "名称"; + this.layoutControlItem2.Location = new System.Drawing.Point(634, 0); + this.layoutControlItem2.Name = "layoutControlItem2"; + this.layoutControlItem2.Size = new System.Drawing.Size(636, 24); + this.layoutControlItem2.Text = "名称"; + this.layoutControlItem2.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem4 + // + this.layoutControlItem4.Control = this.txtolePrice; + this.layoutControlItem4.CustomizationFormText = "昨日收盘价"; + this.layoutControlItem4.Location = new System.Drawing.Point(634, 24); + this.layoutControlItem4.Name = "layoutControlItem4"; + this.layoutControlItem4.Size = new System.Drawing.Size(317, 24); + this.layoutControlItem4.Text = "昨日收盘价"; + this.layoutControlItem4.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem5 + // + this.layoutControlItem5.Control = this.txtnowPrice; + this.layoutControlItem5.CustomizationFormText = "当前价格"; + this.layoutControlItem5.Location = new System.Drawing.Point(951, 24); + this.layoutControlItem5.Name = "layoutControlItem5"; + this.layoutControlItem5.Size = new System.Drawing.Size(319, 24); + this.layoutControlItem5.Text = "当前价格"; + this.layoutControlItem5.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem7 + // + this.layoutControlItem7.Control = this.txtminPrice; + this.layoutControlItem7.CustomizationFormText = "今日最低价"; + this.layoutControlItem7.Location = new System.Drawing.Point(635, 48); + this.layoutControlItem7.Name = "layoutControlItem7"; + this.layoutControlItem7.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem7.Text = "今日最低价"; + this.layoutControlItem7.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem9 + // + this.layoutControlItem9.Control = this.txtauctionPrice; + this.layoutControlItem9.CustomizationFormText = "竞卖价"; + this.layoutControlItem9.Location = new System.Drawing.Point(635, 72); + this.layoutControlItem9.Name = "layoutControlItem9"; + this.layoutControlItem9.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem9.Text = "竞卖价"; + this.layoutControlItem9.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem11 + // + this.layoutControlItem11.Control = this.txtturnoverPrice; + this.layoutControlItem11.CustomizationFormText = "成交金额"; + this.layoutControlItem11.Location = new System.Drawing.Point(635, 96); + this.layoutControlItem11.Name = "layoutControlItem11"; + this.layoutControlItem11.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem11.Text = "成交金额"; + this.layoutControlItem11.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem13 + // + this.layoutControlItem13.Control = this.txtbuyOnePrice; + this.layoutControlItem13.CustomizationFormText = "买1价格"; + this.layoutControlItem13.Location = new System.Drawing.Point(635, 120); + this.layoutControlItem13.Name = "layoutControlItem13"; + this.layoutControlItem13.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem13.Text = "买1价格"; + this.layoutControlItem13.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem15 + // + this.layoutControlItem15.Control = this.txtbuyTwoPrice; + this.layoutControlItem15.CustomizationFormText = "买2价格"; + this.layoutControlItem15.Location = new System.Drawing.Point(635, 144); + this.layoutControlItem15.Name = "layoutControlItem15"; + this.layoutControlItem15.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem15.Text = "买2价格"; + this.layoutControlItem15.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem17 + // + this.layoutControlItem17.Control = this.txtbuyThreePrice; + this.layoutControlItem17.CustomizationFormText = "买3价格"; + this.layoutControlItem17.Location = new System.Drawing.Point(635, 168); + this.layoutControlItem17.Name = "layoutControlItem17"; + this.layoutControlItem17.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem17.Text = "买3价格"; + this.layoutControlItem17.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem19 + // + this.layoutControlItem19.Control = this.txtbuyFourPrice; + this.layoutControlItem19.CustomizationFormText = "买4价格"; + this.layoutControlItem19.Location = new System.Drawing.Point(635, 192); + this.layoutControlItem19.Name = "layoutControlItem19"; + this.layoutControlItem19.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem19.Text = "买4价格"; + this.layoutControlItem19.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem21 + // + this.layoutControlItem21.Control = this.txtbuyFivePrice; + this.layoutControlItem21.CustomizationFormText = "买5价格"; + this.layoutControlItem21.Location = new System.Drawing.Point(635, 216); + this.layoutControlItem21.Name = "layoutControlItem21"; + this.layoutControlItem21.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem21.Text = "买5价格"; + this.layoutControlItem21.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem23 + // + this.layoutControlItem23.Control = this.txtsellOnePrice; + this.layoutControlItem23.CustomizationFormText = "卖1价格"; + this.layoutControlItem23.Location = new System.Drawing.Point(635, 240); + this.layoutControlItem23.Name = "layoutControlItem23"; + this.layoutControlItem23.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem23.Text = "卖1价格"; + this.layoutControlItem23.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem25 + // + this.layoutControlItem25.Control = this.txtsellTwoPrice; + this.layoutControlItem25.CustomizationFormText = "卖2价格"; + this.layoutControlItem25.Location = new System.Drawing.Point(635, 264); + this.layoutControlItem25.Name = "layoutControlItem25"; + this.layoutControlItem25.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem25.Text = "卖2价格"; + this.layoutControlItem25.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem27 + // + this.layoutControlItem27.Control = this.txtsellThreePrice; + this.layoutControlItem27.CustomizationFormText = "卖3价格"; + this.layoutControlItem27.Location = new System.Drawing.Point(635, 288); + this.layoutControlItem27.Name = "layoutControlItem27"; + this.layoutControlItem27.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem27.Text = "卖3价格"; + this.layoutControlItem27.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem29 + // + this.layoutControlItem29.Control = this.txtsellFourPrice; + this.layoutControlItem29.CustomizationFormText = "卖4价格"; + this.layoutControlItem29.Location = new System.Drawing.Point(635, 312); + this.layoutControlItem29.Name = "layoutControlItem29"; + this.layoutControlItem29.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem29.Text = "卖4价格"; + this.layoutControlItem29.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem31 + // + this.layoutControlItem31.Control = this.txtsellFivePrice; + this.layoutControlItem31.CustomizationFormText = "卖5价格"; + this.layoutControlItem31.Location = new System.Drawing.Point(635, 336); + this.layoutControlItem31.Name = "layoutControlItem31"; + this.layoutControlItem31.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem31.Text = "卖5价格"; + this.layoutControlItem31.TextSize = new System.Drawing.Size(60, 14); + // + // timer1 + // + this.timer1.Enabled = true; + this.timer1.Interval = 1000; + this.timer1.Tick += new System.EventHandler(this.timer1_Tick); + // + // Frmstock + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1300, 800); + this.Controls.Add(this.xtraTabControl1); + this.Name = "Frmstock"; + this.Text = "Frmstock"; + this.Load += new System.EventHandler(this.Frmstock_Load); + this.Controls.SetChildIndex(this.xtraTabControl1, 0); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); + this.xtraTabControl1.ResumeLayout(false); + this.tabDataList.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.grdList)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.grdListView)).EndInit(); + this.tabDataDetail.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit(); + this.panelControl2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); + this.layoutControl1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.txtcode.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtname.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtstartPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtolePrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtnowPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtmaxPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtminPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbidderPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtauctionPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtturnover.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtturnoverPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyOneNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyOnePrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyTwoNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyTwoPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyThreeNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyThreePrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFourNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFourPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFiveNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFivePrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellOneNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellOnePrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellTwoNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellTwoPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellThreeNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellThreePrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellFourNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellFourPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellFiveNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellFivePrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttimeStr.Properties.CalendarTimeProperties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttimeStr.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem20)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem22)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem24)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem26)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem28)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem30)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem32)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem19)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem21)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem23)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem25)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem27)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem29)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem31)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private XtraTabControl xtraTabControl1; + private XtraTabPage tabDataList; + private XtraTabPage tabDataDetail; + private DevExpress.XtraGrid.GridControl grdList; + private DevExpress.XtraGrid.Views.Grid.GridView grdListView; + private PanelControl panelControl2; + private DevExpress.XtraLayout.LayoutControl layoutControl1; + private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1; + + private DevExpress.XtraGrid.Columns.GridColumn gridColumn1; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn2; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn3; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn4; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn5; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn6; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn7; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn8; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn9; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn10; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn11; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn12; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn13; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn14; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn15; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn16; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn17; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn18; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn19; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn20; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn21; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn22; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn23; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn24; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn25; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn26; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn27; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn28; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn29; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn30; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn31; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn32; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtcode; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtname; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtstartPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtolePrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtnowPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtmaxPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtminPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbidderPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtauctionPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtturnover; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtturnoverPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbuyOneNum; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbuyOnePrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbuyTwoNum; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbuyTwoPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbuyThreeNum; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbuyThreePrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbuyFourNum; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbuyFourPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbuyFiveNum; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbuyFivePrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsellOneNum; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsellOnePrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsellTwoNum; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsellTwoPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsellThreeNum; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsellThreePrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsellFourNum; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsellFourPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsellFiveNum; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsellFivePrice; + /////////////////////////////// + private DevExpress.XtraEditors.DateEdit txttimeStr; + + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem11; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem12; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem13; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem14; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem15; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem16; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem17; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem18; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem19; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem20; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem21; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem22; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem23; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem24; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem25; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem26; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem27; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem28; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem29; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem30; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem31; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem32; + private System.Windows.Forms.Timer timer1; + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmstock.resx b/WinformGeneralDeveloperFrame/Form/Frmstock.resx new file mode 100644 index 0000000..1f666f2 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmstock.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/FrmsysMenu.designer.cs b/WinformGeneralDeveloperFrame/Form/FrmsysMenu.designer.cs index c02350c..d1e1714 100644 --- a/WinformGeneralDeveloperFrame/Form/FrmsysMenu.designer.cs +++ b/WinformGeneralDeveloperFrame/Form/FrmsysMenu.designer.cs @@ -90,6 +90,10 @@ namespace MES.Form this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.xtraOpenFileDialog1 = new DevExpress.XtraEditors.XtraOpenFileDialog(this.components); + this.gridColumn14 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemCheckEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit(); + this.txtisToolBtn = new DevExpress.XtraEditors.CheckEdit(); + this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtpid)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtpidTreeList)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcreatorId)).BeginInit(); @@ -136,6 +140,9 @@ namespace MES.Form ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtisToolBtn.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit(); this.SuspendLayout(); // // gridColumn1 @@ -234,7 +241,7 @@ namespace MES.Form this.gridColumn9.FieldName = "creatorId"; this.gridColumn9.Name = "gridColumn9"; this.gridColumn9.Visible = true; - this.gridColumn9.VisibleIndex = 7; + this.gridColumn9.VisibleIndex = 9; this.gridColumn9.Width = 201; // // repositoryItemtxtcreatorId @@ -254,7 +261,7 @@ namespace MES.Form this.gridColumn10.FieldName = "createTime"; this.gridColumn10.Name = "gridColumn10"; this.gridColumn10.Visible = true; - this.gridColumn10.VisibleIndex = 8; + this.gridColumn10.VisibleIndex = 10; this.gridColumn10.Width = 201; // // gridColumn11 @@ -264,7 +271,7 @@ namespace MES.Form this.gridColumn11.FieldName = "editorId"; this.gridColumn11.Name = "gridColumn11"; this.gridColumn11.Visible = true; - this.gridColumn11.VisibleIndex = 9; + this.gridColumn11.VisibleIndex = 11; this.gridColumn11.Width = 201; // // repositoryItemtxteditorId @@ -282,7 +289,7 @@ namespace MES.Form this.gridColumn12.FieldName = "editTime"; this.gridColumn12.Name = "gridColumn12"; this.gridColumn12.Visible = true; - this.gridColumn12.VisibleIndex = 10; + this.gridColumn12.VisibleIndex = 12; this.gridColumn12.Width = 201; // // gridColumn13 @@ -291,7 +298,7 @@ namespace MES.Form this.gridColumn13.FieldName = "isForm"; this.gridColumn13.Name = "gridColumn13"; this.gridColumn13.Visible = true; - this.gridColumn13.VisibleIndex = 11; + this.gridColumn13.VisibleIndex = 7; this.gridColumn13.Width = 201; // // xtraTabControl1 @@ -319,6 +326,8 @@ namespace MES.Form this.grdList.Location = new System.Drawing.Point(0, 0); this.grdList.MainView = this.grdListView; this.grdList.Name = "grdList"; + this.grdList.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { + this.repositoryItemCheckEdit1}); this.grdList.Size = new System.Drawing.Size(881, 479); this.grdList.TabIndex = 0; this.grdList.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { @@ -339,7 +348,8 @@ namespace MES.Form this.gridColumn10, this.gridColumn11, this.gridColumn12, - this.gridColumn13}); + this.gridColumn13, + this.gridColumn14}); this.grdListView.GridControl = this.grdList; this.grdListView.Name = "grdListView"; this.grdListView.OptionsBehavior.Editable = false; @@ -365,6 +375,7 @@ namespace MES.Form // // layoutControl1 // + this.layoutControl1.Controls.Add(this.txtisToolBtn); this.layoutControl1.Controls.Add(this.txtname); this.layoutControl1.Controls.Add(this.txtid); this.layoutControl1.Controls.Add(this.simpleButton1); @@ -469,7 +480,7 @@ namespace MES.Form this.txtisEnabled.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default; this.txtisEnabled.Properties.Caption = "有效"; this.txtisEnabled.Properties.NullStyle = DevExpress.XtraEditors.Controls.StyleIndeterminate.Unchecked; - this.txtisEnabled.Size = new System.Drawing.Size(210, 19); + this.txtisEnabled.Size = new System.Drawing.Size(142, 19); this.txtisEnabled.StyleController = this.layoutControl1; this.txtisEnabled.TabIndex = 6; // @@ -549,12 +560,12 @@ namespace MES.Form // txtisForm // this.txtisForm.EditValue = null; - this.txtisForm.Location = new System.Drawing.Point(654, 62); + this.txtisForm.Location = new System.Drawing.Point(586, 62); this.txtisForm.Name = "txtisForm"; this.txtisForm.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default; this.txtisForm.Properties.Caption = "是否界面"; this.txtisForm.Properties.NullStyle = DevExpress.XtraEditors.Controls.StyleIndeterminate.Unchecked; - this.txtisForm.Size = new System.Drawing.Size(211, 19); + this.txtisForm.Size = new System.Drawing.Size(147, 19); this.txtisForm.StyleController = this.layoutControl1; this.txtisForm.TabIndex = 12; // @@ -577,7 +588,8 @@ namespace MES.Form this.layoutControlItem11, this.layoutControlItem13, this.layoutControlItem14, - this.layoutControlItem2}); + this.layoutControlItem2, + this.layoutControlItem15}); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(877, 475); this.layoutControlGroup1.TextVisible = false; @@ -658,7 +670,7 @@ namespace MES.Form this.layoutControlItem6.CustomizationFormText = "有效"; this.layoutControlItem6.Location = new System.Drawing.Point(428, 50); this.layoutControlItem6.Name = "layoutControlItem6"; - this.layoutControlItem6.Size = new System.Drawing.Size(214, 24); + this.layoutControlItem6.Size = new System.Drawing.Size(146, 24); this.layoutControlItem6.Text = "有效"; this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem6.TextVisible = false; @@ -667,9 +679,9 @@ namespace MES.Form // this.layoutControlItem12.Control = this.txtisForm; this.layoutControlItem12.CustomizationFormText = "是否界面"; - this.layoutControlItem12.Location = new System.Drawing.Point(642, 50); + this.layoutControlItem12.Location = new System.Drawing.Point(574, 50); this.layoutControlItem12.Name = "layoutControlItem12"; - this.layoutControlItem12.Size = new System.Drawing.Size(215, 24); + this.layoutControlItem12.Size = new System.Drawing.Size(151, 24); this.layoutControlItem12.Text = "是否界面"; this.layoutControlItem12.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem12.TextVisible = false; @@ -733,6 +745,38 @@ namespace MES.Form // this.xtraOpenFileDialog1.FileName = "xtraOpenFileDialog1"; // + // gridColumn14 + // + this.gridColumn14.Caption = "是否功能按钮"; + this.gridColumn14.ColumnEdit = this.repositoryItemCheckEdit1; + this.gridColumn14.FieldName = "isToolBtn"; + this.gridColumn14.Name = "gridColumn14"; + this.gridColumn14.Visible = true; + this.gridColumn14.VisibleIndex = 8; + // + // repositoryItemCheckEdit1 + // + this.repositoryItemCheckEdit1.AutoHeight = false; + this.repositoryItemCheckEdit1.Name = "repositoryItemCheckEdit1"; + // + // txtisToolBtn + // + this.txtisToolBtn.Location = new System.Drawing.Point(737, 62); + this.txtisToolBtn.Name = "txtisToolBtn"; + this.txtisToolBtn.Properties.Caption = "是否功能按钮"; + this.txtisToolBtn.Size = new System.Drawing.Size(128, 19); + this.txtisToolBtn.StyleController = this.layoutControl1; + this.txtisToolBtn.TabIndex = 16; + // + // layoutControlItem15 + // + this.layoutControlItem15.Control = this.txtisToolBtn; + this.layoutControlItem15.Location = new System.Drawing.Point(725, 50); + this.layoutControlItem15.Name = "layoutControlItem15"; + this.layoutControlItem15.Size = new System.Drawing.Size(132, 24); + this.layoutControlItem15.TextSize = new System.Drawing.Size(0, 0); + this.layoutControlItem15.TextVisible = false; + // // FrmsysMenu // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); @@ -740,7 +784,7 @@ namespace MES.Form this.ClientSize = new System.Drawing.Size(887, 542); this.Controls.Add(this.xtraTabControl1); this.Name = "FrmsysMenu"; - this.Text = "FrmsysMenu"; + this.Text = "菜单维护"; this.Load += new System.EventHandler(this.FrmsysMenu_Load); this.Controls.SetChildIndex(this.xtraTabControl1, 0); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtpid)).EndInit(); @@ -789,6 +833,9 @@ namespace MES.Form ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtisToolBtn.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit(); this.ResumeLayout(false); } @@ -863,5 +910,9 @@ namespace MES.Form private LayoutControlItem layoutControlItem14; private TextEdit txtname; private LayoutControlItem layoutControlItem2; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn14; + private DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit repositoryItemCheckEdit1; + private CheckEdit txtisToolBtn; + private LayoutControlItem layoutControlItem15; } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/FrmsysUser.cs b/WinformGeneralDeveloperFrame/Form/FrmsysUser.cs index 7ee99f7..bfeb9c5 100644 --- a/WinformGeneralDeveloperFrame/Form/FrmsysUser.cs +++ b/WinformGeneralDeveloperFrame/Form/FrmsysUser.cs @@ -17,13 +17,14 @@ namespace MES.Form { public partial class FrmsysUser : FrmBaseForm { - public FrmsysUser() + private Dictionary fieldDictionary = new Dictionary(); + public FrmsysUser() { InitializeComponent(); } private void FrmsysUser_Load(object sender, EventArgs e) - { - + { + InitSearchDicData(); InitFrom(xtraTabControl1, grdList, grdListView, new LayoutControlGroup[] { layoutControlGroup1 }, new sysUserInfo()); } private void Init() @@ -37,7 +38,11 @@ namespace MES.Form repositoryItemtxteditorId.DataSource = GetDataTableUtils.SqlTable("用户"); } - + private void InitSearchDicData() + { + fieldDictionary.Add("用户名", "username"); + fieldDictionary.Add("工号", "account"); + } public override bool SaveFunction() { try @@ -135,5 +140,39 @@ namespace MES.Form } return true; } - } + public override void SearchFunction() + { + FrmSearch frm = new FrmSearch(fieldDictionary); + if (frm.ShowDialog() == DialogResult.OK) + { + string sql = frm.sql; + using (var db = new MESDB()) + { + if (string.IsNullOrEmpty(sql)) + { + grdList.DataSource = db.sysUserInfo.SqlQuery("select * from sysUser").ToList(); + } + else + { + grdList.DataSource = db.sysUserInfo.SqlQuery($"select * from sysUser where {sql}").ToList(); + } + } + } + } + + private void txtaccount_Leave(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(txtid.Text)) + { + using (var con = new MESDB()) + { + if (con.sysUserInfo.Where(p => p.account.Equals(txtaccount.Text)).Count() > 0) + { + txtaccount.Focus(); + "工号已存在!".ShowWarning(); + } + } + } + } + } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/FrmsysUser.designer.cs b/WinformGeneralDeveloperFrame/Form/FrmsysUser.designer.cs index 771cbec..48afe00 100644 --- a/WinformGeneralDeveloperFrame/Form/FrmsysUser.designer.cs +++ b/WinformGeneralDeveloperFrame/Form/FrmsysUser.designer.cs @@ -366,6 +366,7 @@ namespace MES.Form this.txtaccount.Size = new System.Drawing.Size(224, 20); this.txtaccount.StyleController = this.layoutControl1; this.txtaccount.TabIndex = 2; + this.txtaccount.Leave += new System.EventHandler(this.txtaccount_Leave); // // txtusername // @@ -646,7 +647,7 @@ namespace MES.Form this.ClientSize = new System.Drawing.Size(587, 500); this.Controls.Add(this.xtraTabControl1); this.Name = "FrmsysUser"; - this.Text = "FrmsysUser"; + this.Text = "用户维护"; this.Load += new System.EventHandler(this.FrmsysUser_Load); this.Controls.SetChildIndex(this.xtraTabControl1, 0); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtdeptId)).EndInit(); diff --git a/WinformGeneralDeveloperFrame/FrmBaseForm.cs b/WinformGeneralDeveloperFrame/FrmBaseForm.cs index 1bbb815..7c4b2f4 100644 --- a/WinformGeneralDeveloperFrame/FrmBaseForm.cs +++ b/WinformGeneralDeveloperFrame/FrmBaseForm.cs @@ -75,13 +75,17 @@ namespace WinformGeneralDeveloperFrame xtraTab.TabPages[0].PageEnabled = false; ClearScreen(); DateEdit dt = (DateEdit)this.getControl("txtcreateTime"); - dt.DateTime = DateTime.Now; + if (dt != null) + dt.DateTime = DateTime.Now; LookUpEditBase look= (LookUpEditBase)this.getControl("txtcreatorId"); DateEdit dt1 = (DateEdit)this.getControl("txteditTime"); - dt1.DateTime = DateTime.Now; + if (dt1 != null) + dt1.DateTime = DateTime.Now; LookUpEditBase look1 = (LookUpEditBase)this.getControl("txteditorId"); - look1.EditValue = AppInfo.LoginUserInfo.id; - look.EditValue = AppInfo.LoginUserInfo.id; + if (look1 != null) + look1.EditValue = AppInfo.LoginUserInfo.id; + if (look != null) + look.EditValue = AppInfo.LoginUserInfo.id; SetControlStatus(controlGroups, false); InitToolBtntatus(EFormStatus.eAdd); AddFunction(); @@ -94,9 +98,11 @@ namespace WinformGeneralDeveloperFrame { xtraTab.TabPages[0].PageEnabled = false; DateEdit dt =(DateEdit) this.getControl("txteditTime"); - dt.DateTime=DateTime.Now; + if(dt!=null) + dt.DateTime=DateTime.Now; LookUpEditBase look = (LookUpEditBase)this.getControl("txteditorId"); - look.EditValue = AppInfo.LoginUserInfo.id; + if (look != null) + look.EditValue = AppInfo.LoginUserInfo.id; SetControlStatus(controlGroups, false); InitToolBtntatus(EFormStatus.eEdit); EditFunction(); diff --git a/WinformGeneralDeveloperFrame/FrmSearch.Designer.cs b/WinformGeneralDeveloperFrame/FrmSearch.Designer.cs index ad5fbde..f8f47b1 100644 --- a/WinformGeneralDeveloperFrame/FrmSearch.Designer.cs +++ b/WinformGeneralDeveloperFrame/FrmSearch.Designer.cs @@ -30,48 +30,43 @@ namespace WinformGeneralDeveloperFrame private void InitializeComponent() { this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); + this.btncanel = new DevExpress.XtraEditors.SimpleButton(); + this.btnok = new DevExpress.XtraEditors.SimpleButton(); + this.txtvalue = new DevExpress.XtraEditors.TextEdit(); + this.txtrelation = new DevExpress.XtraEditors.ComboBoxEdit(); this.txtSql = new DevExpress.XtraEditors.MemoEdit(); this.btnadd = new DevExpress.XtraEditors.SimpleButton(); + this.txtoperator = new DevExpress.XtraEditors.ComboBoxEdit(); this.txtField = new DevExpress.XtraEditors.ComboBoxEdit(); this.Root = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txtoperator = new DevExpress.XtraEditors.ComboBoxEdit(); - this.txtrelation = new DevExpress.XtraEditors.ComboBoxEdit(); this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txtvalue = new DevExpress.XtraEditors.TextEdit(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); - this.btnok = new DevExpress.XtraEditors.SimpleButton(); this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); - this.btncanel = new DevExpress.XtraEditors.SimpleButton(); this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txtsort = new DevExpress.XtraEditors.CheckEdit(); - this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txtvalue.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtrelation.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtSql.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtoperator.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtField.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtoperator.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtrelation.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtvalue.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsort.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); this.SuspendLayout(); // // layoutControl1 // - this.layoutControl1.Controls.Add(this.txtsort); this.layoutControl1.Controls.Add(this.btncanel); this.layoutControl1.Controls.Add(this.btnok); this.layoutControl1.Controls.Add(this.txtvalue); @@ -84,28 +79,88 @@ namespace WinformGeneralDeveloperFrame this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.Root; - this.layoutControl1.Size = new System.Drawing.Size(737, 430); + this.layoutControl1.Size = new System.Drawing.Size(536, 299); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; // + // btncanel + // + this.btncanel.Location = new System.Drawing.Point(270, 265); + this.btncanel.Name = "btncanel"; + this.btncanel.Size = new System.Drawing.Size(254, 22); + this.btncanel.StyleController = this.layoutControl1; + this.btncanel.TabIndex = 13; + this.btncanel.Text = "取消"; + this.btncanel.Click += new System.EventHandler(this.btncanel_Click); + // + // btnok + // + this.btnok.Location = new System.Drawing.Point(12, 265); + this.btnok.Name = "btnok"; + this.btnok.Size = new System.Drawing.Size(254, 22); + this.btnok.StyleController = this.layoutControl1; + this.btnok.TabIndex = 12; + this.btnok.Text = "确定"; + this.btnok.Click += new System.EventHandler(this.btnok_Click); + // + // txtvalue + // + this.txtvalue.Location = new System.Drawing.Point(222, 12); + this.txtvalue.Name = "txtvalue"; + this.txtvalue.Size = new System.Drawing.Size(97, 20); + this.txtvalue.StyleController = this.layoutControl1; + this.txtvalue.TabIndex = 11; + // + // txtrelation + // + this.txtrelation.EditValue = "与-and"; + this.txtrelation.Location = new System.Drawing.Point(364, 12); + this.txtrelation.Name = "txtrelation"; + this.txtrelation.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtrelation.Properties.Items.AddRange(new object[] { + "与-and", + "或-or"}); + this.txtrelation.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; + this.txtrelation.Size = new System.Drawing.Size(71, 20); + this.txtrelation.StyleController = this.layoutControl1; + this.txtrelation.TabIndex = 10; + // // txtSql // this.txtSql.Location = new System.Drawing.Point(12, 38); this.txtSql.Name = "txtSql"; - this.txtSql.Size = new System.Drawing.Size(713, 354); + this.txtSql.Size = new System.Drawing.Size(512, 223); this.txtSql.StyleController = this.layoutControl1; this.txtSql.TabIndex = 8; // // btnadd // - this.btnadd.Location = new System.Drawing.Point(657, 12); + this.btnadd.Location = new System.Drawing.Point(439, 12); this.btnadd.Name = "btnadd"; - this.btnadd.Size = new System.Drawing.Size(68, 22); + this.btnadd.Size = new System.Drawing.Size(85, 22); this.btnadd.StyleController = this.layoutControl1; this.btnadd.TabIndex = 7; this.btnadd.Text = "增加"; this.btnadd.Click += new System.EventHandler(this.btnadd_Click); // + // txtoperator + // + this.txtoperator.EditValue = "等于-="; + this.txtoperator.Location = new System.Drawing.Point(136, 12); + this.txtoperator.Name = "txtoperator"; + this.txtoperator.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtoperator.Properties.Items.AddRange(new object[] { + "等于-=", + "大于->", + "小于-<", + "包含-like"}); + this.txtoperator.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; + this.txtoperator.Size = new System.Drawing.Size(67, 20); + this.txtoperator.StyleController = this.layoutControl1; + this.txtoperator.TabIndex = 5; + // // txtField // this.txtField.Location = new System.Drawing.Point(41, 12); @@ -113,7 +168,7 @@ namespace WinformGeneralDeveloperFrame this.txtField.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.txtField.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; - this.txtField.Size = new System.Drawing.Size(140, 20); + this.txtField.Size = new System.Drawing.Size(91, 20); this.txtField.StyleController = this.layoutControl1; this.txtField.TabIndex = 4; // @@ -129,10 +184,9 @@ namespace WinformGeneralDeveloperFrame this.layoutControlItem6, this.layoutControlItem3, this.layoutControlItem7, - this.layoutControlItem8, - this.layoutControlItem9}); + this.layoutControlItem8}); this.Root.Name = "Root"; - this.Root.Size = new System.Drawing.Size(737, 430); + this.Root.Size = new System.Drawing.Size(536, 299); this.Root.TextVisible = false; // // layoutControlItem1 @@ -140,18 +194,27 @@ namespace WinformGeneralDeveloperFrame this.layoutControlItem1.Control = this.txtField; this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); this.layoutControlItem1.Name = "layoutControlItem1"; - this.layoutControlItem1.Size = new System.Drawing.Size(173, 26); + this.layoutControlItem1.Size = new System.Drawing.Size(124, 26); this.layoutControlItem1.Text = "字段"; this.layoutControlItem1.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize; this.layoutControlItem1.TextSize = new System.Drawing.Size(24, 14); this.layoutControlItem1.TextToControlDistance = 5; // + // layoutControlItem2 + // + this.layoutControlItem2.Control = this.txtoperator; + this.layoutControlItem2.Location = new System.Drawing.Point(124, 0); + this.layoutControlItem2.Name = "layoutControlItem2"; + this.layoutControlItem2.Size = new System.Drawing.Size(71, 26); + this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); + this.layoutControlItem2.TextVisible = false; + // // layoutControlItem4 // this.layoutControlItem4.Control = this.btnadd; - this.layoutControlItem4.Location = new System.Drawing.Point(645, 0); + this.layoutControlItem4.Location = new System.Drawing.Point(427, 0); this.layoutControlItem4.Name = "layoutControlItem4"; - this.layoutControlItem4.Size = new System.Drawing.Size(72, 26); + this.layoutControlItem4.Size = new System.Drawing.Size(89, 26); this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem4.TextVisible = false; // @@ -160,164 +223,74 @@ namespace WinformGeneralDeveloperFrame this.layoutControlItem5.Control = this.txtSql; this.layoutControlItem5.Location = new System.Drawing.Point(0, 26); this.layoutControlItem5.Name = "layoutControlItem5"; - this.layoutControlItem5.Size = new System.Drawing.Size(717, 358); + this.layoutControlItem5.Size = new System.Drawing.Size(516, 227); this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem5.TextVisible = false; // - // layoutControlItem2 - // - this.layoutControlItem2.Control = this.txtoperator; - this.layoutControlItem2.Location = new System.Drawing.Point(173, 0); - this.layoutControlItem2.Name = "layoutControlItem2"; - this.layoutControlItem2.Size = new System.Drawing.Size(99, 26); - this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); - this.layoutControlItem2.TextVisible = false; - // - // txtoperator - // - this.txtoperator.EditValue = "等于-="; - this.txtoperator.Location = new System.Drawing.Point(185, 12); - this.txtoperator.Name = "txtoperator"; - this.txtoperator.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { - new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); - this.txtoperator.Properties.Items.AddRange(new object[] { - "等于-=", - "大于->", - "小于-<", - "包含-like"}); - this.txtoperator.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; - this.txtoperator.Size = new System.Drawing.Size(95, 20); - this.txtoperator.StyleController = this.layoutControl1; - this.txtoperator.TabIndex = 5; - // - // txtrelation - // - this.txtrelation.EditValue = "与-and"; - this.txtrelation.Location = new System.Drawing.Point(486, 12); - this.txtrelation.Name = "txtrelation"; - this.txtrelation.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { - new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); - this.txtrelation.Properties.Items.AddRange(new object[] { - "与-and", - "或-or"}); - this.txtrelation.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; - this.txtrelation.Size = new System.Drawing.Size(116, 20); - this.txtrelation.StyleController = this.layoutControl1; - this.txtrelation.TabIndex = 10; - // // layoutControlItem6 // this.layoutControlItem6.Control = this.txtrelation; - this.layoutControlItem6.Location = new System.Drawing.Point(433, 0); + this.layoutControlItem6.Location = new System.Drawing.Point(311, 0); this.layoutControlItem6.Name = "layoutControlItem6"; - this.layoutControlItem6.Size = new System.Drawing.Size(161, 26); + this.layoutControlItem6.Size = new System.Drawing.Size(116, 26); this.layoutControlItem6.Text = "关系符"; this.layoutControlItem6.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize; this.layoutControlItem6.TextSize = new System.Drawing.Size(36, 14); this.layoutControlItem6.TextToControlDistance = 5; // - // txtvalue - // - this.txtvalue.Location = new System.Drawing.Point(299, 12); - this.txtvalue.Name = "txtvalue"; - this.txtvalue.Size = new System.Drawing.Size(142, 20); - this.txtvalue.StyleController = this.layoutControl1; - this.txtvalue.TabIndex = 11; - // // layoutControlItem3 // this.layoutControlItem3.Control = this.txtvalue; - this.layoutControlItem3.Location = new System.Drawing.Point(272, 0); + this.layoutControlItem3.Location = new System.Drawing.Point(195, 0); this.layoutControlItem3.Name = "layoutControlItem3"; - this.layoutControlItem3.Size = new System.Drawing.Size(161, 26); + this.layoutControlItem3.Size = new System.Drawing.Size(116, 26); this.layoutControlItem3.Text = "值"; this.layoutControlItem3.TextSize = new System.Drawing.Size(12, 14); // - // btnok - // - this.btnok.Location = new System.Drawing.Point(12, 396); - this.btnok.Name = "btnok"; - this.btnok.Size = new System.Drawing.Size(354, 22); - this.btnok.StyleController = this.layoutControl1; - this.btnok.TabIndex = 12; - this.btnok.Text = "确定"; - this.btnok.Click += new System.EventHandler(this.btnok_Click); - // // layoutControlItem7 // this.layoutControlItem7.Control = this.btnok; - this.layoutControlItem7.Location = new System.Drawing.Point(0, 384); + this.layoutControlItem7.Location = new System.Drawing.Point(0, 253); this.layoutControlItem7.Name = "layoutControlItem7"; - this.layoutControlItem7.Size = new System.Drawing.Size(358, 26); + this.layoutControlItem7.Size = new System.Drawing.Size(258, 26); this.layoutControlItem7.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem7.TextVisible = false; // - // btncanel - // - this.btncanel.Location = new System.Drawing.Point(370, 396); - this.btncanel.Name = "btncanel"; - this.btncanel.Size = new System.Drawing.Size(355, 22); - this.btncanel.StyleController = this.layoutControl1; - this.btncanel.TabIndex = 13; - this.btncanel.Text = "取消"; - this.btncanel.Click += new System.EventHandler(this.btncanel_Click); - // // layoutControlItem8 // this.layoutControlItem8.Control = this.btncanel; - this.layoutControlItem8.Location = new System.Drawing.Point(358, 384); + this.layoutControlItem8.Location = new System.Drawing.Point(258, 253); this.layoutControlItem8.Name = "layoutControlItem8"; - this.layoutControlItem8.Size = new System.Drawing.Size(359, 26); + this.layoutControlItem8.Size = new System.Drawing.Size(258, 26); this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem8.TextVisible = false; // - // txtsort - // - this.txtsort.Location = new System.Drawing.Point(606, 12); - this.txtsort.Name = "txtsort"; - this.txtsort.Properties.Caption = "排序"; - this.txtsort.Size = new System.Drawing.Size(47, 19); - this.txtsort.StyleController = this.layoutControl1; - this.txtsort.TabIndex = 14; - // - // layoutControlItem9 - // - this.layoutControlItem9.Control = this.txtsort; - this.layoutControlItem9.Location = new System.Drawing.Point(594, 0); - this.layoutControlItem9.Name = "layoutControlItem9"; - this.layoutControlItem9.Size = new System.Drawing.Size(51, 26); - this.layoutControlItem9.Text = "排序"; - this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0); - this.layoutControlItem9.TextVisible = false; - // // FrmSearch // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(737, 430); + this.ClientSize = new System.Drawing.Size(536, 299); this.Controls.Add(this.layoutControl1); this.Name = "FrmSearch"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "FrmSearch"; + this.Text = "搜索"; this.Load += new System.EventHandler(this.FrmSearch_Load); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.txtvalue.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtrelation.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtSql.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtoperator.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtField.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtoperator.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtrelation.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtvalue.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsort.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); this.ResumeLayout(false); } @@ -342,7 +315,5 @@ namespace WinformGeneralDeveloperFrame private DevExpress.XtraEditors.SimpleButton btnok; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8; - private DevExpress.XtraEditors.CheckEdit txtsort; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9; } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/FrmsysDataBase.designer.cs b/WinformGeneralDeveloperFrame/FrmsysDataBase.designer.cs index e142c13..dfc23ca 100644 --- a/WinformGeneralDeveloperFrame/FrmsysDataBase.designer.cs +++ b/WinformGeneralDeveloperFrame/FrmsysDataBase.designer.cs @@ -434,7 +434,7 @@ namespace MES.Form this.ClientSize = new System.Drawing.Size(1300, 800); this.Controls.Add(this.xtraTabControl1); this.Name = "FrmsysDataBase"; - this.Text = "数据源"; + this.Text = "数据源维护"; this.Load += new System.EventHandler(this.FrmsysDataBase_Load); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); this.xtraTabControl1.ResumeLayout(false); diff --git a/WinformGeneralDeveloperFrame/FrmsysDataTable.designer.cs b/WinformGeneralDeveloperFrame/FrmsysDataTable.designer.cs index d273490..677c369 100644 --- a/WinformGeneralDeveloperFrame/FrmsysDataTable.designer.cs +++ b/WinformGeneralDeveloperFrame/FrmsysDataTable.designer.cs @@ -116,10 +116,10 @@ namespace MES.Form // xtraTabControl1 // this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.xtraTabControl1.Location = new System.Drawing.Point(0, 34); + this.xtraTabControl1.Location = new System.Drawing.Point(0, 0); this.xtraTabControl1.Name = "xtraTabControl1"; this.xtraTabControl1.SelectedTabPage = this.tabDataList; - this.xtraTabControl1.Size = new System.Drawing.Size(1300, 766); + this.xtraTabControl1.Size = new System.Drawing.Size(1300, 800); this.xtraTabControl1.TabIndex = 1; this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { this.tabDataList, @@ -129,7 +129,7 @@ namespace MES.Form // this.tabDataList.Controls.Add(this.grdList); this.tabDataList.Name = "tabDataList"; - this.tabDataList.Size = new System.Drawing.Size(1294, 737); + this.tabDataList.Size = new System.Drawing.Size(1294, 771); this.tabDataList.Text = "数据列表"; // // grdList @@ -138,7 +138,7 @@ namespace MES.Form this.grdList.Location = new System.Drawing.Point(0, 0); this.grdList.MainView = this.grdListView; this.grdList.Name = "grdList"; - this.grdList.Size = new System.Drawing.Size(1294, 737); + this.grdList.Size = new System.Drawing.Size(1294, 771); this.grdList.TabIndex = 0; this.grdList.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.grdListView}); @@ -355,9 +355,8 @@ namespace MES.Form this.ClientSize = new System.Drawing.Size(1300, 800); this.Controls.Add(this.xtraTabControl1); this.Name = "FrmsysDataTable"; - this.Text = "数据集"; + this.Text = "数据集维护"; this.Load += new System.EventHandler(this.FrmsysDataTable_Load); - this.Controls.SetChildIndex(this.xtraTabControl1, 0); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); this.xtraTabControl1.ResumeLayout(false); this.tabDataList.ResumeLayout(false); diff --git a/WinformGeneralDeveloperFrame/MainForm.Designer.cs b/WinformGeneralDeveloperFrame/MainForm.Designer.cs index 0c242cf..cb59938 100644 --- a/WinformGeneralDeveloperFrame/MainForm.Designer.cs +++ b/WinformGeneralDeveloperFrame/MainForm.Designer.cs @@ -40,6 +40,8 @@ namespace WinformGeneralDeveloperFrame this.barListItem1 = new DevExpress.XtraBars.BarListItem(); this.barUserName = new DevExpress.XtraBars.BarStaticItem(); this.barStaticItem3 = new DevExpress.XtraBars.BarStaticItem(); + this.btnabout = new DevExpress.XtraBars.BarButtonItem(); + this.barButtonItem1 = new DevExpress.XtraBars.BarButtonItem(); this.ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonStatusBar1 = new DevExpress.XtraBars.Ribbon.RibbonStatusBar(); @@ -48,6 +50,7 @@ namespace WinformGeneralDeveloperFrame this.timer1 = new System.Windows.Forms.Timer(this.components); this.bsi_UserName = new DevExpress.XtraBars.BarStaticItem(); this.barStaticItem1 = new DevExpress.XtraBars.BarStaticItem(); + this.barButtonItem2 = new DevExpress.XtraBars.BarButtonItem(); ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTimeEdit1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabbedMdiManager1)).BeginInit(); @@ -66,9 +69,12 @@ namespace WinformGeneralDeveloperFrame this.bsi_Date, this.barListItem1, this.barUserName, - this.barStaticItem3}); + this.barStaticItem3, + this.btnabout, + this.barButtonItem1, + this.barButtonItem2}); this.ribbonControl1.Location = new System.Drawing.Point(0, 0); - this.ribbonControl1.MaxItemId = 8; + this.ribbonControl1.MaxItemId = 11; this.ribbonControl1.Name = "ribbonControl1"; this.ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { this.ribbonPage1}); @@ -138,17 +144,35 @@ namespace WinformGeneralDeveloperFrame this.barStaticItem3.Id = 7; this.barStaticItem3.Name = "barStaticItem3"; // + // btnabout + // + this.btnabout.Caption = "关于"; + this.btnabout.Id = 8; + this.btnabout.ImageOptions.Image = global::WinformGeneralDeveloperFrame.Properties.Resources.operatingsystem_16x16; + this.btnabout.ImageOptions.LargeImage = global::WinformGeneralDeveloperFrame.Properties.Resources.operatingsystem_32x32; + this.btnabout.Name = "btnabout"; + this.btnabout.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonItemStyles.Large; + // + // barButtonItem1 + // + this.barButtonItem1.Caption = "bug反馈 "; + this.barButtonItem1.Id = 9; + this.barButtonItem1.ImageOptions.Image = global::WinformGeneralDeveloperFrame.Properties.Resources.mail_16x16; + this.barButtonItem1.ImageOptions.LargeImage = global::WinformGeneralDeveloperFrame.Properties.Resources.mail_32x32; + this.barButtonItem1.Name = "barButtonItem1"; + // // ribbonPage1 // this.ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.ribbonPageGroup1}); this.ribbonPage1.Name = "ribbonPage1"; - this.ribbonPage1.Text = "ribbonPage1"; + this.ribbonPage1.Text = "帮助"; // // ribbonPageGroup1 // + this.ribbonPageGroup1.ItemLinks.Add(this.barButtonItem1); + this.ribbonPageGroup1.ItemLinks.Add(this.btnabout); this.ribbonPageGroup1.Name = "ribbonPageGroup1"; - this.ribbonPageGroup1.Text = "ribbonPageGroup1"; // // ribbonStatusBar1 // @@ -198,6 +222,12 @@ namespace WinformGeneralDeveloperFrame this.barStaticItem1.Name = "barStaticItem1"; this.barStaticItem1.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph; // + // barButtonItem2 + // + this.barButtonItem2.Caption = "barButtonItem2"; + this.barButtonItem2.Id = 10; + this.barButtonItem2.Name = "barButtonItem2"; + // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); @@ -211,7 +241,7 @@ namespace WinformGeneralDeveloperFrame this.Ribbon = this.ribbonControl1; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.StatusBar = this.ribbonStatusBar1; - this.Text = "Form1"; + this.Text = "主界面"; this.Load += new System.EventHandler(this.MainForm_Load); ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTimeEdit1)).EndInit(); @@ -241,6 +271,9 @@ namespace WinformGeneralDeveloperFrame private DevExpress.XtraBars.BarStaticItem barStaticItem3; private DevExpress.XtraBars.BarStaticItem bsi_UserName; private DevExpress.XtraBars.BarStaticItem barStaticItem1; + private DevExpress.XtraBars.BarButtonItem btnabout; + private DevExpress.XtraBars.BarButtonItem barButtonItem1; + private DevExpress.XtraBars.BarButtonItem barButtonItem2; } } diff --git a/WinformGeneralDeveloperFrame/Properties/Resources.Designer.cs b/WinformGeneralDeveloperFrame/Properties/Resources.Designer.cs index 12f5f60..7e8b9a5 100644 --- a/WinformGeneralDeveloperFrame/Properties/Resources.Designer.cs +++ b/WinformGeneralDeveloperFrame/Properties/Resources.Designer.cs @@ -220,6 +220,46 @@ namespace WinformGeneralDeveloperFrame.Properties { } } + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap mail_16x16 { + get { + object obj = ResourceManager.GetObject("mail_16x16", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap mail_32x32 { + get { + object obj = ResourceManager.GetObject("mail_32x32", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap operatingsystem_16x16 { + get { + object obj = ResourceManager.GetObject("operatingsystem_16x16", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap operatingsystem_32x32 { + get { + object obj = ResourceManager.GetObject("operatingsystem_32x32", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// diff --git a/WinformGeneralDeveloperFrame/Properties/Resources.resx b/WinformGeneralDeveloperFrame/Properties/Resources.resx index 2e72fe7..ad422a5 100644 --- a/WinformGeneralDeveloperFrame/Properties/Resources.resx +++ b/WinformGeneralDeveloperFrame/Properties/Resources.resx @@ -142,6 +142,9 @@ ..\Resources\bosaleitem_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\operatingsystem_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\bosaleitem_32x321.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -157,17 +160,26 @@ ..\Resources\database_32x321.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\boscheduler_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\bocustomer_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\team_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\folderpanel_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\build_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\boscheduler_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\mail_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\operatingsystem_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\boreport_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -178,7 +190,7 @@ ..\Resources\bocustomer_32x321.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\team_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\mail_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Resources/mail_16x16.png b/WinformGeneralDeveloperFrame/Resources/mail_16x16.png new file mode 100644 index 0000000..f10fe5a Binary files /dev/null and b/WinformGeneralDeveloperFrame/Resources/mail_16x16.png differ diff --git a/WinformGeneralDeveloperFrame/Resources/mail_32x32.png b/WinformGeneralDeveloperFrame/Resources/mail_32x32.png new file mode 100644 index 0000000..50a9fb3 Binary files /dev/null and b/WinformGeneralDeveloperFrame/Resources/mail_32x32.png differ diff --git a/WinformGeneralDeveloperFrame/Resources/operatingsystem_16x16.png b/WinformGeneralDeveloperFrame/Resources/operatingsystem_16x16.png new file mode 100644 index 0000000..5464b0e Binary files /dev/null and b/WinformGeneralDeveloperFrame/Resources/operatingsystem_16x16.png differ diff --git a/WinformGeneralDeveloperFrame/Resources/operatingsystem_32x32.png b/WinformGeneralDeveloperFrame/Resources/operatingsystem_32x32.png new file mode 100644 index 0000000..25e4935 Binary files /dev/null and b/WinformGeneralDeveloperFrame/Resources/operatingsystem_32x32.png differ diff --git a/WinformGeneralDeveloperFrame/Template/Winform/Form.vm b/WinformGeneralDeveloperFrame/Template/Winform/Form.vm index 534ae44..c5d48d7 100644 --- a/WinformGeneralDeveloperFrame/Template/Winform/Form.vm +++ b/WinformGeneralDeveloperFrame/Template/Winform/Form.vm @@ -74,7 +74,7 @@ namespace ${NameSpace}.Form { #foreach($info in $EntityList) #if(${info.isSearch}) - fieldDictionary.Add("${info.controlLabelName}","${info.dataBaseFieldName"); + fieldDictionary.Add("${info.controlLabelName}","${info.dataBaseFieldName}"); #end #end } diff --git a/WinformGeneralDeveloperFrame/Test.Designer.cs b/WinformGeneralDeveloperFrame/Test.Designer.cs new file mode 100644 index 0000000..ca1dcce --- /dev/null +++ b/WinformGeneralDeveloperFrame/Test.Designer.cs @@ -0,0 +1,85 @@ + +namespace WinformGeneralDeveloperFrame +{ + partial class Test + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.memoEdit1 = new DevExpress.XtraEditors.MemoEdit(); + this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); + this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton(); + ((System.ComponentModel.ISupportInitialize)(this.memoEdit1.Properties)).BeginInit(); + this.SuspendLayout(); + // + // memoEdit1 + // + this.memoEdit1.Dock = System.Windows.Forms.DockStyle.Top; + this.memoEdit1.Location = new System.Drawing.Point(0, 0); + this.memoEdit1.Name = "memoEdit1"; + this.memoEdit1.Size = new System.Drawing.Size(865, 298); + this.memoEdit1.TabIndex = 0; + // + // simpleButton1 + // + this.simpleButton1.Location = new System.Drawing.Point(203, 304); + this.simpleButton1.Name = "simpleButton1"; + this.simpleButton1.Size = new System.Drawing.Size(139, 48); + this.simpleButton1.TabIndex = 1; + this.simpleButton1.Text = "转化"; + this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click); + // + // simpleButton2 + // + this.simpleButton2.Location = new System.Drawing.Point(383, 304); + this.simpleButton2.Name = "simpleButton2"; + this.simpleButton2.Size = new System.Drawing.Size(127, 48); + this.simpleButton2.TabIndex = 2; + this.simpleButton2.Text = "采集数据"; + this.simpleButton2.Click += new System.EventHandler(this.simpleButton2_Click); + // + // Test + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(865, 489); + this.Controls.Add(this.simpleButton2); + this.Controls.Add(this.simpleButton1); + this.Controls.Add(this.memoEdit1); + this.Name = "Test"; + this.Text = "Test"; + ((System.ComponentModel.ISupportInitialize)(this.memoEdit1.Properties)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private DevExpress.XtraEditors.MemoEdit memoEdit1; + private DevExpress.XtraEditors.SimpleButton simpleButton1; + private DevExpress.XtraEditors.SimpleButton simpleButton2; + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Test.cs b/WinformGeneralDeveloperFrame/Test.cs new file mode 100644 index 0000000..ec8ea55 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Test.cs @@ -0,0 +1,769 @@ +using DevExpress.XtraEditors; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Data.Entity.Migrations; +using System.Drawing; +using System.IO; +using System.Linq; +using System.Net; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using DevExpress.Data.Helpers; +using MES; +using MES.Entity; +using WinformGeneralDeveloperFrame.Commons; + +namespace WinformGeneralDeveloperFrame +{ + public partial class Test : DevExpress.XtraEditors.XtraForm + { + private bool flag = false; + public Test() + { + InitializeComponent(); + GetData(); + } + + private void simpleButton1_Click(object sender, EventArgs e) + { + var data = memoEdit1.Text.Split(")".ToCharArray()); + List list = new List(); + foreach (var item in data) + { + var dd = item.Split("(".ToCharArray()); + if(dd.Length!=2)continue; + stockInfo info = new stockInfo() { name = dd[0].Replace("\"",""), code = "sz" + dd[1] }; + list.Add(info); + } + using (var db = new MESDB()) + { + db.stockInfo.AddRange(list); + db.SaveChanges(); + } + } + + private void GetData() + { + Task.Factory.StartNew(() => + { + while (true) + { + if (flag) + { + var t1 = Task.Factory.StartNew(() => + { + try + { + string url = "http://hq.sinajs.cn/list={0}"; + var list = new MESDB().stockInfo.ToList().Skip(0).Take(200); + string code = ""; + foreach (var stockInfo in list) + { + code += stockInfo.code + ","; + } + url = string.Format(url, code); + HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); + request.Method = "GET"; + request.ContentType = "text/html;charset=UTF-8"; + request.UserAgent = null; + request.Timeout = 6000; + HttpWebResponse response = (HttpWebResponse)request.GetResponse(); + Stream myResponseStream = response.GetResponseStream(); + StreamReader myStreamReader = new StreamReader(myResponseStream, System.Text.Encoding.Default); + string retString = myStreamReader.ReadToEnd(); + string[] ResData = retString.Split(';'); + List list1 = new List(); + foreach (var item in ResData) + { + var data = item.Split('='); + if (data.Length == 2) + { + var dd = data[1].Split(','); + if (dd.Length >= 33) + { + stockInfo info = new stockInfo() + { + code = data[0].Split('_')[2], + name = dd[0].Replace("\"", ""), + startPrice = decimal.Parse(dd[1]), + olePrice = decimal.Parse(dd[2]), + nowPrice = decimal.Parse(dd[3]), + maxPrice = decimal.Parse(dd[4]), + minPrice = decimal.Parse(dd[5]), + bidderPrice = decimal.Parse(dd[6]), + auctionPrice = decimal.Parse(dd[7]), + turnover = int.Parse(dd[8]), + turnoverPrice = decimal.Parse(dd[9]), + buyOneNum = int.Parse(dd[10]), + buyOnePrice = decimal.Parse(dd[11]), + buyTwoNum = int.Parse(dd[12]), + buyTwoPrice = decimal.Parse(dd[13]), + buyThreeNum = int.Parse(dd[14]), + buyThreePrice = decimal.Parse(dd[15]), + buyFourNum = int.Parse(dd[16]), + buyFourPrice = decimal.Parse(dd[17]), + buyFiveNum = int.Parse(dd[18]), + buyFivePrice = decimal.Parse(dd[19]), + sellOneNum = int.Parse(dd[20]), + sellOnePrice = decimal.Parse(dd[21]), + sellTwoNum = int.Parse(dd[22]), + sellTwoPrice = decimal.Parse(dd[23]), + sellThreeNum = int.Parse(dd[24]), + sellThreePrice = decimal.Parse(dd[25]), + sellFourNum = int.Parse(dd[26]), + sellFourPrice = decimal.Parse(dd[27]), + sellFiveNum = int.Parse(dd[28]), + sellFivePrice = decimal.Parse(dd[29]), + timeStr = DateTime.Parse(dd[30] + " " + dd[31]) + }; + list1.Add(info); + } + } + } + using (var db = new MESDB()) + { + foreach (var info in list1) + { + db.stockInfo.AddOrUpdate(info); + } + db.SaveChanges(); + } + } + catch (Exception ex) + { + ex.Message.ShowError(); + } + }); + //var t2 = Task.Factory.StartNew(() => + //{ + // try + // { + // string url = "http://hq.sinajs.cn/list={0}"; + // var list = new MESDB().stockInfo.ToList().Skip(500).Take(500); + // string code = ""; + // foreach (var stockInfo in list) + // { + // code += stockInfo.code + ","; + // } + // url = string.Format(url, code); + // HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); + // request.Method = "GET"; + // request.ContentType = "text/html;charset=UTF-8"; + // request.UserAgent = null; + // request.Timeout = 6000; + // HttpWebResponse response = (HttpWebResponse)request.GetResponse(); + // Stream myResponseStream = response.GetResponseStream(); + // StreamReader myStreamReader = new StreamReader(myResponseStream, System.Text.Encoding.Default); + // string retString = myStreamReader.ReadToEnd(); + // string[] ResData = retString.Split(';'); + // List list1 = new List(); + // foreach (var item in ResData) + // { + // var data = item.Split('='); + // if (data.Length == 2) + // { + // var dd = data[1].Split(','); + // if (dd.Length >= 33) + // { + // stockInfo info = new stockInfo() + // { + // code = data[0].Split('_')[2], + // name = dd[0].Replace("\"", ""), + // startPrice = decimal.Parse(dd[1]), + // olePrice = decimal.Parse(dd[2]), + // nowPrice = decimal.Parse(dd[3]), + // maxPrice = decimal.Parse(dd[4]), + // minPrice = decimal.Parse(dd[5]), + // bidderPrice = decimal.Parse(dd[6]), + // auctionPrice = decimal.Parse(dd[7]), + // turnover = int.Parse(dd[8]), + // turnoverPrice = decimal.Parse(dd[9]), + // buyOneNum = int.Parse(dd[10]), + // buyOnePrice = decimal.Parse(dd[11]), + // buyTwoNum = int.Parse(dd[12]), + // buyTwoPrice = decimal.Parse(dd[13]), + // buyThreeNum = int.Parse(dd[14]), + // buyThreePrice = decimal.Parse(dd[15]), + // buyFourNum = int.Parse(dd[16]), + // buyFourPrice = decimal.Parse(dd[17]), + // buyFiveNum = int.Parse(dd[18]), + // buyFivePrice = decimal.Parse(dd[19]), + // sellOneNum = int.Parse(dd[20]), + // sellOnePrice = decimal.Parse(dd[21]), + // sellTwoNum = int.Parse(dd[22]), + // sellTwoPrice = decimal.Parse(dd[23]), + // sellThreeNum = int.Parse(dd[24]), + // sellThreePrice = decimal.Parse(dd[25]), + // sellFourNum = int.Parse(dd[26]), + // sellFourPrice = decimal.Parse(dd[27]), + // sellFiveNum = int.Parse(dd[28]), + // sellFivePrice = decimal.Parse(dd[29]), + // timeStr = DateTime.Parse(dd[30] + " " + dd[31]) + // }; + // list1.Add(info); + // } + // } + // } + // using (var db = new MESDB()) + // { + // foreach (var info in list1) + // { + // db.stockInfo.AddOrUpdate(info); + // } + // db.SaveChanges(); + // } + // } + // catch (Exception ex) + // { + // ex.Message.ShowError(); + // } + //}); + //var t3 = Task.Factory.StartNew(() => + //{ + // try + // { + // string url = "http://hq.sinajs.cn/list={0}"; + // var list = new MESDB().stockInfo.ToList().Skip(1000).Take(500); + // string code = ""; + // foreach (var stockInfo in list) + // { + // code += stockInfo.code + ","; + // } + // url = string.Format(url, code); + // HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); + // request.Method = "GET"; + // request.ContentType = "text/html;charset=UTF-8"; + // request.UserAgent = null; + // request.Timeout = 6000; + // HttpWebResponse response = (HttpWebResponse)request.GetResponse(); + // Stream myResponseStream = response.GetResponseStream(); + // StreamReader myStreamReader = new StreamReader(myResponseStream, System.Text.Encoding.Default); + // string retString = myStreamReader.ReadToEnd(); + // string[] ResData = retString.Split(';'); + // List list1 = new List(); + // foreach (var item in ResData) + // { + // var data = item.Split('='); + // if (data.Length == 2) + // { + // var dd = data[1].Split(','); + // if (dd.Length >= 33) + // { + // stockInfo info = new stockInfo() + // { + // code = data[0].Split('_')[2], + // name = dd[0].Replace("\"", ""), + // startPrice = decimal.Parse(dd[1]), + // olePrice = decimal.Parse(dd[2]), + // nowPrice = decimal.Parse(dd[3]), + // maxPrice = decimal.Parse(dd[4]), + // minPrice = decimal.Parse(dd[5]), + // bidderPrice = decimal.Parse(dd[6]), + // auctionPrice = decimal.Parse(dd[7]), + // turnover = int.Parse(dd[8]), + // turnoverPrice = decimal.Parse(dd[9]), + // buyOneNum = int.Parse(dd[10]), + // buyOnePrice = decimal.Parse(dd[11]), + // buyTwoNum = int.Parse(dd[12]), + // buyTwoPrice = decimal.Parse(dd[13]), + // buyThreeNum = int.Parse(dd[14]), + // buyThreePrice = decimal.Parse(dd[15]), + // buyFourNum = int.Parse(dd[16]), + // buyFourPrice = decimal.Parse(dd[17]), + // buyFiveNum = int.Parse(dd[18]), + // buyFivePrice = decimal.Parse(dd[19]), + // sellOneNum = int.Parse(dd[20]), + // sellOnePrice = decimal.Parse(dd[21]), + // sellTwoNum = int.Parse(dd[22]), + // sellTwoPrice = decimal.Parse(dd[23]), + // sellThreeNum = int.Parse(dd[24]), + // sellThreePrice = decimal.Parse(dd[25]), + // sellFourNum = int.Parse(dd[26]), + // sellFourPrice = decimal.Parse(dd[27]), + // sellFiveNum = int.Parse(dd[28]), + // sellFivePrice = decimal.Parse(dd[29]), + // timeStr = DateTime.Parse(dd[30] + " " + dd[31]) + // }; + // list1.Add(info); + // } + // } + // } + // using (var db = new MESDB()) + // { + // foreach (var info in list1) + // { + // db.stockInfo.AddOrUpdate(info); + // } + // db.SaveChanges(); + // } + // } + // catch (Exception ex) + // { + // ex.Message.ShowError(); + // } + //}); + //var t4 = Task.Factory.StartNew(() => + //{ + // try + // { + // string url = "http://hq.sinajs.cn/list={0}"; + // var list = new MESDB().stockInfo.ToList().Skip(1500).Take(500); + // string code = ""; + // foreach (var stockInfo in list) + // { + // code += stockInfo.code + ","; + // } + // url = string.Format(url, code); + // HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); + // request.Method = "GET"; + // request.ContentType = "text/html;charset=UTF-8"; + // request.UserAgent = null; + // request.Timeout = 6000; + // HttpWebResponse response = (HttpWebResponse)request.GetResponse(); + // Stream myResponseStream = response.GetResponseStream(); + // StreamReader myStreamReader = new StreamReader(myResponseStream, System.Text.Encoding.Default); + // string retString = myStreamReader.ReadToEnd(); + // string[] ResData = retString.Split(';'); + // List list1 = new List(); + // foreach (var item in ResData) + // { + // var data = item.Split('='); + // if (data.Length == 2) + // { + // var dd = data[1].Split(','); + // if (dd.Length >= 33) + // { + // stockInfo info = new stockInfo() + // { + // code = data[0].Split('_')[2], + // name = dd[0].Replace("\"", ""), + // startPrice = decimal.Parse(dd[1]), + // olePrice = decimal.Parse(dd[2]), + // nowPrice = decimal.Parse(dd[3]), + // maxPrice = decimal.Parse(dd[4]), + // minPrice = decimal.Parse(dd[5]), + // bidderPrice = decimal.Parse(dd[6]), + // auctionPrice = decimal.Parse(dd[7]), + // turnover = int.Parse(dd[8]), + // turnoverPrice = decimal.Parse(dd[9]), + // buyOneNum = int.Parse(dd[10]), + // buyOnePrice = decimal.Parse(dd[11]), + // buyTwoNum = int.Parse(dd[12]), + // buyTwoPrice = decimal.Parse(dd[13]), + // buyThreeNum = int.Parse(dd[14]), + // buyThreePrice = decimal.Parse(dd[15]), + // buyFourNum = int.Parse(dd[16]), + // buyFourPrice = decimal.Parse(dd[17]), + // buyFiveNum = int.Parse(dd[18]), + // buyFivePrice = decimal.Parse(dd[19]), + // sellOneNum = int.Parse(dd[20]), + // sellOnePrice = decimal.Parse(dd[21]), + // sellTwoNum = int.Parse(dd[22]), + // sellTwoPrice = decimal.Parse(dd[23]), + // sellThreeNum = int.Parse(dd[24]), + // sellThreePrice = decimal.Parse(dd[25]), + // sellFourNum = int.Parse(dd[26]), + // sellFourPrice = decimal.Parse(dd[27]), + // sellFiveNum = int.Parse(dd[28]), + // sellFivePrice = decimal.Parse(dd[29]), + // timeStr = DateTime.Parse(dd[30] + " " + dd[31]) + // }; + // list1.Add(info); + // } + // } + // } + // using (var db = new MESDB()) + // { + // foreach (var info in list1) + // { + // db.stockInfo.AddOrUpdate(info); + // } + // db.SaveChanges(); + // } + // } + // catch (Exception ex) + // { + // ex.Message.ShowError(); + // } + //}); + //var t5 = Task.Factory.StartNew(() => + //{ + // try + // { + // string url = "http://hq.sinajs.cn/list={0}"; + // var list = new MESDB().stockInfo.ToList().Skip(2000).Take(500); + // string code = ""; + // foreach (var stockInfo in list) + // { + // code += stockInfo.code + ","; + // } + // url = string.Format(url, code); + // HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); + // request.Method = "GET"; + // request.ContentType = "text/html;charset=UTF-8"; + // request.UserAgent = null; + // request.Timeout = 6000; + // HttpWebResponse response = (HttpWebResponse)request.GetResponse(); + // Stream myResponseStream = response.GetResponseStream(); + // StreamReader myStreamReader = new StreamReader(myResponseStream, System.Text.Encoding.Default); + // string retString = myStreamReader.ReadToEnd(); + // string[] ResData = retString.Split(';'); + // List list1 = new List(); + // foreach (var item in ResData) + // { + // var data = item.Split('='); + // if (data.Length == 2) + // { + // var dd = data[1].Split(','); + // if (dd.Length >= 33) + // { + // stockInfo info = new stockInfo() + // { + // code = data[0].Split('_')[2], + // name = dd[0].Replace("\"", ""), + // startPrice = decimal.Parse(dd[1]), + // olePrice = decimal.Parse(dd[2]), + // nowPrice = decimal.Parse(dd[3]), + // maxPrice = decimal.Parse(dd[4]), + // minPrice = decimal.Parse(dd[5]), + // bidderPrice = decimal.Parse(dd[6]), + // auctionPrice = decimal.Parse(dd[7]), + // turnover = int.Parse(dd[8]), + // turnoverPrice = decimal.Parse(dd[9]), + // buyOneNum = int.Parse(dd[10]), + // buyOnePrice = decimal.Parse(dd[11]), + // buyTwoNum = int.Parse(dd[12]), + // buyTwoPrice = decimal.Parse(dd[13]), + // buyThreeNum = int.Parse(dd[14]), + // buyThreePrice = decimal.Parse(dd[15]), + // buyFourNum = int.Parse(dd[16]), + // buyFourPrice = decimal.Parse(dd[17]), + // buyFiveNum = int.Parse(dd[18]), + // buyFivePrice = decimal.Parse(dd[19]), + // sellOneNum = int.Parse(dd[20]), + // sellOnePrice = decimal.Parse(dd[21]), + // sellTwoNum = int.Parse(dd[22]), + // sellTwoPrice = decimal.Parse(dd[23]), + // sellThreeNum = int.Parse(dd[24]), + // sellThreePrice = decimal.Parse(dd[25]), + // sellFourNum = int.Parse(dd[26]), + // sellFourPrice = decimal.Parse(dd[27]), + // sellFiveNum = int.Parse(dd[28]), + // sellFivePrice = decimal.Parse(dd[29]), + // timeStr = DateTime.Parse(dd[30] + " " + dd[31]) + // }; + // list1.Add(info); + // } + // } + // } + // using (var db = new MESDB()) + // { + // foreach (var info in list1) + // { + // db.stockInfo.AddOrUpdate(info); + // } + // db.SaveChanges(); + // } + // } + // catch (Exception ex) + // { + // ex.Message.ShowError(); + // } + //}); + //var t6 = Task.Factory.StartNew(() => + //{ + // try + // { + // string url = "http://hq.sinajs.cn/list={0}"; + // var list = new MESDB().stockInfo.ToList().Skip(2500).Take(500); + // string code = ""; + // foreach (var stockInfo in list) + // { + // code += stockInfo.code + ","; + // } + // url = string.Format(url, code); + // HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); + // request.Method = "GET"; + // request.ContentType = "text/html;charset=UTF-8"; + // request.UserAgent = null; + // request.Timeout = 6000; + // HttpWebResponse response = (HttpWebResponse)request.GetResponse(); + // Stream myResponseStream = response.GetResponseStream(); + // StreamReader myStreamReader = new StreamReader(myResponseStream, System.Text.Encoding.Default); + // string retString = myStreamReader.ReadToEnd(); + // string[] ResData = retString.Split(';'); + // List list1 = new List(); + // foreach (var item in ResData) + // { + // var data = item.Split('='); + // if (data.Length == 2) + // { + // var dd = data[1].Split(','); + // if (dd.Length >= 33) + // { + // stockInfo info = new stockInfo() + // { + // code = data[0].Split('_')[2], + // name = dd[0].Replace("\"", ""), + // startPrice = decimal.Parse(dd[1]), + // olePrice = decimal.Parse(dd[2]), + // nowPrice = decimal.Parse(dd[3]), + // maxPrice = decimal.Parse(dd[4]), + // minPrice = decimal.Parse(dd[5]), + // bidderPrice = decimal.Parse(dd[6]), + // auctionPrice = decimal.Parse(dd[7]), + // turnover = int.Parse(dd[8]), + // turnoverPrice = decimal.Parse(dd[9]), + // buyOneNum = int.Parse(dd[10]), + // buyOnePrice = decimal.Parse(dd[11]), + // buyTwoNum = int.Parse(dd[12]), + // buyTwoPrice = decimal.Parse(dd[13]), + // buyThreeNum = int.Parse(dd[14]), + // buyThreePrice = decimal.Parse(dd[15]), + // buyFourNum = int.Parse(dd[16]), + // buyFourPrice = decimal.Parse(dd[17]), + // buyFiveNum = int.Parse(dd[18]), + // buyFivePrice = decimal.Parse(dd[19]), + // sellOneNum = int.Parse(dd[20]), + // sellOnePrice = decimal.Parse(dd[21]), + // sellTwoNum = int.Parse(dd[22]), + // sellTwoPrice = decimal.Parse(dd[23]), + // sellThreeNum = int.Parse(dd[24]), + // sellThreePrice = decimal.Parse(dd[25]), + // sellFourNum = int.Parse(dd[26]), + // sellFourPrice = decimal.Parse(dd[27]), + // sellFiveNum = int.Parse(dd[28]), + // sellFivePrice = decimal.Parse(dd[29]), + // timeStr = DateTime.Parse(dd[30] + " " + dd[31]) + // }; + // list1.Add(info); + // } + // } + // } + // using (var db = new MESDB()) + // { + // foreach (var info in list1) + // { + // db.stockInfo.AddOrUpdate(info); + // } + // db.SaveChanges(); + // } + // } + // catch (Exception ex) + // { + // ex.Message.ShowError(); + // } + //}); + //var t7 = Task.Factory.StartNew(() => + //{ + // try + // { + // string url = "http://hq.sinajs.cn/list={0}"; + // var list = new MESDB().stockInfo.ToList().Skip(3000).Take(500); + // string code = ""; + // foreach (var stockInfo in list) + // { + // code += stockInfo.code + ","; + // } + // url = string.Format(url, code); + // HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); + // request.Method = "GET"; + // request.ContentType = "text/html;charset=UTF-8"; + // request.UserAgent = null; + // request.Timeout = 6000; + // HttpWebResponse response = (HttpWebResponse)request.GetResponse(); + // Stream myResponseStream = response.GetResponseStream(); + // StreamReader myStreamReader = new StreamReader(myResponseStream, System.Text.Encoding.Default); + // string retString = myStreamReader.ReadToEnd(); + // string[] ResData = retString.Split(';'); + // List list1 = new List(); + // foreach (var item in ResData) + // { + // var data = item.Split('='); + // if (data.Length == 2) + // { + // var dd = data[1].Split(','); + // if (dd.Length >= 33) + // { + // stockInfo info = new stockInfo() + // { + // code = data[0].Split('_')[2], + // name = dd[0].Replace("\"", ""), + // startPrice = decimal.Parse(dd[1]), + // olePrice = decimal.Parse(dd[2]), + // nowPrice = decimal.Parse(dd[3]), + // maxPrice = decimal.Parse(dd[4]), + // minPrice = decimal.Parse(dd[5]), + // bidderPrice = decimal.Parse(dd[6]), + // auctionPrice = decimal.Parse(dd[7]), + // turnover = int.Parse(dd[8]), + // turnoverPrice = decimal.Parse(dd[9]), + // buyOneNum = int.Parse(dd[10]), + // buyOnePrice = decimal.Parse(dd[11]), + // buyTwoNum = int.Parse(dd[12]), + // buyTwoPrice = decimal.Parse(dd[13]), + // buyThreeNum = int.Parse(dd[14]), + // buyThreePrice = decimal.Parse(dd[15]), + // buyFourNum = int.Parse(dd[16]), + // buyFourPrice = decimal.Parse(dd[17]), + // buyFiveNum = int.Parse(dd[18]), + // buyFivePrice = decimal.Parse(dd[19]), + // sellOneNum = int.Parse(dd[20]), + // sellOnePrice = decimal.Parse(dd[21]), + // sellTwoNum = int.Parse(dd[22]), + // sellTwoPrice = decimal.Parse(dd[23]), + // sellThreeNum = int.Parse(dd[24]), + // sellThreePrice = decimal.Parse(dd[25]), + // sellFourNum = int.Parse(dd[26]), + // sellFourPrice = decimal.Parse(dd[27]), + // sellFiveNum = int.Parse(dd[28]), + // sellFivePrice = decimal.Parse(dd[29]), + // timeStr = DateTime.Parse(dd[30] + " " + dd[31]) + // }; + // list1.Add(info); + // } + // } + // } + // using (var db = new MESDB()) + // { + // foreach (var info in list1) + // { + // db.stockInfo.AddOrUpdate(info); + // } + // db.SaveChanges(); + // } + // } + // catch (Exception ex) + // { + // ex.Message.ShowError(); + // } + //}); + List listtask = new List(); + for(int m = 0; m<8; m++) + { + int n = m; + var t=Task.Factory.StartNew(() => + { + try + { + string url = "http://hq.sinajs.cn/list={0}"; + var list = new MESDB().stockInfo.ToList().Skip(400*n).Take(400); + string code = ""; + foreach (var stockInfo in list) + { + code += stockInfo.code + ","; + } + url = string.Format(url, code); + HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); + request.Method = "GET"; + request.ContentType = "text/html;charset=UTF-8"; + request.UserAgent = null; + request.Timeout = 60000; + HttpWebResponse response = (HttpWebResponse)request.GetResponse(); + Stream myResponseStream = response.GetResponseStream(); + StreamReader myStreamReader = new StreamReader(myResponseStream, System.Text.Encoding.Default); + string retString = myStreamReader.ReadToEnd(); + string[] ResData = retString.Split(';'); + List list1 = new List(); + foreach (var item in ResData) + { + var data = item.Split('='); + if (data.Length == 2) + { + var dd = data[1].Split(','); + if (dd.Length >= 33) + { + stockInfo info = new stockInfo() + { + code = data[0].Split('_')[2], + name = dd[0].Replace("\"", ""), + startPrice = decimal.Parse(dd[1]), + olePrice = decimal.Parse(dd[2]), + nowPrice = decimal.Parse(dd[3]), + maxPrice = decimal.Parse(dd[4]), + minPrice = decimal.Parse(dd[5]), + bidderPrice = decimal.Parse(dd[6]), + auctionPrice = decimal.Parse(dd[7]), + turnover = int.Parse(dd[8]), + turnoverPrice = decimal.Parse(dd[9]), + buyOneNum = int.Parse(dd[10]), + buyOnePrice = decimal.Parse(dd[11]), + buyTwoNum = int.Parse(dd[12]), + buyTwoPrice = decimal.Parse(dd[13]), + buyThreeNum = int.Parse(dd[14]), + buyThreePrice = decimal.Parse(dd[15]), + buyFourNum = int.Parse(dd[16]), + buyFourPrice = decimal.Parse(dd[17]), + buyFiveNum = int.Parse(dd[18]), + buyFivePrice = decimal.Parse(dd[19]), + sellOneNum = int.Parse(dd[20]), + sellOnePrice = decimal.Parse(dd[21]), + sellTwoNum = int.Parse(dd[22]), + sellTwoPrice = decimal.Parse(dd[23]), + sellThreeNum = int.Parse(dd[24]), + sellThreePrice = decimal.Parse(dd[25]), + sellFourNum = int.Parse(dd[26]), + sellFourPrice = decimal.Parse(dd[27]), + sellFiveNum = int.Parse(dd[28]), + sellFivePrice = decimal.Parse(dd[29]), + timeStr = DateTime.Parse(dd[30] + " " + dd[31]) + }; + list1.Add(info); + } + } + } + using (var db = new MESDB()) + { + foreach (var info in list1) + { + db.stockInfo.AddOrUpdate(info); + } + db.SaveChanges(); + } + } + catch (Exception ex) + { + var action1 = new Action(() => + { + Show(DateTime.Now + ex.Message + "\r\n"); + }); + this.Invoke(action1); + } + }); + listtask.Add(t); + } + Task.WaitAll(listtask.ToArray()); + var action= new Action(() => + { + Show(DateTime.Now + ":采集成功" + "\r\n"); + }); + this.Invoke(action); + } + } + }); + } + + private void Show(string str) + { + memoEdit1.MaskBox.AppendText(str); + } + private void simpleButton2_Click(object sender, EventArgs e) + { + if (!flag) + { + flag = true; + memoEdit1.MaskBox.AppendText(DateTime.Now+":开始采集" + "\r\n"); + simpleButton2.Text = "停止"; + } + else + { + flag = false; + memoEdit1.MaskBox.AppendText(DateTime.Now + ":停止采集" + "\r\n"); + simpleButton2.Text = "开始采集"; + } + } + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Test.resx b/WinformGeneralDeveloperFrame/Test.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Test.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj b/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj index 88d7275..6f7c912 100644 --- a/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj +++ b/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj @@ -133,10 +133,17 @@ + + + Form + + + Frmstock.cs + Form @@ -219,6 +226,12 @@ + + Form + + + Test.cs + Form @@ -235,6 +248,9 @@ BaseForm.cs + + Frmstock.cs + FrmsysDictData.cs @@ -285,6 +301,9 @@ FrmShowForm.cs + + Test.cs + WaitForm1.cs @@ -7595,6 +7614,10 @@ Always + + + + diff --git a/WinformGeneralDeveloperFrame/frmSelectDataBase.Designer.cs b/WinformGeneralDeveloperFrame/frmSelectDataBase.Designer.cs index 920b335..83e0064 100644 --- a/WinformGeneralDeveloperFrame/frmSelectDataBase.Designer.cs +++ b/WinformGeneralDeveloperFrame/frmSelectDataBase.Designer.cs @@ -53,6 +53,7 @@ namespace WinformGeneralDeveloperFrame this.isKey = new DevExpress.XtraGrid.Columns.GridColumn(); this.isIdentity = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); this.textEdit2 = new DevExpress.XtraEditors.TextEdit(); this.textEdit1 = new DevExpress.XtraEditors.TextEdit(); @@ -73,7 +74,6 @@ namespace WinformGeneralDeveloperFrame this.label1 = new System.Windows.Forms.Label(); this.wizardControl1 = new DevExpress.XtraWizard.WizardControl(); this.xtraFolderBrowserDialog1 = new DevExpress.XtraEditors.XtraFolderBrowserDialog(this.components); - this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); this.completionWizardPage1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); @@ -272,7 +272,7 @@ namespace WinformGeneralDeveloperFrame this.gridColumn1.FieldName = "controlLabelName"; this.gridColumn1.Name = "gridColumn1"; this.gridColumn1.Visible = true; - this.gridColumn1.VisibleIndex = 9; + this.gridColumn1.VisibleIndex = 10; // // isVisible // @@ -318,7 +318,7 @@ namespace WinformGeneralDeveloperFrame this.isIdentity.Name = "isIdentity"; this.isIdentity.OptionsColumn.ReadOnly = true; this.isIdentity.Visible = true; - this.isIdentity.VisibleIndex = 8; + this.isIdentity.VisibleIndex = 9; // // gridColumn2 // @@ -326,7 +326,15 @@ namespace WinformGeneralDeveloperFrame this.gridColumn2.FieldName = "isSearch"; this.gridColumn2.Name = "gridColumn2"; this.gridColumn2.Visible = true; - this.gridColumn2.VisibleIndex = 10; + this.gridColumn2.VisibleIndex = 11; + // + // gridColumn3 + // + this.gridColumn3.Caption = "是否为空检验"; + this.gridColumn3.FieldName = "isCheck"; + this.gridColumn3.Name = "gridColumn3"; + this.gridColumn3.Visible = true; + this.gridColumn3.VisibleIndex = 8; // // simpleButton1 // @@ -528,14 +536,6 @@ namespace WinformGeneralDeveloperFrame // this.xtraFolderBrowserDialog1.SelectedPath = "xtraFolderBrowserDialog1"; // - // gridColumn3 - // - this.gridColumn3.Caption = "是否为空检验"; - this.gridColumn3.FieldName = "isCheck"; - this.gridColumn3.Name = "gridColumn3"; - this.gridColumn3.Visible = true; - this.gridColumn3.VisibleIndex = 7; - // // frmSelectDataBase // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); @@ -547,7 +547,7 @@ namespace WinformGeneralDeveloperFrame this.MinimizeBox = false; this.Name = "frmSelectDataBase"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "选择数据源"; + this.Text = "代码生成"; this.Load += new System.EventHandler(this.frmSelectDataBase_Load); this.completionWizardPage1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();