diff --git a/.vs/WinformGeneralDeveloperFrame/v16/.suo b/.vs/WinformGeneralDeveloperFrame/v16/.suo index 408f865..40d2564 100644 Binary files a/.vs/WinformGeneralDeveloperFrame/v16/.suo and b/.vs/WinformGeneralDeveloperFrame/v16/.suo differ diff --git a/WinformGeneralDeveloperFrame/Entity/stockInfo.cs b/WinformGeneralDeveloperFrame/Entity/stockInfo.cs index 6238ab2..9f3c24f 100644 --- a/WinformGeneralDeveloperFrame/Entity/stockInfo.cs +++ b/WinformGeneralDeveloperFrame/Entity/stockInfo.cs @@ -11,8 +11,6 @@ namespace MES.Entity [Table("stock")] public partial class stockInfo { - [Key] - [NoEdit("txtcode")] [ModelBindControl("txtcode")] public string code{set;get;} [ModelBindControl("txtname")] @@ -77,6 +75,8 @@ namespace MES.Entity public decimal sellFivePrice{set;get;} [ModelBindControl("txttimeStr")] public DateTime? timeStr{set;get;}=DateTime.Now; + [ModelBindControl("txtid")] + public int id{set;get;} } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmstock.cs b/WinformGeneralDeveloperFrame/Form/Frmstock.cs index 7718560..ffc8518 100644 --- a/WinformGeneralDeveloperFrame/Form/Frmstock.cs +++ b/WinformGeneralDeveloperFrame/Form/Frmstock.cs @@ -48,7 +48,37 @@ namespace MES.Form { fieldDictionary.Add("代码","code"); fieldDictionary.Add("名称","name"); + fieldDictionary.Add("今日开盘价","startPrice"); + fieldDictionary.Add("昨日收盘价","olePrice"); + fieldDictionary.Add("当前价格","nowPrice"); + fieldDictionary.Add("今日最高价","maxPrice"); + fieldDictionary.Add("今日最低价","minPrice"); + fieldDictionary.Add("竞买价","bidderPrice"); + fieldDictionary.Add("竞卖价","auctionPrice"); + fieldDictionary.Add("成交股票数","turnover"); + fieldDictionary.Add("成交金额","turnoverPrice"); + fieldDictionary.Add("买1数量","buyOneNum"); + fieldDictionary.Add("买1价格","buyOnePrice"); + fieldDictionary.Add("买2数量","buyTwoNum"); + fieldDictionary.Add("买2价格","buyTwoPrice"); + fieldDictionary.Add("买3数量","buyThreeNum"); + fieldDictionary.Add("买3价格","buyThreePrice"); + fieldDictionary.Add("买4数量","buyFourNum"); + fieldDictionary.Add("买4价格","buyFourPrice"); + fieldDictionary.Add("买5数量","buyFiveNum"); + fieldDictionary.Add("买5价格","buyFivePrice"); + fieldDictionary.Add("卖1数量","sellOneNum"); + fieldDictionary.Add("卖1价格","sellOnePrice"); + fieldDictionary.Add("卖2数量","sellTwoNum"); + fieldDictionary.Add("卖2价格","sellTwoPrice"); + fieldDictionary.Add("卖3数量","sellThreeNum"); + fieldDictionary.Add("卖3价格","sellThreePrice"); + fieldDictionary.Add("卖4数量","sellFourNum"); + fieldDictionary.Add("卖4价格","sellFourPrice"); + fieldDictionary.Add("卖5数量","sellFiveNum"); + fieldDictionary.Add("卖5价格","sellFivePrice"); fieldDictionary.Add("时间","timeStr"); + fieldDictionary.Add("id","id"); } /// /// 保存 @@ -86,6 +116,12 @@ namespace MES.Form /// public override bool CheckInput() { + if(string.IsNullOrEmpty(txtcode.EditValue.ToString())) + { + "代码不能为空".ShowWarning(); + txtcode.Focus(); + return false; + } if(string.IsNullOrEmpty(txtname.EditValue.ToString())) { "名称不能为空".ShowWarning(); @@ -319,13 +355,5 @@ namespace MES.Form } } } - - 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 index 755081a..c794ba4 100644 --- a/WinformGeneralDeveloperFrame/Form/Frmstock.designer.cs +++ b/WinformGeneralDeveloperFrame/Form/Frmstock.designer.cs @@ -33,568 +33,276 @@ namespace MES.Form /// 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.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.gridColumn33 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); this.tabDataList = new DevExpress.XtraTab.XtraTabPage(); + this.tabDataDetail = 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); + this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); + + + ////////////////////// + this.txtcode=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtname=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtstartPrice=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtolePrice=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtnowPrice=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtmaxPrice=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtminPrice=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtbidderPrice=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtauctionPrice=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtturnover=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtturnoverPrice=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtbuyOneNum=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtbuyOnePrice=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtbuyTwoNum=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtbuyTwoPrice=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtbuyThreeNum=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem16 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtbuyThreePrice=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem17 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtbuyFourNum=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem18 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtbuyFourPrice=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem19 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtbuyFiveNum=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem20 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtbuyFivePrice=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem21 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtsellOneNum=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem22 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtsellOnePrice=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem23 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtsellTwoNum=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem24 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtsellTwoPrice=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem25 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtsellThreeNum=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem26 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtsellThreePrice=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem27 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtsellFourNum=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem28 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtsellFourPrice=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem29 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtsellFiveNum=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem30 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtsellFivePrice=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem31 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txttimeStr=new DevExpress.XtraEditors.DateEdit(); + this.layoutControlItem32 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtid=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem33 = new DevExpress.XtraLayout.LayoutControlItem(); + + + ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); + + this.layoutControl1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtcode.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtname.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtstartPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtolePrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtnowPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtmaxPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtminPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbidderPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtauctionPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtturnover.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtturnoverPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbuyOneNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbuyOnePrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbuyTwoNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbuyTwoPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbuyThreeNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbuyThreePrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFourNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFourPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem19)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFiveNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem20)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFivePrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem21)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtsellOneNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem22)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtsellOnePrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem23)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtsellTwoNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem24)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtsellTwoPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem25)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtsellThreeNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem26)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtsellThreePrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem27)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtsellFourNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem28)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtsellFourPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem29)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtsellFiveNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem30)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtsellFivePrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem31)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttimeStr.Properties.CalendarTimeProperties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttimeStr.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem32)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem33)).BeginInit(); + ((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.Dock = System.Windows.Forms.DockStyle.Fill; + this.layoutControl1.Location = new System.Drawing.Point(12, 8); + this.layoutControl1.Name = "layoutControl1"; + this.layoutControl1.Root = this.layoutControlGroup1; + layoutControl1.AutoScroll=true; + this.layoutControl1.Size = new System.Drawing.Size(605, 363); + this.layoutControl1.TabIndex = 6; + this.layoutControl1.Text = "layoutControl1"; + this.layoutControl1.Controls.Add(this.txtcode); this.layoutControl1.Controls.Add(this.txtname); this.layoutControl1.Controls.Add(this.txtstartPrice); @@ -627,646 +335,1020 @@ namespace MES.Form 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"; + this.layoutControl1.Controls.Add(this.txtid); +//TextEdit +//DateEdit +//SimpleButton +//CheckEdit +//MemoEdit +//PictureEdit +//LookUpEdit +//ComboBoxEdit // - // txtcode + // txt${ColumnInfo.Name.Alias.ToCapit()} // - this.txtcode.Location = new System.Drawing.Point(75, 12); + this.txtcode.Location = new System.Drawing.Point(112, 12); this.txtcode.Name = "txtcode"; - this.txtcode.Size = new System.Drawing.Size(567, 20); + this.txtcode.Size = new System.Drawing.Size(481, 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.Size = new System.Drawing.Size(585, 24); this.layoutControlItem1.Text = "代码"; - this.layoutControlItem1.TextSize = new System.Drawing.Size(60, 14); + this.layoutControlItem1.TextSize = new System.Drawing.Size(96, 14); + // - // layoutControlItem3 + // txt${ColumnInfo.Name.Alias.ToCapit()} // - 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); + this.txtname.Location = new System.Drawing.Point(112, 36); + this.txtname.Name = "txtname"; + this.txtname.Size = new System.Drawing.Size(481, 20); + this.txtname.StyleController = this.layoutControl1; + this.txtname.TabIndex = 2; // // layoutControlItem2 // this.layoutControlItem2.Control = this.txtname; this.layoutControlItem2.CustomizationFormText = "名称"; - this.layoutControlItem2.Location = new System.Drawing.Point(634, 0); + this.layoutControlItem2.Location = new System.Drawing.Point(0, 24); this.layoutControlItem2.Name = "layoutControlItem2"; - this.layoutControlItem2.Size = new System.Drawing.Size(636, 24); + this.layoutControlItem2.Size = new System.Drawing.Size(585, 24); this.layoutControlItem2.Text = "名称"; - this.layoutControlItem2.TextSize = new System.Drawing.Size(60, 14); + this.layoutControlItem2.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtstartPrice.Location = new System.Drawing.Point(112, 60); + this.txtstartPrice.Name = "txtstartPrice"; + this.txtstartPrice.Size = new System.Drawing.Size(481, 20); + this.txtstartPrice.StyleController = this.layoutControl1; + this.txtstartPrice.TabIndex = 3; + // + // layoutControlItem3 + // + this.layoutControlItem3.Control = this.txtstartPrice; + this.layoutControlItem3.CustomizationFormText = "今日开盘价"; + this.layoutControlItem3.Location = new System.Drawing.Point(0, 48); + this.layoutControlItem3.Name = "layoutControlItem3"; + this.layoutControlItem3.Size = new System.Drawing.Size(585, 24); + this.layoutControlItem3.Text = "今日开盘价"; + this.layoutControlItem3.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtolePrice.Location = new System.Drawing.Point(112, 84); + this.txtolePrice.Name = "txtolePrice"; + this.txtolePrice.Size = new System.Drawing.Size(481, 20); + this.txtolePrice.StyleController = this.layoutControl1; + this.txtolePrice.TabIndex = 4; // // layoutControlItem4 // this.layoutControlItem4.Control = this.txtolePrice; this.layoutControlItem4.CustomizationFormText = "昨日收盘价"; - this.layoutControlItem4.Location = new System.Drawing.Point(634, 24); + this.layoutControlItem4.Location = new System.Drawing.Point(0, 72); this.layoutControlItem4.Name = "layoutControlItem4"; - this.layoutControlItem4.Size = new System.Drawing.Size(317, 24); + this.layoutControlItem4.Size = new System.Drawing.Size(585, 24); this.layoutControlItem4.Text = "昨日收盘价"; - this.layoutControlItem4.TextSize = new System.Drawing.Size(60, 14); + this.layoutControlItem4.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtnowPrice.Location = new System.Drawing.Point(112, 108); + this.txtnowPrice.Name = "txtnowPrice"; + this.txtnowPrice.Size = new System.Drawing.Size(481, 20); + this.txtnowPrice.StyleController = this.layoutControl1; + this.txtnowPrice.TabIndex = 5; // // layoutControlItem5 // this.layoutControlItem5.Control = this.txtnowPrice; this.layoutControlItem5.CustomizationFormText = "当前价格"; - this.layoutControlItem5.Location = new System.Drawing.Point(951, 24); + this.layoutControlItem5.Location = new System.Drawing.Point(0, 96); this.layoutControlItem5.Name = "layoutControlItem5"; - this.layoutControlItem5.Size = new System.Drawing.Size(319, 24); + this.layoutControlItem5.Size = new System.Drawing.Size(585, 24); this.layoutControlItem5.Text = "当前价格"; - this.layoutControlItem5.TextSize = new System.Drawing.Size(60, 14); + this.layoutControlItem5.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtmaxPrice.Location = new System.Drawing.Point(112, 132); + this.txtmaxPrice.Name = "txtmaxPrice"; + this.txtmaxPrice.Size = new System.Drawing.Size(481, 20); + this.txtmaxPrice.StyleController = this.layoutControl1; + this.txtmaxPrice.TabIndex = 6; + // + // layoutControlItem6 + // + this.layoutControlItem6.Control = this.txtmaxPrice; + this.layoutControlItem6.CustomizationFormText = "今日最高价"; + this.layoutControlItem6.Location = new System.Drawing.Point(0, 120); + this.layoutControlItem6.Name = "layoutControlItem6"; + this.layoutControlItem6.Size = new System.Drawing.Size(585, 24); + this.layoutControlItem6.Text = "今日最高价"; + this.layoutControlItem6.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtminPrice.Location = new System.Drawing.Point(112, 156); + this.txtminPrice.Name = "txtminPrice"; + this.txtminPrice.Size = new System.Drawing.Size(481, 20); + this.txtminPrice.StyleController = this.layoutControl1; + this.txtminPrice.TabIndex = 7; // // layoutControlItem7 // this.layoutControlItem7.Control = this.txtminPrice; this.layoutControlItem7.CustomizationFormText = "今日最低价"; - this.layoutControlItem7.Location = new System.Drawing.Point(635, 48); + this.layoutControlItem7.Location = new System.Drawing.Point(0, 144); this.layoutControlItem7.Name = "layoutControlItem7"; - this.layoutControlItem7.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem7.Size = new System.Drawing.Size(585, 24); this.layoutControlItem7.Text = "今日最低价"; - this.layoutControlItem7.TextSize = new System.Drawing.Size(60, 14); + this.layoutControlItem7.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtbidderPrice.Location = new System.Drawing.Point(112, 180); + this.txtbidderPrice.Name = "txtbidderPrice"; + this.txtbidderPrice.Size = new System.Drawing.Size(481, 20); + this.txtbidderPrice.StyleController = this.layoutControl1; + this.txtbidderPrice.TabIndex = 8; + // + // layoutControlItem8 + // + this.layoutControlItem8.Control = this.txtbidderPrice; + this.layoutControlItem8.CustomizationFormText = "竞买价"; + this.layoutControlItem8.Location = new System.Drawing.Point(0, 168); + this.layoutControlItem8.Name = "layoutControlItem8"; + this.layoutControlItem8.Size = new System.Drawing.Size(585, 24); + this.layoutControlItem8.Text = "竞买价"; + this.layoutControlItem8.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtauctionPrice.Location = new System.Drawing.Point(112, 204); + this.txtauctionPrice.Name = "txtauctionPrice"; + this.txtauctionPrice.Size = new System.Drawing.Size(481, 20); + this.txtauctionPrice.StyleController = this.layoutControl1; + this.txtauctionPrice.TabIndex = 9; // // layoutControlItem9 // this.layoutControlItem9.Control = this.txtauctionPrice; this.layoutControlItem9.CustomizationFormText = "竞卖价"; - this.layoutControlItem9.Location = new System.Drawing.Point(635, 72); + this.layoutControlItem9.Location = new System.Drawing.Point(0, 192); this.layoutControlItem9.Name = "layoutControlItem9"; - this.layoutControlItem9.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem9.Size = new System.Drawing.Size(585, 24); this.layoutControlItem9.Text = "竞卖价"; - this.layoutControlItem9.TextSize = new System.Drawing.Size(60, 14); + this.layoutControlItem9.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtturnover.Location = new System.Drawing.Point(112, 228); + this.txtturnover.Name = "txtturnover"; + this.txtturnover.Size = new System.Drawing.Size(481, 20); + this.txtturnover.StyleController = this.layoutControl1; + this.txtturnover.TabIndex = 10; + // + // layoutControlItem10 + // + this.layoutControlItem10.Control = this.txtturnover; + this.layoutControlItem10.CustomizationFormText = "成交股票数"; + this.layoutControlItem10.Location = new System.Drawing.Point(0, 216); + this.layoutControlItem10.Name = "layoutControlItem10"; + this.layoutControlItem10.Size = new System.Drawing.Size(585, 24); + this.layoutControlItem10.Text = "成交股票数"; + this.layoutControlItem10.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtturnoverPrice.Location = new System.Drawing.Point(112, 252); + this.txtturnoverPrice.Name = "txtturnoverPrice"; + this.txtturnoverPrice.Size = new System.Drawing.Size(481, 20); + this.txtturnoverPrice.StyleController = this.layoutControl1; + this.txtturnoverPrice.TabIndex = 11; // // layoutControlItem11 // this.layoutControlItem11.Control = this.txtturnoverPrice; this.layoutControlItem11.CustomizationFormText = "成交金额"; - this.layoutControlItem11.Location = new System.Drawing.Point(635, 96); + this.layoutControlItem11.Location = new System.Drawing.Point(0, 240); this.layoutControlItem11.Name = "layoutControlItem11"; - this.layoutControlItem11.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem11.Size = new System.Drawing.Size(585, 24); this.layoutControlItem11.Text = "成交金额"; - this.layoutControlItem11.TextSize = new System.Drawing.Size(60, 14); + this.layoutControlItem11.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtbuyOneNum.Location = new System.Drawing.Point(112, 276); + this.txtbuyOneNum.Name = "txtbuyOneNum"; + this.txtbuyOneNum.Size = new System.Drawing.Size(481, 20); + this.txtbuyOneNum.StyleController = this.layoutControl1; + this.txtbuyOneNum.TabIndex = 12; + // + // layoutControlItem12 + // + this.layoutControlItem12.Control = this.txtbuyOneNum; + this.layoutControlItem12.CustomizationFormText = "买1数量"; + this.layoutControlItem12.Location = new System.Drawing.Point(0, 264); + this.layoutControlItem12.Name = "layoutControlItem12"; + this.layoutControlItem12.Size = new System.Drawing.Size(585, 24); + this.layoutControlItem12.Text = "买1数量"; + this.layoutControlItem12.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtbuyOnePrice.Location = new System.Drawing.Point(112, 300); + this.txtbuyOnePrice.Name = "txtbuyOnePrice"; + this.txtbuyOnePrice.Size = new System.Drawing.Size(481, 20); + this.txtbuyOnePrice.StyleController = this.layoutControl1; + this.txtbuyOnePrice.TabIndex = 13; // // layoutControlItem13 // this.layoutControlItem13.Control = this.txtbuyOnePrice; this.layoutControlItem13.CustomizationFormText = "买1价格"; - this.layoutControlItem13.Location = new System.Drawing.Point(635, 120); + this.layoutControlItem13.Location = new System.Drawing.Point(0, 288); this.layoutControlItem13.Name = "layoutControlItem13"; - this.layoutControlItem13.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem13.Size = new System.Drawing.Size(585, 24); this.layoutControlItem13.Text = "买1价格"; - this.layoutControlItem13.TextSize = new System.Drawing.Size(60, 14); + this.layoutControlItem13.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtbuyTwoNum.Location = new System.Drawing.Point(112, 324); + this.txtbuyTwoNum.Name = "txtbuyTwoNum"; + this.txtbuyTwoNum.Size = new System.Drawing.Size(481, 20); + this.txtbuyTwoNum.StyleController = this.layoutControl1; + this.txtbuyTwoNum.TabIndex = 14; + // + // layoutControlItem14 + // + this.layoutControlItem14.Control = this.txtbuyTwoNum; + this.layoutControlItem14.CustomizationFormText = "买2数量"; + this.layoutControlItem14.Location = new System.Drawing.Point(0, 312); + this.layoutControlItem14.Name = "layoutControlItem14"; + this.layoutControlItem14.Size = new System.Drawing.Size(585, 24); + this.layoutControlItem14.Text = "买2数量"; + this.layoutControlItem14.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtbuyTwoPrice.Location = new System.Drawing.Point(112, 348); + this.txtbuyTwoPrice.Name = "txtbuyTwoPrice"; + this.txtbuyTwoPrice.Size = new System.Drawing.Size(481, 20); + this.txtbuyTwoPrice.StyleController = this.layoutControl1; + this.txtbuyTwoPrice.TabIndex = 15; // // layoutControlItem15 // this.layoutControlItem15.Control = this.txtbuyTwoPrice; this.layoutControlItem15.CustomizationFormText = "买2价格"; - this.layoutControlItem15.Location = new System.Drawing.Point(635, 144); + this.layoutControlItem15.Location = new System.Drawing.Point(0, 336); this.layoutControlItem15.Name = "layoutControlItem15"; - this.layoutControlItem15.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem15.Size = new System.Drawing.Size(585, 24); this.layoutControlItem15.Text = "买2价格"; - this.layoutControlItem15.TextSize = new System.Drawing.Size(60, 14); + this.layoutControlItem15.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtbuyThreeNum.Location = new System.Drawing.Point(112, 372); + this.txtbuyThreeNum.Name = "txtbuyThreeNum"; + this.txtbuyThreeNum.Size = new System.Drawing.Size(481, 20); + this.txtbuyThreeNum.StyleController = this.layoutControl1; + this.txtbuyThreeNum.TabIndex = 16; + // + // layoutControlItem16 + // + this.layoutControlItem16.Control = this.txtbuyThreeNum; + this.layoutControlItem16.CustomizationFormText = "买3数量"; + this.layoutControlItem16.Location = new System.Drawing.Point(0, 360); + this.layoutControlItem16.Name = "layoutControlItem16"; + this.layoutControlItem16.Size = new System.Drawing.Size(585, 24); + this.layoutControlItem16.Text = "买3数量"; + this.layoutControlItem16.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtbuyThreePrice.Location = new System.Drawing.Point(112, 396); + this.txtbuyThreePrice.Name = "txtbuyThreePrice"; + this.txtbuyThreePrice.Size = new System.Drawing.Size(481, 20); + this.txtbuyThreePrice.StyleController = this.layoutControl1; + this.txtbuyThreePrice.TabIndex = 17; // // layoutControlItem17 // this.layoutControlItem17.Control = this.txtbuyThreePrice; this.layoutControlItem17.CustomizationFormText = "买3价格"; - this.layoutControlItem17.Location = new System.Drawing.Point(635, 168); + this.layoutControlItem17.Location = new System.Drawing.Point(0, 384); this.layoutControlItem17.Name = "layoutControlItem17"; - this.layoutControlItem17.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem17.Size = new System.Drawing.Size(585, 24); this.layoutControlItem17.Text = "买3价格"; - this.layoutControlItem17.TextSize = new System.Drawing.Size(60, 14); + this.layoutControlItem17.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtbuyFourNum.Location = new System.Drawing.Point(112, 420); + this.txtbuyFourNum.Name = "txtbuyFourNum"; + this.txtbuyFourNum.Size = new System.Drawing.Size(481, 20); + this.txtbuyFourNum.StyleController = this.layoutControl1; + this.txtbuyFourNum.TabIndex = 18; + // + // layoutControlItem18 + // + this.layoutControlItem18.Control = this.txtbuyFourNum; + this.layoutControlItem18.CustomizationFormText = "买4数量"; + this.layoutControlItem18.Location = new System.Drawing.Point(0, 408); + this.layoutControlItem18.Name = "layoutControlItem18"; + this.layoutControlItem18.Size = new System.Drawing.Size(585, 24); + this.layoutControlItem18.Text = "买4数量"; + this.layoutControlItem18.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtbuyFourPrice.Location = new System.Drawing.Point(112, 444); + this.txtbuyFourPrice.Name = "txtbuyFourPrice"; + this.txtbuyFourPrice.Size = new System.Drawing.Size(481, 20); + this.txtbuyFourPrice.StyleController = this.layoutControl1; + this.txtbuyFourPrice.TabIndex = 19; // // layoutControlItem19 // this.layoutControlItem19.Control = this.txtbuyFourPrice; this.layoutControlItem19.CustomizationFormText = "买4价格"; - this.layoutControlItem19.Location = new System.Drawing.Point(635, 192); + this.layoutControlItem19.Location = new System.Drawing.Point(0, 432); this.layoutControlItem19.Name = "layoutControlItem19"; - this.layoutControlItem19.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem19.Size = new System.Drawing.Size(585, 24); this.layoutControlItem19.Text = "买4价格"; - this.layoutControlItem19.TextSize = new System.Drawing.Size(60, 14); + this.layoutControlItem19.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtbuyFiveNum.Location = new System.Drawing.Point(112, 468); + this.txtbuyFiveNum.Name = "txtbuyFiveNum"; + this.txtbuyFiveNum.Size = new System.Drawing.Size(481, 20); + this.txtbuyFiveNum.StyleController = this.layoutControl1; + this.txtbuyFiveNum.TabIndex = 20; + // + // layoutControlItem20 + // + this.layoutControlItem20.Control = this.txtbuyFiveNum; + this.layoutControlItem20.CustomizationFormText = "买5数量"; + this.layoutControlItem20.Location = new System.Drawing.Point(0, 456); + this.layoutControlItem20.Name = "layoutControlItem20"; + this.layoutControlItem20.Size = new System.Drawing.Size(585, 24); + this.layoutControlItem20.Text = "买5数量"; + this.layoutControlItem20.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtbuyFivePrice.Location = new System.Drawing.Point(112, 492); + this.txtbuyFivePrice.Name = "txtbuyFivePrice"; + this.txtbuyFivePrice.Size = new System.Drawing.Size(481, 20); + this.txtbuyFivePrice.StyleController = this.layoutControl1; + this.txtbuyFivePrice.TabIndex = 21; // // layoutControlItem21 // this.layoutControlItem21.Control = this.txtbuyFivePrice; this.layoutControlItem21.CustomizationFormText = "买5价格"; - this.layoutControlItem21.Location = new System.Drawing.Point(635, 216); + this.layoutControlItem21.Location = new System.Drawing.Point(0, 480); this.layoutControlItem21.Name = "layoutControlItem21"; - this.layoutControlItem21.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem21.Size = new System.Drawing.Size(585, 24); this.layoutControlItem21.Text = "买5价格"; - this.layoutControlItem21.TextSize = new System.Drawing.Size(60, 14); + this.layoutControlItem21.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtsellOneNum.Location = new System.Drawing.Point(112, 516); + this.txtsellOneNum.Name = "txtsellOneNum"; + this.txtsellOneNum.Size = new System.Drawing.Size(481, 20); + this.txtsellOneNum.StyleController = this.layoutControl1; + this.txtsellOneNum.TabIndex = 22; + // + // layoutControlItem22 + // + this.layoutControlItem22.Control = this.txtsellOneNum; + this.layoutControlItem22.CustomizationFormText = "卖1数量"; + this.layoutControlItem22.Location = new System.Drawing.Point(0, 504); + this.layoutControlItem22.Name = "layoutControlItem22"; + this.layoutControlItem22.Size = new System.Drawing.Size(585, 24); + this.layoutControlItem22.Text = "卖1数量"; + this.layoutControlItem22.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtsellOnePrice.Location = new System.Drawing.Point(112, 540); + this.txtsellOnePrice.Name = "txtsellOnePrice"; + this.txtsellOnePrice.Size = new System.Drawing.Size(481, 20); + this.txtsellOnePrice.StyleController = this.layoutControl1; + this.txtsellOnePrice.TabIndex = 23; // // layoutControlItem23 // this.layoutControlItem23.Control = this.txtsellOnePrice; this.layoutControlItem23.CustomizationFormText = "卖1价格"; - this.layoutControlItem23.Location = new System.Drawing.Point(635, 240); + this.layoutControlItem23.Location = new System.Drawing.Point(0, 528); this.layoutControlItem23.Name = "layoutControlItem23"; - this.layoutControlItem23.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem23.Size = new System.Drawing.Size(585, 24); this.layoutControlItem23.Text = "卖1价格"; - this.layoutControlItem23.TextSize = new System.Drawing.Size(60, 14); + this.layoutControlItem23.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtsellTwoNum.Location = new System.Drawing.Point(112, 564); + this.txtsellTwoNum.Name = "txtsellTwoNum"; + this.txtsellTwoNum.Size = new System.Drawing.Size(481, 20); + this.txtsellTwoNum.StyleController = this.layoutControl1; + this.txtsellTwoNum.TabIndex = 24; + // + // layoutControlItem24 + // + this.layoutControlItem24.Control = this.txtsellTwoNum; + this.layoutControlItem24.CustomizationFormText = "卖2数量"; + this.layoutControlItem24.Location = new System.Drawing.Point(0, 552); + this.layoutControlItem24.Name = "layoutControlItem24"; + this.layoutControlItem24.Size = new System.Drawing.Size(585, 24); + this.layoutControlItem24.Text = "卖2数量"; + this.layoutControlItem24.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtsellTwoPrice.Location = new System.Drawing.Point(112, 588); + this.txtsellTwoPrice.Name = "txtsellTwoPrice"; + this.txtsellTwoPrice.Size = new System.Drawing.Size(481, 20); + this.txtsellTwoPrice.StyleController = this.layoutControl1; + this.txtsellTwoPrice.TabIndex = 25; // // layoutControlItem25 // this.layoutControlItem25.Control = this.txtsellTwoPrice; this.layoutControlItem25.CustomizationFormText = "卖2价格"; - this.layoutControlItem25.Location = new System.Drawing.Point(635, 264); + this.layoutControlItem25.Location = new System.Drawing.Point(0, 576); this.layoutControlItem25.Name = "layoutControlItem25"; - this.layoutControlItem25.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem25.Size = new System.Drawing.Size(585, 24); this.layoutControlItem25.Text = "卖2价格"; - this.layoutControlItem25.TextSize = new System.Drawing.Size(60, 14); + this.layoutControlItem25.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtsellThreeNum.Location = new System.Drawing.Point(112, 612); + this.txtsellThreeNum.Name = "txtsellThreeNum"; + this.txtsellThreeNum.Size = new System.Drawing.Size(481, 20); + this.txtsellThreeNum.StyleController = this.layoutControl1; + this.txtsellThreeNum.TabIndex = 26; + // + // layoutControlItem26 + // + this.layoutControlItem26.Control = this.txtsellThreeNum; + this.layoutControlItem26.CustomizationFormText = "卖3数量"; + this.layoutControlItem26.Location = new System.Drawing.Point(0, 600); + this.layoutControlItem26.Name = "layoutControlItem26"; + this.layoutControlItem26.Size = new System.Drawing.Size(585, 24); + this.layoutControlItem26.Text = "卖3数量"; + this.layoutControlItem26.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtsellThreePrice.Location = new System.Drawing.Point(112, 636); + this.txtsellThreePrice.Name = "txtsellThreePrice"; + this.txtsellThreePrice.Size = new System.Drawing.Size(481, 20); + this.txtsellThreePrice.StyleController = this.layoutControl1; + this.txtsellThreePrice.TabIndex = 27; // // layoutControlItem27 // this.layoutControlItem27.Control = this.txtsellThreePrice; this.layoutControlItem27.CustomizationFormText = "卖3价格"; - this.layoutControlItem27.Location = new System.Drawing.Point(635, 288); + this.layoutControlItem27.Location = new System.Drawing.Point(0, 624); this.layoutControlItem27.Name = "layoutControlItem27"; - this.layoutControlItem27.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem27.Size = new System.Drawing.Size(585, 24); this.layoutControlItem27.Text = "卖3价格"; - this.layoutControlItem27.TextSize = new System.Drawing.Size(60, 14); + this.layoutControlItem27.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtsellFourNum.Location = new System.Drawing.Point(112, 660); + this.txtsellFourNum.Name = "txtsellFourNum"; + this.txtsellFourNum.Size = new System.Drawing.Size(481, 20); + this.txtsellFourNum.StyleController = this.layoutControl1; + this.txtsellFourNum.TabIndex = 28; + // + // layoutControlItem28 + // + this.layoutControlItem28.Control = this.txtsellFourNum; + this.layoutControlItem28.CustomizationFormText = "卖4数量"; + this.layoutControlItem28.Location = new System.Drawing.Point(0, 648); + this.layoutControlItem28.Name = "layoutControlItem28"; + this.layoutControlItem28.Size = new System.Drawing.Size(585, 24); + this.layoutControlItem28.Text = "卖4数量"; + this.layoutControlItem28.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtsellFourPrice.Location = new System.Drawing.Point(112, 684); + this.txtsellFourPrice.Name = "txtsellFourPrice"; + this.txtsellFourPrice.Size = new System.Drawing.Size(481, 20); + this.txtsellFourPrice.StyleController = this.layoutControl1; + this.txtsellFourPrice.TabIndex = 29; // // layoutControlItem29 // this.layoutControlItem29.Control = this.txtsellFourPrice; this.layoutControlItem29.CustomizationFormText = "卖4价格"; - this.layoutControlItem29.Location = new System.Drawing.Point(635, 312); + this.layoutControlItem29.Location = new System.Drawing.Point(0, 672); this.layoutControlItem29.Name = "layoutControlItem29"; - this.layoutControlItem29.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem29.Size = new System.Drawing.Size(585, 24); this.layoutControlItem29.Text = "卖4价格"; - this.layoutControlItem29.TextSize = new System.Drawing.Size(60, 14); + this.layoutControlItem29.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtsellFiveNum.Location = new System.Drawing.Point(112, 708); + this.txtsellFiveNum.Name = "txtsellFiveNum"; + this.txtsellFiveNum.Size = new System.Drawing.Size(481, 20); + this.txtsellFiveNum.StyleController = this.layoutControl1; + this.txtsellFiveNum.TabIndex = 30; + // + // layoutControlItem30 + // + this.layoutControlItem30.Control = this.txtsellFiveNum; + this.layoutControlItem30.CustomizationFormText = "卖5数量"; + this.layoutControlItem30.Location = new System.Drawing.Point(0, 696); + this.layoutControlItem30.Name = "layoutControlItem30"; + this.layoutControlItem30.Size = new System.Drawing.Size(585, 24); + this.layoutControlItem30.Text = "卖5数量"; + this.layoutControlItem30.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtsellFivePrice.Location = new System.Drawing.Point(112, 732); + this.txtsellFivePrice.Name = "txtsellFivePrice"; + this.txtsellFivePrice.Size = new System.Drawing.Size(481, 20); + this.txtsellFivePrice.StyleController = this.layoutControl1; + this.txtsellFivePrice.TabIndex = 31; // // layoutControlItem31 // this.layoutControlItem31.Control = this.txtsellFivePrice; this.layoutControlItem31.CustomizationFormText = "卖5价格"; - this.layoutControlItem31.Location = new System.Drawing.Point(635, 336); + this.layoutControlItem31.Location = new System.Drawing.Point(0, 720); this.layoutControlItem31.Name = "layoutControlItem31"; - this.layoutControlItem31.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem31.Size = new System.Drawing.Size(585, 24); this.layoutControlItem31.Text = "卖5价格"; - this.layoutControlItem31.TextSize = new System.Drawing.Size(60, 14); + this.layoutControlItem31.TextSize = new System.Drawing.Size(96, 14); + // - // timer1 + // txt${ColumnInfo.Name.Alias.ToCapit()} // - this.timer1.Enabled = true; - this.timer1.Interval = 1000; - this.timer1.Tick += new System.EventHandler(this.timer1_Tick); + this.txttimeStr.EditValue = null; + this.txttimeStr.ImeMode = System.Windows.Forms.ImeMode.Off; + this.txttimeStr.Location = new System.Drawing.Point(112, 756); + this.txttimeStr.Name = "txttimeStr"; + this.txttimeStr.Properties.DisplayFormat.FormatString = "G"; + this.txttimeStr.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.txttimeStr.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txttimeStr.Properties.VistaTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton()}); + this.txttimeStr.Size = new System.Drawing.Size(481, 20); + this.txttimeStr.StyleController = this.layoutControl1; + this.txttimeStr.TabIndex = 32; // - // Frmstock + // layoutControlItem32 + // + this.layoutControlItem32.Control = this.txttimeStr; + this.layoutControlItem32.CustomizationFormText = "时间"; + this.layoutControlItem32.Location = new System.Drawing.Point(0, 744); + this.layoutControlItem32.Name = "layoutControlItem32"; + this.layoutControlItem32.Size = new System.Drawing.Size(585, 24); + this.layoutControlItem32.Text = "时间"; + this.layoutControlItem32.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtid.Location = new System.Drawing.Point(112, 780); + this.txtid.Name = "txtid"; + this.txtid.Size = new System.Drawing.Size(481, 20); + this.txtid.StyleController = this.layoutControl1; + this.txtid.TabIndex = 33; + // + // layoutControlItem33 + // + this.layoutControlItem33.Control = this.txtid; + this.layoutControlItem33.CustomizationFormText = "id"; + this.layoutControlItem33.Location = new System.Drawing.Point(0, 768); + this.layoutControlItem33.Name = "layoutControlItem33"; + this.layoutControlItem33.Size = new System.Drawing.Size(585, 24); + this.layoutControlItem33.Text = "id"; + this.layoutControlItem33.TextSize = new System.Drawing.Size(96, 14); + + + // + // layoutControlGroup1 + // + this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; + this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; + this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { + this.layoutControlItem1 + ,this.layoutControlItem2 + ,this.layoutControlItem3 + ,this.layoutControlItem4 + ,this.layoutControlItem5 + ,this.layoutControlItem6 + ,this.layoutControlItem7 + ,this.layoutControlItem8 + ,this.layoutControlItem9 + ,this.layoutControlItem10 + ,this.layoutControlItem11 + ,this.layoutControlItem12 + ,this.layoutControlItem13 + ,this.layoutControlItem14 + ,this.layoutControlItem15 + ,this.layoutControlItem16 + ,this.layoutControlItem17 + ,this.layoutControlItem18 + ,this.layoutControlItem19 + ,this.layoutControlItem20 + ,this.layoutControlItem21 + ,this.layoutControlItem22 + ,this.layoutControlItem23 + ,this.layoutControlItem24 + ,this.layoutControlItem25 + ,this.layoutControlItem26 + ,this.layoutControlItem27 + ,this.layoutControlItem28 + ,this.layoutControlItem29 + ,this.layoutControlItem30 + ,this.layoutControlItem31 + ,this.layoutControlItem32 + ,this.layoutControlItem33 + }); + this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); + this.layoutControlGroup1.Name = "layoutControlGroup1"; + this.layoutControlGroup1.Size = new System.Drawing.Size(605, 363); + this.layoutControlGroup1.Text = "layoutControlGroup1"; + this.layoutControlGroup1.TextVisible = false; + + + // + // 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(585, 436); + 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(579, 407); + this.tabDataList.Text = "数据列表"; + // + // tabDataDetail + // + this.tabDataDetail.Controls.Add(this.panelControl2); + this.tabDataDetail.Name = "tabDataDetail"; + this.tabDataDetail.Size = new System.Drawing.Size(579, 407); + this.tabDataDetail.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(579, 407); + 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.gridColumn33, + }); + this.grdListView.OptionsBehavior.Editable = false; + this.grdListView.GridControl = this.grdList; + this.grdListView.Name = "grdListView"; + this.grdListView.OptionsView.ColumnAutoWidth=false; + this.grdListView.BestFitColumns(); + // + // 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(579, 407); + this.panelControl2.TabIndex = 0; + + //////////////////////////////// + (this.gridColumn1).Caption = "代码"; + (this.gridColumn1).Name = "gridColumn1"; + (this.gridColumn1).FieldName = "code"; + (this.gridColumn1).Visible = true; + (this.gridColumn1).VisibleIndex = 1; + + //////////////////////////////// + (this.gridColumn2).Caption = "名称"; + (this.gridColumn2).Name = "gridColumn2"; + (this.gridColumn2).FieldName = "name"; + (this.gridColumn2).Visible = true; + (this.gridColumn2).VisibleIndex = 2; + + //////////////////////////////// + (this.gridColumn3).Caption = "今日开盘价"; + (this.gridColumn3).Name = "gridColumn3"; + (this.gridColumn3).FieldName = "startPrice"; + (this.gridColumn3).Visible = true; + (this.gridColumn3).VisibleIndex = 3; + + //////////////////////////////// + (this.gridColumn4).Caption = "昨日收盘价"; + (this.gridColumn4).Name = "gridColumn4"; + (this.gridColumn4).FieldName = "olePrice"; + (this.gridColumn4).Visible = true; + (this.gridColumn4).VisibleIndex = 4; + + //////////////////////////////// + (this.gridColumn5).Caption = "当前价格"; + (this.gridColumn5).Name = "gridColumn5"; + (this.gridColumn5).FieldName = "nowPrice"; + (this.gridColumn5).Visible = true; + (this.gridColumn5).VisibleIndex = 5; + + //////////////////////////////// + (this.gridColumn6).Caption = "今日最高价"; + (this.gridColumn6).Name = "gridColumn6"; + (this.gridColumn6).FieldName = "maxPrice"; + (this.gridColumn6).Visible = true; + (this.gridColumn6).VisibleIndex = 6; + + //////////////////////////////// + (this.gridColumn7).Caption = "今日最低价"; + (this.gridColumn7).Name = "gridColumn7"; + (this.gridColumn7).FieldName = "minPrice"; + (this.gridColumn7).Visible = true; + (this.gridColumn7).VisibleIndex = 7; + + //////////////////////////////// + (this.gridColumn8).Caption = "竞买价"; + (this.gridColumn8).Name = "gridColumn8"; + (this.gridColumn8).FieldName = "bidderPrice"; + (this.gridColumn8).Visible = true; + (this.gridColumn8).VisibleIndex = 8; + + //////////////////////////////// + (this.gridColumn9).Caption = "竞卖价"; + (this.gridColumn9).Name = "gridColumn9"; + (this.gridColumn9).FieldName = "auctionPrice"; + (this.gridColumn9).Visible = true; + (this.gridColumn9).VisibleIndex = 9; + + //////////////////////////////// + (this.gridColumn10).Caption = "成交股票数"; + (this.gridColumn10).Name = "gridColumn10"; + (this.gridColumn10).FieldName = "turnover"; + (this.gridColumn10).Visible = true; + (this.gridColumn10).VisibleIndex = 10; + + //////////////////////////////// + (this.gridColumn11).Caption = "成交金额"; + (this.gridColumn11).Name = "gridColumn11"; + (this.gridColumn11).FieldName = "turnoverPrice"; + (this.gridColumn11).Visible = true; + (this.gridColumn11).VisibleIndex = 11; + + //////////////////////////////// + (this.gridColumn12).Caption = "买1数量"; + (this.gridColumn12).Name = "gridColumn12"; + (this.gridColumn12).FieldName = "buyOneNum"; + (this.gridColumn12).Visible = true; + (this.gridColumn12).VisibleIndex = 12; + + //////////////////////////////// + (this.gridColumn13).Caption = "买1价格"; + (this.gridColumn13).Name = "gridColumn13"; + (this.gridColumn13).FieldName = "buyOnePrice"; + (this.gridColumn13).Visible = true; + (this.gridColumn13).VisibleIndex = 13; + + //////////////////////////////// + (this.gridColumn14).Caption = "买2数量"; + (this.gridColumn14).Name = "gridColumn14"; + (this.gridColumn14).FieldName = "buyTwoNum"; + (this.gridColumn14).Visible = true; + (this.gridColumn14).VisibleIndex = 14; + + //////////////////////////////// + (this.gridColumn15).Caption = "买2价格"; + (this.gridColumn15).Name = "gridColumn15"; + (this.gridColumn15).FieldName = "buyTwoPrice"; + (this.gridColumn15).Visible = true; + (this.gridColumn15).VisibleIndex = 15; + + //////////////////////////////// + (this.gridColumn16).Caption = "买3数量"; + (this.gridColumn16).Name = "gridColumn16"; + (this.gridColumn16).FieldName = "buyThreeNum"; + (this.gridColumn16).Visible = true; + (this.gridColumn16).VisibleIndex = 16; + + //////////////////////////////// + (this.gridColumn17).Caption = "买3价格"; + (this.gridColumn17).Name = "gridColumn17"; + (this.gridColumn17).FieldName = "buyThreePrice"; + (this.gridColumn17).Visible = true; + (this.gridColumn17).VisibleIndex = 17; + + //////////////////////////////// + (this.gridColumn18).Caption = "买4数量"; + (this.gridColumn18).Name = "gridColumn18"; + (this.gridColumn18).FieldName = "buyFourNum"; + (this.gridColumn18).Visible = true; + (this.gridColumn18).VisibleIndex = 18; + + //////////////////////////////// + (this.gridColumn19).Caption = "买4价格"; + (this.gridColumn19).Name = "gridColumn19"; + (this.gridColumn19).FieldName = "buyFourPrice"; + (this.gridColumn19).Visible = true; + (this.gridColumn19).VisibleIndex = 19; + + //////////////////////////////// + (this.gridColumn20).Caption = "买5数量"; + (this.gridColumn20).Name = "gridColumn20"; + (this.gridColumn20).FieldName = "buyFiveNum"; + (this.gridColumn20).Visible = true; + (this.gridColumn20).VisibleIndex = 20; + + //////////////////////////////// + (this.gridColumn21).Caption = "买5价格"; + (this.gridColumn21).Name = "gridColumn21"; + (this.gridColumn21).FieldName = "buyFivePrice"; + (this.gridColumn21).Visible = true; + (this.gridColumn21).VisibleIndex = 21; + + //////////////////////////////// + (this.gridColumn22).Caption = "卖1数量"; + (this.gridColumn22).Name = "gridColumn22"; + (this.gridColumn22).FieldName = "sellOneNum"; + (this.gridColumn22).Visible = true; + (this.gridColumn22).VisibleIndex = 22; + + //////////////////////////////// + (this.gridColumn23).Caption = "卖1价格"; + (this.gridColumn23).Name = "gridColumn23"; + (this.gridColumn23).FieldName = "sellOnePrice"; + (this.gridColumn23).Visible = true; + (this.gridColumn23).VisibleIndex = 23; + + //////////////////////////////// + (this.gridColumn24).Caption = "卖2数量"; + (this.gridColumn24).Name = "gridColumn24"; + (this.gridColumn24).FieldName = "sellTwoNum"; + (this.gridColumn24).Visible = true; + (this.gridColumn24).VisibleIndex = 24; + + //////////////////////////////// + (this.gridColumn25).Caption = "卖2价格"; + (this.gridColumn25).Name = "gridColumn25"; + (this.gridColumn25).FieldName = "sellTwoPrice"; + (this.gridColumn25).Visible = true; + (this.gridColumn25).VisibleIndex = 25; + + //////////////////////////////// + (this.gridColumn26).Caption = "卖3数量"; + (this.gridColumn26).Name = "gridColumn26"; + (this.gridColumn26).FieldName = "sellThreeNum"; + (this.gridColumn26).Visible = true; + (this.gridColumn26).VisibleIndex = 26; + + //////////////////////////////// + (this.gridColumn27).Caption = "卖3价格"; + (this.gridColumn27).Name = "gridColumn27"; + (this.gridColumn27).FieldName = "sellThreePrice"; + (this.gridColumn27).Visible = true; + (this.gridColumn27).VisibleIndex = 27; + + //////////////////////////////// + (this.gridColumn28).Caption = "卖4数量"; + (this.gridColumn28).Name = "gridColumn28"; + (this.gridColumn28).FieldName = "sellFourNum"; + (this.gridColumn28).Visible = true; + (this.gridColumn28).VisibleIndex = 28; + + //////////////////////////////// + (this.gridColumn29).Caption = "卖4价格"; + (this.gridColumn29).Name = "gridColumn29"; + (this.gridColumn29).FieldName = "sellFourPrice"; + (this.gridColumn29).Visible = true; + (this.gridColumn29).VisibleIndex = 29; + + //////////////////////////////// + (this.gridColumn30).Caption = "卖5数量"; + (this.gridColumn30).Name = "gridColumn30"; + (this.gridColumn30).FieldName = "sellFiveNum"; + (this.gridColumn30).Visible = true; + (this.gridColumn30).VisibleIndex = 30; + + //////////////////////////////// + (this.gridColumn31).Caption = "卖5价格"; + (this.gridColumn31).Name = "gridColumn31"; + (this.gridColumn31).FieldName = "sellFivePrice"; + (this.gridColumn31).Visible = true; + (this.gridColumn31).VisibleIndex = 31; + + (this.gridColumn32).DisplayFormat.FormatString = "G"; + (this.gridColumn32).DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + (this.gridColumn32).Caption = "时间"; + (this.gridColumn32).Name = "gridColumn32"; + (this.gridColumn32).FieldName = "timeStr"; + (this.gridColumn32).Visible = true; + (this.gridColumn32).VisibleIndex = 32; + + //////////////////////////////// + (this.gridColumn33).Caption = "id"; + (this.gridColumn33).Name = "gridColumn33"; + (this.gridColumn33).FieldName = "id"; + + // + // XtraForm1 // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; @@ -1276,82 +1358,116 @@ namespace MES.Form this.Text = "Frmstock"; this.Load += new System.EventHandler(this.Frmstock_Load); this.Controls.SetChildIndex(this.xtraTabControl1, 0); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtcode.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtname.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtstartPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtolePrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtnowPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtmaxPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtminPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbidderPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtauctionPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtturnover.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtturnoverPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbuyOneNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbuyOnePrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbuyTwoNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbuyTwoPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbuyThreeNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbuyThreePrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFourNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFourPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem19)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFiveNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem20)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFivePrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem21)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtsellOneNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem22)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtsellOnePrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem23)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtsellTwoNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem24)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtsellTwoPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem25)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtsellThreeNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem26)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtsellThreePrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem27)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtsellFourNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem28)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtsellFourPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem29)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtsellFiveNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem30)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtsellFivePrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem31)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttimeStr.Properties.CalendarTimeProperties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttimeStr.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem32)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem33)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); this.xtraTabControl1.ResumeLayout(false); this.tabDataList.ResumeLayout(false); + this.tabDataDetail.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(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); + this.ResumeLayout(false); } @@ -1399,6 +1515,7 @@ namespace MES.Form private DevExpress.XtraGrid.Columns.GridColumn gridColumn30; private DevExpress.XtraGrid.Columns.GridColumn gridColumn31; private DevExpress.XtraGrid.Columns.GridColumn gridColumn32; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn33; /////////////////////////////// private DevExpress.XtraEditors.TextEdit txtcode; /////////////////////////////// @@ -1463,6 +1580,8 @@ namespace MES.Form private DevExpress.XtraEditors.TextEdit txtsellFivePrice; /////////////////////////////// private DevExpress.XtraEditors.DateEdit txttimeStr; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtid; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; @@ -1496,6 +1615,6 @@ namespace MES.Form private DevExpress.XtraLayout.LayoutControlItem layoutControlItem30; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem31; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem32; - private System.Windows.Forms.Timer timer1; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem33; } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Test.cs b/WinformGeneralDeveloperFrame/Test.cs index ec8ea55..1c23396 100644 --- a/WinformGeneralDeveloperFrame/Test.cs +++ b/WinformGeneralDeveloperFrame/Test.cs @@ -3,12 +3,14 @@ using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; +using System.Data.Entity; using System.Data.Entity.Migrations; using System.Drawing; using System.IO; using System.Linq; using System.Net; using System.Text; +using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; using DevExpress.Data.Helpers; @@ -47,701 +49,142 @@ namespace WinformGeneralDeveloperFrame private void GetData() { + DateTime startTime1=DateTime.Parse("09:30:00"); + DateTime endTime1 = DateTime.Parse("11:30:00"); + + DateTime startTime2 = DateTime.Parse("13:00:00"); + DateTime endTime2 = DateTime.Parse("15:00:00"); + Task.Factory.StartNew(() => { while (true) { if (flag) - { - var t1 = Task.Factory.StartNew(() => + if (DateTime.Now >= startTime1 && DateTime.Now <= endTime1 || DateTime.Now >= startTime2 && DateTime.Now <= endTime2) { - try { - string url = "http://hq.sinajs.cn/list={0}"; - var list = new MESDB().stockInfo.ToList().Skip(0).Take(200); + List listtask = new List(); + int num1 = 0; + int num2 = 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 = 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); - } - } - } + Dictionary stockinfos = null; + List codes = new List(); using (var db = new MESDB()) { - foreach (var info in list1) + num1 = db.stockInfo.GroupBy(P => P.code).ToList().Count; + foreach (var item in db.stockInfo.GroupBy(P => P.code)) { - db.stockInfo.AddOrUpdate(info); + codes.Add(item.Key); } - 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 + for (int m = 0; m <= num1 / num2; m++) { - 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) + int n = m; + var t = Task.Factory.StartNew(() => { - 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) + try { - var dd = data[1].Split(','); - if (dd.Length >= 33) + string url = "http://hq.sinajs.cn/list={0}"; + var list = codes.Skip(num2 * n).Take(num2); + //string code = ""; + foreach (var str in list) { - stockInfo info = new stockInfo() + code += str + ","; + } + 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) { - 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); + 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()) + { + db.stockInfo.AddRange(list1); + db.SaveChanges(); } } - } - using (var db = new MESDB()) - { - foreach (var info in list1) + catch (Exception ex) { - db.stockInfo.AddOrUpdate(info); + var action1 = new Action(() => + { + Show(DateTime.Now + ex.Message + "\r\n"); + }); + this.Invoke(action1); } - db.SaveChanges(); - } - } - catch (Exception ex) - { - var action1 = new Action(() => - { - Show(DateTime.Now + ex.Message + "\r\n"); }); - this.Invoke(action1); + listtask.Add(t); } - }); - listtask.Add(t); + Task.WaitAll(listtask.ToArray()); + var action = new Action(() => + { + Show(DateTime.Now + ":采集成功" + "\r\n"); + }); + this.Invoke(action); + } } - Task.WaitAll(listtask.ToArray()); - var action= new Action(() => + else { - Show(DateTime.Now + ":采集成功" + "\r\n"); - }); - this.Invoke(action); - } + var action1 = new Action(() => + { + Show(DateTime.Now + "股票已休市" + "\r\n"); + }); + this.Invoke(action1); + } + + Thread.Sleep(30000); } }); }