From 6363a5f553ae741d5f8589a24fcd1efbce5f21b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=AF=20=E7=8E=8B?= <648428741@qq.com> Date: Wed, 21 Apr 2021 13:30:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vs/WinformGeneralDeveloperFrame/v16/.suo | Bin 425472 -> 387072 bytes WinformGeneralDeveloperFrame/DB/MESDB.cs | 2 + .../Entity/stockInfo.cs | 82 + .../Entity/sysMenuInfo.cs | 4 +- WinformGeneralDeveloperFrame/Form/Frmstock.cs | 331 ++++ .../Form/Frmstock.designer.cs | 1501 +++++++++++++++++ .../Form/Frmstock.resx | 123 ++ .../Form/FrmsysMenu.designer.cs | 79 +- .../Form/FrmsysUser.cs | 49 +- .../Form/FrmsysUser.designer.cs | 3 +- WinformGeneralDeveloperFrame/FrmBaseForm.cs | 18 +- .../FrmSearch.Designer.cs | 237 ++- .../FrmsysDataBase.designer.cs | 2 +- .../FrmsysDataTable.designer.cs | 11 +- .../MainForm.Designer.cs | 43 +- .../Properties/Resources.Designer.cs | 40 + .../Properties/Resources.resx | 20 +- .../Resources/mail_16x16.png | Bin 0 -> 706 bytes .../Resources/mail_32x32.png | Bin 0 -> 1890 bytes .../Resources/operatingsystem_16x16.png | Bin 0 -> 975 bytes .../Resources/operatingsystem_32x32.png | Bin 0 -> 2966 bytes .../Template/Winform/Form.vm | 2 +- WinformGeneralDeveloperFrame/Test.Designer.cs | 85 + WinformGeneralDeveloperFrame/Test.cs | 769 +++++++++ WinformGeneralDeveloperFrame/Test.resx | 120 ++ .../WinformGeneralDeveloperFrame.csproj | 23 + .../frmSelectDataBase.Designer.cs | 26 +- 27 files changed, 3380 insertions(+), 190 deletions(-) create mode 100644 WinformGeneralDeveloperFrame/Entity/stockInfo.cs create mode 100644 WinformGeneralDeveloperFrame/Form/Frmstock.cs create mode 100644 WinformGeneralDeveloperFrame/Form/Frmstock.designer.cs create mode 100644 WinformGeneralDeveloperFrame/Form/Frmstock.resx create mode 100644 WinformGeneralDeveloperFrame/Resources/mail_16x16.png create mode 100644 WinformGeneralDeveloperFrame/Resources/mail_32x32.png create mode 100644 WinformGeneralDeveloperFrame/Resources/operatingsystem_16x16.png create mode 100644 WinformGeneralDeveloperFrame/Resources/operatingsystem_32x32.png create mode 100644 WinformGeneralDeveloperFrame/Test.Designer.cs create mode 100644 WinformGeneralDeveloperFrame/Test.cs create mode 100644 WinformGeneralDeveloperFrame/Test.resx diff --git a/.vs/WinformGeneralDeveloperFrame/v16/.suo b/.vs/WinformGeneralDeveloperFrame/v16/.suo index c963997a4de36d736264fe7b753b8db1fec87faa..408f865ce530471e03258c44b66389de63a252f0 100644 GIT binary patch delta 16720 zcmeHO3w#aN)<1jC%*n}95_#40B#j73I3WlU4kGo8P}L$-B2lkIdZI3^s%N4onkuELUZoFJ`Tl#(Ig-Baz3tb2_ulV!hkw@EYwy{!XYD;} zueD~5>A_>BW8S%jc2r|MTs4|GVC{j2H8nL{DgY9&0(cq-09pd4+14O3VymeO$*0LK z^PJeI_8*aJs4z)Hoa^hah1F_jC$Q5R z5tKEW=Vc;#%bOf@WWDSw)^BkYvMa!3U<$xH=7%Tv(?BZF8Mr8q(0TiR4vyEhw^C;- z-3RJx<>h6ffy|TN7yFVN*;DFFrpW^(Z;zR{{#-N}42%Zy06ALI0esd<}UDXg-}-@75D9e>wr0DMI-VX-2yogPPVzzHjH3GYOrn z2gU$T0RDhCz!kI_uqh}P{9^!D5Ff5hK`)_%=dI66gEtOGf%7umlLi%@qJ0!LJ2Y0tU%G3BVA5pU;nH z!E*(T1RV&>=Ohfw0$>gB2JjZ3MaMeO4Zt|yO@Mc>8T1ZxQerJ{0^JIfSk)ergp1*(EXG31*XJz_ z%Njshl?A%%MY&f*FwGX^DPA!mw^y?1-C#OHkiYSY(K(^a+gq$q78-f?mq;6HEA4c& zryBWwee~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c&1g-!$U`;`AjvueqgyE8KC5d zGzu=)b5|%nEQOKYl{LH}iKJz)<9+=4p!hAZ7Yto2xF~f`Nu^?E(Om9O<`1B;Rf@JZ zfa*A-bB!?Lk`&5HNKt3Njs(0&-uAlW25+`Xm2mo^Gz_+H!PXvsLkv>p9guE_aQ=um z6h5z${Gg^DbDw!t$~VVX${B7+_Wx_btNp(pmO@DObLg8MRh;TV=p?&GsZ&~Wn4zIn zGROzk4U;c7Yhlk3DHtX3lRLTsj2EQPo+YJu<>~mgJa5XRyrR;=tSb+fKWkdB^+j;e zieJ64=k0=uO8Hn>cisI3c+4p;YG30w=aWPC^nh&%g16c^?>*5J@#`!bYm+*AgZ3(K zt_m)%01ig^WUTd4pSD7;)4S#`8^=M zA^G1);uCGc?xb`7prn7i1nbML%KH07*e$c&^`=Qm-LFtz|ADn~>-v|^E$9K-(fFe0 z@?L2S6u%+fAYtH_I_l6P6RrL)XNY5Sg=K&?{03QLNV&j! zTlL(&^Qne7+d40IkT%&}>x2Q?TSMoWg6k{Mow8eBs|B&n#m_b%_^%JG(ju~XwmEtF g(yA>V?lXP3vi{ sysUserInfo { get; set; } public virtual DbSet sysDictDataInfo { get; set; } public virtual DbSet sysDictTypeInfo { get; set; } + + public virtual DbSet stockInfo { get; set; } } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/stockInfo.cs b/WinformGeneralDeveloperFrame/Entity/stockInfo.cs new file mode 100644 index 0000000..6238ab2 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Entity/stockInfo.cs @@ -0,0 +1,82 @@ +using WinformGeneralDeveloperFrame.Commons; + +namespace MES.Entity +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.ComponentModel.DataAnnotations.Schema; + using System.Data.Entity.Spatial; + + [Table("stock")] + public partial class stockInfo + { + [Key] + [NoEdit("txtcode")] + [ModelBindControl("txtcode")] + public string code{set;get;} + [ModelBindControl("txtname")] + public string name{set;get;} + [ModelBindControl("txtstartPrice")] + public decimal startPrice{set;get;} + [ModelBindControl("txtolePrice")] + public decimal olePrice{set;get;} + [ModelBindControl("txtnowPrice")] + public decimal nowPrice{set;get;} + [ModelBindControl("txtmaxPrice")] + public decimal maxPrice{set;get;} + [ModelBindControl("txtminPrice")] + public decimal minPrice{set;get;} + [ModelBindControl("txtbidderPrice")] + public decimal bidderPrice{set;get;} + [ModelBindControl("txtauctionPrice")] + public decimal auctionPrice{set;get;} + [ModelBindControl("txtturnover")] + public int turnover{set;get;} + [ModelBindControl("txtturnoverPrice")] + public decimal turnoverPrice{set;get;} + [ModelBindControl("txtbuyOneNum")] + public int buyOneNum{set;get;} + [ModelBindControl("txtbuyOnePrice")] + public decimal buyOnePrice{set;get;} + [ModelBindControl("txtbuyTwoNum")] + public int buyTwoNum{set;get;} + [ModelBindControl("txtbuyTwoPrice")] + public decimal buyTwoPrice{set;get;} + [ModelBindControl("txtbuyThreeNum")] + public int buyThreeNum{set;get;} + [ModelBindControl("txtbuyThreePrice")] + public decimal buyThreePrice{set;get;} + [ModelBindControl("txtbuyFourNum")] + public int buyFourNum{set;get;} + [ModelBindControl("txtbuyFourPrice")] + public decimal buyFourPrice{set;get;} + [ModelBindControl("txtbuyFiveNum")] + public int buyFiveNum{set;get;} + [ModelBindControl("txtbuyFivePrice")] + public decimal buyFivePrice{set;get;} + [ModelBindControl("txtsellOneNum")] + public int sellOneNum{set;get;} + [ModelBindControl("txtsellOnePrice")] + public decimal sellOnePrice{set;get;} + [ModelBindControl("txtsellTwoNum")] + public int sellTwoNum{set;get;} + [ModelBindControl("txtsellTwoPrice")] + public decimal sellTwoPrice{set;get;} + [ModelBindControl("txtsellThreeNum")] + public int sellThreeNum{set;get;} + [ModelBindControl("txtsellThreePrice")] + public decimal sellThreePrice{set;get;} + [ModelBindControl("txtsellFourNum")] + public int sellFourNum{set;get;} + [ModelBindControl("txtsellFourPrice")] + public decimal sellFourPrice{set;get;} + [ModelBindControl("txtsellFiveNum")] + public int sellFiveNum{set;get;} + [ModelBindControl("txtsellFivePrice")] + public decimal sellFivePrice{set;get;} + [ModelBindControl("txttimeStr")] + public DateTime? timeStr{set;get;}=DateTime.Now; + + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/sysMenuInfo.cs b/WinformGeneralDeveloperFrame/Entity/sysMenuInfo.cs index cb4dc83..d6f3846 100644 --- a/WinformGeneralDeveloperFrame/Entity/sysMenuInfo.cs +++ b/WinformGeneralDeveloperFrame/Entity/sysMenuInfo.cs @@ -37,6 +37,8 @@ namespace MES.Entity public DateTime? editTime{set;get;}=DateTime.Now; [ModelBindControl("txtisForm")] public bool isForm{set;get;} - + [ModelBindControl("txtisToolBtn")] + public bool isToolBtn { set; get; } + } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmstock.cs b/WinformGeneralDeveloperFrame/Form/Frmstock.cs new file mode 100644 index 0000000..7718560 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmstock.cs @@ -0,0 +1,331 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; +using WinformGeneralDeveloperFrame; +using WinformGeneralDeveloperFrame.Commons; +using DevExpress.XtraLayout; +using MES.Entity; +using System.Data.Entity.Migrations; +using System.Data.Entity; +namespace MES.Form +{ + public partial class Frmstock : FrmBaseForm + { + private Dictionary fieldDictionary = new Dictionary(); + public Frmstock() + { + InitializeComponent(); + } + private void Frmstock_Load(object sender, EventArgs e) + { + + InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new stockInfo()); + InitSearchDicData(); + } + /// + /// 数据源初始化 + /// + /// + private void Init() + { + + + + + + + } + /// + /// 搜索字段 + /// + /// + private void InitSearchDicData() + { + fieldDictionary.Add("代码","code"); + fieldDictionary.Add("名称","name"); + fieldDictionary.Add("时间","timeStr"); + } + /// + /// 保存 + /// + /// + public override bool SaveFunction() + { + try + { + stockInfo info= (stockInfo)this.ControlDataToModel(new stockInfo()); + using (var db = new MESDB()) + { + db.stockInfo.AddOrUpdate(info); + db.SaveChanges(); + } + } + catch (Exception ex) + { + ex.Message.ShowError(); + return false; + } + return true; + } + public override void InitgrdListDataSource() + { + using (var con=new MESDB())/// + { + grdList.DataSource=con.stockInfo.ToList(); + } + Init(); + } + /// + /// 字段为空校验 + /// + /// + public override bool CheckInput() + { + if(string.IsNullOrEmpty(txtname.EditValue.ToString())) + { + "名称不能为空".ShowWarning(); + txtname.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtstartPrice.EditValue.ToString())) + { + "今日开盘价不能为空".ShowWarning(); + txtstartPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtolePrice.EditValue.ToString())) + { + "昨日收盘价不能为空".ShowWarning(); + txtolePrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtnowPrice.EditValue.ToString())) + { + "当前价格不能为空".ShowWarning(); + txtnowPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtmaxPrice.EditValue.ToString())) + { + "今日最高价不能为空".ShowWarning(); + txtmaxPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtminPrice.EditValue.ToString())) + { + "今日最低价不能为空".ShowWarning(); + txtminPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbidderPrice.EditValue.ToString())) + { + "竞买价不能为空".ShowWarning(); + txtbidderPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtauctionPrice.EditValue.ToString())) + { + "竞卖价不能为空".ShowWarning(); + txtauctionPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtturnover.EditValue.ToString())) + { + "成交股票数不能为空".ShowWarning(); + txtturnover.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtturnoverPrice.EditValue.ToString())) + { + "成交金额不能为空".ShowWarning(); + txtturnoverPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbuyOneNum.EditValue.ToString())) + { + "买1数量不能为空".ShowWarning(); + txtbuyOneNum.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbuyOnePrice.EditValue.ToString())) + { + "买1价格不能为空".ShowWarning(); + txtbuyOnePrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbuyTwoNum.EditValue.ToString())) + { + "买2数量不能为空".ShowWarning(); + txtbuyTwoNum.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbuyTwoPrice.EditValue.ToString())) + { + "买2价格不能为空".ShowWarning(); + txtbuyTwoPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbuyThreeNum.EditValue.ToString())) + { + "买3数量不能为空".ShowWarning(); + txtbuyThreeNum.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbuyThreePrice.EditValue.ToString())) + { + "买3价格不能为空".ShowWarning(); + txtbuyThreePrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbuyFourNum.EditValue.ToString())) + { + "买4数量不能为空".ShowWarning(); + txtbuyFourNum.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbuyFourPrice.EditValue.ToString())) + { + "买4价格不能为空".ShowWarning(); + txtbuyFourPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbuyFiveNum.EditValue.ToString())) + { + "买5数量不能为空".ShowWarning(); + txtbuyFiveNum.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbuyFivePrice.EditValue.ToString())) + { + "买5价格不能为空".ShowWarning(); + txtbuyFivePrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsellOneNum.EditValue.ToString())) + { + "卖1数量不能为空".ShowWarning(); + txtsellOneNum.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsellOnePrice.EditValue.ToString())) + { + "卖1价格不能为空".ShowWarning(); + txtsellOnePrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsellTwoNum.EditValue.ToString())) + { + "卖2数量不能为空".ShowWarning(); + txtsellTwoNum.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsellTwoPrice.EditValue.ToString())) + { + "卖2价格不能为空".ShowWarning(); + txtsellTwoPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsellThreeNum.EditValue.ToString())) + { + "卖3数量不能为空".ShowWarning(); + txtsellThreeNum.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsellThreePrice.EditValue.ToString())) + { + "卖3价格不能为空".ShowWarning(); + txtsellThreePrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsellFourNum.EditValue.ToString())) + { + "卖4数量不能为空".ShowWarning(); + txtsellFourNum.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsellFourPrice.EditValue.ToString())) + { + "卖4价格不能为空".ShowWarning(); + txtsellFourPrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsellFiveNum.EditValue.ToString())) + { + "卖5数量不能为空".ShowWarning(); + txtsellFiveNum.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsellFivePrice.EditValue.ToString())) + { + "卖5价格不能为空".ShowWarning(); + txtsellFivePrice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txttimeStr.EditValue.ToString())) + { + "时间不能为空".ShowWarning(); + txttimeStr.Focus(); + return false; + } + return true; + } + /// + /// 删除 + /// + /// + public override bool DelFunction() + { + try + { + stockInfo info = (stockInfo)this.ControlDataToModel(new stockInfo()); + using (var db = new MESDB()) + { + db.Entry(info).State=EntityState.Deleted; + db.SaveChanges(); + } + } + catch (Exception ex) + { + ex.Message.ShowError(); + return false; + } + return true; + } + /// + /// 搜索 + /// + /// + public override void SearchFunction() + { + FrmSearch frm = new FrmSearch(fieldDictionary); + if (frm.ShowDialog()==DialogResult.OK) + { + string sql = frm.sql; + using (var db = new MESDB()) + { + if (string.IsNullOrEmpty(sql)) + { + grdList.DataSource = db.stockInfo.SqlQuery("select * from stock").ToList(); + } + else + { + grdList.DataSource = db.stockInfo.SqlQuery($"select * from stock where {sql}").ToList(); + } + } + } + } + + private void timer1_Tick(object sender, EventArgs e) + { + using (var con = new MESDB()) + { + grdList.DataSource = con.stockInfo.ToList().OrderByDescending(p=>p.turnoverPrice); + } + } + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmstock.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmstock.designer.cs new file mode 100644 index 0000000..755081a --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmstock.designer.cs @@ -0,0 +1,1501 @@ + +using DevExpress.XtraEditors; +using DevExpress.XtraLayout; +using DevExpress.XtraTab; + +namespace MES.Form +{ + partial class Frmstock + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn9 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn10 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn11 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn13 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn14 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn15 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn16 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn17 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn18 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn19 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn20 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn21 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn22 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn23 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn24 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn25 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn26 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn27 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn28 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn29 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn30 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn31 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn32 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); + this.tabDataList = new DevExpress.XtraTab.XtraTabPage(); + this.grdList = new DevExpress.XtraGrid.GridControl(); + this.grdListView = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.tabDataDetail = new DevExpress.XtraTab.XtraTabPage(); + this.panelControl2 = new DevExpress.XtraEditors.PanelControl(); + this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); + this.txtcode = new DevExpress.XtraEditors.TextEdit(); + this.txtname = new DevExpress.XtraEditors.TextEdit(); + this.txtstartPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtolePrice = new DevExpress.XtraEditors.TextEdit(); + this.txtnowPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtmaxPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtminPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtbidderPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtauctionPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtturnover = new DevExpress.XtraEditors.TextEdit(); + this.txtturnoverPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyOneNum = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyOnePrice = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyTwoNum = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyTwoPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyThreeNum = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyThreePrice = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyFourNum = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyFourPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyFiveNum = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyFivePrice = new DevExpress.XtraEditors.TextEdit(); + this.txtsellOneNum = new DevExpress.XtraEditors.TextEdit(); + this.txtsellOnePrice = new DevExpress.XtraEditors.TextEdit(); + this.txtsellTwoNum = new DevExpress.XtraEditors.TextEdit(); + this.txtsellTwoPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtsellThreeNum = new DevExpress.XtraEditors.TextEdit(); + this.txtsellThreePrice = new DevExpress.XtraEditors.TextEdit(); + this.txtsellFourNum = new DevExpress.XtraEditors.TextEdit(); + this.txtsellFourPrice = new DevExpress.XtraEditors.TextEdit(); + this.txtsellFiveNum = new DevExpress.XtraEditors.TextEdit(); + this.txtsellFivePrice = new DevExpress.XtraEditors.TextEdit(); + this.txttimeStr = new DevExpress.XtraEditors.DateEdit(); + this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); + this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem16 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem18 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem20 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem22 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem24 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem26 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem28 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem30 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem32 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem17 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem19 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem21 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem23 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem25 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem27 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem29 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem31 = new DevExpress.XtraLayout.LayoutControlItem(); + this.timer1 = new System.Windows.Forms.Timer(this.components); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); + this.xtraTabControl1.SuspendLayout(); + this.tabDataList.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.grdList)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.grdListView)).BeginInit(); + this.tabDataDetail.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit(); + this.panelControl2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); + this.layoutControl1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txtcode.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtname.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtstartPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtolePrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtnowPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtmaxPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtminPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbidderPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtauctionPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtturnover.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtturnoverPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyOneNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyOnePrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyTwoNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyTwoPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyThreeNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyThreePrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFourNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFourPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFiveNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFivePrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellOneNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellOnePrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellTwoNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellTwoPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellThreeNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellThreePrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellFourNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellFourPrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellFiveNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellFivePrice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttimeStr.Properties.CalendarTimeProperties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttimeStr.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem20)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem22)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem24)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem26)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem28)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem30)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem32)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem19)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem21)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem23)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem25)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem27)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem29)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem31)).BeginInit(); + this.SuspendLayout(); + // + // gridColumn1 + // + this.gridColumn1.Caption = "代码"; + this.gridColumn1.FieldName = "code"; + this.gridColumn1.Name = "gridColumn1"; + this.gridColumn1.Visible = true; + this.gridColumn1.VisibleIndex = 0; + this.gridColumn1.Width = 201; + // + // gridColumn2 + // + this.gridColumn2.Caption = "名称"; + this.gridColumn2.FieldName = "name"; + this.gridColumn2.Name = "gridColumn2"; + this.gridColumn2.Visible = true; + this.gridColumn2.VisibleIndex = 1; + this.gridColumn2.Width = 201; + // + // gridColumn3 + // + this.gridColumn3.Caption = "今日开盘价"; + this.gridColumn3.FieldName = "startPrice"; + this.gridColumn3.Name = "gridColumn3"; + this.gridColumn3.Visible = true; + this.gridColumn3.VisibleIndex = 2; + this.gridColumn3.Width = 201; + // + // gridColumn4 + // + this.gridColumn4.Caption = "昨日收盘价"; + this.gridColumn4.FieldName = "olePrice"; + this.gridColumn4.Name = "gridColumn4"; + this.gridColumn4.Visible = true; + this.gridColumn4.VisibleIndex = 3; + this.gridColumn4.Width = 201; + // + // gridColumn5 + // + this.gridColumn5.Caption = "当前价格"; + this.gridColumn5.FieldName = "nowPrice"; + this.gridColumn5.Name = "gridColumn5"; + this.gridColumn5.Visible = true; + this.gridColumn5.VisibleIndex = 4; + this.gridColumn5.Width = 201; + // + // gridColumn6 + // + this.gridColumn6.Caption = "今日最高价"; + this.gridColumn6.FieldName = "maxPrice"; + this.gridColumn6.Name = "gridColumn6"; + this.gridColumn6.Visible = true; + this.gridColumn6.VisibleIndex = 5; + this.gridColumn6.Width = 201; + // + // gridColumn7 + // + this.gridColumn7.Caption = "今日最低价"; + this.gridColumn7.FieldName = "minPrice"; + this.gridColumn7.Name = "gridColumn7"; + this.gridColumn7.Visible = true; + this.gridColumn7.VisibleIndex = 6; + this.gridColumn7.Width = 201; + // + // gridColumn8 + // + this.gridColumn8.Caption = "竞买价"; + this.gridColumn8.FieldName = "bidderPrice"; + this.gridColumn8.Name = "gridColumn8"; + this.gridColumn8.Visible = true; + this.gridColumn8.VisibleIndex = 7; + this.gridColumn8.Width = 201; + // + // gridColumn9 + // + this.gridColumn9.Caption = "竞卖价"; + this.gridColumn9.FieldName = "auctionPrice"; + this.gridColumn9.Name = "gridColumn9"; + this.gridColumn9.Visible = true; + this.gridColumn9.VisibleIndex = 8; + this.gridColumn9.Width = 201; + // + // gridColumn10 + // + this.gridColumn10.Caption = "成交股票数"; + this.gridColumn10.FieldName = "turnover"; + this.gridColumn10.Name = "gridColumn10"; + this.gridColumn10.Visible = true; + this.gridColumn10.VisibleIndex = 9; + this.gridColumn10.Width = 201; + // + // gridColumn11 + // + this.gridColumn11.Caption = "成交金额"; + this.gridColumn11.FieldName = "turnoverPrice"; + this.gridColumn11.Name = "gridColumn11"; + this.gridColumn11.Visible = true; + this.gridColumn11.VisibleIndex = 10; + this.gridColumn11.Width = 201; + // + // gridColumn12 + // + this.gridColumn12.Caption = "买1数量"; + this.gridColumn12.FieldName = "buyOneNum"; + this.gridColumn12.Name = "gridColumn12"; + this.gridColumn12.Visible = true; + this.gridColumn12.VisibleIndex = 11; + this.gridColumn12.Width = 201; + // + // gridColumn13 + // + this.gridColumn13.Caption = "买1价格"; + this.gridColumn13.FieldName = "buyOnePrice"; + this.gridColumn13.Name = "gridColumn13"; + this.gridColumn13.Visible = true; + this.gridColumn13.VisibleIndex = 12; + this.gridColumn13.Width = 201; + // + // gridColumn14 + // + this.gridColumn14.Caption = "买2数量"; + this.gridColumn14.FieldName = "buyTwoNum"; + this.gridColumn14.Name = "gridColumn14"; + this.gridColumn14.Visible = true; + this.gridColumn14.VisibleIndex = 13; + this.gridColumn14.Width = 201; + // + // gridColumn15 + // + this.gridColumn15.Caption = "买2价格"; + this.gridColumn15.FieldName = "buyTwoPrice"; + this.gridColumn15.Name = "gridColumn15"; + this.gridColumn15.Visible = true; + this.gridColumn15.VisibleIndex = 14; + this.gridColumn15.Width = 201; + // + // gridColumn16 + // + this.gridColumn16.Caption = "买3数量"; + this.gridColumn16.FieldName = "buyThreeNum"; + this.gridColumn16.Name = "gridColumn16"; + this.gridColumn16.Visible = true; + this.gridColumn16.VisibleIndex = 15; + this.gridColumn16.Width = 201; + // + // gridColumn17 + // + this.gridColumn17.Caption = "买3价格"; + this.gridColumn17.FieldName = "buyThreePrice"; + this.gridColumn17.Name = "gridColumn17"; + this.gridColumn17.Visible = true; + this.gridColumn17.VisibleIndex = 16; + this.gridColumn17.Width = 201; + // + // gridColumn18 + // + this.gridColumn18.Caption = "买4数量"; + this.gridColumn18.FieldName = "buyFourNum"; + this.gridColumn18.Name = "gridColumn18"; + this.gridColumn18.Visible = true; + this.gridColumn18.VisibleIndex = 17; + this.gridColumn18.Width = 201; + // + // gridColumn19 + // + this.gridColumn19.Caption = "买4价格"; + this.gridColumn19.FieldName = "buyFourPrice"; + this.gridColumn19.Name = "gridColumn19"; + this.gridColumn19.Visible = true; + this.gridColumn19.VisibleIndex = 18; + this.gridColumn19.Width = 201; + // + // gridColumn20 + // + this.gridColumn20.Caption = "买5数量"; + this.gridColumn20.FieldName = "buyFiveNum"; + this.gridColumn20.Name = "gridColumn20"; + this.gridColumn20.Visible = true; + this.gridColumn20.VisibleIndex = 19; + this.gridColumn20.Width = 201; + // + // gridColumn21 + // + this.gridColumn21.Caption = "买5价格"; + this.gridColumn21.FieldName = "buyFivePrice"; + this.gridColumn21.Name = "gridColumn21"; + this.gridColumn21.Visible = true; + this.gridColumn21.VisibleIndex = 20; + this.gridColumn21.Width = 201; + // + // gridColumn22 + // + this.gridColumn22.Caption = "卖1数量"; + this.gridColumn22.FieldName = "sellOneNum"; + this.gridColumn22.Name = "gridColumn22"; + this.gridColumn22.Visible = true; + this.gridColumn22.VisibleIndex = 21; + this.gridColumn22.Width = 201; + // + // gridColumn23 + // + this.gridColumn23.Caption = "卖1价格"; + this.gridColumn23.FieldName = "sellOnePrice"; + this.gridColumn23.Name = "gridColumn23"; + this.gridColumn23.Visible = true; + this.gridColumn23.VisibleIndex = 22; + this.gridColumn23.Width = 201; + // + // gridColumn24 + // + this.gridColumn24.Caption = "卖2数量"; + this.gridColumn24.FieldName = "sellTwoNum"; + this.gridColumn24.Name = "gridColumn24"; + this.gridColumn24.Visible = true; + this.gridColumn24.VisibleIndex = 23; + this.gridColumn24.Width = 201; + // + // gridColumn25 + // + this.gridColumn25.Caption = "卖2价格"; + this.gridColumn25.FieldName = "sellTwoPrice"; + this.gridColumn25.Name = "gridColumn25"; + this.gridColumn25.Visible = true; + this.gridColumn25.VisibleIndex = 24; + this.gridColumn25.Width = 201; + // + // gridColumn26 + // + this.gridColumn26.Caption = "卖3数量"; + this.gridColumn26.FieldName = "sellThreeNum"; + this.gridColumn26.Name = "gridColumn26"; + this.gridColumn26.Visible = true; + this.gridColumn26.VisibleIndex = 25; + this.gridColumn26.Width = 201; + // + // gridColumn27 + // + this.gridColumn27.Caption = "卖3价格"; + this.gridColumn27.FieldName = "sellThreePrice"; + this.gridColumn27.Name = "gridColumn27"; + this.gridColumn27.Visible = true; + this.gridColumn27.VisibleIndex = 26; + this.gridColumn27.Width = 201; + // + // gridColumn28 + // + this.gridColumn28.Caption = "卖4数量"; + this.gridColumn28.FieldName = "sellFourNum"; + this.gridColumn28.Name = "gridColumn28"; + this.gridColumn28.Visible = true; + this.gridColumn28.VisibleIndex = 27; + this.gridColumn28.Width = 201; + // + // gridColumn29 + // + this.gridColumn29.Caption = "卖4价格"; + this.gridColumn29.FieldName = "sellFourPrice"; + this.gridColumn29.Name = "gridColumn29"; + this.gridColumn29.Visible = true; + this.gridColumn29.VisibleIndex = 28; + this.gridColumn29.Width = 201; + // + // gridColumn30 + // + this.gridColumn30.Caption = "卖5数量"; + this.gridColumn30.FieldName = "sellFiveNum"; + this.gridColumn30.Name = "gridColumn30"; + this.gridColumn30.Visible = true; + this.gridColumn30.VisibleIndex = 29; + this.gridColumn30.Width = 201; + // + // gridColumn31 + // + this.gridColumn31.Caption = "卖5价格"; + this.gridColumn31.FieldName = "sellFivePrice"; + this.gridColumn31.Name = "gridColumn31"; + this.gridColumn31.Visible = true; + this.gridColumn31.VisibleIndex = 30; + this.gridColumn31.Width = 201; + // + // gridColumn32 + // + this.gridColumn32.Caption = "时间"; + this.gridColumn32.DisplayFormat.FormatString = "G"; + this.gridColumn32.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.gridColumn32.FieldName = "timeStr"; + this.gridColumn32.Name = "gridColumn32"; + this.gridColumn32.Visible = true; + this.gridColumn32.VisibleIndex = 31; + this.gridColumn32.Width = 201; + // + // xtraTabControl1 + // + this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.xtraTabControl1.Location = new System.Drawing.Point(0, 34); + this.xtraTabControl1.Name = "xtraTabControl1"; + this.xtraTabControl1.SelectedTabPage = this.tabDataList; + this.xtraTabControl1.Size = new System.Drawing.Size(1300, 766); + this.xtraTabControl1.TabIndex = 1; + this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { + this.tabDataList, + this.tabDataDetail}); + // + // tabDataList + // + this.tabDataList.Controls.Add(this.grdList); + this.tabDataList.Name = "tabDataList"; + this.tabDataList.Size = new System.Drawing.Size(1294, 737); + this.tabDataList.Text = "数据列表"; + // + // grdList + // + this.grdList.Dock = System.Windows.Forms.DockStyle.Fill; + this.grdList.Location = new System.Drawing.Point(0, 0); + this.grdList.MainView = this.grdListView; + this.grdList.Name = "grdList"; + this.grdList.Size = new System.Drawing.Size(1294, 737); + this.grdList.TabIndex = 0; + this.grdList.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { + this.grdListView}); + // + // grdListView + // + this.grdListView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { + this.gridColumn1, + this.gridColumn2, + this.gridColumn3, + this.gridColumn4, + this.gridColumn5, + this.gridColumn6, + this.gridColumn7, + this.gridColumn8, + this.gridColumn9, + this.gridColumn10, + this.gridColumn11, + this.gridColumn12, + this.gridColumn13, + this.gridColumn14, + this.gridColumn15, + this.gridColumn16, + this.gridColumn17, + this.gridColumn18, + this.gridColumn19, + this.gridColumn20, + this.gridColumn21, + this.gridColumn22, + this.gridColumn23, + this.gridColumn24, + this.gridColumn25, + this.gridColumn26, + this.gridColumn27, + this.gridColumn28, + this.gridColumn29, + this.gridColumn30, + this.gridColumn31, + this.gridColumn32}); + this.grdListView.GridControl = this.grdList; + this.grdListView.Name = "grdListView"; + this.grdListView.OptionsBehavior.Editable = false; + this.grdListView.OptionsView.ColumnAutoWidth = false; + // + // tabDataDetail + // + this.tabDataDetail.Controls.Add(this.panelControl2); + this.tabDataDetail.Name = "tabDataDetail"; + this.tabDataDetail.Size = new System.Drawing.Size(1294, 737); + this.tabDataDetail.Text = "数据编辑"; + // + // panelControl2 + // + this.panelControl2.Controls.Add(this.layoutControl1); + this.panelControl2.Dock = System.Windows.Forms.DockStyle.Fill; + this.panelControl2.Location = new System.Drawing.Point(0, 0); + this.panelControl2.Name = "panelControl2"; + this.panelControl2.Size = new System.Drawing.Size(1294, 737); + this.panelControl2.TabIndex = 0; + // + // layoutControl1 + // + this.layoutControl1.Controls.Add(this.txtcode); + this.layoutControl1.Controls.Add(this.txtname); + this.layoutControl1.Controls.Add(this.txtstartPrice); + this.layoutControl1.Controls.Add(this.txtolePrice); + this.layoutControl1.Controls.Add(this.txtnowPrice); + this.layoutControl1.Controls.Add(this.txtmaxPrice); + this.layoutControl1.Controls.Add(this.txtminPrice); + this.layoutControl1.Controls.Add(this.txtbidderPrice); + this.layoutControl1.Controls.Add(this.txtauctionPrice); + this.layoutControl1.Controls.Add(this.txtturnover); + this.layoutControl1.Controls.Add(this.txtturnoverPrice); + this.layoutControl1.Controls.Add(this.txtbuyOneNum); + this.layoutControl1.Controls.Add(this.txtbuyOnePrice); + this.layoutControl1.Controls.Add(this.txtbuyTwoNum); + this.layoutControl1.Controls.Add(this.txtbuyTwoPrice); + this.layoutControl1.Controls.Add(this.txtbuyThreeNum); + this.layoutControl1.Controls.Add(this.txtbuyThreePrice); + this.layoutControl1.Controls.Add(this.txtbuyFourNum); + this.layoutControl1.Controls.Add(this.txtbuyFourPrice); + this.layoutControl1.Controls.Add(this.txtbuyFiveNum); + this.layoutControl1.Controls.Add(this.txtbuyFivePrice); + this.layoutControl1.Controls.Add(this.txtsellOneNum); + this.layoutControl1.Controls.Add(this.txtsellOnePrice); + this.layoutControl1.Controls.Add(this.txtsellTwoNum); + this.layoutControl1.Controls.Add(this.txtsellTwoPrice); + this.layoutControl1.Controls.Add(this.txtsellThreeNum); + this.layoutControl1.Controls.Add(this.txtsellThreePrice); + this.layoutControl1.Controls.Add(this.txtsellFourNum); + this.layoutControl1.Controls.Add(this.txtsellFourPrice); + this.layoutControl1.Controls.Add(this.txtsellFiveNum); + this.layoutControl1.Controls.Add(this.txtsellFivePrice); + this.layoutControl1.Controls.Add(this.txttimeStr); + this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.layoutControl1.Location = new System.Drawing.Point(2, 2); + this.layoutControl1.Name = "layoutControl1"; + this.layoutControl1.Root = this.layoutControlGroup1; + this.layoutControl1.Size = new System.Drawing.Size(1290, 733); + this.layoutControl1.TabIndex = 6; + this.layoutControl1.Text = "layoutControl1"; + // + // txtcode + // + this.txtcode.Location = new System.Drawing.Point(75, 12); + this.txtcode.Name = "txtcode"; + this.txtcode.Size = new System.Drawing.Size(567, 20); + this.txtcode.StyleController = this.layoutControl1; + this.txtcode.TabIndex = 1; + // + // txtname + // + this.txtname.Location = new System.Drawing.Point(709, 12); + this.txtname.Name = "txtname"; + this.txtname.Size = new System.Drawing.Size(569, 20); + this.txtname.StyleController = this.layoutControl1; + this.txtname.TabIndex = 2; + // + // txtstartPrice + // + this.txtstartPrice.Location = new System.Drawing.Point(75, 36); + this.txtstartPrice.Name = "txtstartPrice"; + this.txtstartPrice.Size = new System.Drawing.Size(567, 20); + this.txtstartPrice.StyleController = this.layoutControl1; + this.txtstartPrice.TabIndex = 3; + // + // txtolePrice + // + this.txtolePrice.Location = new System.Drawing.Point(709, 36); + this.txtolePrice.Name = "txtolePrice"; + this.txtolePrice.Size = new System.Drawing.Size(250, 20); + this.txtolePrice.StyleController = this.layoutControl1; + this.txtolePrice.TabIndex = 4; + // + // txtnowPrice + // + this.txtnowPrice.Location = new System.Drawing.Point(1026, 36); + this.txtnowPrice.Name = "txtnowPrice"; + this.txtnowPrice.Size = new System.Drawing.Size(252, 20); + this.txtnowPrice.StyleController = this.layoutControl1; + this.txtnowPrice.TabIndex = 5; + // + // txtmaxPrice + // + this.txtmaxPrice.Location = new System.Drawing.Point(75, 60); + this.txtmaxPrice.Name = "txtmaxPrice"; + this.txtmaxPrice.Size = new System.Drawing.Size(568, 20); + this.txtmaxPrice.StyleController = this.layoutControl1; + this.txtmaxPrice.TabIndex = 6; + // + // txtminPrice + // + this.txtminPrice.Location = new System.Drawing.Point(710, 60); + this.txtminPrice.Name = "txtminPrice"; + this.txtminPrice.Size = new System.Drawing.Size(568, 20); + this.txtminPrice.StyleController = this.layoutControl1; + this.txtminPrice.TabIndex = 7; + // + // txtbidderPrice + // + this.txtbidderPrice.Location = new System.Drawing.Point(75, 84); + this.txtbidderPrice.Name = "txtbidderPrice"; + this.txtbidderPrice.Size = new System.Drawing.Size(568, 20); + this.txtbidderPrice.StyleController = this.layoutControl1; + this.txtbidderPrice.TabIndex = 8; + // + // txtauctionPrice + // + this.txtauctionPrice.Location = new System.Drawing.Point(710, 84); + this.txtauctionPrice.Name = "txtauctionPrice"; + this.txtauctionPrice.Size = new System.Drawing.Size(568, 20); + this.txtauctionPrice.StyleController = this.layoutControl1; + this.txtauctionPrice.TabIndex = 9; + // + // txtturnover + // + this.txtturnover.Location = new System.Drawing.Point(75, 108); + this.txtturnover.Name = "txtturnover"; + this.txtturnover.Size = new System.Drawing.Size(568, 20); + this.txtturnover.StyleController = this.layoutControl1; + this.txtturnover.TabIndex = 10; + // + // txtturnoverPrice + // + this.txtturnoverPrice.Location = new System.Drawing.Point(710, 108); + this.txtturnoverPrice.Name = "txtturnoverPrice"; + this.txtturnoverPrice.Size = new System.Drawing.Size(568, 20); + this.txtturnoverPrice.StyleController = this.layoutControl1; + this.txtturnoverPrice.TabIndex = 11; + // + // txtbuyOneNum + // + this.txtbuyOneNum.Location = new System.Drawing.Point(75, 132); + this.txtbuyOneNum.Name = "txtbuyOneNum"; + this.txtbuyOneNum.Size = new System.Drawing.Size(568, 20); + this.txtbuyOneNum.StyleController = this.layoutControl1; + this.txtbuyOneNum.TabIndex = 12; + // + // txtbuyOnePrice + // + this.txtbuyOnePrice.Location = new System.Drawing.Point(710, 132); + this.txtbuyOnePrice.Name = "txtbuyOnePrice"; + this.txtbuyOnePrice.Size = new System.Drawing.Size(568, 20); + this.txtbuyOnePrice.StyleController = this.layoutControl1; + this.txtbuyOnePrice.TabIndex = 13; + // + // txtbuyTwoNum + // + this.txtbuyTwoNum.Location = new System.Drawing.Point(75, 156); + this.txtbuyTwoNum.Name = "txtbuyTwoNum"; + this.txtbuyTwoNum.Size = new System.Drawing.Size(568, 20); + this.txtbuyTwoNum.StyleController = this.layoutControl1; + this.txtbuyTwoNum.TabIndex = 14; + // + // txtbuyTwoPrice + // + this.txtbuyTwoPrice.Location = new System.Drawing.Point(710, 156); + this.txtbuyTwoPrice.Name = "txtbuyTwoPrice"; + this.txtbuyTwoPrice.Size = new System.Drawing.Size(568, 20); + this.txtbuyTwoPrice.StyleController = this.layoutControl1; + this.txtbuyTwoPrice.TabIndex = 15; + // + // txtbuyThreeNum + // + this.txtbuyThreeNum.Location = new System.Drawing.Point(75, 180); + this.txtbuyThreeNum.Name = "txtbuyThreeNum"; + this.txtbuyThreeNum.Size = new System.Drawing.Size(568, 20); + this.txtbuyThreeNum.StyleController = this.layoutControl1; + this.txtbuyThreeNum.TabIndex = 16; + // + // txtbuyThreePrice + // + this.txtbuyThreePrice.Location = new System.Drawing.Point(710, 180); + this.txtbuyThreePrice.Name = "txtbuyThreePrice"; + this.txtbuyThreePrice.Size = new System.Drawing.Size(568, 20); + this.txtbuyThreePrice.StyleController = this.layoutControl1; + this.txtbuyThreePrice.TabIndex = 17; + // + // txtbuyFourNum + // + this.txtbuyFourNum.Location = new System.Drawing.Point(75, 204); + this.txtbuyFourNum.Name = "txtbuyFourNum"; + this.txtbuyFourNum.Size = new System.Drawing.Size(568, 20); + this.txtbuyFourNum.StyleController = this.layoutControl1; + this.txtbuyFourNum.TabIndex = 18; + // + // txtbuyFourPrice + // + this.txtbuyFourPrice.Location = new System.Drawing.Point(710, 204); + this.txtbuyFourPrice.Name = "txtbuyFourPrice"; + this.txtbuyFourPrice.Size = new System.Drawing.Size(568, 20); + this.txtbuyFourPrice.StyleController = this.layoutControl1; + this.txtbuyFourPrice.TabIndex = 19; + // + // txtbuyFiveNum + // + this.txtbuyFiveNum.Location = new System.Drawing.Point(75, 228); + this.txtbuyFiveNum.Name = "txtbuyFiveNum"; + this.txtbuyFiveNum.Size = new System.Drawing.Size(568, 20); + this.txtbuyFiveNum.StyleController = this.layoutControl1; + this.txtbuyFiveNum.TabIndex = 20; + // + // txtbuyFivePrice + // + this.txtbuyFivePrice.Location = new System.Drawing.Point(710, 228); + this.txtbuyFivePrice.Name = "txtbuyFivePrice"; + this.txtbuyFivePrice.Size = new System.Drawing.Size(568, 20); + this.txtbuyFivePrice.StyleController = this.layoutControl1; + this.txtbuyFivePrice.TabIndex = 21; + // + // txtsellOneNum + // + this.txtsellOneNum.Location = new System.Drawing.Point(75, 252); + this.txtsellOneNum.Name = "txtsellOneNum"; + this.txtsellOneNum.Size = new System.Drawing.Size(568, 20); + this.txtsellOneNum.StyleController = this.layoutControl1; + this.txtsellOneNum.TabIndex = 22; + // + // txtsellOnePrice + // + this.txtsellOnePrice.Location = new System.Drawing.Point(710, 252); + this.txtsellOnePrice.Name = "txtsellOnePrice"; + this.txtsellOnePrice.Size = new System.Drawing.Size(568, 20); + this.txtsellOnePrice.StyleController = this.layoutControl1; + this.txtsellOnePrice.TabIndex = 23; + // + // txtsellTwoNum + // + this.txtsellTwoNum.Location = new System.Drawing.Point(75, 276); + this.txtsellTwoNum.Name = "txtsellTwoNum"; + this.txtsellTwoNum.Size = new System.Drawing.Size(568, 20); + this.txtsellTwoNum.StyleController = this.layoutControl1; + this.txtsellTwoNum.TabIndex = 24; + // + // txtsellTwoPrice + // + this.txtsellTwoPrice.Location = new System.Drawing.Point(710, 276); + this.txtsellTwoPrice.Name = "txtsellTwoPrice"; + this.txtsellTwoPrice.Size = new System.Drawing.Size(568, 20); + this.txtsellTwoPrice.StyleController = this.layoutControl1; + this.txtsellTwoPrice.TabIndex = 25; + // + // txtsellThreeNum + // + this.txtsellThreeNum.Location = new System.Drawing.Point(75, 300); + this.txtsellThreeNum.Name = "txtsellThreeNum"; + this.txtsellThreeNum.Size = new System.Drawing.Size(568, 20); + this.txtsellThreeNum.StyleController = this.layoutControl1; + this.txtsellThreeNum.TabIndex = 26; + // + // txtsellThreePrice + // + this.txtsellThreePrice.Location = new System.Drawing.Point(710, 300); + this.txtsellThreePrice.Name = "txtsellThreePrice"; + this.txtsellThreePrice.Size = new System.Drawing.Size(568, 20); + this.txtsellThreePrice.StyleController = this.layoutControl1; + this.txtsellThreePrice.TabIndex = 27; + // + // txtsellFourNum + // + this.txtsellFourNum.Location = new System.Drawing.Point(75, 324); + this.txtsellFourNum.Name = "txtsellFourNum"; + this.txtsellFourNum.Size = new System.Drawing.Size(568, 20); + this.txtsellFourNum.StyleController = this.layoutControl1; + this.txtsellFourNum.TabIndex = 28; + // + // txtsellFourPrice + // + this.txtsellFourPrice.Location = new System.Drawing.Point(710, 324); + this.txtsellFourPrice.Name = "txtsellFourPrice"; + this.txtsellFourPrice.Size = new System.Drawing.Size(568, 20); + this.txtsellFourPrice.StyleController = this.layoutControl1; + this.txtsellFourPrice.TabIndex = 29; + // + // txtsellFiveNum + // + this.txtsellFiveNum.Location = new System.Drawing.Point(75, 348); + this.txtsellFiveNum.Name = "txtsellFiveNum"; + this.txtsellFiveNum.Size = new System.Drawing.Size(568, 20); + this.txtsellFiveNum.StyleController = this.layoutControl1; + this.txtsellFiveNum.TabIndex = 30; + // + // txtsellFivePrice + // + this.txtsellFivePrice.Location = new System.Drawing.Point(710, 348); + this.txtsellFivePrice.Name = "txtsellFivePrice"; + this.txtsellFivePrice.Size = new System.Drawing.Size(568, 20); + this.txtsellFivePrice.StyleController = this.layoutControl1; + this.txtsellFivePrice.TabIndex = 31; + // + // txttimeStr + // + this.txttimeStr.EditValue = null; + this.txttimeStr.ImeMode = System.Windows.Forms.ImeMode.Off; + this.txttimeStr.Location = new System.Drawing.Point(75, 372); + this.txttimeStr.Name = "txttimeStr"; + this.txttimeStr.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txttimeStr.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton()}); + this.txttimeStr.Properties.DisplayFormat.FormatString = "G"; + this.txttimeStr.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.txttimeStr.Size = new System.Drawing.Size(1203, 20); + this.txttimeStr.StyleController = this.layoutControl1; + this.txttimeStr.TabIndex = 32; + // + // layoutControlGroup1 + // + this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; + this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; + this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { + this.layoutControlItem1, + this.layoutControlItem3, + this.layoutControlItem6, + this.layoutControlItem8, + this.layoutControlItem10, + this.layoutControlItem12, + this.layoutControlItem14, + this.layoutControlItem16, + this.layoutControlItem18, + this.layoutControlItem20, + this.layoutControlItem22, + this.layoutControlItem24, + this.layoutControlItem26, + this.layoutControlItem28, + this.layoutControlItem30, + this.layoutControlItem32, + this.layoutControlItem2, + this.layoutControlItem4, + this.layoutControlItem5, + this.layoutControlItem7, + this.layoutControlItem9, + this.layoutControlItem11, + this.layoutControlItem13, + this.layoutControlItem15, + this.layoutControlItem17, + this.layoutControlItem19, + this.layoutControlItem21, + this.layoutControlItem23, + this.layoutControlItem25, + this.layoutControlItem27, + this.layoutControlItem29, + this.layoutControlItem31}); + this.layoutControlGroup1.Name = "layoutControlGroup1"; + this.layoutControlGroup1.Size = new System.Drawing.Size(1290, 733); + this.layoutControlGroup1.TextVisible = false; + // + // layoutControlItem1 + // + this.layoutControlItem1.Control = this.txtcode; + this.layoutControlItem1.CustomizationFormText = "代码"; + this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); + this.layoutControlItem1.Name = "layoutControlItem1"; + this.layoutControlItem1.Size = new System.Drawing.Size(634, 24); + this.layoutControlItem1.Text = "代码"; + this.layoutControlItem1.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem3 + // + this.layoutControlItem3.Control = this.txtstartPrice; + this.layoutControlItem3.CustomizationFormText = "今日开盘价"; + this.layoutControlItem3.Location = new System.Drawing.Point(0, 24); + this.layoutControlItem3.Name = "layoutControlItem3"; + this.layoutControlItem3.Size = new System.Drawing.Size(634, 24); + this.layoutControlItem3.Text = "今日开盘价"; + this.layoutControlItem3.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem6 + // + this.layoutControlItem6.Control = this.txtmaxPrice; + this.layoutControlItem6.CustomizationFormText = "今日最高价"; + this.layoutControlItem6.Location = new System.Drawing.Point(0, 48); + this.layoutControlItem6.Name = "layoutControlItem6"; + this.layoutControlItem6.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem6.Text = "今日最高价"; + this.layoutControlItem6.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem8 + // + this.layoutControlItem8.Control = this.txtbidderPrice; + this.layoutControlItem8.CustomizationFormText = "竞买价"; + this.layoutControlItem8.Location = new System.Drawing.Point(0, 72); + this.layoutControlItem8.Name = "layoutControlItem8"; + this.layoutControlItem8.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem8.Text = "竞买价"; + this.layoutControlItem8.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem10 + // + this.layoutControlItem10.Control = this.txtturnover; + this.layoutControlItem10.CustomizationFormText = "成交股票数"; + this.layoutControlItem10.Location = new System.Drawing.Point(0, 96); + this.layoutControlItem10.Name = "layoutControlItem10"; + this.layoutControlItem10.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem10.Text = "成交股票数"; + this.layoutControlItem10.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem12 + // + this.layoutControlItem12.Control = this.txtbuyOneNum; + this.layoutControlItem12.CustomizationFormText = "买1数量"; + this.layoutControlItem12.Location = new System.Drawing.Point(0, 120); + this.layoutControlItem12.Name = "layoutControlItem12"; + this.layoutControlItem12.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem12.Text = "买1数量"; + this.layoutControlItem12.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem14 + // + this.layoutControlItem14.Control = this.txtbuyTwoNum; + this.layoutControlItem14.CustomizationFormText = "买2数量"; + this.layoutControlItem14.Location = new System.Drawing.Point(0, 144); + this.layoutControlItem14.Name = "layoutControlItem14"; + this.layoutControlItem14.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem14.Text = "买2数量"; + this.layoutControlItem14.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem16 + // + this.layoutControlItem16.Control = this.txtbuyThreeNum; + this.layoutControlItem16.CustomizationFormText = "买3数量"; + this.layoutControlItem16.Location = new System.Drawing.Point(0, 168); + this.layoutControlItem16.Name = "layoutControlItem16"; + this.layoutControlItem16.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem16.Text = "买3数量"; + this.layoutControlItem16.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem18 + // + this.layoutControlItem18.Control = this.txtbuyFourNum; + this.layoutControlItem18.CustomizationFormText = "买4数量"; + this.layoutControlItem18.Location = new System.Drawing.Point(0, 192); + this.layoutControlItem18.Name = "layoutControlItem18"; + this.layoutControlItem18.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem18.Text = "买4数量"; + this.layoutControlItem18.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem20 + // + this.layoutControlItem20.Control = this.txtbuyFiveNum; + this.layoutControlItem20.CustomizationFormText = "买5数量"; + this.layoutControlItem20.Location = new System.Drawing.Point(0, 216); + this.layoutControlItem20.Name = "layoutControlItem20"; + this.layoutControlItem20.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem20.Text = "买5数量"; + this.layoutControlItem20.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem22 + // + this.layoutControlItem22.Control = this.txtsellOneNum; + this.layoutControlItem22.CustomizationFormText = "卖1数量"; + this.layoutControlItem22.Location = new System.Drawing.Point(0, 240); + this.layoutControlItem22.Name = "layoutControlItem22"; + this.layoutControlItem22.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem22.Text = "卖1数量"; + this.layoutControlItem22.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem24 + // + this.layoutControlItem24.Control = this.txtsellTwoNum; + this.layoutControlItem24.CustomizationFormText = "卖2数量"; + this.layoutControlItem24.Location = new System.Drawing.Point(0, 264); + this.layoutControlItem24.Name = "layoutControlItem24"; + this.layoutControlItem24.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem24.Text = "卖2数量"; + this.layoutControlItem24.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem26 + // + this.layoutControlItem26.Control = this.txtsellThreeNum; + this.layoutControlItem26.CustomizationFormText = "卖3数量"; + this.layoutControlItem26.Location = new System.Drawing.Point(0, 288); + this.layoutControlItem26.Name = "layoutControlItem26"; + this.layoutControlItem26.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem26.Text = "卖3数量"; + this.layoutControlItem26.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem28 + // + this.layoutControlItem28.Control = this.txtsellFourNum; + this.layoutControlItem28.CustomizationFormText = "卖4数量"; + this.layoutControlItem28.Location = new System.Drawing.Point(0, 312); + this.layoutControlItem28.Name = "layoutControlItem28"; + this.layoutControlItem28.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem28.Text = "卖4数量"; + this.layoutControlItem28.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem30 + // + this.layoutControlItem30.Control = this.txtsellFiveNum; + this.layoutControlItem30.CustomizationFormText = "卖5数量"; + this.layoutControlItem30.Location = new System.Drawing.Point(0, 336); + this.layoutControlItem30.Name = "layoutControlItem30"; + this.layoutControlItem30.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem30.Text = "卖5数量"; + this.layoutControlItem30.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem32 + // + this.layoutControlItem32.Control = this.txttimeStr; + this.layoutControlItem32.CustomizationFormText = "时间"; + this.layoutControlItem32.Location = new System.Drawing.Point(0, 360); + this.layoutControlItem32.Name = "layoutControlItem32"; + this.layoutControlItem32.Size = new System.Drawing.Size(1270, 353); + this.layoutControlItem32.Text = "时间"; + this.layoutControlItem32.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem2 + // + this.layoutControlItem2.Control = this.txtname; + this.layoutControlItem2.CustomizationFormText = "名称"; + this.layoutControlItem2.Location = new System.Drawing.Point(634, 0); + this.layoutControlItem2.Name = "layoutControlItem2"; + this.layoutControlItem2.Size = new System.Drawing.Size(636, 24); + this.layoutControlItem2.Text = "名称"; + this.layoutControlItem2.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem4 + // + this.layoutControlItem4.Control = this.txtolePrice; + this.layoutControlItem4.CustomizationFormText = "昨日收盘价"; + this.layoutControlItem4.Location = new System.Drawing.Point(634, 24); + this.layoutControlItem4.Name = "layoutControlItem4"; + this.layoutControlItem4.Size = new System.Drawing.Size(317, 24); + this.layoutControlItem4.Text = "昨日收盘价"; + this.layoutControlItem4.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem5 + // + this.layoutControlItem5.Control = this.txtnowPrice; + this.layoutControlItem5.CustomizationFormText = "当前价格"; + this.layoutControlItem5.Location = new System.Drawing.Point(951, 24); + this.layoutControlItem5.Name = "layoutControlItem5"; + this.layoutControlItem5.Size = new System.Drawing.Size(319, 24); + this.layoutControlItem5.Text = "当前价格"; + this.layoutControlItem5.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem7 + // + this.layoutControlItem7.Control = this.txtminPrice; + this.layoutControlItem7.CustomizationFormText = "今日最低价"; + this.layoutControlItem7.Location = new System.Drawing.Point(635, 48); + this.layoutControlItem7.Name = "layoutControlItem7"; + this.layoutControlItem7.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem7.Text = "今日最低价"; + this.layoutControlItem7.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem9 + // + this.layoutControlItem9.Control = this.txtauctionPrice; + this.layoutControlItem9.CustomizationFormText = "竞卖价"; + this.layoutControlItem9.Location = new System.Drawing.Point(635, 72); + this.layoutControlItem9.Name = "layoutControlItem9"; + this.layoutControlItem9.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem9.Text = "竞卖价"; + this.layoutControlItem9.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem11 + // + this.layoutControlItem11.Control = this.txtturnoverPrice; + this.layoutControlItem11.CustomizationFormText = "成交金额"; + this.layoutControlItem11.Location = new System.Drawing.Point(635, 96); + this.layoutControlItem11.Name = "layoutControlItem11"; + this.layoutControlItem11.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem11.Text = "成交金额"; + this.layoutControlItem11.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem13 + // + this.layoutControlItem13.Control = this.txtbuyOnePrice; + this.layoutControlItem13.CustomizationFormText = "买1价格"; + this.layoutControlItem13.Location = new System.Drawing.Point(635, 120); + this.layoutControlItem13.Name = "layoutControlItem13"; + this.layoutControlItem13.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem13.Text = "买1价格"; + this.layoutControlItem13.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem15 + // + this.layoutControlItem15.Control = this.txtbuyTwoPrice; + this.layoutControlItem15.CustomizationFormText = "买2价格"; + this.layoutControlItem15.Location = new System.Drawing.Point(635, 144); + this.layoutControlItem15.Name = "layoutControlItem15"; + this.layoutControlItem15.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem15.Text = "买2价格"; + this.layoutControlItem15.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem17 + // + this.layoutControlItem17.Control = this.txtbuyThreePrice; + this.layoutControlItem17.CustomizationFormText = "买3价格"; + this.layoutControlItem17.Location = new System.Drawing.Point(635, 168); + this.layoutControlItem17.Name = "layoutControlItem17"; + this.layoutControlItem17.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem17.Text = "买3价格"; + this.layoutControlItem17.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem19 + // + this.layoutControlItem19.Control = this.txtbuyFourPrice; + this.layoutControlItem19.CustomizationFormText = "买4价格"; + this.layoutControlItem19.Location = new System.Drawing.Point(635, 192); + this.layoutControlItem19.Name = "layoutControlItem19"; + this.layoutControlItem19.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem19.Text = "买4价格"; + this.layoutControlItem19.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem21 + // + this.layoutControlItem21.Control = this.txtbuyFivePrice; + this.layoutControlItem21.CustomizationFormText = "买5价格"; + this.layoutControlItem21.Location = new System.Drawing.Point(635, 216); + this.layoutControlItem21.Name = "layoutControlItem21"; + this.layoutControlItem21.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem21.Text = "买5价格"; + this.layoutControlItem21.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem23 + // + this.layoutControlItem23.Control = this.txtsellOnePrice; + this.layoutControlItem23.CustomizationFormText = "卖1价格"; + this.layoutControlItem23.Location = new System.Drawing.Point(635, 240); + this.layoutControlItem23.Name = "layoutControlItem23"; + this.layoutControlItem23.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem23.Text = "卖1价格"; + this.layoutControlItem23.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem25 + // + this.layoutControlItem25.Control = this.txtsellTwoPrice; + this.layoutControlItem25.CustomizationFormText = "卖2价格"; + this.layoutControlItem25.Location = new System.Drawing.Point(635, 264); + this.layoutControlItem25.Name = "layoutControlItem25"; + this.layoutControlItem25.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem25.Text = "卖2价格"; + this.layoutControlItem25.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem27 + // + this.layoutControlItem27.Control = this.txtsellThreePrice; + this.layoutControlItem27.CustomizationFormText = "卖3价格"; + this.layoutControlItem27.Location = new System.Drawing.Point(635, 288); + this.layoutControlItem27.Name = "layoutControlItem27"; + this.layoutControlItem27.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem27.Text = "卖3价格"; + this.layoutControlItem27.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem29 + // + this.layoutControlItem29.Control = this.txtsellFourPrice; + this.layoutControlItem29.CustomizationFormText = "卖4价格"; + this.layoutControlItem29.Location = new System.Drawing.Point(635, 312); + this.layoutControlItem29.Name = "layoutControlItem29"; + this.layoutControlItem29.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem29.Text = "卖4价格"; + this.layoutControlItem29.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem31 + // + this.layoutControlItem31.Control = this.txtsellFivePrice; + this.layoutControlItem31.CustomizationFormText = "卖5价格"; + this.layoutControlItem31.Location = new System.Drawing.Point(635, 336); + this.layoutControlItem31.Name = "layoutControlItem31"; + this.layoutControlItem31.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem31.Text = "卖5价格"; + this.layoutControlItem31.TextSize = new System.Drawing.Size(60, 14); + // + // timer1 + // + this.timer1.Enabled = true; + this.timer1.Interval = 1000; + this.timer1.Tick += new System.EventHandler(this.timer1_Tick); + // + // Frmstock + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1300, 800); + this.Controls.Add(this.xtraTabControl1); + this.Name = "Frmstock"; + this.Text = "Frmstock"; + this.Load += new System.EventHandler(this.Frmstock_Load); + this.Controls.SetChildIndex(this.xtraTabControl1, 0); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); + this.xtraTabControl1.ResumeLayout(false); + this.tabDataList.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.grdList)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.grdListView)).EndInit(); + this.tabDataDetail.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit(); + this.panelControl2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); + this.layoutControl1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.txtcode.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtname.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtstartPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtolePrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtnowPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtmaxPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtminPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbidderPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtauctionPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtturnover.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtturnoverPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyOneNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyOnePrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyTwoNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyTwoPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyThreeNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyThreePrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFourNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFourPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFiveNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyFivePrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellOneNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellOnePrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellTwoNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellTwoPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellThreeNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellThreePrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellFourNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellFourPrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellFiveNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsellFivePrice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttimeStr.Properties.CalendarTimeProperties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttimeStr.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem20)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem22)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem24)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem26)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem28)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem30)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem32)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem19)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem21)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem23)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem25)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem27)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem29)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem31)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private XtraTabControl xtraTabControl1; + private XtraTabPage tabDataList; + private XtraTabPage tabDataDetail; + private DevExpress.XtraGrid.GridControl grdList; + private DevExpress.XtraGrid.Views.Grid.GridView grdListView; + private PanelControl panelControl2; + private DevExpress.XtraLayout.LayoutControl layoutControl1; + private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1; + + private DevExpress.XtraGrid.Columns.GridColumn gridColumn1; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn2; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn3; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn4; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn5; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn6; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn7; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn8; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn9; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn10; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn11; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn12; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn13; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn14; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn15; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn16; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn17; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn18; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn19; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn20; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn21; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn22; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn23; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn24; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn25; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn26; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn27; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn28; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn29; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn30; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn31; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn32; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtcode; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtname; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtstartPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtolePrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtnowPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtmaxPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtminPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbidderPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtauctionPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtturnover; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtturnoverPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbuyOneNum; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbuyOnePrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbuyTwoNum; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbuyTwoPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbuyThreeNum; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbuyThreePrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbuyFourNum; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbuyFourPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbuyFiveNum; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbuyFivePrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsellOneNum; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsellOnePrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsellTwoNum; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsellTwoPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsellThreeNum; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsellThreePrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsellFourNum; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsellFourPrice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsellFiveNum; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsellFivePrice; + /////////////////////////////// + private DevExpress.XtraEditors.DateEdit txttimeStr; + + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem11; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem12; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem13; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem14; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem15; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem16; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem17; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem18; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem19; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem20; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem21; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem22; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem23; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem24; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem25; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem26; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem27; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem28; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem29; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem30; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem31; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem32; + private System.Windows.Forms.Timer timer1; + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmstock.resx b/WinformGeneralDeveloperFrame/Form/Frmstock.resx new file mode 100644 index 0000000..1f666f2 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmstock.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/FrmsysMenu.designer.cs b/WinformGeneralDeveloperFrame/Form/FrmsysMenu.designer.cs index c02350c..d1e1714 100644 --- a/WinformGeneralDeveloperFrame/Form/FrmsysMenu.designer.cs +++ b/WinformGeneralDeveloperFrame/Form/FrmsysMenu.designer.cs @@ -90,6 +90,10 @@ namespace MES.Form this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.xtraOpenFileDialog1 = new DevExpress.XtraEditors.XtraOpenFileDialog(this.components); + this.gridColumn14 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemCheckEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit(); + this.txtisToolBtn = new DevExpress.XtraEditors.CheckEdit(); + this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtpid)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtpidTreeList)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcreatorId)).BeginInit(); @@ -136,6 +140,9 @@ namespace MES.Form ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtisToolBtn.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit(); this.SuspendLayout(); // // gridColumn1 @@ -234,7 +241,7 @@ namespace MES.Form this.gridColumn9.FieldName = "creatorId"; this.gridColumn9.Name = "gridColumn9"; this.gridColumn9.Visible = true; - this.gridColumn9.VisibleIndex = 7; + this.gridColumn9.VisibleIndex = 9; this.gridColumn9.Width = 201; // // repositoryItemtxtcreatorId @@ -254,7 +261,7 @@ namespace MES.Form this.gridColumn10.FieldName = "createTime"; this.gridColumn10.Name = "gridColumn10"; this.gridColumn10.Visible = true; - this.gridColumn10.VisibleIndex = 8; + this.gridColumn10.VisibleIndex = 10; this.gridColumn10.Width = 201; // // gridColumn11 @@ -264,7 +271,7 @@ namespace MES.Form this.gridColumn11.FieldName = "editorId"; this.gridColumn11.Name = "gridColumn11"; this.gridColumn11.Visible = true; - this.gridColumn11.VisibleIndex = 9; + this.gridColumn11.VisibleIndex = 11; this.gridColumn11.Width = 201; // // repositoryItemtxteditorId @@ -282,7 +289,7 @@ namespace MES.Form this.gridColumn12.FieldName = "editTime"; this.gridColumn12.Name = "gridColumn12"; this.gridColumn12.Visible = true; - this.gridColumn12.VisibleIndex = 10; + this.gridColumn12.VisibleIndex = 12; this.gridColumn12.Width = 201; // // gridColumn13 @@ -291,7 +298,7 @@ namespace MES.Form this.gridColumn13.FieldName = "isForm"; this.gridColumn13.Name = "gridColumn13"; this.gridColumn13.Visible = true; - this.gridColumn13.VisibleIndex = 11; + this.gridColumn13.VisibleIndex = 7; this.gridColumn13.Width = 201; // // xtraTabControl1 @@ -319,6 +326,8 @@ namespace MES.Form this.grdList.Location = new System.Drawing.Point(0, 0); this.grdList.MainView = this.grdListView; this.grdList.Name = "grdList"; + this.grdList.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { + this.repositoryItemCheckEdit1}); this.grdList.Size = new System.Drawing.Size(881, 479); this.grdList.TabIndex = 0; this.grdList.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { @@ -339,7 +348,8 @@ namespace MES.Form this.gridColumn10, this.gridColumn11, this.gridColumn12, - this.gridColumn13}); + this.gridColumn13, + this.gridColumn14}); this.grdListView.GridControl = this.grdList; this.grdListView.Name = "grdListView"; this.grdListView.OptionsBehavior.Editable = false; @@ -365,6 +375,7 @@ namespace MES.Form // // layoutControl1 // + this.layoutControl1.Controls.Add(this.txtisToolBtn); this.layoutControl1.Controls.Add(this.txtname); this.layoutControl1.Controls.Add(this.txtid); this.layoutControl1.Controls.Add(this.simpleButton1); @@ -469,7 +480,7 @@ namespace MES.Form this.txtisEnabled.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default; this.txtisEnabled.Properties.Caption = "有效"; this.txtisEnabled.Properties.NullStyle = DevExpress.XtraEditors.Controls.StyleIndeterminate.Unchecked; - this.txtisEnabled.Size = new System.Drawing.Size(210, 19); + this.txtisEnabled.Size = new System.Drawing.Size(142, 19); this.txtisEnabled.StyleController = this.layoutControl1; this.txtisEnabled.TabIndex = 6; // @@ -549,12 +560,12 @@ namespace MES.Form // txtisForm // this.txtisForm.EditValue = null; - this.txtisForm.Location = new System.Drawing.Point(654, 62); + this.txtisForm.Location = new System.Drawing.Point(586, 62); this.txtisForm.Name = "txtisForm"; this.txtisForm.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default; this.txtisForm.Properties.Caption = "是否界面"; this.txtisForm.Properties.NullStyle = DevExpress.XtraEditors.Controls.StyleIndeterminate.Unchecked; - this.txtisForm.Size = new System.Drawing.Size(211, 19); + this.txtisForm.Size = new System.Drawing.Size(147, 19); this.txtisForm.StyleController = this.layoutControl1; this.txtisForm.TabIndex = 12; // @@ -577,7 +588,8 @@ namespace MES.Form this.layoutControlItem11, this.layoutControlItem13, this.layoutControlItem14, - this.layoutControlItem2}); + this.layoutControlItem2, + this.layoutControlItem15}); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(877, 475); this.layoutControlGroup1.TextVisible = false; @@ -658,7 +670,7 @@ namespace MES.Form this.layoutControlItem6.CustomizationFormText = "有效"; this.layoutControlItem6.Location = new System.Drawing.Point(428, 50); this.layoutControlItem6.Name = "layoutControlItem6"; - this.layoutControlItem6.Size = new System.Drawing.Size(214, 24); + this.layoutControlItem6.Size = new System.Drawing.Size(146, 24); this.layoutControlItem6.Text = "有效"; this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem6.TextVisible = false; @@ -667,9 +679,9 @@ namespace MES.Form // this.layoutControlItem12.Control = this.txtisForm; this.layoutControlItem12.CustomizationFormText = "是否界面"; - this.layoutControlItem12.Location = new System.Drawing.Point(642, 50); + this.layoutControlItem12.Location = new System.Drawing.Point(574, 50); this.layoutControlItem12.Name = "layoutControlItem12"; - this.layoutControlItem12.Size = new System.Drawing.Size(215, 24); + this.layoutControlItem12.Size = new System.Drawing.Size(151, 24); this.layoutControlItem12.Text = "是否界面"; this.layoutControlItem12.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem12.TextVisible = false; @@ -733,6 +745,38 @@ namespace MES.Form // this.xtraOpenFileDialog1.FileName = "xtraOpenFileDialog1"; // + // gridColumn14 + // + this.gridColumn14.Caption = "是否功能按钮"; + this.gridColumn14.ColumnEdit = this.repositoryItemCheckEdit1; + this.gridColumn14.FieldName = "isToolBtn"; + this.gridColumn14.Name = "gridColumn14"; + this.gridColumn14.Visible = true; + this.gridColumn14.VisibleIndex = 8; + // + // repositoryItemCheckEdit1 + // + this.repositoryItemCheckEdit1.AutoHeight = false; + this.repositoryItemCheckEdit1.Name = "repositoryItemCheckEdit1"; + // + // txtisToolBtn + // + this.txtisToolBtn.Location = new System.Drawing.Point(737, 62); + this.txtisToolBtn.Name = "txtisToolBtn"; + this.txtisToolBtn.Properties.Caption = "是否功能按钮"; + this.txtisToolBtn.Size = new System.Drawing.Size(128, 19); + this.txtisToolBtn.StyleController = this.layoutControl1; + this.txtisToolBtn.TabIndex = 16; + // + // layoutControlItem15 + // + this.layoutControlItem15.Control = this.txtisToolBtn; + this.layoutControlItem15.Location = new System.Drawing.Point(725, 50); + this.layoutControlItem15.Name = "layoutControlItem15"; + this.layoutControlItem15.Size = new System.Drawing.Size(132, 24); + this.layoutControlItem15.TextSize = new System.Drawing.Size(0, 0); + this.layoutControlItem15.TextVisible = false; + // // FrmsysMenu // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); @@ -740,7 +784,7 @@ namespace MES.Form this.ClientSize = new System.Drawing.Size(887, 542); this.Controls.Add(this.xtraTabControl1); this.Name = "FrmsysMenu"; - this.Text = "FrmsysMenu"; + this.Text = "菜单维护"; this.Load += new System.EventHandler(this.FrmsysMenu_Load); this.Controls.SetChildIndex(this.xtraTabControl1, 0); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtpid)).EndInit(); @@ -789,6 +833,9 @@ namespace MES.Form ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemCheckEdit1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtisToolBtn.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit(); this.ResumeLayout(false); } @@ -863,5 +910,9 @@ namespace MES.Form private LayoutControlItem layoutControlItem14; private TextEdit txtname; private LayoutControlItem layoutControlItem2; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn14; + private DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit repositoryItemCheckEdit1; + private CheckEdit txtisToolBtn; + private LayoutControlItem layoutControlItem15; } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/FrmsysUser.cs b/WinformGeneralDeveloperFrame/Form/FrmsysUser.cs index 7ee99f7..bfeb9c5 100644 --- a/WinformGeneralDeveloperFrame/Form/FrmsysUser.cs +++ b/WinformGeneralDeveloperFrame/Form/FrmsysUser.cs @@ -17,13 +17,14 @@ namespace MES.Form { public partial class FrmsysUser : FrmBaseForm { - public FrmsysUser() + private Dictionary fieldDictionary = new Dictionary(); + public FrmsysUser() { InitializeComponent(); } private void FrmsysUser_Load(object sender, EventArgs e) - { - + { + InitSearchDicData(); InitFrom(xtraTabControl1, grdList, grdListView, new LayoutControlGroup[] { layoutControlGroup1 }, new sysUserInfo()); } private void Init() @@ -37,7 +38,11 @@ namespace MES.Form repositoryItemtxteditorId.DataSource = GetDataTableUtils.SqlTable("用户"); } - + private void InitSearchDicData() + { + fieldDictionary.Add("用户名", "username"); + fieldDictionary.Add("工号", "account"); + } public override bool SaveFunction() { try @@ -135,5 +140,39 @@ namespace MES.Form } return true; } - } + public override void SearchFunction() + { + FrmSearch frm = new FrmSearch(fieldDictionary); + if (frm.ShowDialog() == DialogResult.OK) + { + string sql = frm.sql; + using (var db = new MESDB()) + { + if (string.IsNullOrEmpty(sql)) + { + grdList.DataSource = db.sysUserInfo.SqlQuery("select * from sysUser").ToList(); + } + else + { + grdList.DataSource = db.sysUserInfo.SqlQuery($"select * from sysUser where {sql}").ToList(); + } + } + } + } + + private void txtaccount_Leave(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(txtid.Text)) + { + using (var con = new MESDB()) + { + if (con.sysUserInfo.Where(p => p.account.Equals(txtaccount.Text)).Count() > 0) + { + txtaccount.Focus(); + "工号已存在!".ShowWarning(); + } + } + } + } + } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/FrmsysUser.designer.cs b/WinformGeneralDeveloperFrame/Form/FrmsysUser.designer.cs index 771cbec..48afe00 100644 --- a/WinformGeneralDeveloperFrame/Form/FrmsysUser.designer.cs +++ b/WinformGeneralDeveloperFrame/Form/FrmsysUser.designer.cs @@ -366,6 +366,7 @@ namespace MES.Form this.txtaccount.Size = new System.Drawing.Size(224, 20); this.txtaccount.StyleController = this.layoutControl1; this.txtaccount.TabIndex = 2; + this.txtaccount.Leave += new System.EventHandler(this.txtaccount_Leave); // // txtusername // @@ -646,7 +647,7 @@ namespace MES.Form this.ClientSize = new System.Drawing.Size(587, 500); this.Controls.Add(this.xtraTabControl1); this.Name = "FrmsysUser"; - this.Text = "FrmsysUser"; + this.Text = "用户维护"; this.Load += new System.EventHandler(this.FrmsysUser_Load); this.Controls.SetChildIndex(this.xtraTabControl1, 0); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtdeptId)).EndInit(); diff --git a/WinformGeneralDeveloperFrame/FrmBaseForm.cs b/WinformGeneralDeveloperFrame/FrmBaseForm.cs index 1bbb815..7c4b2f4 100644 --- a/WinformGeneralDeveloperFrame/FrmBaseForm.cs +++ b/WinformGeneralDeveloperFrame/FrmBaseForm.cs @@ -75,13 +75,17 @@ namespace WinformGeneralDeveloperFrame xtraTab.TabPages[0].PageEnabled = false; ClearScreen(); DateEdit dt = (DateEdit)this.getControl("txtcreateTime"); - dt.DateTime = DateTime.Now; + if (dt != null) + dt.DateTime = DateTime.Now; LookUpEditBase look= (LookUpEditBase)this.getControl("txtcreatorId"); DateEdit dt1 = (DateEdit)this.getControl("txteditTime"); - dt1.DateTime = DateTime.Now; + if (dt1 != null) + dt1.DateTime = DateTime.Now; LookUpEditBase look1 = (LookUpEditBase)this.getControl("txteditorId"); - look1.EditValue = AppInfo.LoginUserInfo.id; - look.EditValue = AppInfo.LoginUserInfo.id; + if (look1 != null) + look1.EditValue = AppInfo.LoginUserInfo.id; + if (look != null) + look.EditValue = AppInfo.LoginUserInfo.id; SetControlStatus(controlGroups, false); InitToolBtntatus(EFormStatus.eAdd); AddFunction(); @@ -94,9 +98,11 @@ namespace WinformGeneralDeveloperFrame { xtraTab.TabPages[0].PageEnabled = false; DateEdit dt =(DateEdit) this.getControl("txteditTime"); - dt.DateTime=DateTime.Now; + if(dt!=null) + dt.DateTime=DateTime.Now; LookUpEditBase look = (LookUpEditBase)this.getControl("txteditorId"); - look.EditValue = AppInfo.LoginUserInfo.id; + if (look != null) + look.EditValue = AppInfo.LoginUserInfo.id; SetControlStatus(controlGroups, false); InitToolBtntatus(EFormStatus.eEdit); EditFunction(); diff --git a/WinformGeneralDeveloperFrame/FrmSearch.Designer.cs b/WinformGeneralDeveloperFrame/FrmSearch.Designer.cs index ad5fbde..f8f47b1 100644 --- a/WinformGeneralDeveloperFrame/FrmSearch.Designer.cs +++ b/WinformGeneralDeveloperFrame/FrmSearch.Designer.cs @@ -30,48 +30,43 @@ namespace WinformGeneralDeveloperFrame private void InitializeComponent() { this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); + this.btncanel = new DevExpress.XtraEditors.SimpleButton(); + this.btnok = new DevExpress.XtraEditors.SimpleButton(); + this.txtvalue = new DevExpress.XtraEditors.TextEdit(); + this.txtrelation = new DevExpress.XtraEditors.ComboBoxEdit(); this.txtSql = new DevExpress.XtraEditors.MemoEdit(); this.btnadd = new DevExpress.XtraEditors.SimpleButton(); + this.txtoperator = new DevExpress.XtraEditors.ComboBoxEdit(); this.txtField = new DevExpress.XtraEditors.ComboBoxEdit(); this.Root = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txtoperator = new DevExpress.XtraEditors.ComboBoxEdit(); - this.txtrelation = new DevExpress.XtraEditors.ComboBoxEdit(); this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txtvalue = new DevExpress.XtraEditors.TextEdit(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); - this.btnok = new DevExpress.XtraEditors.SimpleButton(); this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); - this.btncanel = new DevExpress.XtraEditors.SimpleButton(); this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txtsort = new DevExpress.XtraEditors.CheckEdit(); - this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txtvalue.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtrelation.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtSql.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtoperator.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtField.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtoperator.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtrelation.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtvalue.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsort.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); this.SuspendLayout(); // // layoutControl1 // - this.layoutControl1.Controls.Add(this.txtsort); this.layoutControl1.Controls.Add(this.btncanel); this.layoutControl1.Controls.Add(this.btnok); this.layoutControl1.Controls.Add(this.txtvalue); @@ -84,28 +79,88 @@ namespace WinformGeneralDeveloperFrame this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.Root; - this.layoutControl1.Size = new System.Drawing.Size(737, 430); + this.layoutControl1.Size = new System.Drawing.Size(536, 299); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; // + // btncanel + // + this.btncanel.Location = new System.Drawing.Point(270, 265); + this.btncanel.Name = "btncanel"; + this.btncanel.Size = new System.Drawing.Size(254, 22); + this.btncanel.StyleController = this.layoutControl1; + this.btncanel.TabIndex = 13; + this.btncanel.Text = "取消"; + this.btncanel.Click += new System.EventHandler(this.btncanel_Click); + // + // btnok + // + this.btnok.Location = new System.Drawing.Point(12, 265); + this.btnok.Name = "btnok"; + this.btnok.Size = new System.Drawing.Size(254, 22); + this.btnok.StyleController = this.layoutControl1; + this.btnok.TabIndex = 12; + this.btnok.Text = "确定"; + this.btnok.Click += new System.EventHandler(this.btnok_Click); + // + // txtvalue + // + this.txtvalue.Location = new System.Drawing.Point(222, 12); + this.txtvalue.Name = "txtvalue"; + this.txtvalue.Size = new System.Drawing.Size(97, 20); + this.txtvalue.StyleController = this.layoutControl1; + this.txtvalue.TabIndex = 11; + // + // txtrelation + // + this.txtrelation.EditValue = "与-and"; + this.txtrelation.Location = new System.Drawing.Point(364, 12); + this.txtrelation.Name = "txtrelation"; + this.txtrelation.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtrelation.Properties.Items.AddRange(new object[] { + "与-and", + "或-or"}); + this.txtrelation.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; + this.txtrelation.Size = new System.Drawing.Size(71, 20); + this.txtrelation.StyleController = this.layoutControl1; + this.txtrelation.TabIndex = 10; + // // txtSql // this.txtSql.Location = new System.Drawing.Point(12, 38); this.txtSql.Name = "txtSql"; - this.txtSql.Size = new System.Drawing.Size(713, 354); + this.txtSql.Size = new System.Drawing.Size(512, 223); this.txtSql.StyleController = this.layoutControl1; this.txtSql.TabIndex = 8; // // btnadd // - this.btnadd.Location = new System.Drawing.Point(657, 12); + this.btnadd.Location = new System.Drawing.Point(439, 12); this.btnadd.Name = "btnadd"; - this.btnadd.Size = new System.Drawing.Size(68, 22); + this.btnadd.Size = new System.Drawing.Size(85, 22); this.btnadd.StyleController = this.layoutControl1; this.btnadd.TabIndex = 7; this.btnadd.Text = "增加"; this.btnadd.Click += new System.EventHandler(this.btnadd_Click); // + // txtoperator + // + this.txtoperator.EditValue = "等于-="; + this.txtoperator.Location = new System.Drawing.Point(136, 12); + this.txtoperator.Name = "txtoperator"; + this.txtoperator.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtoperator.Properties.Items.AddRange(new object[] { + "等于-=", + "大于->", + "小于-<", + "包含-like"}); + this.txtoperator.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; + this.txtoperator.Size = new System.Drawing.Size(67, 20); + this.txtoperator.StyleController = this.layoutControl1; + this.txtoperator.TabIndex = 5; + // // txtField // this.txtField.Location = new System.Drawing.Point(41, 12); @@ -113,7 +168,7 @@ namespace WinformGeneralDeveloperFrame this.txtField.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.txtField.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; - this.txtField.Size = new System.Drawing.Size(140, 20); + this.txtField.Size = new System.Drawing.Size(91, 20); this.txtField.StyleController = this.layoutControl1; this.txtField.TabIndex = 4; // @@ -129,10 +184,9 @@ namespace WinformGeneralDeveloperFrame this.layoutControlItem6, this.layoutControlItem3, this.layoutControlItem7, - this.layoutControlItem8, - this.layoutControlItem9}); + this.layoutControlItem8}); this.Root.Name = "Root"; - this.Root.Size = new System.Drawing.Size(737, 430); + this.Root.Size = new System.Drawing.Size(536, 299); this.Root.TextVisible = false; // // layoutControlItem1 @@ -140,18 +194,27 @@ namespace WinformGeneralDeveloperFrame this.layoutControlItem1.Control = this.txtField; this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); this.layoutControlItem1.Name = "layoutControlItem1"; - this.layoutControlItem1.Size = new System.Drawing.Size(173, 26); + this.layoutControlItem1.Size = new System.Drawing.Size(124, 26); this.layoutControlItem1.Text = "字段"; this.layoutControlItem1.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize; this.layoutControlItem1.TextSize = new System.Drawing.Size(24, 14); this.layoutControlItem1.TextToControlDistance = 5; // + // layoutControlItem2 + // + this.layoutControlItem2.Control = this.txtoperator; + this.layoutControlItem2.Location = new System.Drawing.Point(124, 0); + this.layoutControlItem2.Name = "layoutControlItem2"; + this.layoutControlItem2.Size = new System.Drawing.Size(71, 26); + this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); + this.layoutControlItem2.TextVisible = false; + // // layoutControlItem4 // this.layoutControlItem4.Control = this.btnadd; - this.layoutControlItem4.Location = new System.Drawing.Point(645, 0); + this.layoutControlItem4.Location = new System.Drawing.Point(427, 0); this.layoutControlItem4.Name = "layoutControlItem4"; - this.layoutControlItem4.Size = new System.Drawing.Size(72, 26); + this.layoutControlItem4.Size = new System.Drawing.Size(89, 26); this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem4.TextVisible = false; // @@ -160,164 +223,74 @@ namespace WinformGeneralDeveloperFrame this.layoutControlItem5.Control = this.txtSql; this.layoutControlItem5.Location = new System.Drawing.Point(0, 26); this.layoutControlItem5.Name = "layoutControlItem5"; - this.layoutControlItem5.Size = new System.Drawing.Size(717, 358); + this.layoutControlItem5.Size = new System.Drawing.Size(516, 227); this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem5.TextVisible = false; // - // layoutControlItem2 - // - this.layoutControlItem2.Control = this.txtoperator; - this.layoutControlItem2.Location = new System.Drawing.Point(173, 0); - this.layoutControlItem2.Name = "layoutControlItem2"; - this.layoutControlItem2.Size = new System.Drawing.Size(99, 26); - this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); - this.layoutControlItem2.TextVisible = false; - // - // txtoperator - // - this.txtoperator.EditValue = "等于-="; - this.txtoperator.Location = new System.Drawing.Point(185, 12); - this.txtoperator.Name = "txtoperator"; - this.txtoperator.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { - new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); - this.txtoperator.Properties.Items.AddRange(new object[] { - "等于-=", - "大于->", - "小于-<", - "包含-like"}); - this.txtoperator.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; - this.txtoperator.Size = new System.Drawing.Size(95, 20); - this.txtoperator.StyleController = this.layoutControl1; - this.txtoperator.TabIndex = 5; - // - // txtrelation - // - this.txtrelation.EditValue = "与-and"; - this.txtrelation.Location = new System.Drawing.Point(486, 12); - this.txtrelation.Name = "txtrelation"; - this.txtrelation.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { - new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); - this.txtrelation.Properties.Items.AddRange(new object[] { - "与-and", - "或-or"}); - this.txtrelation.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; - this.txtrelation.Size = new System.Drawing.Size(116, 20); - this.txtrelation.StyleController = this.layoutControl1; - this.txtrelation.TabIndex = 10; - // // layoutControlItem6 // this.layoutControlItem6.Control = this.txtrelation; - this.layoutControlItem6.Location = new System.Drawing.Point(433, 0); + this.layoutControlItem6.Location = new System.Drawing.Point(311, 0); this.layoutControlItem6.Name = "layoutControlItem6"; - this.layoutControlItem6.Size = new System.Drawing.Size(161, 26); + this.layoutControlItem6.Size = new System.Drawing.Size(116, 26); this.layoutControlItem6.Text = "关系符"; this.layoutControlItem6.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize; this.layoutControlItem6.TextSize = new System.Drawing.Size(36, 14); this.layoutControlItem6.TextToControlDistance = 5; // - // txtvalue - // - this.txtvalue.Location = new System.Drawing.Point(299, 12); - this.txtvalue.Name = "txtvalue"; - this.txtvalue.Size = new System.Drawing.Size(142, 20); - this.txtvalue.StyleController = this.layoutControl1; - this.txtvalue.TabIndex = 11; - // // layoutControlItem3 // this.layoutControlItem3.Control = this.txtvalue; - this.layoutControlItem3.Location = new System.Drawing.Point(272, 0); + this.layoutControlItem3.Location = new System.Drawing.Point(195, 0); this.layoutControlItem3.Name = "layoutControlItem3"; - this.layoutControlItem3.Size = new System.Drawing.Size(161, 26); + this.layoutControlItem3.Size = new System.Drawing.Size(116, 26); this.layoutControlItem3.Text = "值"; this.layoutControlItem3.TextSize = new System.Drawing.Size(12, 14); // - // btnok - // - this.btnok.Location = new System.Drawing.Point(12, 396); - this.btnok.Name = "btnok"; - this.btnok.Size = new System.Drawing.Size(354, 22); - this.btnok.StyleController = this.layoutControl1; - this.btnok.TabIndex = 12; - this.btnok.Text = "确定"; - this.btnok.Click += new System.EventHandler(this.btnok_Click); - // // layoutControlItem7 // this.layoutControlItem7.Control = this.btnok; - this.layoutControlItem7.Location = new System.Drawing.Point(0, 384); + this.layoutControlItem7.Location = new System.Drawing.Point(0, 253); this.layoutControlItem7.Name = "layoutControlItem7"; - this.layoutControlItem7.Size = new System.Drawing.Size(358, 26); + this.layoutControlItem7.Size = new System.Drawing.Size(258, 26); this.layoutControlItem7.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem7.TextVisible = false; // - // btncanel - // - this.btncanel.Location = new System.Drawing.Point(370, 396); - this.btncanel.Name = "btncanel"; - this.btncanel.Size = new System.Drawing.Size(355, 22); - this.btncanel.StyleController = this.layoutControl1; - this.btncanel.TabIndex = 13; - this.btncanel.Text = "取消"; - this.btncanel.Click += new System.EventHandler(this.btncanel_Click); - // // layoutControlItem8 // this.layoutControlItem8.Control = this.btncanel; - this.layoutControlItem8.Location = new System.Drawing.Point(358, 384); + this.layoutControlItem8.Location = new System.Drawing.Point(258, 253); this.layoutControlItem8.Name = "layoutControlItem8"; - this.layoutControlItem8.Size = new System.Drawing.Size(359, 26); + this.layoutControlItem8.Size = new System.Drawing.Size(258, 26); this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem8.TextVisible = false; // - // txtsort - // - this.txtsort.Location = new System.Drawing.Point(606, 12); - this.txtsort.Name = "txtsort"; - this.txtsort.Properties.Caption = "排序"; - this.txtsort.Size = new System.Drawing.Size(47, 19); - this.txtsort.StyleController = this.layoutControl1; - this.txtsort.TabIndex = 14; - // - // layoutControlItem9 - // - this.layoutControlItem9.Control = this.txtsort; - this.layoutControlItem9.Location = new System.Drawing.Point(594, 0); - this.layoutControlItem9.Name = "layoutControlItem9"; - this.layoutControlItem9.Size = new System.Drawing.Size(51, 26); - this.layoutControlItem9.Text = "排序"; - this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0); - this.layoutControlItem9.TextVisible = false; - // // FrmSearch // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(737, 430); + this.ClientSize = new System.Drawing.Size(536, 299); this.Controls.Add(this.layoutControl1); this.Name = "FrmSearch"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "FrmSearch"; + this.Text = "搜索"; this.Load += new System.EventHandler(this.FrmSearch_Load); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.txtvalue.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtrelation.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtSql.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtoperator.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtField.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtoperator.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtrelation.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtvalue.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsort.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); this.ResumeLayout(false); } @@ -342,7 +315,5 @@ namespace WinformGeneralDeveloperFrame private DevExpress.XtraEditors.SimpleButton btnok; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8; - private DevExpress.XtraEditors.CheckEdit txtsort; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9; } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/FrmsysDataBase.designer.cs b/WinformGeneralDeveloperFrame/FrmsysDataBase.designer.cs index e142c13..dfc23ca 100644 --- a/WinformGeneralDeveloperFrame/FrmsysDataBase.designer.cs +++ b/WinformGeneralDeveloperFrame/FrmsysDataBase.designer.cs @@ -434,7 +434,7 @@ namespace MES.Form this.ClientSize = new System.Drawing.Size(1300, 800); this.Controls.Add(this.xtraTabControl1); this.Name = "FrmsysDataBase"; - this.Text = "数据源"; + this.Text = "数据源维护"; this.Load += new System.EventHandler(this.FrmsysDataBase_Load); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); this.xtraTabControl1.ResumeLayout(false); diff --git a/WinformGeneralDeveloperFrame/FrmsysDataTable.designer.cs b/WinformGeneralDeveloperFrame/FrmsysDataTable.designer.cs index d273490..677c369 100644 --- a/WinformGeneralDeveloperFrame/FrmsysDataTable.designer.cs +++ b/WinformGeneralDeveloperFrame/FrmsysDataTable.designer.cs @@ -116,10 +116,10 @@ namespace MES.Form // xtraTabControl1 // this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.xtraTabControl1.Location = new System.Drawing.Point(0, 34); + this.xtraTabControl1.Location = new System.Drawing.Point(0, 0); this.xtraTabControl1.Name = "xtraTabControl1"; this.xtraTabControl1.SelectedTabPage = this.tabDataList; - this.xtraTabControl1.Size = new System.Drawing.Size(1300, 766); + this.xtraTabControl1.Size = new System.Drawing.Size(1300, 800); this.xtraTabControl1.TabIndex = 1; this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { this.tabDataList, @@ -129,7 +129,7 @@ namespace MES.Form // this.tabDataList.Controls.Add(this.grdList); this.tabDataList.Name = "tabDataList"; - this.tabDataList.Size = new System.Drawing.Size(1294, 737); + this.tabDataList.Size = new System.Drawing.Size(1294, 771); this.tabDataList.Text = "数据列表"; // // grdList @@ -138,7 +138,7 @@ namespace MES.Form this.grdList.Location = new System.Drawing.Point(0, 0); this.grdList.MainView = this.grdListView; this.grdList.Name = "grdList"; - this.grdList.Size = new System.Drawing.Size(1294, 737); + this.grdList.Size = new System.Drawing.Size(1294, 771); this.grdList.TabIndex = 0; this.grdList.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.grdListView}); @@ -355,9 +355,8 @@ namespace MES.Form this.ClientSize = new System.Drawing.Size(1300, 800); this.Controls.Add(this.xtraTabControl1); this.Name = "FrmsysDataTable"; - this.Text = "数据集"; + this.Text = "数据集维护"; this.Load += new System.EventHandler(this.FrmsysDataTable_Load); - this.Controls.SetChildIndex(this.xtraTabControl1, 0); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); this.xtraTabControl1.ResumeLayout(false); this.tabDataList.ResumeLayout(false); diff --git a/WinformGeneralDeveloperFrame/MainForm.Designer.cs b/WinformGeneralDeveloperFrame/MainForm.Designer.cs index 0c242cf..cb59938 100644 --- a/WinformGeneralDeveloperFrame/MainForm.Designer.cs +++ b/WinformGeneralDeveloperFrame/MainForm.Designer.cs @@ -40,6 +40,8 @@ namespace WinformGeneralDeveloperFrame this.barListItem1 = new DevExpress.XtraBars.BarListItem(); this.barUserName = new DevExpress.XtraBars.BarStaticItem(); this.barStaticItem3 = new DevExpress.XtraBars.BarStaticItem(); + this.btnabout = new DevExpress.XtraBars.BarButtonItem(); + this.barButtonItem1 = new DevExpress.XtraBars.BarButtonItem(); this.ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonStatusBar1 = new DevExpress.XtraBars.Ribbon.RibbonStatusBar(); @@ -48,6 +50,7 @@ namespace WinformGeneralDeveloperFrame this.timer1 = new System.Windows.Forms.Timer(this.components); this.bsi_UserName = new DevExpress.XtraBars.BarStaticItem(); this.barStaticItem1 = new DevExpress.XtraBars.BarStaticItem(); + this.barButtonItem2 = new DevExpress.XtraBars.BarButtonItem(); ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTimeEdit1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabbedMdiManager1)).BeginInit(); @@ -66,9 +69,12 @@ namespace WinformGeneralDeveloperFrame this.bsi_Date, this.barListItem1, this.barUserName, - this.barStaticItem3}); + this.barStaticItem3, + this.btnabout, + this.barButtonItem1, + this.barButtonItem2}); this.ribbonControl1.Location = new System.Drawing.Point(0, 0); - this.ribbonControl1.MaxItemId = 8; + this.ribbonControl1.MaxItemId = 11; this.ribbonControl1.Name = "ribbonControl1"; this.ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { this.ribbonPage1}); @@ -138,17 +144,35 @@ namespace WinformGeneralDeveloperFrame this.barStaticItem3.Id = 7; this.barStaticItem3.Name = "barStaticItem3"; // + // btnabout + // + this.btnabout.Caption = "关于"; + this.btnabout.Id = 8; + this.btnabout.ImageOptions.Image = global::WinformGeneralDeveloperFrame.Properties.Resources.operatingsystem_16x16; + this.btnabout.ImageOptions.LargeImage = global::WinformGeneralDeveloperFrame.Properties.Resources.operatingsystem_32x32; + this.btnabout.Name = "btnabout"; + this.btnabout.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonItemStyles.Large; + // + // barButtonItem1 + // + this.barButtonItem1.Caption = "bug反馈 "; + this.barButtonItem1.Id = 9; + this.barButtonItem1.ImageOptions.Image = global::WinformGeneralDeveloperFrame.Properties.Resources.mail_16x16; + this.barButtonItem1.ImageOptions.LargeImage = global::WinformGeneralDeveloperFrame.Properties.Resources.mail_32x32; + this.barButtonItem1.Name = "barButtonItem1"; + // // ribbonPage1 // this.ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.ribbonPageGroup1}); this.ribbonPage1.Name = "ribbonPage1"; - this.ribbonPage1.Text = "ribbonPage1"; + this.ribbonPage1.Text = "帮助"; // // ribbonPageGroup1 // + this.ribbonPageGroup1.ItemLinks.Add(this.barButtonItem1); + this.ribbonPageGroup1.ItemLinks.Add(this.btnabout); this.ribbonPageGroup1.Name = "ribbonPageGroup1"; - this.ribbonPageGroup1.Text = "ribbonPageGroup1"; // // ribbonStatusBar1 // @@ -198,6 +222,12 @@ namespace WinformGeneralDeveloperFrame this.barStaticItem1.Name = "barStaticItem1"; this.barStaticItem1.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph; // + // barButtonItem2 + // + this.barButtonItem2.Caption = "barButtonItem2"; + this.barButtonItem2.Id = 10; + this.barButtonItem2.Name = "barButtonItem2"; + // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); @@ -211,7 +241,7 @@ namespace WinformGeneralDeveloperFrame this.Ribbon = this.ribbonControl1; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.StatusBar = this.ribbonStatusBar1; - this.Text = "Form1"; + this.Text = "主界面"; this.Load += new System.EventHandler(this.MainForm_Load); ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTimeEdit1)).EndInit(); @@ -241,6 +271,9 @@ namespace WinformGeneralDeveloperFrame private DevExpress.XtraBars.BarStaticItem barStaticItem3; private DevExpress.XtraBars.BarStaticItem bsi_UserName; private DevExpress.XtraBars.BarStaticItem barStaticItem1; + private DevExpress.XtraBars.BarButtonItem btnabout; + private DevExpress.XtraBars.BarButtonItem barButtonItem1; + private DevExpress.XtraBars.BarButtonItem barButtonItem2; } } diff --git a/WinformGeneralDeveloperFrame/Properties/Resources.Designer.cs b/WinformGeneralDeveloperFrame/Properties/Resources.Designer.cs index 12f5f60..7e8b9a5 100644 --- a/WinformGeneralDeveloperFrame/Properties/Resources.Designer.cs +++ b/WinformGeneralDeveloperFrame/Properties/Resources.Designer.cs @@ -220,6 +220,46 @@ namespace WinformGeneralDeveloperFrame.Properties { } } + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap mail_16x16 { + get { + object obj = ResourceManager.GetObject("mail_16x16", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap mail_32x32 { + get { + object obj = ResourceManager.GetObject("mail_32x32", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap operatingsystem_16x16 { + get { + object obj = ResourceManager.GetObject("operatingsystem_16x16", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// 查找 System.Drawing.Bitmap 类型的本地化资源。 + /// + internal static System.Drawing.Bitmap operatingsystem_32x32 { + get { + object obj = ResourceManager.GetObject("operatingsystem_32x32", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// 查找 System.Drawing.Bitmap 类型的本地化资源。 /// diff --git a/WinformGeneralDeveloperFrame/Properties/Resources.resx b/WinformGeneralDeveloperFrame/Properties/Resources.resx index 2e72fe7..ad422a5 100644 --- a/WinformGeneralDeveloperFrame/Properties/Resources.resx +++ b/WinformGeneralDeveloperFrame/Properties/Resources.resx @@ -142,6 +142,9 @@ ..\Resources\bosaleitem_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\operatingsystem_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\bosaleitem_32x321.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -157,17 +160,26 @@ ..\Resources\database_32x321.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\boscheduler_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\bocustomer_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\team_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\folderpanel_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\build_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\boscheduler_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\mail_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\operatingsystem_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\boreport_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -178,7 +190,7 @@ ..\Resources\bocustomer_32x321.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\team_32x32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\mail_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Resources/mail_16x16.png b/WinformGeneralDeveloperFrame/Resources/mail_16x16.png new file mode 100644 index 0000000000000000000000000000000000000000..f10fe5a9b8e7ec77bdd7e7c429134249cc29a10d GIT binary patch literal 706 zcmV;z0zLhSP)Px#1ZP1_K>z@;j|==^1poj59&|-mbW~|{Y-IpUWps39ayw-$ZDDC_J7sNQX>2=f zVQFj{k(1g000KfuL_t(IPoQz-nt0)a=Ad?p66c1)?%&J-99_#Ip^H(x#yle1i*h$ zGWajBr>wx<672f}EWd~J8kg(?W*7QRF7%Bq%RCr)D|6pSdHe>wl1zA$pRJcM)> zypT~46<-h}2x3OguYC4HePsk~o%2lK0MXyE;rp%#^Rye&woh`GBrk#6%@kp0DVxLK zr~_9!t=I@8pzCYbIlCix7aF#*XG^F=hY4x;Cg9cvqL zcsDsT8RnQkIl0_1k0>X?!@M_t4!KgFg_XTLQdacTip5jjsNA*qlDOZrz`N z`uZ~_aELS;o+A=ZW6>RiY3d^qDGBTJf3)3vf|C^nT+}_p>tzqVg?C}5dFO{9)_fc; z>1UY0VWMfD!>TueKDxFz9fgT8zW8Ert@vd&Hsf-PHq)$07*qoM6N<$f^n=rG5`Po literal 0 HcmV?d00001 diff --git a/WinformGeneralDeveloperFrame/Resources/mail_32x32.png b/WinformGeneralDeveloperFrame/Resources/mail_32x32.png new file mode 100644 index 0000000000000000000000000000000000000000..50a9fb3140c249923a887f9d5d1b160e8591e316 GIT binary patch literal 1890 zcmV-o2c7tdP)Px#1ZP1_K>z@;j|==^1poj59&|-mbW~|{Y-IpUWps39ayw-$ZDDC_J7sNQX>2=f zVQFj{k(1g000!boL_t(oN5z(jb5qqG$E(i;#qHs~y!Usw@O*Bgql3#hqk?aqQem)w z%F;y;nNqb5Cla?U;XobT^@PJZXy8w21kWyZ!U$&8Ixl9*#Zw8ZQ=P#Ked#u_8nReu6kM={-= zaj;4XxoAMHNXNek*GzHk|KYkzaQ!9VSjJ(@X#-auGSohqce=qb{y$RQ`26h{h3BMutsjp_Q5rzIvQsZ8+an*GO2Zg<}xCMG8p z7cX9vzvz#-CPiy}d;+6m6X@y*U~5LHM`Cg{xa!Klbsv0gz?gIxpO{2=bPVB3SKQpQq)dLsh0L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mode 100644 index 0000000000000000000000000000000000000000..5464b0e5ca3d3d68d8a445da0be2bb6fc66fdd80 GIT binary patch literal 975 zcmV;=12FuFP)Px#1ZP1_K>z@;j|==^1poj5B6LMqbW~|{Y-IpXQ#(&^WpZJ3X>MmbQ+acAWoMe1cXK;Me61(|00T=&L_t(IPo+|MNYh~${!MLm%*-)on{&o!X7jGiE9cUjZdNwz z(rA?jnpaM9k=@y45#>?Zp-DBH$uumxG-=CD3nDDaq9PLMw8DZ49GwJfweiiWI6h^QabFsc(o*WZoV*>3K_DI2FI)6zNg<-Zp8QUV!YKS;eKow zEK@}ds)Zh&Wb1J0VFirU3Z!k7!mw{T;?q24*$ukM8MW@Nqq{0~k~>A~Cr~}Z zo?~omJ<$0S<+gXow)A6RJo(-qI0kt zOb|>SuPHh8x%JTp6txdvx%o8`w_L!ql(M|D>Arb=?ToRPJ`xvRYwsh&hivw|ZW71;iwh{MsXiyR5 zwubcBCe?T44nb7f;?bpC|Wg@k{= xwp>C3HFYK&N9amOubk%e?O7uR0RDquegmhebrzj|YJ&g(002ovPDHLkV1nwL&no}` literal 0 HcmV?d00001 diff --git a/WinformGeneralDeveloperFrame/Resources/operatingsystem_32x32.png b/WinformGeneralDeveloperFrame/Resources/operatingsystem_32x32.png new file mode 100644 index 0000000000000000000000000000000000000000..25e493524eff0cb106d07e2a3b1947374857ac98 GIT binary patch literal 2966 zcmV;H3u*L;P)Px#1ZP1_K>z@;j|==^1poj5B6LMqbW~|{Y-IpXQ#(&^WpZJ3X>MmbQ+acAWoMe1cXK;Me61(|01FaHL_t(oN5xlXR8_|sy=r{1kf5Tmi$t0Qt{|X*^veYlr3t76 zsY;hF3Mz;SND-u7dKW|xRFVKH5k-_DAXQO8EHnW%iP0Fcc4jWzD9L+2-ph~ot+m&= zGxwa?d-gZ;ojD8u|5r?k4n3vG&{v|}QzkI=KY;uH{e#{NihmRx1}cAo#FXkS3JY8G zRGiukR4)| zGfc+*NG8MOv;@N`d>z9fY%Rk+WDR3)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_FTOG5`Po literal 0 HcmV?d00001 diff --git a/WinformGeneralDeveloperFrame/Template/Winform/Form.vm b/WinformGeneralDeveloperFrame/Template/Winform/Form.vm index 534ae44..c5d48d7 100644 --- a/WinformGeneralDeveloperFrame/Template/Winform/Form.vm +++ b/WinformGeneralDeveloperFrame/Template/Winform/Form.vm @@ -74,7 +74,7 @@ namespace ${NameSpace}.Form { #foreach($info in $EntityList) #if(${info.isSearch}) - fieldDictionary.Add("${info.controlLabelName}","${info.dataBaseFieldName"); + fieldDictionary.Add("${info.controlLabelName}","${info.dataBaseFieldName}"); #end #end } diff --git a/WinformGeneralDeveloperFrame/Test.Designer.cs b/WinformGeneralDeveloperFrame/Test.Designer.cs new file mode 100644 index 0000000..ca1dcce --- /dev/null +++ b/WinformGeneralDeveloperFrame/Test.Designer.cs @@ -0,0 +1,85 @@ + +namespace WinformGeneralDeveloperFrame +{ + partial class Test + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.memoEdit1 = new DevExpress.XtraEditors.MemoEdit(); + this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); + this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton(); + ((System.ComponentModel.ISupportInitialize)(this.memoEdit1.Properties)).BeginInit(); + this.SuspendLayout(); + // + // memoEdit1 + // + this.memoEdit1.Dock = System.Windows.Forms.DockStyle.Top; + this.memoEdit1.Location = new System.Drawing.Point(0, 0); + this.memoEdit1.Name = "memoEdit1"; + this.memoEdit1.Size = new System.Drawing.Size(865, 298); + this.memoEdit1.TabIndex = 0; + // + // simpleButton1 + // + this.simpleButton1.Location = new System.Drawing.Point(203, 304); + this.simpleButton1.Name = "simpleButton1"; + this.simpleButton1.Size = new System.Drawing.Size(139, 48); + this.simpleButton1.TabIndex = 1; + this.simpleButton1.Text = "转化"; + this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click); + // + // simpleButton2 + // + this.simpleButton2.Location = new System.Drawing.Point(383, 304); + this.simpleButton2.Name = "simpleButton2"; + this.simpleButton2.Size = new System.Drawing.Size(127, 48); + this.simpleButton2.TabIndex = 2; + this.simpleButton2.Text = "采集数据"; + this.simpleButton2.Click += new System.EventHandler(this.simpleButton2_Click); + // + // Test + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(865, 489); + this.Controls.Add(this.simpleButton2); + this.Controls.Add(this.simpleButton1); + this.Controls.Add(this.memoEdit1); + this.Name = "Test"; + this.Text = "Test"; + ((System.ComponentModel.ISupportInitialize)(this.memoEdit1.Properties)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private DevExpress.XtraEditors.MemoEdit memoEdit1; + private DevExpress.XtraEditors.SimpleButton simpleButton1; + private DevExpress.XtraEditors.SimpleButton simpleButton2; + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Test.cs b/WinformGeneralDeveloperFrame/Test.cs new file mode 100644 index 0000000..ec8ea55 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Test.cs @@ -0,0 +1,769 @@ +using DevExpress.XtraEditors; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Data.Entity.Migrations; +using System.Drawing; +using System.IO; +using System.Linq; +using System.Net; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using DevExpress.Data.Helpers; +using MES; +using MES.Entity; +using WinformGeneralDeveloperFrame.Commons; + +namespace WinformGeneralDeveloperFrame +{ + public partial class Test : DevExpress.XtraEditors.XtraForm + { + private bool flag = false; + public Test() + { + InitializeComponent(); + GetData(); + } + + private void simpleButton1_Click(object sender, EventArgs e) + { + var data = memoEdit1.Text.Split(")".ToCharArray()); + List list = new List(); + foreach (var item in data) + { + var dd = item.Split("(".ToCharArray()); + if(dd.Length!=2)continue; + stockInfo info = new stockInfo() { name = dd[0].Replace("\"",""), code = "sz" + dd[1] }; + list.Add(info); + } + using (var db = new MESDB()) + { + db.stockInfo.AddRange(list); + db.SaveChanges(); + } + } + + private void GetData() + { + Task.Factory.StartNew(() => + { + while (true) + { + if (flag) + { + var t1 = Task.Factory.StartNew(() => + { + try + { + string url = "http://hq.sinajs.cn/list={0}"; + var list = new MESDB().stockInfo.ToList().Skip(0).Take(200); + string code = ""; + foreach (var stockInfo in list) + { + code += stockInfo.code + ","; + } + url = string.Format(url, code); + HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); + request.Method = "GET"; + request.ContentType = "text/html;charset=UTF-8"; + request.UserAgent = null; + request.Timeout = 6000; + HttpWebResponse response = (HttpWebResponse)request.GetResponse(); + Stream myResponseStream = response.GetResponseStream(); + StreamReader myStreamReader = new StreamReader(myResponseStream, System.Text.Encoding.Default); + string retString = myStreamReader.ReadToEnd(); + string[] ResData = retString.Split(';'); + List list1 = new List(); + foreach (var item in ResData) + { + var data = item.Split('='); + if (data.Length == 2) + { + var dd = data[1].Split(','); + if (dd.Length >= 33) + { + stockInfo info = new stockInfo() + { + code = data[0].Split('_')[2], + name = dd[0].Replace("\"", ""), + startPrice = decimal.Parse(dd[1]), + olePrice = decimal.Parse(dd[2]), + nowPrice = decimal.Parse(dd[3]), + maxPrice = decimal.Parse(dd[4]), + minPrice = decimal.Parse(dd[5]), + bidderPrice = decimal.Parse(dd[6]), + auctionPrice = decimal.Parse(dd[7]), + turnover = int.Parse(dd[8]), + turnoverPrice = decimal.Parse(dd[9]), + buyOneNum = int.Parse(dd[10]), + buyOnePrice = decimal.Parse(dd[11]), + buyTwoNum = int.Parse(dd[12]), + buyTwoPrice = decimal.Parse(dd[13]), + buyThreeNum = int.Parse(dd[14]), + buyThreePrice = decimal.Parse(dd[15]), + buyFourNum = int.Parse(dd[16]), + buyFourPrice = decimal.Parse(dd[17]), + buyFiveNum = int.Parse(dd[18]), + buyFivePrice = decimal.Parse(dd[19]), + sellOneNum = int.Parse(dd[20]), + sellOnePrice = decimal.Parse(dd[21]), + sellTwoNum = int.Parse(dd[22]), + sellTwoPrice = decimal.Parse(dd[23]), + sellThreeNum = int.Parse(dd[24]), + sellThreePrice = decimal.Parse(dd[25]), + sellFourNum = int.Parse(dd[26]), + sellFourPrice = decimal.Parse(dd[27]), + sellFiveNum = int.Parse(dd[28]), + sellFivePrice = decimal.Parse(dd[29]), + timeStr = DateTime.Parse(dd[30] + " " + dd[31]) + }; + list1.Add(info); + } + } + } + using (var db = new MESDB()) + { + foreach (var info in list1) + { + db.stockInfo.AddOrUpdate(info); + } + db.SaveChanges(); + } + } + catch (Exception ex) + { + ex.Message.ShowError(); + } + }); + //var t2 = Task.Factory.StartNew(() => + //{ + // try + // { + // string url = "http://hq.sinajs.cn/list={0}"; + // var list = new MESDB().stockInfo.ToList().Skip(500).Take(500); + // string code = ""; + // foreach (var stockInfo in list) + // { + // code += stockInfo.code + ","; + // } + // url = string.Format(url, code); + // HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); + // request.Method = "GET"; + // request.ContentType = "text/html;charset=UTF-8"; + // request.UserAgent = null; + // request.Timeout = 6000; + // HttpWebResponse response = (HttpWebResponse)request.GetResponse(); + // Stream myResponseStream = response.GetResponseStream(); + // StreamReader myStreamReader = new StreamReader(myResponseStream, System.Text.Encoding.Default); + // string retString = myStreamReader.ReadToEnd(); + // string[] ResData = retString.Split(';'); + // List list1 = new List(); + // foreach (var item in ResData) + // { + // var data = item.Split('='); + // if (data.Length == 2) + // { + // var dd = data[1].Split(','); + // if (dd.Length >= 33) + // { + // stockInfo info = new stockInfo() + // { + // code = data[0].Split('_')[2], + // name = dd[0].Replace("\"", ""), + // startPrice = decimal.Parse(dd[1]), + // olePrice = decimal.Parse(dd[2]), + // nowPrice = decimal.Parse(dd[3]), + // maxPrice = decimal.Parse(dd[4]), + // minPrice = decimal.Parse(dd[5]), + // bidderPrice = decimal.Parse(dd[6]), + // auctionPrice = decimal.Parse(dd[7]), + // turnover = int.Parse(dd[8]), + // turnoverPrice = decimal.Parse(dd[9]), + // buyOneNum = int.Parse(dd[10]), + // buyOnePrice = decimal.Parse(dd[11]), + // buyTwoNum = int.Parse(dd[12]), + // buyTwoPrice = decimal.Parse(dd[13]), + // buyThreeNum = int.Parse(dd[14]), + // buyThreePrice = decimal.Parse(dd[15]), + // buyFourNum = int.Parse(dd[16]), + // buyFourPrice = decimal.Parse(dd[17]), + // buyFiveNum = int.Parse(dd[18]), + // buyFivePrice = decimal.Parse(dd[19]), + // sellOneNum = int.Parse(dd[20]), + // sellOnePrice = decimal.Parse(dd[21]), + // sellTwoNum = int.Parse(dd[22]), + // sellTwoPrice = decimal.Parse(dd[23]), + // sellThreeNum = int.Parse(dd[24]), + // sellThreePrice = decimal.Parse(dd[25]), + // sellFourNum = int.Parse(dd[26]), + // sellFourPrice = decimal.Parse(dd[27]), + // sellFiveNum = int.Parse(dd[28]), + // sellFivePrice = decimal.Parse(dd[29]), + // timeStr = DateTime.Parse(dd[30] + " " + dd[31]) + // }; + // list1.Add(info); + // } + // } + // } + // using (var db = new MESDB()) + // { + // foreach (var info in list1) + // { + // db.stockInfo.AddOrUpdate(info); + // } + // db.SaveChanges(); + // } + // } + // catch (Exception ex) + // { + // ex.Message.ShowError(); + // } + //}); + //var t3 = Task.Factory.StartNew(() => + //{ + // try + // { + // string url = "http://hq.sinajs.cn/list={0}"; + // var list = new MESDB().stockInfo.ToList().Skip(1000).Take(500); + // string code = ""; + // foreach (var stockInfo in list) + // { + // code += stockInfo.code + ","; + // } + // url = string.Format(url, code); + // HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); + // request.Method = "GET"; + // request.ContentType = "text/html;charset=UTF-8"; + // request.UserAgent = null; + // request.Timeout = 6000; + // HttpWebResponse response = (HttpWebResponse)request.GetResponse(); + // Stream myResponseStream = response.GetResponseStream(); + // StreamReader myStreamReader = new StreamReader(myResponseStream, System.Text.Encoding.Default); + // string retString = myStreamReader.ReadToEnd(); + // string[] ResData = retString.Split(';'); + // List list1 = new List(); + // foreach (var item in ResData) + // { + // var data = item.Split('='); + // if (data.Length == 2) + // { + // var dd = data[1].Split(','); + // if (dd.Length >= 33) + // { + // stockInfo info = new stockInfo() + // { + // code = data[0].Split('_')[2], + // name = dd[0].Replace("\"", ""), + // startPrice = decimal.Parse(dd[1]), + // olePrice = decimal.Parse(dd[2]), + // nowPrice = decimal.Parse(dd[3]), + // maxPrice = decimal.Parse(dd[4]), + // minPrice = decimal.Parse(dd[5]), + // bidderPrice = decimal.Parse(dd[6]), + // auctionPrice = decimal.Parse(dd[7]), + // turnover = int.Parse(dd[8]), + // turnoverPrice = decimal.Parse(dd[9]), + // buyOneNum = int.Parse(dd[10]), + // buyOnePrice = decimal.Parse(dd[11]), + // buyTwoNum = int.Parse(dd[12]), + // buyTwoPrice = decimal.Parse(dd[13]), + // buyThreeNum = int.Parse(dd[14]), + // buyThreePrice = decimal.Parse(dd[15]), + // buyFourNum = int.Parse(dd[16]), + // buyFourPrice = decimal.Parse(dd[17]), + // buyFiveNum = int.Parse(dd[18]), + // buyFivePrice = decimal.Parse(dd[19]), + // sellOneNum = int.Parse(dd[20]), + // sellOnePrice = decimal.Parse(dd[21]), + // sellTwoNum = int.Parse(dd[22]), + // sellTwoPrice = decimal.Parse(dd[23]), + // sellThreeNum = int.Parse(dd[24]), + // sellThreePrice = decimal.Parse(dd[25]), + // sellFourNum = int.Parse(dd[26]), + // sellFourPrice = decimal.Parse(dd[27]), + // sellFiveNum = int.Parse(dd[28]), + // sellFivePrice = decimal.Parse(dd[29]), + // timeStr = DateTime.Parse(dd[30] + " " + dd[31]) + // }; + // list1.Add(info); + // } + // } + // } + // using (var db = new MESDB()) + // { + // foreach (var info in list1) + // { + // db.stockInfo.AddOrUpdate(info); + // } + // db.SaveChanges(); + // } + // } + // catch (Exception ex) + // { + // ex.Message.ShowError(); + // } + //}); + //var t4 = Task.Factory.StartNew(() => + //{ + // try + // { + // string url = "http://hq.sinajs.cn/list={0}"; + // var list = new MESDB().stockInfo.ToList().Skip(1500).Take(500); + // string code = ""; + // foreach (var stockInfo in list) + // { + // code += stockInfo.code + ","; + // } + // url = string.Format(url, code); + // HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); + // request.Method = "GET"; + // request.ContentType = "text/html;charset=UTF-8"; + // request.UserAgent = null; + // request.Timeout = 6000; + // HttpWebResponse response = (HttpWebResponse)request.GetResponse(); + // Stream myResponseStream = response.GetResponseStream(); + // StreamReader myStreamReader = new StreamReader(myResponseStream, System.Text.Encoding.Default); + // string retString = myStreamReader.ReadToEnd(); + // string[] ResData = retString.Split(';'); + // List list1 = new List(); + // foreach (var item in ResData) + // { + // var data = item.Split('='); + // if (data.Length == 2) + // { + // var dd = data[1].Split(','); + // if (dd.Length >= 33) + // { + // stockInfo info = new stockInfo() + // { + // code = data[0].Split('_')[2], + // name = dd[0].Replace("\"", ""), + // startPrice = decimal.Parse(dd[1]), + // olePrice = decimal.Parse(dd[2]), + // nowPrice = decimal.Parse(dd[3]), + // maxPrice = decimal.Parse(dd[4]), + // minPrice = decimal.Parse(dd[5]), + // bidderPrice = decimal.Parse(dd[6]), + // auctionPrice = decimal.Parse(dd[7]), + // turnover = int.Parse(dd[8]), + // turnoverPrice = decimal.Parse(dd[9]), + // buyOneNum = int.Parse(dd[10]), + // buyOnePrice = decimal.Parse(dd[11]), + // buyTwoNum = int.Parse(dd[12]), + // buyTwoPrice = decimal.Parse(dd[13]), + // buyThreeNum = int.Parse(dd[14]), + // buyThreePrice = decimal.Parse(dd[15]), + // buyFourNum = int.Parse(dd[16]), + // buyFourPrice = decimal.Parse(dd[17]), + // buyFiveNum = int.Parse(dd[18]), + // buyFivePrice = decimal.Parse(dd[19]), + // sellOneNum = int.Parse(dd[20]), + // sellOnePrice = decimal.Parse(dd[21]), + // sellTwoNum = int.Parse(dd[22]), + // sellTwoPrice = decimal.Parse(dd[23]), + // sellThreeNum = int.Parse(dd[24]), + // sellThreePrice = decimal.Parse(dd[25]), + // sellFourNum = int.Parse(dd[26]), + // sellFourPrice = decimal.Parse(dd[27]), + // sellFiveNum = int.Parse(dd[28]), + // sellFivePrice = decimal.Parse(dd[29]), + // timeStr = DateTime.Parse(dd[30] + " " + dd[31]) + // }; + // list1.Add(info); + // } + // } + // } + // using (var db = new MESDB()) + // { + // foreach (var info in list1) + // { + // db.stockInfo.AddOrUpdate(info); + // } + // db.SaveChanges(); + // } + // } + // catch (Exception ex) + // { + // ex.Message.ShowError(); + // } + //}); + //var t5 = Task.Factory.StartNew(() => + //{ + // try + // { + // string url = "http://hq.sinajs.cn/list={0}"; + // var list = new MESDB().stockInfo.ToList().Skip(2000).Take(500); + // string code = ""; + // foreach (var stockInfo in list) + // { + // code += stockInfo.code + ","; + // } + // url = string.Format(url, code); + // HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); + // request.Method = "GET"; + // request.ContentType = "text/html;charset=UTF-8"; + // request.UserAgent = null; + // request.Timeout = 6000; + // HttpWebResponse response = (HttpWebResponse)request.GetResponse(); + // Stream myResponseStream = response.GetResponseStream(); + // StreamReader myStreamReader = new StreamReader(myResponseStream, System.Text.Encoding.Default); + // string retString = myStreamReader.ReadToEnd(); + // string[] ResData = retString.Split(';'); + // List list1 = new List(); + // foreach (var item in ResData) + // { + // var data = item.Split('='); + // if (data.Length == 2) + // { + // var dd = data[1].Split(','); + // if (dd.Length >= 33) + // { + // stockInfo info = new stockInfo() + // { + // code = data[0].Split('_')[2], + // name = dd[0].Replace("\"", ""), + // startPrice = decimal.Parse(dd[1]), + // olePrice = decimal.Parse(dd[2]), + // nowPrice = decimal.Parse(dd[3]), + // maxPrice = decimal.Parse(dd[4]), + // minPrice = decimal.Parse(dd[5]), + // bidderPrice = decimal.Parse(dd[6]), + // auctionPrice = decimal.Parse(dd[7]), + // turnover = int.Parse(dd[8]), + // turnoverPrice = decimal.Parse(dd[9]), + // buyOneNum = int.Parse(dd[10]), + // buyOnePrice = decimal.Parse(dd[11]), + // buyTwoNum = int.Parse(dd[12]), + // buyTwoPrice = decimal.Parse(dd[13]), + // buyThreeNum = int.Parse(dd[14]), + // buyThreePrice = decimal.Parse(dd[15]), + // buyFourNum = int.Parse(dd[16]), + // buyFourPrice = decimal.Parse(dd[17]), + // buyFiveNum = int.Parse(dd[18]), + // buyFivePrice = decimal.Parse(dd[19]), + // sellOneNum = int.Parse(dd[20]), + // sellOnePrice = decimal.Parse(dd[21]), + // sellTwoNum = int.Parse(dd[22]), + // sellTwoPrice = decimal.Parse(dd[23]), + // sellThreeNum = int.Parse(dd[24]), + // sellThreePrice = decimal.Parse(dd[25]), + // sellFourNum = int.Parse(dd[26]), + // sellFourPrice = decimal.Parse(dd[27]), + // sellFiveNum = int.Parse(dd[28]), + // sellFivePrice = decimal.Parse(dd[29]), + // timeStr = DateTime.Parse(dd[30] + " " + dd[31]) + // }; + // list1.Add(info); + // } + // } + // } + // using (var db = new MESDB()) + // { + // foreach (var info in list1) + // { + // db.stockInfo.AddOrUpdate(info); + // } + // db.SaveChanges(); + // } + // } + // catch (Exception ex) + // { + // ex.Message.ShowError(); + // } + //}); + //var t6 = Task.Factory.StartNew(() => + //{ + // try + // { + // string url = "http://hq.sinajs.cn/list={0}"; + // var list = new MESDB().stockInfo.ToList().Skip(2500).Take(500); + // string code = ""; + // foreach (var stockInfo in list) + // { + // code += stockInfo.code + ","; + // } + // url = string.Format(url, code); + // HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); + // request.Method = "GET"; + // request.ContentType = "text/html;charset=UTF-8"; + // request.UserAgent = null; + // request.Timeout = 6000; + // HttpWebResponse response = (HttpWebResponse)request.GetResponse(); + // Stream myResponseStream = response.GetResponseStream(); + // StreamReader myStreamReader = new StreamReader(myResponseStream, System.Text.Encoding.Default); + // string retString = myStreamReader.ReadToEnd(); + // string[] ResData = retString.Split(';'); + // List list1 = new List(); + // foreach (var item in ResData) + // { + // var data = item.Split('='); + // if (data.Length == 2) + // { + // var dd = data[1].Split(','); + // if (dd.Length >= 33) + // { + // stockInfo info = new stockInfo() + // { + // code = data[0].Split('_')[2], + // name = dd[0].Replace("\"", ""), + // startPrice = decimal.Parse(dd[1]), + // olePrice = decimal.Parse(dd[2]), + // nowPrice = decimal.Parse(dd[3]), + // maxPrice = decimal.Parse(dd[4]), + // minPrice = decimal.Parse(dd[5]), + // bidderPrice = decimal.Parse(dd[6]), + // auctionPrice = decimal.Parse(dd[7]), + // turnover = int.Parse(dd[8]), + // turnoverPrice = decimal.Parse(dd[9]), + // buyOneNum = int.Parse(dd[10]), + // buyOnePrice = decimal.Parse(dd[11]), + // buyTwoNum = int.Parse(dd[12]), + // buyTwoPrice = decimal.Parse(dd[13]), + // buyThreeNum = int.Parse(dd[14]), + // buyThreePrice = decimal.Parse(dd[15]), + // buyFourNum = int.Parse(dd[16]), + // buyFourPrice = decimal.Parse(dd[17]), + // buyFiveNum = int.Parse(dd[18]), + // buyFivePrice = decimal.Parse(dd[19]), + // sellOneNum = int.Parse(dd[20]), + // sellOnePrice = decimal.Parse(dd[21]), + // sellTwoNum = int.Parse(dd[22]), + // sellTwoPrice = decimal.Parse(dd[23]), + // sellThreeNum = int.Parse(dd[24]), + // sellThreePrice = decimal.Parse(dd[25]), + // sellFourNum = int.Parse(dd[26]), + // sellFourPrice = decimal.Parse(dd[27]), + // sellFiveNum = int.Parse(dd[28]), + // sellFivePrice = decimal.Parse(dd[29]), + // timeStr = DateTime.Parse(dd[30] + " " + dd[31]) + // }; + // list1.Add(info); + // } + // } + // } + // using (var db = new MESDB()) + // { + // foreach (var info in list1) + // { + // db.stockInfo.AddOrUpdate(info); + // } + // db.SaveChanges(); + // } + // } + // catch (Exception ex) + // { + // ex.Message.ShowError(); + // } + //}); + //var t7 = Task.Factory.StartNew(() => + //{ + // try + // { + // string url = "http://hq.sinajs.cn/list={0}"; + // var list = new MESDB().stockInfo.ToList().Skip(3000).Take(500); + // string code = ""; + // foreach (var stockInfo in list) + // { + // code += stockInfo.code + ","; + // } + // url = string.Format(url, code); + // HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); + // request.Method = "GET"; + // request.ContentType = "text/html;charset=UTF-8"; + // request.UserAgent = null; + // request.Timeout = 6000; + // HttpWebResponse response = (HttpWebResponse)request.GetResponse(); + // Stream myResponseStream = response.GetResponseStream(); + // StreamReader myStreamReader = new StreamReader(myResponseStream, System.Text.Encoding.Default); + // string retString = myStreamReader.ReadToEnd(); + // string[] ResData = retString.Split(';'); + // List list1 = new List(); + // foreach (var item in ResData) + // { + // var data = item.Split('='); + // if (data.Length == 2) + // { + // var dd = data[1].Split(','); + // if (dd.Length >= 33) + // { + // stockInfo info = new stockInfo() + // { + // code = data[0].Split('_')[2], + // name = dd[0].Replace("\"", ""), + // startPrice = decimal.Parse(dd[1]), + // olePrice = decimal.Parse(dd[2]), + // nowPrice = decimal.Parse(dd[3]), + // maxPrice = decimal.Parse(dd[4]), + // minPrice = decimal.Parse(dd[5]), + // bidderPrice = decimal.Parse(dd[6]), + // auctionPrice = decimal.Parse(dd[7]), + // turnover = int.Parse(dd[8]), + // turnoverPrice = decimal.Parse(dd[9]), + // buyOneNum = int.Parse(dd[10]), + // buyOnePrice = decimal.Parse(dd[11]), + // buyTwoNum = int.Parse(dd[12]), + // buyTwoPrice = decimal.Parse(dd[13]), + // buyThreeNum = int.Parse(dd[14]), + // buyThreePrice = decimal.Parse(dd[15]), + // buyFourNum = int.Parse(dd[16]), + // buyFourPrice = decimal.Parse(dd[17]), + // buyFiveNum = int.Parse(dd[18]), + // buyFivePrice = decimal.Parse(dd[19]), + // sellOneNum = int.Parse(dd[20]), + // sellOnePrice = decimal.Parse(dd[21]), + // sellTwoNum = int.Parse(dd[22]), + // sellTwoPrice = decimal.Parse(dd[23]), + // sellThreeNum = int.Parse(dd[24]), + // sellThreePrice = decimal.Parse(dd[25]), + // sellFourNum = int.Parse(dd[26]), + // sellFourPrice = decimal.Parse(dd[27]), + // sellFiveNum = int.Parse(dd[28]), + // sellFivePrice = decimal.Parse(dd[29]), + // timeStr = DateTime.Parse(dd[30] + " " + dd[31]) + // }; + // list1.Add(info); + // } + // } + // } + // using (var db = new MESDB()) + // { + // foreach (var info in list1) + // { + // db.stockInfo.AddOrUpdate(info); + // } + // db.SaveChanges(); + // } + // } + // catch (Exception ex) + // { + // ex.Message.ShowError(); + // } + //}); + List listtask = new List(); + for(int m = 0; m<8; m++) + { + int n = m; + var t=Task.Factory.StartNew(() => + { + try + { + string url = "http://hq.sinajs.cn/list={0}"; + var list = new MESDB().stockInfo.ToList().Skip(400*n).Take(400); + string code = ""; + foreach (var stockInfo in list) + { + code += stockInfo.code + ","; + } + url = string.Format(url, code); + HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); + request.Method = "GET"; + request.ContentType = "text/html;charset=UTF-8"; + request.UserAgent = null; + request.Timeout = 60000; + HttpWebResponse response = (HttpWebResponse)request.GetResponse(); + Stream myResponseStream = response.GetResponseStream(); + StreamReader myStreamReader = new StreamReader(myResponseStream, System.Text.Encoding.Default); + string retString = myStreamReader.ReadToEnd(); + string[] ResData = retString.Split(';'); + List list1 = new List(); + foreach (var item in ResData) + { + var data = item.Split('='); + if (data.Length == 2) + { + var dd = data[1].Split(','); + if (dd.Length >= 33) + { + stockInfo info = new stockInfo() + { + code = data[0].Split('_')[2], + name = dd[0].Replace("\"", ""), + startPrice = decimal.Parse(dd[1]), + olePrice = decimal.Parse(dd[2]), + nowPrice = decimal.Parse(dd[3]), + maxPrice = decimal.Parse(dd[4]), + minPrice = decimal.Parse(dd[5]), + bidderPrice = decimal.Parse(dd[6]), + auctionPrice = decimal.Parse(dd[7]), + turnover = int.Parse(dd[8]), + turnoverPrice = decimal.Parse(dd[9]), + buyOneNum = int.Parse(dd[10]), + buyOnePrice = decimal.Parse(dd[11]), + buyTwoNum = int.Parse(dd[12]), + buyTwoPrice = decimal.Parse(dd[13]), + buyThreeNum = int.Parse(dd[14]), + buyThreePrice = decimal.Parse(dd[15]), + buyFourNum = int.Parse(dd[16]), + buyFourPrice = decimal.Parse(dd[17]), + buyFiveNum = int.Parse(dd[18]), + buyFivePrice = decimal.Parse(dd[19]), + sellOneNum = int.Parse(dd[20]), + sellOnePrice = decimal.Parse(dd[21]), + sellTwoNum = int.Parse(dd[22]), + sellTwoPrice = decimal.Parse(dd[23]), + sellThreeNum = int.Parse(dd[24]), + sellThreePrice = decimal.Parse(dd[25]), + sellFourNum = int.Parse(dd[26]), + sellFourPrice = decimal.Parse(dd[27]), + sellFiveNum = int.Parse(dd[28]), + sellFivePrice = decimal.Parse(dd[29]), + timeStr = DateTime.Parse(dd[30] + " " + dd[31]) + }; + list1.Add(info); + } + } + } + using (var db = new MESDB()) + { + foreach (var info in list1) + { + db.stockInfo.AddOrUpdate(info); + } + db.SaveChanges(); + } + } + catch (Exception ex) + { + var action1 = new Action(() => + { + Show(DateTime.Now + ex.Message + "\r\n"); + }); + this.Invoke(action1); + } + }); + listtask.Add(t); + } + Task.WaitAll(listtask.ToArray()); + var action= new Action(() => + { + Show(DateTime.Now + ":采集成功" + "\r\n"); + }); + this.Invoke(action); + } + } + }); + } + + private void Show(string str) + { + memoEdit1.MaskBox.AppendText(str); + } + private void simpleButton2_Click(object sender, EventArgs e) + { + if (!flag) + { + flag = true; + memoEdit1.MaskBox.AppendText(DateTime.Now+":开始采集" + "\r\n"); + simpleButton2.Text = "停止"; + } + else + { + flag = false; + memoEdit1.MaskBox.AppendText(DateTime.Now + ":停止采集" + "\r\n"); + simpleButton2.Text = "开始采集"; + } + } + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Test.resx b/WinformGeneralDeveloperFrame/Test.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Test.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj b/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj index 88d7275..6f7c912 100644 --- a/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj +++ b/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj @@ -133,10 +133,17 @@ + + + Form + + + Frmstock.cs + Form @@ -219,6 +226,12 @@ + + Form + + + Test.cs + Form @@ -235,6 +248,9 @@ BaseForm.cs + + Frmstock.cs + FrmsysDictData.cs @@ -285,6 +301,9 @@ FrmShowForm.cs + + Test.cs + WaitForm1.cs @@ -7595,6 +7614,10 @@ Always + + + + diff --git a/WinformGeneralDeveloperFrame/frmSelectDataBase.Designer.cs b/WinformGeneralDeveloperFrame/frmSelectDataBase.Designer.cs index 920b335..83e0064 100644 --- a/WinformGeneralDeveloperFrame/frmSelectDataBase.Designer.cs +++ b/WinformGeneralDeveloperFrame/frmSelectDataBase.Designer.cs @@ -53,6 +53,7 @@ namespace WinformGeneralDeveloperFrame this.isKey = new DevExpress.XtraGrid.Columns.GridColumn(); this.isIdentity = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); this.textEdit2 = new DevExpress.XtraEditors.TextEdit(); this.textEdit1 = new DevExpress.XtraEditors.TextEdit(); @@ -73,7 +74,6 @@ namespace WinformGeneralDeveloperFrame this.label1 = new System.Windows.Forms.Label(); this.wizardControl1 = new DevExpress.XtraWizard.WizardControl(); this.xtraFolderBrowserDialog1 = new DevExpress.XtraEditors.XtraFolderBrowserDialog(this.components); - this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); this.completionWizardPage1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); @@ -272,7 +272,7 @@ namespace WinformGeneralDeveloperFrame this.gridColumn1.FieldName = "controlLabelName"; this.gridColumn1.Name = "gridColumn1"; this.gridColumn1.Visible = true; - this.gridColumn1.VisibleIndex = 9; + this.gridColumn1.VisibleIndex = 10; // // isVisible // @@ -318,7 +318,7 @@ namespace WinformGeneralDeveloperFrame this.isIdentity.Name = "isIdentity"; this.isIdentity.OptionsColumn.ReadOnly = true; this.isIdentity.Visible = true; - this.isIdentity.VisibleIndex = 8; + this.isIdentity.VisibleIndex = 9; // // gridColumn2 // @@ -326,7 +326,15 @@ namespace WinformGeneralDeveloperFrame this.gridColumn2.FieldName = "isSearch"; this.gridColumn2.Name = "gridColumn2"; this.gridColumn2.Visible = true; - this.gridColumn2.VisibleIndex = 10; + this.gridColumn2.VisibleIndex = 11; + // + // gridColumn3 + // + this.gridColumn3.Caption = "是否为空检验"; + this.gridColumn3.FieldName = "isCheck"; + this.gridColumn3.Name = "gridColumn3"; + this.gridColumn3.Visible = true; + this.gridColumn3.VisibleIndex = 8; // // simpleButton1 // @@ -528,14 +536,6 @@ namespace WinformGeneralDeveloperFrame // this.xtraFolderBrowserDialog1.SelectedPath = "xtraFolderBrowserDialog1"; // - // gridColumn3 - // - this.gridColumn3.Caption = "是否为空检验"; - this.gridColumn3.FieldName = "isCheck"; - this.gridColumn3.Name = "gridColumn3"; - this.gridColumn3.Visible = true; - this.gridColumn3.VisibleIndex = 7; - // // frmSelectDataBase // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); @@ -547,7 +547,7 @@ namespace WinformGeneralDeveloperFrame this.MinimizeBox = false; this.Name = "frmSelectDataBase"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "选择数据源"; + this.Text = "代码生成"; this.Load += new System.EventHandler(this.frmSelectDataBase_Load); this.completionWizardPage1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();