From ecbbebe3475a4e965e92e22f6cc43c05300a9295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=AF=20=E7=8E=8B?= <648428741@qq.com> Date: Thu, 27 May 2021 18:08:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=20=E7=89=A9=E6=96=99=E4=BF=A1=E6=81=AF=20?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E4=BF=A1=E6=81=AF=20=E4=BE=9B=E5=BA=94?= =?UTF-8?q?=E5=95=86=E4=BF=A1=E6=81=AF=20=E4=BB=93=E5=BA=93=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vs/WinformGeneralDeveloperFrame/v16/.suo | Bin 442880 -> 473088 bytes WinformGeneralDeveloperFrame/DB/MESDB.cs | 9 + .../Entity/customerInfo.cs | 38 + .../Entity/materialInfo.cs | 46 + .../Entity/productInfo.cs | 56 + .../Entity/stockInfo.cs | 72 +- .../Entity/supplierInfo.cs | 50 + .../Form/Frmcustomer.cs | 209 +++ .../Form/Frmcustomer.designer.cs | 658 +++++++ .../Form/Frmcustomer.resx | 120 ++ .../Form/Frmmaterial.cs | 238 +++ .../Form/Frmmaterial.designer.cs | 843 +++++++++ .../Form/Frmmaterial.resx | 120 ++ .../Form/Frmproduct.cs | 258 +++ .../Form/Frmproduct.designer.cs | 1127 ++++++++++++ .../Form/Frmproduct.resx | 120 ++ WinformGeneralDeveloperFrame/Form/Frmstock.cs | 228 +-- .../Form/Frmstock.designer.cs | 1626 +++-------------- .../Form/Frmsupplier.cs | 255 +++ .../Form/Frmsupplier.designer.cs | 983 ++++++++++ .../Form/Frmsupplier.resx | 120 ++ .../Form/FrmsysDictType.cs | 2 +- .../Form/FrmsysFunction.cs | 56 +- .../Form/FrmsysFunction.designer.cs | 90 +- WinformGeneralDeveloperFrame/Test.Designer.cs | 156 +- WinformGeneralDeveloperFrame/Test.cs | 410 ++--- .../WinformGeneralDeveloperFrame.csproj | 44 +- 27 files changed, 5865 insertions(+), 2069 deletions(-) create mode 100644 WinformGeneralDeveloperFrame/Entity/customerInfo.cs create mode 100644 WinformGeneralDeveloperFrame/Entity/materialInfo.cs create mode 100644 WinformGeneralDeveloperFrame/Entity/productInfo.cs create mode 100644 WinformGeneralDeveloperFrame/Entity/supplierInfo.cs create mode 100644 WinformGeneralDeveloperFrame/Form/Frmcustomer.cs create mode 100644 WinformGeneralDeveloperFrame/Form/Frmcustomer.designer.cs create mode 100644 WinformGeneralDeveloperFrame/Form/Frmcustomer.resx create mode 100644 WinformGeneralDeveloperFrame/Form/Frmmaterial.cs create mode 100644 WinformGeneralDeveloperFrame/Form/Frmmaterial.designer.cs create mode 100644 WinformGeneralDeveloperFrame/Form/Frmmaterial.resx create mode 100644 WinformGeneralDeveloperFrame/Form/Frmproduct.cs create mode 100644 WinformGeneralDeveloperFrame/Form/Frmproduct.designer.cs create mode 100644 WinformGeneralDeveloperFrame/Form/Frmproduct.resx create mode 100644 WinformGeneralDeveloperFrame/Form/Frmsupplier.cs create mode 100644 WinformGeneralDeveloperFrame/Form/Frmsupplier.designer.cs create mode 100644 WinformGeneralDeveloperFrame/Form/Frmsupplier.resx diff --git a/.vs/WinformGeneralDeveloperFrame/v16/.suo b/.vs/WinformGeneralDeveloperFrame/v16/.suo index e34e9b0a6596a9935420d74d34117217e12fa758..244c77ef2a44efe743ac6402d9f6c6627439b120 100644 GIT binary patch delta 25792 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 diff --git a/WinformGeneralDeveloperFrame/DB/MESDB.cs b/WinformGeneralDeveloperFrame/DB/MESDB.cs index e53933c..fd5bfa8 100644 --- a/WinformGeneralDeveloperFrame/DB/MESDB.cs +++ b/WinformGeneralDeveloperFrame/DB/MESDB.cs @@ -2,6 +2,7 @@ using System; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity; using System.Linq; +using ERP.Entity; using MES.Entity; namespace MES @@ -23,6 +24,14 @@ namespace MES public virtual DbSet sysRoleInfo { get; set; } public virtual DbSet lotteryInfo { get; set; } public virtual DbSet sysToolButtonInfo { get; set; } + public virtual DbSet productInfo { get; set; } + + public virtual DbSet materialInfo { get; set; } + + public virtual DbSet customerInfo { get; set; } + + + public virtual DbSet supplierInfo { get; set; } } diff --git a/WinformGeneralDeveloperFrame/Entity/customerInfo.cs b/WinformGeneralDeveloperFrame/Entity/customerInfo.cs new file mode 100644 index 0000000..ac26d75 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Entity/customerInfo.cs @@ -0,0 +1,38 @@ +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("customer")] + public partial class customerInfo + { + [ModelBindControl("txtid")] + public int id{set;get;} + [ModelBindControl("txtcustomername")] + public string customername{set;get;} + [ModelBindControl("txtcustomertype")] + public int customertype{set;get;} + [ModelBindControl("txtcontactuser")] + public int contactuser{set;get;} + [ModelBindControl("txtaddress")] + public string address{set;get;} + [ModelBindControl("txtstartreceipt")] + public decimal startreceipt{set;get;} + [ModelBindControl("txtcustomercode")] + public string customercode{set;get;} + [ModelBindControl("txttotalreceivables")] + public decimal totalreceivables{set;get;} + [ModelBindControl("txttotalamountsettled")] + public decimal totalamountsettled{set;get;} + [ModelBindControl("txttotaloutstandingamount")] + public decimal totaloutstandingamount{set;get;} + [ModelBindControl("txtremark")] + public string remark{set;get;} + + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/materialInfo.cs b/WinformGeneralDeveloperFrame/Entity/materialInfo.cs new file mode 100644 index 0000000..901caec --- /dev/null +++ b/WinformGeneralDeveloperFrame/Entity/materialInfo.cs @@ -0,0 +1,46 @@ +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("material")] + public partial class materialInfo + { + [ModelBindControl("txtid")] + public int id{set;get;} + [ModelBindControl("txtname")] + public string name{set;get;} + [ModelBindControl("txtcode")] + public string code{set;get;} + [ModelBindControl("txtspec")] + public string spec{set;get;} + [ModelBindControl("txtunit")] + public int unit{set;get;} + [ModelBindControl("txtreferprice")] + public decimal referprice{set;get;} + [ModelBindControl("txtmaterialtype")] + public int materialtype{set;get;} + [ModelBindControl("txtwarehouse")] + public int warehouse{set;get;} + [ModelBindControl("txtPOinnumber")] + public decimal POinnumber{set;get;} + [ModelBindControl("txtsalereturnnumber")] + public decimal salereturnnumber{set;get;} + [ModelBindControl("txtYDProductConsume")] + public decimal YDProductConsume{set;get;} + [ModelBindControl("txtproductmaterialreturn")] + public decimal productmaterialreturn{set;get;} + [ModelBindControl("txtstocknumber")] + public decimal stocknumber{set;get;} + [ModelBindControl("txtstockwarnnumber")] + public decimal stockwarnnumber{set;get;} + [ModelBindControl("txtremark")] + public string remark{set;get;} + + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/productInfo.cs b/WinformGeneralDeveloperFrame/Entity/productInfo.cs new file mode 100644 index 0000000..6cd144c --- /dev/null +++ b/WinformGeneralDeveloperFrame/Entity/productInfo.cs @@ -0,0 +1,56 @@ +using WinformGeneralDeveloperFrame.Commons; + +namespace ERP.Entity +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.ComponentModel.DataAnnotations.Schema; + using System.Data.Entity.Spatial; + + [Table("product")] + public partial class productInfo + { + [ModelBindControl("txtid")] + public int id{set;get;} + [ModelBindControl("txtproductname")] + public string productname{set;get;} + [ModelBindControl("txtspec")] + public string spec{set;get;} + [ModelBindControl("txtdefaultprice")] + public decimal defaultprice{set;get;} + [ModelBindControl("txtunit")] + public string unit{set;get;} + [ModelBindControl("txtwarehouse")] + public int warehouse{set;get;} + [ModelBindControl("txtproducttype")] + public string producttype{set;get;} + [ModelBindControl("txtproductcode")] + public string productcode{set;get;} + [ModelBindControl("txtstocknumber")] + public decimal stocknumber{set;get;} + [ModelBindControl("txtstartnumber")] + public decimal startnumber{set;get;} + [ModelBindControl("txtstartprice")] + public decimal startprice{set;get;} + [ModelBindControl("txtproductinnumber")] + public decimal productinnumber{set;get;} + [ModelBindControl("txtsaleoutnumber")] + public decimal saleoutnumber{set;get;} + [ModelBindControl("txtcustomerreturnnumber")] + public decimal customerreturnnumber{set;get;} + [ModelBindControl("txtstockwarnnumber")] + public decimal stockwarnnumber{set;get;} + [ModelBindControl("txtcreatorId")] + public int creatorId{set;get;} + [ModelBindControl("txtcreateTime")] + public DateTime? createTime{set;get;}=DateTime.Now; + [ModelBindControl("txteditorId")] + public int editorId{set;get;} + [ModelBindControl("txteditTime")] + public DateTime? editTime{set;get;}=DateTime.Now; + [ModelBindControl("txtremark")] + public string remark{set;get;} + + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/stockInfo.cs b/WinformGeneralDeveloperFrame/Entity/stockInfo.cs index 9f3c24f..f4064a2 100644 --- a/WinformGeneralDeveloperFrame/Entity/stockInfo.cs +++ b/WinformGeneralDeveloperFrame/Entity/stockInfo.cs @@ -1,6 +1,6 @@ using WinformGeneralDeveloperFrame.Commons; -namespace MES.Entity +namespace ERP.Entity { using System; using System.Collections.Generic; @@ -11,72 +11,14 @@ namespace MES.Entity [Table("stock")] public partial class stockInfo { - [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; [ModelBindControl("txtid")] public int id{set;get;} + [ModelBindControl("txtname")] + public string name{set;get;} + [ModelBindControl("txtaddress")] + public string address{set;get;} + [ModelBindControl("txtremark")] + public string remark{set;get;} } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/supplierInfo.cs b/WinformGeneralDeveloperFrame/Entity/supplierInfo.cs new file mode 100644 index 0000000..ad03e0f --- /dev/null +++ b/WinformGeneralDeveloperFrame/Entity/supplierInfo.cs @@ -0,0 +1,50 @@ +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("supplier")] + public partial class supplierInfo + { + [ModelBindControl("txtid")] + public int id{set;get;} + [ModelBindControl("txtsuppliername")] + public string suppliername{set;get;} + [ModelBindControl("txtmanufacturertype")] + public int manufacturertype{set;get;} + [ModelBindControl("txtcontacts")] + public int contacts{set;get;} + [ModelBindControl("txtaddress")] + public string address{set;get;} + [ModelBindControl("txtvatrate")] + public decimal vatrate{set;get;} + [ModelBindControl("txttaxpayeridentity")] + public string taxpayeridentity{set;get;} + [ModelBindControl("txtbankaccount")] + public string bankaccount{set;get;} + [ModelBindControl("txtsuppliercode")] + public string suppliercode{set;get;} + [ModelBindControl("txtpayments")] + public decimal payments{set;get;} + [ModelBindControl("txttotalamountsettled")] + public decimal totalamountsettled{set;get;} + [ModelBindControl("txttotaloutstandingamount")] + public decimal totaloutstandingamount{set;get;} + [ModelBindControl("txtremark")] + public string remark{set;get;} + [ModelBindControl("txtcreatorId")] + public int creatorId{set;get;} + [ModelBindControl("txtcreateTime")] + public DateTime? createTime{set;get;}=DateTime.Now; + [ModelBindControl("txteditorId")] + public int editorId{set;get;} + [ModelBindControl("txteditTime")] + public DateTime? editTime{set;get;}=DateTime.Now; + + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmcustomer.cs b/WinformGeneralDeveloperFrame/Form/Frmcustomer.cs new file mode 100644 index 0000000..0d5200a --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmcustomer.cs @@ -0,0 +1,209 @@ +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 Frmcustomer : FrmBaseForm + { + private Dictionary fieldDictionary = new Dictionary(); + public Frmcustomer() + { + InitializeComponent(); + } + private void Frmcustomer_Load(object sender, EventArgs e) + { + + InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new customerInfo()); + InitSearchDicData(); + } + /// + /// 数据源初始化 + /// + /// + private void Init() + { + + + + + txtcustomertype.Properties.DataSource = GetDataTableUtils.SqlTable("客户类别"); + repositoryItemtxtcustomertype.DataSource= GetDataTableUtils.SqlTable("客户类别"); + txtcontactuser.Properties.DataSource = GetDataTableUtils.SqlTable("用户"); + repositoryItemtxtcontactuser.DataSource= GetDataTableUtils.SqlTable("用户"); + + + } + /// + /// 搜索字段 + /// + /// + private void InitSearchDicData() + { + fieldDictionary.Add("id","id"); + fieldDictionary.Add("客户名称","customername"); + fieldDictionary.Add("客户类别","customertype"); + fieldDictionary.Add("联系人","contactuser"); + fieldDictionary.Add("客户地址","address"); + fieldDictionary.Add("期初应收款","startreceipt"); + fieldDictionary.Add("客户编号","customercode"); + fieldDictionary.Add("应收款总额","totalreceivables"); + fieldDictionary.Add("已结款总额","totalamountsettled"); + fieldDictionary.Add("未结款总额","totaloutstandingamount"); + fieldDictionary.Add("备注","remark"); + } + /// + /// 保存 + /// + /// + public override bool SaveFunction() + { + try + { + customerInfo info= (customerInfo)this.ControlDataToModel(new customerInfo()); + using (var db = new MESDB()) + { + db.customerInfo.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.customerInfo.ToList(); + } + Init(); + } + /// + /// 字段为空校验 + /// + /// + public override bool CheckInput() + { + if(string.IsNullOrEmpty(txtcustomername.EditValue.ToString())) + { + "客户名称不能为空".ShowWarning(); + txtcustomername.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtcustomertype.EditValue.ToString())) + { + "客户类别不能为空".ShowWarning(); + txtcustomertype.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtcontactuser.EditValue.ToString())) + { + "联系人不能为空".ShowWarning(); + txtcontactuser.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtaddress.EditValue.ToString())) + { + "客户地址不能为空".ShowWarning(); + txtaddress.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtstartreceipt.EditValue.ToString())) + { + "期初应收款不能为空".ShowWarning(); + txtstartreceipt.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtcustomercode.EditValue.ToString())) + { + "客户编号不能为空".ShowWarning(); + txtcustomercode.Focus(); + return false; + } + if(string.IsNullOrEmpty(txttotalreceivables.EditValue.ToString())) + { + "应收款总额不能为空".ShowWarning(); + txttotalreceivables.Focus(); + return false; + } + if(string.IsNullOrEmpty(txttotalamountsettled.EditValue.ToString())) + { + "已结款总额不能为空".ShowWarning(); + txttotalamountsettled.Focus(); + return false; + } + if(string.IsNullOrEmpty(txttotaloutstandingamount.EditValue.ToString())) + { + "未结款总额不能为空".ShowWarning(); + txttotaloutstandingamount.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtremark.EditValue.ToString())) + { + "备注不能为空".ShowWarning(); + txtremark.Focus(); + return false; + } + return true; + } + /// + /// 删除 + /// + /// + public override bool DelFunction() + { + try + { + customerInfo info = (customerInfo)this.ControlDataToModel(new customerInfo()); + 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.customerInfo.SqlQuery("select * from customer").ToList(); + } + else + { + grdList.DataSource = db.customerInfo.SqlQuery($"select * from customer where {sql}").ToList(); + } + } + } + } + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmcustomer.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmcustomer.designer.cs new file mode 100644 index 0000000..c65cd48 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmcustomer.designer.cs @@ -0,0 +1,658 @@ + +using DevExpress.XtraEditors; +using DevExpress.XtraLayout; +using DevExpress.XtraTab; + +namespace MES.Form +{ + partial class Frmcustomer + { + /// + /// 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.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxtcustomertype = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxtcontactuser = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + 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.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.txtid = new DevExpress.XtraEditors.TextEdit(); + this.txtcustomername = new DevExpress.XtraEditors.TextEdit(); + this.txtcustomertype = new DevExpress.XtraEditors.LookUpEdit(); + this.txtcontactuser = new DevExpress.XtraEditors.LookUpEdit(); + this.txtaddress = new DevExpress.XtraEditors.TextEdit(); + this.txtstartreceipt = new DevExpress.XtraEditors.TextEdit(); + this.txtcustomercode = new DevExpress.XtraEditors.TextEdit(); + this.txttotalreceivables = new DevExpress.XtraEditors.TextEdit(); + this.txttotalamountsettled = new DevExpress.XtraEditors.TextEdit(); + this.txttotaloutstandingamount = new DevExpress.XtraEditors.TextEdit(); + this.txtremark = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); + this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomertype)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcontactuser)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); + this.xtraTabControl1.SuspendLayout(); + this.tabDataList.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.grdList)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.grdListView)).BeginInit(); + this.tabDataDetail.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit(); + this.panelControl2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); + this.layoutControl1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomername.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomertype.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcontactuser.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtaddress.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtstartreceipt.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomercode.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttotalreceivables.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttotalamountsettled.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttotaloutstandingamount.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit(); + this.SuspendLayout(); + // + // gridColumn1 + // + this.gridColumn1.Caption = "id"; + this.gridColumn1.FieldName = "id"; + this.gridColumn1.Name = "gridColumn1"; + // + // gridColumn2 + // + this.gridColumn2.Caption = "客户名称"; + this.gridColumn2.FieldName = "customername"; + this.gridColumn2.Name = "gridColumn2"; + this.gridColumn2.Visible = true; + this.gridColumn2.VisibleIndex = 0; + this.gridColumn2.Width = 201; + // + // gridColumn3 + // + this.gridColumn3.Caption = "客户类别"; + this.gridColumn3.ColumnEdit = this.repositoryItemtxtcustomertype; + this.gridColumn3.FieldName = "customertype"; + this.gridColumn3.Name = "gridColumn3"; + this.gridColumn3.Visible = true; + this.gridColumn3.VisibleIndex = 1; + this.gridColumn3.Width = 201; + // + // repositoryItemtxtcustomertype + // + this.repositoryItemtxtcustomertype.AutoHeight = false; + this.repositoryItemtxtcustomertype.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtcustomertype.DisplayMember = "Name"; + this.repositoryItemtxtcustomertype.Name = "repositoryItemtxtcustomertype"; + this.repositoryItemtxtcustomertype.ValueMember = "ID"; + // + // gridColumn4 + // + this.gridColumn4.Caption = "联系人"; + this.gridColumn4.ColumnEdit = this.repositoryItemtxtcontactuser; + this.gridColumn4.FieldName = "contactuser"; + this.gridColumn4.Name = "gridColumn4"; + this.gridColumn4.Visible = true; + this.gridColumn4.VisibleIndex = 2; + this.gridColumn4.Width = 201; + // + // repositoryItemtxtcontactuser + // + this.repositoryItemtxtcontactuser.AutoHeight = false; + this.repositoryItemtxtcontactuser.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtcontactuser.DisplayMember = "Name"; + this.repositoryItemtxtcontactuser.Name = "repositoryItemtxtcontactuser"; + this.repositoryItemtxtcontactuser.ValueMember = "ID"; + // + // gridColumn5 + // + this.gridColumn5.Caption = "客户地址"; + this.gridColumn5.FieldName = "address"; + this.gridColumn5.Name = "gridColumn5"; + this.gridColumn5.Visible = true; + this.gridColumn5.VisibleIndex = 3; + this.gridColumn5.Width = 201; + // + // gridColumn6 + // + this.gridColumn6.Caption = "期初应收款"; + this.gridColumn6.FieldName = "startreceipt"; + this.gridColumn6.Name = "gridColumn6"; + this.gridColumn6.Visible = true; + this.gridColumn6.VisibleIndex = 4; + this.gridColumn6.Width = 201; + // + // gridColumn7 + // + this.gridColumn7.Caption = "客户编号"; + this.gridColumn7.FieldName = "customercode"; + this.gridColumn7.Name = "gridColumn7"; + this.gridColumn7.Visible = true; + this.gridColumn7.VisibleIndex = 5; + this.gridColumn7.Width = 201; + // + // gridColumn8 + // + this.gridColumn8.Caption = "应收款总额"; + this.gridColumn8.FieldName = "totalreceivables"; + this.gridColumn8.Name = "gridColumn8"; + this.gridColumn8.Visible = true; + this.gridColumn8.VisibleIndex = 6; + this.gridColumn8.Width = 201; + // + // gridColumn9 + // + this.gridColumn9.Caption = "已结款总额"; + this.gridColumn9.FieldName = "totalamountsettled"; + this.gridColumn9.Name = "gridColumn9"; + this.gridColumn9.Visible = true; + this.gridColumn9.VisibleIndex = 7; + this.gridColumn9.Width = 201; + // + // gridColumn10 + // + this.gridColumn10.Caption = "未结款总额"; + this.gridColumn10.FieldName = "totaloutstandingamount"; + this.gridColumn10.Name = "gridColumn10"; + this.gridColumn10.Visible = true; + this.gridColumn10.VisibleIndex = 8; + this.gridColumn10.Width = 201; + // + // gridColumn11 + // + this.gridColumn11.Caption = "备注"; + this.gridColumn11.FieldName = "remark"; + this.gridColumn11.Name = "gridColumn11"; + this.gridColumn11.Visible = true; + this.gridColumn11.VisibleIndex = 9; + this.gridColumn11.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(884, 561); + 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.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(878, 532); + 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(878, 532); + this.panelControl2.TabIndex = 0; + // + // layoutControl1 + // + this.layoutControl1.Controls.Add(this.txtid); + this.layoutControl1.Controls.Add(this.txtcustomername); + this.layoutControl1.Controls.Add(this.txtcustomertype); + this.layoutControl1.Controls.Add(this.txtcontactuser); + this.layoutControl1.Controls.Add(this.txtaddress); + this.layoutControl1.Controls.Add(this.txtstartreceipt); + this.layoutControl1.Controls.Add(this.txtcustomercode); + this.layoutControl1.Controls.Add(this.txttotalreceivables); + this.layoutControl1.Controls.Add(this.txttotalamountsettled); + this.layoutControl1.Controls.Add(this.txttotaloutstandingamount); + this.layoutControl1.Controls.Add(this.txtremark); + 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(874, 528); + this.layoutControl1.TabIndex = 6; + this.layoutControl1.Text = "layoutControl1"; + // + // txtid + // + this.txtid.Location = new System.Drawing.Point(75, 12); + this.txtid.Name = "txtid"; + this.txtid.Size = new System.Drawing.Size(787, 20); + this.txtid.StyleController = this.layoutControl1; + this.txtid.TabIndex = 1; + // + // txtcustomername + // + this.txtcustomername.Location = new System.Drawing.Point(75, 36); + this.txtcustomername.Name = "txtcustomername"; + this.txtcustomername.Size = new System.Drawing.Size(360, 20); + this.txtcustomername.StyleController = this.layoutControl1; + this.txtcustomername.TabIndex = 2; + // + // txtcustomertype + // + this.txtcustomertype.EditValue = ""; + this.txtcustomertype.Location = new System.Drawing.Point(502, 36); + this.txtcustomertype.Name = "txtcustomertype"; + this.txtcustomertype.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtcustomertype.Properties.DisplayMember = "Name"; + this.txtcustomertype.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; + this.txtcustomertype.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + this.txtcustomertype.Properties.ValueMember = "ID"; + this.txtcustomertype.Size = new System.Drawing.Size(360, 20); + this.txtcustomertype.StyleController = this.layoutControl1; + this.txtcustomertype.TabIndex = 3; + // + // txtcontactuser + // + this.txtcontactuser.EditValue = ""; + this.txtcontactuser.Location = new System.Drawing.Point(75, 60); + this.txtcontactuser.Name = "txtcontactuser"; + this.txtcontactuser.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtcontactuser.Properties.DisplayMember = "Name"; + this.txtcontactuser.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; + this.txtcontactuser.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + this.txtcontactuser.Properties.ValueMember = "ID"; + this.txtcontactuser.Size = new System.Drawing.Size(360, 20); + this.txtcontactuser.StyleController = this.layoutControl1; + this.txtcontactuser.TabIndex = 4; + // + // txtaddress + // + this.txtaddress.Location = new System.Drawing.Point(502, 60); + this.txtaddress.Name = "txtaddress"; + this.txtaddress.Size = new System.Drawing.Size(360, 20); + this.txtaddress.StyleController = this.layoutControl1; + this.txtaddress.TabIndex = 5; + // + // txtstartreceipt + // + this.txtstartreceipt.Location = new System.Drawing.Point(502, 84); + this.txtstartreceipt.Name = "txtstartreceipt"; + this.txtstartreceipt.Size = new System.Drawing.Size(360, 20); + this.txtstartreceipt.StyleController = this.layoutControl1; + this.txtstartreceipt.TabIndex = 6; + // + // txtcustomercode + // + this.txtcustomercode.Location = new System.Drawing.Point(75, 84); + this.txtcustomercode.Name = "txtcustomercode"; + this.txtcustomercode.Size = new System.Drawing.Size(360, 20); + this.txtcustomercode.StyleController = this.layoutControl1; + this.txtcustomercode.TabIndex = 7; + // + // txttotalreceivables + // + this.txttotalreceivables.Location = new System.Drawing.Point(75, 132); + this.txttotalreceivables.Name = "txttotalreceivables"; + this.txttotalreceivables.Size = new System.Drawing.Size(787, 20); + this.txttotalreceivables.StyleController = this.layoutControl1; + this.txttotalreceivables.TabIndex = 8; + // + // txttotalamountsettled + // + this.txttotalamountsettled.Location = new System.Drawing.Point(75, 108); + this.txttotalamountsettled.Name = "txttotalamountsettled"; + this.txttotalamountsettled.Size = new System.Drawing.Size(360, 20); + this.txttotalamountsettled.StyleController = this.layoutControl1; + this.txttotalamountsettled.TabIndex = 9; + // + // txttotaloutstandingamount + // + this.txttotaloutstandingamount.Location = new System.Drawing.Point(502, 108); + this.txttotaloutstandingamount.Name = "txttotaloutstandingamount"; + this.txttotaloutstandingamount.Size = new System.Drawing.Size(360, 20); + this.txttotaloutstandingamount.StyleController = this.layoutControl1; + this.txttotaloutstandingamount.TabIndex = 10; + // + // txtremark + // + this.txtremark.Location = new System.Drawing.Point(75, 156); + this.txtremark.Name = "txtremark"; + this.txtremark.Size = new System.Drawing.Size(787, 20); + this.txtremark.StyleController = this.layoutControl1; + this.txtremark.TabIndex = 11; + // + // layoutControlGroup1 + // + this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; + this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; + this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { + this.layoutControlItem1, + this.layoutControlItem2, + this.layoutControlItem4, + this.layoutControlItem6, + this.layoutControlItem11, + this.layoutControlItem3, + this.layoutControlItem5, + this.layoutControlItem7, + this.layoutControlItem9, + this.layoutControlItem8, + this.layoutControlItem10}); + this.layoutControlGroup1.Name = "layoutControlGroup1"; + this.layoutControlGroup1.Size = new System.Drawing.Size(874, 528); + this.layoutControlGroup1.TextVisible = false; + // + // layoutControlItem1 + // + this.layoutControlItem1.Control = this.txtid; + this.layoutControlItem1.CustomizationFormText = "id"; + this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); + this.layoutControlItem1.Name = "layoutControlItem1"; + this.layoutControlItem1.Size = new System.Drawing.Size(854, 24); + this.layoutControlItem1.Text = "id"; + this.layoutControlItem1.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem2 + // + this.layoutControlItem2.Control = this.txtcustomername; + this.layoutControlItem2.CustomizationFormText = "客户名称"; + this.layoutControlItem2.Location = new System.Drawing.Point(0, 24); + this.layoutControlItem2.Name = "layoutControlItem2"; + this.layoutControlItem2.Size = new System.Drawing.Size(427, 24); + this.layoutControlItem2.Text = "客户名称"; + this.layoutControlItem2.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem3 + // + this.layoutControlItem3.Control = this.txtcustomertype; + this.layoutControlItem3.CustomizationFormText = "客户类别"; + this.layoutControlItem3.Location = new System.Drawing.Point(427, 24); + this.layoutControlItem3.Name = "layoutControlItem3"; + this.layoutControlItem3.Size = new System.Drawing.Size(427, 24); + this.layoutControlItem3.Text = "客户类别"; + this.layoutControlItem3.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem4 + // + this.layoutControlItem4.Control = this.txtcontactuser; + this.layoutControlItem4.CustomizationFormText = "联系人"; + this.layoutControlItem4.Location = new System.Drawing.Point(0, 48); + this.layoutControlItem4.Name = "layoutControlItem4"; + this.layoutControlItem4.Size = new System.Drawing.Size(427, 24); + this.layoutControlItem4.Text = "联系人"; + this.layoutControlItem4.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem5 + // + this.layoutControlItem5.Control = this.txtaddress; + this.layoutControlItem5.CustomizationFormText = "客户地址"; + this.layoutControlItem5.Location = new System.Drawing.Point(427, 48); + this.layoutControlItem5.Name = "layoutControlItem5"; + this.layoutControlItem5.Size = new System.Drawing.Size(427, 24); + this.layoutControlItem5.Text = "客户地址"; + this.layoutControlItem5.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem6 + // + this.layoutControlItem6.Control = this.txtstartreceipt; + this.layoutControlItem6.CustomizationFormText = "期初应收款"; + this.layoutControlItem6.Location = new System.Drawing.Point(427, 72); + this.layoutControlItem6.Name = "layoutControlItem6"; + this.layoutControlItem6.Size = new System.Drawing.Size(427, 24); + this.layoutControlItem6.Text = "期初应收款"; + this.layoutControlItem6.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem7 + // + this.layoutControlItem7.Control = this.txtcustomercode; + this.layoutControlItem7.CustomizationFormText = "客户编号"; + this.layoutControlItem7.Location = new System.Drawing.Point(0, 72); + this.layoutControlItem7.Name = "layoutControlItem7"; + this.layoutControlItem7.Size = new System.Drawing.Size(427, 24); + this.layoutControlItem7.Text = "客户编号"; + this.layoutControlItem7.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem8 + // + this.layoutControlItem8.Control = this.txttotalreceivables; + this.layoutControlItem8.CustomizationFormText = "应收款总额"; + this.layoutControlItem8.Location = new System.Drawing.Point(0, 120); + this.layoutControlItem8.Name = "layoutControlItem8"; + this.layoutControlItem8.Size = new System.Drawing.Size(854, 24); + this.layoutControlItem8.Text = "应收款总额"; + this.layoutControlItem8.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem9 + // + this.layoutControlItem9.Control = this.txttotalamountsettled; + this.layoutControlItem9.CustomizationFormText = "已结款总额"; + this.layoutControlItem9.Location = new System.Drawing.Point(0, 96); + this.layoutControlItem9.Name = "layoutControlItem9"; + this.layoutControlItem9.Size = new System.Drawing.Size(427, 24); + this.layoutControlItem9.Text = "已结款总额"; + this.layoutControlItem9.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem10 + // + this.layoutControlItem10.Control = this.txttotaloutstandingamount; + this.layoutControlItem10.CustomizationFormText = "未结款总额"; + this.layoutControlItem10.Location = new System.Drawing.Point(427, 96); + this.layoutControlItem10.Name = "layoutControlItem10"; + this.layoutControlItem10.Size = new System.Drawing.Size(427, 24); + this.layoutControlItem10.Text = "未结款总额"; + this.layoutControlItem10.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem11 + // + this.layoutControlItem11.Control = this.txtremark; + this.layoutControlItem11.CustomizationFormText = "备注"; + this.layoutControlItem11.Location = new System.Drawing.Point(0, 144); + this.layoutControlItem11.Name = "layoutControlItem11"; + this.layoutControlItem11.Size = new System.Drawing.Size(854, 364); + this.layoutControlItem11.Text = "备注"; + this.layoutControlItem11.TextSize = new System.Drawing.Size(60, 14); + // + // Frmcustomer + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(884, 595); + this.Controls.Add(this.xtraTabControl1); + this.Name = "Frmcustomer"; + this.Text = "客户信息"; + this.Load += new System.EventHandler(this.Frmcustomer_Load); + this.Controls.SetChildIndex(this.xtraTabControl1, 0); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomertype)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcontactuser)).EndInit(); + ((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.txtid.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomername.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomertype.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcontactuser.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtaddress.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtstartreceipt.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomercode.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttotalreceivables.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttotalamountsettled.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttotaloutstandingamount.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).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.XtraEditors.TextEdit txtid; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtcustomername; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtcustomertype; + + private DevExpress.XtraEditors.LookUpEdit txtcustomertype; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtcontactuser; + + private DevExpress.XtraEditors.LookUpEdit txtcontactuser; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtaddress; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtstartreceipt; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtcustomercode; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txttotalreceivables; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txttotalamountsettled; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txttotaloutstandingamount; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtremark; + + 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; + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmcustomer.resx b/WinformGeneralDeveloperFrame/Form/Frmcustomer.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmcustomer.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/Form/Frmmaterial.cs b/WinformGeneralDeveloperFrame/Form/Frmmaterial.cs new file mode 100644 index 0000000..dd59b77 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmmaterial.cs @@ -0,0 +1,238 @@ +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 Frmmaterial : FrmBaseForm + { + private Dictionary fieldDictionary = new Dictionary(); + public Frmmaterial() + { + InitializeComponent(); + } + private void Frmmaterial_Load(object sender, EventArgs e) + { + + InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new materialInfo()); + InitSearchDicData(); + } + /// + /// 数据源初始化 + /// + /// + private void Init() + { + + + + + txtunit.Properties.DataSource = GetDataTableUtils.SqlTable("计量单位"); + repositoryItemtxtunit.DataSource= GetDataTableUtils.SqlTable("计量单位"); + txtmaterialtype.Properties.DataSource = GetDataTableUtils.SqlTable("物料类别"); + repositoryItemtxtmaterialtype.DataSource= GetDataTableUtils.SqlTable("物料类别"); + txtwarehouse.Properties.DataSource = GetDataTableUtils.SqlTable("用户"); + repositoryItemtxtwarehouse.DataSource= GetDataTableUtils.SqlTable("用户"); + + + } + /// + /// 搜索字段 + /// + /// + private void InitSearchDicData() + { + fieldDictionary.Add("物料名称","name"); + fieldDictionary.Add("物料编码","code"); + fieldDictionary.Add("规格型号","spec"); + fieldDictionary.Add("计量单位","unit"); + fieldDictionary.Add("参考单价","referprice"); + fieldDictionary.Add("物料类别","materialtype"); + fieldDictionary.Add("仓库","warehouse"); + fieldDictionary.Add("采购入库总量","POinnumber"); + fieldDictionary.Add("退货出库总量","salereturnnumber"); + fieldDictionary.Add("生产领料总量","YDProductConsume"); + fieldDictionary.Add("生产退料总量","productmaterialreturn"); + fieldDictionary.Add("库存数量","stocknumber"); + fieldDictionary.Add("库存预警数量","stockwarnnumber"); + fieldDictionary.Add("备注","remark"); + } + /// + /// 保存 + /// + /// + public override bool SaveFunction() + { + try + { + materialInfo info= (materialInfo)this.ControlDataToModel(new materialInfo()); + using (var db = new MESDB()) + { + db.materialInfo.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.materialInfo.ToList(); + } + Init(); + } + /// + /// 字段为空校验 + /// + /// + public override bool CheckInput() + { + if(string.IsNullOrEmpty(txtname.EditValue.ToString())) + { + "物料名称不能为空".ShowWarning(); + txtname.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtcode.EditValue.ToString())) + { + "物料编码不能为空".ShowWarning(); + txtcode.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtspec.EditValue.ToString())) + { + "规格型号不能为空".ShowWarning(); + txtspec.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtunit.EditValue.ToString())) + { + "计量单位不能为空".ShowWarning(); + txtunit.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtreferprice.EditValue.ToString())) + { + "参考单价不能为空".ShowWarning(); + txtreferprice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtmaterialtype.EditValue.ToString())) + { + "物料类别不能为空".ShowWarning(); + txtmaterialtype.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtwarehouse.EditValue.ToString())) + { + "仓库不能为空".ShowWarning(); + txtwarehouse.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtPOinnumber.EditValue.ToString())) + { + "采购入库总量不能为空".ShowWarning(); + txtPOinnumber.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsalereturnnumber.EditValue.ToString())) + { + "退货出库总量不能为空".ShowWarning(); + txtsalereturnnumber.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtYDProductConsume.EditValue.ToString())) + { + "生产领料总量不能为空".ShowWarning(); + txtYDProductConsume.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtproductmaterialreturn.EditValue.ToString())) + { + "生产退料总量不能为空".ShowWarning(); + txtproductmaterialreturn.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtstocknumber.EditValue.ToString())) + { + "库存数量不能为空".ShowWarning(); + txtstocknumber.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtstockwarnnumber.EditValue.ToString())) + { + "库存预警数量不能为空".ShowWarning(); + txtstockwarnnumber.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtremark.EditValue.ToString())) + { + "备注不能为空".ShowWarning(); + txtremark.Focus(); + return false; + } + return true; + } + /// + /// 删除 + /// + /// + public override bool DelFunction() + { + try + { + materialInfo info = (materialInfo)this.ControlDataToModel(new materialInfo()); + 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.materialInfo.SqlQuery("select * from material").ToList(); + } + else + { + grdList.DataSource = db.materialInfo.SqlQuery($"select * from material where {sql}").ToList(); + } + } + } + } + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmmaterial.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmmaterial.designer.cs new file mode 100644 index 0000000..3a5d4b8 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmmaterial.designer.cs @@ -0,0 +1,843 @@ + +using DevExpress.XtraEditors; +using DevExpress.XtraLayout; +using DevExpress.XtraTab; + +namespace MES.Form +{ + partial class Frmmaterial + { + /// + /// 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.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.repositoryItemtxtunit = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxtmaterialtype = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxtwarehouse = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + 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.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.txtid = new DevExpress.XtraEditors.TextEdit(); + this.txtname = new DevExpress.XtraEditors.TextEdit(); + this.txtcode = new DevExpress.XtraEditors.TextEdit(); + this.txtspec = new DevExpress.XtraEditors.TextEdit(); + this.txtunit = new DevExpress.XtraEditors.LookUpEdit(); + this.txtreferprice = new DevExpress.XtraEditors.TextEdit(); + this.txtmaterialtype = new DevExpress.XtraEditors.LookUpEdit(); + this.txtwarehouse = new DevExpress.XtraEditors.LookUpEdit(); + this.txtPOinnumber = new DevExpress.XtraEditors.TextEdit(); + this.txtsalereturnnumber = new DevExpress.XtraEditors.TextEdit(); + this.txtYDProductConsume = new DevExpress.XtraEditors.TextEdit(); + this.txtproductmaterialreturn = new DevExpress.XtraEditors.TextEdit(); + this.txtstocknumber = new DevExpress.XtraEditors.TextEdit(); + this.txtstockwarnnumber = new DevExpress.XtraEditors.TextEdit(); + this.txtremark = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); + this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtunit)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtmaterialtype)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtwarehouse)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); + this.xtraTabControl1.SuspendLayout(); + this.tabDataList.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.grdList)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.grdListView)).BeginInit(); + this.tabDataDetail.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit(); + this.panelControl2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); + this.layoutControl1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtname.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcode.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtspec.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtunit.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtreferprice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtmaterialtype.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtwarehouse.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtPOinnumber.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsalereturnnumber.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtYDProductConsume.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtproductmaterialreturn.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtstocknumber.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtstockwarnnumber.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit(); + this.SuspendLayout(); + // + // gridColumn1 + // + this.gridColumn1.Caption = "id"; + this.gridColumn1.FieldName = "id"; + this.gridColumn1.Name = "gridColumn1"; + // + // gridColumn2 + // + this.gridColumn2.Caption = "物料名称"; + this.gridColumn2.FieldName = "name"; + this.gridColumn2.Name = "gridColumn2"; + this.gridColumn2.Visible = true; + this.gridColumn2.VisibleIndex = 0; + this.gridColumn2.Width = 201; + // + // gridColumn3 + // + this.gridColumn3.Caption = "物料编码"; + this.gridColumn3.FieldName = "code"; + this.gridColumn3.Name = "gridColumn3"; + this.gridColumn3.Visible = true; + this.gridColumn3.VisibleIndex = 1; + this.gridColumn3.Width = 201; + // + // gridColumn4 + // + this.gridColumn4.Caption = "规格型号"; + this.gridColumn4.FieldName = "spec"; + this.gridColumn4.Name = "gridColumn4"; + this.gridColumn4.Visible = true; + this.gridColumn4.VisibleIndex = 2; + this.gridColumn4.Width = 201; + // + // gridColumn5 + // + this.gridColumn5.Caption = "计量单位"; + this.gridColumn5.ColumnEdit = this.repositoryItemtxtunit; + this.gridColumn5.FieldName = "unit"; + this.gridColumn5.Name = "gridColumn5"; + this.gridColumn5.Visible = true; + this.gridColumn5.VisibleIndex = 3; + this.gridColumn5.Width = 201; + // + // repositoryItemtxtunit + // + this.repositoryItemtxtunit.AutoHeight = false; + this.repositoryItemtxtunit.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtunit.DisplayMember = "Name"; + this.repositoryItemtxtunit.Name = "repositoryItemtxtunit"; + this.repositoryItemtxtunit.ValueMember = "ID"; + // + // gridColumn6 + // + this.gridColumn6.Caption = "参考单价"; + this.gridColumn6.FieldName = "referprice"; + this.gridColumn6.Name = "gridColumn6"; + this.gridColumn6.Visible = true; + this.gridColumn6.VisibleIndex = 4; + this.gridColumn6.Width = 201; + // + // gridColumn7 + // + this.gridColumn7.Caption = "物料类别"; + this.gridColumn7.ColumnEdit = this.repositoryItemtxtmaterialtype; + this.gridColumn7.FieldName = "materialtype"; + this.gridColumn7.Name = "gridColumn7"; + this.gridColumn7.Visible = true; + this.gridColumn7.VisibleIndex = 5; + this.gridColumn7.Width = 201; + // + // repositoryItemtxtmaterialtype + // + this.repositoryItemtxtmaterialtype.AutoHeight = false; + this.repositoryItemtxtmaterialtype.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtmaterialtype.DisplayMember = "Name"; + this.repositoryItemtxtmaterialtype.Name = "repositoryItemtxtmaterialtype"; + this.repositoryItemtxtmaterialtype.ValueMember = "ID"; + // + // gridColumn8 + // + this.gridColumn8.Caption = "仓库"; + this.gridColumn8.ColumnEdit = this.repositoryItemtxtwarehouse; + this.gridColumn8.FieldName = "warehouse"; + this.gridColumn8.Name = "gridColumn8"; + this.gridColumn8.Visible = true; + this.gridColumn8.VisibleIndex = 6; + this.gridColumn8.Width = 201; + // + // repositoryItemtxtwarehouse + // + this.repositoryItemtxtwarehouse.AutoHeight = false; + this.repositoryItemtxtwarehouse.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtwarehouse.DisplayMember = "Name"; + this.repositoryItemtxtwarehouse.Name = "repositoryItemtxtwarehouse"; + this.repositoryItemtxtwarehouse.ValueMember = "ID"; + // + // gridColumn9 + // + this.gridColumn9.Caption = "采购入库总量"; + this.gridColumn9.FieldName = "POinnumber"; + this.gridColumn9.Name = "gridColumn9"; + this.gridColumn9.Visible = true; + this.gridColumn9.VisibleIndex = 7; + this.gridColumn9.Width = 201; + // + // gridColumn10 + // + this.gridColumn10.Caption = "退货出库总量"; + this.gridColumn10.FieldName = "salereturnnumber"; + this.gridColumn10.Name = "gridColumn10"; + this.gridColumn10.Visible = true; + this.gridColumn10.VisibleIndex = 8; + this.gridColumn10.Width = 201; + // + // gridColumn11 + // + this.gridColumn11.Caption = "生产领料总量"; + this.gridColumn11.FieldName = "YDProductConsume"; + this.gridColumn11.Name = "gridColumn11"; + this.gridColumn11.Visible = true; + this.gridColumn11.VisibleIndex = 9; + this.gridColumn11.Width = 201; + // + // gridColumn12 + // + this.gridColumn12.Caption = "生产退料总量"; + this.gridColumn12.FieldName = "productmaterialreturn"; + this.gridColumn12.Name = "gridColumn12"; + this.gridColumn12.Visible = true; + this.gridColumn12.VisibleIndex = 10; + this.gridColumn12.Width = 201; + // + // gridColumn13 + // + this.gridColumn13.Caption = "库存数量"; + this.gridColumn13.FieldName = "stocknumber"; + this.gridColumn13.Name = "gridColumn13"; + this.gridColumn13.Visible = true; + this.gridColumn13.VisibleIndex = 11; + this.gridColumn13.Width = 201; + // + // gridColumn14 + // + this.gridColumn14.Caption = "库存预警数量"; + this.gridColumn14.FieldName = "stockwarnnumber"; + this.gridColumn14.Name = "gridColumn14"; + this.gridColumn14.Visible = true; + this.gridColumn14.VisibleIndex = 12; + this.gridColumn14.Width = 201; + // + // gridColumn15 + // + this.gridColumn15.Caption = "备注"; + this.gridColumn15.FieldName = "remark"; + this.gridColumn15.Name = "gridColumn15"; + this.gridColumn15.Visible = true; + this.gridColumn15.VisibleIndex = 13; + this.gridColumn15.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(827, 593); + 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(821, 564); + 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(821, 564); + 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.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(821, 564); + 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(821, 564); + this.panelControl2.TabIndex = 0; + // + // layoutControl1 + // + this.layoutControl1.Controls.Add(this.txtid); + this.layoutControl1.Controls.Add(this.txtname); + this.layoutControl1.Controls.Add(this.txtcode); + this.layoutControl1.Controls.Add(this.txtspec); + this.layoutControl1.Controls.Add(this.txtunit); + this.layoutControl1.Controls.Add(this.txtreferprice); + this.layoutControl1.Controls.Add(this.txtmaterialtype); + this.layoutControl1.Controls.Add(this.txtwarehouse); + this.layoutControl1.Controls.Add(this.txtPOinnumber); + this.layoutControl1.Controls.Add(this.txtsalereturnnumber); + this.layoutControl1.Controls.Add(this.txtYDProductConsume); + this.layoutControl1.Controls.Add(this.txtproductmaterialreturn); + this.layoutControl1.Controls.Add(this.txtstocknumber); + this.layoutControl1.Controls.Add(this.txtstockwarnnumber); + this.layoutControl1.Controls.Add(this.txtremark); + 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(817, 560); + this.layoutControl1.TabIndex = 6; + this.layoutControl1.Text = "layoutControl1"; + // + // txtid + // + this.txtid.Location = new System.Drawing.Point(87, 12); + this.txtid.Name = "txtid"; + this.txtid.Size = new System.Drawing.Size(718, 20); + this.txtid.StyleController = this.layoutControl1; + this.txtid.TabIndex = 1; + // + // txtname + // + this.txtname.Location = new System.Drawing.Point(87, 36); + this.txtname.Name = "txtname"; + this.txtname.Size = new System.Drawing.Size(319, 20); + this.txtname.StyleController = this.layoutControl1; + this.txtname.TabIndex = 2; + // + // txtcode + // + this.txtcode.Location = new System.Drawing.Point(485, 36); + this.txtcode.Name = "txtcode"; + this.txtcode.Size = new System.Drawing.Size(320, 20); + this.txtcode.StyleController = this.layoutControl1; + this.txtcode.TabIndex = 3; + // + // txtspec + // + this.txtspec.Location = new System.Drawing.Point(87, 60); + this.txtspec.Name = "txtspec"; + this.txtspec.Size = new System.Drawing.Size(319, 20); + this.txtspec.StyleController = this.layoutControl1; + this.txtspec.TabIndex = 4; + // + // txtunit + // + this.txtunit.EditValue = ""; + this.txtunit.Location = new System.Drawing.Point(485, 60); + this.txtunit.Name = "txtunit"; + this.txtunit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtunit.Properties.DisplayMember = "Name"; + this.txtunit.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; + this.txtunit.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + this.txtunit.Properties.ValueMember = "ID"; + this.txtunit.Size = new System.Drawing.Size(320, 20); + this.txtunit.StyleController = this.layoutControl1; + this.txtunit.TabIndex = 5; + // + // txtreferprice + // + this.txtreferprice.Location = new System.Drawing.Point(87, 84); + this.txtreferprice.Name = "txtreferprice"; + this.txtreferprice.Size = new System.Drawing.Size(319, 20); + this.txtreferprice.StyleController = this.layoutControl1; + this.txtreferprice.TabIndex = 6; + // + // txtmaterialtype + // + this.txtmaterialtype.EditValue = ""; + this.txtmaterialtype.Location = new System.Drawing.Point(485, 84); + this.txtmaterialtype.Name = "txtmaterialtype"; + this.txtmaterialtype.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtmaterialtype.Properties.DisplayMember = "Name"; + this.txtmaterialtype.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; + this.txtmaterialtype.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + this.txtmaterialtype.Properties.ValueMember = "ID"; + this.txtmaterialtype.Size = new System.Drawing.Size(320, 20); + this.txtmaterialtype.StyleController = this.layoutControl1; + this.txtmaterialtype.TabIndex = 7; + // + // txtwarehouse + // + this.txtwarehouse.EditValue = ""; + this.txtwarehouse.Location = new System.Drawing.Point(87, 108); + this.txtwarehouse.Name = "txtwarehouse"; + this.txtwarehouse.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtwarehouse.Properties.DisplayMember = "Name"; + this.txtwarehouse.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; + this.txtwarehouse.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + this.txtwarehouse.Properties.ValueMember = "ID"; + this.txtwarehouse.Size = new System.Drawing.Size(319, 20); + this.txtwarehouse.StyleController = this.layoutControl1; + this.txtwarehouse.TabIndex = 8; + // + // txtPOinnumber + // + this.txtPOinnumber.Location = new System.Drawing.Point(87, 132); + this.txtPOinnumber.Name = "txtPOinnumber"; + this.txtPOinnumber.Size = new System.Drawing.Size(319, 20); + this.txtPOinnumber.StyleController = this.layoutControl1; + this.txtPOinnumber.TabIndex = 9; + // + // txtsalereturnnumber + // + this.txtsalereturnnumber.Location = new System.Drawing.Point(485, 132); + this.txtsalereturnnumber.Name = "txtsalereturnnumber"; + this.txtsalereturnnumber.Size = new System.Drawing.Size(320, 20); + this.txtsalereturnnumber.StyleController = this.layoutControl1; + this.txtsalereturnnumber.TabIndex = 10; + // + // txtYDProductConsume + // + this.txtYDProductConsume.Location = new System.Drawing.Point(87, 156); + this.txtYDProductConsume.Name = "txtYDProductConsume"; + this.txtYDProductConsume.Size = new System.Drawing.Size(319, 20); + this.txtYDProductConsume.StyleController = this.layoutControl1; + this.txtYDProductConsume.TabIndex = 11; + // + // txtproductmaterialreturn + // + this.txtproductmaterialreturn.Location = new System.Drawing.Point(485, 156); + this.txtproductmaterialreturn.Name = "txtproductmaterialreturn"; + this.txtproductmaterialreturn.Size = new System.Drawing.Size(320, 20); + this.txtproductmaterialreturn.StyleController = this.layoutControl1; + this.txtproductmaterialreturn.TabIndex = 12; + // + // txtstocknumber + // + this.txtstocknumber.Location = new System.Drawing.Point(485, 108); + this.txtstocknumber.Name = "txtstocknumber"; + this.txtstocknumber.Size = new System.Drawing.Size(320, 20); + this.txtstocknumber.StyleController = this.layoutControl1; + this.txtstocknumber.TabIndex = 13; + // + // txtstockwarnnumber + // + this.txtstockwarnnumber.Location = new System.Drawing.Point(87, 180); + this.txtstockwarnnumber.Name = "txtstockwarnnumber"; + this.txtstockwarnnumber.Size = new System.Drawing.Size(718, 20); + this.txtstockwarnnumber.StyleController = this.layoutControl1; + this.txtstockwarnnumber.TabIndex = 14; + // + // txtremark + // + this.txtremark.Location = new System.Drawing.Point(87, 204); + this.txtremark.Name = "txtremark"; + this.txtremark.Size = new System.Drawing.Size(718, 20); + this.txtremark.StyleController = this.layoutControl1; + this.txtremark.TabIndex = 15; + // + // layoutControlGroup1 + // + this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; + this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; + this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { + this.layoutControlItem1, + this.layoutControlItem2, + this.layoutControlItem4, + this.layoutControlItem6, + this.layoutControlItem8, + this.layoutControlItem9, + this.layoutControlItem11, + this.layoutControlItem14, + this.layoutControlItem15, + this.layoutControlItem3, + this.layoutControlItem5, + this.layoutControlItem7, + this.layoutControlItem13, + this.layoutControlItem10, + this.layoutControlItem12}); + this.layoutControlGroup1.Name = "layoutControlGroup1"; + this.layoutControlGroup1.Size = new System.Drawing.Size(817, 560); + this.layoutControlGroup1.TextVisible = false; + // + // layoutControlItem1 + // + this.layoutControlItem1.Control = this.txtid; + this.layoutControlItem1.CustomizationFormText = "id"; + this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); + this.layoutControlItem1.Name = "layoutControlItem1"; + this.layoutControlItem1.Size = new System.Drawing.Size(797, 24); + this.layoutControlItem1.Text = "id"; + this.layoutControlItem1.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem2 + // + this.layoutControlItem2.Control = this.txtname; + this.layoutControlItem2.CustomizationFormText = "物料名称"; + this.layoutControlItem2.Location = new System.Drawing.Point(0, 24); + this.layoutControlItem2.Name = "layoutControlItem2"; + this.layoutControlItem2.Size = new System.Drawing.Size(398, 24); + this.layoutControlItem2.Text = "物料名称"; + this.layoutControlItem2.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem4 + // + this.layoutControlItem4.Control = this.txtspec; + this.layoutControlItem4.CustomizationFormText = "规格型号"; + this.layoutControlItem4.Location = new System.Drawing.Point(0, 48); + this.layoutControlItem4.Name = "layoutControlItem4"; + this.layoutControlItem4.Size = new System.Drawing.Size(398, 24); + this.layoutControlItem4.Text = "规格型号"; + this.layoutControlItem4.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem6 + // + this.layoutControlItem6.Control = this.txtreferprice; + this.layoutControlItem6.CustomizationFormText = "参考单价"; + this.layoutControlItem6.Location = new System.Drawing.Point(0, 72); + this.layoutControlItem6.Name = "layoutControlItem6"; + this.layoutControlItem6.Size = new System.Drawing.Size(398, 24); + this.layoutControlItem6.Text = "参考单价"; + this.layoutControlItem6.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem8 + // + this.layoutControlItem8.Control = this.txtwarehouse; + this.layoutControlItem8.CustomizationFormText = "仓库"; + this.layoutControlItem8.Location = new System.Drawing.Point(0, 96); + this.layoutControlItem8.Name = "layoutControlItem8"; + this.layoutControlItem8.Size = new System.Drawing.Size(398, 24); + this.layoutControlItem8.Text = "仓库"; + this.layoutControlItem8.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem9 + // + this.layoutControlItem9.Control = this.txtPOinnumber; + this.layoutControlItem9.CustomizationFormText = "采购入库总量"; + this.layoutControlItem9.Location = new System.Drawing.Point(0, 120); + this.layoutControlItem9.Name = "layoutControlItem9"; + this.layoutControlItem9.Size = new System.Drawing.Size(398, 24); + this.layoutControlItem9.Text = "采购入库总量"; + this.layoutControlItem9.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem11 + // + this.layoutControlItem11.Control = this.txtYDProductConsume; + this.layoutControlItem11.CustomizationFormText = "生产领料总量"; + this.layoutControlItem11.Location = new System.Drawing.Point(0, 144); + this.layoutControlItem11.Name = "layoutControlItem11"; + this.layoutControlItem11.Size = new System.Drawing.Size(398, 24); + this.layoutControlItem11.Text = "生产领料总量"; + this.layoutControlItem11.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem14 + // + this.layoutControlItem14.Control = this.txtstockwarnnumber; + this.layoutControlItem14.CustomizationFormText = "库存预警数量"; + this.layoutControlItem14.Location = new System.Drawing.Point(0, 168); + this.layoutControlItem14.Name = "layoutControlItem14"; + this.layoutControlItem14.Size = new System.Drawing.Size(797, 24); + this.layoutControlItem14.Text = "库存预警数量"; + this.layoutControlItem14.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem15 + // + this.layoutControlItem15.Control = this.txtremark; + this.layoutControlItem15.CustomizationFormText = "备注"; + this.layoutControlItem15.Location = new System.Drawing.Point(0, 192); + this.layoutControlItem15.Name = "layoutControlItem15"; + this.layoutControlItem15.Size = new System.Drawing.Size(797, 348); + this.layoutControlItem15.Text = "备注"; + this.layoutControlItem15.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem3 + // + this.layoutControlItem3.Control = this.txtcode; + this.layoutControlItem3.CustomizationFormText = "物料编码"; + this.layoutControlItem3.Location = new System.Drawing.Point(398, 24); + this.layoutControlItem3.Name = "layoutControlItem3"; + this.layoutControlItem3.Size = new System.Drawing.Size(399, 24); + this.layoutControlItem3.Text = "物料编码"; + this.layoutControlItem3.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem5 + // + this.layoutControlItem5.Control = this.txtunit; + this.layoutControlItem5.CustomizationFormText = "计量单位"; + this.layoutControlItem5.Location = new System.Drawing.Point(398, 48); + this.layoutControlItem5.Name = "layoutControlItem5"; + this.layoutControlItem5.Size = new System.Drawing.Size(399, 24); + this.layoutControlItem5.Text = "计量单位"; + this.layoutControlItem5.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem7 + // + this.layoutControlItem7.Control = this.txtmaterialtype; + this.layoutControlItem7.CustomizationFormText = "物料类别"; + this.layoutControlItem7.Location = new System.Drawing.Point(398, 72); + this.layoutControlItem7.Name = "layoutControlItem7"; + this.layoutControlItem7.Size = new System.Drawing.Size(399, 24); + this.layoutControlItem7.Text = "物料类别"; + this.layoutControlItem7.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem13 + // + this.layoutControlItem13.Control = this.txtstocknumber; + this.layoutControlItem13.CustomizationFormText = "库存数量"; + this.layoutControlItem13.Location = new System.Drawing.Point(398, 96); + this.layoutControlItem13.Name = "layoutControlItem13"; + this.layoutControlItem13.Size = new System.Drawing.Size(399, 24); + this.layoutControlItem13.Text = "库存数量"; + this.layoutControlItem13.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem10 + // + this.layoutControlItem10.Control = this.txtsalereturnnumber; + this.layoutControlItem10.CustomizationFormText = "退货出库总量"; + this.layoutControlItem10.Location = new System.Drawing.Point(398, 120); + this.layoutControlItem10.Name = "layoutControlItem10"; + this.layoutControlItem10.Size = new System.Drawing.Size(399, 24); + this.layoutControlItem10.Text = "退货出库总量"; + this.layoutControlItem10.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem12 + // + this.layoutControlItem12.Control = this.txtproductmaterialreturn; + this.layoutControlItem12.CustomizationFormText = "生产退料总量"; + this.layoutControlItem12.Location = new System.Drawing.Point(398, 144); + this.layoutControlItem12.Name = "layoutControlItem12"; + this.layoutControlItem12.Size = new System.Drawing.Size(399, 24); + this.layoutControlItem12.Text = "生产退料总量"; + this.layoutControlItem12.TextSize = new System.Drawing.Size(72, 14); + // + // Frmmaterial + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(827, 627); + this.Controls.Add(this.xtraTabControl1); + this.Name = "Frmmaterial"; + this.Text = "物料信息"; + this.Load += new System.EventHandler(this.Frmmaterial_Load); + this.Controls.SetChildIndex(this.xtraTabControl1, 0); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtunit)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtmaterialtype)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtwarehouse)).EndInit(); + ((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.txtid.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtname.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcode.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtspec.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtunit.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtreferprice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtmaterialtype.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtwarehouse.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtPOinnumber.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsalereturnnumber.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtYDProductConsume.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtproductmaterialreturn.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtstocknumber.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtstockwarnnumber.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).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.XtraEditors.TextEdit txtid; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtname; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtcode; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtspec; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtunit; + + private DevExpress.XtraEditors.LookUpEdit txtunit; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtreferprice; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtmaterialtype; + + private DevExpress.XtraEditors.LookUpEdit txtmaterialtype; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtwarehouse; + + private DevExpress.XtraEditors.LookUpEdit txtwarehouse; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtPOinnumber; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsalereturnnumber; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtYDProductConsume; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtproductmaterialreturn; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtstocknumber; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtstockwarnnumber; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtremark; + + 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; + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmmaterial.resx b/WinformGeneralDeveloperFrame/Form/Frmmaterial.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmmaterial.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/Form/Frmproduct.cs b/WinformGeneralDeveloperFrame/Form/Frmproduct.cs new file mode 100644 index 0000000..dc9c6cb --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmproduct.cs @@ -0,0 +1,258 @@ +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 ERP.Entity; +using System.Data.Entity.Migrations; +using System.Data.Entity; +using MES; + +namespace ERP.Form +{ + public partial class Frmproduct : FrmBaseForm + { + private Dictionary fieldDictionary = new Dictionary(); + public Frmproduct() + { + InitializeComponent(); + } + private void Frmproduct_Load(object sender, EventArgs e) + { + + InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new productInfo()); + InitSearchDicData(); + } + /// + /// 数据源初始化 + /// + /// + private void Init() + { + + + + txtcreatorId.Properties.DataSource = GetDataTableUtils.SqlTable("用户"); + repositoryItemtxtcreatorId.DataSource = GetDataTableUtils.SqlTable("用户"); + txteditorId.Properties.DataSource = GetDataTableUtils.SqlTable("用户"); + repositoryItemtxteditorId.DataSource = GetDataTableUtils.SqlTable("用户"); + txtunit.Properties.DataSource = GetDataTableUtils.SqlTable("计量单位"); + repositoryItemtxtunit.DataSource= GetDataTableUtils.SqlTable("计量单位"); + txtwarehouse.Properties.DataSource = GetDataTableUtils.SqlTable("仓库"); + repositoryItemtxtwarehouse.DataSource= GetDataTableUtils.SqlTable("仓库"); + txtproducttype.Properties.DataSource = GetDataTableUtils.SqlTable("产品类别"); + repositoryItemtxtproducttype.DataSource= GetDataTableUtils.SqlTable("产品类别"); + + + } + /// + /// 搜索字段 + /// + /// + private void InitSearchDicData() + { + fieldDictionary.Add("产品名称","productname"); + fieldDictionary.Add("仓库","warehouse"); + fieldDictionary.Add("产品类别","producttype"); + fieldDictionary.Add("产品编号","productcode"); + fieldDictionary.Add("创建时间","createTime"); + } + /// + /// 保存 + /// + /// + public override bool SaveFunction() + { + try + { + productInfo info= (productInfo)this.ControlDataToModel(new productInfo()); + using (var db = new MESDB()) + { + db.productInfo.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.productInfo.ToList(); + } + Init(); + } + /// + /// 字段为空校验 + /// + /// + public override bool CheckInput() + { + if(string.IsNullOrEmpty(txtproductname.EditValue.ToString())) + { + "产品名称不能为空".ShowWarning(); + txtproductname.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtspec.EditValue.ToString())) + { + "规格不能为空".ShowWarning(); + txtspec.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtdefaultprice.EditValue.ToString())) + { + "默认单价不能为空".ShowWarning(); + txtdefaultprice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtunit.EditValue.ToString())) + { + "计量单位不能为空".ShowWarning(); + txtunit.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtwarehouse.EditValue.ToString())) + { + "仓库不能为空".ShowWarning(); + txtwarehouse.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtproducttype.EditValue.ToString())) + { + "产品类别不能为空".ShowWarning(); + txtproducttype.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtproductcode.EditValue.ToString())) + { + "产品编号不能为空".ShowWarning(); + txtproductcode.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtstocknumber.EditValue.ToString())) + { + "库存不能为空".ShowWarning(); + txtstocknumber.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtstartnumber.EditValue.ToString())) + { + "期初数量不能为空".ShowWarning(); + txtstartnumber.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtstartprice.EditValue.ToString())) + { + "期初总价不能为空".ShowWarning(); + txtstartprice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtproductinnumber.EditValue.ToString())) + { + "生产入库数量不能为空".ShowWarning(); + txtproductinnumber.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsaleoutnumber.EditValue.ToString())) + { + "销售出库数量不能为空".ShowWarning(); + txtsaleoutnumber.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtcustomerreturnnumber.EditValue.ToString())) + { + "客户退货数量不能为空".ShowWarning(); + txtcustomerreturnnumber.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtstockwarnnumber.EditValue.ToString())) + { + "库存预警数量不能为空".ShowWarning(); + txtstockwarnnumber.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtcreatorId.EditValue.ToString())) + { + "创建人不能为空".ShowWarning(); + txtcreatorId.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtcreateTime.EditValue.ToString())) + { + "创建时间不能为空".ShowWarning(); + txtcreateTime.Focus(); + return false; + } + if(string.IsNullOrEmpty(txteditorId.EditValue.ToString())) + { + "编辑人不能为空".ShowWarning(); + txteditorId.Focus(); + return false; + } + if(string.IsNullOrEmpty(txteditTime.EditValue.ToString())) + { + "编辑时间不能为空".ShowWarning(); + txteditTime.Focus(); + return false; + } + return true; + } + /// + /// 删除 + /// + /// + public override bool DelFunction() + { + try + { + productInfo info = (productInfo)this.ControlDataToModel(new productInfo()); + 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.productInfo.SqlQuery("select * from product").ToList(); + } + else + { + grdList.DataSource = db.productInfo.SqlQuery($"select * from product where {sql}").ToList(); + } + } + } + } + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmproduct.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmproduct.designer.cs new file mode 100644 index 0000000..eaabf05 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmproduct.designer.cs @@ -0,0 +1,1127 @@ + +using DevExpress.XtraEditors; +using DevExpress.XtraLayout; +using DevExpress.XtraTab; + +namespace ERP.Form +{ + partial class Frmproduct + { + /// + /// 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.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.repositoryItemtxtunit = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxtwarehouse = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxtproducttype = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + 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.repositoryItemtxtcreatorId = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn17 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn18 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxteditorId = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn19 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn20 = 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.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); + this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); + this.txtid = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); + this.txtproductname = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); + this.txtspec = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); + this.txtdefaultprice = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); + this.txtunit = new DevExpress.XtraEditors.LookUpEdit(); + this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); + this.txtwarehouse = new DevExpress.XtraEditors.LookUpEdit(); + this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); + this.txtproducttype = new DevExpress.XtraEditors.LookUpEdit(); + this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); + this.txtproductcode = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); + this.txtstocknumber = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); + this.txtstartnumber = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); + this.txtstartprice = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem(); + this.txtproductinnumber = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem(); + this.txtsaleoutnumber = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem(); + this.txtcustomerreturnnumber = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem(); + this.txtstockwarnnumber = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem16 = new DevExpress.XtraLayout.LayoutControlItem(); + this.txtcreatorId = new DevExpress.XtraEditors.LookUpEdit(); + this.layoutControlItem17 = new DevExpress.XtraLayout.LayoutControlItem(); + this.txtcreateTime = new DevExpress.XtraEditors.DateEdit(); + this.layoutControlItem18 = new DevExpress.XtraLayout.LayoutControlItem(); + this.txteditorId = new DevExpress.XtraEditors.LookUpEdit(); + this.layoutControlItem19 = new DevExpress.XtraLayout.LayoutControlItem(); + this.txteditTime = new DevExpress.XtraEditors.DateEdit(); + this.layoutControlItem20 = new DevExpress.XtraLayout.LayoutControlItem(); + this.txtremark = new DevExpress.XtraEditors.TextEdit(); + this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtunit)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtwarehouse)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtproducttype)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcreatorId)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxteditorId)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); + this.xtraTabControl1.SuspendLayout(); + this.tabDataList.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.grdList)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.grdListView)).BeginInit(); + this.tabDataDetail.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit(); + this.panelControl2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); + this.layoutControl1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtproductname.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtspec.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdefaultprice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtunit.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtwarehouse.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtproducttype.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtproductcode.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtstocknumber.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtstartnumber.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtstartprice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtproductinnumber.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsaleoutnumber.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomerreturnnumber.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtstockwarnnumber.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreatorId.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreateTime.Properties.CalendarTimeProperties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreateTime.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txteditorId.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem19)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txteditTime.Properties.CalendarTimeProperties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txteditTime.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem20)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); + this.SuspendLayout(); + // + // gridColumn1 + // + this.gridColumn1.Caption = "id"; + this.gridColumn1.FieldName = "id"; + this.gridColumn1.Name = "gridColumn1"; + // + // gridColumn2 + // + this.gridColumn2.Caption = "产品名称"; + this.gridColumn2.FieldName = "productname"; + this.gridColumn2.Name = "gridColumn2"; + this.gridColumn2.Visible = true; + this.gridColumn2.VisibleIndex = 0; + this.gridColumn2.Width = 201; + // + // gridColumn3 + // + this.gridColumn3.Caption = "规格"; + this.gridColumn3.FieldName = "spec"; + this.gridColumn3.Name = "gridColumn3"; + this.gridColumn3.Visible = true; + this.gridColumn3.VisibleIndex = 1; + this.gridColumn3.Width = 201; + // + // gridColumn4 + // + this.gridColumn4.Caption = "默认单价"; + this.gridColumn4.FieldName = "defaultprice"; + this.gridColumn4.Name = "gridColumn4"; + this.gridColumn4.Visible = true; + this.gridColumn4.VisibleIndex = 2; + this.gridColumn4.Width = 201; + // + // gridColumn5 + // + this.gridColumn5.Caption = "计量单位"; + this.gridColumn5.ColumnEdit = this.repositoryItemtxtunit; + this.gridColumn5.FieldName = "unit"; + this.gridColumn5.Name = "gridColumn5"; + this.gridColumn5.Visible = true; + this.gridColumn5.VisibleIndex = 3; + this.gridColumn5.Width = 201; + // + // repositoryItemtxtunit + // + this.repositoryItemtxtunit.AutoHeight = false; + this.repositoryItemtxtunit.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtunit.DisplayMember = "Name"; + this.repositoryItemtxtunit.Name = "repositoryItemtxtunit"; + this.repositoryItemtxtunit.ValueMember = "ID"; + // + // gridColumn6 + // + this.gridColumn6.Caption = "仓库"; + this.gridColumn6.ColumnEdit = this.repositoryItemtxtwarehouse; + this.gridColumn6.FieldName = "warehouse"; + this.gridColumn6.Name = "gridColumn6"; + this.gridColumn6.Visible = true; + this.gridColumn6.VisibleIndex = 4; + this.gridColumn6.Width = 201; + // + // repositoryItemtxtwarehouse + // + this.repositoryItemtxtwarehouse.AutoHeight = false; + this.repositoryItemtxtwarehouse.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtwarehouse.DisplayMember = "Name"; + this.repositoryItemtxtwarehouse.Name = "repositoryItemtxtwarehouse"; + this.repositoryItemtxtwarehouse.ValueMember = "ID"; + // + // gridColumn7 + // + this.gridColumn7.Caption = "产品类别"; + this.gridColumn7.ColumnEdit = this.repositoryItemtxtproducttype; + this.gridColumn7.FieldName = "producttype"; + this.gridColumn7.Name = "gridColumn7"; + this.gridColumn7.Visible = true; + this.gridColumn7.VisibleIndex = 5; + this.gridColumn7.Width = 201; + // + // repositoryItemtxtproducttype + // + this.repositoryItemtxtproducttype.AutoHeight = false; + this.repositoryItemtxtproducttype.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtproducttype.DisplayMember = "Name"; + this.repositoryItemtxtproducttype.Name = "repositoryItemtxtproducttype"; + this.repositoryItemtxtproducttype.ValueMember = "ID"; + // + // gridColumn8 + // + this.gridColumn8.Caption = "产品编号"; + this.gridColumn8.FieldName = "productcode"; + this.gridColumn8.Name = "gridColumn8"; + this.gridColumn8.Visible = true; + this.gridColumn8.VisibleIndex = 6; + this.gridColumn8.Width = 201; + // + // gridColumn9 + // + this.gridColumn9.Caption = "库存"; + this.gridColumn9.FieldName = "stocknumber"; + this.gridColumn9.Name = "gridColumn9"; + this.gridColumn9.Visible = true; + this.gridColumn9.VisibleIndex = 7; + this.gridColumn9.Width = 201; + // + // gridColumn10 + // + this.gridColumn10.Caption = "期初数量"; + this.gridColumn10.FieldName = "startnumber"; + this.gridColumn10.Name = "gridColumn10"; + this.gridColumn10.Visible = true; + this.gridColumn10.VisibleIndex = 8; + this.gridColumn10.Width = 201; + // + // gridColumn11 + // + this.gridColumn11.Caption = "期初总价"; + this.gridColumn11.FieldName = "startprice"; + this.gridColumn11.Name = "gridColumn11"; + this.gridColumn11.Visible = true; + this.gridColumn11.VisibleIndex = 9; + this.gridColumn11.Width = 201; + // + // gridColumn12 + // + this.gridColumn12.Caption = "生产入库数量"; + this.gridColumn12.FieldName = "productinnumber"; + this.gridColumn12.Name = "gridColumn12"; + this.gridColumn12.Visible = true; + this.gridColumn12.VisibleIndex = 10; + this.gridColumn12.Width = 201; + // + // gridColumn13 + // + this.gridColumn13.Caption = "销售出库数量"; + this.gridColumn13.FieldName = "saleoutnumber"; + this.gridColumn13.Name = "gridColumn13"; + this.gridColumn13.Visible = true; + this.gridColumn13.VisibleIndex = 11; + this.gridColumn13.Width = 201; + // + // gridColumn14 + // + this.gridColumn14.Caption = "客户退货数量"; + this.gridColumn14.FieldName = "customerreturnnumber"; + this.gridColumn14.Name = "gridColumn14"; + this.gridColumn14.Visible = true; + this.gridColumn14.VisibleIndex = 12; + this.gridColumn14.Width = 201; + // + // gridColumn15 + // + this.gridColumn15.Caption = "库存预警数量"; + this.gridColumn15.FieldName = "stockwarnnumber"; + this.gridColumn15.Name = "gridColumn15"; + this.gridColumn15.Visible = true; + this.gridColumn15.VisibleIndex = 13; + this.gridColumn15.Width = 201; + // + // gridColumn16 + // + this.gridColumn16.Caption = "创建人"; + this.gridColumn16.ColumnEdit = this.repositoryItemtxtcreatorId; + this.gridColumn16.FieldName = "creatorId"; + this.gridColumn16.Name = "gridColumn16"; + this.gridColumn16.Visible = true; + this.gridColumn16.VisibleIndex = 14; + this.gridColumn16.Width = 201; + // + // repositoryItemtxtcreatorId + // + this.repositoryItemtxtcreatorId.AutoHeight = false; + this.repositoryItemtxtcreatorId.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtcreatorId.DisplayMember = "Name"; + this.repositoryItemtxtcreatorId.Name = "repositoryItemtxtcreatorId"; + this.repositoryItemtxtcreatorId.ValueMember = "ID"; + // + // gridColumn17 + // + this.gridColumn17.Caption = "创建时间"; + this.gridColumn17.DisplayFormat.FormatString = "G"; + this.gridColumn17.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.gridColumn17.FieldName = "createTime"; + this.gridColumn17.Name = "gridColumn17"; + this.gridColumn17.Visible = true; + this.gridColumn17.VisibleIndex = 15; + this.gridColumn17.Width = 201; + // + // gridColumn18 + // + this.gridColumn18.Caption = "编辑人"; + this.gridColumn18.ColumnEdit = this.repositoryItemtxteditorId; + this.gridColumn18.FieldName = "editorId"; + this.gridColumn18.Name = "gridColumn18"; + this.gridColumn18.Visible = true; + this.gridColumn18.VisibleIndex = 16; + this.gridColumn18.Width = 201; + // + // repositoryItemtxteditorId + // + this.repositoryItemtxteditorId.AutoHeight = false; + this.repositoryItemtxteditorId.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxteditorId.DisplayMember = "Name"; + this.repositoryItemtxteditorId.Name = "repositoryItemtxteditorId"; + this.repositoryItemtxteditorId.ValueMember = "ID"; + // + // gridColumn19 + // + this.gridColumn19.Caption = "编辑时间"; + this.gridColumn19.DisplayFormat.FormatString = "G"; + this.gridColumn19.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.gridColumn19.FieldName = "editTime"; + this.gridColumn19.Name = "gridColumn19"; + this.gridColumn19.Visible = true; + this.gridColumn19.VisibleIndex = 17; + this.gridColumn19.Width = 201; + // + // gridColumn20 + // + this.gridColumn20.Caption = "备注"; + this.gridColumn20.FieldName = "remark"; + this.gridColumn20.Name = "gridColumn20"; + this.gridColumn20.Visible = true; + this.gridColumn20.VisibleIndex = 18; + this.gridColumn20.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(777, 543); + 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.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(771, 514); + 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(771, 514); + this.panelControl2.TabIndex = 0; + // + // layoutControl1 + // + this.layoutControl1.Controls.Add(this.txtid); + this.layoutControl1.Controls.Add(this.txtproductname); + this.layoutControl1.Controls.Add(this.txtspec); + this.layoutControl1.Controls.Add(this.txtdefaultprice); + this.layoutControl1.Controls.Add(this.txtunit); + this.layoutControl1.Controls.Add(this.txtwarehouse); + this.layoutControl1.Controls.Add(this.txtproducttype); + this.layoutControl1.Controls.Add(this.txtproductcode); + this.layoutControl1.Controls.Add(this.txtstocknumber); + this.layoutControl1.Controls.Add(this.txtstartnumber); + this.layoutControl1.Controls.Add(this.txtstartprice); + this.layoutControl1.Controls.Add(this.txtproductinnumber); + this.layoutControl1.Controls.Add(this.txtsaleoutnumber); + this.layoutControl1.Controls.Add(this.txtcustomerreturnnumber); + this.layoutControl1.Controls.Add(this.txtstockwarnnumber); + this.layoutControl1.Controls.Add(this.txtcreatorId); + this.layoutControl1.Controls.Add(this.txtcreateTime); + this.layoutControl1.Controls.Add(this.txteditorId); + this.layoutControl1.Controls.Add(this.txteditTime); + this.layoutControl1.Controls.Add(this.txtremark); + 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(767, 510); + this.layoutControl1.TabIndex = 6; + this.layoutControl1.Text = "layoutControl1"; + // + // layoutControlGroup1 + // + this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; + this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; + this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { + this.layoutControlItem1, + this.layoutControlItem2, + this.layoutControlItem3, + this.layoutControlItem4, + this.layoutControlItem6, + this.layoutControlItem9, + this.layoutControlItem16, + this.layoutControlItem18, + this.layoutControlItem20, + this.layoutControlItem8, + this.layoutControlItem7, + this.layoutControlItem5, + this.layoutControlItem12, + this.layoutControlItem13, + this.layoutControlItem14, + this.layoutControlItem15, + this.layoutControlItem10, + this.layoutControlItem11, + this.layoutControlItem17, + this.layoutControlItem19, + this.emptySpaceItem1}); + this.layoutControlGroup1.Name = "layoutControlGroup1"; + this.layoutControlGroup1.Size = new System.Drawing.Size(767, 510); + this.layoutControlGroup1.TextVisible = false; + // + // layoutControlItem1 + // + this.layoutControlItem1.Control = this.txtid; + this.layoutControlItem1.CustomizationFormText = "id"; + this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); + this.layoutControlItem1.Name = "layoutControlItem1"; + this.layoutControlItem1.Size = new System.Drawing.Size(747, 24); + this.layoutControlItem1.Text = "id"; + this.layoutControlItem1.TextSize = new System.Drawing.Size(72, 14); + // + // txtid + // + this.txtid.Location = new System.Drawing.Point(87, 12); + this.txtid.Name = "txtid"; + this.txtid.Size = new System.Drawing.Size(668, 20); + this.txtid.StyleController = this.layoutControl1; + this.txtid.TabIndex = 1; + // + // layoutControlItem2 + // + this.layoutControlItem2.Control = this.txtproductname; + this.layoutControlItem2.CustomizationFormText = "产品名称"; + this.layoutControlItem2.Location = new System.Drawing.Point(0, 24); + this.layoutControlItem2.Name = "layoutControlItem2"; + this.layoutControlItem2.Size = new System.Drawing.Size(373, 24); + this.layoutControlItem2.Text = "产品名称"; + this.layoutControlItem2.TextSize = new System.Drawing.Size(72, 14); + // + // txtproductname + // + this.txtproductname.Location = new System.Drawing.Point(87, 36); + this.txtproductname.Name = "txtproductname"; + this.txtproductname.Size = new System.Drawing.Size(294, 20); + this.txtproductname.StyleController = this.layoutControl1; + this.txtproductname.TabIndex = 2; + // + // layoutControlItem3 + // + this.layoutControlItem3.Control = this.txtspec; + this.layoutControlItem3.CustomizationFormText = "规格"; + this.layoutControlItem3.Location = new System.Drawing.Point(0, 48); + this.layoutControlItem3.Name = "layoutControlItem3"; + this.layoutControlItem3.Size = new System.Drawing.Size(373, 24); + this.layoutControlItem3.Text = "规格"; + this.layoutControlItem3.TextSize = new System.Drawing.Size(72, 14); + // + // txtspec + // + this.txtspec.Location = new System.Drawing.Point(87, 60); + this.txtspec.Name = "txtspec"; + this.txtspec.Size = new System.Drawing.Size(294, 20); + this.txtspec.StyleController = this.layoutControl1; + this.txtspec.TabIndex = 3; + // + // layoutControlItem4 + // + this.layoutControlItem4.Control = this.txtdefaultprice; + this.layoutControlItem4.CustomizationFormText = "默认单价"; + this.layoutControlItem4.Location = new System.Drawing.Point(0, 72); + this.layoutControlItem4.Name = "layoutControlItem4"; + this.layoutControlItem4.Size = new System.Drawing.Size(373, 24); + this.layoutControlItem4.Text = "默认单价"; + this.layoutControlItem4.TextSize = new System.Drawing.Size(72, 14); + // + // txtdefaultprice + // + this.txtdefaultprice.Location = new System.Drawing.Point(87, 84); + this.txtdefaultprice.Name = "txtdefaultprice"; + this.txtdefaultprice.Size = new System.Drawing.Size(294, 20); + this.txtdefaultprice.StyleController = this.layoutControl1; + this.txtdefaultprice.TabIndex = 4; + // + // layoutControlItem5 + // + this.layoutControlItem5.Control = this.txtunit; + this.layoutControlItem5.CustomizationFormText = "计量单位"; + this.layoutControlItem5.Location = new System.Drawing.Point(373, 72); + this.layoutControlItem5.Name = "layoutControlItem5"; + this.layoutControlItem5.Size = new System.Drawing.Size(374, 24); + this.layoutControlItem5.Text = "计量单位"; + this.layoutControlItem5.TextSize = new System.Drawing.Size(72, 14); + // + // txtunit + // + this.txtunit.EditValue = ""; + this.txtunit.Location = new System.Drawing.Point(460, 84); + this.txtunit.Name = "txtunit"; + this.txtunit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtunit.Properties.DisplayMember = "Name"; + this.txtunit.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; + this.txtunit.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + this.txtunit.Properties.ValueMember = "ID"; + this.txtunit.Size = new System.Drawing.Size(295, 20); + this.txtunit.StyleController = this.layoutControl1; + this.txtunit.TabIndex = 5; + // + // layoutControlItem6 + // + this.layoutControlItem6.Control = this.txtwarehouse; + this.layoutControlItem6.CustomizationFormText = "仓库"; + this.layoutControlItem6.Location = new System.Drawing.Point(0, 120); + this.layoutControlItem6.Name = "layoutControlItem6"; + this.layoutControlItem6.Size = new System.Drawing.Size(373, 24); + this.layoutControlItem6.Text = "仓库"; + this.layoutControlItem6.TextSize = new System.Drawing.Size(72, 14); + // + // txtwarehouse + // + this.txtwarehouse.EditValue = ""; + this.txtwarehouse.Location = new System.Drawing.Point(87, 132); + this.txtwarehouse.Name = "txtwarehouse"; + this.txtwarehouse.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtwarehouse.Properties.DisplayMember = "Name"; + this.txtwarehouse.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; + this.txtwarehouse.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + this.txtwarehouse.Properties.ValueMember = "ID"; + this.txtwarehouse.Size = new System.Drawing.Size(294, 20); + this.txtwarehouse.StyleController = this.layoutControl1; + this.txtwarehouse.TabIndex = 6; + // + // layoutControlItem7 + // + this.layoutControlItem7.Control = this.txtproducttype; + this.layoutControlItem7.CustomizationFormText = "产品类别"; + this.layoutControlItem7.Location = new System.Drawing.Point(373, 48); + this.layoutControlItem7.Name = "layoutControlItem7"; + this.layoutControlItem7.Size = new System.Drawing.Size(374, 24); + this.layoutControlItem7.Text = "产品类别"; + this.layoutControlItem7.TextSize = new System.Drawing.Size(72, 14); + // + // txtproducttype + // + this.txtproducttype.EditValue = ""; + this.txtproducttype.Location = new System.Drawing.Point(460, 60); + this.txtproducttype.Name = "txtproducttype"; + this.txtproducttype.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtproducttype.Properties.DisplayMember = "Name"; + this.txtproducttype.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; + this.txtproducttype.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + this.txtproducttype.Properties.ValueMember = "ID"; + this.txtproducttype.Size = new System.Drawing.Size(295, 20); + this.txtproducttype.StyleController = this.layoutControl1; + this.txtproducttype.TabIndex = 7; + // + // layoutControlItem8 + // + this.layoutControlItem8.Control = this.txtproductcode; + this.layoutControlItem8.CustomizationFormText = "产品编号"; + this.layoutControlItem8.Location = new System.Drawing.Point(373, 24); + this.layoutControlItem8.Name = "layoutControlItem8"; + this.layoutControlItem8.Size = new System.Drawing.Size(374, 24); + this.layoutControlItem8.Text = "产品编号"; + this.layoutControlItem8.TextSize = new System.Drawing.Size(72, 14); + // + // txtproductcode + // + this.txtproductcode.Location = new System.Drawing.Point(460, 36); + this.txtproductcode.Name = "txtproductcode"; + this.txtproductcode.Size = new System.Drawing.Size(295, 20); + this.txtproductcode.StyleController = this.layoutControl1; + this.txtproductcode.TabIndex = 8; + // + // layoutControlItem9 + // + this.layoutControlItem9.Control = this.txtstocknumber; + this.layoutControlItem9.CustomizationFormText = "库存"; + this.layoutControlItem9.Location = new System.Drawing.Point(0, 168); + this.layoutControlItem9.Name = "layoutControlItem9"; + this.layoutControlItem9.Size = new System.Drawing.Size(373, 24); + this.layoutControlItem9.Text = "库存"; + this.layoutControlItem9.TextSize = new System.Drawing.Size(72, 14); + // + // txtstocknumber + // + this.txtstocknumber.Location = new System.Drawing.Point(87, 180); + this.txtstocknumber.Name = "txtstocknumber"; + this.txtstocknumber.Size = new System.Drawing.Size(294, 20); + this.txtstocknumber.StyleController = this.layoutControl1; + this.txtstocknumber.TabIndex = 9; + // + // layoutControlItem10 + // + this.layoutControlItem10.Control = this.txtstartnumber; + this.layoutControlItem10.CustomizationFormText = "期初数量"; + this.layoutControlItem10.Location = new System.Drawing.Point(0, 96); + this.layoutControlItem10.Name = "layoutControlItem10"; + this.layoutControlItem10.Size = new System.Drawing.Size(373, 24); + this.layoutControlItem10.Text = "期初数量"; + this.layoutControlItem10.TextSize = new System.Drawing.Size(72, 14); + // + // txtstartnumber + // + this.txtstartnumber.Location = new System.Drawing.Point(87, 108); + this.txtstartnumber.Name = "txtstartnumber"; + this.txtstartnumber.Size = new System.Drawing.Size(294, 20); + this.txtstartnumber.StyleController = this.layoutControl1; + this.txtstartnumber.TabIndex = 10; + // + // layoutControlItem11 + // + this.layoutControlItem11.Control = this.txtstartprice; + this.layoutControlItem11.CustomizationFormText = "期初总价"; + this.layoutControlItem11.Location = new System.Drawing.Point(373, 96); + this.layoutControlItem11.Name = "layoutControlItem11"; + this.layoutControlItem11.Size = new System.Drawing.Size(374, 24); + this.layoutControlItem11.Text = "期初总价"; + this.layoutControlItem11.TextSize = new System.Drawing.Size(72, 14); + // + // txtstartprice + // + this.txtstartprice.Location = new System.Drawing.Point(460, 108); + this.txtstartprice.Name = "txtstartprice"; + this.txtstartprice.Size = new System.Drawing.Size(295, 20); + this.txtstartprice.StyleController = this.layoutControl1; + this.txtstartprice.TabIndex = 11; + // + // layoutControlItem12 + // + this.layoutControlItem12.Control = this.txtproductinnumber; + this.layoutControlItem12.CustomizationFormText = "生产入库数量"; + this.layoutControlItem12.Location = new System.Drawing.Point(373, 120); + this.layoutControlItem12.Name = "layoutControlItem12"; + this.layoutControlItem12.Size = new System.Drawing.Size(374, 24); + this.layoutControlItem12.Text = "生产入库数量"; + this.layoutControlItem12.TextSize = new System.Drawing.Size(72, 14); + // + // txtproductinnumber + // + this.txtproductinnumber.Location = new System.Drawing.Point(460, 132); + this.txtproductinnumber.Name = "txtproductinnumber"; + this.txtproductinnumber.Size = new System.Drawing.Size(295, 20); + this.txtproductinnumber.StyleController = this.layoutControl1; + this.txtproductinnumber.TabIndex = 12; + // + // layoutControlItem13 + // + this.layoutControlItem13.Control = this.txtsaleoutnumber; + this.layoutControlItem13.CustomizationFormText = "销售出库数量"; + this.layoutControlItem13.Location = new System.Drawing.Point(0, 144); + this.layoutControlItem13.Name = "layoutControlItem13"; + this.layoutControlItem13.Size = new System.Drawing.Size(373, 24); + this.layoutControlItem13.Text = "销售出库数量"; + this.layoutControlItem13.TextSize = new System.Drawing.Size(72, 14); + // + // txtsaleoutnumber + // + this.txtsaleoutnumber.Location = new System.Drawing.Point(87, 156); + this.txtsaleoutnumber.Name = "txtsaleoutnumber"; + this.txtsaleoutnumber.Size = new System.Drawing.Size(294, 20); + this.txtsaleoutnumber.StyleController = this.layoutControl1; + this.txtsaleoutnumber.TabIndex = 13; + // + // layoutControlItem14 + // + this.layoutControlItem14.Control = this.txtcustomerreturnnumber; + this.layoutControlItem14.CustomizationFormText = "客户退货数量"; + this.layoutControlItem14.Location = new System.Drawing.Point(373, 144); + this.layoutControlItem14.Name = "layoutControlItem14"; + this.layoutControlItem14.Size = new System.Drawing.Size(374, 24); + this.layoutControlItem14.Text = "客户退货数量"; + this.layoutControlItem14.TextSize = new System.Drawing.Size(72, 14); + // + // txtcustomerreturnnumber + // + this.txtcustomerreturnnumber.Location = new System.Drawing.Point(460, 156); + this.txtcustomerreturnnumber.Name = "txtcustomerreturnnumber"; + this.txtcustomerreturnnumber.Size = new System.Drawing.Size(295, 20); + this.txtcustomerreturnnumber.StyleController = this.layoutControl1; + this.txtcustomerreturnnumber.TabIndex = 14; + // + // layoutControlItem15 + // + this.layoutControlItem15.Control = this.txtstockwarnnumber; + this.layoutControlItem15.CustomizationFormText = "库存预警数量"; + this.layoutControlItem15.Location = new System.Drawing.Point(373, 168); + this.layoutControlItem15.Name = "layoutControlItem15"; + this.layoutControlItem15.Size = new System.Drawing.Size(374, 24); + this.layoutControlItem15.Text = "库存预警数量"; + this.layoutControlItem15.TextSize = new System.Drawing.Size(72, 14); + // + // txtstockwarnnumber + // + this.txtstockwarnnumber.Location = new System.Drawing.Point(460, 180); + this.txtstockwarnnumber.Name = "txtstockwarnnumber"; + this.txtstockwarnnumber.Size = new System.Drawing.Size(295, 20); + this.txtstockwarnnumber.StyleController = this.layoutControl1; + this.txtstockwarnnumber.TabIndex = 15; + // + // layoutControlItem16 + // + this.layoutControlItem16.Control = this.txtcreatorId; + this.layoutControlItem16.CustomizationFormText = "创建人"; + this.layoutControlItem16.Location = new System.Drawing.Point(0, 192); + this.layoutControlItem16.Name = "layoutControlItem16"; + this.layoutControlItem16.Size = new System.Drawing.Size(373, 24); + this.layoutControlItem16.Text = "创建人"; + this.layoutControlItem16.TextSize = new System.Drawing.Size(72, 14); + // + // txtcreatorId + // + this.txtcreatorId.EditValue = ""; + this.txtcreatorId.Location = new System.Drawing.Point(87, 204); + this.txtcreatorId.Name = "txtcreatorId"; + this.txtcreatorId.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtcreatorId.Properties.DisplayMember = "Name"; + this.txtcreatorId.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; + this.txtcreatorId.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + this.txtcreatorId.Properties.ValueMember = "ID"; + this.txtcreatorId.Size = new System.Drawing.Size(294, 20); + this.txtcreatorId.StyleController = this.layoutControl1; + this.txtcreatorId.TabIndex = 16; + // + // layoutControlItem17 + // + this.layoutControlItem17.Control = this.txtcreateTime; + this.layoutControlItem17.CustomizationFormText = "创建时间"; + this.layoutControlItem17.Location = new System.Drawing.Point(373, 192); + this.layoutControlItem17.Name = "layoutControlItem17"; + this.layoutControlItem17.Size = new System.Drawing.Size(374, 24); + this.layoutControlItem17.Text = "创建时间"; + this.layoutControlItem17.TextSize = new System.Drawing.Size(72, 14); + // + // txtcreateTime + // + this.txtcreateTime.EditValue = null; + this.txtcreateTime.ImeMode = System.Windows.Forms.ImeMode.Off; + this.txtcreateTime.Location = new System.Drawing.Point(460, 204); + this.txtcreateTime.Name = "txtcreateTime"; + this.txtcreateTime.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtcreateTime.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton()}); + this.txtcreateTime.Properties.DisplayFormat.FormatString = "G"; + this.txtcreateTime.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.txtcreateTime.Size = new System.Drawing.Size(295, 20); + this.txtcreateTime.StyleController = this.layoutControl1; + this.txtcreateTime.TabIndex = 17; + // + // layoutControlItem18 + // + this.layoutControlItem18.Control = this.txteditorId; + this.layoutControlItem18.CustomizationFormText = "编辑人"; + this.layoutControlItem18.Location = new System.Drawing.Point(0, 216); + this.layoutControlItem18.Name = "layoutControlItem18"; + this.layoutControlItem18.Size = new System.Drawing.Size(373, 24); + this.layoutControlItem18.Text = "编辑人"; + this.layoutControlItem18.TextSize = new System.Drawing.Size(72, 14); + // + // txteditorId + // + this.txteditorId.EditValue = ""; + this.txteditorId.Location = new System.Drawing.Point(87, 228); + this.txteditorId.Name = "txteditorId"; + this.txteditorId.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txteditorId.Properties.DisplayMember = "Name"; + this.txteditorId.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; + this.txteditorId.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + this.txteditorId.Properties.ValueMember = "ID"; + this.txteditorId.Size = new System.Drawing.Size(294, 20); + this.txteditorId.StyleController = this.layoutControl1; + this.txteditorId.TabIndex = 18; + // + // layoutControlItem19 + // + this.layoutControlItem19.Control = this.txteditTime; + this.layoutControlItem19.CustomizationFormText = "编辑时间"; + this.layoutControlItem19.Location = new System.Drawing.Point(373, 216); + this.layoutControlItem19.Name = "layoutControlItem19"; + this.layoutControlItem19.Size = new System.Drawing.Size(374, 24); + this.layoutControlItem19.Text = "编辑时间"; + this.layoutControlItem19.TextSize = new System.Drawing.Size(72, 14); + // + // txteditTime + // + this.txteditTime.EditValue = null; + this.txteditTime.ImeMode = System.Windows.Forms.ImeMode.Off; + this.txteditTime.Location = new System.Drawing.Point(460, 228); + this.txteditTime.Name = "txteditTime"; + this.txteditTime.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txteditTime.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton()}); + this.txteditTime.Properties.DisplayFormat.FormatString = "G"; + this.txteditTime.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.txteditTime.Size = new System.Drawing.Size(295, 20); + this.txteditTime.StyleController = this.layoutControl1; + this.txteditTime.TabIndex = 19; + // + // layoutControlItem20 + // + this.layoutControlItem20.Control = this.txtremark; + this.layoutControlItem20.CustomizationFormText = "备注"; + this.layoutControlItem20.Location = new System.Drawing.Point(0, 240); + this.layoutControlItem20.Name = "layoutControlItem20"; + this.layoutControlItem20.Size = new System.Drawing.Size(747, 24); + this.layoutControlItem20.Text = "备注"; + this.layoutControlItem20.TextSize = new System.Drawing.Size(72, 14); + // + // txtremark + // + this.txtremark.Location = new System.Drawing.Point(87, 252); + this.txtremark.Name = "txtremark"; + this.txtremark.Size = new System.Drawing.Size(668, 20); + this.txtremark.StyleController = this.layoutControl1; + this.txtremark.TabIndex = 20; + // + // emptySpaceItem1 + // + this.emptySpaceItem1.AllowHotTrack = false; + this.emptySpaceItem1.Location = new System.Drawing.Point(0, 264); + this.emptySpaceItem1.Name = "emptySpaceItem1"; + this.emptySpaceItem1.Size = new System.Drawing.Size(747, 226); + this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); + // + // Frmproduct + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(777, 577); + this.Controls.Add(this.xtraTabControl1); + this.Name = "Frmproduct"; + this.Text = "产品信息"; + this.Load += new System.EventHandler(this.Frmproduct_Load); + this.Controls.SetChildIndex(this.xtraTabControl1, 0); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtunit)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtwarehouse)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtproducttype)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcreatorId)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxteditorId)).EndInit(); + ((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.layoutControlGroup1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtproductname.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtspec.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdefaultprice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtunit.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtwarehouse.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtproducttype.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtproductcode.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtstocknumber.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtstartnumber.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtstartprice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtproductinnumber.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsaleoutnumber.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomerreturnnumber.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtstockwarnnumber.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreatorId.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreateTime.Properties.CalendarTimeProperties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreateTime.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txteditorId.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem19)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txteditTime.Properties.CalendarTimeProperties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txteditTime.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem20)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).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.XtraEditors.TextEdit txtid; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtproductname; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtspec; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtdefaultprice; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtunit; + + private DevExpress.XtraEditors.LookUpEdit txtunit; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtwarehouse; + + private DevExpress.XtraEditors.LookUpEdit txtwarehouse; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtproducttype; + + private DevExpress.XtraEditors.LookUpEdit txtproducttype; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtproductcode; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtstocknumber; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtstartnumber; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtstartprice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtproductinnumber; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsaleoutnumber; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtcustomerreturnnumber; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtstockwarnnumber; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtcreatorId; + + private DevExpress.XtraEditors.LookUpEdit txtcreatorId; + /////////////////////////////// + private DevExpress.XtraEditors.DateEdit txtcreateTime; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxteditorId; + + private DevExpress.XtraEditors.LookUpEdit txteditorId; + /////////////////////////////// + private DevExpress.XtraEditors.DateEdit txteditTime; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtremark; + + 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 EmptySpaceItem emptySpaceItem1; + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmproduct.resx b/WinformGeneralDeveloperFrame/Form/Frmproduct.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmproduct.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/Form/Frmstock.cs b/WinformGeneralDeveloperFrame/Form/Frmstock.cs index ffc8518..c655825 100644 --- a/WinformGeneralDeveloperFrame/Form/Frmstock.cs +++ b/WinformGeneralDeveloperFrame/Form/Frmstock.cs @@ -9,10 +9,12 @@ using System.Windows.Forms; using WinformGeneralDeveloperFrame; using WinformGeneralDeveloperFrame.Commons; using DevExpress.XtraLayout; -using MES.Entity; +using ERP.Entity; using System.Data.Entity.Migrations; using System.Data.Entity; -namespace MES.Form +using MES; + +namespace ERP.Form { public partial class Frmstock : FrmBaseForm { @@ -46,39 +48,7 @@ namespace MES.Form /// private void InitSearchDicData() { - fieldDictionary.Add("代码","code"); - fieldDictionary.Add("名称","name"); - fieldDictionary.Add("今日开盘价","startPrice"); - fieldDictionary.Add("昨日收盘价","olePrice"); - fieldDictionary.Add("当前价格","nowPrice"); - fieldDictionary.Add("今日最高价","maxPrice"); - fieldDictionary.Add("今日最低价","minPrice"); - fieldDictionary.Add("竞买价","bidderPrice"); - fieldDictionary.Add("竞卖价","auctionPrice"); - fieldDictionary.Add("成交股票数","turnover"); - fieldDictionary.Add("成交金额","turnoverPrice"); - fieldDictionary.Add("买1数量","buyOneNum"); - fieldDictionary.Add("买1价格","buyOnePrice"); - fieldDictionary.Add("买2数量","buyTwoNum"); - fieldDictionary.Add("买2价格","buyTwoPrice"); - fieldDictionary.Add("买3数量","buyThreeNum"); - fieldDictionary.Add("买3价格","buyThreePrice"); - fieldDictionary.Add("买4数量","buyFourNum"); - fieldDictionary.Add("买4价格","buyFourPrice"); - fieldDictionary.Add("买5数量","buyFiveNum"); - fieldDictionary.Add("买5价格","buyFivePrice"); - fieldDictionary.Add("卖1数量","sellOneNum"); - fieldDictionary.Add("卖1价格","sellOnePrice"); - fieldDictionary.Add("卖2数量","sellTwoNum"); - fieldDictionary.Add("卖2价格","sellTwoPrice"); - fieldDictionary.Add("卖3数量","sellThreeNum"); - fieldDictionary.Add("卖3价格","sellThreePrice"); - fieldDictionary.Add("卖4数量","sellFourNum"); - fieldDictionary.Add("卖4价格","sellFourPrice"); - fieldDictionary.Add("卖5数量","sellFiveNum"); - fieldDictionary.Add("卖5价格","sellFivePrice"); - fieldDictionary.Add("时间","timeStr"); - fieldDictionary.Add("id","id"); + fieldDictionary.Add("仓库名称","name"); } /// /// 保存 @@ -116,196 +86,16 @@ namespace MES.Form /// public override bool CheckInput() { - if(string.IsNullOrEmpty(txtcode.EditValue.ToString())) - { - "代码不能为空".ShowWarning(); - txtcode.Focus(); - return false; - } if(string.IsNullOrEmpty(txtname.EditValue.ToString())) { - "名称不能为空".ShowWarning(); + "仓库名称不能为空".ShowWarning(); txtname.Focus(); return false; } - if(string.IsNullOrEmpty(txtstartPrice.EditValue.ToString())) + if(string.IsNullOrEmpty(txtaddress.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(); + "仓库地址不能为空".ShowWarning(); + txtaddress.Focus(); return false; } return true; diff --git a/WinformGeneralDeveloperFrame/Form/Frmstock.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmstock.designer.cs index e296dbe..3c51b6b 100644 --- a/WinformGeneralDeveloperFrame/Form/Frmstock.designer.cs +++ b/WinformGeneralDeveloperFrame/Form/Frmstock.designer.cs @@ -3,7 +3,7 @@ using DevExpress.XtraEditors; using DevExpress.XtraLayout; using DevExpress.XtraTab; -namespace MES.Form +namespace ERP.Form { partial class Frmstock { @@ -33,488 +33,180 @@ namespace MES.Form /// private void InitializeComponent() { - this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn9 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn10 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn11 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn13 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn14 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn15 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn16 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn17 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn18 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn19 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn20 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn21 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn22 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn23 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn24 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn25 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn26 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn27 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn28 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn29 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn30 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn31 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn32 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn33 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.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.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); this.tabDataList = new DevExpress.XtraTab.XtraTabPage(); + this.tabDataDetail = new DevExpress.XtraTab.XtraTabPage(); this.grdList = new DevExpress.XtraGrid.GridControl(); this.grdListView = new DevExpress.XtraGrid.Views.Grid.GridView(); - this.tabDataDetail = new DevExpress.XtraTab.XtraTabPage(); this.panelControl2 = new DevExpress.XtraEditors.PanelControl(); this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); - this.txtcode = new DevExpress.XtraEditors.TextEdit(); - this.txtname = new DevExpress.XtraEditors.TextEdit(); - this.txtstartPrice = new DevExpress.XtraEditors.TextEdit(); - this.txtolePrice = new DevExpress.XtraEditors.TextEdit(); - this.txtnowPrice = new DevExpress.XtraEditors.TextEdit(); - this.txtmaxPrice = new DevExpress.XtraEditors.TextEdit(); - this.txtminPrice = new DevExpress.XtraEditors.TextEdit(); - this.txtbidderPrice = new DevExpress.XtraEditors.TextEdit(); - this.txtauctionPrice = new DevExpress.XtraEditors.TextEdit(); - this.txtturnover = new DevExpress.XtraEditors.TextEdit(); - this.txtturnoverPrice = new DevExpress.XtraEditors.TextEdit(); - this.txtbuyOneNum = new DevExpress.XtraEditors.TextEdit(); - this.txtbuyOnePrice = new DevExpress.XtraEditors.TextEdit(); - this.txtbuyTwoNum = new DevExpress.XtraEditors.TextEdit(); - this.txtbuyTwoPrice = new DevExpress.XtraEditors.TextEdit(); - this.txtbuyThreeNum = new DevExpress.XtraEditors.TextEdit(); - this.txtbuyThreePrice = new DevExpress.XtraEditors.TextEdit(); - this.txtbuyFourNum = new DevExpress.XtraEditors.TextEdit(); - this.txtbuyFourPrice = new DevExpress.XtraEditors.TextEdit(); - this.txtbuyFiveNum = new DevExpress.XtraEditors.TextEdit(); - this.txtbuyFivePrice = new DevExpress.XtraEditors.TextEdit(); - this.txtsellOneNum = new DevExpress.XtraEditors.TextEdit(); - this.txtsellOnePrice = new DevExpress.XtraEditors.TextEdit(); - this.txtsellTwoNum = new DevExpress.XtraEditors.TextEdit(); - this.txtsellTwoPrice = new DevExpress.XtraEditors.TextEdit(); - this.txtsellThreeNum = new DevExpress.XtraEditors.TextEdit(); - this.txtsellThreePrice = new DevExpress.XtraEditors.TextEdit(); - this.txtsellFourNum = new DevExpress.XtraEditors.TextEdit(); - this.txtsellFourPrice = new DevExpress.XtraEditors.TextEdit(); - this.txtsellFiveNum = new DevExpress.XtraEditors.TextEdit(); - this.txtsellFivePrice = new DevExpress.XtraEditors.TextEdit(); - this.txttimeStr = new DevExpress.XtraEditors.DateEdit(); - this.txtid = new DevExpress.XtraEditors.TextEdit(); - this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); - this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem16 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem17 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem18 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem19 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem20 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem21 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem22 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem23 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem24 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem25 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem26 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem27 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem28 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem29 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem30 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem31 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem32 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem33 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); + + + ////////////////////// + this.txtid=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtname=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtaddress=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); + ////////////////////// + this.txtremark=new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); + + + ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); + + this.layoutControl1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtname.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtaddress.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); this.xtraTabControl1.SuspendLayout(); this.tabDataList.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.grdList)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.grdListView)).BeginInit(); this.tabDataDetail.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit(); - this.panelControl2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); - this.layoutControl1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.txtcode.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtname.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtstartPrice.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtolePrice.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtnowPrice.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtmaxPrice.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtminPrice.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbidderPrice.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtauctionPrice.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtturnover.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtturnoverPrice.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbuyOneNum.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbuyOnePrice.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbuyTwoNum.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbuyTwoPrice.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbuyThreeNum.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbuyThreePrice.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbuyFourNum.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbuyFourPrice.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbuyFiveNum.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbuyFivePrice.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsellOneNum.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsellOnePrice.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsellTwoNum.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsellTwoPrice.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsellThreeNum.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsellThreePrice.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsellFourNum.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsellFourPrice.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsellFiveNum.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsellFivePrice.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txttimeStr.Properties.CalendarTimeProperties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txttimeStr.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem19)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem20)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem21)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem22)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem23)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem24)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem25)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem26)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem27)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem28)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem29)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem30)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem31)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem32)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem33)).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; - // - // gridColumn33 - // - this.gridColumn33.Caption = "id"; - this.gridColumn33.FieldName = "id"; - this.gridColumn33.Name = "gridColumn33"; + + // layoutControl1 + // + + this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.layoutControl1.Location = new System.Drawing.Point(12, 8); + this.layoutControl1.Name = "layoutControl1"; + this.layoutControl1.Root = this.layoutControlGroup1; + layoutControl1.AutoScroll=true; + this.layoutControl1.Size = new System.Drawing.Size(605, 363); + this.layoutControl1.TabIndex = 6; + this.layoutControl1.Text = "layoutControl1"; + + this.layoutControl1.Controls.Add(this.txtid); + this.layoutControl1.Controls.Add(this.txtname); + this.layoutControl1.Controls.Add(this.txtaddress); + this.layoutControl1.Controls.Add(this.txtremark); +//TextEdit +//DateEdit +//SimpleButton +//CheckEdit +//MemoEdit +//PictureEdit +//LookUpEdit +//ComboBoxEdit + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtid.Location = new System.Drawing.Point(112, 12); + this.txtid.Name = "txtid"; + this.txtid.Size = new System.Drawing.Size(481, 20); + this.txtid.StyleController = this.layoutControl1; + this.txtid.TabIndex = 1; + // + // layoutControlItem1 + // + this.layoutControlItem1.Control = this.txtid; + this.layoutControlItem1.CustomizationFormText = "id"; + this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); + this.layoutControlItem1.Name = "layoutControlItem1"; + this.layoutControlItem1.Size = new System.Drawing.Size(585, 24); + this.layoutControlItem1.Text = "id"; + this.layoutControlItem1.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtname.Location = new System.Drawing.Point(112, 36); + this.txtname.Name = "txtname"; + this.txtname.Size = new System.Drawing.Size(481, 20); + this.txtname.StyleController = this.layoutControl1; + this.txtname.TabIndex = 2; + // + // layoutControlItem2 + // + this.layoutControlItem2.Control = this.txtname; + this.layoutControlItem2.CustomizationFormText = "仓库名称"; + this.layoutControlItem2.Location = new System.Drawing.Point(0, 24); + this.layoutControlItem2.Name = "layoutControlItem2"; + this.layoutControlItem2.Size = new System.Drawing.Size(585, 24); + this.layoutControlItem2.Text = "仓库名称"; + this.layoutControlItem2.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtaddress.Location = new System.Drawing.Point(112, 60); + this.txtaddress.Name = "txtaddress"; + this.txtaddress.Size = new System.Drawing.Size(481, 20); + this.txtaddress.StyleController = this.layoutControl1; + this.txtaddress.TabIndex = 3; + // + // layoutControlItem3 + // + this.layoutControlItem3.Control = this.txtaddress; + this.layoutControlItem3.CustomizationFormText = "仓库地址"; + this.layoutControlItem3.Location = new System.Drawing.Point(0, 48); + this.layoutControlItem3.Name = "layoutControlItem3"; + this.layoutControlItem3.Size = new System.Drawing.Size(585, 24); + this.layoutControlItem3.Text = "仓库地址"; + this.layoutControlItem3.TextSize = new System.Drawing.Size(96, 14); + + // + // txt${ColumnInfo.Name.Alias.ToCapit()} + // + this.txtremark.Location = new System.Drawing.Point(112, 84); + this.txtremark.Name = "txtremark"; + this.txtremark.Size = new System.Drawing.Size(481, 20); + this.txtremark.StyleController = this.layoutControl1; + this.txtremark.TabIndex = 4; + // + // layoutControlItem4 + // + this.layoutControlItem4.Control = this.txtremark; + this.layoutControlItem4.CustomizationFormText = "备注"; + this.layoutControlItem4.Location = new System.Drawing.Point(0, 72); + this.layoutControlItem4.Name = "layoutControlItem4"; + this.layoutControlItem4.Size = new System.Drawing.Size(585, 24); + this.layoutControlItem4.Text = "备注"; + this.layoutControlItem4.TextSize = new System.Drawing.Size(96, 14); + + + // + // layoutControlGroup1 + // + this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; + this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; + this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { + this.layoutControlItem1 + ,this.layoutControlItem2 + ,this.layoutControlItem3 + ,this.layoutControlItem4 + }); + this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); + this.layoutControlGroup1.Name = "layoutControlGroup1"; + this.layoutControlGroup1.Size = new System.Drawing.Size(605, 363); + this.layoutControlGroup1.Text = "layoutControlGroup1"; + this.layoutControlGroup1.TextVisible = false; + + // // xtraTabControl1 // @@ -522,7 +214,7 @@ namespace MES.Form 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.Size = new System.Drawing.Size(585, 436); this.xtraTabControl1.TabIndex = 1; this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { this.tabDataList, @@ -532,67 +224,40 @@ 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(579, 407); this.tabDataList.Text = "数据列表"; // + // tabDataDetail + // + this.tabDataDetail.Controls.Add(this.panelControl2); + this.tabDataDetail.Name = "tabDataDetail"; + this.tabDataDetail.Size = new System.Drawing.Size(579, 407); + this.tabDataDetail.Text = "数据编辑"; + // // grdList // this.grdList.Dock = System.Windows.Forms.DockStyle.Fill; this.grdList.Location = new System.Drawing.Point(0, 0); this.grdList.MainView = this.grdListView; this.grdList.Name = "grdList"; - this.grdList.Size = new System.Drawing.Size(1294, 737); + this.grdList.Size = new System.Drawing.Size(579, 407); this.grdList.TabIndex = 0; this.grdList.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.grdListView}); // // grdListView // - this.grdListView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { - this.gridColumn1, - this.gridColumn2, - this.gridColumn3, - this.gridColumn4, - this.gridColumn5, - this.gridColumn6, - this.gridColumn7, - this.gridColumn8, - this.gridColumn9, - this.gridColumn10, - this.gridColumn11, - this.gridColumn12, - this.gridColumn13, - this.gridColumn14, - this.gridColumn15, - this.gridColumn16, - this.gridColumn17, - this.gridColumn18, - this.gridColumn19, - this.gridColumn20, - this.gridColumn21, - this.gridColumn22, - this.gridColumn23, - this.gridColumn24, - this.gridColumn25, - this.gridColumn26, - this.gridColumn27, - this.gridColumn28, - this.gridColumn29, - this.gridColumn30, - this.gridColumn31, - this.gridColumn32, - this.gridColumn33}); + this.grdListView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { + this.gridColumn1, + this.gridColumn2, + this.gridColumn3, + this.gridColumn4, + }); + this.grdListView.OptionsBehavior.Editable = false; 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 = "数据编辑"; + this.grdListView.OptionsView.ColumnAutoWidth=false; + this.grdListView.BestFitColumns(); // // panelControl2 // @@ -600,784 +265,69 @@ namespace MES.Form 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.Size = new System.Drawing.Size(579, 407); 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.Controls.Add(this.txtid); - 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(1203, 20); - this.txtcode.StyleController = this.layoutControl1; - this.txtcode.TabIndex = 1; - // - // txtname - // - this.txtname.Location = new System.Drawing.Point(75, 36); - this.txtname.Name = "txtname"; - this.txtname.Size = new System.Drawing.Size(1203, 20); - this.txtname.StyleController = this.layoutControl1; - this.txtname.TabIndex = 2; - // - // txtstartPrice - // - this.txtstartPrice.Location = new System.Drawing.Point(75, 60); - this.txtstartPrice.Name = "txtstartPrice"; - this.txtstartPrice.Size = new System.Drawing.Size(1203, 20); - this.txtstartPrice.StyleController = this.layoutControl1; - this.txtstartPrice.TabIndex = 3; - // - // txtolePrice - // - this.txtolePrice.Location = new System.Drawing.Point(75, 84); - this.txtolePrice.Name = "txtolePrice"; - this.txtolePrice.Size = new System.Drawing.Size(1203, 20); - this.txtolePrice.StyleController = this.layoutControl1; - this.txtolePrice.TabIndex = 4; - // - // txtnowPrice - // - this.txtnowPrice.Location = new System.Drawing.Point(75, 108); - this.txtnowPrice.Name = "txtnowPrice"; - this.txtnowPrice.Size = new System.Drawing.Size(1203, 20); - this.txtnowPrice.StyleController = this.layoutControl1; - this.txtnowPrice.TabIndex = 5; - // - // txtmaxPrice - // - this.txtmaxPrice.Location = new System.Drawing.Point(75, 132); - this.txtmaxPrice.Name = "txtmaxPrice"; - this.txtmaxPrice.Size = new System.Drawing.Size(1203, 20); - this.txtmaxPrice.StyleController = this.layoutControl1; - this.txtmaxPrice.TabIndex = 6; - // - // txtminPrice - // - this.txtminPrice.Location = new System.Drawing.Point(75, 156); - this.txtminPrice.Name = "txtminPrice"; - this.txtminPrice.Size = new System.Drawing.Size(1203, 20); - this.txtminPrice.StyleController = this.layoutControl1; - this.txtminPrice.TabIndex = 7; - // - // txtbidderPrice - // - this.txtbidderPrice.Location = new System.Drawing.Point(75, 180); - this.txtbidderPrice.Name = "txtbidderPrice"; - this.txtbidderPrice.Size = new System.Drawing.Size(1203, 20); - this.txtbidderPrice.StyleController = this.layoutControl1; - this.txtbidderPrice.TabIndex = 8; - // - // txtauctionPrice - // - this.txtauctionPrice.Location = new System.Drawing.Point(75, 204); - this.txtauctionPrice.Name = "txtauctionPrice"; - this.txtauctionPrice.Size = new System.Drawing.Size(1203, 20); - this.txtauctionPrice.StyleController = this.layoutControl1; - this.txtauctionPrice.TabIndex = 9; - // - // txtturnover - // - this.txtturnover.Location = new System.Drawing.Point(75, 228); - this.txtturnover.Name = "txtturnover"; - this.txtturnover.Size = new System.Drawing.Size(1203, 20); - this.txtturnover.StyleController = this.layoutControl1; - this.txtturnover.TabIndex = 10; - // - // txtturnoverPrice - // - this.txtturnoverPrice.Location = new System.Drawing.Point(75, 252); - this.txtturnoverPrice.Name = "txtturnoverPrice"; - this.txtturnoverPrice.Size = new System.Drawing.Size(1203, 20); - this.txtturnoverPrice.StyleController = this.layoutControl1; - this.txtturnoverPrice.TabIndex = 11; - // - // txtbuyOneNum - // - this.txtbuyOneNum.Location = new System.Drawing.Point(75, 276); - this.txtbuyOneNum.Name = "txtbuyOneNum"; - this.txtbuyOneNum.Size = new System.Drawing.Size(1203, 20); - this.txtbuyOneNum.StyleController = this.layoutControl1; - this.txtbuyOneNum.TabIndex = 12; - // - // txtbuyOnePrice - // - this.txtbuyOnePrice.Location = new System.Drawing.Point(75, 300); - this.txtbuyOnePrice.Name = "txtbuyOnePrice"; - this.txtbuyOnePrice.Size = new System.Drawing.Size(1203, 20); - this.txtbuyOnePrice.StyleController = this.layoutControl1; - this.txtbuyOnePrice.TabIndex = 13; - // - // txtbuyTwoNum - // - this.txtbuyTwoNum.Location = new System.Drawing.Point(75, 324); - this.txtbuyTwoNum.Name = "txtbuyTwoNum"; - this.txtbuyTwoNum.Size = new System.Drawing.Size(1203, 20); - this.txtbuyTwoNum.StyleController = this.layoutControl1; - this.txtbuyTwoNum.TabIndex = 14; - // - // txtbuyTwoPrice - // - this.txtbuyTwoPrice.Location = new System.Drawing.Point(75, 348); - this.txtbuyTwoPrice.Name = "txtbuyTwoPrice"; - this.txtbuyTwoPrice.Size = new System.Drawing.Size(1203, 20); - this.txtbuyTwoPrice.StyleController = this.layoutControl1; - this.txtbuyTwoPrice.TabIndex = 15; - // - // txtbuyThreeNum - // - this.txtbuyThreeNum.Location = new System.Drawing.Point(75, 372); - this.txtbuyThreeNum.Name = "txtbuyThreeNum"; - this.txtbuyThreeNum.Size = new System.Drawing.Size(1203, 20); - this.txtbuyThreeNum.StyleController = this.layoutControl1; - this.txtbuyThreeNum.TabIndex = 16; - // - // txtbuyThreePrice - // - this.txtbuyThreePrice.Location = new System.Drawing.Point(75, 396); - this.txtbuyThreePrice.Name = "txtbuyThreePrice"; - this.txtbuyThreePrice.Size = new System.Drawing.Size(1203, 20); - this.txtbuyThreePrice.StyleController = this.layoutControl1; - this.txtbuyThreePrice.TabIndex = 17; - // - // txtbuyFourNum - // - this.txtbuyFourNum.Location = new System.Drawing.Point(75, 420); - this.txtbuyFourNum.Name = "txtbuyFourNum"; - this.txtbuyFourNum.Size = new System.Drawing.Size(1203, 20); - this.txtbuyFourNum.StyleController = this.layoutControl1; - this.txtbuyFourNum.TabIndex = 18; - // - // txtbuyFourPrice - // - this.txtbuyFourPrice.Location = new System.Drawing.Point(75, 444); - this.txtbuyFourPrice.Name = "txtbuyFourPrice"; - this.txtbuyFourPrice.Size = new System.Drawing.Size(1203, 20); - this.txtbuyFourPrice.StyleController = this.layoutControl1; - this.txtbuyFourPrice.TabIndex = 19; - // - // txtbuyFiveNum - // - this.txtbuyFiveNum.Location = new System.Drawing.Point(75, 468); - this.txtbuyFiveNum.Name = "txtbuyFiveNum"; - this.txtbuyFiveNum.Size = new System.Drawing.Size(1203, 20); - this.txtbuyFiveNum.StyleController = this.layoutControl1; - this.txtbuyFiveNum.TabIndex = 20; - // - // txtbuyFivePrice - // - this.txtbuyFivePrice.Location = new System.Drawing.Point(75, 492); - this.txtbuyFivePrice.Name = "txtbuyFivePrice"; - this.txtbuyFivePrice.Size = new System.Drawing.Size(1203, 20); - this.txtbuyFivePrice.StyleController = this.layoutControl1; - this.txtbuyFivePrice.TabIndex = 21; - // - // txtsellOneNum - // - this.txtsellOneNum.Location = new System.Drawing.Point(75, 516); - this.txtsellOneNum.Name = "txtsellOneNum"; - this.txtsellOneNum.Size = new System.Drawing.Size(1203, 20); - this.txtsellOneNum.StyleController = this.layoutControl1; - this.txtsellOneNum.TabIndex = 22; - // - // txtsellOnePrice - // - this.txtsellOnePrice.Location = new System.Drawing.Point(75, 540); - this.txtsellOnePrice.Name = "txtsellOnePrice"; - this.txtsellOnePrice.Size = new System.Drawing.Size(1203, 20); - this.txtsellOnePrice.StyleController = this.layoutControl1; - this.txtsellOnePrice.TabIndex = 23; - // - // txtsellTwoNum - // - this.txtsellTwoNum.Location = new System.Drawing.Point(75, 564); - this.txtsellTwoNum.Name = "txtsellTwoNum"; - this.txtsellTwoNum.Size = new System.Drawing.Size(1203, 20); - this.txtsellTwoNum.StyleController = this.layoutControl1; - this.txtsellTwoNum.TabIndex = 24; - // - // txtsellTwoPrice - // - this.txtsellTwoPrice.Location = new System.Drawing.Point(75, 588); - this.txtsellTwoPrice.Name = "txtsellTwoPrice"; - this.txtsellTwoPrice.Size = new System.Drawing.Size(1203, 20); - this.txtsellTwoPrice.StyleController = this.layoutControl1; - this.txtsellTwoPrice.TabIndex = 25; - // - // txtsellThreeNum - // - this.txtsellThreeNum.Location = new System.Drawing.Point(75, 612); - this.txtsellThreeNum.Name = "txtsellThreeNum"; - this.txtsellThreeNum.Size = new System.Drawing.Size(1203, 20); - this.txtsellThreeNum.StyleController = this.layoutControl1; - this.txtsellThreeNum.TabIndex = 26; - // - // txtsellThreePrice - // - this.txtsellThreePrice.Location = new System.Drawing.Point(75, 636); - this.txtsellThreePrice.Name = "txtsellThreePrice"; - this.txtsellThreePrice.Size = new System.Drawing.Size(1203, 20); - this.txtsellThreePrice.StyleController = this.layoutControl1; - this.txtsellThreePrice.TabIndex = 27; - // - // txtsellFourNum - // - this.txtsellFourNum.Location = new System.Drawing.Point(75, 660); - this.txtsellFourNum.Name = "txtsellFourNum"; - this.txtsellFourNum.Size = new System.Drawing.Size(1203, 20); - this.txtsellFourNum.StyleController = this.layoutControl1; - this.txtsellFourNum.TabIndex = 28; - // - // txtsellFourPrice - // - this.txtsellFourPrice.Location = new System.Drawing.Point(75, 684); - this.txtsellFourPrice.Name = "txtsellFourPrice"; - this.txtsellFourPrice.Size = new System.Drawing.Size(1203, 20); - this.txtsellFourPrice.StyleController = this.layoutControl1; - this.txtsellFourPrice.TabIndex = 29; - // - // txtsellFiveNum - // - this.txtsellFiveNum.Location = new System.Drawing.Point(75, 708); - this.txtsellFiveNum.Name = "txtsellFiveNum"; - this.txtsellFiveNum.Size = new System.Drawing.Size(1203, 20); - this.txtsellFiveNum.StyleController = this.layoutControl1; - this.txtsellFiveNum.TabIndex = 30; - // - // txtsellFivePrice - // - this.txtsellFivePrice.Location = new System.Drawing.Point(75, 732); - this.txtsellFivePrice.Name = "txtsellFivePrice"; - this.txtsellFivePrice.Size = new System.Drawing.Size(1203, 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, 756); - 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; - // - // txtid - // - this.txtid.Location = new System.Drawing.Point(75, 780); - this.txtid.Name = "txtid"; - this.txtid.Size = new System.Drawing.Size(1203, 20); - this.txtid.StyleController = this.layoutControl1; - this.txtid.TabIndex = 33; - // - // layoutControlGroup1 - // - this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; - this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; - this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { - this.layoutControlItem1, - this.layoutControlItem2, - this.layoutControlItem3, - this.layoutControlItem4, - this.layoutControlItem5, - this.layoutControlItem6, - this.layoutControlItem7, - this.layoutControlItem8, - this.layoutControlItem9, - this.layoutControlItem10, - this.layoutControlItem11, - this.layoutControlItem12, - this.layoutControlItem13, - this.layoutControlItem14, - this.layoutControlItem15, - this.layoutControlItem16, - this.layoutControlItem17, - this.layoutControlItem18, - this.layoutControlItem19, - this.layoutControlItem20, - this.layoutControlItem21, - this.layoutControlItem22, - this.layoutControlItem23, - this.layoutControlItem24, - this.layoutControlItem25, - this.layoutControlItem26, - this.layoutControlItem27, - this.layoutControlItem28, - this.layoutControlItem29, - this.layoutControlItem30, - this.layoutControlItem31, - this.layoutControlItem32, - this.layoutControlItem33}); - this.layoutControlGroup1.Name = "layoutControlGroup1"; - this.layoutControlGroup1.Size = new System.Drawing.Size(1290, 812); - 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(1270, 24); - this.layoutControlItem1.Text = "代码"; - this.layoutControlItem1.TextSize = new System.Drawing.Size(60, 14); - // - // layoutControlItem2 - // - this.layoutControlItem2.Control = this.txtname; - this.layoutControlItem2.CustomizationFormText = "名称"; - this.layoutControlItem2.Location = new System.Drawing.Point(0, 24); - this.layoutControlItem2.Name = "layoutControlItem2"; - this.layoutControlItem2.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem2.Text = "名称"; - this.layoutControlItem2.TextSize = new System.Drawing.Size(60, 14); - // - // layoutControlItem3 - // - this.layoutControlItem3.Control = this.txtstartPrice; - this.layoutControlItem3.CustomizationFormText = "今日开盘价"; - this.layoutControlItem3.Location = new System.Drawing.Point(0, 48); - this.layoutControlItem3.Name = "layoutControlItem3"; - this.layoutControlItem3.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem3.Text = "今日开盘价"; - this.layoutControlItem3.TextSize = new System.Drawing.Size(60, 14); - // - // layoutControlItem4 - // - this.layoutControlItem4.Control = this.txtolePrice; - this.layoutControlItem4.CustomizationFormText = "昨日收盘价"; - this.layoutControlItem4.Location = new System.Drawing.Point(0, 72); - this.layoutControlItem4.Name = "layoutControlItem4"; - this.layoutControlItem4.Size = new System.Drawing.Size(1270, 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(0, 96); - this.layoutControlItem5.Name = "layoutControlItem5"; - this.layoutControlItem5.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem5.Text = "当前价格"; - this.layoutControlItem5.TextSize = new System.Drawing.Size(60, 14); - // - // layoutControlItem6 - // - this.layoutControlItem6.Control = this.txtmaxPrice; - this.layoutControlItem6.CustomizationFormText = "今日最高价"; - this.layoutControlItem6.Location = new System.Drawing.Point(0, 120); - this.layoutControlItem6.Name = "layoutControlItem6"; - this.layoutControlItem6.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem6.Text = "今日最高价"; - this.layoutControlItem6.TextSize = new System.Drawing.Size(60, 14); - // - // layoutControlItem7 - // - this.layoutControlItem7.Control = this.txtminPrice; - this.layoutControlItem7.CustomizationFormText = "今日最低价"; - this.layoutControlItem7.Location = new System.Drawing.Point(0, 144); - this.layoutControlItem7.Name = "layoutControlItem7"; - this.layoutControlItem7.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem7.Text = "今日最低价"; - this.layoutControlItem7.TextSize = new System.Drawing.Size(60, 14); - // - // layoutControlItem8 - // - this.layoutControlItem8.Control = this.txtbidderPrice; - this.layoutControlItem8.CustomizationFormText = "竞买价"; - this.layoutControlItem8.Location = new System.Drawing.Point(0, 168); - this.layoutControlItem8.Name = "layoutControlItem8"; - this.layoutControlItem8.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem8.Text = "竞买价"; - this.layoutControlItem8.TextSize = new System.Drawing.Size(60, 14); - // - // layoutControlItem9 - // - this.layoutControlItem9.Control = this.txtauctionPrice; - this.layoutControlItem9.CustomizationFormText = "竞卖价"; - this.layoutControlItem9.Location = new System.Drawing.Point(0, 192); - this.layoutControlItem9.Name = "layoutControlItem9"; - this.layoutControlItem9.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem9.Text = "竞卖价"; - this.layoutControlItem9.TextSize = new System.Drawing.Size(60, 14); - // - // layoutControlItem10 - // - this.layoutControlItem10.Control = this.txtturnover; - this.layoutControlItem10.CustomizationFormText = "成交股票数"; - this.layoutControlItem10.Location = new System.Drawing.Point(0, 216); - this.layoutControlItem10.Name = "layoutControlItem10"; - this.layoutControlItem10.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem10.Text = "成交股票数"; - this.layoutControlItem10.TextSize = new System.Drawing.Size(60, 14); - // - // layoutControlItem11 - // - this.layoutControlItem11.Control = this.txtturnoverPrice; - this.layoutControlItem11.CustomizationFormText = "成交金额"; - this.layoutControlItem11.Location = new System.Drawing.Point(0, 240); - this.layoutControlItem11.Name = "layoutControlItem11"; - this.layoutControlItem11.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem11.Text = "成交金额"; - this.layoutControlItem11.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, 264); - this.layoutControlItem12.Name = "layoutControlItem12"; - this.layoutControlItem12.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem12.Text = "买1数量"; - this.layoutControlItem12.TextSize = new System.Drawing.Size(60, 14); - // - // layoutControlItem13 - // - this.layoutControlItem13.Control = this.txtbuyOnePrice; - this.layoutControlItem13.CustomizationFormText = "买1价格"; - this.layoutControlItem13.Location = new System.Drawing.Point(0, 288); - this.layoutControlItem13.Name = "layoutControlItem13"; - this.layoutControlItem13.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem13.Text = "买1价格"; - this.layoutControlItem13.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, 312); - this.layoutControlItem14.Name = "layoutControlItem14"; - this.layoutControlItem14.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem14.Text = "买2数量"; - this.layoutControlItem14.TextSize = new System.Drawing.Size(60, 14); - // - // layoutControlItem15 - // - this.layoutControlItem15.Control = this.txtbuyTwoPrice; - this.layoutControlItem15.CustomizationFormText = "买2价格"; - this.layoutControlItem15.Location = new System.Drawing.Point(0, 336); - this.layoutControlItem15.Name = "layoutControlItem15"; - this.layoutControlItem15.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem15.Text = "买2价格"; - this.layoutControlItem15.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, 360); - this.layoutControlItem16.Name = "layoutControlItem16"; - this.layoutControlItem16.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem16.Text = "买3数量"; - this.layoutControlItem16.TextSize = new System.Drawing.Size(60, 14); - // - // layoutControlItem17 - // - this.layoutControlItem17.Control = this.txtbuyThreePrice; - this.layoutControlItem17.CustomizationFormText = "买3价格"; - this.layoutControlItem17.Location = new System.Drawing.Point(0, 384); - this.layoutControlItem17.Name = "layoutControlItem17"; - this.layoutControlItem17.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem17.Text = "买3价格"; - this.layoutControlItem17.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, 408); - this.layoutControlItem18.Name = "layoutControlItem18"; - this.layoutControlItem18.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem18.Text = "买4数量"; - this.layoutControlItem18.TextSize = new System.Drawing.Size(60, 14); - // - // layoutControlItem19 - // - this.layoutControlItem19.Control = this.txtbuyFourPrice; - this.layoutControlItem19.CustomizationFormText = "买4价格"; - this.layoutControlItem19.Location = new System.Drawing.Point(0, 432); - this.layoutControlItem19.Name = "layoutControlItem19"; - this.layoutControlItem19.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem19.Text = "买4价格"; - this.layoutControlItem19.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, 456); - this.layoutControlItem20.Name = "layoutControlItem20"; - this.layoutControlItem20.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem20.Text = "买5数量"; - this.layoutControlItem20.TextSize = new System.Drawing.Size(60, 14); - // - // layoutControlItem21 - // - this.layoutControlItem21.Control = this.txtbuyFivePrice; - this.layoutControlItem21.CustomizationFormText = "买5价格"; - this.layoutControlItem21.Location = new System.Drawing.Point(0, 480); - this.layoutControlItem21.Name = "layoutControlItem21"; - this.layoutControlItem21.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem21.Text = "买5价格"; - this.layoutControlItem21.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, 504); - this.layoutControlItem22.Name = "layoutControlItem22"; - this.layoutControlItem22.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem22.Text = "卖1数量"; - this.layoutControlItem22.TextSize = new System.Drawing.Size(60, 14); - // - // layoutControlItem23 - // - this.layoutControlItem23.Control = this.txtsellOnePrice; - this.layoutControlItem23.CustomizationFormText = "卖1价格"; - this.layoutControlItem23.Location = new System.Drawing.Point(0, 528); - this.layoutControlItem23.Name = "layoutControlItem23"; - this.layoutControlItem23.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem23.Text = "卖1价格"; - this.layoutControlItem23.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, 552); - this.layoutControlItem24.Name = "layoutControlItem24"; - this.layoutControlItem24.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem24.Text = "卖2数量"; - this.layoutControlItem24.TextSize = new System.Drawing.Size(60, 14); - // - // layoutControlItem25 - // - this.layoutControlItem25.Control = this.txtsellTwoPrice; - this.layoutControlItem25.CustomizationFormText = "卖2价格"; - this.layoutControlItem25.Location = new System.Drawing.Point(0, 576); - this.layoutControlItem25.Name = "layoutControlItem25"; - this.layoutControlItem25.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem25.Text = "卖2价格"; - this.layoutControlItem25.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, 600); - this.layoutControlItem26.Name = "layoutControlItem26"; - this.layoutControlItem26.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem26.Text = "卖3数量"; - this.layoutControlItem26.TextSize = new System.Drawing.Size(60, 14); - // - // layoutControlItem27 - // - this.layoutControlItem27.Control = this.txtsellThreePrice; - this.layoutControlItem27.CustomizationFormText = "卖3价格"; - this.layoutControlItem27.Location = new System.Drawing.Point(0, 624); - this.layoutControlItem27.Name = "layoutControlItem27"; - this.layoutControlItem27.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem27.Text = "卖3价格"; - this.layoutControlItem27.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, 648); - this.layoutControlItem28.Name = "layoutControlItem28"; - this.layoutControlItem28.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem28.Text = "卖4数量"; - this.layoutControlItem28.TextSize = new System.Drawing.Size(60, 14); - // - // layoutControlItem29 - // - this.layoutControlItem29.Control = this.txtsellFourPrice; - this.layoutControlItem29.CustomizationFormText = "卖4价格"; - this.layoutControlItem29.Location = new System.Drawing.Point(0, 672); - this.layoutControlItem29.Name = "layoutControlItem29"; - this.layoutControlItem29.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem29.Text = "卖4价格"; - this.layoutControlItem29.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, 696); - this.layoutControlItem30.Name = "layoutControlItem30"; - this.layoutControlItem30.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem30.Text = "卖5数量"; - this.layoutControlItem30.TextSize = new System.Drawing.Size(60, 14); - // - // layoutControlItem31 - // - this.layoutControlItem31.Control = this.txtsellFivePrice; - this.layoutControlItem31.CustomizationFormText = "卖5价格"; - this.layoutControlItem31.Location = new System.Drawing.Point(0, 720); - this.layoutControlItem31.Name = "layoutControlItem31"; - this.layoutControlItem31.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem31.Text = "卖5价格"; - this.layoutControlItem31.TextSize = new System.Drawing.Size(60, 14); - // - // layoutControlItem32 - // - this.layoutControlItem32.Control = this.txttimeStr; - this.layoutControlItem32.CustomizationFormText = "时间"; - this.layoutControlItem32.Location = new System.Drawing.Point(0, 744); - this.layoutControlItem32.Name = "layoutControlItem32"; - this.layoutControlItem32.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem32.Text = "时间"; - this.layoutControlItem32.TextSize = new System.Drawing.Size(60, 14); - // - // layoutControlItem33 - // - this.layoutControlItem33.Control = this.txtid; - this.layoutControlItem33.CustomizationFormText = "id"; - this.layoutControlItem33.Location = new System.Drawing.Point(0, 768); - this.layoutControlItem33.Name = "layoutControlItem33"; - this.layoutControlItem33.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem33.Text = "id"; - this.layoutControlItem33.TextSize = new System.Drawing.Size(60, 14); - // - // Frmstock + + //////////////////////////////// + (this.gridColumn1).Caption = "id"; + (this.gridColumn1).Name = "gridColumn1"; + (this.gridColumn1).FieldName = "id"; + //////////////////////////////// + (this.gridColumn2).Caption = "仓库名称"; + (this.gridColumn2).Name = "gridColumn2"; + (this.gridColumn2).FieldName = "name"; + (this.gridColumn2).Visible = true; + (this.gridColumn2).VisibleIndex = 2; + + //////////////////////////////// + (this.gridColumn3).Caption = "仓库地址"; + (this.gridColumn3).Name = "gridColumn3"; + (this.gridColumn3).FieldName = "address"; + (this.gridColumn3).Visible = true; + (this.gridColumn3).VisibleIndex = 3; + + //////////////////////////////// + (this.gridColumn4).Caption = "备注"; + (this.gridColumn4).Name = "gridColumn4"; + (this.gridColumn4).FieldName = "remark"; + (this.gridColumn4).Visible = true; + (this.gridColumn4).VisibleIndex = 4; + + + // + // XtraForm1 // 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 = "股票"; + this.Text = "Frmstock"; this.Load += new System.EventHandler(this.Frmstock_Load); this.Controls.SetChildIndex(this.xtraTabControl1, 0); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtname.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtaddress.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); + ///////////////////////// + ((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); this.xtraTabControl1.ResumeLayout(false); this.tabDataList.ResumeLayout(false); + this.tabDataDetail.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.grdList)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.grdListView)).EndInit(); - this.tabDataDetail.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit(); - this.panelControl2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.txtcode.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtname.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtstartPrice.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtolePrice.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtnowPrice.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtmaxPrice.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtminPrice.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbidderPrice.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtauctionPrice.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtturnover.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtturnoverPrice.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbuyOneNum.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbuyOnePrice.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbuyTwoNum.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbuyTwoPrice.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbuyThreeNum.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbuyThreePrice.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbuyFourNum.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbuyFourPrice.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbuyFiveNum.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtbuyFivePrice.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsellOneNum.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsellOnePrice.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsellTwoNum.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsellTwoPrice.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsellThreeNum.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsellThreePrice.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsellFourNum.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsellFourPrice.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsellFiveNum.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsellFivePrice.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txttimeStr.Properties.CalendarTimeProperties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txttimeStr.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem19)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem20)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem21)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem22)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem23)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem24)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem25)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem26)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem27)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem28)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem29)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem30)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem31)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem32)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem33)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); + this.ResumeLayout(false); } @@ -1397,134 +347,18 @@ namespace MES.Form 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.XtraGrid.Columns.GridColumn gridColumn33; /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtcode; + private DevExpress.XtraEditors.TextEdit txtid; /////////////////////////////// private DevExpress.XtraEditors.TextEdit txtname; /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtstartPrice; + private DevExpress.XtraEditors.TextEdit txtaddress; /////////////////////////////// - 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.XtraEditors.TextEdit txtid; + private DevExpress.XtraEditors.TextEdit txtremark; 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 DevExpress.XtraLayout.LayoutControlItem layoutControlItem33; } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmsupplier.cs b/WinformGeneralDeveloperFrame/Form/Frmsupplier.cs new file mode 100644 index 0000000..aade8c2 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmsupplier.cs @@ -0,0 +1,255 @@ +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 Frmsupplier : FrmBaseForm + { + private Dictionary fieldDictionary = new Dictionary(); + public Frmsupplier() + { + InitializeComponent(); + } + private void Frmsupplier_Load(object sender, EventArgs e) + { + + InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new supplierInfo()); + InitSearchDicData(); + } + /// + /// 数据源初始化 + /// + /// + private void Init() + { + + + + + txtmanufacturertype.Properties.DataSource = GetDataTableUtils.SqlTable("厂商类型"); + repositoryItemtxtmanufacturertype.DataSource= GetDataTableUtils.SqlTable("厂商类型"); + txtcontacts.Properties.DataSource = GetDataTableUtils.SqlTable("用户"); + repositoryItemtxtcontacts.DataSource= GetDataTableUtils.SqlTable("用户"); + txtcreatorId.Properties.DataSource = GetDataTableUtils.SqlTable("用户"); + repositoryItemtxtcreatorId.DataSource= GetDataTableUtils.SqlTable("用户"); + txteditorId.Properties.DataSource = GetDataTableUtils.SqlTable("用户"); + repositoryItemtxteditorId.DataSource= GetDataTableUtils.SqlTable("用户"); + + + } + /// + /// 搜索字段 + /// + /// + private void InitSearchDicData() + { + fieldDictionary.Add("id","id"); + fieldDictionary.Add("供应商名称","suppliername"); + fieldDictionary.Add("厂商类型","manufacturertype"); + fieldDictionary.Add("联系人","contacts"); + fieldDictionary.Add("供应商地址","address"); + fieldDictionary.Add("增值税税率","vatrate"); + fieldDictionary.Add("纳税人识别号","taxpayeridentity"); + fieldDictionary.Add("对方收款账号","bankaccount"); + fieldDictionary.Add("供应商编号","suppliercode"); + fieldDictionary.Add("应付款总额","payments"); + fieldDictionary.Add("已结款总额","totalamountsettled"); + fieldDictionary.Add("未结款总额","totaloutstandingamount"); + fieldDictionary.Add("备注","remark"); + fieldDictionary.Add("创建人","creatorId"); + fieldDictionary.Add("创建时间","createTime"); + fieldDictionary.Add("修改人","editorId"); + fieldDictionary.Add("修改时间","editTime"); + } + /// + /// 保存 + /// + /// + public override bool SaveFunction() + { + try + { + supplierInfo info= (supplierInfo)this.ControlDataToModel(new supplierInfo()); + using (var db = new MESDB()) + { + db.supplierInfo.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.supplierInfo.ToList(); + } + Init(); + } + /// + /// 字段为空校验 + /// + /// + public override bool CheckInput() + { + if(string.IsNullOrEmpty(txtsuppliername.EditValue.ToString())) + { + "供应商名称不能为空".ShowWarning(); + txtsuppliername.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtmanufacturertype.EditValue.ToString())) + { + "厂商类型不能为空".ShowWarning(); + txtmanufacturertype.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtcontacts.EditValue.ToString())) + { + "联系人不能为空".ShowWarning(); + txtcontacts.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtaddress.EditValue.ToString())) + { + "供应商地址不能为空".ShowWarning(); + txtaddress.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtvatrate.EditValue.ToString())) + { + "增值税税率不能为空".ShowWarning(); + txtvatrate.Focus(); + return false; + } + if(string.IsNullOrEmpty(txttaxpayeridentity.EditValue.ToString())) + { + "纳税人识别号不能为空".ShowWarning(); + txttaxpayeridentity.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtbankaccount.EditValue.ToString())) + { + "对方收款账号不能为空".ShowWarning(); + txtbankaccount.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsuppliercode.EditValue.ToString())) + { + "供应商编号不能为空".ShowWarning(); + txtsuppliercode.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtpayments.EditValue.ToString())) + { + "应付款总额不能为空".ShowWarning(); + txtpayments.Focus(); + return false; + } + if(string.IsNullOrEmpty(txttotalamountsettled.EditValue.ToString())) + { + "已结款总额不能为空".ShowWarning(); + txttotalamountsettled.Focus(); + return false; + } + if(string.IsNullOrEmpty(txttotaloutstandingamount.EditValue.ToString())) + { + "未结款总额不能为空".ShowWarning(); + txttotaloutstandingamount.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtremark.EditValue.ToString())) + { + "备注不能为空".ShowWarning(); + txtremark.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtcreatorId.EditValue.ToString())) + { + "创建人不能为空".ShowWarning(); + txtcreatorId.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtcreateTime.EditValue.ToString())) + { + "创建时间不能为空".ShowWarning(); + txtcreateTime.Focus(); + return false; + } + if(string.IsNullOrEmpty(txteditorId.EditValue.ToString())) + { + "修改人不能为空".ShowWarning(); + txteditorId.Focus(); + return false; + } + if(string.IsNullOrEmpty(txteditTime.EditValue.ToString())) + { + "修改时间不能为空".ShowWarning(); + txteditTime.Focus(); + return false; + } + return true; + } + /// + /// 删除 + /// + /// + public override bool DelFunction() + { + try + { + supplierInfo info = (supplierInfo)this.ControlDataToModel(new supplierInfo()); + 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.supplierInfo.SqlQuery("select * from supplier").ToList(); + } + else + { + grdList.DataSource = db.supplierInfo.SqlQuery($"select * from supplier where {sql}").ToList(); + } + } + } + } + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmsupplier.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmsupplier.designer.cs new file mode 100644 index 0000000..3f1f0cf --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmsupplier.designer.cs @@ -0,0 +1,983 @@ + +using DevExpress.XtraEditors; +using DevExpress.XtraLayout; +using DevExpress.XtraTab; + +namespace MES.Form +{ + partial class Frmsupplier + { + /// + /// 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.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxtmanufacturertype = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxtcontacts = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + 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.repositoryItemtxtcreatorId = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn15 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn16 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxteditorId = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn17 = 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.txtid = new DevExpress.XtraEditors.TextEdit(); + this.txtsuppliername = new DevExpress.XtraEditors.TextEdit(); + this.txtmanufacturertype = new DevExpress.XtraEditors.LookUpEdit(); + this.txtcontacts = new DevExpress.XtraEditors.LookUpEdit(); + this.txtaddress = new DevExpress.XtraEditors.TextEdit(); + this.txtvatrate = new DevExpress.XtraEditors.TextEdit(); + this.txttaxpayeridentity = new DevExpress.XtraEditors.TextEdit(); + this.txtbankaccount = new DevExpress.XtraEditors.TextEdit(); + this.txtsuppliercode = new DevExpress.XtraEditors.TextEdit(); + this.txtpayments = new DevExpress.XtraEditors.TextEdit(); + this.txttotalamountsettled = new DevExpress.XtraEditors.TextEdit(); + this.txttotaloutstandingamount = new DevExpress.XtraEditors.TextEdit(); + this.txtremark = new DevExpress.XtraEditors.TextEdit(); + this.txtcreatorId = new DevExpress.XtraEditors.LookUpEdit(); + this.txtcreateTime = new DevExpress.XtraEditors.DateEdit(); + this.txteditorId = new DevExpress.XtraEditors.LookUpEdit(); + this.txteditTime = new DevExpress.XtraEditors.DateEdit(); + this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); + this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem16 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem17 = new DevExpress.XtraLayout.LayoutControlItem(); + this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtmanufacturertype)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcontacts)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcreatorId)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxteditorId)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); + this.xtraTabControl1.SuspendLayout(); + this.tabDataList.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.grdList)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.grdListView)).BeginInit(); + this.tabDataDetail.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit(); + this.panelControl2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); + this.layoutControl1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsuppliername.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtmanufacturertype.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcontacts.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtaddress.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtvatrate.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttaxpayeridentity.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbankaccount.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsuppliercode.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtpayments.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttotalamountsettled.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttotaloutstandingamount.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreatorId.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreateTime.Properties.CalendarTimeProperties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreateTime.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txteditorId.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txteditTime.Properties.CalendarTimeProperties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txteditTime.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); + this.SuspendLayout(); + // + // gridColumn1 + // + this.gridColumn1.Caption = "id"; + this.gridColumn1.FieldName = "id"; + this.gridColumn1.Name = "gridColumn1"; + // + // gridColumn2 + // + this.gridColumn2.Caption = "供应商名称"; + this.gridColumn2.FieldName = "suppliername"; + this.gridColumn2.Name = "gridColumn2"; + this.gridColumn2.Visible = true; + this.gridColumn2.VisibleIndex = 0; + this.gridColumn2.Width = 201; + // + // gridColumn3 + // + this.gridColumn3.Caption = "厂商类型"; + this.gridColumn3.ColumnEdit = this.repositoryItemtxtmanufacturertype; + this.gridColumn3.FieldName = "manufacturertype"; + this.gridColumn3.Name = "gridColumn3"; + this.gridColumn3.Visible = true; + this.gridColumn3.VisibleIndex = 1; + this.gridColumn3.Width = 201; + // + // repositoryItemtxtmanufacturertype + // + this.repositoryItemtxtmanufacturertype.AutoHeight = false; + this.repositoryItemtxtmanufacturertype.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtmanufacturertype.DisplayMember = "Name"; + this.repositoryItemtxtmanufacturertype.Name = "repositoryItemtxtmanufacturertype"; + this.repositoryItemtxtmanufacturertype.ValueMember = "ID"; + // + // gridColumn4 + // + this.gridColumn4.Caption = "联系人"; + this.gridColumn4.ColumnEdit = this.repositoryItemtxtcontacts; + this.gridColumn4.FieldName = "contacts"; + this.gridColumn4.Name = "gridColumn4"; + this.gridColumn4.Visible = true; + this.gridColumn4.VisibleIndex = 2; + this.gridColumn4.Width = 201; + // + // repositoryItemtxtcontacts + // + this.repositoryItemtxtcontacts.AutoHeight = false; + this.repositoryItemtxtcontacts.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtcontacts.DisplayMember = "Name"; + this.repositoryItemtxtcontacts.Name = "repositoryItemtxtcontacts"; + this.repositoryItemtxtcontacts.ValueMember = "ID"; + // + // gridColumn5 + // + this.gridColumn5.Caption = "供应商地址"; + this.gridColumn5.FieldName = "address"; + this.gridColumn5.Name = "gridColumn5"; + this.gridColumn5.Visible = true; + this.gridColumn5.VisibleIndex = 3; + this.gridColumn5.Width = 201; + // + // gridColumn6 + // + this.gridColumn6.Caption = "增值税税率"; + this.gridColumn6.FieldName = "vatrate"; + this.gridColumn6.Name = "gridColumn6"; + this.gridColumn6.Visible = true; + this.gridColumn6.VisibleIndex = 4; + this.gridColumn6.Width = 201; + // + // gridColumn7 + // + this.gridColumn7.Caption = "纳税人识别号"; + this.gridColumn7.FieldName = "taxpayeridentity"; + this.gridColumn7.Name = "gridColumn7"; + this.gridColumn7.Visible = true; + this.gridColumn7.VisibleIndex = 5; + this.gridColumn7.Width = 201; + // + // gridColumn8 + // + this.gridColumn8.Caption = "对方收款账号"; + this.gridColumn8.FieldName = "bankaccount"; + this.gridColumn8.Name = "gridColumn8"; + this.gridColumn8.Visible = true; + this.gridColumn8.VisibleIndex = 6; + this.gridColumn8.Width = 201; + // + // gridColumn9 + // + this.gridColumn9.Caption = "供应商编号"; + this.gridColumn9.FieldName = "suppliercode"; + this.gridColumn9.Name = "gridColumn9"; + this.gridColumn9.Visible = true; + this.gridColumn9.VisibleIndex = 7; + this.gridColumn9.Width = 201; + // + // gridColumn10 + // + this.gridColumn10.Caption = "应付款总额"; + this.gridColumn10.FieldName = "payments"; + this.gridColumn10.Name = "gridColumn10"; + this.gridColumn10.Visible = true; + this.gridColumn10.VisibleIndex = 8; + this.gridColumn10.Width = 201; + // + // gridColumn11 + // + this.gridColumn11.Caption = "已结款总额"; + this.gridColumn11.FieldName = "totalamountsettled"; + this.gridColumn11.Name = "gridColumn11"; + this.gridColumn11.Visible = true; + this.gridColumn11.VisibleIndex = 9; + this.gridColumn11.Width = 201; + // + // gridColumn12 + // + this.gridColumn12.Caption = "未结款总额"; + this.gridColumn12.FieldName = "totaloutstandingamount"; + this.gridColumn12.Name = "gridColumn12"; + this.gridColumn12.Visible = true; + this.gridColumn12.VisibleIndex = 10; + this.gridColumn12.Width = 201; + // + // gridColumn13 + // + this.gridColumn13.Caption = "备注"; + this.gridColumn13.FieldName = "remark"; + this.gridColumn13.Name = "gridColumn13"; + this.gridColumn13.Visible = true; + this.gridColumn13.VisibleIndex = 11; + this.gridColumn13.Width = 201; + // + // gridColumn14 + // + this.gridColumn14.Caption = "创建人"; + this.gridColumn14.ColumnEdit = this.repositoryItemtxtcreatorId; + this.gridColumn14.FieldName = "creatorId"; + this.gridColumn14.Name = "gridColumn14"; + this.gridColumn14.Visible = true; + this.gridColumn14.VisibleIndex = 12; + this.gridColumn14.Width = 201; + // + // repositoryItemtxtcreatorId + // + this.repositoryItemtxtcreatorId.AutoHeight = false; + this.repositoryItemtxtcreatorId.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtcreatorId.DisplayMember = "Name"; + this.repositoryItemtxtcreatorId.Name = "repositoryItemtxtcreatorId"; + this.repositoryItemtxtcreatorId.ValueMember = "ID"; + // + // gridColumn15 + // + this.gridColumn15.Caption = "创建时间"; + this.gridColumn15.DisplayFormat.FormatString = "G"; + this.gridColumn15.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.gridColumn15.FieldName = "createTime"; + this.gridColumn15.Name = "gridColumn15"; + this.gridColumn15.Visible = true; + this.gridColumn15.VisibleIndex = 13; + this.gridColumn15.Width = 201; + // + // gridColumn16 + // + this.gridColumn16.Caption = "修改人"; + this.gridColumn16.ColumnEdit = this.repositoryItemtxteditorId; + this.gridColumn16.FieldName = "editorId"; + this.gridColumn16.Name = "gridColumn16"; + this.gridColumn16.Visible = true; + this.gridColumn16.VisibleIndex = 14; + this.gridColumn16.Width = 201; + // + // repositoryItemtxteditorId + // + this.repositoryItemtxteditorId.AutoHeight = false; + this.repositoryItemtxteditorId.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxteditorId.DisplayMember = "Name"; + this.repositoryItemtxteditorId.Name = "repositoryItemtxteditorId"; + this.repositoryItemtxteditorId.ValueMember = "ID"; + // + // gridColumn17 + // + this.gridColumn17.Caption = "修改时间"; + this.gridColumn17.DisplayFormat.FormatString = "G"; + this.gridColumn17.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.gridColumn17.FieldName = "editTime"; + this.gridColumn17.Name = "gridColumn17"; + this.gridColumn17.Visible = true; + this.gridColumn17.VisibleIndex = 15; + this.gridColumn17.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(908, 538); + 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.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(902, 509); + 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(902, 509); + this.panelControl2.TabIndex = 0; + // + // layoutControl1 + // + this.layoutControl1.Controls.Add(this.txtid); + this.layoutControl1.Controls.Add(this.txtsuppliername); + this.layoutControl1.Controls.Add(this.txtmanufacturertype); + this.layoutControl1.Controls.Add(this.txtcontacts); + this.layoutControl1.Controls.Add(this.txtaddress); + this.layoutControl1.Controls.Add(this.txtvatrate); + this.layoutControl1.Controls.Add(this.txttaxpayeridentity); + this.layoutControl1.Controls.Add(this.txtbankaccount); + this.layoutControl1.Controls.Add(this.txtsuppliercode); + this.layoutControl1.Controls.Add(this.txtpayments); + this.layoutControl1.Controls.Add(this.txttotalamountsettled); + this.layoutControl1.Controls.Add(this.txttotaloutstandingamount); + this.layoutControl1.Controls.Add(this.txtremark); + this.layoutControl1.Controls.Add(this.txtcreatorId); + this.layoutControl1.Controls.Add(this.txtcreateTime); + this.layoutControl1.Controls.Add(this.txteditorId); + this.layoutControl1.Controls.Add(this.txteditTime); + 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(898, 505); + this.layoutControl1.TabIndex = 6; + this.layoutControl1.Text = "layoutControl1"; + // + // txtid + // + this.txtid.Location = new System.Drawing.Point(87, 12); + this.txtid.Name = "txtid"; + this.txtid.Size = new System.Drawing.Size(799, 20); + this.txtid.StyleController = this.layoutControl1; + this.txtid.TabIndex = 1; + // + // txtsuppliername + // + this.txtsuppliername.Location = new System.Drawing.Point(87, 36); + this.txtsuppliername.Name = "txtsuppliername"; + this.txtsuppliername.Size = new System.Drawing.Size(360, 20); + this.txtsuppliername.StyleController = this.layoutControl1; + this.txtsuppliername.TabIndex = 2; + // + // txtmanufacturertype + // + this.txtmanufacturertype.EditValue = ""; + this.txtmanufacturertype.Location = new System.Drawing.Point(87, 60); + this.txtmanufacturertype.Name = "txtmanufacturertype"; + this.txtmanufacturertype.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtmanufacturertype.Properties.DisplayMember = "Name"; + this.txtmanufacturertype.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; + this.txtmanufacturertype.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + this.txtmanufacturertype.Properties.ValueMember = "ID"; + this.txtmanufacturertype.Size = new System.Drawing.Size(360, 20); + this.txtmanufacturertype.StyleController = this.layoutControl1; + this.txtmanufacturertype.TabIndex = 3; + // + // txtcontacts + // + this.txtcontacts.EditValue = ""; + this.txtcontacts.Location = new System.Drawing.Point(87, 84); + this.txtcontacts.Name = "txtcontacts"; + this.txtcontacts.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtcontacts.Properties.DisplayMember = "Name"; + this.txtcontacts.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; + this.txtcontacts.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + this.txtcontacts.Properties.ValueMember = "ID"; + this.txtcontacts.Size = new System.Drawing.Size(360, 20); + this.txtcontacts.StyleController = this.layoutControl1; + this.txtcontacts.TabIndex = 4; + // + // txtaddress + // + this.txtaddress.Location = new System.Drawing.Point(526, 60); + this.txtaddress.Name = "txtaddress"; + this.txtaddress.Size = new System.Drawing.Size(360, 20); + this.txtaddress.StyleController = this.layoutControl1; + this.txtaddress.TabIndex = 5; + // + // txtvatrate + // + this.txtvatrate.Location = new System.Drawing.Point(87, 108); + this.txtvatrate.Name = "txtvatrate"; + this.txtvatrate.Size = new System.Drawing.Size(360, 20); + this.txtvatrate.StyleController = this.layoutControl1; + this.txtvatrate.TabIndex = 6; + // + // txttaxpayeridentity + // + this.txttaxpayeridentity.Location = new System.Drawing.Point(526, 84); + this.txttaxpayeridentity.Name = "txttaxpayeridentity"; + this.txttaxpayeridentity.Size = new System.Drawing.Size(360, 20); + this.txttaxpayeridentity.StyleController = this.layoutControl1; + this.txttaxpayeridentity.TabIndex = 7; + // + // txtbankaccount + // + this.txtbankaccount.Location = new System.Drawing.Point(526, 108); + this.txtbankaccount.Name = "txtbankaccount"; + this.txtbankaccount.Size = new System.Drawing.Size(360, 20); + this.txtbankaccount.StyleController = this.layoutControl1; + this.txtbankaccount.TabIndex = 8; + // + // txtsuppliercode + // + this.txtsuppliercode.Location = new System.Drawing.Point(526, 36); + this.txtsuppliercode.Name = "txtsuppliercode"; + this.txtsuppliercode.Size = new System.Drawing.Size(360, 20); + this.txtsuppliercode.StyleController = this.layoutControl1; + this.txtsuppliercode.TabIndex = 9; + // + // txtpayments + // + this.txtpayments.Location = new System.Drawing.Point(87, 156); + this.txtpayments.Name = "txtpayments"; + this.txtpayments.Size = new System.Drawing.Size(799, 20); + this.txtpayments.StyleController = this.layoutControl1; + this.txtpayments.TabIndex = 10; + // + // txttotalamountsettled + // + this.txttotalamountsettled.Location = new System.Drawing.Point(87, 132); + this.txttotalamountsettled.Name = "txttotalamountsettled"; + this.txttotalamountsettled.Size = new System.Drawing.Size(360, 20); + this.txttotalamountsettled.StyleController = this.layoutControl1; + this.txttotalamountsettled.TabIndex = 11; + // + // txttotaloutstandingamount + // + this.txttotaloutstandingamount.Location = new System.Drawing.Point(526, 132); + this.txttotaloutstandingamount.Name = "txttotaloutstandingamount"; + this.txttotaloutstandingamount.Size = new System.Drawing.Size(360, 20); + this.txttotaloutstandingamount.StyleController = this.layoutControl1; + this.txttotaloutstandingamount.TabIndex = 12; + // + // txtremark + // + this.txtremark.Location = new System.Drawing.Point(87, 180); + this.txtremark.Name = "txtremark"; + this.txtremark.Size = new System.Drawing.Size(799, 20); + this.txtremark.StyleController = this.layoutControl1; + this.txtremark.TabIndex = 13; + // + // txtcreatorId + // + this.txtcreatorId.EditValue = ""; + this.txtcreatorId.Location = new System.Drawing.Point(87, 204); + this.txtcreatorId.Name = "txtcreatorId"; + this.txtcreatorId.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtcreatorId.Properties.DisplayMember = "Name"; + this.txtcreatorId.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; + this.txtcreatorId.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + this.txtcreatorId.Properties.ValueMember = "ID"; + this.txtcreatorId.Size = new System.Drawing.Size(360, 20); + this.txtcreatorId.StyleController = this.layoutControl1; + this.txtcreatorId.TabIndex = 14; + // + // txtcreateTime + // + this.txtcreateTime.EditValue = null; + this.txtcreateTime.ImeMode = System.Windows.Forms.ImeMode.Off; + this.txtcreateTime.Location = new System.Drawing.Point(87, 228); + this.txtcreateTime.Name = "txtcreateTime"; + this.txtcreateTime.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtcreateTime.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton()}); + this.txtcreateTime.Properties.DisplayFormat.FormatString = "G"; + this.txtcreateTime.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.txtcreateTime.Size = new System.Drawing.Size(360, 20); + this.txtcreateTime.StyleController = this.layoutControl1; + this.txtcreateTime.TabIndex = 15; + // + // txteditorId + // + this.txteditorId.EditValue = ""; + this.txteditorId.Location = new System.Drawing.Point(526, 204); + this.txteditorId.Name = "txteditorId"; + this.txteditorId.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txteditorId.Properties.DisplayMember = "Name"; + this.txteditorId.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; + this.txteditorId.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + this.txteditorId.Properties.ValueMember = "ID"; + this.txteditorId.Size = new System.Drawing.Size(360, 20); + this.txteditorId.StyleController = this.layoutControl1; + this.txteditorId.TabIndex = 16; + // + // txteditTime + // + this.txteditTime.EditValue = null; + this.txteditTime.ImeMode = System.Windows.Forms.ImeMode.Off; + this.txteditTime.Location = new System.Drawing.Point(526, 228); + this.txteditTime.Name = "txteditTime"; + this.txteditTime.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txteditTime.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton()}); + this.txteditTime.Properties.DisplayFormat.FormatString = "G"; + this.txteditTime.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.txteditTime.Size = new System.Drawing.Size(360, 20); + this.txteditTime.StyleController = this.layoutControl1; + this.txteditTime.TabIndex = 17; + // + // layoutControlGroup1 + // + this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; + this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; + this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { + this.layoutControlItem1, + this.layoutControlItem4, + this.layoutControlItem6, + this.layoutControlItem13, + this.layoutControlItem14, + this.layoutControlItem3, + this.layoutControlItem7, + this.layoutControlItem9, + this.layoutControlItem2, + this.layoutControlItem5, + this.layoutControlItem8, + this.layoutControlItem11, + this.layoutControlItem10, + this.layoutControlItem12, + this.layoutControlItem16, + this.layoutControlItem17, + this.emptySpaceItem1, + this.layoutControlItem15}); + this.layoutControlGroup1.Name = "layoutControlGroup1"; + this.layoutControlGroup1.Size = new System.Drawing.Size(898, 505); + this.layoutControlGroup1.TextVisible = false; + // + // layoutControlItem1 + // + this.layoutControlItem1.Control = this.txtid; + this.layoutControlItem1.CustomizationFormText = "id"; + this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); + this.layoutControlItem1.Name = "layoutControlItem1"; + this.layoutControlItem1.Size = new System.Drawing.Size(878, 24); + this.layoutControlItem1.Text = "id"; + this.layoutControlItem1.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem4 + // + this.layoutControlItem4.Control = this.txtcontacts; + this.layoutControlItem4.CustomizationFormText = "联系人"; + this.layoutControlItem4.Location = new System.Drawing.Point(0, 72); + this.layoutControlItem4.Name = "layoutControlItem4"; + this.layoutControlItem4.Size = new System.Drawing.Size(439, 24); + this.layoutControlItem4.Text = "联系人"; + this.layoutControlItem4.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem6 + // + this.layoutControlItem6.Control = this.txtvatrate; + this.layoutControlItem6.CustomizationFormText = "增值税税率"; + this.layoutControlItem6.Location = new System.Drawing.Point(0, 96); + this.layoutControlItem6.Name = "layoutControlItem6"; + this.layoutControlItem6.Size = new System.Drawing.Size(439, 24); + this.layoutControlItem6.Text = "增值税税率"; + this.layoutControlItem6.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem13 + // + this.layoutControlItem13.Control = this.txtremark; + this.layoutControlItem13.CustomizationFormText = "备注"; + this.layoutControlItem13.Location = new System.Drawing.Point(0, 168); + this.layoutControlItem13.Name = "layoutControlItem13"; + this.layoutControlItem13.Size = new System.Drawing.Size(878, 24); + this.layoutControlItem13.Text = "备注"; + this.layoutControlItem13.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem14 + // + this.layoutControlItem14.Control = this.txtcreatorId; + this.layoutControlItem14.CustomizationFormText = "创建人"; + this.layoutControlItem14.Location = new System.Drawing.Point(0, 192); + this.layoutControlItem14.Name = "layoutControlItem14"; + this.layoutControlItem14.Size = new System.Drawing.Size(439, 24); + this.layoutControlItem14.Text = "创建人"; + this.layoutControlItem14.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem15 + // + this.layoutControlItem15.Control = this.txtcreateTime; + this.layoutControlItem15.CustomizationFormText = "创建时间"; + this.layoutControlItem15.Location = new System.Drawing.Point(0, 216); + this.layoutControlItem15.Name = "layoutControlItem15"; + this.layoutControlItem15.Size = new System.Drawing.Size(439, 24); + this.layoutControlItem15.Text = "创建时间"; + this.layoutControlItem15.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem3 + // + this.layoutControlItem3.Control = this.txtmanufacturertype; + this.layoutControlItem3.CustomizationFormText = "厂商类型"; + this.layoutControlItem3.Location = new System.Drawing.Point(0, 48); + this.layoutControlItem3.Name = "layoutControlItem3"; + this.layoutControlItem3.Size = new System.Drawing.Size(439, 24); + this.layoutControlItem3.Text = "厂商类型"; + this.layoutControlItem3.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem7 + // + this.layoutControlItem7.Control = this.txttaxpayeridentity; + this.layoutControlItem7.CustomizationFormText = "纳税人识别号"; + this.layoutControlItem7.Location = new System.Drawing.Point(439, 72); + this.layoutControlItem7.Name = "layoutControlItem7"; + this.layoutControlItem7.Size = new System.Drawing.Size(439, 24); + this.layoutControlItem7.Text = "纳税人识别号"; + this.layoutControlItem7.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem9 + // + this.layoutControlItem9.Control = this.txtsuppliercode; + this.layoutControlItem9.CustomizationFormText = "供应商编号"; + this.layoutControlItem9.Location = new System.Drawing.Point(439, 24); + this.layoutControlItem9.Name = "layoutControlItem9"; + this.layoutControlItem9.Size = new System.Drawing.Size(439, 24); + this.layoutControlItem9.Text = "供应商编号"; + this.layoutControlItem9.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem2 + // + this.layoutControlItem2.Control = this.txtsuppliername; + this.layoutControlItem2.CustomizationFormText = "供应商名称"; + this.layoutControlItem2.Location = new System.Drawing.Point(0, 24); + this.layoutControlItem2.Name = "layoutControlItem2"; + this.layoutControlItem2.Size = new System.Drawing.Size(439, 24); + this.layoutControlItem2.Text = "供应商名称"; + this.layoutControlItem2.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem5 + // + this.layoutControlItem5.Control = this.txtaddress; + this.layoutControlItem5.CustomizationFormText = "供应商地址"; + this.layoutControlItem5.Location = new System.Drawing.Point(439, 48); + this.layoutControlItem5.Name = "layoutControlItem5"; + this.layoutControlItem5.Size = new System.Drawing.Size(439, 24); + this.layoutControlItem5.Text = "供应商地址"; + this.layoutControlItem5.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem8 + // + this.layoutControlItem8.Control = this.txtbankaccount; + this.layoutControlItem8.CustomizationFormText = "对方收款账号"; + this.layoutControlItem8.Location = new System.Drawing.Point(439, 96); + this.layoutControlItem8.Name = "layoutControlItem8"; + this.layoutControlItem8.Size = new System.Drawing.Size(439, 24); + this.layoutControlItem8.Text = "对方收款账号"; + this.layoutControlItem8.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem11 + // + this.layoutControlItem11.Control = this.txttotalamountsettled; + this.layoutControlItem11.CustomizationFormText = "已结款总额"; + this.layoutControlItem11.Location = new System.Drawing.Point(0, 120); + this.layoutControlItem11.Name = "layoutControlItem11"; + this.layoutControlItem11.Size = new System.Drawing.Size(439, 24); + this.layoutControlItem11.Text = "已结款总额"; + this.layoutControlItem11.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem10 + // + this.layoutControlItem10.Control = this.txtpayments; + this.layoutControlItem10.CustomizationFormText = "应付款总额"; + this.layoutControlItem10.Location = new System.Drawing.Point(0, 144); + this.layoutControlItem10.Name = "layoutControlItem10"; + this.layoutControlItem10.Size = new System.Drawing.Size(878, 24); + this.layoutControlItem10.Text = "应付款总额"; + this.layoutControlItem10.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem12 + // + this.layoutControlItem12.Control = this.txttotaloutstandingamount; + this.layoutControlItem12.CustomizationFormText = "未结款总额"; + this.layoutControlItem12.Location = new System.Drawing.Point(439, 120); + this.layoutControlItem12.Name = "layoutControlItem12"; + this.layoutControlItem12.Size = new System.Drawing.Size(439, 24); + this.layoutControlItem12.Text = "未结款总额"; + this.layoutControlItem12.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem16 + // + this.layoutControlItem16.Control = this.txteditorId; + this.layoutControlItem16.CustomizationFormText = "修改人"; + this.layoutControlItem16.Location = new System.Drawing.Point(439, 192); + this.layoutControlItem16.Name = "layoutControlItem16"; + this.layoutControlItem16.Size = new System.Drawing.Size(439, 24); + this.layoutControlItem16.Text = "修改人"; + this.layoutControlItem16.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem17 + // + this.layoutControlItem17.Control = this.txteditTime; + this.layoutControlItem17.CustomizationFormText = "修改时间"; + this.layoutControlItem17.Location = new System.Drawing.Point(439, 216); + this.layoutControlItem17.Name = "layoutControlItem17"; + this.layoutControlItem17.Size = new System.Drawing.Size(439, 24); + this.layoutControlItem17.Text = "修改时间"; + this.layoutControlItem17.TextSize = new System.Drawing.Size(72, 14); + // + // emptySpaceItem1 + // + this.emptySpaceItem1.AllowHotTrack = false; + this.emptySpaceItem1.Location = new System.Drawing.Point(0, 240); + this.emptySpaceItem1.Name = "emptySpaceItem1"; + this.emptySpaceItem1.Size = new System.Drawing.Size(878, 245); + this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); + // + // Frmsupplier + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(908, 572); + this.Controls.Add(this.xtraTabControl1); + this.Name = "Frmsupplier"; + this.Text = "供应商信息"; + this.Load += new System.EventHandler(this.Frmsupplier_Load); + this.Controls.SetChildIndex(this.xtraTabControl1, 0); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtmanufacturertype)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcontacts)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcreatorId)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxteditorId)).EndInit(); + ((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.txtid.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsuppliername.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtmanufacturertype.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcontacts.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtaddress.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtvatrate.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttaxpayeridentity.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbankaccount.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsuppliercode.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtpayments.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttotalamountsettled.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttotaloutstandingamount.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreatorId.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreateTime.Properties.CalendarTimeProperties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreateTime.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txteditorId.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txteditTime.Properties.CalendarTimeProperties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txteditTime.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).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.XtraEditors.TextEdit txtid; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsuppliername; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtmanufacturertype; + + private DevExpress.XtraEditors.LookUpEdit txtmanufacturertype; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtcontacts; + + private DevExpress.XtraEditors.LookUpEdit txtcontacts; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtaddress; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtvatrate; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txttaxpayeridentity; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbankaccount; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsuppliercode; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtpayments; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txttotalamountsettled; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txttotaloutstandingamount; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtremark; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtcreatorId; + + private DevExpress.XtraEditors.LookUpEdit txtcreatorId; + /////////////////////////////// + private DevExpress.XtraEditors.DateEdit txtcreateTime; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxteditorId; + + private DevExpress.XtraEditors.LookUpEdit txteditorId; + /////////////////////////////// + private DevExpress.XtraEditors.DateEdit txteditTime; + + 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 EmptySpaceItem emptySpaceItem1; + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmsupplier.resx b/WinformGeneralDeveloperFrame/Form/Frmsupplier.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmsupplier.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/Form/FrmsysDictType.cs b/WinformGeneralDeveloperFrame/Form/FrmsysDictType.cs index 83645a8..1acdfd4 100644 --- a/WinformGeneralDeveloperFrame/Form/FrmsysDictType.cs +++ b/WinformGeneralDeveloperFrame/Form/FrmsysDictType.cs @@ -56,7 +56,7 @@ namespace MES.Form { using (var con=new MESDB())/// { - grdList.DataSource=con.sysDictTypeInfo.ToList(); + grdList.DataSource=con.sysDictTypeInfo.ToList().OrderBy(p=>p.pid); } Init(); } diff --git a/WinformGeneralDeveloperFrame/Form/FrmsysFunction.cs b/WinformGeneralDeveloperFrame/Form/FrmsysFunction.cs index 75735c5..fdf83f4 100644 --- a/WinformGeneralDeveloperFrame/Form/FrmsysFunction.cs +++ b/WinformGeneralDeveloperFrame/Form/FrmsysFunction.cs @@ -37,28 +37,28 @@ namespace MES.Form { txtpid.Properties.DataSource = GetDataTableUtils.SqlTable("角色功能"); repositoryItemTreeListtxtpid.DataSource= GetDataTableUtils.SqlTable("角色功能"); - txtToolBtnList.Properties.DataSource = GetDataTableUtils.SqlTable("功能按钮"); + // txtToolBtnList.Properties.DataSource = GetDataTableUtils.SqlTable("功能按钮"); } - public override void gridControlMouseDoubleClickFunction(object sender, EventArgs e) - { - sysFunctionInfo user = grdListView.GetFocusedRow() as sysFunctionInfo; - if (user != null) - { - using (var db=new MESDB()) - { - List list = db.sysFunctionInfo.Where(p => p.pid == user.id).Select(p=>p.toolBtnID).ToList(); - string value = ""; - foreach (int item in list) - { - value += item + ","; - } - txtToolBtnList.EditValue = value; - this.txtToolBtnList.RefreshEditValue(); - } - } - } + //public override void gridControlMouseDoubleClickFunction(object sender, EventArgs e) + //{ + // sysFunctionInfo user = grdListView.GetFocusedRow() as sysFunctionInfo; + // if (user != null) + // { + // using (var db=new MESDB()) + // { + // List list = db.sysFunctionInfo.Where(p => p.pid == user.id).Select(p=>p.toolBtnID).ToList(); + // string value = ""; + // foreach (int item in list) + // { + // value += item + ","; + // } + // txtToolBtnList.EditValue = value; + // this.txtToolBtnList.RefreshEditValue(); + // } + // } + //} /// /// 搜索字段 /// @@ -83,15 +83,15 @@ namespace MES.Form { db.sysFunctionInfo.AddOrUpdate(info); db.SaveChanges(); - db.Database.ExecuteSqlCommand($"delete from sysFunction where pid={info.id}"); - List list = db.sysToolButtonInfo.ToList(); - string sql = ""; - foreach (var item in txtToolBtnList.EditValue.ToString().Split(',')) - { - sysToolButtonInfo info1 = list.Where(p => p.id == item.ToInt16()).First(); - sql += $"INSERT INTO sysFunction(pid,name,functionCode,toolBtnID) VALUES ({info.id},'{info1.btnName}','{info.functionCode+"-"+info1.btnCode}',{info1.id});"; - } - db.Database.ExecuteSqlCommand(sql); + //db.Database.ExecuteSqlCommand($"delete from sysFunction where pid={info.id}"); + //List list = db.sysToolButtonInfo.ToList(); + //string sql = ""; + //foreach (var item in txtToolBtnList.EditValue.ToString().Split(',')) + //{ + // sysToolButtonInfo info1 = list.Where(p => p.id == item.ToInt16()).First(); + // sql += $"INSERT INTO sysFunction(pid,name,functionCode,toolBtnID) VALUES ({info.id},'{info1.btnName}','{info.functionCode+"-"+info1.btnCode}',{info1.id});"; + //} + //db.Database.ExecuteSqlCommand(sql); } } catch (Exception ex) diff --git a/WinformGeneralDeveloperFrame/Form/FrmsysFunction.designer.cs b/WinformGeneralDeveloperFrame/Form/FrmsysFunction.designer.cs index eedfd08..950c062 100644 --- a/WinformGeneralDeveloperFrame/Form/FrmsysFunction.designer.cs +++ b/WinformGeneralDeveloperFrame/Form/FrmsysFunction.designer.cs @@ -46,7 +46,6 @@ namespace MES.Form this.tabDataDetail = new DevExpress.XtraTab.XtraTabPage(); this.panelControl2 = new DevExpress.XtraEditors.PanelControl(); this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); - this.txtToolBtnList = new DevExpress.XtraEditors.CheckedComboBoxEdit(); this.txtid = new DevExpress.XtraEditors.TextEdit(); this.txtpid = new DevExpress.XtraEditors.TreeListLookUpEdit(); this.txtpidTreeList = new DevExpress.XtraTreeList.TreeList(); @@ -57,10 +56,7 @@ namespace MES.Form this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); - this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); - this.txttoolBtnID = new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtpid)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtpidTreeList)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); @@ -73,7 +69,6 @@ namespace MES.Form this.panelControl2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.txtToolBtnList.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtpid.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtpidTreeList)).BeginInit(); @@ -84,10 +79,7 @@ namespace MES.Form ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txttoolBtnID.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); this.SuspendLayout(); // // gridColumn1 @@ -206,8 +198,6 @@ namespace MES.Form // // layoutControl1 // - this.layoutControl1.Controls.Add(this.txttoolBtnID); - this.layoutControl1.Controls.Add(this.txtToolBtnList); this.layoutControl1.Controls.Add(this.txtid); this.layoutControl1.Controls.Add(this.txtpid); this.layoutControl1.Controls.Add(this.txtname); @@ -221,37 +211,25 @@ namespace MES.Form this.layoutControl1.TabIndex = 6; this.layoutControl1.Text = "layoutControl1"; // - // txtToolBtnList - // - this.txtToolBtnList.Location = new System.Drawing.Point(202, 108); - this.txtToolBtnList.Name = "txtToolBtnList"; - this.txtToolBtnList.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { - new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); - this.txtToolBtnList.Properties.DisplayMember = "Name"; - this.txtToolBtnList.Properties.ValueMember = "ID"; - this.txtToolBtnList.Size = new System.Drawing.Size(1076, 20); - this.txtToolBtnList.StyleController = this.layoutControl1; - this.txtToolBtnList.TabIndex = 14; - // // txtid // - this.txtid.Location = new System.Drawing.Point(202, 12); + this.txtid.Location = new System.Drawing.Point(63, 12); this.txtid.Name = "txtid"; - this.txtid.Size = new System.Drawing.Size(1076, 20); + this.txtid.Size = new System.Drawing.Size(1215, 20); this.txtid.StyleController = this.layoutControl1; this.txtid.TabIndex = 1; // // txtpid // this.txtpid.EditValue = ""; - this.txtpid.Location = new System.Drawing.Point(202, 36); + this.txtpid.Location = new System.Drawing.Point(63, 36); this.txtpid.Name = "txtpid"; this.txtpid.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.txtpid.Properties.DisplayMember = "Name"; this.txtpid.Properties.TreeList = this.txtpidTreeList; this.txtpid.Properties.ValueMember = "ID"; - this.txtpid.Size = new System.Drawing.Size(1076, 20); + this.txtpid.Size = new System.Drawing.Size(1215, 20); this.txtpid.StyleController = this.layoutControl1; this.txtpid.TabIndex = 2; // @@ -266,17 +244,17 @@ namespace MES.Form // // txtname // - this.txtname.Location = new System.Drawing.Point(202, 60); + this.txtname.Location = new System.Drawing.Point(63, 60); this.txtname.Name = "txtname"; - this.txtname.Size = new System.Drawing.Size(1076, 20); + this.txtname.Size = new System.Drawing.Size(1215, 20); this.txtname.StyleController = this.layoutControl1; this.txtname.TabIndex = 3; // // txtfunctionCode // - this.txtfunctionCode.Location = new System.Drawing.Point(202, 84); + this.txtfunctionCode.Location = new System.Drawing.Point(63, 84); this.txtfunctionCode.Name = "txtfunctionCode"; - this.txtfunctionCode.Size = new System.Drawing.Size(441, 20); + this.txtfunctionCode.Size = new System.Drawing.Size(1215, 20); this.txtfunctionCode.StyleController = this.layoutControl1; this.txtfunctionCode.TabIndex = 4; // @@ -289,9 +267,7 @@ namespace MES.Form this.layoutControlItem2, this.layoutControlItem3, this.layoutControlItem4, - this.layoutControlItem6, - this.emptySpaceItem2, - this.layoutControlItem5}); + this.emptySpaceItem2}); this.layoutControlGroup1.Name = "Root"; this.layoutControlGroup1.Size = new System.Drawing.Size(1290, 733); this.layoutControlGroup1.TextVisible = false; @@ -304,7 +280,7 @@ namespace MES.Form this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(1270, 24); this.layoutControlItem1.Text = "ID"; - this.layoutControlItem1.TextSize = new System.Drawing.Size(187, 14); + this.layoutControlItem1.TextSize = new System.Drawing.Size(48, 14); // // layoutControlItem2 // @@ -314,7 +290,7 @@ namespace MES.Form this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(1270, 24); this.layoutControlItem2.Text = "父ID"; - this.layoutControlItem2.TextSize = new System.Drawing.Size(187, 14); + this.layoutControlItem2.TextSize = new System.Drawing.Size(48, 14); // // layoutControlItem3 // @@ -324,7 +300,7 @@ namespace MES.Form this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new System.Drawing.Size(1270, 24); this.layoutControlItem3.Text = "名称"; - this.layoutControlItem3.TextSize = new System.Drawing.Size(187, 14); + this.layoutControlItem3.TextSize = new System.Drawing.Size(48, 14); // // layoutControlItem4 // @@ -332,44 +308,18 @@ namespace MES.Form this.layoutControlItem4.CustomizationFormText = "权限编码"; this.layoutControlItem4.Location = new System.Drawing.Point(0, 72); this.layoutControlItem4.Name = "layoutControlItem4"; - this.layoutControlItem4.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem4.Size = new System.Drawing.Size(1270, 24); this.layoutControlItem4.Text = "权限编码"; - this.layoutControlItem4.TextSize = new System.Drawing.Size(187, 14); - // - // layoutControlItem6 - // - this.layoutControlItem6.Control = this.txtToolBtnList; - this.layoutControlItem6.Location = new System.Drawing.Point(0, 96); - this.layoutControlItem6.Name = "layoutControlItem6"; - this.layoutControlItem6.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem6.Text = "功能按钮"; - this.layoutControlItem6.TextSize = new System.Drawing.Size(187, 14); + this.layoutControlItem4.TextSize = new System.Drawing.Size(48, 14); // // emptySpaceItem2 // this.emptySpaceItem2.AllowHotTrack = false; - this.emptySpaceItem2.Location = new System.Drawing.Point(0, 120); + this.emptySpaceItem2.Location = new System.Drawing.Point(0, 96); this.emptySpaceItem2.Name = "emptySpaceItem2"; - this.emptySpaceItem2.Size = new System.Drawing.Size(1270, 593); + this.emptySpaceItem2.Size = new System.Drawing.Size(1270, 617); this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0); // - // txttoolBtnID - // - this.txttoolBtnID.Location = new System.Drawing.Point(837, 84); - this.txttoolBtnID.Name = "txttoolBtnID"; - this.txttoolBtnID.Size = new System.Drawing.Size(441, 20); - this.txttoolBtnID.StyleController = this.layoutControl1; - this.txttoolBtnID.TabIndex = 15; - // - // layoutControlItem5 - // - this.layoutControlItem5.Control = this.txttoolBtnID; - this.layoutControlItem5.Location = new System.Drawing.Point(635, 72); - this.layoutControlItem5.Name = "layoutControlItem5"; - this.layoutControlItem5.Size = new System.Drawing.Size(635, 24); - this.layoutControlItem5.Text = "功能按钮id(该项为功能按钮时填写)"; - this.layoutControlItem5.TextSize = new System.Drawing.Size(187, 14); - // // FrmsysFunction // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); @@ -392,7 +342,6 @@ namespace MES.Form this.panelControl2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.txtToolBtnList.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtpid.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtpidTreeList)).EndInit(); @@ -403,10 +352,7 @@ namespace MES.Form ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txttoolBtnID.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); this.ResumeLayout(false); } @@ -443,10 +389,6 @@ namespace MES.Form private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; - private CheckedComboBoxEdit txtToolBtnList; - private LayoutControlItem layoutControlItem6; private EmptySpaceItem emptySpaceItem2; - private TextEdit txttoolBtnID; - private LayoutControlItem layoutControlItem5; } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Test.Designer.cs b/WinformGeneralDeveloperFrame/Test.Designer.cs index ca1dcce..1fe1604 100644 --- a/WinformGeneralDeveloperFrame/Test.Designer.cs +++ b/WinformGeneralDeveloperFrame/Test.Designer.cs @@ -1,85 +1,85 @@  -namespace WinformGeneralDeveloperFrame -{ - partial class Test - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; +//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); - } +// /// +// /// 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 +// #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); +// /// +// /// 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 +// #endregion - private DevExpress.XtraEditors.MemoEdit memoEdit1; - private DevExpress.XtraEditors.SimpleButton simpleButton1; - private DevExpress.XtraEditors.SimpleButton simpleButton2; - } -} \ No newline at end of file +// 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 index 1c23396..d88aeac 100644 --- a/WinformGeneralDeveloperFrame/Test.cs +++ b/WinformGeneralDeveloperFrame/Test.cs @@ -1,212 +1,212 @@ -using DevExpress.XtraEditors; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Data.Entity; -using System.Data.Entity.Migrations; -using System.Drawing; -using System.IO; -using System.Linq; -using System.Net; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; -using DevExpress.Data.Helpers; -using MES; -using MES.Entity; -using WinformGeneralDeveloperFrame.Commons; +//using DevExpress.XtraEditors; +//using System; +//using System.Collections.Generic; +//using System.ComponentModel; +//using System.Data; +//using System.Data.Entity; +//using System.Data.Entity.Migrations; +//using System.Drawing; +//using System.IO; +//using System.Linq; +//using System.Net; +//using System.Text; +//using System.Threading; +//using System.Threading.Tasks; +//using System.Windows.Forms; +//using DevExpress.Data.Helpers; +//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(); - } +//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 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() - { - DateTime startTime1=DateTime.Parse("09:30:00"); - DateTime endTime1 = DateTime.Parse("11:30:00"); +// private void GetData() +// { +// DateTime startTime1=DateTime.Parse("09:30:00"); +// DateTime endTime1 = DateTime.Parse("11:30:00"); - DateTime startTime2 = DateTime.Parse("13:00:00"); - DateTime endTime2 = DateTime.Parse("15:00:00"); +// DateTime startTime2 = DateTime.Parse("13:00:00"); +// DateTime endTime2 = DateTime.Parse("15:00:00"); - Task.Factory.StartNew(() => - { - while (true) - { - if (flag) - if (DateTime.Now >= startTime1 && DateTime.Now <= endTime1 || DateTime.Now >= startTime2 && DateTime.Now <= endTime2) - { - { - List listtask = new List(); - int num1 = 0; - int num2 = 400; - string code = ""; - Dictionary stockinfos = null; - List codes = new List(); - using (var db = new MESDB()) - { - num1 = db.stockInfo.GroupBy(P => P.code).ToList().Count; - foreach (var item in db.stockInfo.GroupBy(P => P.code)) - { - codes.Add(item.Key); - } - } - for (int m = 0; m <= num1 / num2; m++) - { - int n = m; - var t = Task.Factory.StartNew(() => - { - try - { - string url = "http://hq.sinajs.cn/list={0}"; - var list = codes.Skip(num2 * n).Take(num2); - //string code = ""; - foreach (var str in list) - { - code += str + ","; - } - url = string.Format(url, code); - HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); - request.Method = "GET"; - request.ContentType = "text/html;charset=UTF-8"; - request.UserAgent = null; - request.Timeout = 60000; - HttpWebResponse response = (HttpWebResponse)request.GetResponse(); - Stream myResponseStream = response.GetResponseStream(); - StreamReader myStreamReader = new StreamReader(myResponseStream, System.Text.Encoding.Default); - string retString = myStreamReader.ReadToEnd(); - string[] ResData = retString.Split(';'); - List list1 = new List(); - foreach (var item in ResData) - { - var data = item.Split('='); - if (data.Length == 2) - { - var dd = data[1].Split(','); - if (dd.Length >= 33) - { - stockInfo info = new stockInfo() - { - code = data[0].Split('_')[2], - name = dd[0].Replace("\"", ""), - startPrice = decimal.Parse(dd[1]), - olePrice = decimal.Parse(dd[2]), - nowPrice = decimal.Parse(dd[3]), - maxPrice = decimal.Parse(dd[4]), - minPrice = decimal.Parse(dd[5]), - bidderPrice = decimal.Parse(dd[6]), - auctionPrice = decimal.Parse(dd[7]), - turnover = int.Parse(dd[8]), - turnoverPrice = decimal.Parse(dd[9]), - buyOneNum = int.Parse(dd[10]), - buyOnePrice = decimal.Parse(dd[11]), - buyTwoNum = int.Parse(dd[12]), - buyTwoPrice = decimal.Parse(dd[13]), - buyThreeNum = int.Parse(dd[14]), - buyThreePrice = decimal.Parse(dd[15]), - buyFourNum = int.Parse(dd[16]), - buyFourPrice = decimal.Parse(dd[17]), - buyFiveNum = int.Parse(dd[18]), - buyFivePrice = decimal.Parse(dd[19]), - sellOneNum = int.Parse(dd[20]), - sellOnePrice = decimal.Parse(dd[21]), - sellTwoNum = int.Parse(dd[22]), - sellTwoPrice = decimal.Parse(dd[23]), - sellThreeNum = int.Parse(dd[24]), - sellThreePrice = decimal.Parse(dd[25]), - sellFourNum = int.Parse(dd[26]), - sellFourPrice = decimal.Parse(dd[27]), - sellFiveNum = int.Parse(dd[28]), - sellFivePrice = decimal.Parse(dd[29]), - timeStr = DateTime.Parse(dd[30] + " " + dd[31]) - }; - list1.Add(info); - } - } - } - using (var db = new MESDB()) - { - db.stockInfo.AddRange(list1); - db.SaveChanges(); - } - } - 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); - } - } - else - { - var action1 = new Action(() => - { - Show(DateTime.Now + "股票已休市" + "\r\n"); - }); - this.Invoke(action1); - } +// Task.Factory.StartNew(() => +// { +// while (true) +// { +// if (flag) +// if (DateTime.Now >= startTime1 && DateTime.Now <= endTime1 || DateTime.Now >= startTime2 && DateTime.Now <= endTime2) +// { +// { +// List listtask = new List(); +// int num1 = 0; +// int num2 = 400; +// string code = ""; +// Dictionary stockinfos = null; +// List codes = new List(); +// using (var db = new MESDB()) +// { +// num1 = db.stockInfo.GroupBy(P => P.code).ToList().Count; +// foreach (var item in db.stockInfo.GroupBy(P => P.code)) +// { +// codes.Add(item.Key); +// } +// } +// for (int m = 0; m <= num1 / num2; m++) +// { +// int n = m; +// var t = Task.Factory.StartNew(() => +// { +// try +// { +// string url = "http://hq.sinajs.cn/list={0}"; +// var list = codes.Skip(num2 * n).Take(num2); +// //string code = ""; +// foreach (var str in list) +// { +// code += str + ","; +// } +// url = string.Format(url, code); +// HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); +// request.Method = "GET"; +// request.ContentType = "text/html;charset=UTF-8"; +// request.UserAgent = null; +// request.Timeout = 60000; +// HttpWebResponse response = (HttpWebResponse)request.GetResponse(); +// Stream myResponseStream = response.GetResponseStream(); +// StreamReader myStreamReader = new StreamReader(myResponseStream, System.Text.Encoding.Default); +// string retString = myStreamReader.ReadToEnd(); +// string[] ResData = retString.Split(';'); +// List list1 = new List(); +// foreach (var item in ResData) +// { +// var data = item.Split('='); +// if (data.Length == 2) +// { +// var dd = data[1].Split(','); +// if (dd.Length >= 33) +// { +// stockInfo info = new stockInfo() +// { +// code = data[0].Split('_')[2], +// name = dd[0].Replace("\"", ""), +// startPrice = decimal.Parse(dd[1]), +// olePrice = decimal.Parse(dd[2]), +// nowPrice = decimal.Parse(dd[3]), +// maxPrice = decimal.Parse(dd[4]), +// minPrice = decimal.Parse(dd[5]), +// bidderPrice = decimal.Parse(dd[6]), +// auctionPrice = decimal.Parse(dd[7]), +// turnover = int.Parse(dd[8]), +// turnoverPrice = decimal.Parse(dd[9]), +// buyOneNum = int.Parse(dd[10]), +// buyOnePrice = decimal.Parse(dd[11]), +// buyTwoNum = int.Parse(dd[12]), +// buyTwoPrice = decimal.Parse(dd[13]), +// buyThreeNum = int.Parse(dd[14]), +// buyThreePrice = decimal.Parse(dd[15]), +// buyFourNum = int.Parse(dd[16]), +// buyFourPrice = decimal.Parse(dd[17]), +// buyFiveNum = int.Parse(dd[18]), +// buyFivePrice = decimal.Parse(dd[19]), +// sellOneNum = int.Parse(dd[20]), +// sellOnePrice = decimal.Parse(dd[21]), +// sellTwoNum = int.Parse(dd[22]), +// sellTwoPrice = decimal.Parse(dd[23]), +// sellThreeNum = int.Parse(dd[24]), +// sellThreePrice = decimal.Parse(dd[25]), +// sellFourNum = int.Parse(dd[26]), +// sellFourPrice = decimal.Parse(dd[27]), +// sellFiveNum = int.Parse(dd[28]), +// sellFivePrice = decimal.Parse(dd[29]), +// timeStr = DateTime.Parse(dd[30] + " " + dd[31]) +// }; +// list1.Add(info); +// } +// } +// } +// using (var db = new MESDB()) +// { +// db.stockInfo.AddRange(list1); +// db.SaveChanges(); +// } +// } +// 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); +// } +// } +// else +// { +// var action1 = new Action(() => +// { +// Show(DateTime.Now + "股票已休市" + "\r\n"); +// }); +// this.Invoke(action1); +// } - Thread.Sleep(30000); - } - }); - } +// Thread.Sleep(30000); +// } +// }); +// } - 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 +// 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/WinformGeneralDeveloperFrame.csproj b/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj index f3ec351..ddcd23c 100644 --- a/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj +++ b/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj @@ -137,8 +137,12 @@ + + + + @@ -147,6 +151,24 @@ + + Form + + + Frmcustomer.cs + + + Form + + + Frmmaterial.cs + + + Form + + + Frmproduct.cs + Form @@ -159,6 +181,12 @@ FrmStockShow.cs + + Form + + + Frmsupplier.cs + Form @@ -283,9 +311,7 @@ - - Form - + Test.cs @@ -305,12 +331,24 @@ BaseForm.cs + + Frmcustomer.cs + + + Frmmaterial.cs + + + Frmproduct.cs + Frmstock.cs FrmStockShow.cs + + Frmsupplier.cs + FrmsysDept.cs