diff --git a/.vs/WinformGeneralDeveloperFrame/v16/.suo b/.vs/WinformGeneralDeveloperFrame/v16/.suo index 0f53360..3370350 100644 Binary files a/.vs/WinformGeneralDeveloperFrame/v16/.suo and b/.vs/WinformGeneralDeveloperFrame/v16/.suo differ diff --git a/WinformGeneralDeveloperFrame.Commons/ExtensionMethod.cs b/WinformGeneralDeveloperFrame.Commons/ExtensionMethod.cs index 4075006..95be363 100644 --- a/WinformGeneralDeveloperFrame.Commons/ExtensionMethod.cs +++ b/WinformGeneralDeveloperFrame.Commons/ExtensionMethod.cs @@ -327,6 +327,38 @@ namespace WinformGeneralDeveloperFrame.Commons } return dt; } + public static DataTable ToDataTable2(this IEnumerable varlist) + { + DataTable dtReturn = new DataTable(); + // column names + PropertyInfo[] oProps = null; + // Could add a check to verify that there is an element 0 + foreach (T rec in varlist) + { + if (oProps == null) + { + oProps = ((Type)rec.GetType()).GetProperties(); + + foreach (PropertyInfo pi in oProps) + { + Type colType = pi.PropertyType; if ((colType.IsGenericType) && (colType.GetGenericTypeDefinition() == typeof(Nullable<>))) + { + colType = colType.GetGenericArguments()[0]; + } + dtReturn.Columns.Add(new DataColumn(pi.Name, colType)); + } + } + + DataRow dr = dtReturn.NewRow(); foreach (PropertyInfo pi in oProps) + { + dr[pi.Name] = pi.GetValue(rec, null) == null ? DBNull.Value : pi.GetValue(rec, null); + } + dtReturn.Rows.Add(dr); + } + return (dtReturn); + } + public delegate object[] CreateRowDelegate(T t); + /// /// 获取datatable数据 /// diff --git a/WinformGeneralDeveloperFrame/DB/MESDB.cs b/WinformGeneralDeveloperFrame/DB/MESDB.cs index 8abcf0b..a7b0b9b 100644 --- a/WinformGeneralDeveloperFrame/DB/MESDB.cs +++ b/WinformGeneralDeveloperFrame/DB/MESDB.cs @@ -37,6 +37,11 @@ namespace MES public virtual DbSet quotationdetailInfo { get; set; } + public virtual DbSet saleInfo { get; set; } + + + public virtual DbSet saledetailInfo { get; set; } + } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/customerInfo.cs b/WinformGeneralDeveloperFrame/Entity/customerInfo.cs index e105b1e..f8e6030 100644 --- a/WinformGeneralDeveloperFrame/Entity/customerInfo.cs +++ b/WinformGeneralDeveloperFrame/Entity/customerInfo.cs @@ -14,8 +14,8 @@ namespace MES.Entity ///id [ModelBindControl("txtid")] public int id{set;get;} - ///客户名称 - [ModelBindControl("txtcustomername")] + ///客户名称phonenumber + [ModelBindControl("txtcustomername")] public string customername{set;get;} ///客户类别 [ModelBindControl("txtcustomertype")] @@ -25,9 +25,13 @@ namespace MES.Entity public int contactuser{set;get;} ///客户地址 [ModelBindControl("txtaddress")] + public string address{set;get;} - ///期初应收款 - [ModelBindControl("txtstartreceipt")] + ///电话phonenumber + [ModelBindControl("txtphonenumber")] + public string phonenumber { set; get; } + ///期初应收款 + [ModelBindControl("txtstartreceipt")] public decimal startreceipt{set;get;} ///客户编号 [ModelBindControl("txtcustomercode")] diff --git a/WinformGeneralDeveloperFrame/Entity/quotationInfo.cs b/WinformGeneralDeveloperFrame/Entity/quotationInfo.cs index f8e754d..04178e0 100644 --- a/WinformGeneralDeveloperFrame/Entity/quotationInfo.cs +++ b/WinformGeneralDeveloperFrame/Entity/quotationInfo.cs @@ -19,7 +19,7 @@ namespace MES.Entity public int customerid{set;get;} ///报价日期 [ModelBindControl("txtquotationdate")] - public DateTime? quotationdate{set;get;}=DateTime.Now; + public DateTime quotationdate{set;get;}=DateTime.Now; ///客户编码 [ModelBindControl("txtcustomercode")] public string customercode{set;get;} diff --git a/WinformGeneralDeveloperFrame/Entity/quotationdetailInfo.cs b/WinformGeneralDeveloperFrame/Entity/quotationdetailInfo.cs index a8326f1..df8ab79 100644 --- a/WinformGeneralDeveloperFrame/Entity/quotationdetailInfo.cs +++ b/WinformGeneralDeveloperFrame/Entity/quotationdetailInfo.cs @@ -16,8 +16,11 @@ namespace MES.Entity public int id{set;get;} ///产品名称 [ModelBindControl("txtproductid")] + public int productid{set;get;} - ///规格型号 + + public string productname { set; get; } + ///规格型号 [ModelBindControl("txtspec")] public string spec{set;get;} ///报价数量 diff --git a/WinformGeneralDeveloperFrame/Entity/saleInfo.cs b/WinformGeneralDeveloperFrame/Entity/saleInfo.cs new file mode 100644 index 0000000..d9a0587 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Entity/saleInfo.cs @@ -0,0 +1,58 @@ +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("sale")] + public partial class saleInfo + { + ///id + [ModelBindControl("txtid")] + public int id{set;get;} + ///销售单号 + [ModelBindControl("txtsaleordercode")] + public string saleordercode{set;get;} + ///订单日期 + [ModelBindControl("txtorderdate")] + public DateTime orderdate{set;get;}=DateTime.Now; + ///客户 + [ModelBindControl("txtcustomerid")] + public int customerid{set;get;} + ///客户编号 + [ModelBindControl("txtcustomercode")] + public string customercode{set;get;} + ///客户类型 + [ModelBindControl("txtcustomertype")] + public int customertype{set;get;} + ///客户单号 + [ModelBindControl("txtcustomerordercode")] + public string customerordercode{set;get;} + ///联系人 + [ModelBindControl("txtcontactuser")] + public int contactuser{set;get;} + ///联系电话 + [ModelBindControl("txtcontactphone")] + public string contactphone{set;get;} + ///送货地址 + [ModelBindControl("txtdeliveraddress")] + public string deliveraddress{set;get;} + ///业务员 + [ModelBindControl("txtsalesman")] + public int salesman{set;get;} + ///完货日期 + [ModelBindControl("txtfinishdate")] + public DateTime finishdate{set;get;}=DateTime.Now; + ///制单人 + [ModelBindControl("txtcreatorId")] + public int creatorId { set;get;} + ///备注 + [ModelBindControl("txtremark")] + public string remark{set;get;} + + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/saledetailInfo.cs b/WinformGeneralDeveloperFrame/Entity/saledetailInfo.cs new file mode 100644 index 0000000..4d4bc0d --- /dev/null +++ b/WinformGeneralDeveloperFrame/Entity/saledetailInfo.cs @@ -0,0 +1,85 @@ +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("saledetail")] + public partial class saledetailInfo + { + ///id + [ModelBindControl("txtid")] + public int id{set;get;} + ///产品 + [ModelBindControl("txtproductid")] + public int productid{set;get;} + ///规格型号 + [ModelBindControl("txtproductspec")] + public string productspec{set;get;} + ///数量 + [ModelBindControl("txtsalenumber")] + public decimal salenumber{set;get;} + ///计量单位 + [ModelBindControl("txtunit")] + public int unit{set;get;} + ///单价 + [ModelBindControl("txtunitprice")] + public decimal unitprice{set;get;} + ///金额 + [ModelBindControl("txtmoney")] + public decimal money{set;get;} + ///交货日期 + [ModelBindControl("txtdeliverdate")] + public DateTime deliverdate{set;get;}=DateTime.Now; + ///仓库 + [ModelBindControl("txtwarehouse")] + public int warehouse{set;get;} + ///已排产量 + [ModelBindControl("txtreadynumber")] + public decimal readynumber{set;get;} + ///待排产量 + [ModelBindControl("txtnoreadynumber")] + public decimal noreadynumber{set;get;} + ///已完工量 + [ModelBindControl("txtfinishnumber")] + public decimal finishnumber{set;get;} + ///已出货量 + [ModelBindControl("txtoutnumber")] + public decimal outnumber{set;get;} + ///退货量 + [ModelBindControl("txtreturnnumber")] + public decimal returnnumber{set;get;} + ///未交货数量 + [ModelBindControl("txtnodelivernumber")] + public decimal nodelivernumber{set;get;} + ///实际交货数量 + [ModelBindControl("txtdelivernumber")] + public decimal delivernumber{set;get;} + ///已结算数量 + [ModelBindControl("txtclosenumber")] + public decimal closenumber{set;get;} + ///未结算数量 + [ModelBindControl("txtnoclosenumber")] + public decimal noclosenumber{set;get;} + ///物料成本 + [ModelBindControl("txtmaterialcost")] + public decimal materialcost{set;get;} + ///实际物料成本 + [ModelBindControl("txtrealmaterialcost")] + public decimal realmaterialcost{set;get;} + ///产品编号 + [ModelBindControl("txtproductcode")] + public string productcode{set;get;} + ///销售主表 + [ModelBindControl("txtsaleid")] + public int saleid{set;get;} + ///销售单号 + [ModelBindControl("txtsalecode")] + public string salecode{set;get;} + + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmcustomer.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmcustomer.designer.cs index 3f82498..1da6919 100644 --- a/WinformGeneralDeveloperFrame/Form/Frmcustomer.designer.cs +++ b/WinformGeneralDeveloperFrame/Form/Frmcustomer.designer.cs @@ -77,6 +77,9 @@ namespace MES.Form this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); + this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.txtphonenumber = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomertype)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcontactuser)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); @@ -113,6 +116,8 @@ namespace MES.Form ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtphonenumber.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit(); this.SuspendLayout(); // // gridColumn1 @@ -274,7 +279,8 @@ namespace MES.Form this.gridColumn8, this.gridColumn9, this.gridColumn10, - this.gridColumn11}); + this.gridColumn11, + this.gridColumn12}); this.grdListView.GridControl = this.grdList; this.grdListView.Name = "grdListView"; this.grdListView.OptionsBehavior.Editable = false; @@ -298,6 +304,7 @@ namespace MES.Form // // layoutControl1 // + this.layoutControl1.Controls.Add(this.txtphonenumber); this.layoutControl1.Controls.Add(this.txtid); this.layoutControl1.Controls.Add(this.txtcustomername); this.layoutControl1.Controls.Add(this.txtcustomertype); @@ -373,7 +380,7 @@ namespace MES.Form // // txtstartreceipt // - this.txtstartreceipt.Location = new System.Drawing.Point(502, 84); + this.txtstartreceipt.Location = new System.Drawing.Point(75, 108); this.txtstartreceipt.Name = "txtstartreceipt"; this.txtstartreceipt.Size = new System.Drawing.Size(360, 20); this.txtstartreceipt.StyleController = this.layoutControl1; @@ -389,15 +396,15 @@ namespace MES.Form // // txttotalreceivables // - this.txttotalreceivables.Location = new System.Drawing.Point(75, 132); + this.txttotalreceivables.Location = new System.Drawing.Point(502, 108); this.txttotalreceivables.Name = "txttotalreceivables"; - this.txttotalreceivables.Size = new System.Drawing.Size(787, 20); + this.txttotalreceivables.Size = new System.Drawing.Size(360, 20); this.txttotalreceivables.StyleController = this.layoutControl1; this.txttotalreceivables.TabIndex = 8; // // txttotalamountsettled // - this.txttotalamountsettled.Location = new System.Drawing.Point(75, 108); + this.txttotalamountsettled.Location = new System.Drawing.Point(75, 132); this.txttotalamountsettled.Name = "txttotalamountsettled"; this.txttotalamountsettled.Size = new System.Drawing.Size(360, 20); this.txttotalamountsettled.StyleController = this.layoutControl1; @@ -405,7 +412,7 @@ namespace MES.Form // // txttotaloutstandingamount // - this.txttotaloutstandingamount.Location = new System.Drawing.Point(502, 108); + this.txttotaloutstandingamount.Location = new System.Drawing.Point(502, 132); this.txttotaloutstandingamount.Name = "txttotaloutstandingamount"; this.txttotaloutstandingamount.Size = new System.Drawing.Size(360, 20); this.txttotaloutstandingamount.StyleController = this.layoutControl1; @@ -431,11 +438,12 @@ namespace MES.Form this.layoutControlItem11, this.layoutControlItem3, this.layoutControlItem5, - this.layoutControlItem7, this.layoutControlItem9, - this.layoutControlItem8, this.layoutControlItem10, - this.emptySpaceItem1}); + this.emptySpaceItem1, + this.layoutControlItem7, + this.layoutControlItem8, + this.layoutControlItem12}); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(874, 528); this.layoutControlGroup1.TextVisible = false; @@ -474,7 +482,7 @@ namespace MES.Form // this.layoutControlItem6.Control = this.txtstartreceipt; this.layoutControlItem6.CustomizationFormText = "期初应收款"; - this.layoutControlItem6.Location = new System.Drawing.Point(427, 72); + this.layoutControlItem6.Location = new System.Drawing.Point(0, 96); this.layoutControlItem6.Name = "layoutControlItem6"; this.layoutControlItem6.Size = new System.Drawing.Size(427, 24); this.layoutControlItem6.Text = "期初应收款"; @@ -524,7 +532,7 @@ namespace MES.Form // this.layoutControlItem9.Control = this.txttotalamountsettled; this.layoutControlItem9.CustomizationFormText = "已结款总额"; - this.layoutControlItem9.Location = new System.Drawing.Point(0, 96); + this.layoutControlItem9.Location = new System.Drawing.Point(0, 120); this.layoutControlItem9.Name = "layoutControlItem9"; this.layoutControlItem9.Size = new System.Drawing.Size(427, 24); this.layoutControlItem9.Text = "已结款总额"; @@ -534,9 +542,9 @@ namespace MES.Form // this.layoutControlItem8.Control = this.txttotalreceivables; this.layoutControlItem8.CustomizationFormText = "应收款总额"; - this.layoutControlItem8.Location = new System.Drawing.Point(0, 120); + this.layoutControlItem8.Location = new System.Drawing.Point(427, 96); this.layoutControlItem8.Name = "layoutControlItem8"; - this.layoutControlItem8.Size = new System.Drawing.Size(854, 24); + this.layoutControlItem8.Size = new System.Drawing.Size(427, 24); this.layoutControlItem8.Text = "应收款总额"; this.layoutControlItem8.TextSize = new System.Drawing.Size(60, 14); // @@ -544,7 +552,7 @@ namespace MES.Form // this.layoutControlItem10.Control = this.txttotaloutstandingamount; this.layoutControlItem10.CustomizationFormText = "未结款总额"; - this.layoutControlItem10.Location = new System.Drawing.Point(427, 96); + this.layoutControlItem10.Location = new System.Drawing.Point(427, 120); this.layoutControlItem10.Name = "layoutControlItem10"; this.layoutControlItem10.Size = new System.Drawing.Size(427, 24); this.layoutControlItem10.Text = "未结款总额"; @@ -558,6 +566,32 @@ namespace MES.Form this.emptySpaceItem1.Size = new System.Drawing.Size(854, 340); this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); // + // gridColumn12 + // + this.gridColumn12.Caption = "联系方式"; + this.gridColumn12.FieldName = "phonenumber"; + this.gridColumn12.Name = "gridColumn12"; + this.gridColumn12.Visible = true; + this.gridColumn12.VisibleIndex = 10; + // + // txtphonenumber + // + this.txtphonenumber.Location = new System.Drawing.Point(502, 84); + this.txtphonenumber.Name = "txtphonenumber"; + this.txtphonenumber.Size = new System.Drawing.Size(360, 20); + this.txtphonenumber.StyleController = this.layoutControl1; + this.txtphonenumber.TabIndex = 12; + // + // layoutControlItem12 + // + this.layoutControlItem12.Control = this.txtphonenumber; + this.layoutControlItem12.CustomizationFormText = "联系方式"; + this.layoutControlItem12.Location = new System.Drawing.Point(427, 72); + this.layoutControlItem12.Name = "layoutControlItem12"; + this.layoutControlItem12.Size = new System.Drawing.Size(427, 24); + this.layoutControlItem12.Text = "联系方式"; + this.layoutControlItem12.TextSize = new System.Drawing.Size(60, 14); + // // Frmcustomer // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); @@ -604,6 +638,8 @@ namespace MES.Form ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtphonenumber.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit(); this.ResumeLayout(false); } @@ -667,5 +703,8 @@ namespace MES.Form private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem11; private EmptySpaceItem emptySpaceItem1; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn12; + private TextEdit txtphonenumber; + private LayoutControlItem layoutControlItem12; } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmquotation.cs b/WinformGeneralDeveloperFrame/Form/Frmquotation.cs index 3530f65..a792119 100644 --- a/WinformGeneralDeveloperFrame/Form/Frmquotation.cs +++ b/WinformGeneralDeveloperFrame/Form/Frmquotation.cs @@ -43,10 +43,15 @@ namespace MES.Form gridView1.GetFocusedDataRow()["unit"] = product.unit; gridView1.GetFocusedDataRow()["stockid"] = product.warehouse; gridView1.GetFocusedDataRow()["productcode"] = product.productcode; - + gridView1.GetFocusedDataRow()["productname"] = product.productname; } } + public override void InitFormFunction() + { + gridView1.BestFitColumns(); + } + /// /// 数据源初始化 /// @@ -152,8 +157,8 @@ namespace MES.Form /// public override bool SaveFunction() { - string code = "KHBJ" + DateTime.Now.Year + DateTime.Now.Month + DateTime.Now.Day + DateTime.Now.Hour + - DateTime.Now.Minute + DateTime.Now.Second + DateTime.Now.Millisecond; + string code = "KH" + DateTime.Now.Year + DateTime.Now.Month + DateTime.Now.Day + DateTime.Now.Hour + + DateTime.Now.Minute + DateTime.Now.Second + DateTime.Now.Millisecond.ToString("D3"); DataTable dt=gridControl1.DataSource as DataTable; try { @@ -172,7 +177,8 @@ namespace MES.Form info.quotationcode = code; db.quotationInfo.Add(info); db.SaveChanges(); - + txtid.Text = info.id.ToString(); + txtquotationcode.Text = code; if (dt != null) { List detaiListAdd = @@ -247,6 +253,7 @@ namespace MES.Form db.Database.ExecuteSqlCommand($"delete from quotationdetail where quotationid={info.id}"); db.SaveChanges(); } + gridControl1.DataSource = null; } catch (Exception ex) { @@ -300,6 +307,7 @@ namespace MES.Form txtcustomertype.EditValue = customer.customertype; txtcustomeruser.EditValue = customer.contactuser; txtdeliveraddress.Text = customer.address; + } } } @@ -313,6 +321,7 @@ namespace MES.Form using (var db=new MESDB()) { gridControl1.DataSource = db.quotationdetailInfo.Where(p => p.quotationid == info.id).ToList().ToDataTable(); + gridView1.BestFitColumns(); } } } @@ -331,6 +340,7 @@ namespace MES.Form if (string.IsNullOrEmpty(gridView1.GetFocusedDataRow()["productid"].ToString())) { "请选择产品".ShowTips(); + return; } if (!string.IsNullOrEmpty(gridView1.GetFocusedDataRow()["unitprice"].ToString()) && @@ -341,6 +351,7 @@ namespace MES.Form gridView1.GetFocusedDataRow()["number"].ToDecimal(0)); ; } + gridView1.BestFitColumns(); } } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmquotation.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmquotation.designer.cs index 6d376ba..bcf5440 100644 --- a/WinformGeneralDeveloperFrame/Form/Frmquotation.designer.cs +++ b/WinformGeneralDeveloperFrame/Form/Frmquotation.designer.cs @@ -61,7 +61,7 @@ namespace MES.Form this.toolStripMenuItemDel = new System.Windows.Forms.ToolStripMenuItem(); this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.gridColumn11 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.productid = new DevExpress.XtraGrid.Columns.GridColumn(); this.repositoryItemtxtproductid = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); this.gridColumn13 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn14 = new DevExpress.XtraGrid.Columns.GridColumn(); @@ -97,6 +97,7 @@ namespace MES.Form this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); + this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomerid)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomertype)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomeruser)).BeginInit(); @@ -395,8 +396,9 @@ namespace MES.Form // gridView1 // this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { - this.gridColumn11, this.gridColumn12, + this.gridColumn11, + this.productid, this.gridColumn13, this.gridColumn14, this.gridColumn15, @@ -419,15 +421,15 @@ namespace MES.Form this.gridColumn11.FieldName = "id"; this.gridColumn11.Name = "gridColumn11"; // - // gridColumn12 + // productid // - this.gridColumn12.Caption = "产品名称"; - this.gridColumn12.ColumnEdit = this.repositoryItemtxtproductid; - this.gridColumn12.FieldName = "productid"; - this.gridColumn12.Name = "gridColumn12"; - this.gridColumn12.Visible = true; - this.gridColumn12.VisibleIndex = 0; - this.gridColumn12.Width = 201; + this.productid.Caption = "产品名称"; + this.productid.ColumnEdit = this.repositoryItemtxtproductid; + this.productid.FieldName = "productid"; + this.productid.Name = "productid"; + this.productid.Visible = true; + this.productid.VisibleIndex = 0; + this.productid.Width = 201; // // repositoryItemtxtproductid // @@ -492,7 +494,7 @@ namespace MES.Form this.gridColumn17.FieldName = "money"; this.gridColumn17.Name = "gridColumn17"; this.gridColumn17.Summary.AddRange(new DevExpress.XtraGrid.GridSummaryItem[] { - new DevExpress.XtraGrid.GridColumnSummaryItem(DevExpress.Data.SummaryItemType.Sum, "money", "SUM={0:0.##}")}); + new DevExpress.XtraGrid.GridColumnSummaryItem(DevExpress.Data.SummaryItemType.Sum, "money", "总金额={0:0.##}")}); this.gridColumn17.Visible = true; this.gridColumn17.VisibleIndex = 5; this.gridColumn17.Width = 201; @@ -797,6 +799,12 @@ namespace MES.Form this.layoutControlItem11.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem11.TextVisible = false; // + // gridColumn12 + // + this.gridColumn12.Caption = "gridColumn12"; + this.gridColumn12.FieldName = "productname"; + this.gridColumn12.Name = "gridColumn12"; + // // Frmquotation // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); @@ -916,7 +924,7 @@ namespace MES.Form private DevExpress.XtraGrid.GridControl gridControl1; private DevExpress.XtraGrid.Views.Grid.GridView gridView1; private DevExpress.XtraGrid.Columns.GridColumn gridColumn11; - private DevExpress.XtraGrid.Columns.GridColumn gridColumn12; + private DevExpress.XtraGrid.Columns.GridColumn productid; private DevExpress.XtraGrid.Columns.GridColumn gridColumn13; private DevExpress.XtraGrid.Columns.GridColumn gridColumn14; private DevExpress.XtraGrid.Columns.GridColumn gridColumn15; @@ -931,5 +939,6 @@ namespace MES.Form private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtunit; private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtstockid; private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtproductid; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn12; } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmsale.cs b/WinformGeneralDeveloperFrame/Form/Frmsale.cs new file mode 100644 index 0000000..887edb3 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmsale.cs @@ -0,0 +1,394 @@ +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; +using CCWin.SkinClass; +using DevExpress.XtraEditors; +using DevExpress.XtraGrid.Columns; +using DevExpress.XtraRichEdit.Layout; + +namespace MES.Form +{ + public partial class Frmsale : FrmBaseForm + { + private Dictionary fieldDictionary = new Dictionary(); + public Frmsale() + { + InitializeComponent(); + } + private void Frmsale_Load(object sender, EventArgs e) + { + + InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new saleInfo(),gridControl1,new string[]{ "txtsaleordercode" }); + InitSearchDicData(); + repositoryItemGridLookUpEdit1.EditValueChanged += RepositoryItemGridLookUpEdit1_EditValueChanged; + } + + + /// + /// 数据源初始化 + /// + /// + private void Init() + { + txtcustomerid.Properties.DataSource = GetDataTableUtils.SqlTable("客户"); + repositoryItemtxtcustomerid.DataSource= GetDataTableUtils.SqlTable("客户"); + txtcustomertype.Properties.DataSource = GetDataTableUtils.SqlTable("客户类别"); + repositoryItemtxtcustomertype.DataSource= GetDataTableUtils.SqlTable("客户类别"); + txtcontactuser.Properties.DataSource = GetDataTableUtils.SqlTable("用户"); + repositoryItemtxtcontactuser.DataSource= GetDataTableUtils.SqlTable("用户"); + txtsalesman.Properties.DataSource = GetDataTableUtils.SqlTable("用户"); + repositoryItemtxtsalesman.DataSource= GetDataTableUtils.SqlTable("用户"); + txtcreatorId.Properties.DataSource = GetDataTableUtils.SqlTable("用户"); + repositoryItemtxtpreparedby.DataSource= GetDataTableUtils.SqlTable("用户"); + repositoryItemtxtunit.DataSource = GetDataTableUtils.SqlTable("计量单位"); + repositoryItemtxtwarehouse.DataSource = GetDataTableUtils.SqlTable("仓库"); + txtcreatorId.Properties.DataSource= GetDataTableUtils.SqlTable("用户"); + } + /// + /// 搜索字段 + /// + /// + private void InitSearchDicData() + { + fieldDictionary.Add("销售单号","saleordercode"); + fieldDictionary.Add("订单日期","orderdate"); + fieldDictionary.Add("客户单号","customerordercode"); + fieldDictionary.Add("业务员","salesman"); + fieldDictionary.Add("完货日期","finishdate"); + fieldDictionary.Add("制单人", "creatorId"); + } + + public override void InitgrdListDataSource() + { + using (var con=new MESDB())/// + { + grdList.DataSource=con.saleInfo.ToList(); + } + Init(); + } + /// + /// 字段为空校验 + /// + /// + public override bool CheckInput() + { + if(string.IsNullOrEmpty(txtorderdate.EditValue.ToString())) + { + "订单日期不能为空".ShowWarning(); + txtorderdate.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtcustomerid.EditValue.ToString())) + { + "客户不能为空".ShowWarning(); + txtcustomerid.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(txtcontactphone.EditValue.ToString())) + { + "联系电话不能为空".ShowWarning(); + txtcontactphone.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtdeliveraddress.EditValue.ToString())) + { + "送货地址不能为空".ShowWarning(); + txtdeliveraddress.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsalesman.EditValue.ToString())) + { + "业务员不能为空".ShowWarning(); + txtsalesman.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtfinishdate.EditValue.ToString())) + { + "完货日期不能为空".ShowWarning(); + txtfinishdate.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtcreatorId.EditValue.ToString())) + { + "制单人不能为空".ShowWarning(); + txtcreatorId.Focus(); + return false; + } + return true; + } + /// + /// 保存 + /// + /// + public override bool SaveFunction() + { + string code = "SO" + DateTime.Now.Year + DateTime.Now.Month + DateTime.Now.Day + DateTime.Now.Hour + + DateTime.Now.Minute + DateTime.Now.Second + DateTime.Now.Millisecond.ToString("D3"); + DataTable dt = gridControl1.DataSource as DataTable; + try + { + saleInfo info= (saleInfo)this.ControlDataToModel(new saleInfo()); + using (var db = new MESDB()) + { + using (var tran=db.Database.BeginTransaction()) + { + try + { + Dictionary> dic = + dt.GetDataTableData(); + if (info.id == 0)//新增 + { + info.saleordercode = code; + db.saleInfo.Add(info); + db.SaveChanges(); + txtid.Text = info.id.ToString(); + txtsaleordercode.Text = code; + if (dt != null) + { + List detaiListAdd = + dic["Add"]; + detaiListAdd.ForEach(a => a.saleid = info.id); + db.saledetailInfo.AddRange(detaiListAdd); + db.SaveChanges(); + } + } + else //更新 + { + db.Entry(info).State = EntityState.Modified; + db.SaveChanges(); + if (dt != null) + { + List detaiListAdd = + dic["Add"]; + detaiListAdd.ForEach(a => a.saleid = info.id); + db.saledetailInfo.AddRange(detaiListAdd); + + List detaiListEdit = + dic["Edit"]; + detaiListEdit.ForEach((a) => + { + db.Entry(a).State = EntityState.Modified; + }); + + List detaiListDel = + dic["Del"]; + detaiListDel.ForEach((a) => + { + db.Entry(a).State = EntityState.Deleted; + }); + db.SaveChanges(); + } + } + tran.Commit(); + } + catch (Exception ex) + { + tran.Rollback(); + ex.Message.ShowError(); + return false; + } + finally + { + tran.Dispose(); + } + } + } + } + catch (Exception ex) + { + ex.Message.ShowError(); + return false; + } + return true; + } + /// + /// 删除 + /// + /// + public override bool DelFunction() + { + try + { + saleInfo info = (saleInfo)this.ControlDataToModel(new saleInfo()); + 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.saleInfo.SqlQuery("select * from sale").ToList(); + } + else + { + grdList.DataSource = db.saleInfo.SqlQuery($"select * from sale where {sql}").ToList(); + } + } + } + } + public override void gridControlMouseDoubleClickFunction(object sender, EventArgs e) + { + Initresgridcontrollookupedit(); + saleInfo info = grdListView.GetFocusedRow() as saleInfo; + if (info != null) + { + using (var db = new MESDB()) + { + gridControl1.DataSource = db.saledetailInfo.Where(p => p.saleid == info.id).ToList().ToDataTable(); + gridView1.BestFitColumns(); + quotationInfo quotation = db.quotationInfo.Where(p => p.customeruser == info.customerid).ToList() + .FirstOrDefault(); + + repositoryItemGridLookUpEdit1.DataSource = + db.quotationdetailInfo.Where(p => p.quotationid == quotation.id).ToList(); + } + } + } + public override void AddFunction() + { + txtorderdate.DateTime = DateTime.Now; + gridControl1.DataSource = new List().ToDataTable(); + } + private void toolStripMenuItemAdd_Click(object sender, EventArgs e) + { + gridView1.AddNewRow(); + } + + private void toolStripMenuItemDel_Click(object sender, EventArgs e) + { + gridView1.DeleteRow(gridView1.FocusedRowHandle); + } + + private void gridView1_ValidateRow(object sender, DevExpress.XtraGrid.Views.Base.ValidateRowEventArgs e) + { + if (string.IsNullOrEmpty(gridView1.GetFocusedDataRow()["productid"].ToString())) + { + "请选择产品".ShowTips(); + return; + } + + if (!string.IsNullOrEmpty(gridView1.GetFocusedDataRow()["unitprice"].ToString()) && + !string.IsNullOrEmpty(gridView1.GetFocusedDataRow()["salenumber"].ToString())) + { + gridView1.GetFocusedDataRow()["money"] = decimal.Multiply( + gridView1.GetFocusedDataRow()["unitprice"].ToDecimal(0), + gridView1.GetFocusedDataRow()["salenumber"].ToDecimal(0)); + ; + } + gridView1.BestFitColumns(); + } + + private void txtcustomerid_EditValueChanged(object sender, EventArgs e) + { + Initresgridcontrollookupedit(); + using (var db = new MESDB()) + { + if (db.quotationInfo.ToList().Count > 0&& db.quotationInfo.ToList() + .Where(p => p.customeruser == txtcustomerid.EditValue.ToString().ToInt16()).Count()>0) + { + quotationInfo quotation = db.quotationInfo.ToList() + .Where(p => p.customeruser == txtcustomerid.EditValue.ToString().ToInt16()).First(); + repositoryItemGridLookUpEdit1.DataSource = + db.quotationdetailInfo.Where(p => p.quotationid == quotation.id).ToList(); + } + if (txtcustomerid.EditValue != null) + { + int id = txtcustomerid.EditValue.ToString().ToInt16(); + customerInfo customer = db.customerInfo.Where(p => p.id == id) + .First(); + if (customer != null) + { + txtcustomercode.Text = customer.customercode; + txtcustomertype.EditValue = customer.customertype; + txtcontactuser.EditValue = customer.contactuser; + txtdeliveraddress.Text = customer.address; + txtcontactphone.Text = customer.phonenumber; + } + } + } + } + //GridColumn col1 = new GridColumn(); + //col1=repositoryItemGridLookUpEdit1View.Columns.AddField("productid"); + //col1.Caption = "产品名称"; + //col1.Visible = true; + private void Initresgridcontrollookupedit() + { + GridColumn col1 = new GridColumn(){Caption = "产品",FieldName = "productid",Visible = false}; + GridColumn col7 = new GridColumn() { Caption = "产品名称", FieldName = "productname", Visible = true }; + GridColumn col2 = new GridColumn() { Caption = "规格", FieldName = "spec", Visible = true }; + GridColumn col3 = new GridColumn() { Caption = "报价数量", FieldName = "number", Visible = true }; + GridColumn col5 = new GridColumn() { Caption = "单价", FieldName = "unitprice", Visible = true }; + GridColumn col6 = new GridColumn() { Caption = "金额", FieldName = "money", Visible = true }; + GridColumn col4 = new GridColumn() { Caption = "id", FieldName = "id", Visible = false }; + repositoryItemGridLookUpEdit1View.Columns.AddRange(new GridColumn[]{col1, col7, col2,col3,col5,col6,col4}); + } + + private void RepositoryItemGridLookUpEdit1_EditValueChanged(object sender, EventArgs e) + { + using (var db = new MESDB()) + { + GridLookUpEdit look = sender as GridLookUpEdit; + quotationdetailInfo quotationdetail = look.Properties.View.GetFocusedRow() as quotationdetailInfo; + gridView1.GetFocusedDataRow()["productspec"] = quotationdetail.spec; + gridView1.GetFocusedDataRow()["unit"] = quotationdetail.unit; + gridView1.GetFocusedDataRow()["warehouse"] = quotationdetail.stockid; + gridView1.GetFocusedDataRow()["productcode"] = quotationdetail.productcode; + gridView1.GetFocusedDataRow()["productid"] = quotationdetail.productid; + gridView1.GetFocusedDataRow()["unitprice"] = quotationdetail.unitprice; + gridView1.GetFocusedDataRow()["salenumber"] = quotationdetail.number; + //LookUpEdit look = sender as LookUpEdit; + //int quotationid = look.EditValue.ToInt32(); + //quotationdetailInfo product = db.productInfo.Where(p => p.id == productid).FirstOrDefault(); + //DataTable dt = gridControl1.DataSource as DataTable; + //gridView1.GetFocusedDataRow()["spec"] = product.spec; + //gridView1.GetFocusedDataRow()["unit"] = product.unit; + //gridView1.GetFocusedDataRow()["stockid"] = product.warehouse; + //gridView1.GetFocusedDataRow()["productcode"] = product.productcode; + //gridView1.GetFocusedDataRow()["productname"] = product.productname; + } + } + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmsale.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmsale.designer.cs new file mode 100644 index 0000000..b9a9b48 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmsale.designer.cs @@ -0,0 +1,1302 @@ + +using DevExpress.XtraEditors; +using DevExpress.XtraLayout; +using DevExpress.XtraTab; + +namespace MES.Form +{ + partial class Frmsale + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxtcustomerid = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxtcustomertype = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxtcontactuser = 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.repositoryItemtxtsalesman = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn13 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxtpreparedby = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn14 = 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.gridControl1 = new DevExpress.XtraGrid.GridControl(); + this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.toolStripMenuItemAdd = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItemDel = new System.Windows.Forms.ToolStripMenuItem(); + this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.gridColumn15 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn16 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemGridLookUpEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemGridLookUpEdit(); + this.repositoryItemGridLookUpEdit1View = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.gridColumn17 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn18 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn19 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxtunit = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + 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.repositoryItemtxtwarehouse = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + 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.gridColumn34 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn35 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn36 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn37 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxtproductid = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.txtid = new DevExpress.XtraEditors.TextEdit(); + this.txtsaleordercode = new DevExpress.XtraEditors.TextEdit(); + this.txtorderdate = new DevExpress.XtraEditors.DateEdit(); + this.txtcustomerid = new DevExpress.XtraEditors.LookUpEdit(); + this.txtcustomercode = new DevExpress.XtraEditors.TextEdit(); + this.txtcustomertype = new DevExpress.XtraEditors.LookUpEdit(); + this.txtcustomerordercode = new DevExpress.XtraEditors.TextEdit(); + this.txtcontactuser = new DevExpress.XtraEditors.LookUpEdit(); + this.txtcontactphone = new DevExpress.XtraEditors.TextEdit(); + this.txtdeliveraddress = new DevExpress.XtraEditors.TextEdit(); + this.txtsalesman = new DevExpress.XtraEditors.LookUpEdit(); + this.txtfinishdate = new DevExpress.XtraEditors.DateEdit(); + this.txtcreatorId = new DevExpress.XtraEditors.LookUpEdit(); + 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.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomerid)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomertype)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcontactuser)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtsalesman)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtpreparedby)).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.gridControl1)).BeginInit(); + this.contextMenuStrip1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEdit1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEdit1View)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtunit)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtwarehouse)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtproductid)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsaleordercode.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtorderdate.Properties.CalendarTimeProperties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtorderdate.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomerid.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomercode.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomertype.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomerordercode.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcontactuser.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcontactphone.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliveraddress.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsalesman.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtfinishdate.Properties.CalendarTimeProperties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtfinishdate.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreatorId.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.layoutControlItem11)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit(); + this.SuspendLayout(); + // + // gridColumn1 + // + this.gridColumn1.Caption = "id"; + this.gridColumn1.FieldName = "id"; + this.gridColumn1.Name = "gridColumn1"; + // + // gridColumn2 + // + this.gridColumn2.Caption = "销售单号"; + this.gridColumn2.FieldName = "saleordercode"; + this.gridColumn2.Name = "gridColumn2"; + this.gridColumn2.Visible = true; + this.gridColumn2.VisibleIndex = 0; + this.gridColumn2.Width = 201; + // + // gridColumn3 + // + this.gridColumn3.Caption = "订单日期"; + this.gridColumn3.DisplayFormat.FormatString = "G"; + this.gridColumn3.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.gridColumn3.FieldName = "orderdate"; + this.gridColumn3.Name = "gridColumn3"; + this.gridColumn3.Visible = true; + this.gridColumn3.VisibleIndex = 1; + this.gridColumn3.Width = 201; + // + // gridColumn4 + // + this.gridColumn4.Caption = "客户"; + this.gridColumn4.ColumnEdit = this.repositoryItemtxtcustomerid; + this.gridColumn4.FieldName = "customerid"; + this.gridColumn4.Name = "gridColumn4"; + this.gridColumn4.Visible = true; + this.gridColumn4.VisibleIndex = 2; + this.gridColumn4.Width = 201; + // + // repositoryItemtxtcustomerid + // + this.repositoryItemtxtcustomerid.AutoHeight = false; + this.repositoryItemtxtcustomerid.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtcustomerid.DisplayMember = "Name"; + this.repositoryItemtxtcustomerid.Name = "repositoryItemtxtcustomerid"; + this.repositoryItemtxtcustomerid.ValueMember = "ID"; + // + // gridColumn5 + // + this.gridColumn5.Caption = "客户编号"; + this.gridColumn5.FieldName = "customercode"; + this.gridColumn5.Name = "gridColumn5"; + this.gridColumn5.Visible = true; + this.gridColumn5.VisibleIndex = 3; + this.gridColumn5.Width = 201; + // + // gridColumn6 + // + this.gridColumn6.Caption = "客户类型"; + this.gridColumn6.ColumnEdit = this.repositoryItemtxtcustomertype; + this.gridColumn6.FieldName = "customertype"; + this.gridColumn6.Name = "gridColumn6"; + this.gridColumn6.Visible = true; + this.gridColumn6.VisibleIndex = 4; + this.gridColumn6.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"; + // + // gridColumn7 + // + this.gridColumn7.Caption = "客户单号"; + this.gridColumn7.FieldName = "customerordercode"; + this.gridColumn7.Name = "gridColumn7"; + this.gridColumn7.Visible = true; + this.gridColumn7.VisibleIndex = 5; + this.gridColumn7.Width = 201; + // + // gridColumn8 + // + this.gridColumn8.Caption = "联系人"; + this.gridColumn8.ColumnEdit = this.repositoryItemtxtcontactuser; + this.gridColumn8.FieldName = "contactuser"; + this.gridColumn8.Name = "gridColumn8"; + this.gridColumn8.Visible = true; + this.gridColumn8.VisibleIndex = 6; + this.gridColumn8.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"; + // + // gridColumn9 + // + this.gridColumn9.Caption = "联系电话"; + this.gridColumn9.FieldName = "contactphone"; + this.gridColumn9.Name = "gridColumn9"; + this.gridColumn9.Visible = true; + this.gridColumn9.VisibleIndex = 7; + this.gridColumn9.Width = 201; + // + // gridColumn10 + // + this.gridColumn10.Caption = "送货地址"; + this.gridColumn10.FieldName = "deliveraddress"; + this.gridColumn10.Name = "gridColumn10"; + this.gridColumn10.Visible = true; + this.gridColumn10.VisibleIndex = 8; + this.gridColumn10.Width = 201; + // + // gridColumn11 + // + this.gridColumn11.Caption = "业务员"; + this.gridColumn11.ColumnEdit = this.repositoryItemtxtsalesman; + this.gridColumn11.FieldName = "salesman"; + this.gridColumn11.Name = "gridColumn11"; + this.gridColumn11.Visible = true; + this.gridColumn11.VisibleIndex = 9; + this.gridColumn11.Width = 201; + // + // repositoryItemtxtsalesman + // + this.repositoryItemtxtsalesman.AutoHeight = false; + this.repositoryItemtxtsalesman.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtsalesman.DisplayMember = "Name"; + this.repositoryItemtxtsalesman.Name = "repositoryItemtxtsalesman"; + this.repositoryItemtxtsalesman.ValueMember = "ID"; + // + // gridColumn12 + // + this.gridColumn12.Caption = "完货日期"; + this.gridColumn12.DisplayFormat.FormatString = "G"; + this.gridColumn12.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.gridColumn12.FieldName = "finishdate"; + this.gridColumn12.Name = "gridColumn12"; + this.gridColumn12.Visible = true; + this.gridColumn12.VisibleIndex = 10; + this.gridColumn12.Width = 201; + // + // gridColumn13 + // + this.gridColumn13.Caption = "制单人"; + this.gridColumn13.ColumnEdit = this.repositoryItemtxtpreparedby; + this.gridColumn13.FieldName = "creatorId"; + this.gridColumn13.Name = "gridColumn13"; + this.gridColumn13.Visible = true; + this.gridColumn13.VisibleIndex = 11; + this.gridColumn13.Width = 201; + // + // repositoryItemtxtpreparedby + // + this.repositoryItemtxtpreparedby.AutoHeight = false; + this.repositoryItemtxtpreparedby.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtpreparedby.DisplayMember = "Name"; + this.repositoryItemtxtpreparedby.Name = "repositoryItemtxtpreparedby"; + this.repositoryItemtxtpreparedby.ValueMember = "ID"; + // + // gridColumn14 + // + this.gridColumn14.Caption = "备注"; + this.gridColumn14.FieldName = "remark"; + this.gridColumn14.Name = "gridColumn14"; + this.gridColumn14.Visible = true; + this.gridColumn14.VisibleIndex = 12; + this.gridColumn14.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(944, 636); + 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(938, 607); + 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(938, 607); + 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.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(938, 607); + 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(938, 607); + this.panelControl2.TabIndex = 0; + // + // layoutControl1 + // + this.layoutControl1.Controls.Add(this.gridControl1); + this.layoutControl1.Controls.Add(this.txtid); + this.layoutControl1.Controls.Add(this.txtsaleordercode); + this.layoutControl1.Controls.Add(this.txtorderdate); + this.layoutControl1.Controls.Add(this.txtcustomerid); + this.layoutControl1.Controls.Add(this.txtcustomercode); + this.layoutControl1.Controls.Add(this.txtcustomertype); + this.layoutControl1.Controls.Add(this.txtcustomerordercode); + this.layoutControl1.Controls.Add(this.txtcontactuser); + this.layoutControl1.Controls.Add(this.txtcontactphone); + this.layoutControl1.Controls.Add(this.txtdeliveraddress); + this.layoutControl1.Controls.Add(this.txtsalesman); + this.layoutControl1.Controls.Add(this.txtfinishdate); + this.layoutControl1.Controls.Add(this.txtcreatorId); + 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(934, 603); + this.layoutControl1.TabIndex = 6; + this.layoutControl1.Text = "layoutControl1"; + // + // gridControl1 + // + this.gridControl1.ContextMenuStrip = this.contextMenuStrip1; + this.gridControl1.Location = new System.Drawing.Point(12, 204); + this.gridControl1.MainView = this.gridView1; + this.gridControl1.Name = "gridControl1"; + this.gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { + this.repositoryItemtxtproductid, + this.repositoryItemtxtunit, + this.repositoryItemtxtwarehouse, + this.repositoryItemGridLookUpEdit1}); + this.gridControl1.Size = new System.Drawing.Size(910, 387); + this.gridControl1.TabIndex = 15; + this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { + this.gridView1}); + // + // contextMenuStrip1 + // + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.toolStripMenuItemAdd, + this.toolStripMenuItemDel}); + this.contextMenuStrip1.Name = "contextMenuStrip1"; + this.contextMenuStrip1.Size = new System.Drawing.Size(113, 48); + // + // toolStripMenuItemAdd + // + this.toolStripMenuItemAdd.Name = "toolStripMenuItemAdd"; + this.toolStripMenuItemAdd.Size = new System.Drawing.Size(112, 22); + this.toolStripMenuItemAdd.Text = "添加行"; + this.toolStripMenuItemAdd.Click += new System.EventHandler(this.toolStripMenuItemAdd_Click); + // + // toolStripMenuItemDel + // + this.toolStripMenuItemDel.Name = "toolStripMenuItemDel"; + this.toolStripMenuItemDel.Size = new System.Drawing.Size(112, 22); + this.toolStripMenuItemDel.Text = "删除行"; + this.toolStripMenuItemDel.Click += new System.EventHandler(this.toolStripMenuItemDel_Click); + // + // gridView1 + // + this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { + 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.gridColumn34, + this.gridColumn35, + this.gridColumn36, + this.gridColumn37}); + this.gridView1.GridControl = this.gridControl1; + this.gridView1.Name = "gridView1"; + this.gridView1.OptionsBehavior.Editable = false; + this.gridView1.OptionsView.ColumnAutoWidth = false; + this.gridView1.ValidateRow += new DevExpress.XtraGrid.Views.Base.ValidateRowEventHandler(this.gridView1_ValidateRow); + // + // gridColumn15 + // + this.gridColumn15.Caption = "id"; + this.gridColumn15.FieldName = "id"; + this.gridColumn15.Name = "gridColumn15"; + this.gridColumn15.Width = 201; + // + // gridColumn16 + // + this.gridColumn16.Caption = "产品"; + this.gridColumn16.ColumnEdit = this.repositoryItemGridLookUpEdit1; + this.gridColumn16.FieldName = "productid"; + this.gridColumn16.Name = "gridColumn16"; + this.gridColumn16.Visible = true; + this.gridColumn16.VisibleIndex = 0; + this.gridColumn16.Width = 201; + // + // repositoryItemGridLookUpEdit1 + // + this.repositoryItemGridLookUpEdit1.AutoHeight = false; + this.repositoryItemGridLookUpEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemGridLookUpEdit1.DisplayMember = "productname"; + this.repositoryItemGridLookUpEdit1.Name = "repositoryItemGridLookUpEdit1"; + this.repositoryItemGridLookUpEdit1.NullText = ""; + this.repositoryItemGridLookUpEdit1.PopupView = this.repositoryItemGridLookUpEdit1View; + this.repositoryItemGridLookUpEdit1.ValueMember = "productid"; + // + // repositoryItemGridLookUpEdit1View + // + this.repositoryItemGridLookUpEdit1View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus; + this.repositoryItemGridLookUpEdit1View.Name = "repositoryItemGridLookUpEdit1View"; + this.repositoryItemGridLookUpEdit1View.OptionsBehavior.Editable = false; + this.repositoryItemGridLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false; + this.repositoryItemGridLookUpEdit1View.OptionsView.ColumnAutoWidth = false; + this.repositoryItemGridLookUpEdit1View.OptionsView.ShowGroupPanel = false; + // + // gridColumn17 + // + this.gridColumn17.Caption = "规格型号"; + this.gridColumn17.FieldName = "productspec"; + this.gridColumn17.Name = "gridColumn17"; + this.gridColumn17.Visible = true; + this.gridColumn17.VisibleIndex = 1; + this.gridColumn17.Width = 201; + // + // gridColumn18 + // + this.gridColumn18.Caption = "数量"; + this.gridColumn18.FieldName = "salenumber"; + this.gridColumn18.Name = "gridColumn18"; + this.gridColumn18.Visible = true; + this.gridColumn18.VisibleIndex = 2; + this.gridColumn18.Width = 201; + // + // gridColumn19 + // + this.gridColumn19.Caption = "计量单位"; + this.gridColumn19.ColumnEdit = this.repositoryItemtxtunit; + this.gridColumn19.FieldName = "unit"; + this.gridColumn19.Name = "gridColumn19"; + this.gridColumn19.Visible = true; + this.gridColumn19.VisibleIndex = 3; + this.gridColumn19.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.NullText = ""; + this.repositoryItemtxtunit.ValueMember = "ID"; + // + // gridColumn20 + // + this.gridColumn20.Caption = "单价"; + this.gridColumn20.FieldName = "unitprice"; + this.gridColumn20.Name = "gridColumn20"; + this.gridColumn20.Visible = true; + this.gridColumn20.VisibleIndex = 4; + this.gridColumn20.Width = 201; + // + // gridColumn21 + // + this.gridColumn21.Caption = "金额"; + this.gridColumn21.FieldName = "money"; + this.gridColumn21.Name = "gridColumn21"; + this.gridColumn21.Visible = true; + this.gridColumn21.VisibleIndex = 5; + this.gridColumn21.Width = 201; + // + // gridColumn22 + // + this.gridColumn22.Caption = "交货日期"; + this.gridColumn22.DisplayFormat.FormatString = "G"; + this.gridColumn22.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.gridColumn22.FieldName = "deliverdate"; + this.gridColumn22.Name = "gridColumn22"; + this.gridColumn22.Visible = true; + this.gridColumn22.VisibleIndex = 6; + this.gridColumn22.Width = 201; + // + // gridColumn23 + // + this.gridColumn23.Caption = "仓库"; + this.gridColumn23.ColumnEdit = this.repositoryItemtxtwarehouse; + this.gridColumn23.FieldName = "warehouse"; + this.gridColumn23.Name = "gridColumn23"; + this.gridColumn23.Visible = true; + this.gridColumn23.VisibleIndex = 7; + this.gridColumn23.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"; + // + // gridColumn24 + // + this.gridColumn24.Caption = "已排产量"; + this.gridColumn24.FieldName = "readynumber"; + this.gridColumn24.Name = "gridColumn24"; + this.gridColumn24.OptionsColumn.AllowEdit = false; + this.gridColumn24.Visible = true; + this.gridColumn24.VisibleIndex = 8; + this.gridColumn24.Width = 201; + // + // gridColumn25 + // + this.gridColumn25.Caption = "待排产量"; + this.gridColumn25.FieldName = "noreadynumber"; + this.gridColumn25.Name = "gridColumn25"; + this.gridColumn25.OptionsColumn.AllowEdit = false; + this.gridColumn25.Visible = true; + this.gridColumn25.VisibleIndex = 9; + this.gridColumn25.Width = 201; + // + // gridColumn26 + // + this.gridColumn26.Caption = "已完工量"; + this.gridColumn26.FieldName = "finishnumber"; + this.gridColumn26.Name = "gridColumn26"; + this.gridColumn26.OptionsColumn.AllowEdit = false; + this.gridColumn26.Visible = true; + this.gridColumn26.VisibleIndex = 10; + this.gridColumn26.Width = 201; + // + // gridColumn27 + // + this.gridColumn27.Caption = "已出货量"; + this.gridColumn27.FieldName = "outnumber"; + this.gridColumn27.Name = "gridColumn27"; + this.gridColumn27.OptionsColumn.AllowEdit = false; + this.gridColumn27.Visible = true; + this.gridColumn27.VisibleIndex = 11; + this.gridColumn27.Width = 201; + // + // gridColumn28 + // + this.gridColumn28.Caption = "退货量"; + this.gridColumn28.FieldName = "returnnumber"; + this.gridColumn28.Name = "gridColumn28"; + this.gridColumn28.OptionsColumn.AllowEdit = false; + this.gridColumn28.Visible = true; + this.gridColumn28.VisibleIndex = 12; + this.gridColumn28.Width = 201; + // + // gridColumn29 + // + this.gridColumn29.Caption = "未交货数量"; + this.gridColumn29.FieldName = "nodelivernumber"; + this.gridColumn29.Name = "gridColumn29"; + this.gridColumn29.OptionsColumn.AllowEdit = false; + this.gridColumn29.Visible = true; + this.gridColumn29.VisibleIndex = 13; + this.gridColumn29.Width = 201; + // + // gridColumn30 + // + this.gridColumn30.Caption = "实际交货数量"; + this.gridColumn30.FieldName = "delivernumber"; + this.gridColumn30.Name = "gridColumn30"; + this.gridColumn30.OptionsColumn.AllowEdit = false; + this.gridColumn30.Visible = true; + this.gridColumn30.VisibleIndex = 14; + this.gridColumn30.Width = 201; + // + // gridColumn31 + // + this.gridColumn31.Caption = "已结算数量"; + this.gridColumn31.FieldName = "closenumber"; + this.gridColumn31.Name = "gridColumn31"; + this.gridColumn31.OptionsColumn.AllowEdit = false; + this.gridColumn31.Visible = true; + this.gridColumn31.VisibleIndex = 15; + this.gridColumn31.Width = 201; + // + // gridColumn32 + // + this.gridColumn32.Caption = "未结算数量"; + this.gridColumn32.FieldName = "noclosenumber"; + this.gridColumn32.Name = "gridColumn32"; + this.gridColumn32.OptionsColumn.AllowEdit = false; + this.gridColumn32.Visible = true; + this.gridColumn32.VisibleIndex = 16; + this.gridColumn32.Width = 201; + // + // gridColumn33 + // + this.gridColumn33.Caption = "物料成本"; + this.gridColumn33.FieldName = "materialcost"; + this.gridColumn33.Name = "gridColumn33"; + this.gridColumn33.OptionsColumn.AllowEdit = false; + this.gridColumn33.Visible = true; + this.gridColumn33.VisibleIndex = 17; + this.gridColumn33.Width = 201; + // + // gridColumn34 + // + this.gridColumn34.Caption = "实际物料成本"; + this.gridColumn34.FieldName = "realmaterialcost"; + this.gridColumn34.Name = "gridColumn34"; + this.gridColumn34.OptionsColumn.AllowEdit = false; + this.gridColumn34.Visible = true; + this.gridColumn34.VisibleIndex = 18; + this.gridColumn34.Width = 201; + // + // gridColumn35 + // + this.gridColumn35.Caption = "产品编号"; + this.gridColumn35.FieldName = "productcode"; + this.gridColumn35.Name = "gridColumn35"; + this.gridColumn35.Visible = true; + this.gridColumn35.VisibleIndex = 19; + this.gridColumn35.Width = 201; + // + // gridColumn36 + // + this.gridColumn36.Caption = "销售主表"; + this.gridColumn36.FieldName = "saleid"; + this.gridColumn36.Name = "gridColumn36"; + this.gridColumn36.Width = 201; + // + // gridColumn37 + // + this.gridColumn37.Caption = "销售单号"; + this.gridColumn37.FieldName = "salecode"; + this.gridColumn37.Name = "gridColumn37"; + this.gridColumn37.Visible = true; + this.gridColumn37.VisibleIndex = 20; + this.gridColumn37.Width = 201; + // + // repositoryItemtxtproductid + // + this.repositoryItemtxtproductid.AutoHeight = false; + this.repositoryItemtxtproductid.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtproductid.Name = "repositoryItemtxtproductid"; + // + // txtid + // + this.txtid.Location = new System.Drawing.Point(63, 12); + this.txtid.Name = "txtid"; + this.txtid.Size = new System.Drawing.Size(859, 20); + this.txtid.StyleController = this.layoutControl1; + this.txtid.TabIndex = 1; + // + // txtsaleordercode + // + this.txtsaleordercode.Location = new System.Drawing.Point(63, 36); + this.txtsaleordercode.Name = "txtsaleordercode"; + this.txtsaleordercode.Size = new System.Drawing.Size(402, 20); + this.txtsaleordercode.StyleController = this.layoutControl1; + this.txtsaleordercode.TabIndex = 2; + // + // txtorderdate + // + this.txtorderdate.EditValue = null; + this.txtorderdate.ImeMode = System.Windows.Forms.ImeMode.Off; + this.txtorderdate.Location = new System.Drawing.Point(520, 36); + this.txtorderdate.Name = "txtorderdate"; + this.txtorderdate.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtorderdate.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton()}); + this.txtorderdate.Properties.DisplayFormat.FormatString = "G"; + this.txtorderdate.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.txtorderdate.Size = new System.Drawing.Size(402, 20); + this.txtorderdate.StyleController = this.layoutControl1; + this.txtorderdate.TabIndex = 3; + // + // txtcustomerid + // + this.txtcustomerid.EditValue = ""; + this.txtcustomerid.Location = new System.Drawing.Point(63, 60); + this.txtcustomerid.Name = "txtcustomerid"; + this.txtcustomerid.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtcustomerid.Properties.DisplayMember = "Name"; + this.txtcustomerid.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; + this.txtcustomerid.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + this.txtcustomerid.Properties.ValueMember = "ID"; + this.txtcustomerid.Size = new System.Drawing.Size(402, 20); + this.txtcustomerid.StyleController = this.layoutControl1; + this.txtcustomerid.TabIndex = 4; + this.txtcustomerid.EditValueChanged += new System.EventHandler(this.txtcustomerid_EditValueChanged); + // + // txtcustomercode + // + this.txtcustomercode.Location = new System.Drawing.Point(520, 60); + this.txtcustomercode.Name = "txtcustomercode"; + this.txtcustomercode.Size = new System.Drawing.Size(402, 20); + this.txtcustomercode.StyleController = this.layoutControl1; + this.txtcustomercode.TabIndex = 5; + // + // txtcustomertype + // + this.txtcustomertype.EditValue = ""; + this.txtcustomertype.Location = new System.Drawing.Point(63, 84); + 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(402, 20); + this.txtcustomertype.StyleController = this.layoutControl1; + this.txtcustomertype.TabIndex = 6; + // + // txtcustomerordercode + // + this.txtcustomerordercode.Location = new System.Drawing.Point(520, 84); + this.txtcustomerordercode.Name = "txtcustomerordercode"; + this.txtcustomerordercode.Size = new System.Drawing.Size(402, 20); + this.txtcustomerordercode.StyleController = this.layoutControl1; + this.txtcustomerordercode.TabIndex = 7; + // + // txtcontactuser + // + this.txtcontactuser.EditValue = ""; + this.txtcontactuser.Location = new System.Drawing.Point(63, 108); + 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(402, 20); + this.txtcontactuser.StyleController = this.layoutControl1; + this.txtcontactuser.TabIndex = 8; + // + // txtcontactphone + // + this.txtcontactphone.Location = new System.Drawing.Point(520, 108); + this.txtcontactphone.Name = "txtcontactphone"; + this.txtcontactphone.Size = new System.Drawing.Size(402, 20); + this.txtcontactphone.StyleController = this.layoutControl1; + this.txtcontactphone.TabIndex = 9; + // + // txtdeliveraddress + // + this.txtdeliveraddress.Location = new System.Drawing.Point(520, 132); + this.txtdeliveraddress.Name = "txtdeliveraddress"; + this.txtdeliveraddress.Size = new System.Drawing.Size(402, 20); + this.txtdeliveraddress.StyleController = this.layoutControl1; + this.txtdeliveraddress.TabIndex = 10; + // + // txtsalesman + // + this.txtsalesman.EditValue = ""; + this.txtsalesman.Location = new System.Drawing.Point(63, 132); + this.txtsalesman.Name = "txtsalesman"; + this.txtsalesman.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtsalesman.Properties.DisplayMember = "Name"; + this.txtsalesman.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; + this.txtsalesman.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + this.txtsalesman.Properties.ValueMember = "ID"; + this.txtsalesman.Size = new System.Drawing.Size(402, 20); + this.txtsalesman.StyleController = this.layoutControl1; + this.txtsalesman.TabIndex = 11; + // + // txtfinishdate + // + this.txtfinishdate.EditValue = null; + this.txtfinishdate.ImeMode = System.Windows.Forms.ImeMode.Off; + this.txtfinishdate.Location = new System.Drawing.Point(63, 156); + this.txtfinishdate.Name = "txtfinishdate"; + this.txtfinishdate.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtfinishdate.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton()}); + this.txtfinishdate.Properties.DisplayFormat.FormatString = "G"; + this.txtfinishdate.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.txtfinishdate.Size = new System.Drawing.Size(402, 20); + this.txtfinishdate.StyleController = this.layoutControl1; + this.txtfinishdate.TabIndex = 12; + // + // txtcreatorId + // + this.txtcreatorId.EditValue = ""; + this.txtcreatorId.Location = new System.Drawing.Point(520, 156); + 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(402, 20); + this.txtcreatorId.StyleController = this.layoutControl1; + this.txtcreatorId.TabIndex = 13; + // + // txtremark + // + this.txtremark.Location = new System.Drawing.Point(63, 180); + this.txtremark.Name = "txtremark"; + this.txtremark.Size = new System.Drawing.Size(859, 20); + this.txtremark.StyleController = this.layoutControl1; + this.txtremark.TabIndex = 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.layoutControlItem4, + this.layoutControlItem6, + this.layoutControlItem8, + this.layoutControlItem11, + this.layoutControlItem12, + this.layoutControlItem3, + this.layoutControlItem5, + this.layoutControlItem7, + this.layoutControlItem9, + this.layoutControlItem10, + this.layoutControlItem13, + this.layoutControlItem15, + this.layoutControlItem14}); + this.layoutControlGroup1.Name = "layoutControlGroup1"; + this.layoutControlGroup1.Size = new System.Drawing.Size(934, 603); + 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(914, 24); + this.layoutControlItem1.Text = "id"; + this.layoutControlItem1.TextSize = new System.Drawing.Size(48, 14); + // + // layoutControlItem2 + // + this.layoutControlItem2.Control = this.txtsaleordercode; + this.layoutControlItem2.CustomizationFormText = "销售单号"; + this.layoutControlItem2.Location = new System.Drawing.Point(0, 24); + this.layoutControlItem2.Name = "layoutControlItem2"; + this.layoutControlItem2.Size = new System.Drawing.Size(457, 24); + this.layoutControlItem2.Text = "销售单号"; + this.layoutControlItem2.TextSize = new System.Drawing.Size(48, 14); + // + // layoutControlItem4 + // + this.layoutControlItem4.Control = this.txtcustomerid; + this.layoutControlItem4.CustomizationFormText = "客户"; + this.layoutControlItem4.Location = new System.Drawing.Point(0, 48); + this.layoutControlItem4.Name = "layoutControlItem4"; + this.layoutControlItem4.Size = new System.Drawing.Size(457, 24); + this.layoutControlItem4.Text = "客户"; + this.layoutControlItem4.TextSize = new System.Drawing.Size(48, 14); + // + // layoutControlItem6 + // + this.layoutControlItem6.Control = this.txtcustomertype; + this.layoutControlItem6.CustomizationFormText = "客户类型"; + this.layoutControlItem6.Location = new System.Drawing.Point(0, 72); + this.layoutControlItem6.Name = "layoutControlItem6"; + this.layoutControlItem6.Size = new System.Drawing.Size(457, 24); + this.layoutControlItem6.Text = "客户类型"; + this.layoutControlItem6.TextSize = new System.Drawing.Size(48, 14); + // + // layoutControlItem8 + // + this.layoutControlItem8.Control = this.txtcontactuser; + this.layoutControlItem8.CustomizationFormText = "联系人"; + this.layoutControlItem8.Location = new System.Drawing.Point(0, 96); + this.layoutControlItem8.Name = "layoutControlItem8"; + this.layoutControlItem8.Size = new System.Drawing.Size(457, 24); + this.layoutControlItem8.Text = "联系人"; + this.layoutControlItem8.TextSize = new System.Drawing.Size(48, 14); + // + // layoutControlItem11 + // + this.layoutControlItem11.Control = this.txtsalesman; + this.layoutControlItem11.CustomizationFormText = "业务员"; + this.layoutControlItem11.Location = new System.Drawing.Point(0, 120); + this.layoutControlItem11.Name = "layoutControlItem11"; + this.layoutControlItem11.Size = new System.Drawing.Size(457, 24); + this.layoutControlItem11.Text = "业务员"; + this.layoutControlItem11.TextSize = new System.Drawing.Size(48, 14); + // + // layoutControlItem12 + // + this.layoutControlItem12.Control = this.txtfinishdate; + this.layoutControlItem12.CustomizationFormText = "完货日期"; + this.layoutControlItem12.Location = new System.Drawing.Point(0, 144); + this.layoutControlItem12.Name = "layoutControlItem12"; + this.layoutControlItem12.Size = new System.Drawing.Size(457, 24); + this.layoutControlItem12.Text = "完货日期"; + this.layoutControlItem12.TextSize = new System.Drawing.Size(48, 14); + // + // layoutControlItem3 + // + this.layoutControlItem3.Control = this.txtorderdate; + this.layoutControlItem3.CustomizationFormText = "订单日期"; + this.layoutControlItem3.Location = new System.Drawing.Point(457, 24); + this.layoutControlItem3.Name = "layoutControlItem3"; + this.layoutControlItem3.Size = new System.Drawing.Size(457, 24); + this.layoutControlItem3.Text = "订单日期"; + this.layoutControlItem3.TextSize = new System.Drawing.Size(48, 14); + // + // layoutControlItem5 + // + this.layoutControlItem5.Control = this.txtcustomercode; + this.layoutControlItem5.CustomizationFormText = "客户编号"; + this.layoutControlItem5.Location = new System.Drawing.Point(457, 48); + this.layoutControlItem5.Name = "layoutControlItem5"; + this.layoutControlItem5.Size = new System.Drawing.Size(457, 24); + this.layoutControlItem5.Text = "客户编号"; + this.layoutControlItem5.TextSize = new System.Drawing.Size(48, 14); + // + // layoutControlItem7 + // + this.layoutControlItem7.Control = this.txtcustomerordercode; + this.layoutControlItem7.CustomizationFormText = "客户单号"; + this.layoutControlItem7.Location = new System.Drawing.Point(457, 72); + this.layoutControlItem7.Name = "layoutControlItem7"; + this.layoutControlItem7.Size = new System.Drawing.Size(457, 24); + this.layoutControlItem7.Text = "客户单号"; + this.layoutControlItem7.TextSize = new System.Drawing.Size(48, 14); + // + // layoutControlItem9 + // + this.layoutControlItem9.Control = this.txtcontactphone; + this.layoutControlItem9.CustomizationFormText = "联系电话"; + this.layoutControlItem9.Location = new System.Drawing.Point(457, 96); + this.layoutControlItem9.Name = "layoutControlItem9"; + this.layoutControlItem9.Size = new System.Drawing.Size(457, 24); + this.layoutControlItem9.Text = "联系电话"; + this.layoutControlItem9.TextSize = new System.Drawing.Size(48, 14); + // + // layoutControlItem10 + // + this.layoutControlItem10.Control = this.txtdeliveraddress; + this.layoutControlItem10.CustomizationFormText = "送货地址"; + this.layoutControlItem10.Location = new System.Drawing.Point(457, 120); + this.layoutControlItem10.Name = "layoutControlItem10"; + this.layoutControlItem10.Size = new System.Drawing.Size(457, 24); + this.layoutControlItem10.Text = "送货地址"; + this.layoutControlItem10.TextSize = new System.Drawing.Size(48, 14); + // + // layoutControlItem13 + // + this.layoutControlItem13.Control = this.txtcreatorId; + this.layoutControlItem13.CustomizationFormText = "制单人"; + this.layoutControlItem13.Location = new System.Drawing.Point(457, 144); + this.layoutControlItem13.Name = "layoutControlItem13"; + this.layoutControlItem13.Size = new System.Drawing.Size(457, 24); + this.layoutControlItem13.Text = "制单人"; + this.layoutControlItem13.TextSize = new System.Drawing.Size(48, 14); + // + // layoutControlItem15 + // + this.layoutControlItem15.Control = this.gridControl1; + this.layoutControlItem15.Location = new System.Drawing.Point(0, 192); + this.layoutControlItem15.Name = "layoutControlItem15"; + this.layoutControlItem15.Size = new System.Drawing.Size(914, 391); + this.layoutControlItem15.TextSize = new System.Drawing.Size(0, 0); + this.layoutControlItem15.TextVisible = false; + // + // layoutControlItem14 + // + this.layoutControlItem14.Control = this.txtremark; + this.layoutControlItem14.CustomizationFormText = "备注"; + this.layoutControlItem14.Location = new System.Drawing.Point(0, 168); + this.layoutControlItem14.Name = "layoutControlItem14"; + this.layoutControlItem14.Size = new System.Drawing.Size(914, 24); + this.layoutControlItem14.Text = "备注"; + this.layoutControlItem14.TextSize = new System.Drawing.Size(48, 14); + // + // Frmsale + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(944, 670); + this.Controls.Add(this.xtraTabControl1); + this.Name = "Frmsale"; + this.Text = "销售订单"; + this.Load += new System.EventHandler(this.Frmsale_Load); + this.Controls.SetChildIndex(this.xtraTabControl1, 0); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomerid)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomertype)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcontactuser)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtsalesman)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtpreparedby)).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.gridControl1)).EndInit(); + this.contextMenuStrip1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEdit1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEdit1View)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtunit)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtwarehouse)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtproductid)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsaleordercode.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtorderdate.Properties.CalendarTimeProperties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtorderdate.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomerid.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomercode.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomertype.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomerordercode.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcontactuser.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcontactphone.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliveraddress.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsalesman.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtfinishdate.Properties.CalendarTimeProperties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtfinishdate.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreatorId.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.layoutControlItem11)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).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.XtraEditors.TextEdit txtid; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsaleordercode; + /////////////////////////////// + private DevExpress.XtraEditors.DateEdit txtorderdate; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtcustomerid; + + private DevExpress.XtraEditors.LookUpEdit txtcustomerid; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtcustomercode; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtcustomertype; + + private DevExpress.XtraEditors.LookUpEdit txtcustomertype; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtcustomerordercode; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtcontactuser; + + private DevExpress.XtraEditors.LookUpEdit txtcontactuser; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtcontactphone; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtdeliveraddress; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtsalesman; + + private DevExpress.XtraEditors.LookUpEdit txtsalesman; + /////////////////////////////// + private DevExpress.XtraEditors.DateEdit txtfinishdate; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtpreparedby; + + private DevExpress.XtraEditors.LookUpEdit txtcreatorId; + /////////////////////////////// + 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.XtraGrid.GridControl gridControl1; + private DevExpress.XtraGrid.Views.Grid.GridView gridView1; + 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.XtraGrid.Columns.GridColumn gridColumn34; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn35; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn36; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn37; + private LayoutControlItem layoutControlItem15; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtproductid; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtunit; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtwarehouse; + private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemAdd; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemDel; + private DevExpress.XtraEditors.Repository.RepositoryItemGridLookUpEdit repositoryItemGridLookUpEdit1; + private DevExpress.XtraGrid.Views.Grid.GridView repositoryItemGridLookUpEdit1View; + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmsale.resx b/WinformGeneralDeveloperFrame/Form/Frmsale.resx new file mode 100644 index 0000000..ad53752 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmsale.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmsaledetail.cs b/WinformGeneralDeveloperFrame/Form/Frmsaledetail.cs new file mode 100644 index 0000000..0dc2835 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmsaledetail.cs @@ -0,0 +1,277 @@ +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 Frmsaledetail : FrmBaseForm + { + private Dictionary fieldDictionary = new Dictionary(); + public Frmsaledetail() + { + InitializeComponent(); + } + private void Frmsaledetail_Load(object sender, EventArgs e) + { + + InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new saledetailInfo()); + InitSearchDicData(); + } + /// + /// 数据源初始化 + /// + /// + private void Init() + { + + + + + txtproductid.Properties.DataSource = GetDataTableUtils.SqlTable("产品"); + repositoryItemtxtproductid.DataSource= GetDataTableUtils.SqlTable("产品"); + txtunit.Properties.DataSource = GetDataTableUtils.SqlTable("计量单位"); + repositoryItemtxtunit.DataSource= GetDataTableUtils.SqlTable("计量单位"); + txtwarehouse.Properties.DataSource = GetDataTableUtils.SqlTable("仓库"); + repositoryItemtxtwarehouse.DataSource= GetDataTableUtils.SqlTable("仓库"); + + + } + /// + /// 搜索字段 + /// + /// + private void InitSearchDicData() + { + fieldDictionary.Add("交货日期","deliverdate"); + fieldDictionary.Add("仓库","warehouse"); + fieldDictionary.Add("产品编号","productcode"); + fieldDictionary.Add("销售单号","salecode"); + } + + public override void InitgrdListDataSource() + { + using (var con=new MESDB())/// + { + grdList.DataSource=con.saledetailInfo.ToList(); + } + Init(); + } + /// + /// 字段为空校验 + /// + /// + public override bool CheckInput() + { + if(string.IsNullOrEmpty(txtproductid.EditValue.ToString())) + { + "产品不能为空".ShowWarning(); + txtproductid.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtproductspec.EditValue.ToString())) + { + "规格型号不能为空".ShowWarning(); + txtproductspec.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsalenumber.EditValue.ToString())) + { + "数量不能为空".ShowWarning(); + txtsalenumber.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtunit.EditValue.ToString())) + { + "计量单位不能为空".ShowWarning(); + txtunit.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtunitprice.EditValue.ToString())) + { + "单价不能为空".ShowWarning(); + txtunitprice.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtmoney.EditValue.ToString())) + { + "金额不能为空".ShowWarning(); + txtmoney.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtdeliverdate.EditValue.ToString())) + { + "交货日期不能为空".ShowWarning(); + txtdeliverdate.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtwarehouse.EditValue.ToString())) + { + "仓库不能为空".ShowWarning(); + txtwarehouse.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtreadynumber.EditValue.ToString())) + { + "已排产量不能为空".ShowWarning(); + txtreadynumber.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtnoreadynumber.EditValue.ToString())) + { + "待排产量不能为空".ShowWarning(); + txtnoreadynumber.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtfinishnumber.EditValue.ToString())) + { + "已完工量不能为空".ShowWarning(); + txtfinishnumber.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtoutnumber.EditValue.ToString())) + { + "已出货量不能为空".ShowWarning(); + txtoutnumber.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtreturnnumber.EditValue.ToString())) + { + "退货量不能为空".ShowWarning(); + txtreturnnumber.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtnodelivernumber.EditValue.ToString())) + { + "未交货数量不能为空".ShowWarning(); + txtnodelivernumber.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtdelivernumber.EditValue.ToString())) + { + "实际交货数量不能为空".ShowWarning(); + txtdelivernumber.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtclosenumber.EditValue.ToString())) + { + "已结算数量不能为空".ShowWarning(); + txtclosenumber.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtnoclosenumber.EditValue.ToString())) + { + "未结算数量不能为空".ShowWarning(); + txtnoclosenumber.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtmaterialcost.EditValue.ToString())) + { + "物料成本不能为空".ShowWarning(); + txtmaterialcost.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtrealmaterialcost.EditValue.ToString())) + { + "实际物料成本不能为空".ShowWarning(); + txtrealmaterialcost.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtproductcode.EditValue.ToString())) + { + "产品编号不能为空".ShowWarning(); + txtproductcode.Focus(); + return false; + } + //if(string.IsNullOrEmpty(txtsaleid.EditValue.ToString())) + //{ + // "销售主表不能为空".ShowWarning(); + // txtsaleid.Focus(); + // return false; + //} + if(string.IsNullOrEmpty(txtsalecode.EditValue.ToString())) + { + "销售单号不能为空".ShowWarning(); + txtsalecode.Focus(); + return false; + } + return true; + } + /// + /// 保存 + /// + /// + public override bool SaveFunction() + { + try + { + saledetailInfo info= (saledetailInfo)this.ControlDataToModel(new saledetailInfo()); + using (var db = new MESDB()) + { + db.saledetailInfo.AddOrUpdate(info); + db.SaveChanges(); + } + } + catch (Exception ex) + { + ex.Message.ShowError(); + return false; + } + return true; + } + /// + /// 删除 + /// + /// + public override bool DelFunction() + { + try + { + saledetailInfo info = (saledetailInfo)this.ControlDataToModel(new saledetailInfo()); + 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.saledetailInfo.SqlQuery("select * from saledetail").ToList(); + } + else + { + grdList.DataSource = db.saledetailInfo.SqlQuery($"select * from saledetail where {sql}").ToList(); + } + } + } + } + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmsaledetail.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmsaledetail.designer.cs new file mode 100644 index 0000000..e670c9e --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmsaledetail.designer.cs @@ -0,0 +1,1158 @@ + +using DevExpress.XtraEditors; +using DevExpress.XtraLayout; +using DevExpress.XtraTab; + +namespace MES.Form +{ + partial class Frmsaledetail + { + /// + /// 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.repositoryItemtxtproductid = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + 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.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn9 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxtwarehouse = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + 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.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.txtproductid = new DevExpress.XtraEditors.LookUpEdit(); + this.txtproductspec = new DevExpress.XtraEditors.TextEdit(); + this.txtsalenumber = new DevExpress.XtraEditors.TextEdit(); + this.txtunit = new DevExpress.XtraEditors.LookUpEdit(); + this.txtunitprice = new DevExpress.XtraEditors.TextEdit(); + this.txtmoney = new DevExpress.XtraEditors.TextEdit(); + this.txtdeliverdate = new DevExpress.XtraEditors.DateEdit(); + this.txtwarehouse = new DevExpress.XtraEditors.LookUpEdit(); + this.txtreadynumber = new DevExpress.XtraEditors.TextEdit(); + this.txtnoreadynumber = new DevExpress.XtraEditors.TextEdit(); + this.txtfinishnumber = new DevExpress.XtraEditors.TextEdit(); + this.txtoutnumber = new DevExpress.XtraEditors.TextEdit(); + this.txtreturnnumber = new DevExpress.XtraEditors.TextEdit(); + this.txtnodelivernumber = new DevExpress.XtraEditors.TextEdit(); + this.txtdelivernumber = new DevExpress.XtraEditors.TextEdit(); + this.txtclosenumber = new DevExpress.XtraEditors.TextEdit(); + this.txtnoclosenumber = new DevExpress.XtraEditors.TextEdit(); + this.txtmaterialcost = new DevExpress.XtraEditors.TextEdit(); + this.txtrealmaterialcost = new DevExpress.XtraEditors.TextEdit(); + this.txtproductcode = new DevExpress.XtraEditors.TextEdit(); + this.txtsalecode = 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(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtproductid)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtunit)).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.txtproductid.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtproductspec.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsalenumber.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtunit.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtunitprice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtmoney.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliverdate.Properties.CalendarTimeProperties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliverdate.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtwarehouse.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtreadynumber.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtnoreadynumber.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtfinishnumber.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtoutnumber.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtreturnnumber.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtnodelivernumber.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdelivernumber.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtclosenumber.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtnoclosenumber.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtmaterialcost.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtrealmaterialcost.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtproductcode.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsalecode.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(); + this.SuspendLayout(); + // + // gridColumn1 + // + this.gridColumn1.Caption = "id"; + this.gridColumn1.FieldName = "id"; + this.gridColumn1.Name = "gridColumn1"; + this.gridColumn1.Visible = true; + this.gridColumn1.VisibleIndex = 0; + this.gridColumn1.Width = 201; + // + // gridColumn2 + // + this.gridColumn2.Caption = "产品"; + this.gridColumn2.ColumnEdit = this.repositoryItemtxtproductid; + this.gridColumn2.FieldName = "productid"; + this.gridColumn2.Name = "gridColumn2"; + this.gridColumn2.Visible = true; + this.gridColumn2.VisibleIndex = 1; + this.gridColumn2.Width = 201; + // + // repositoryItemtxtproductid + // + this.repositoryItemtxtproductid.AutoHeight = false; + this.repositoryItemtxtproductid.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtproductid.DisplayMember = "Name"; + this.repositoryItemtxtproductid.Name = "repositoryItemtxtproductid"; + this.repositoryItemtxtproductid.NullText = ""; + this.repositoryItemtxtproductid.ValueMember = "ID"; + // + // gridColumn3 + // + this.gridColumn3.Caption = "规格型号"; + this.gridColumn3.FieldName = "productspec"; + this.gridColumn3.Name = "gridColumn3"; + this.gridColumn3.Visible = true; + this.gridColumn3.VisibleIndex = 2; + this.gridColumn3.Width = 201; + // + // gridColumn4 + // + this.gridColumn4.Caption = "数量"; + this.gridColumn4.FieldName = "salenumber"; + this.gridColumn4.Name = "gridColumn4"; + this.gridColumn4.Visible = true; + this.gridColumn4.VisibleIndex = 3; + 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 = 4; + 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 = "unitprice"; + this.gridColumn6.Name = "gridColumn6"; + this.gridColumn6.Visible = true; + this.gridColumn6.VisibleIndex = 5; + this.gridColumn6.Width = 201; + // + // gridColumn7 + // + this.gridColumn7.Caption = "金额"; + this.gridColumn7.FieldName = "money"; + this.gridColumn7.Name = "gridColumn7"; + this.gridColumn7.Visible = true; + this.gridColumn7.VisibleIndex = 6; + this.gridColumn7.Width = 201; + // + // gridColumn8 + // + this.gridColumn8.Caption = "交货日期"; + this.gridColumn8.DisplayFormat.FormatString = "G"; + this.gridColumn8.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.gridColumn8.FieldName = "deliverdate"; + this.gridColumn8.Name = "gridColumn8"; + this.gridColumn8.Visible = true; + this.gridColumn8.VisibleIndex = 7; + this.gridColumn8.Width = 201; + // + // gridColumn9 + // + this.gridColumn9.Caption = "仓库"; + this.gridColumn9.ColumnEdit = this.repositoryItemtxtwarehouse; + this.gridColumn9.FieldName = "warehouse"; + this.gridColumn9.Name = "gridColumn9"; + this.gridColumn9.Visible = true; + this.gridColumn9.VisibleIndex = 8; + this.gridColumn9.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"; + // + // gridColumn10 + // + this.gridColumn10.Caption = "已排产量"; + this.gridColumn10.FieldName = "readynumber"; + this.gridColumn10.Name = "gridColumn10"; + this.gridColumn10.Visible = true; + this.gridColumn10.VisibleIndex = 9; + this.gridColumn10.Width = 201; + // + // gridColumn11 + // + this.gridColumn11.Caption = "待排产量"; + this.gridColumn11.FieldName = "noreadynumber"; + this.gridColumn11.Name = "gridColumn11"; + this.gridColumn11.Visible = true; + this.gridColumn11.VisibleIndex = 10; + this.gridColumn11.Width = 201; + // + // gridColumn12 + // + this.gridColumn12.Caption = "已完工量"; + this.gridColumn12.FieldName = "finishnumber"; + this.gridColumn12.Name = "gridColumn12"; + this.gridColumn12.Visible = true; + this.gridColumn12.VisibleIndex = 11; + this.gridColumn12.Width = 201; + // + // gridColumn13 + // + this.gridColumn13.Caption = "已出货量"; + this.gridColumn13.FieldName = "outnumber"; + this.gridColumn13.Name = "gridColumn13"; + this.gridColumn13.Visible = true; + this.gridColumn13.VisibleIndex = 12; + this.gridColumn13.Width = 201; + // + // gridColumn14 + // + this.gridColumn14.Caption = "退货量"; + this.gridColumn14.FieldName = "returnnumber"; + this.gridColumn14.Name = "gridColumn14"; + this.gridColumn14.Visible = true; + this.gridColumn14.VisibleIndex = 13; + this.gridColumn14.Width = 201; + // + // gridColumn15 + // + this.gridColumn15.Caption = "未交货数量"; + this.gridColumn15.FieldName = "nodelivernumber"; + this.gridColumn15.Name = "gridColumn15"; + this.gridColumn15.Visible = true; + this.gridColumn15.VisibleIndex = 14; + this.gridColumn15.Width = 201; + // + // gridColumn16 + // + this.gridColumn16.Caption = "实际交货数量"; + this.gridColumn16.FieldName = "delivernumber"; + this.gridColumn16.Name = "gridColumn16"; + this.gridColumn16.Visible = true; + this.gridColumn16.VisibleIndex = 15; + this.gridColumn16.Width = 201; + // + // gridColumn17 + // + this.gridColumn17.Caption = "已结算数量"; + this.gridColumn17.FieldName = "closenumber"; + this.gridColumn17.Name = "gridColumn17"; + this.gridColumn17.Visible = true; + this.gridColumn17.VisibleIndex = 16; + this.gridColumn17.Width = 201; + // + // gridColumn18 + // + this.gridColumn18.Caption = "未结算数量"; + this.gridColumn18.FieldName = "noclosenumber"; + this.gridColumn18.Name = "gridColumn18"; + this.gridColumn18.Visible = true; + this.gridColumn18.VisibleIndex = 17; + this.gridColumn18.Width = 201; + // + // gridColumn19 + // + this.gridColumn19.Caption = "物料成本"; + this.gridColumn19.FieldName = "materialcost"; + this.gridColumn19.Name = "gridColumn19"; + this.gridColumn19.Visible = true; + this.gridColumn19.VisibleIndex = 18; + this.gridColumn19.Width = 201; + // + // gridColumn20 + // + this.gridColumn20.Caption = "实际物料成本"; + this.gridColumn20.FieldName = "realmaterialcost"; + this.gridColumn20.Name = "gridColumn20"; + this.gridColumn20.Visible = true; + this.gridColumn20.VisibleIndex = 19; + this.gridColumn20.Width = 201; + // + // gridColumn21 + // + this.gridColumn21.Caption = "产品编号"; + this.gridColumn21.FieldName = "productcode"; + this.gridColumn21.Name = "gridColumn21"; + this.gridColumn21.Visible = true; + this.gridColumn21.VisibleIndex = 20; + this.gridColumn21.Width = 201; + // + // gridColumn22 + // + this.gridColumn22.Caption = "销售主表"; + this.gridColumn22.FieldName = "saleid"; + this.gridColumn22.Name = "gridColumn22"; + this.gridColumn22.Visible = true; + this.gridColumn22.VisibleIndex = 21; + this.gridColumn22.Width = 201; + // + // gridColumn23 + // + this.gridColumn23.Caption = "销售单号"; + this.gridColumn23.FieldName = "salecode"; + this.gridColumn23.Name = "gridColumn23"; + this.gridColumn23.Visible = true; + this.gridColumn23.VisibleIndex = 22; + this.gridColumn23.Width = 201; + // + // xtraTabControl1 + // + this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.xtraTabControl1.Location = new System.Drawing.Point(0, 34); + this.xtraTabControl1.Name = "xtraTabControl1"; + this.xtraTabControl1.SelectedTabPage = this.tabDataList; + this.xtraTabControl1.Size = new System.Drawing.Size(1300, 766); + this.xtraTabControl1.TabIndex = 1; + this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { + this.tabDataList, + this.tabDataDetail}); + // + // tabDataList + // + this.tabDataList.Controls.Add(this.grdList); + this.tabDataList.Name = "tabDataList"; + this.tabDataList.Size = new System.Drawing.Size(1294, 737); + this.tabDataList.Text = "数据列表"; + // + // grdList + // + this.grdList.Dock = System.Windows.Forms.DockStyle.Fill; + this.grdList.Location = new System.Drawing.Point(0, 0); + this.grdList.MainView = this.grdListView; + this.grdList.Name = "grdList"; + this.grdList.Size = new System.Drawing.Size(1294, 737); + this.grdList.TabIndex = 0; + this.grdList.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { + this.grdListView}); + // + // grdListView + // + this.grdListView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { + this.gridColumn1, + this.gridColumn2, + this.gridColumn3, + this.gridColumn4, + this.gridColumn5, + this.gridColumn6, + this.gridColumn7, + this.gridColumn8, + this.gridColumn9, + this.gridColumn10, + this.gridColumn11, + this.gridColumn12, + this.gridColumn13, + this.gridColumn14, + this.gridColumn15, + this.gridColumn16, + this.gridColumn17, + this.gridColumn18, + this.gridColumn19, + this.gridColumn20, + this.gridColumn21, + this.gridColumn22, + this.gridColumn23}); + this.grdListView.GridControl = this.grdList; + this.grdListView.Name = "grdListView"; + this.grdListView.OptionsBehavior.Editable = false; + this.grdListView.OptionsView.ColumnAutoWidth = false; + // + // tabDataDetail + // + this.tabDataDetail.Controls.Add(this.panelControl2); + this.tabDataDetail.Name = "tabDataDetail"; + this.tabDataDetail.Size = new System.Drawing.Size(1294, 737); + this.tabDataDetail.Text = "数据编辑"; + // + // panelControl2 + // + this.panelControl2.Controls.Add(this.layoutControl1); + this.panelControl2.Dock = System.Windows.Forms.DockStyle.Fill; + this.panelControl2.Location = new System.Drawing.Point(0, 0); + this.panelControl2.Name = "panelControl2"; + this.panelControl2.Size = new System.Drawing.Size(1294, 737); + this.panelControl2.TabIndex = 0; + // + // layoutControl1 + // + this.layoutControl1.Controls.Add(this.txtid); + this.layoutControl1.Controls.Add(this.txtproductid); + this.layoutControl1.Controls.Add(this.txtproductspec); + this.layoutControl1.Controls.Add(this.txtsalenumber); + this.layoutControl1.Controls.Add(this.txtunit); + this.layoutControl1.Controls.Add(this.txtunitprice); + this.layoutControl1.Controls.Add(this.txtmoney); + this.layoutControl1.Controls.Add(this.txtdeliverdate); + this.layoutControl1.Controls.Add(this.txtwarehouse); + this.layoutControl1.Controls.Add(this.txtreadynumber); + this.layoutControl1.Controls.Add(this.txtnoreadynumber); + this.layoutControl1.Controls.Add(this.txtfinishnumber); + this.layoutControl1.Controls.Add(this.txtoutnumber); + this.layoutControl1.Controls.Add(this.txtreturnnumber); + this.layoutControl1.Controls.Add(this.txtnodelivernumber); + this.layoutControl1.Controls.Add(this.txtdelivernumber); + this.layoutControl1.Controls.Add(this.txtclosenumber); + this.layoutControl1.Controls.Add(this.txtnoclosenumber); + this.layoutControl1.Controls.Add(this.txtmaterialcost); + this.layoutControl1.Controls.Add(this.txtrealmaterialcost); + this.layoutControl1.Controls.Add(this.txtproductcode); + this.layoutControl1.Controls.Add(this.txtsalecode); + 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"; + // + // txtid + // + this.txtid.Location = new System.Drawing.Point(87, 12); + this.txtid.Name = "txtid"; + this.txtid.Size = new System.Drawing.Size(1191, 20); + this.txtid.StyleController = this.layoutControl1; + this.txtid.TabIndex = 1; + // + // txtproductid + // + this.txtproductid.EditValue = ""; + this.txtproductid.Location = new System.Drawing.Point(87, 36); + this.txtproductid.Name = "txtproductid"; + this.txtproductid.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtproductid.Properties.DisplayMember = "Name"; + this.txtproductid.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; + this.txtproductid.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + this.txtproductid.Properties.ValueMember = "ID"; + this.txtproductid.Size = new System.Drawing.Size(1191, 20); + this.txtproductid.StyleController = this.layoutControl1; + this.txtproductid.TabIndex = 2; + // + // txtproductspec + // + this.txtproductspec.Location = new System.Drawing.Point(87, 60); + this.txtproductspec.Name = "txtproductspec"; + this.txtproductspec.Size = new System.Drawing.Size(1191, 20); + this.txtproductspec.StyleController = this.layoutControl1; + this.txtproductspec.TabIndex = 3; + // + // txtsalenumber + // + this.txtsalenumber.Location = new System.Drawing.Point(87, 84); + this.txtsalenumber.Name = "txtsalenumber"; + this.txtsalenumber.Size = new System.Drawing.Size(1191, 20); + this.txtsalenumber.StyleController = this.layoutControl1; + this.txtsalenumber.TabIndex = 4; + // + // txtunit + // + this.txtunit.EditValue = ""; + this.txtunit.Location = new System.Drawing.Point(87, 108); + 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(1191, 20); + this.txtunit.StyleController = this.layoutControl1; + this.txtunit.TabIndex = 5; + // + // txtunitprice + // + this.txtunitprice.Location = new System.Drawing.Point(87, 132); + this.txtunitprice.Name = "txtunitprice"; + this.txtunitprice.Size = new System.Drawing.Size(1191, 20); + this.txtunitprice.StyleController = this.layoutControl1; + this.txtunitprice.TabIndex = 6; + // + // txtmoney + // + this.txtmoney.Location = new System.Drawing.Point(87, 156); + this.txtmoney.Name = "txtmoney"; + this.txtmoney.Size = new System.Drawing.Size(1191, 20); + this.txtmoney.StyleController = this.layoutControl1; + this.txtmoney.TabIndex = 7; + // + // txtdeliverdate + // + this.txtdeliverdate.EditValue = null; + this.txtdeliverdate.ImeMode = System.Windows.Forms.ImeMode.Off; + this.txtdeliverdate.Location = new System.Drawing.Point(87, 180); + this.txtdeliverdate.Name = "txtdeliverdate"; + this.txtdeliverdate.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtdeliverdate.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton()}); + this.txtdeliverdate.Properties.DisplayFormat.FormatString = "G"; + this.txtdeliverdate.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.txtdeliverdate.Size = new System.Drawing.Size(1191, 20); + this.txtdeliverdate.StyleController = this.layoutControl1; + this.txtdeliverdate.TabIndex = 8; + // + // txtwarehouse + // + this.txtwarehouse.EditValue = ""; + this.txtwarehouse.Location = new System.Drawing.Point(87, 204); + 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(1191, 20); + this.txtwarehouse.StyleController = this.layoutControl1; + this.txtwarehouse.TabIndex = 9; + // + // txtreadynumber + // + this.txtreadynumber.Location = new System.Drawing.Point(87, 228); + this.txtreadynumber.Name = "txtreadynumber"; + this.txtreadynumber.Size = new System.Drawing.Size(1191, 20); + this.txtreadynumber.StyleController = this.layoutControl1; + this.txtreadynumber.TabIndex = 10; + // + // txtnoreadynumber + // + this.txtnoreadynumber.Location = new System.Drawing.Point(87, 252); + this.txtnoreadynumber.Name = "txtnoreadynumber"; + this.txtnoreadynumber.Size = new System.Drawing.Size(1191, 20); + this.txtnoreadynumber.StyleController = this.layoutControl1; + this.txtnoreadynumber.TabIndex = 11; + // + // txtfinishnumber + // + this.txtfinishnumber.Location = new System.Drawing.Point(87, 276); + this.txtfinishnumber.Name = "txtfinishnumber"; + this.txtfinishnumber.Size = new System.Drawing.Size(1191, 20); + this.txtfinishnumber.StyleController = this.layoutControl1; + this.txtfinishnumber.TabIndex = 12; + // + // txtoutnumber + // + this.txtoutnumber.Location = new System.Drawing.Point(87, 300); + this.txtoutnumber.Name = "txtoutnumber"; + this.txtoutnumber.Size = new System.Drawing.Size(1191, 20); + this.txtoutnumber.StyleController = this.layoutControl1; + this.txtoutnumber.TabIndex = 13; + // + // txtreturnnumber + // + this.txtreturnnumber.Location = new System.Drawing.Point(87, 324); + this.txtreturnnumber.Name = "txtreturnnumber"; + this.txtreturnnumber.Size = new System.Drawing.Size(1191, 20); + this.txtreturnnumber.StyleController = this.layoutControl1; + this.txtreturnnumber.TabIndex = 14; + // + // txtnodelivernumber + // + this.txtnodelivernumber.Location = new System.Drawing.Point(87, 348); + this.txtnodelivernumber.Name = "txtnodelivernumber"; + this.txtnodelivernumber.Size = new System.Drawing.Size(1191, 20); + this.txtnodelivernumber.StyleController = this.layoutControl1; + this.txtnodelivernumber.TabIndex = 15; + // + // txtdelivernumber + // + this.txtdelivernumber.Location = new System.Drawing.Point(87, 372); + this.txtdelivernumber.Name = "txtdelivernumber"; + this.txtdelivernumber.Size = new System.Drawing.Size(1191, 20); + this.txtdelivernumber.StyleController = this.layoutControl1; + this.txtdelivernumber.TabIndex = 16; + // + // txtclosenumber + // + this.txtclosenumber.Location = new System.Drawing.Point(87, 396); + this.txtclosenumber.Name = "txtclosenumber"; + this.txtclosenumber.Size = new System.Drawing.Size(1191, 20); + this.txtclosenumber.StyleController = this.layoutControl1; + this.txtclosenumber.TabIndex = 17; + // + // txtnoclosenumber + // + this.txtnoclosenumber.Location = new System.Drawing.Point(87, 420); + this.txtnoclosenumber.Name = "txtnoclosenumber"; + this.txtnoclosenumber.Size = new System.Drawing.Size(1191, 20); + this.txtnoclosenumber.StyleController = this.layoutControl1; + this.txtnoclosenumber.TabIndex = 18; + // + // txtmaterialcost + // + this.txtmaterialcost.Location = new System.Drawing.Point(87, 444); + this.txtmaterialcost.Name = "txtmaterialcost"; + this.txtmaterialcost.Size = new System.Drawing.Size(1191, 20); + this.txtmaterialcost.StyleController = this.layoutControl1; + this.txtmaterialcost.TabIndex = 19; + // + // txtrealmaterialcost + // + this.txtrealmaterialcost.Location = new System.Drawing.Point(87, 468); + this.txtrealmaterialcost.Name = "txtrealmaterialcost"; + this.txtrealmaterialcost.Size = new System.Drawing.Size(1191, 20); + this.txtrealmaterialcost.StyleController = this.layoutControl1; + this.txtrealmaterialcost.TabIndex = 20; + // + // txtproductcode + // + this.txtproductcode.Location = new System.Drawing.Point(87, 492); + this.txtproductcode.Name = "txtproductcode"; + this.txtproductcode.Size = new System.Drawing.Size(1191, 20); + this.txtproductcode.StyleController = this.layoutControl1; + this.txtproductcode.TabIndex = 21; + // + // txtsalecode + // + this.txtsalecode.Location = new System.Drawing.Point(87, 516); + this.txtsalecode.Name = "txtsalecode"; + this.txtsalecode.Size = new System.Drawing.Size(1191, 20); + this.txtsalecode.StyleController = this.layoutControl1; + this.txtsalecode.TabIndex = 22; + // + // 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.layoutControlGroup1.Name = "layoutControlGroup1"; + this.layoutControlGroup1.Size = new System.Drawing.Size(1290, 733); + 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(1270, 24); + this.layoutControlItem1.Text = "id"; + this.layoutControlItem1.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem2 + // + this.layoutControlItem2.Control = this.txtproductid; + 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(72, 14); + // + // layoutControlItem3 + // + this.layoutControlItem3.Control = this.txtproductspec; + 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(72, 14); + // + // layoutControlItem4 + // + this.layoutControlItem4.Control = this.txtsalenumber; + 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(72, 14); + // + // layoutControlItem5 + // + this.layoutControlItem5.Control = this.txtunit; + 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(72, 14); + // + // layoutControlItem6 + // + this.layoutControlItem6.Control = this.txtunitprice; + 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(72, 14); + // + // layoutControlItem7 + // + this.layoutControlItem7.Control = this.txtmoney; + 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(72, 14); + // + // layoutControlItem8 + // + this.layoutControlItem8.Control = this.txtdeliverdate; + 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(72, 14); + // + // layoutControlItem9 + // + this.layoutControlItem9.Control = this.txtwarehouse; + 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(72, 14); + // + // layoutControlItem10 + // + this.layoutControlItem10.Control = this.txtreadynumber; + 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(72, 14); + // + // layoutControlItem11 + // + this.layoutControlItem11.Control = this.txtnoreadynumber; + 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(72, 14); + // + // layoutControlItem12 + // + this.layoutControlItem12.Control = this.txtfinishnumber; + this.layoutControlItem12.CustomizationFormText = "已完工量"; + 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 = "已完工量"; + this.layoutControlItem12.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem13 + // + this.layoutControlItem13.Control = this.txtoutnumber; + this.layoutControlItem13.CustomizationFormText = "已出货量"; + 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 = "已出货量"; + this.layoutControlItem13.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem14 + // + this.layoutControlItem14.Control = this.txtreturnnumber; + this.layoutControlItem14.CustomizationFormText = "退货量"; + 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 = "退货量"; + this.layoutControlItem14.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem15 + // + this.layoutControlItem15.Control = this.txtnodelivernumber; + this.layoutControlItem15.CustomizationFormText = "未交货数量"; + 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 = "未交货数量"; + this.layoutControlItem15.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem16 + // + this.layoutControlItem16.Control = this.txtdelivernumber; + this.layoutControlItem16.CustomizationFormText = "实际交货数量"; + 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 = "实际交货数量"; + this.layoutControlItem16.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem17 + // + this.layoutControlItem17.Control = this.txtclosenumber; + this.layoutControlItem17.CustomizationFormText = "已结算数量"; + 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 = "已结算数量"; + this.layoutControlItem17.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem18 + // + this.layoutControlItem18.Control = this.txtnoclosenumber; + this.layoutControlItem18.CustomizationFormText = "未结算数量"; + 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 = "未结算数量"; + this.layoutControlItem18.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem19 + // + this.layoutControlItem19.Control = this.txtmaterialcost; + this.layoutControlItem19.CustomizationFormText = "物料成本"; + 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 = "物料成本"; + this.layoutControlItem19.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem20 + // + this.layoutControlItem20.Control = this.txtrealmaterialcost; + this.layoutControlItem20.CustomizationFormText = "实际物料成本"; + 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 = "实际物料成本"; + this.layoutControlItem20.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem21 + // + this.layoutControlItem21.Control = this.txtproductcode; + this.layoutControlItem21.CustomizationFormText = "产品编号"; + 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 = "产品编号"; + this.layoutControlItem21.TextSize = new System.Drawing.Size(72, 14); + // + // layoutControlItem22 + // + this.layoutControlItem22.Control = this.txtsalecode; + this.layoutControlItem22.CustomizationFormText = "销售单号"; + this.layoutControlItem22.Location = new System.Drawing.Point(0, 504); + this.layoutControlItem22.Name = "layoutControlItem22"; + this.layoutControlItem22.Size = new System.Drawing.Size(1270, 209); + this.layoutControlItem22.Text = "销售单号"; + this.layoutControlItem22.TextSize = new System.Drawing.Size(72, 14); + // + // Frmsaledetail + // + 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 = "Frmsaledetail"; + this.Text = "Frmsaledetail"; + this.Load += new System.EventHandler(this.Frmsaledetail_Load); + this.Controls.SetChildIndex(this.xtraTabControl1, 0); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtproductid)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtunit)).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.txtproductid.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtproductspec.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsalenumber.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtunit.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtunitprice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtmoney.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliverdate.Properties.CalendarTimeProperties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliverdate.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtwarehouse.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtreadynumber.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtnoreadynumber.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtfinishnumber.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtoutnumber.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtreturnnumber.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtnodelivernumber.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdelivernumber.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtclosenumber.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtnoclosenumber.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtmaterialcost.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtrealmaterialcost.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtproductcode.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsalecode.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(); + this.ResumeLayout(false); + + } + + #endregion + + private XtraTabControl xtraTabControl1; + private XtraTabPage tabDataList; + private XtraTabPage tabDataDetail; + private DevExpress.XtraGrid.GridControl grdList; + private DevExpress.XtraGrid.Views.Grid.GridView grdListView; + private PanelControl panelControl2; + private DevExpress.XtraLayout.LayoutControl layoutControl1; + private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1; + + private DevExpress.XtraGrid.Columns.GridColumn gridColumn1; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn2; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn3; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn4; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn5; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn6; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn7; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn8; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn9; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn10; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn11; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn12; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn13; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn14; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn15; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn16; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn17; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn18; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn19; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn20; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn21; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn22; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn23; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtid; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtproductid; + + private DevExpress.XtraEditors.LookUpEdit txtproductid; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtproductspec; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsalenumber; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtunit; + + private DevExpress.XtraEditors.LookUpEdit txtunit; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtunitprice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtmoney; + /////////////////////////////// + private DevExpress.XtraEditors.DateEdit txtdeliverdate; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtwarehouse; + + private DevExpress.XtraEditors.LookUpEdit txtwarehouse; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtreadynumber; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtnoreadynumber; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtfinishnumber; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtoutnumber; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtreturnnumber; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtnodelivernumber; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtdelivernumber; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtclosenumber; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtnoclosenumber; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtmaterialcost; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtrealmaterialcost; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtproductcode; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsalecode; + + 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; + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmsaledetail.resx b/WinformGeneralDeveloperFrame/Form/Frmsaledetail.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmsaledetail.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/FrmBaseForm.cs b/WinformGeneralDeveloperFrame/FrmBaseForm.cs index 81a488d..fd73db9 100644 --- a/WinformGeneralDeveloperFrame/FrmBaseForm.cs +++ b/WinformGeneralDeveloperFrame/FrmBaseForm.cs @@ -51,10 +51,13 @@ namespace WinformGeneralDeveloperFrame this.xtraTab = xtraTab; this.gridControl = gridControl; this.gridView = gridView; + this.gridView.BestFitColumns(); this.controlGroups = controlGroups; + InitFormFunction(); InitToolBtntatus(EFormStatus.eInit); InitEvent(); } + public void InitFrom(XtraTabControl xtraTab, GridControl gridControl, GridView gridView, LayoutControlGroup[] controlGroups, object DataType,GridControl griddetail,string[] readcontrols) { if (griddetail != null) @@ -73,6 +76,11 @@ namespace WinformGeneralDeveloperFrame xtraTab.SelectedPageChanged += xtraTabControl1_SelectedPageChanged; gridControl.MouseDoubleClick += gridControl_MouseDoubleClick; } + + public virtual void InitFormFunction() + { + + } private void xtraTabControl1_SelectedPageChanged(object sender, DevExpress.XtraTab.TabPageChangedEventArgs e) { @@ -143,7 +151,7 @@ namespace WinformGeneralDeveloperFrame "保存成功!".ShowTips(); InitToolBtntatus(EFormStatus.eView); - InitgrdListDataSource(); + InitgrdListDataSourceFunction(); SetControlStatus(controlGroups, true); } @@ -193,6 +201,19 @@ namespace WinformGeneralDeveloperFrame } } + + public void InitgrdListDataSourceFunction() + { + if (gridView != null) + { + gridView.BestFitColumns(); + } + if (gridViewDetail != null) + { + gridViewDetail.BestFitColumns(); + } + InitgrdListDataSource(); + } public virtual void InitgrdListDataSource() { @@ -233,7 +254,7 @@ namespace WinformGeneralDeveloperFrame if (DelFunction()) { InitToolBtntatus(EFormStatus.eDelete); - InitgrdListDataSource(); + InitgrdListDataSourceFunction(); ClearScreen(); } } @@ -503,7 +524,7 @@ namespace WinformGeneralDeveloperFrame private void FrmBaseForm_Load(object sender, EventArgs e) { - InitgrdListDataSource(); + InitgrdListDataSourceFunction(); } } /// diff --git a/WinformGeneralDeveloperFrame/Properties/licenses.licx b/WinformGeneralDeveloperFrame/Properties/licenses.licx index c66bb47..1b53e67 100644 --- a/WinformGeneralDeveloperFrame/Properties/licenses.licx +++ b/WinformGeneralDeveloperFrame/Properties/licenses.licx @@ -1,28 +1,29 @@ -DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.Repository.RepositoryItemTreeListLookUpEdit, DevExpress.XtraTreeList.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraNavBar.NavBarControl, DevExpress.XtraNavBar.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraBars.Ribbon.RibbonControl, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.ComboBoxEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.PictureEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraCharts.ChartControl, DevExpress.XtraCharts.v19.2.UI, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.ProgressBarControl, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.Repository.RepositoryItemDateEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.Repository.RepositoryItemSearchLookUpEdit, DevExpress.XtraGrid.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraBars.BarManager, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.GridLookUpEdit, DevExpress.XtraGrid.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraTabbedMdi.XtraTabbedMdiManager, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a DevExpress.XtraEditors.DateEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.SearchLookUpEdit, DevExpress.XtraGrid.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.ImageComboBoxEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraLayout.LayoutControl, DevExpress.XtraLayout.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.TextEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraTreeList.TreeList, DevExpress.XtraTreeList.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.LookUpEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a DevExpress.XtraGrid.GridControl, DevExpress.XtraGrid.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraWizard.WizardControl, DevExpress.XtraWizard.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.Repository.RepositoryItemComboBox, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraDataLayout.DataLayoutControl, DevExpress.XtraLayout.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.CheckEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.TreeListLookUpEdit, DevExpress.XtraTreeList.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraNavBar.NavBarControl, DevExpress.XtraNavBar.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.Repository.RepositoryItemDateEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.ComboBoxEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.Repository.RepositoryItemTreeListLookUpEdit, DevExpress.XtraTreeList.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.LookUpEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.ProgressBarControl, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.Repository.RepositoryItemSearchLookUpEdit, DevExpress.XtraGrid.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.Repository.RepositoryItemGridLookUpEdit, DevExpress.XtraGrid.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraBars.Ribbon.RibbonControl, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraCharts.ChartControl, DevExpress.XtraCharts.v19.2.UI, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a DevExpress.XtraEditors.PopupGalleryEdit, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraTabbedMdi.XtraTabbedMdiManager, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.PictureEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraBars.BarManager, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.Repository.RepositoryItemComboBox, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.CheckEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.SearchLookUpEdit, DevExpress.XtraGrid.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraWizard.WizardControl, DevExpress.XtraWizard.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.TreeListLookUpEdit, DevExpress.XtraTreeList.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.GridLookUpEdit, DevExpress.XtraGrid.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.ImageComboBoxEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.TextEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraLayout.LayoutControl, DevExpress.XtraLayout.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraDataLayout.DataLayoutControl, DevExpress.XtraLayout.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraTreeList.TreeList, DevExpress.XtraTreeList.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a diff --git a/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj b/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj index 48fe3fb..c1e1ee3 100644 --- a/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj +++ b/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj @@ -143,6 +143,8 @@ + + @@ -177,6 +179,18 @@ Frmquotation.cs + + Form + + + Frmsale.cs + + + Form + + + Frmsaledetail.cs + Form @@ -351,6 +365,12 @@ Frmquotation.cs + + Frmsale.cs + + + Frmsaledetail.cs + Frmstock.cs