diff --git a/.vs/WinformGeneralDeveloperFrame/v16/.suo b/.vs/WinformGeneralDeveloperFrame/v16/.suo index e2f97a3..b35933d 100644 Binary files a/.vs/WinformGeneralDeveloperFrame/v16/.suo and b/.vs/WinformGeneralDeveloperFrame/v16/.suo differ diff --git a/WinformGeneralDeveloperFrame/DB/MESDB.cs b/WinformGeneralDeveloperFrame/DB/MESDB.cs index 7495dff..3e40900 100644 --- a/WinformGeneralDeveloperFrame/DB/MESDB.cs +++ b/WinformGeneralDeveloperFrame/DB/MESDB.cs @@ -52,5 +52,13 @@ namespace MES public virtual DbSet productBOMInfo { get; set; } public virtual DbSet productBOMdetailInfo { get; set; } + + public virtual DbSet requisitionInfo { get; set; } + + public virtual DbSet requisitiondetailInfo { get; set; } + + public virtual DbSet buyerInfo { get; set; } + + public virtual DbSet buyerdetailInfo { get; set; } } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/buyerInfo.cs b/WinformGeneralDeveloperFrame/Entity/buyerInfo.cs new file mode 100644 index 0000000..e2a638e --- /dev/null +++ b/WinformGeneralDeveloperFrame/Entity/buyerInfo.cs @@ -0,0 +1,43 @@ +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("buyer")] + public partial class buyerInfo + { + ///id + [ModelBindControl("txtid")] + public int id{set;get;} + ///采购单号 + [ModelBindControl("txtbuyercode")] + public string buyercode{set;get;} + ///采购日期 + [ModelBindControl("txtbuyerdate")] + public DateTime buyerdate{set;get;}=DateTime.Now; + ///供应商 + [ModelBindControl("txtsupplierid")] + public int supplierid{set;get;} + ///供应商编码 + [ModelBindControl("txtsuppliercode")] + public string suppliercode{set;get;} + ///完货日期 + [ModelBindControl("txtdeliverdate")] + public DateTime deliverdate{set;get;}=DateTime.Now; + ///制单人 + [ModelBindControl("txtcreatorId")] + public int creatorId{set;get;} + ///金额 + [ModelBindControl("txttotalprice")] + public decimal totalprice{set;get;} + ///备注 + [ModelBindControl("txtremark")] + public string remark{set;get;} + + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/buyerdetailInfo.cs b/WinformGeneralDeveloperFrame/Entity/buyerdetailInfo.cs new file mode 100644 index 0000000..280d910 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Entity/buyerdetailInfo.cs @@ -0,0 +1,75 @@ +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("buyerdetail")] + public partial class buyerdetailInfo + { + ///id + [ModelBindControl("txtid")] + public int id{set;get;} + ///主表 + [ModelBindControl("txtbuyerid")] + public int buyerid{set;get;} + ///采购单号 + [ModelBindControl("txtbuyercode")] + public string buyercode{set;get;} + ///请购单号 + [ModelBindControl("txtrequisitioncode")] + public string requisitioncode{set;get;} + ///物料 + [ModelBindControl("txtmaterialid")] + public int materialid{set;get;} + ///物料编码 + [ModelBindControl("txtmaterialcode")] + public string materialcode{set;get;} + ///规格型号 + [ModelBindControl("txtmaterialspec")] + public string materialspec{set;get;} + ///计量单位 + [ModelBindControl("txtmaterialunit")] + public int materialunit{set;get;} + ///请购数量 + [ModelBindControl("txtbuyernumber")] + public decimal buyernumber{set;get;} + ///单价 + [ModelBindControl("txtunitprice")] + public decimal unitprice{set;get;} + ///金额 + [ModelBindControl("txtmoney")] + public decimal money{set;get;} + ///仓库 + [ModelBindControl("txtwarehouse")] + public int warehouse{set;get;} + ///交货总量 + [ModelBindControl("txtdelivernumber")] + public decimal delivernumber{set;get;} + ///退货总量 + [ModelBindControl("txtreturnnumber")] + public decimal returnnumber{set;get;} + ///实际交货总量 + [ModelBindControl("txtrealdelivernumber")] + public decimal realdelivernumber{set;get;} + ///未交货数量 + [ModelBindControl("txtnodelivernumber")] + public decimal nodelivernumber{set;get;} + ///已结算数量 + [ModelBindControl("txtfinishnumber")] + public decimal finishnumber{set;get;} + ///未结算数量 + [ModelBindControl("txtnofinishnumber")] + public decimal nofinishnumber{set;get;} + ///备注 + [ModelBindControl("txtremark")] + public string remark{set;get;} + ///明细号 + [ModelBindControl("txtbuyerdetailcode")] + public string buyerdetailcode { set; get; } + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/deliversaledetailInfo.cs b/WinformGeneralDeveloperFrame/Entity/deliversaledetailInfo.cs index 49ca7ca..7e363d4 100644 --- a/WinformGeneralDeveloperFrame/Entity/deliversaledetailInfo.cs +++ b/WinformGeneralDeveloperFrame/Entity/deliversaledetailInfo.cs @@ -44,6 +44,10 @@ namespace MES.Entity ///备注 [ModelBindControl("txtremark")] public string remark{set;get;} - + ///明细号 + [ModelBindControl("txtdeliversaledetailcode")] + public string deliversaledetailcode { set; get; } + + } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/productBOMInfo.cs b/WinformGeneralDeveloperFrame/Entity/productBOMInfo.cs index f07a1f0..667569d 100644 --- a/WinformGeneralDeveloperFrame/Entity/productBOMInfo.cs +++ b/WinformGeneralDeveloperFrame/Entity/productBOMInfo.cs @@ -50,5 +50,18 @@ namespace MES.Entity /// [ModelBindControl("txtunitcost")] public decimal unitcost { set; get; } + + ///创建人 + [ModelBindControl("txtcreatorId")] + public int creatorId { set; get; } + ///创建时间 + [ModelBindControl("txtcreateTime")] + public DateTime createTime { set; get; } = DateTime.Now; + ///编辑人 + [ModelBindControl("txteditorId")] + public int editorId { set; get; } + ///编辑时间 + [ModelBindControl("txteditTime")] + public DateTime editTime { set; get; } = DateTime.Now; } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/productBOMdetailInfo.cs b/WinformGeneralDeveloperFrame/Entity/productBOMdetailInfo.cs index decf99c..93983d3 100644 --- a/WinformGeneralDeveloperFrame/Entity/productBOMdetailInfo.cs +++ b/WinformGeneralDeveloperFrame/Entity/productBOMdetailInfo.cs @@ -60,5 +60,8 @@ namespace MES.Entity [ModelBindControl("txtremark")] public string remark{set;get;} + ///明细号 + [ModelBindControl("txtproductBOMdetailcode")] + public string productBOMdetailcode { set; get; } } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/quotationdetailInfo.cs b/WinformGeneralDeveloperFrame/Entity/quotationdetailInfo.cs index df8ab79..8ab7610 100644 --- a/WinformGeneralDeveloperFrame/Entity/quotationdetailInfo.cs +++ b/WinformGeneralDeveloperFrame/Entity/quotationdetailInfo.cs @@ -50,6 +50,9 @@ namespace MES.Entity ///备注 [ModelBindControl("txtremark")] public string remark{set;get;} - + ///明细号 + [ModelBindControl("txtquotationdetailcode")] + public string quotationdetailcode { set; get; } } + } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/requisitionInfo.cs b/WinformGeneralDeveloperFrame/Entity/requisitionInfo.cs new file mode 100644 index 0000000..82ddb33 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Entity/requisitionInfo.cs @@ -0,0 +1,40 @@ +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("requisition")] + public partial class requisitionInfo + { + ///id + [ModelBindControl("txtid")] + public int id{set;get;} + ///请购单编号 + [ModelBindControl("txtrequisitioncode")] + public string requisitioncode{set;get;} + ///请购部门 + [ModelBindControl("txtdeptid")] + public int deptid{set;get;} + ///请购日期 + [ModelBindControl("txtrequisitiondate")] + public DateTime requisitiondate{set;get;}=DateTime.Now; + ///交货日期 + [ModelBindControl("txtdeliverdate")] + public DateTime deliverdate{set;get;}=DateTime.Now; + ///制单人 + [ModelBindControl("txtcreatorId")] + public int creatorId{set;get;} + ///金额 + [ModelBindControl("txttotalprice")] + public decimal totalprice{set;get;} + ///备注 + [ModelBindControl("txtremark")] + public decimal remark{set;get;} + + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/requisitiondetailInfo.cs b/WinformGeneralDeveloperFrame/Entity/requisitiondetailInfo.cs new file mode 100644 index 0000000..1d17261 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Entity/requisitiondetailInfo.cs @@ -0,0 +1,55 @@ +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("requisitiondetail")] + public partial class requisitiondetailInfo + { + ///id + [ModelBindControl("txtid")] + public int id{set;get;} + ///请购单主表 + [ModelBindControl("txtrequisitionid")] + public int requisitionid{set;get;} + ///请购单号 + [ModelBindControl("txtrequisitioncode")] + public string requisitioncode{set;get;} + ///物料名称 + [ModelBindControl("txtmaterialid")] + public int materialid{set;get;} + ///物料编码 + [ModelBindControl("txtmaterialcode")] + public string materialcode{set;get;} + ///规格型号 + [ModelBindControl("txtmaterialspec")] + public string materialspec{set;get;} + ///计量单位 + [ModelBindControl("txtmaterialunit")] + public int materialunit{set;get;} + ///请购数量 + [ModelBindControl("txtrequisitionnumber")] + public decimal requisitionnumber{set;get;} + ///单价 + [ModelBindControl("txtunitprice")] + public decimal unitprice{set;get;} + ///金额 + [ModelBindControl("txtmoney")] + public decimal money{set;get;} + ///仓库 + [ModelBindControl("txtwarehouse")] + public int warehouse{set;get;} + ///备注 + [ModelBindControl("txtremark")] + public string remark{set;get;} + + ///明细号 + [ModelBindControl("txtrequisitiondetailcode")] + public string requisitiondetailcode { set; get; } + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/returnsaledetailInfo.cs b/WinformGeneralDeveloperFrame/Entity/returnsaledetailInfo.cs index bc0f03c..557f5a0 100644 --- a/WinformGeneralDeveloperFrame/Entity/returnsaledetailInfo.cs +++ b/WinformGeneralDeveloperFrame/Entity/returnsaledetailInfo.cs @@ -48,5 +48,8 @@ namespace MES.Entity [ModelBindControl("txtremark")] public string remark{set;get;} + ///明细号 + [ModelBindControl("txtreturnsaledetailcode")] + public string returnsaledetailcode { set; get; } } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/saledetailInfo.cs b/WinformGeneralDeveloperFrame/Entity/saledetailInfo.cs index 4d4bc0d..d1d5b65 100644 --- a/WinformGeneralDeveloperFrame/Entity/saledetailInfo.cs +++ b/WinformGeneralDeveloperFrame/Entity/saledetailInfo.cs @@ -81,5 +81,8 @@ namespace MES.Entity [ModelBindControl("txtsalecode")] public string salecode{set;get;} + ///明细号 + [ModelBindControl("txtsaledetailcode")] + public string saledetailcode { set; get; } } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmdeliversaledetail.cs b/WinformGeneralDeveloperFrame/Form/Frmbuyer.cs similarity index 50% rename from WinformGeneralDeveloperFrame/Form/Frmdeliversaledetail.cs rename to WinformGeneralDeveloperFrame/Form/Frmbuyer.cs index 2b40d84..0d5ffde 100644 --- a/WinformGeneralDeveloperFrame/Form/Frmdeliversaledetail.cs +++ b/WinformGeneralDeveloperFrame/Form/Frmbuyer.cs @@ -14,33 +14,42 @@ using System.Data.Entity.Migrations; using System.Data.Entity; namespace MES.Form { - public partial class Frmdeliversaledetail : FrmBaseForm + public partial class Frmbuyer : FrmBaseForm { private Dictionary fieldDictionary = new Dictionary(); - public Frmdeliversaledetail() + public Frmbuyer() { InitializeComponent(); } - private void Frmdeliversaledetail_Load(object sender, EventArgs e) + private void Frmbuyer_Load(object sender, EventArgs e) { - - InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new deliversaledetailInfo()); + InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new buyerInfo(),gridControl1,new []{ "txtbuyercode", "txttotalprice" }); InitSearchDicData(); + repositoryItemTextEditrequisitioncode.KeyDown += RepositoryItemTextEditrequisitioncode_KeyDown; + + } + + private void RepositoryItemTextEditrequisitioncode_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) + { + using (var db = new MESDB()) + { + // requisitiondetailInfo requisitiondetail=db.requisitiondetailInfo.Where(p=>p.re) + } + } } + /// - /// 数据源初始化 - /// - /// - private void Init() + /// 数据源初始化 + /// + /// + private void Init() { - - - - - txtwarehouse.Properties.DataSource = GetDataTableUtils.SqlTable("仓库"); - repositoryItemtxtwarehouse.DataSource= GetDataTableUtils.SqlTable("仓库"); - - + txtsupplierid.Properties.DataSource = GetDataTableUtils.SqlTable("物料"); + repositoryItemtxtsupplierid.DataSource= GetDataTableUtils.SqlTable("物料"); + txtcreatorId.Properties.DataSource = GetDataTableUtils.SqlTable("用户"); + repositoryItemtxtcreatorId.DataSource= GetDataTableUtils.SqlTable("用户"); } /// /// 搜索字段 @@ -48,8 +57,14 @@ namespace MES.Form /// private void InitSearchDicData() { - fieldDictionary.Add("销售单号","salecode"); - fieldDictionary.Add("出库单号","deliversalecode"); + fieldDictionary.Add("id","id"); + fieldDictionary.Add("采购单号","buyercode"); + fieldDictionary.Add("采购日期","buyerdate"); + fieldDictionary.Add("供应商","supplierid"); + fieldDictionary.Add("供应商编码","suppliercode"); + fieldDictionary.Add("完货日期","deliverdate"); + fieldDictionary.Add("制单人","creatorId"); + fieldDictionary.Add("金额","totalprice"); fieldDictionary.Add("备注","remark"); } @@ -57,7 +72,7 @@ namespace MES.Form { using (var con=new MESDB())/// { - grdList.DataSource=con.deliversaledetailInfo.ToList(); + grdList.DataSource=con.buyerInfo.ToList(); } Init(); } @@ -67,58 +82,40 @@ namespace MES.Form /// public override bool CheckInput() { - if(string.IsNullOrEmpty(txtdeliversaleid.EditValue.ToString())) + if(string.IsNullOrEmpty(txtbuyerdate.EditValue.ToString())) { - "出货单不能为空".ShowWarning(); - txtdeliversaleid.Focus(); + "采购日期不能为空".ShowWarning(); + txtbuyerdate.Focus(); return false; } - if(string.IsNullOrEmpty(txtsalecode.EditValue.ToString())) + if(string.IsNullOrEmpty(txtsupplierid.EditValue.ToString())) { - "销售单号不能为空".ShowWarning(); - txtsalecode.Focus(); + "供应商不能为空".ShowWarning(); + txtsupplierid.Focus(); return false; } - if(string.IsNullOrEmpty(txtproductname.EditValue.ToString())) + if(string.IsNullOrEmpty(txtsuppliercode.EditValue.ToString())) { - "产品名称不能为空".ShowWarning(); - txtproductname.Focus(); + "供应商编码不能为空".ShowWarning(); + txtsuppliercode.Focus(); return false; } - if(string.IsNullOrEmpty(txtproductcode.EditValue.ToString())) + if(string.IsNullOrEmpty(txtdeliverdate.EditValue.ToString())) { - "产品编号不能为空".ShowWarning(); - txtproductcode.Focus(); + "完货日期不能为空".ShowWarning(); + txtdeliverdate.Focus(); return false; } - if(string.IsNullOrEmpty(txtproductspec.EditValue.ToString())) + if(string.IsNullOrEmpty(txtcreatorId.EditValue.ToString())) { - "规格型号不能为空".ShowWarning(); - txtproductspec.Focus(); + "制单人不能为空".ShowWarning(); + txtcreatorId.Focus(); return false; } - if(string.IsNullOrEmpty(txtwarehouse.EditValue.ToString())) + if(string.IsNullOrEmpty(txttotalprice.EditValue.ToString())) { - "仓库不能为空".ShowWarning(); - txtwarehouse.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtnumber.EditValue.ToString())) - { - "出货数量不能为空".ShowWarning(); - txtnumber.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtunit.EditValue.ToString())) - { - "计量单位不能为空".ShowWarning(); - txtunit.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtdeliversalecode.EditValue.ToString())) - { - "出库单号不能为空".ShowWarning(); - txtdeliversalecode.Focus(); + "金额不能为空".ShowWarning(); + txttotalprice.Focus(); return false; } return true; @@ -131,10 +128,10 @@ namespace MES.Form { try { - deliversaledetailInfo info= (deliversaledetailInfo)this.ControlDataToModel(new deliversaledetailInfo()); + buyerInfo info= (buyerInfo)this.ControlDataToModel(new buyerInfo()); using (var db = new MESDB()) { - db.deliversaledetailInfo.AddOrUpdate(info); + db.buyerInfo.AddOrUpdate(info); db.SaveChanges(); } } @@ -153,7 +150,7 @@ namespace MES.Form { try { - deliversaledetailInfo info = (deliversaledetailInfo)this.ControlDataToModel(new deliversaledetailInfo()); + buyerInfo info = (buyerInfo)this.ControlDataToModel(new buyerInfo()); using (var db = new MESDB()) { db.Entry(info).State=EntityState.Deleted; @@ -181,11 +178,11 @@ namespace MES.Form { if (string.IsNullOrEmpty(sql)) { - grdList.DataSource = db.deliversaledetailInfo.SqlQuery("select * from deliversaledetail").ToList(); + grdList.DataSource = db.buyerInfo.SqlQuery("select * from buyer").ToList(); } else { - grdList.DataSource = db.deliversaledetailInfo.SqlQuery($"select * from deliversaledetail where {sql}").ToList(); + grdList.DataSource = db.buyerInfo.SqlQuery($"select * from buyer where {sql}").ToList(); } } } diff --git a/WinformGeneralDeveloperFrame/Form/Frmbuyer.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmbuyer.designer.cs new file mode 100644 index 0000000..2707813 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmbuyer.designer.cs @@ -0,0 +1,1046 @@ + +using DevExpress.XtraEditors; +using DevExpress.XtraLayout; +using DevExpress.XtraTab; + +namespace MES.Form +{ + partial class Frmbuyer + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxtsupplierid = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxtcreatorId = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn9 = 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.xtraTabControl2 = new DevExpress.XtraTab.XtraTabControl(); + this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage(); + this.gridControl1 = new DevExpress.XtraGrid.GridControl(); + this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); + 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.repositoryItemLookUpEditwarehouse = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn14 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemLookUpEditmaterialid = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn15 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn16 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn17 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemLookUpEditmaterialunit = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn18 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn19 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn20 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn21 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn22 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn23 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn24 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn25 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn26 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn27 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn28 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemGridLookUpEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemGridLookUpEdit(); + this.repositoryItemGridLookUpEdit1View = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.repositoryItemSearchLookUpEditrequisitioncode = new DevExpress.XtraEditors.Repository.RepositoryItemSearchLookUpEdit(); + this.repositoryItemSearchLookUpEdit1View = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.repositoryItemGridLookUpEditrequisitioncode = new DevExpress.XtraEditors.Repository.RepositoryItemGridLookUpEdit(); + this.repositoryItemGridLookUpEdit2View = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.txtid = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyercode = new DevExpress.XtraEditors.TextEdit(); + this.txtbuyerdate = new DevExpress.XtraEditors.DateEdit(); + this.txtsupplierid = new DevExpress.XtraEditors.LookUpEdit(); + this.txtsuppliercode = new DevExpress.XtraEditors.TextEdit(); + this.txtdeliverdate = new DevExpress.XtraEditors.DateEdit(); + this.txtcreatorId = new DevExpress.XtraEditors.LookUpEdit(); + this.txttotalprice = new DevExpress.XtraEditors.TextEdit(); + this.txtremark = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); + this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); + this.repositoryItemTextEditrequisitioncode = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); + this.gridColumn29 = new DevExpress.XtraGrid.Columns.GridColumn(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtsupplierid)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcreatorId)).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.xtraTabControl2)).BeginInit(); + this.xtraTabControl2.SuspendLayout(); + this.xtraTabPage1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditwarehouse)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditmaterialid)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditmaterialunit)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEdit1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEdit1View)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEditrequisitioncode)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEdit1View)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEditrequisitioncode)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEdit2View)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyercode.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyerdate.Properties.CalendarTimeProperties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyerdate.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsupplierid.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsuppliercode.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliverdate.Properties.CalendarTimeProperties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliverdate.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreatorId.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttotalprice.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEditrequisitioncode)).BeginInit(); + this.SuspendLayout(); + // + // gridColumn1 + // + this.gridColumn1.Caption = "id"; + this.gridColumn1.FieldName = "id"; + this.gridColumn1.Name = "gridColumn1"; + // + // gridColumn2 + // + this.gridColumn2.Caption = "采购单号"; + this.gridColumn2.FieldName = "buyercode"; + 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 = "buyerdate"; + this.gridColumn3.Name = "gridColumn3"; + this.gridColumn3.Visible = true; + this.gridColumn3.VisibleIndex = 1; + this.gridColumn3.Width = 201; + // + // gridColumn4 + // + this.gridColumn4.Caption = "供应商"; + this.gridColumn4.ColumnEdit = this.repositoryItemtxtsupplierid; + this.gridColumn4.FieldName = "supplierid"; + this.gridColumn4.Name = "gridColumn4"; + this.gridColumn4.Visible = true; + this.gridColumn4.VisibleIndex = 2; + this.gridColumn4.Width = 201; + // + // repositoryItemtxtsupplierid + // + this.repositoryItemtxtsupplierid.AutoHeight = false; + this.repositoryItemtxtsupplierid.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtsupplierid.DisplayMember = "Name"; + this.repositoryItemtxtsupplierid.Name = "repositoryItemtxtsupplierid"; + this.repositoryItemtxtsupplierid.ValueMember = "ID"; + // + // gridColumn5 + // + this.gridColumn5.Caption = "供应商编码"; + this.gridColumn5.FieldName = "suppliercode"; + this.gridColumn5.Name = "gridColumn5"; + this.gridColumn5.Visible = true; + this.gridColumn5.VisibleIndex = 3; + this.gridColumn5.Width = 201; + // + // gridColumn6 + // + this.gridColumn6.Caption = "完货日期"; + this.gridColumn6.DisplayFormat.FormatString = "G"; + this.gridColumn6.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.gridColumn6.FieldName = "deliverdate"; + this.gridColumn6.Name = "gridColumn6"; + this.gridColumn6.Visible = true; + this.gridColumn6.VisibleIndex = 4; + this.gridColumn6.Width = 201; + // + // gridColumn7 + // + this.gridColumn7.Caption = "制单人"; + this.gridColumn7.ColumnEdit = this.repositoryItemtxtcreatorId; + this.gridColumn7.FieldName = "creatorId"; + this.gridColumn7.Name = "gridColumn7"; + this.gridColumn7.Visible = true; + this.gridColumn7.VisibleIndex = 5; + this.gridColumn7.Width = 201; + // + // repositoryItemtxtcreatorId + // + this.repositoryItemtxtcreatorId.AutoHeight = false; + this.repositoryItemtxtcreatorId.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtcreatorId.DisplayMember = "Name"; + this.repositoryItemtxtcreatorId.Name = "repositoryItemtxtcreatorId"; + this.repositoryItemtxtcreatorId.ValueMember = "ID"; + // + // gridColumn8 + // + this.gridColumn8.Caption = "金额"; + this.gridColumn8.FieldName = "totalprice"; + this.gridColumn8.Name = "gridColumn8"; + this.gridColumn8.Visible = true; + this.gridColumn8.VisibleIndex = 6; + this.gridColumn8.Width = 201; + // + // gridColumn9 + // + this.gridColumn9.Caption = "备注"; + this.gridColumn9.FieldName = "remark"; + this.gridColumn9.Name = "gridColumn9"; + this.gridColumn9.Visible = true; + this.gridColumn9.VisibleIndex = 7; + this.gridColumn9.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.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.xtraTabControl2); + this.layoutControl1.Controls.Add(this.txtid); + this.layoutControl1.Controls.Add(this.txtbuyercode); + this.layoutControl1.Controls.Add(this.txtbuyerdate); + this.layoutControl1.Controls.Add(this.txtsupplierid); + this.layoutControl1.Controls.Add(this.txtsuppliercode); + this.layoutControl1.Controls.Add(this.txtdeliverdate); + this.layoutControl1.Controls.Add(this.txtcreatorId); + this.layoutControl1.Controls.Add(this.txttotalprice); + 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(1290, 733); + this.layoutControl1.TabIndex = 6; + this.layoutControl1.Text = "layoutControl1"; + // + // xtraTabControl2 + // + this.xtraTabControl2.Location = new System.Drawing.Point(12, 132); + this.xtraTabControl2.Name = "xtraTabControl2"; + this.xtraTabControl2.SelectedTabPage = this.xtraTabPage1; + this.xtraTabControl2.Size = new System.Drawing.Size(1266, 589); + this.xtraTabControl2.TabIndex = 10; + this.xtraTabControl2.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { + this.xtraTabPage1}); + // + // xtraTabPage1 + // + this.xtraTabPage1.Controls.Add(this.gridControl1); + this.xtraTabPage1.Name = "xtraTabPage1"; + this.xtraTabPage1.Size = new System.Drawing.Size(1260, 560); + this.xtraTabPage1.Text = "采购明细"; + // + // gridControl1 + // + this.gridControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.gridControl1.Location = new System.Drawing.Point(0, 0); + this.gridControl1.MainView = this.gridView1; + this.gridControl1.Name = "gridControl1"; + this.gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { + this.repositoryItemGridLookUpEdit1, + this.repositoryItemLookUpEditmaterialid, + this.repositoryItemLookUpEditwarehouse, + this.repositoryItemLookUpEditmaterialunit, + this.repositoryItemSearchLookUpEditrequisitioncode, + this.repositoryItemGridLookUpEditrequisitioncode, + this.repositoryItemTextEditrequisitioncode}); + this.gridControl1.Size = new System.Drawing.Size(1260, 560); + this.gridControl1.TabIndex = 1; + this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { + this.gridView1}); + // + // gridView1 + // + this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { + this.gridColumn10, + this.gridColumn11, + this.gridColumn12, + this.gridColumn13, + this.gridColumn14, + this.gridColumn15, + this.gridColumn16, + this.gridColumn17, + this.gridColumn18, + this.gridColumn19, + this.gridColumn20, + this.gridColumn21, + this.gridColumn22, + this.gridColumn23, + this.gridColumn24, + this.gridColumn25, + this.gridColumn26, + this.gridColumn27, + this.gridColumn28, + this.gridColumn29}); + this.gridView1.GridControl = this.gridControl1; + this.gridView1.Name = "gridView1"; + this.gridView1.OptionsBehavior.Editable = false; + this.gridView1.OptionsView.ColumnAutoWidth = false; + // + // gridColumn10 + // + this.gridColumn10.Caption = "id"; + this.gridColumn10.FieldName = "id"; + this.gridColumn10.Name = "gridColumn10"; + // + // gridColumn11 + // + this.gridColumn11.Caption = "主表"; + this.gridColumn11.FieldName = "buyerid"; + this.gridColumn11.Name = "gridColumn11"; + this.gridColumn11.Width = 201; + // + // gridColumn12 + // + this.gridColumn12.Caption = "采购单号"; + this.gridColumn12.FieldName = "buyercode"; + this.gridColumn12.Name = "gridColumn12"; + this.gridColumn12.Width = 201; + // + // gridColumn13 + // + this.gridColumn13.Caption = "请购单号"; + this.gridColumn13.ColumnEdit = this.repositoryItemTextEditrequisitioncode; + this.gridColumn13.FieldName = "requisitioncode"; + this.gridColumn13.Name = "gridColumn13"; + this.gridColumn13.Visible = true; + this.gridColumn13.VisibleIndex = 1; + this.gridColumn13.Width = 201; + // + // repositoryItemLookUpEditwarehouse + // + this.repositoryItemLookUpEditwarehouse.AutoHeight = false; + this.repositoryItemLookUpEditwarehouse.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemLookUpEditwarehouse.DisplayMember = "Name"; + this.repositoryItemLookUpEditwarehouse.Name = "repositoryItemLookUpEditwarehouse"; + this.repositoryItemLookUpEditwarehouse.NullText = ""; + this.repositoryItemLookUpEditwarehouse.ValueMember = "ID"; + // + // gridColumn14 + // + this.gridColumn14.Caption = "物料"; + this.gridColumn14.ColumnEdit = this.repositoryItemLookUpEditmaterialid; + this.gridColumn14.FieldName = "materialid"; + this.gridColumn14.Name = "gridColumn14"; + this.gridColumn14.OptionsColumn.AllowEdit = false; + this.gridColumn14.Visible = true; + this.gridColumn14.VisibleIndex = 2; + this.gridColumn14.Width = 201; + // + // repositoryItemLookUpEditmaterialid + // + this.repositoryItemLookUpEditmaterialid.AutoHeight = false; + this.repositoryItemLookUpEditmaterialid.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemLookUpEditmaterialid.DisplayMember = "Name"; + this.repositoryItemLookUpEditmaterialid.Name = "repositoryItemLookUpEditmaterialid"; + this.repositoryItemLookUpEditmaterialid.ValueMember = "ID"; + // + // gridColumn15 + // + this.gridColumn15.Caption = "物料编码"; + this.gridColumn15.FieldName = "materialcode"; + this.gridColumn15.Name = "gridColumn15"; + this.gridColumn15.OptionsColumn.AllowEdit = false; + this.gridColumn15.Visible = true; + this.gridColumn15.VisibleIndex = 2; + this.gridColumn15.Width = 201; + // + // gridColumn16 + // + this.gridColumn16.Caption = "规格型号"; + this.gridColumn16.FieldName = "materialspec"; + this.gridColumn16.Name = "gridColumn16"; + this.gridColumn16.OptionsColumn.AllowEdit = false; + this.gridColumn16.Visible = true; + this.gridColumn16.VisibleIndex = 3; + this.gridColumn16.Width = 201; + // + // gridColumn17 + // + this.gridColumn17.Caption = "计量单位"; + this.gridColumn17.ColumnEdit = this.repositoryItemLookUpEditmaterialunit; + this.gridColumn17.FieldName = "materialunit"; + this.gridColumn17.Name = "gridColumn17"; + this.gridColumn17.OptionsColumn.AllowEdit = false; + this.gridColumn17.Visible = true; + this.gridColumn17.VisibleIndex = 5; + this.gridColumn17.Width = 201; + // + // repositoryItemLookUpEditmaterialunit + // + this.repositoryItemLookUpEditmaterialunit.AutoHeight = false; + this.repositoryItemLookUpEditmaterialunit.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemLookUpEditmaterialunit.DisplayMember = "Name"; + this.repositoryItemLookUpEditmaterialunit.Name = "repositoryItemLookUpEditmaterialunit"; + this.repositoryItemLookUpEditmaterialunit.ValueMember = "ID"; + // + // gridColumn18 + // + this.gridColumn18.Caption = "请购数量"; + this.gridColumn18.FieldName = "buyernumber"; + this.gridColumn18.Name = "gridColumn18"; + this.gridColumn18.Visible = true; + this.gridColumn18.VisibleIndex = 5; + this.gridColumn18.Width = 201; + // + // gridColumn19 + // + this.gridColumn19.Caption = "单价"; + this.gridColumn19.FieldName = "unitprice"; + this.gridColumn19.Name = "gridColumn19"; + this.gridColumn19.Visible = true; + this.gridColumn19.VisibleIndex = 6; + this.gridColumn19.Width = 201; + // + // gridColumn20 + // + this.gridColumn20.Caption = "金额"; + this.gridColumn20.FieldName = "money"; + this.gridColumn20.Name = "gridColumn20"; + this.gridColumn20.Visible = true; + this.gridColumn20.VisibleIndex = 7; + this.gridColumn20.Width = 201; + // + // gridColumn21 + // + this.gridColumn21.Caption = "仓库"; + this.gridColumn21.ColumnEdit = this.repositoryItemLookUpEditwarehouse; + this.gridColumn21.FieldName = "warehouse"; + this.gridColumn21.Name = "gridColumn21"; + this.gridColumn21.OptionsColumn.AllowEdit = false; + this.gridColumn21.Visible = true; + this.gridColumn21.VisibleIndex = 9; + this.gridColumn21.Width = 201; + // + // gridColumn22 + // + this.gridColumn22.Caption = "交货总量"; + this.gridColumn22.FieldName = "delivernumber"; + this.gridColumn22.Name = "gridColumn22"; + this.gridColumn22.OptionsColumn.AllowEdit = false; + this.gridColumn22.Visible = true; + this.gridColumn22.VisibleIndex = 9; + this.gridColumn22.Width = 201; + // + // gridColumn23 + // + this.gridColumn23.Caption = "退货总量"; + this.gridColumn23.FieldName = "returnnumber"; + this.gridColumn23.Name = "gridColumn23"; + this.gridColumn23.OptionsColumn.AllowEdit = false; + this.gridColumn23.Visible = true; + this.gridColumn23.VisibleIndex = 10; + this.gridColumn23.Width = 201; + // + // gridColumn24 + // + this.gridColumn24.Caption = "实际交货总量"; + this.gridColumn24.FieldName = "realdelivernumber"; + this.gridColumn24.Name = "gridColumn24"; + this.gridColumn24.OptionsColumn.AllowEdit = false; + this.gridColumn24.Visible = true; + this.gridColumn24.VisibleIndex = 11; + this.gridColumn24.Width = 201; + // + // gridColumn25 + // + this.gridColumn25.Caption = "未交货数量"; + this.gridColumn25.FieldName = "nodelivernumber"; + this.gridColumn25.Name = "gridColumn25"; + this.gridColumn25.OptionsColumn.AllowEdit = false; + this.gridColumn25.Visible = true; + this.gridColumn25.VisibleIndex = 12; + 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 = 13; + this.gridColumn26.Width = 201; + // + // gridColumn27 + // + this.gridColumn27.Caption = "未结算数量"; + this.gridColumn27.FieldName = "nofinishnumber"; + this.gridColumn27.Name = "gridColumn27"; + this.gridColumn27.OptionsColumn.AllowEdit = false; + this.gridColumn27.Visible = true; + this.gridColumn27.VisibleIndex = 14; + this.gridColumn27.Width = 201; + // + // gridColumn28 + // + this.gridColumn28.Caption = "备注"; + this.gridColumn28.FieldName = "remark"; + this.gridColumn28.Name = "gridColumn28"; + this.gridColumn28.Visible = true; + this.gridColumn28.VisibleIndex = 15; + this.gridColumn28.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.Name = "repositoryItemGridLookUpEdit1"; + this.repositoryItemGridLookUpEdit1.PopupView = this.repositoryItemGridLookUpEdit1View; + // + // repositoryItemGridLookUpEdit1View + // + this.repositoryItemGridLookUpEdit1View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus; + this.repositoryItemGridLookUpEdit1View.Name = "repositoryItemGridLookUpEdit1View"; + this.repositoryItemGridLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false; + this.repositoryItemGridLookUpEdit1View.OptionsView.ShowGroupPanel = false; + // + // repositoryItemSearchLookUpEditrequisitioncode + // + this.repositoryItemSearchLookUpEditrequisitioncode.AutoHeight = false; + this.repositoryItemSearchLookUpEditrequisitioncode.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemSearchLookUpEditrequisitioncode.Name = "repositoryItemSearchLookUpEditrequisitioncode"; + this.repositoryItemSearchLookUpEditrequisitioncode.PopupView = this.repositoryItemSearchLookUpEdit1View; + // + // repositoryItemSearchLookUpEdit1View + // + this.repositoryItemSearchLookUpEdit1View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus; + this.repositoryItemSearchLookUpEdit1View.Name = "repositoryItemSearchLookUpEdit1View"; + this.repositoryItemSearchLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false; + this.repositoryItemSearchLookUpEdit1View.OptionsView.ShowGroupPanel = false; + // + // repositoryItemGridLookUpEditrequisitioncode + // + this.repositoryItemGridLookUpEditrequisitioncode.AutoHeight = false; + this.repositoryItemGridLookUpEditrequisitioncode.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemGridLookUpEditrequisitioncode.DisplayMember = "requisitioncode"; + this.repositoryItemGridLookUpEditrequisitioncode.Name = "repositoryItemGridLookUpEditrequisitioncode"; + this.repositoryItemGridLookUpEditrequisitioncode.NullText = ""; + this.repositoryItemGridLookUpEditrequisitioncode.PopupView = this.repositoryItemGridLookUpEdit2View; + this.repositoryItemGridLookUpEditrequisitioncode.ValueMember = "requisitioncode"; + // + // repositoryItemGridLookUpEdit2View + // + this.repositoryItemGridLookUpEdit2View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus; + this.repositoryItemGridLookUpEdit2View.Name = "repositoryItemGridLookUpEdit2View"; + this.repositoryItemGridLookUpEdit2View.OptionsSelection.EnableAppearanceFocusedCell = false; + this.repositoryItemGridLookUpEdit2View.OptionsView.ShowGroupPanel = false; + // + // txtid + // + this.txtid.Location = new System.Drawing.Point(75, 12); + this.txtid.Name = "txtid"; + this.txtid.Size = new System.Drawing.Size(568, 20); + this.txtid.StyleController = this.layoutControl1; + this.txtid.TabIndex = 1; + // + // txtbuyercode + // + this.txtbuyercode.Location = new System.Drawing.Point(710, 12); + this.txtbuyercode.Name = "txtbuyercode"; + this.txtbuyercode.Size = new System.Drawing.Size(568, 20); + this.txtbuyercode.StyleController = this.layoutControl1; + this.txtbuyercode.TabIndex = 2; + // + // txtbuyerdate + // + this.txtbuyerdate.EditValue = null; + this.txtbuyerdate.ImeMode = System.Windows.Forms.ImeMode.Off; + this.txtbuyerdate.Location = new System.Drawing.Point(75, 36); + this.txtbuyerdate.Name = "txtbuyerdate"; + this.txtbuyerdate.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtbuyerdate.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton()}); + this.txtbuyerdate.Properties.DisplayFormat.FormatString = "G"; + this.txtbuyerdate.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.txtbuyerdate.Size = new System.Drawing.Size(568, 20); + this.txtbuyerdate.StyleController = this.layoutControl1; + this.txtbuyerdate.TabIndex = 3; + // + // txtsupplierid + // + this.txtsupplierid.EditValue = ""; + this.txtsupplierid.Location = new System.Drawing.Point(75, 60); + this.txtsupplierid.Name = "txtsupplierid"; + this.txtsupplierid.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtsupplierid.Properties.DisplayMember = "Name"; + this.txtsupplierid.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; + this.txtsupplierid.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + this.txtsupplierid.Properties.ValueMember = "ID"; + this.txtsupplierid.Size = new System.Drawing.Size(568, 20); + this.txtsupplierid.StyleController = this.layoutControl1; + this.txtsupplierid.TabIndex = 4; + // + // txtsuppliercode + // + this.txtsuppliercode.Location = new System.Drawing.Point(710, 60); + this.txtsuppliercode.Name = "txtsuppliercode"; + this.txtsuppliercode.Size = new System.Drawing.Size(568, 20); + this.txtsuppliercode.StyleController = this.layoutControl1; + this.txtsuppliercode.TabIndex = 5; + // + // txtdeliverdate + // + this.txtdeliverdate.EditValue = null; + this.txtdeliverdate.ImeMode = System.Windows.Forms.ImeMode.Off; + this.txtdeliverdate.Location = new System.Drawing.Point(710, 36); + 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(568, 20); + this.txtdeliverdate.StyleController = this.layoutControl1; + this.txtdeliverdate.TabIndex = 6; + // + // txtcreatorId + // + this.txtcreatorId.EditValue = ""; + this.txtcreatorId.Location = new System.Drawing.Point(75, 84); + 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(568, 20); + this.txtcreatorId.StyleController = this.layoutControl1; + this.txtcreatorId.TabIndex = 7; + // + // txttotalprice + // + this.txttotalprice.Location = new System.Drawing.Point(710, 84); + this.txttotalprice.Name = "txttotalprice"; + this.txttotalprice.Size = new System.Drawing.Size(568, 20); + this.txttotalprice.StyleController = this.layoutControl1; + this.txttotalprice.TabIndex = 8; + // + // txtremark + // + this.txtremark.Location = new System.Drawing.Point(75, 108); + this.txtremark.Name = "txtremark"; + this.txtremark.Size = new System.Drawing.Size(1203, 20); + this.txtremark.StyleController = this.layoutControl1; + this.txtremark.TabIndex = 9; + // + // layoutControlGroup1 + // + this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; + this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; + this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { + this.layoutControlItem1, + this.layoutControlItem3, + this.layoutControlItem4, + this.layoutControlItem7, + this.layoutControlItem9, + this.layoutControlItem10, + this.layoutControlItem2, + this.layoutControlItem6, + this.layoutControlItem5, + this.layoutControlItem8}); + 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(635, 24); + this.layoutControlItem1.Text = "id"; + this.layoutControlItem1.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem2 + // + this.layoutControlItem2.Control = this.txtbuyercode; + this.layoutControlItem2.CustomizationFormText = "采购单号"; + this.layoutControlItem2.Location = new System.Drawing.Point(635, 0); + this.layoutControlItem2.Name = "layoutControlItem2"; + this.layoutControlItem2.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem2.Text = "采购单号"; + this.layoutControlItem2.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem3 + // + this.layoutControlItem3.Control = this.txtbuyerdate; + this.layoutControlItem3.CustomizationFormText = "采购日期"; + this.layoutControlItem3.Location = new System.Drawing.Point(0, 24); + this.layoutControlItem3.Name = "layoutControlItem3"; + this.layoutControlItem3.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem3.Text = "采购日期"; + this.layoutControlItem3.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem4 + // + this.layoutControlItem4.Control = this.txtsupplierid; + this.layoutControlItem4.CustomizationFormText = "供应商"; + this.layoutControlItem4.Location = new System.Drawing.Point(0, 48); + this.layoutControlItem4.Name = "layoutControlItem4"; + this.layoutControlItem4.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem4.Text = "供应商"; + this.layoutControlItem4.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem5 + // + this.layoutControlItem5.Control = this.txtsuppliercode; + this.layoutControlItem5.CustomizationFormText = "供应商编码"; + this.layoutControlItem5.Location = new System.Drawing.Point(635, 48); + this.layoutControlItem5.Name = "layoutControlItem5"; + this.layoutControlItem5.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem5.Text = "供应商编码"; + this.layoutControlItem5.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem6 + // + this.layoutControlItem6.Control = this.txtdeliverdate; + this.layoutControlItem6.CustomizationFormText = "完货日期"; + this.layoutControlItem6.Location = new System.Drawing.Point(635, 24); + this.layoutControlItem6.Name = "layoutControlItem6"; + this.layoutControlItem6.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem6.Text = "完货日期"; + this.layoutControlItem6.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem7 + // + this.layoutControlItem7.Control = this.txtcreatorId; + this.layoutControlItem7.CustomizationFormText = "制单人"; + this.layoutControlItem7.Location = new System.Drawing.Point(0, 72); + this.layoutControlItem7.Name = "layoutControlItem7"; + this.layoutControlItem7.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem7.Text = "制单人"; + this.layoutControlItem7.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem8 + // + this.layoutControlItem8.Control = this.txttotalprice; + this.layoutControlItem8.CustomizationFormText = "金额"; + this.layoutControlItem8.Location = new System.Drawing.Point(635, 72); + this.layoutControlItem8.Name = "layoutControlItem8"; + this.layoutControlItem8.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem8.Text = "金额"; + this.layoutControlItem8.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem9 + // + this.layoutControlItem9.Control = this.txtremark; + this.layoutControlItem9.CustomizationFormText = "备注"; + this.layoutControlItem9.Location = new System.Drawing.Point(0, 96); + this.layoutControlItem9.Name = "layoutControlItem9"; + this.layoutControlItem9.Size = new System.Drawing.Size(1270, 24); + this.layoutControlItem9.Text = "备注"; + this.layoutControlItem9.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem10 + // + this.layoutControlItem10.Control = this.xtraTabControl2; + this.layoutControlItem10.Location = new System.Drawing.Point(0, 120); + this.layoutControlItem10.Name = "layoutControlItem10"; + this.layoutControlItem10.Size = new System.Drawing.Size(1270, 593); + this.layoutControlItem10.TextSize = new System.Drawing.Size(0, 0); + this.layoutControlItem10.TextVisible = false; + // + // repositoryItemTextEditrequisitioncode + // + this.repositoryItemTextEditrequisitioncode.AutoHeight = false; + this.repositoryItemTextEditrequisitioncode.Name = "repositoryItemTextEditrequisitioncode"; + // + // gridColumn29 + // + this.gridColumn29.Caption = "明细单号"; + this.gridColumn29.FieldName = "buyerdetailcode"; + this.gridColumn29.Name = "gridColumn29"; + this.gridColumn29.OptionsColumn.AllowEdit = false; + this.gridColumn29.Visible = true; + this.gridColumn29.VisibleIndex = 0; + // + // Frmbuyer + // + 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 = "Frmbuyer"; + this.Text = "采购单"; + this.Load += new System.EventHandler(this.Frmbuyer_Load); + this.Controls.SetChildIndex(this.xtraTabControl1, 0); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtsupplierid)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcreatorId)).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.xtraTabControl2)).EndInit(); + this.xtraTabControl2.ResumeLayout(false); + this.xtraTabPage1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditwarehouse)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditmaterialid)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditmaterialunit)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEdit1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEdit1View)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEditrequisitioncode)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSearchLookUpEdit1View)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEditrequisitioncode)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEdit2View)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyercode.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyerdate.Properties.CalendarTimeProperties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtbuyerdate.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsupplierid.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtsuppliercode.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliverdate.Properties.CalendarTimeProperties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliverdate.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreatorId.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttotalprice.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEditrequisitioncode)).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.XtraEditors.TextEdit txtid; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtbuyercode; + /////////////////////////////// + private DevExpress.XtraEditors.DateEdit txtbuyerdate; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtsupplierid; + + private DevExpress.XtraEditors.LookUpEdit txtsupplierid; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtsuppliercode; + /////////////////////////////// + private DevExpress.XtraEditors.DateEdit txtdeliverdate; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtcreatorId; + + private DevExpress.XtraEditors.LookUpEdit txtcreatorId; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txttotalprice; + /////////////////////////////// + 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 XtraTabControl xtraTabControl2; + private XtraTabPage xtraTabPage1; + private LayoutControlItem layoutControlItem10; + private DevExpress.XtraGrid.GridControl gridControl1; + private DevExpress.XtraGrid.Views.Grid.GridView gridView1; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn10; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn11; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn12; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn13; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn14; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn15; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn16; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn17; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn18; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn19; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn20; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn21; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn22; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn23; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn24; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn25; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn26; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn27; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn28; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemLookUpEditwarehouse; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemLookUpEditmaterialid; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemLookUpEditmaterialunit; + private DevExpress.XtraEditors.Repository.RepositoryItemGridLookUpEdit repositoryItemGridLookUpEdit1; + private DevExpress.XtraGrid.Views.Grid.GridView repositoryItemGridLookUpEdit1View; + private DevExpress.XtraEditors.Repository.RepositoryItemSearchLookUpEdit repositoryItemSearchLookUpEditrequisitioncode; + private DevExpress.XtraGrid.Views.Grid.GridView repositoryItemSearchLookUpEdit1View; + private DevExpress.XtraEditors.Repository.RepositoryItemGridLookUpEdit repositoryItemGridLookUpEditrequisitioncode; + private DevExpress.XtraGrid.Views.Grid.GridView repositoryItemGridLookUpEdit2View; + private DevExpress.XtraEditors.Repository.RepositoryItemTextEdit repositoryItemTextEditrequisitioncode; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn29; + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/FrmproductBOMdetail.resx b/WinformGeneralDeveloperFrame/Form/Frmbuyer.resx similarity index 100% rename from WinformGeneralDeveloperFrame/Form/FrmproductBOMdetail.resx rename to WinformGeneralDeveloperFrame/Form/Frmbuyer.resx diff --git a/WinformGeneralDeveloperFrame/Form/Frmdeliversale.cs b/WinformGeneralDeveloperFrame/Form/Frmdeliversale.cs index 33c7758..49c7f8f 100644 --- a/WinformGeneralDeveloperFrame/Form/Frmdeliversale.cs +++ b/WinformGeneralDeveloperFrame/Form/Frmdeliversale.cs @@ -128,6 +128,7 @@ namespace MES.Form { string code = "SD" + 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 { @@ -151,10 +152,15 @@ namespace MES.Form { List detaiListAdd = dic["Add"]; + int num = 0; detaiListAdd.ForEach(a => { + num++; + string codedetail = "SDD" + DateTime.Now.Year + DateTime.Now.Month + DateTime.Now.Day + DateTime.Now.Hour + + DateTime.Now.Minute + DateTime.Now.Second + DateTime.Now.Millisecond.ToString("D3")+num; a.deliversalecode = info.deliversalecode; a.deliversaleid = info.id; + a.deliversaledetailcode = codedetail; }); db.deliversaledetailInfo.AddRange(detaiListAdd); db.SaveChanges(); @@ -168,15 +174,21 @@ namespace MES.Form { List detaiListAdd = dic["Add"]; + int num = 0; detaiListAdd.ForEach(a => { a.deliversalecode = info.deliversalecode; a.deliversaleid = info.id; + num++; + string codedetail = "SDD" + DateTime.Now.Year + DateTime.Now.Month + DateTime.Now.Day + DateTime.Now.Hour + + DateTime.Now.Minute + DateTime.Now.Second + DateTime.Now.Millisecond.ToString("D3") + num; + a.deliversaledetailcode = codedetail; }); db.deliversaledetailInfo.AddRange(detaiListAdd); List detaiListEdit = dic["Edit"]; + detaiListEdit.ForEach((a) => { a.deliversalecode = info.deliversalecode; diff --git a/WinformGeneralDeveloperFrame/Form/Frmdeliversale.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmdeliversale.designer.cs index b9022a7..af835bf 100644 --- a/WinformGeneralDeveloperFrame/Form/Frmdeliversale.designer.cs +++ b/WinformGeneralDeveloperFrame/Form/Frmdeliversale.designer.cs @@ -66,13 +66,13 @@ namespace MES.Form this.repositoryItemGridLookUpEditsalecode = new DevExpress.XtraEditors.Repository.RepositoryItemGridLookUpEdit(); this.repositoryItemGridLookUpEdit1View = new DevExpress.XtraGrid.Views.Grid.GridView(); this.gridColumn14 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.repositoryItemLookUpEditunit = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); this.gridColumn15 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn16 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn17 = new DevExpress.XtraGrid.Columns.GridColumn(); this.repositoryItemLookUpEditwarehouse = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); this.gridColumn18 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn19 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemLookUpEditunit = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); this.gridColumn20 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn21 = new DevExpress.XtraGrid.Columns.GridColumn(); this.repositoryItemTextEditsalecode = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); @@ -98,6 +98,7 @@ namespace MES.Form this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); + this.gridColumn22 = new DevExpress.XtraGrid.Columns.GridColumn(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomerid)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomertype)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcontactuser)).BeginInit(); @@ -117,8 +118,8 @@ namespace MES.Form ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEditsalecode)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEdit1View)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditunit)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditwarehouse)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditunit)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEditsalecode)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtcustomerid.Properties)).BeginInit(); @@ -410,7 +411,8 @@ namespace MES.Form this.gridColumn18, this.gridColumn19, this.gridColumn20, - this.gridColumn21}); + this.gridColumn21, + this.gridColumn22}); this.gridView1.GridControl = this.gridControl1; this.gridView1.Name = "gridView1"; this.gridView1.OptionsBehavior.Editable = false; @@ -436,7 +438,7 @@ namespace MES.Form this.gridColumn13.FieldName = "salecode"; this.gridColumn13.Name = "gridColumn13"; this.gridColumn13.Visible = true; - this.gridColumn13.VisibleIndex = 0; + this.gridColumn13.VisibleIndex = 1; this.gridColumn13.Width = 201; // // repositoryItemGridLookUpEditsalecode @@ -465,19 +467,9 @@ namespace MES.Form this.gridColumn14.Name = "gridColumn14"; this.gridColumn14.OptionsColumn.AllowEdit = false; this.gridColumn14.Visible = true; - this.gridColumn14.VisibleIndex = 1; + this.gridColumn14.VisibleIndex = 2; this.gridColumn14.Width = 201; // - // repositoryItemLookUpEditunit - // - this.repositoryItemLookUpEditunit.AutoHeight = false; - this.repositoryItemLookUpEditunit.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { - new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); - this.repositoryItemLookUpEditunit.DisplayMember = "Name"; - this.repositoryItemLookUpEditunit.Name = "repositoryItemLookUpEditunit"; - this.repositoryItemLookUpEditunit.NullText = ""; - this.repositoryItemLookUpEditunit.ValueMember = "ID"; - // // gridColumn15 // this.gridColumn15.Caption = "产品编号"; @@ -485,7 +477,7 @@ namespace MES.Form this.gridColumn15.Name = "gridColumn15"; this.gridColumn15.OptionsColumn.AllowEdit = false; this.gridColumn15.Visible = true; - this.gridColumn15.VisibleIndex = 2; + this.gridColumn15.VisibleIndex = 3; this.gridColumn15.Width = 201; // // gridColumn16 @@ -495,7 +487,7 @@ namespace MES.Form this.gridColumn16.Name = "gridColumn16"; this.gridColumn16.OptionsColumn.AllowEdit = false; this.gridColumn16.Visible = true; - this.gridColumn16.VisibleIndex = 3; + this.gridColumn16.VisibleIndex = 4; this.gridColumn16.Width = 201; // // gridColumn17 @@ -506,7 +498,7 @@ namespace MES.Form this.gridColumn17.Name = "gridColumn17"; this.gridColumn17.OptionsColumn.AllowEdit = false; this.gridColumn17.Visible = true; - this.gridColumn17.VisibleIndex = 4; + this.gridColumn17.VisibleIndex = 5; this.gridColumn17.Width = 201; // // repositoryItemLookUpEditwarehouse @@ -525,7 +517,7 @@ namespace MES.Form this.gridColumn18.FieldName = "number"; this.gridColumn18.Name = "gridColumn18"; this.gridColumn18.Visible = true; - this.gridColumn18.VisibleIndex = 5; + this.gridColumn18.VisibleIndex = 6; this.gridColumn18.Width = 201; // // gridColumn19 @@ -536,16 +528,26 @@ namespace MES.Form this.gridColumn19.Name = "gridColumn19"; this.gridColumn19.OptionsColumn.AllowEdit = false; this.gridColumn19.Visible = true; - this.gridColumn19.VisibleIndex = 6; + this.gridColumn19.VisibleIndex = 7; this.gridColumn19.Width = 201; // + // repositoryItemLookUpEditunit + // + this.repositoryItemLookUpEditunit.AutoHeight = false; + this.repositoryItemLookUpEditunit.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemLookUpEditunit.DisplayMember = "Name"; + this.repositoryItemLookUpEditunit.Name = "repositoryItemLookUpEditunit"; + this.repositoryItemLookUpEditunit.NullText = ""; + this.repositoryItemLookUpEditunit.ValueMember = "ID"; + // // gridColumn20 // this.gridColumn20.Caption = "出库单号"; this.gridColumn20.FieldName = "deliversalecode"; this.gridColumn20.Name = "gridColumn20"; this.gridColumn20.Visible = true; - this.gridColumn20.VisibleIndex = 7; + this.gridColumn20.VisibleIndex = 8; this.gridColumn20.Width = 201; // // gridColumn21 @@ -554,7 +556,7 @@ namespace MES.Form this.gridColumn21.FieldName = "remark"; this.gridColumn21.Name = "gridColumn21"; this.gridColumn21.Visible = true; - this.gridColumn21.VisibleIndex = 8; + this.gridColumn21.VisibleIndex = 9; this.gridColumn21.Width = 201; // // repositoryItemTextEditsalecode @@ -808,6 +810,15 @@ namespace MES.Form this.layoutControlItem9.Text = "出货单号"; this.layoutControlItem9.TextSize = new System.Drawing.Size(48, 14); // + // gridColumn22 + // + this.gridColumn22.Caption = "明细单号"; + this.gridColumn22.FieldName = "deliversaledetailcode"; + this.gridColumn22.Name = "gridColumn22"; + this.gridColumn22.OptionsColumn.AllowEdit = false; + this.gridColumn22.Visible = true; + this.gridColumn22.VisibleIndex = 0; + // // Frmdeliversale // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); @@ -837,8 +848,8 @@ namespace MES.Form ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEditsalecode)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemGridLookUpEdit1View)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditunit)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditwarehouse)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditunit)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTextEditsalecode)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtcustomerid.Properties)).EndInit(); @@ -945,5 +956,6 @@ namespace MES.Form private DevExpress.XtraEditors.Repository.RepositoryItemTextEdit repositoryItemTextEditsalecode; private DevExpress.XtraEditors.Repository.RepositoryItemGridLookUpEdit repositoryItemGridLookUpEditsalecode; private DevExpress.XtraGrid.Views.Grid.GridView repositoryItemGridLookUpEdit1View; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn22; } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmdeliversaledetail.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmdeliversaledetail.designer.cs deleted file mode 100644 index 47993fd..0000000 --- a/WinformGeneralDeveloperFrame/Form/Frmdeliversaledetail.designer.cs +++ /dev/null @@ -1,680 +0,0 @@ - -using DevExpress.XtraEditors; -using DevExpress.XtraLayout; -using DevExpress.XtraTab; - -namespace MES.Form -{ - partial class Frmdeliversaledetail - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn9 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn10 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn11 = new DevExpress.XtraGrid.Columns.GridColumn(); - - this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); - this.tabDataList = new DevExpress.XtraTab.XtraTabPage(); - this.tabDataDetail = new DevExpress.XtraTab.XtraTabPage(); - this.grdList = new DevExpress.XtraGrid.GridControl(); - this.grdListView = new DevExpress.XtraGrid.Views.Grid.GridView(); - this.panelControl2 = new DevExpress.XtraEditors.PanelControl(); - this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); - this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); - - - ////////////////////// - this.txtid=new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); - ////////////////////// - this.txtdeliversaleid=new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); - ////////////////////// - this.txtsalecode=new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); - ////////////////////// - this.txtproductname=new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); - ////////////////////// - this.txtproductcode=new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); - ////////////////////// - this.txtproductspec=new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); - this.repositoryItemtxtwarehouse = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); - - this.txtwarehouse=new DevExpress.XtraEditors.LookUpEdit(); - this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); - ////////////////////// - this.txtnumber=new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); - ////////////////////// - this.txtunit=new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); - ////////////////////// - this.txtdeliversalecode=new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); - ////////////////////// - this.txtremark=new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); - - - ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); - - this.layoutControl1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtdeliversaleid.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtsalecode.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtproductname.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtproductcode.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtproductspec.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtwarehouse)).BeginInit(); - - ((System.ComponentModel.ISupportInitialize)(this.txtwarehouse.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtnumber.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtunit.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtdeliversalecode.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).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(); - - this.SuspendLayout(); - - // layoutControl1 - // - - this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.layoutControl1.Location = new System.Drawing.Point(12, 8); - this.layoutControl1.Name = "layoutControl1"; - this.layoutControl1.Root = this.layoutControlGroup1; - layoutControl1.AutoScroll=true; - this.layoutControl1.Size = new System.Drawing.Size(605, 363); - this.layoutControl1.TabIndex = 6; - this.layoutControl1.Text = "layoutControl1"; - - this.layoutControl1.Controls.Add(this.txtid); - this.layoutControl1.Controls.Add(this.txtdeliversaleid); - this.layoutControl1.Controls.Add(this.txtsalecode); - this.layoutControl1.Controls.Add(this.txtproductname); - this.layoutControl1.Controls.Add(this.txtproductcode); - this.layoutControl1.Controls.Add(this.txtproductspec); - this.layoutControl1.Controls.Add(this.txtwarehouse); - this.layoutControl1.Controls.Add(this.txtnumber); - this.layoutControl1.Controls.Add(this.txtunit); - this.layoutControl1.Controls.Add(this.txtdeliversalecode); - this.layoutControl1.Controls.Add(this.txtremark); -//TextEdit -//DateEdit -//SimpleButton -//CheckEdit -//MemoEdit -//PictureEdit -//LookUpEdit -//ComboBoxEdit - // - // txt${ColumnInfo.Name.Alias.ToCapit()} - // - this.txtid.Location = new System.Drawing.Point(112, 12); - this.txtid.Name = "txtid"; - this.txtid.Size = new System.Drawing.Size(481, 20); - this.txtid.StyleController = this.layoutControl1; - this.txtid.TabIndex = 1; - // - // layoutControlItem1 - // - this.layoutControlItem1.Control = this.txtid; - this.layoutControlItem1.CustomizationFormText = "id"; - this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); - this.layoutControlItem1.Name = "layoutControlItem1"; - this.layoutControlItem1.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem1.Text = "id"; - this.layoutControlItem1.TextSize = new System.Drawing.Size(96, 14); - - // - // txt${ColumnInfo.Name.Alias.ToCapit()} - // - this.txtdeliversaleid.Location = new System.Drawing.Point(112, 36); - this.txtdeliversaleid.Name = "txtdeliversaleid"; - this.txtdeliversaleid.Size = new System.Drawing.Size(481, 20); - this.txtdeliversaleid.StyleController = this.layoutControl1; - this.txtdeliversaleid.TabIndex = 2; - // - // layoutControlItem2 - // - this.layoutControlItem2.Control = this.txtdeliversaleid; - this.layoutControlItem2.CustomizationFormText = "出货单"; - this.layoutControlItem2.Location = new System.Drawing.Point(0, 24); - this.layoutControlItem2.Name = "layoutControlItem2"; - this.layoutControlItem2.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem2.Text = "出货单"; - this.layoutControlItem2.TextSize = new System.Drawing.Size(96, 14); - - // - // txt${ColumnInfo.Name.Alias.ToCapit()} - // - this.txtsalecode.Location = new System.Drawing.Point(112, 60); - this.txtsalecode.Name = "txtsalecode"; - this.txtsalecode.Size = new System.Drawing.Size(481, 20); - this.txtsalecode.StyleController = this.layoutControl1; - this.txtsalecode.TabIndex = 3; - // - // layoutControlItem3 - // - this.layoutControlItem3.Control = this.txtsalecode; - this.layoutControlItem3.CustomizationFormText = "销售单号"; - this.layoutControlItem3.Location = new System.Drawing.Point(0, 48); - this.layoutControlItem3.Name = "layoutControlItem3"; - this.layoutControlItem3.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem3.Text = "销售单号"; - this.layoutControlItem3.TextSize = new System.Drawing.Size(96, 14); - - // - // txt${ColumnInfo.Name.Alias.ToCapit()} - // - this.txtproductname.Location = new System.Drawing.Point(112, 84); - this.txtproductname.Name = "txtproductname"; - this.txtproductname.Size = new System.Drawing.Size(481, 20); - this.txtproductname.StyleController = this.layoutControl1; - this.txtproductname.TabIndex = 4; - // - // layoutControlItem4 - // - this.layoutControlItem4.Control = this.txtproductname; - this.layoutControlItem4.CustomizationFormText = "产品名称"; - this.layoutControlItem4.Location = new System.Drawing.Point(0, 72); - this.layoutControlItem4.Name = "layoutControlItem4"; - this.layoutControlItem4.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem4.Text = "产品名称"; - this.layoutControlItem4.TextSize = new System.Drawing.Size(96, 14); - - // - // txt${ColumnInfo.Name.Alias.ToCapit()} - // - this.txtproductcode.Location = new System.Drawing.Point(112, 108); - this.txtproductcode.Name = "txtproductcode"; - this.txtproductcode.Size = new System.Drawing.Size(481, 20); - this.txtproductcode.StyleController = this.layoutControl1; - this.txtproductcode.TabIndex = 5; - // - // layoutControlItem5 - // - this.layoutControlItem5.Control = this.txtproductcode; - this.layoutControlItem5.CustomizationFormText = "产品编号"; - this.layoutControlItem5.Location = new System.Drawing.Point(0, 96); - this.layoutControlItem5.Name = "layoutControlItem5"; - this.layoutControlItem5.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem5.Text = "产品编号"; - this.layoutControlItem5.TextSize = new System.Drawing.Size(96, 14); - - // - // txt${ColumnInfo.Name.Alias.ToCapit()} - // - this.txtproductspec.Location = new System.Drawing.Point(112, 132); - this.txtproductspec.Name = "txtproductspec"; - this.txtproductspec.Size = new System.Drawing.Size(481, 20); - this.txtproductspec.StyleController = this.layoutControl1; - this.txtproductspec.TabIndex = 6; - // - // layoutControlItem6 - // - this.layoutControlItem6.Control = this.txtproductspec; - this.layoutControlItem6.CustomizationFormText = "规格型号"; - this.layoutControlItem6.Location = new System.Drawing.Point(0, 120); - this.layoutControlItem6.Name = "layoutControlItem6"; - this.layoutControlItem6.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem6.Text = "规格型号"; - this.layoutControlItem6.TextSize = new System.Drawing.Size(96, 14); - - // - // lookUpEdit1 - // - this.txtwarehouse.Location = new System.Drawing.Point(120, 60); - 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(932, 20); - this.txtwarehouse.StyleController = this.layoutControl1; - this.txtwarehouse.TabIndex = 7; - this.txtwarehouse.EditValue = ""; - - // - // layoutControlItem7 - // - this.layoutControlItem7.Control = this.txtwarehouse; - this.layoutControlItem7.CustomizationFormText = "仓库"; - this.layoutControlItem7.Location = new System.Drawing.Point(0, 144); - this.layoutControlItem7.Name = "layoutControlItem7"; - this.layoutControlItem7.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem7.Text = "仓库"; - this.layoutControlItem7.TextSize = new System.Drawing.Size(96, 14); - - // - // txt${ColumnInfo.Name.Alias.ToCapit()} - // - this.txtnumber.Location = new System.Drawing.Point(112, 180); - this.txtnumber.Name = "txtnumber"; - this.txtnumber.Size = new System.Drawing.Size(481, 20); - this.txtnumber.StyleController = this.layoutControl1; - this.txtnumber.TabIndex = 8; - // - // layoutControlItem8 - // - this.layoutControlItem8.Control = this.txtnumber; - this.layoutControlItem8.CustomizationFormText = "出货数量"; - this.layoutControlItem8.Location = new System.Drawing.Point(0, 168); - this.layoutControlItem8.Name = "layoutControlItem8"; - this.layoutControlItem8.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem8.Text = "出货数量"; - this.layoutControlItem8.TextSize = new System.Drawing.Size(96, 14); - - // - // txt${ColumnInfo.Name.Alias.ToCapit()} - // - this.txtunit.Location = new System.Drawing.Point(112, 204); - this.txtunit.Name = "txtunit"; - this.txtunit.Size = new System.Drawing.Size(481, 20); - this.txtunit.StyleController = this.layoutControl1; - this.txtunit.TabIndex = 9; - // - // layoutControlItem9 - // - this.layoutControlItem9.Control = this.txtunit; - this.layoutControlItem9.CustomizationFormText = "计量单位"; - this.layoutControlItem9.Location = new System.Drawing.Point(0, 192); - this.layoutControlItem9.Name = "layoutControlItem9"; - this.layoutControlItem9.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem9.Text = "计量单位"; - this.layoutControlItem9.TextSize = new System.Drawing.Size(96, 14); - - // - // txt${ColumnInfo.Name.Alias.ToCapit()} - // - this.txtdeliversalecode.Location = new System.Drawing.Point(112, 228); - this.txtdeliversalecode.Name = "txtdeliversalecode"; - this.txtdeliversalecode.Size = new System.Drawing.Size(481, 20); - this.txtdeliversalecode.StyleController = this.layoutControl1; - this.txtdeliversalecode.TabIndex = 10; - // - // layoutControlItem10 - // - this.layoutControlItem10.Control = this.txtdeliversalecode; - this.layoutControlItem10.CustomizationFormText = "出库单号"; - this.layoutControlItem10.Location = new System.Drawing.Point(0, 216); - this.layoutControlItem10.Name = "layoutControlItem10"; - this.layoutControlItem10.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem10.Text = "出库单号"; - this.layoutControlItem10.TextSize = new System.Drawing.Size(96, 14); - - // - // txt${ColumnInfo.Name.Alias.ToCapit()} - // - this.txtremark.Location = new System.Drawing.Point(112, 252); - this.txtremark.Name = "txtremark"; - this.txtremark.Size = new System.Drawing.Size(481, 20); - this.txtremark.StyleController = this.layoutControl1; - this.txtremark.TabIndex = 11; - // - // layoutControlItem11 - // - this.layoutControlItem11.Control = this.txtremark; - this.layoutControlItem11.CustomizationFormText = "备注"; - this.layoutControlItem11.Location = new System.Drawing.Point(0, 240); - this.layoutControlItem11.Name = "layoutControlItem11"; - this.layoutControlItem11.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem11.Text = "备注"; - this.layoutControlItem11.TextSize = new System.Drawing.Size(96, 14); - - - // - // layoutControlGroup1 - // - this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; - this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; - this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { - this.layoutControlItem1 - ,this.layoutControlItem2 - ,this.layoutControlItem3 - ,this.layoutControlItem4 - ,this.layoutControlItem5 - ,this.layoutControlItem6 - ,this.layoutControlItem7 - ,this.layoutControlItem8 - ,this.layoutControlItem9 - ,this.layoutControlItem10 - ,this.layoutControlItem11 - }); - this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); - this.layoutControlGroup1.Name = "layoutControlGroup1"; - this.layoutControlGroup1.Size = new System.Drawing.Size(605, 363); - this.layoutControlGroup1.Text = "layoutControlGroup1"; - this.layoutControlGroup1.TextVisible = false; - - - // - // xtraTabControl1 - // - this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.xtraTabControl1.Location = new System.Drawing.Point(0, 34); - this.xtraTabControl1.Name = "xtraTabControl1"; - this.xtraTabControl1.SelectedTabPage = this.tabDataList; - this.xtraTabControl1.Size = new System.Drawing.Size(585, 436); - this.xtraTabControl1.TabIndex = 1; - this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { - this.tabDataList, - this.tabDataDetail}); - // - // tabDataList - // - this.tabDataList.Controls.Add(this.grdList); - this.tabDataList.Name = "tabDataList"; - this.tabDataList.Size = new System.Drawing.Size(579, 407); - this.tabDataList.Text = "数据列表"; - // - // tabDataDetail - // - this.tabDataDetail.Controls.Add(this.panelControl2); - this.tabDataDetail.Name = "tabDataDetail"; - this.tabDataDetail.Size = new System.Drawing.Size(579, 407); - this.tabDataDetail.Text = "数据编辑"; - // - // grdList - // - this.grdList.Dock = System.Windows.Forms.DockStyle.Fill; - this.grdList.Location = new System.Drawing.Point(0, 0); - this.grdList.MainView = this.grdListView; - this.grdList.Name = "grdList"; - this.grdList.Size = new System.Drawing.Size(579, 407); - this.grdList.TabIndex = 0; - this.grdList.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { - this.grdListView}); - // - // grdListView - // - this.grdListView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { - this.gridColumn1, - this.gridColumn2, - this.gridColumn3, - this.gridColumn4, - this.gridColumn5, - this.gridColumn6, - this.gridColumn7, - this.gridColumn8, - this.gridColumn9, - this.gridColumn10, - this.gridColumn11, - }); - this.grdListView.OptionsBehavior.Editable = false; - this.grdListView.GridControl = this.grdList; - this.grdListView.Name = "grdListView"; - this.grdListView.OptionsView.ColumnAutoWidth=false; - this.grdListView.BestFitColumns(); - // - // panelControl2 - // - this.panelControl2.Controls.Add(this.layoutControl1); - this.panelControl2.Dock = System.Windows.Forms.DockStyle.Fill; - this.panelControl2.Location = new System.Drawing.Point(0, 0); - this.panelControl2.Name = "panelControl2"; - this.panelControl2.Size = new System.Drawing.Size(579, 407); - this.panelControl2.TabIndex = 0; - - //////////////////////////////// - (this.gridColumn1).Caption = "id"; - (this.gridColumn1).Name = "gridColumn1"; - (this.gridColumn1).FieldName = "id"; - //////////////////////////////// - (this.gridColumn2).Caption = "出货单"; - (this.gridColumn2).Name = "gridColumn2"; - (this.gridColumn2).FieldName = "deliversaleid"; - //////////////////////////////// - (this.gridColumn3).Caption = "销售单号"; - (this.gridColumn3).Name = "gridColumn3"; - (this.gridColumn3).FieldName = "salecode"; - (this.gridColumn3).Visible = true; - (this.gridColumn3).VisibleIndex = 3; - - //////////////////////////////// - (this.gridColumn4).Caption = "产品名称"; - (this.gridColumn4).Name = "gridColumn4"; - (this.gridColumn4).FieldName = "productname"; - (this.gridColumn4).Visible = true; - (this.gridColumn4).VisibleIndex = 4; - - //////////////////////////////// - (this.gridColumn5).Caption = "产品编号"; - (this.gridColumn5).Name = "gridColumn5"; - (this.gridColumn5).FieldName = "productcode"; - (this.gridColumn5).Visible = true; - (this.gridColumn5).VisibleIndex = 5; - - //////////////////////////////// - (this.gridColumn6).Caption = "规格型号"; - (this.gridColumn6).Name = "gridColumn6"; - (this.gridColumn6).FieldName = "productspec"; - (this.gridColumn6).Visible = true; - (this.gridColumn6).VisibleIndex = 6; - - (this.gridColumn7).ColumnEdit = this.repositoryItemtxtwarehouse; - this.repositoryItemtxtwarehouse.AutoHeight = false; - this.repositoryItemtxtwarehouse.DisplayMember = "Name"; - this.repositoryItemtxtwarehouse.ValueMember = "ID"; - this.repositoryItemtxtwarehouse.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { - new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); - this.repositoryItemtxtwarehouse.Name = "repositoryItemtxtwarehouse"; - (this.gridColumn7).Caption = "仓库"; - (this.gridColumn7).Name = "gridColumn7"; - (this.gridColumn7).FieldName = "warehouse"; - (this.gridColumn7).Visible = true; - (this.gridColumn7).VisibleIndex = 7; - - //////////////////////////////// - (this.gridColumn8).Caption = "出货数量"; - (this.gridColumn8).Name = "gridColumn8"; - (this.gridColumn8).FieldName = "number"; - (this.gridColumn8).Visible = true; - (this.gridColumn8).VisibleIndex = 8; - - //////////////////////////////// - (this.gridColumn9).Caption = "计量单位"; - (this.gridColumn9).Name = "gridColumn9"; - (this.gridColumn9).FieldName = "unit"; - (this.gridColumn9).Visible = true; - (this.gridColumn9).VisibleIndex = 9; - - //////////////////////////////// - (this.gridColumn10).Caption = "出库单号"; - (this.gridColumn10).Name = "gridColumn10"; - (this.gridColumn10).FieldName = "deliversalecode"; - (this.gridColumn10).Visible = true; - (this.gridColumn10).VisibleIndex = 10; - - //////////////////////////////// - (this.gridColumn11).Caption = "备注"; - (this.gridColumn11).Name = "gridColumn11"; - (this.gridColumn11).FieldName = "remark"; - (this.gridColumn11).Visible = true; - (this.gridColumn11).VisibleIndex = 11; - - - // - // XtraForm1 - // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1300, 800); - this.Controls.Add(this.xtraTabControl1); - this.Name = "Frmdeliversaledetail"; - this.Text = "Frmdeliversaledetail"; - this.Load += new System.EventHandler(this.Frmdeliversaledetail_Load); - this.Controls.SetChildIndex(this.xtraTabControl1, 0); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtdeliversaleid.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtsalecode.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtproductname.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtproductcode.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtproductspec.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtwarehouse)).EndInit(); - - ((System.ComponentModel.ISupportInitialize)(this.txtwarehouse.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtnumber.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtunit.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtdeliversalecode.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); - this.xtraTabControl1.ResumeLayout(false); - this.tabDataList.ResumeLayout(false); - this.tabDataDetail.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.grdList)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.grdListView)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); - this.layoutControl1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); - - this.ResumeLayout(false); - - } - - #endregion - - private XtraTabControl xtraTabControl1; - private XtraTabPage tabDataList; - private XtraTabPage tabDataDetail; - private DevExpress.XtraGrid.GridControl grdList; - private DevExpress.XtraGrid.Views.Grid.GridView grdListView; - private PanelControl panelControl2; - private DevExpress.XtraLayout.LayoutControl layoutControl1; - private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1; - - private DevExpress.XtraGrid.Columns.GridColumn gridColumn1; - private DevExpress.XtraGrid.Columns.GridColumn gridColumn2; - private DevExpress.XtraGrid.Columns.GridColumn gridColumn3; - private DevExpress.XtraGrid.Columns.GridColumn gridColumn4; - private DevExpress.XtraGrid.Columns.GridColumn gridColumn5; - private DevExpress.XtraGrid.Columns.GridColumn gridColumn6; - private DevExpress.XtraGrid.Columns.GridColumn gridColumn7; - private DevExpress.XtraGrid.Columns.GridColumn gridColumn8; - private DevExpress.XtraGrid.Columns.GridColumn gridColumn9; - private DevExpress.XtraGrid.Columns.GridColumn gridColumn10; - private DevExpress.XtraGrid.Columns.GridColumn gridColumn11; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtid; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtdeliversaleid; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtsalecode; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtproductname; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtproductcode; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtproductspec; - private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtwarehouse; - - private DevExpress.XtraEditors.LookUpEdit txtwarehouse; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtnumber; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtunit; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtdeliversalecode; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtremark; - - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem11; - } -} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/FrmproductBOM.cs b/WinformGeneralDeveloperFrame/Form/FrmproductBOM.cs index 979318d..25cd097 100644 --- a/WinformGeneralDeveloperFrame/Form/FrmproductBOM.cs +++ b/WinformGeneralDeveloperFrame/Form/FrmproductBOM.cs @@ -16,6 +16,7 @@ using CCWin.SkinClass; using DevExpress.XtraEditors; using DevExpress.XtraEditors.Repository; using DevExpress.XtraTreeList; +using DevExpress.XtraTreeList.Nodes; namespace MES.Form { @@ -29,7 +30,7 @@ namespace MES.Form private void FrmproductBOM_Load(object sender, EventArgs e) { - InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new productBOMInfo(), treeList1, new []{ "txtproductBOMcode" }); + InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new productBOMInfo(), treeList1, new []{ "txtproductBOMcode" , "txtunitcost" }); InitSearchDicData(); repositoryItemLookUpEditmaterialname.EditValueChanged += RepositoryItemLookUpEditmaterialname_EditValueChanged; } @@ -59,6 +60,10 @@ namespace MES.Form /// private void Init() { + txtcreatorId.Properties.DataSource = GetDataTableUtils.SqlTable("用户"); + repositoryItemtxtcreatorId.DataSource = GetDataTableUtils.SqlTable("用户"); + txteditorId.Properties.DataSource = GetDataTableUtils.SqlTable("用户"); + repositoryItemtxteditorId.DataSource = GetDataTableUtils.SqlTable("用户"); txtcustomerid.Properties.DataSource = GetDataTableUtils.SqlTable("客户"); repositoryItemtxtcustomerid.DataSource= GetDataTableUtils.SqlTable("客户"); txtproductid.Properties.DataSource = GetDataTableUtils.SqlTable("产品"); @@ -358,8 +363,30 @@ namespace MES.Form treeList1.FocusedNode["unitusenumber"].ToDecimal(0)); treeList1.BestFitColumns(); + decimal totalprice = 0; + foreach (TreeListNode node in treeList1.Nodes) + { + totalprice += sumNode(node); + } + + txtunitcost.Text = totalprice.ToString(); } + private decimal sumNode(TreeListNode node) + { + decimal sum = 0; + if (node.Nodes.Count == 0) + { + sum = node.GetValue("money").ToDecimal(0); + return sum; + } + sum += node.GetValue("money").ToDecimal(0); + foreach (TreeListNode item in node.Nodes) + { + sum += item.GetValue("money").ToDecimal(0); + } + return sum; + } private void txtcustomerid_EditValueChanged(object sender, EventArgs e) { using (var db = new MESDB()) @@ -396,5 +423,6 @@ namespace MES.Form } } } + } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/FrmproductBOM.designer.cs b/WinformGeneralDeveloperFrame/Form/FrmproductBOM.designer.cs index a7e4f6d..25bb8ae 100644 --- a/WinformGeneralDeveloperFrame/Form/FrmproductBOM.designer.cs +++ b/WinformGeneralDeveloperFrame/Form/FrmproductBOM.designer.cs @@ -53,9 +53,20 @@ namespace MES.Form this.tabDataList = new DevExpress.XtraTab.XtraTabPage(); this.grdList = new DevExpress.XtraGrid.GridControl(); this.grdListView = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxtcreatorId = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn13 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn14 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxteditorId = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn15 = new DevExpress.XtraGrid.Columns.GridColumn(); this.tabDataDetail = new DevExpress.XtraTab.XtraTabPage(); this.panelControl2 = new DevExpress.XtraEditors.PanelControl(); this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); + this.txteditTime = new DevExpress.XtraEditors.DateEdit(); + this.txtcreateTime = new DevExpress.XtraEditors.DateEdit(); + this.txteditorId = new DevExpress.XtraEditors.LookUpEdit(); + this.txtcreatorId = new DevExpress.XtraEditors.LookUpEdit(); + this.txtunitcost = new DevExpress.XtraEditors.TextEdit(); this.xtraTabControl2 = new DevExpress.XtraTab.XtraTabControl(); this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage(); this.treeList1 = new DevExpress.XtraTreeList.TreeList(); @@ -104,8 +115,12 @@ namespace MES.Form this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txtunitcost = new DevExpress.XtraEditors.TextEdit(); this.txtunitcost111 = 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.treeListColumn6 = new DevExpress.XtraTreeList.Columns.TreeListColumn(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomerid)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtproductid)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtunit)).BeginInit(); @@ -115,11 +130,20 @@ namespace MES.Form this.tabDataList.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.grdList)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.grdListView)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcreatorId)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxteditorId)).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.txteditTime.Properties.CalendarTimeProperties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txteditTime.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreateTime.Properties.CalendarTimeProperties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreateTime.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txteditorId.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreatorId.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtunitcost.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl2)).BeginInit(); this.xtraTabControl2.SuspendLayout(); this.xtraTabPage1.SuspendLayout(); @@ -151,8 +175,11 @@ namespace MES.Form ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtunitcost.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtunitcost111)).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(); this.SuspendLayout(); // // gridColumn1 @@ -320,6 +347,9 @@ namespace MES.Form this.grdList.Location = new System.Drawing.Point(0, 0); this.grdList.MainView = this.grdListView; this.grdList.Name = "grdList"; + this.grdList.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { + this.repositoryItemtxtcreatorId, + this.repositoryItemtxteditorId}); this.grdList.Size = new System.Drawing.Size(1021, 681); this.grdList.TabIndex = 0; this.grdList.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { @@ -338,12 +368,74 @@ namespace MES.Form this.gridColumn8, this.gridColumn9, this.gridColumn10, - this.gridColumn11}); + this.gridColumn11, + this.gridColumn12, + this.gridColumn13, + this.gridColumn14, + this.gridColumn15}); this.grdListView.GridControl = this.grdList; this.grdListView.Name = "grdListView"; this.grdListView.OptionsBehavior.Editable = false; this.grdListView.OptionsView.ColumnAutoWidth = false; // + // gridColumn12 + // + this.gridColumn12.Caption = "创建人"; + this.gridColumn12.ColumnEdit = this.repositoryItemtxtcreatorId; + this.gridColumn12.FieldName = "creatorId"; + this.gridColumn12.Name = "gridColumn12"; + this.gridColumn12.Visible = true; + this.gridColumn12.VisibleIndex = 10; + // + // repositoryItemtxtcreatorId + // + this.repositoryItemtxtcreatorId.AutoHeight = false; + this.repositoryItemtxtcreatorId.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtcreatorId.DisplayMember = "Name"; + this.repositoryItemtxtcreatorId.Name = "repositoryItemtxtcreatorId"; + this.repositoryItemtxtcreatorId.NullText = ""; + this.repositoryItemtxtcreatorId.ValueMember = "ID"; + // + // gridColumn13 + // + this.gridColumn13.Caption = "创建时间"; + this.gridColumn13.DisplayFormat.FormatString = "G"; + this.gridColumn13.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.gridColumn13.FieldName = "createTime"; + this.gridColumn13.Name = "gridColumn13"; + this.gridColumn13.Visible = true; + this.gridColumn13.VisibleIndex = 11; + // + // gridColumn14 + // + this.gridColumn14.Caption = "编辑人"; + this.gridColumn14.ColumnEdit = this.repositoryItemtxteditorId; + this.gridColumn14.FieldName = "editorId"; + this.gridColumn14.Name = "gridColumn14"; + this.gridColumn14.Visible = true; + this.gridColumn14.VisibleIndex = 12; + // + // repositoryItemtxteditorId + // + this.repositoryItemtxteditorId.AutoHeight = false; + this.repositoryItemtxteditorId.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxteditorId.DisplayMember = "Name"; + this.repositoryItemtxteditorId.Name = "repositoryItemtxteditorId"; + this.repositoryItemtxteditorId.NullText = ""; + this.repositoryItemtxteditorId.ValueMember = "ID"; + // + // gridColumn15 + // + this.gridColumn15.Caption = "编辑时间"; + this.gridColumn15.DisplayFormat.FormatString = "G"; + this.gridColumn15.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.gridColumn15.FieldName = "editTime"; + this.gridColumn15.Name = "gridColumn15"; + this.gridColumn15.Visible = true; + this.gridColumn15.VisibleIndex = 13; + // // tabDataDetail // this.tabDataDetail.Controls.Add(this.panelControl2); @@ -362,6 +454,10 @@ namespace MES.Form // // layoutControl1 // + this.layoutControl1.Controls.Add(this.txteditTime); + this.layoutControl1.Controls.Add(this.txtcreateTime); + this.layoutControl1.Controls.Add(this.txteditorId); + this.layoutControl1.Controls.Add(this.txtcreatorId); this.layoutControl1.Controls.Add(this.txtunitcost); this.layoutControl1.Controls.Add(this.xtraTabControl2); this.layoutControl1.Controls.Add(this.txtid); @@ -383,12 +479,78 @@ namespace MES.Form this.layoutControl1.TabIndex = 6; this.layoutControl1.Text = "layoutControl1"; // + // txteditTime + // + this.txteditTime.EditValue = null; + this.txteditTime.Location = new System.Drawing.Point(562, 156); + this.txteditTime.Name = "txteditTime"; + this.txteditTime.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txteditTime.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txteditTime.Properties.DisplayFormat.FormatString = "G"; + this.txteditTime.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.txteditTime.Properties.EditFormat.FormatString = "G"; + this.txteditTime.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.txteditTime.Size = new System.Drawing.Size(443, 20); + this.txteditTime.StyleController = this.layoutControl1; + this.txteditTime.TabIndex = 1; + // + // txtcreateTime + // + this.txtcreateTime.EditValue = null; + this.txtcreateTime.Location = new System.Drawing.Point(562, 132); + this.txtcreateTime.Name = "txtcreateTime"; + this.txtcreateTime.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtcreateTime.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtcreateTime.Properties.DisplayFormat.FormatString = "G"; + this.txtcreateTime.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.txtcreateTime.Properties.EditFormat.FormatString = "G"; + this.txtcreateTime.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.txtcreateTime.Size = new System.Drawing.Size(443, 20); + this.txtcreateTime.StyleController = this.layoutControl1; + this.txtcreateTime.TabIndex = 1; + // + // txteditorId + // + this.txteditorId.Location = new System.Drawing.Point(64, 156); + this.txteditorId.Name = "txteditorId"; + this.txteditorId.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txteditorId.Properties.DisplayMember = "Name"; + this.txteditorId.Properties.ValueMember = "ID"; + this.txteditorId.Size = new System.Drawing.Size(442, 20); + this.txteditorId.StyleController = this.layoutControl1; + this.txteditorId.TabIndex = 1; + // + // txtcreatorId + // + this.txtcreatorId.Location = new System.Drawing.Point(64, 132); + 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.ValueMember = "ID"; + this.txtcreatorId.Size = new System.Drawing.Size(442, 20); + this.txtcreatorId.StyleController = this.layoutControl1; + this.txtcreatorId.TabIndex = 1; + // + // txtunitcost + // + this.txtunitcost.Location = new System.Drawing.Point(64, 180); + this.txtunitcost.Name = "txtunitcost"; + this.txtunitcost.Size = new System.Drawing.Size(442, 20); + this.txtunitcost.StyleController = this.layoutControl1; + this.txtunitcost.TabIndex = 1; + // // xtraTabControl2 // - this.xtraTabControl2.Location = new System.Drawing.Point(12, 156); + this.xtraTabControl2.Location = new System.Drawing.Point(12, 204); this.xtraTabControl2.Name = "xtraTabControl2"; this.xtraTabControl2.SelectedTabPage = this.xtraTabPage1; - this.xtraTabControl2.Size = new System.Drawing.Size(993, 509); + this.xtraTabControl2.Size = new System.Drawing.Size(993, 461); this.xtraTabControl2.TabIndex = 12; this.xtraTabControl2.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { this.xtraTabPage1}); @@ -397,7 +559,7 @@ namespace MES.Form // this.xtraTabPage1.Controls.Add(this.treeList1); this.xtraTabPage1.Name = "xtraTabPage1"; - this.xtraTabPage1.Size = new System.Drawing.Size(987, 480); + this.xtraTabPage1.Size = new System.Drawing.Size(987, 432); this.xtraTabPage1.Text = "物料清单"; // // treeList1 @@ -417,7 +579,8 @@ namespace MES.Form this.treeListColumn13, this.treeListColumn14, this.treeListColumn15, - this.treeListColumn16}); + this.treeListColumn16, + this.treeListColumn6}); this.treeList1.ContextMenuStrip = this.contextMenuStrip1; this.treeList1.Dock = System.Windows.Forms.DockStyle.Fill; this.treeList1.KeyFieldName = "id"; @@ -427,7 +590,7 @@ namespace MES.Form this.treeList1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { this.repositoryItemLookUpEditmaterialtype, this.repositoryItemLookUpEditmaterialname}); - this.treeList1.Size = new System.Drawing.Size(987, 480); + this.treeList1.Size = new System.Drawing.Size(987, 432); this.treeList1.TabIndex = 0; this.treeList1.ValidateNode += new DevExpress.XtraTreeList.ValidateNodeEventHandler(this.treeList1_ValidateNode); // @@ -558,10 +721,13 @@ namespace MES.Form // // treeListColumn15 // + this.treeListColumn15.AllNodesSummary = true; this.treeListColumn15.Caption = "金额"; this.treeListColumn15.FieldName = "money"; this.treeListColumn15.Name = "treeListColumn15"; this.treeListColumn15.OptionsColumn.AllowEdit = false; + this.treeListColumn15.RowFooterSummary = DevExpress.XtraTreeList.SummaryItemType.Sum; + this.treeListColumn15.SummaryFooter = DevExpress.XtraTreeList.SummaryItemType.Sum; this.treeListColumn15.Visible = true; this.treeListColumn15.VisibleIndex = 8; // @@ -715,7 +881,7 @@ namespace MES.Form // // txtremark // - this.txtremark.Location = new System.Drawing.Point(562, 132); + this.txtremark.Location = new System.Drawing.Point(562, 180); this.txtremark.Name = "txtremark"; this.txtremark.Size = new System.Drawing.Size(443, 20); this.txtremark.StyleController = this.layoutControl1; @@ -738,7 +904,11 @@ namespace MES.Form this.layoutControlItem12, this.layoutControlItem5, this.layoutControlItem4, - this.txtunitcost111}); + this.txtunitcost111, + this.layoutControlItem13, + this.layoutControlItem14, + this.layoutControlItem15, + this.layoutControlItem16}); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(1017, 677); this.layoutControlGroup1.TextVisible = false; @@ -787,7 +957,7 @@ namespace MES.Form // this.layoutControlItem11.Control = this.txtremark; this.layoutControlItem11.CustomizationFormText = "备注"; - this.layoutControlItem11.Location = new System.Drawing.Point(498, 120); + this.layoutControlItem11.Location = new System.Drawing.Point(498, 168); this.layoutControlItem11.Name = "layoutControlItem11"; this.layoutControlItem11.Size = new System.Drawing.Size(499, 24); this.layoutControlItem11.Text = "备注"; @@ -836,9 +1006,9 @@ namespace MES.Form // layoutControlItem12 // this.layoutControlItem12.Control = this.xtraTabControl2; - this.layoutControlItem12.Location = new System.Drawing.Point(0, 144); + this.layoutControlItem12.Location = new System.Drawing.Point(0, 192); this.layoutControlItem12.Name = "layoutControlItem12"; - this.layoutControlItem12.Size = new System.Drawing.Size(997, 513); + this.layoutControlItem12.Size = new System.Drawing.Size(997, 465); this.layoutControlItem12.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem12.TextVisible = false; // @@ -862,23 +1032,59 @@ namespace MES.Form this.layoutControlItem4.Text = "产品编号"; this.layoutControlItem4.TextSize = new System.Drawing.Size(49, 14); // - // txtunitcost - // - this.txtunitcost.Location = new System.Drawing.Point(64, 132); - this.txtunitcost.Name = "txtunitcost"; - this.txtunitcost.Size = new System.Drawing.Size(442, 20); - this.txtunitcost.StyleController = this.layoutControl1; - this.txtunitcost.TabIndex = 1; - // // txtunitcost111 // this.txtunitcost111.Control = this.txtunitcost; - this.txtunitcost111.Location = new System.Drawing.Point(0, 120); + this.txtunitcost111.Location = new System.Drawing.Point(0, 168); this.txtunitcost111.Name = "txtunitcost111"; this.txtunitcost111.Size = new System.Drawing.Size(498, 24); this.txtunitcost111.Text = "单位成本"; this.txtunitcost111.TextSize = new System.Drawing.Size(49, 14); // + // layoutControlItem13 + // + this.layoutControlItem13.Control = this.txtcreatorId; + this.layoutControlItem13.Location = new System.Drawing.Point(0, 120); + this.layoutControlItem13.Name = "layoutControlItem13"; + this.layoutControlItem13.Size = new System.Drawing.Size(498, 24); + this.layoutControlItem13.Text = "创建人"; + this.layoutControlItem13.TextSize = new System.Drawing.Size(49, 14); + // + // layoutControlItem14 + // + this.layoutControlItem14.Control = this.txteditorId; + this.layoutControlItem14.Location = new System.Drawing.Point(0, 144); + this.layoutControlItem14.Name = "layoutControlItem14"; + this.layoutControlItem14.Size = new System.Drawing.Size(498, 24); + this.layoutControlItem14.Text = "编辑人"; + this.layoutControlItem14.TextSize = new System.Drawing.Size(49, 14); + // + // layoutControlItem15 + // + this.layoutControlItem15.Control = this.txtcreateTime; + this.layoutControlItem15.Location = new System.Drawing.Point(498, 120); + this.layoutControlItem15.Name = "layoutControlItem15"; + this.layoutControlItem15.Size = new System.Drawing.Size(499, 24); + this.layoutControlItem15.Text = "创建时间"; + this.layoutControlItem15.TextSize = new System.Drawing.Size(49, 14); + // + // layoutControlItem16 + // + this.layoutControlItem16.Control = this.txteditTime; + this.layoutControlItem16.Location = new System.Drawing.Point(498, 144); + this.layoutControlItem16.Name = "layoutControlItem16"; + this.layoutControlItem16.Size = new System.Drawing.Size(499, 24); + this.layoutControlItem16.Text = "编辑时间"; + this.layoutControlItem16.TextSize = new System.Drawing.Size(49, 14); + // + // treeListColumn6 + // + this.treeListColumn6.Caption = "明细编号"; + this.treeListColumn6.FieldName = "productBOMdetailcode"; + this.treeListColumn6.Name = "treeListColumn6"; + this.treeListColumn6.Visible = true; + this.treeListColumn6.VisibleIndex = 10; + // // FrmproductBOM // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); @@ -898,11 +1104,20 @@ namespace MES.Form this.tabDataList.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.grdList)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.grdListView)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcreatorId)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxteditorId)).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.txteditTime.Properties.CalendarTimeProperties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txteditTime.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreateTime.Properties.CalendarTimeProperties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreateTime.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txteditorId.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreatorId.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtunitcost.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl2)).EndInit(); this.xtraTabControl2.ResumeLayout(false); this.xtraTabPage1.ResumeLayout(false); @@ -934,8 +1149,11 @@ namespace MES.Form ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtunitcost.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtunitcost111)).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(); this.ResumeLayout(false); } @@ -1027,5 +1245,20 @@ namespace MES.Form private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemLookUpEditmaterialname; private TextEdit txtunitcost; private LayoutControlItem txtunitcost111; + 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 DateEdit txteditTime; + private DateEdit txtcreateTime; + private LookUpEdit txteditorId; + private LookUpEdit txtcreatorId; + private LayoutControlItem layoutControlItem13; + private LayoutControlItem layoutControlItem14; + private LayoutControlItem layoutControlItem15; + private LayoutControlItem layoutControlItem16; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtcreatorId; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxteditorId; + private DevExpress.XtraTreeList.Columns.TreeListColumn treeListColumn6; } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/FrmproductBOMdetail.cs b/WinformGeneralDeveloperFrame/Form/FrmproductBOMdetail.cs deleted file mode 100644 index 56f38da..0000000 --- a/WinformGeneralDeveloperFrame/Form/FrmproductBOMdetail.cs +++ /dev/null @@ -1,244 +0,0 @@ -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 FrmproductBOMdetail : FrmBaseForm - { - private Dictionary fieldDictionary = new Dictionary(); - public FrmproductBOMdetail() - { - InitializeComponent(); - } - private void FrmproductBOMdetail_Load(object sender, EventArgs e) - { - InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new productBOMdetailInfo()); - InitSearchDicData(); - } - /// - /// 数据源初始化 - /// - /// - private void Init() - { - txtpid.Properties.DataSource = GetDataTableUtils.SqlTable("物料tree"); - repositoryItemTreeListtxtpid.DataSource= GetDataTableUtils.SqlTable("物料tree"); - txtmaterialname.Properties.DataSource = GetDataTableUtils.SqlTable("物料tree"); - repositoryItemTreeListtxtmaterialname.DataSource= GetDataTableUtils.SqlTable("物料tree"); - txtmaterialtype.Properties.DataSource = GetDataTableUtils.SqlTable("物料类别"); - repositoryItemtxtmaterialtype.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("id","id"); - fieldDictionary.Add("父项","pid"); - fieldDictionary.Add("BOM主表","productBOMid"); - fieldDictionary.Add("BOM编号","productBOMcode"); - fieldDictionary.Add("产品编号","productcode"); - fieldDictionary.Add("物料id","materialid"); - fieldDictionary.Add("物料名称","materialname"); - fieldDictionary.Add("物料编号","materialcode"); - fieldDictionary.Add("规格型号","materialspec"); - fieldDictionary.Add("物料类型","materialtype"); - fieldDictionary.Add("单位用量","unitusenumber"); - fieldDictionary.Add("计量单位","unit"); - fieldDictionary.Add("仓库","warehouse"); - fieldDictionary.Add("单价","unitprice"); - fieldDictionary.Add("金额","money"); - fieldDictionary.Add("备注","remark"); - } - - public override void InitgrdListDataSource() - { - using (var con=new MESDB())/// - { - grdList.DataSource=con.productBOMdetailInfo.ToList(); - } - Init(); - } - /// - /// 字段为空校验 - /// - /// - public override bool CheckInput() - { - if(string.IsNullOrEmpty(txtpid.EditValue.ToString())) - { - "父项不能为空".ShowWarning(); - txtpid.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtproductBOMid.EditValue.ToString())) - { - "BOM主表不能为空".ShowWarning(); - txtproductBOMid.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtproductBOMcode.EditValue.ToString())) - { - "BOM编号不能为空".ShowWarning(); - txtproductBOMcode.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtproductcode.EditValue.ToString())) - { - "产品编号不能为空".ShowWarning(); - txtproductcode.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtmaterialid.EditValue.ToString())) - { - "物料id不能为空".ShowWarning(); - txtmaterialid.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtmaterialname.EditValue.ToString())) - { - "物料名称不能为空".ShowWarning(); - txtmaterialname.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtmaterialcode.EditValue.ToString())) - { - "物料编号不能为空".ShowWarning(); - txtmaterialcode.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtmaterialspec.EditValue.ToString())) - { - "规格型号不能为空".ShowWarning(); - txtmaterialspec.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtmaterialtype.EditValue.ToString())) - { - "物料类型不能为空".ShowWarning(); - txtmaterialtype.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtunitusenumber.EditValue.ToString())) - { - "单位用量不能为空".ShowWarning(); - txtunitusenumber.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtunit.EditValue.ToString())) - { - "计量单位不能为空".ShowWarning(); - txtunit.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtwarehouse.EditValue.ToString())) - { - "仓库不能为空".ShowWarning(); - txtwarehouse.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtunitprice.EditValue.ToString())) - { - "单价不能为空".ShowWarning(); - txtunitprice.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtmoney.EditValue.ToString())) - { - "金额不能为空".ShowWarning(); - txtmoney.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtremark.EditValue.ToString())) - { - "备注不能为空".ShowWarning(); - txtremark.Focus(); - return false; - } - return true; - } - /// - /// 保存 - /// - /// - public override bool SaveFunction() - { - try - { - productBOMdetailInfo info= (productBOMdetailInfo)this.ControlDataToModel(new productBOMdetailInfo()); - using (var db = new MESDB()) - { - db.productBOMdetailInfo.AddOrUpdate(info); - db.SaveChanges(); - } - } - catch (Exception ex) - { - ex.Message.ShowError(); - return false; - } - return true; - } - /// - /// 删除 - /// - /// - public override bool DelFunction() - { - try - { - productBOMdetailInfo info = (productBOMdetailInfo)this.ControlDataToModel(new productBOMdetailInfo()); - 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.productBOMdetailInfo.SqlQuery("select * from productBOMdetail").ToList(); - } - else - { - grdList.DataSource = db.productBOMdetailInfo.SqlQuery($"select * from productBOMdetail where {sql}").ToList(); - } - } - } - } - } -} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/FrmproductBOMdetail.designer.cs b/WinformGeneralDeveloperFrame/Form/FrmproductBOMdetail.designer.cs deleted file mode 100644 index 3f19d12..0000000 --- a/WinformGeneralDeveloperFrame/Form/FrmproductBOMdetail.designer.cs +++ /dev/null @@ -1,1026 +0,0 @@ - -using DevExpress.XtraEditors; -using DevExpress.XtraLayout; -using DevExpress.XtraTab; - -namespace MES.Form -{ - partial class FrmproductBOMdetail - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn9 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn10 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn11 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn13 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn14 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn15 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn16 = new DevExpress.XtraGrid.Columns.GridColumn(); - - this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); - this.tabDataList = new DevExpress.XtraTab.XtraTabPage(); - this.tabDataDetail = new DevExpress.XtraTab.XtraTabPage(); - this.grdList = new DevExpress.XtraGrid.GridControl(); - this.grdListView = new DevExpress.XtraGrid.Views.Grid.GridView(); - this.panelControl2 = new DevExpress.XtraEditors.PanelControl(); - this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); - this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); - - - ////////////////////// - this.txtid=new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txtpidTreeList = new DevExpress.XtraTreeList.TreeList(); - this.repositoryItemTreeListtxtpid = new DevExpress.XtraEditors.Repository.RepositoryItemTreeListLookUpEdit(); - this.repositoryItemTreeListtxtpidTreeList = new DevExpress.XtraTreeList.TreeList(); - - this.txtpid=new DevExpress.XtraEditors.TreeListLookUpEdit(); - this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); - ////////////////////// - this.txtproductBOMid=new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); - ////////////////////// - this.txtproductBOMcode=new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); - ////////////////////// - this.txtproductcode=new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); - ////////////////////// - this.txtmaterialid=new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txtmaterialnameTreeList = new DevExpress.XtraTreeList.TreeList(); - this.repositoryItemTreeListtxtmaterialname = new DevExpress.XtraEditors.Repository.RepositoryItemTreeListLookUpEdit(); - this.repositoryItemTreeListtxtmaterialnameTreeList = new DevExpress.XtraTreeList.TreeList(); - - this.txtmaterialname=new DevExpress.XtraEditors.TreeListLookUpEdit(); - this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); - ////////////////////// - this.txtmaterialcode=new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); - ////////////////////// - this.txtmaterialspec=new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); - this.repositoryItemtxtmaterialtype = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); - - this.txtmaterialtype=new DevExpress.XtraEditors.LookUpEdit(); - this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); - ////////////////////// - this.txtunitusenumber=new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); - this.repositoryItemtxtunit = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); - - this.txtunit=new DevExpress.XtraEditors.LookUpEdit(); - this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem(); - this.repositoryItemtxtwarehouse = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); - - this.txtwarehouse=new DevExpress.XtraEditors.LookUpEdit(); - this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem(); - ////////////////////// - this.txtunitprice=new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem(); - ////////////////////// - this.txtmoney=new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem(); - ////////////////////// - this.txtremark=new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem16 = new DevExpress.XtraLayout.LayoutControlItem(); - - - ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); - - this.layoutControl1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtpidTreeList)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtpid)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtpidTreeList)).BeginInit(); - - ((System.ComponentModel.ISupportInitialize)(this.txtpid.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtproductBOMid.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtproductBOMcode.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtproductcode.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtmaterialid.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtmaterialnameTreeList)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtmaterialname)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtmaterialnameTreeList)).BeginInit(); - - ((System.ComponentModel.ISupportInitialize)(this.txtmaterialname.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtmaterialcode.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtmaterialspec.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtmaterialtype)).BeginInit(); - - ((System.ComponentModel.ISupportInitialize)(this.txtmaterialtype.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtunitusenumber.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtunit)).BeginInit(); - - ((System.ComponentModel.ISupportInitialize)(this.txtunit.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtwarehouse)).BeginInit(); - - ((System.ComponentModel.ISupportInitialize)(this.txtwarehouse.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtunitprice.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtmoney.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).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(); - - this.SuspendLayout(); - - // layoutControl1 - // - - this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.layoutControl1.Location = new System.Drawing.Point(12, 8); - this.layoutControl1.Name = "layoutControl1"; - this.layoutControl1.Root = this.layoutControlGroup1; - layoutControl1.AutoScroll=true; - this.layoutControl1.Size = new System.Drawing.Size(605, 363); - this.layoutControl1.TabIndex = 6; - this.layoutControl1.Text = "layoutControl1"; - - this.layoutControl1.Controls.Add(this.txtid); - this.layoutControl1.Controls.Add(this.txtpid); - this.layoutControl1.Controls.Add(this.txtproductBOMid); - this.layoutControl1.Controls.Add(this.txtproductBOMcode); - this.layoutControl1.Controls.Add(this.txtproductcode); - this.layoutControl1.Controls.Add(this.txtmaterialid); - this.layoutControl1.Controls.Add(this.txtmaterialname); - this.layoutControl1.Controls.Add(this.txtmaterialcode); - this.layoutControl1.Controls.Add(this.txtmaterialspec); - this.layoutControl1.Controls.Add(this.txtmaterialtype); - this.layoutControl1.Controls.Add(this.txtunitusenumber); - this.layoutControl1.Controls.Add(this.txtunit); - this.layoutControl1.Controls.Add(this.txtwarehouse); - this.layoutControl1.Controls.Add(this.txtunitprice); - this.layoutControl1.Controls.Add(this.txtmoney); - this.layoutControl1.Controls.Add(this.txtremark); -//TextEdit -//DateEdit -//SimpleButton -//CheckEdit -//MemoEdit -//PictureEdit -//LookUpEdit -//ComboBoxEdit - // - // txt${ColumnInfo.Name.Alias.ToCapit()} - // - this.txtid.Location = new System.Drawing.Point(112, 12); - this.txtid.Name = "txtid"; - this.txtid.Size = new System.Drawing.Size(481, 20); - this.txtid.StyleController = this.layoutControl1; - this.txtid.TabIndex = 1; - // - // layoutControlItem1 - // - this.layoutControlItem1.Control = this.txtid; - this.layoutControlItem1.CustomizationFormText = "id"; - this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); - this.layoutControlItem1.Name = "layoutControlItem1"; - this.layoutControlItem1.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem1.Text = "id"; - this.layoutControlItem1.TextSize = new System.Drawing.Size(96, 14); - - // - // treeListLookUpEdit1 - // - this.txtpid.EditValue = ""; - this.txtpid.Location = new System.Drawing.Point(120, 84); - this.txtpid.Name = "txtpid"; - this.txtpid.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { - new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); - this.txtpid.Properties.DisplayMember = "Name"; - this.txtpid.Properties.TreeList = this.txtpidTreeList; - this.txtpid.Properties.ValueMember = "ID"; - this.txtpid.Size = new System.Drawing.Size(932, 20); - this.txtpid.StyleController = this.layoutControl1; - this.txtpid.TabIndex = 2; - // - // treeListLookUpEdit1TreeList - // - this.txtpidTreeList.Location = new System.Drawing.Point(0, 0); - this.txtpidTreeList.Name = "txtpidTreeList"; - this.txtpidTreeList.OptionsView.ShowIndentAsRowStyle = true; - this.txtpidTreeList.ParentFieldName = "PID"; - this.txtpidTreeList.Size = new System.Drawing.Size(400, 200); - this.txtpidTreeList.TabIndex = 0; - - // - // layoutControlItem2 - // - this.layoutControlItem2.Control = this.txtpid; - this.layoutControlItem2.CustomizationFormText = "父项"; - this.layoutControlItem2.Location = new System.Drawing.Point(0, 24); - this.layoutControlItem2.Name = "layoutControlItem2"; - this.layoutControlItem2.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem2.Text = "父项"; - this.layoutControlItem2.TextSize = new System.Drawing.Size(96, 14); - - // - // txt${ColumnInfo.Name.Alias.ToCapit()} - // - this.txtproductBOMid.Location = new System.Drawing.Point(112, 60); - this.txtproductBOMid.Name = "txtproductBOMid"; - this.txtproductBOMid.Size = new System.Drawing.Size(481, 20); - this.txtproductBOMid.StyleController = this.layoutControl1; - this.txtproductBOMid.TabIndex = 3; - // - // layoutControlItem3 - // - this.layoutControlItem3.Control = this.txtproductBOMid; - this.layoutControlItem3.CustomizationFormText = "BOM主表"; - this.layoutControlItem3.Location = new System.Drawing.Point(0, 48); - this.layoutControlItem3.Name = "layoutControlItem3"; - this.layoutControlItem3.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem3.Text = "BOM主表"; - this.layoutControlItem3.TextSize = new System.Drawing.Size(96, 14); - - // - // txt${ColumnInfo.Name.Alias.ToCapit()} - // - this.txtproductBOMcode.Location = new System.Drawing.Point(112, 84); - this.txtproductBOMcode.Name = "txtproductBOMcode"; - this.txtproductBOMcode.Size = new System.Drawing.Size(481, 20); - this.txtproductBOMcode.StyleController = this.layoutControl1; - this.txtproductBOMcode.TabIndex = 4; - // - // layoutControlItem4 - // - this.layoutControlItem4.Control = this.txtproductBOMcode; - this.layoutControlItem4.CustomizationFormText = "BOM编号"; - this.layoutControlItem4.Location = new System.Drawing.Point(0, 72); - this.layoutControlItem4.Name = "layoutControlItem4"; - this.layoutControlItem4.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem4.Text = "BOM编号"; - this.layoutControlItem4.TextSize = new System.Drawing.Size(96, 14); - - // - // txt${ColumnInfo.Name.Alias.ToCapit()} - // - this.txtproductcode.Location = new System.Drawing.Point(112, 108); - this.txtproductcode.Name = "txtproductcode"; - this.txtproductcode.Size = new System.Drawing.Size(481, 20); - this.txtproductcode.StyleController = this.layoutControl1; - this.txtproductcode.TabIndex = 5; - // - // layoutControlItem5 - // - this.layoutControlItem5.Control = this.txtproductcode; - this.layoutControlItem5.CustomizationFormText = "产品编号"; - this.layoutControlItem5.Location = new System.Drawing.Point(0, 96); - this.layoutControlItem5.Name = "layoutControlItem5"; - this.layoutControlItem5.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem5.Text = "产品编号"; - this.layoutControlItem5.TextSize = new System.Drawing.Size(96, 14); - - // - // txt${ColumnInfo.Name.Alias.ToCapit()} - // - this.txtmaterialid.Location = new System.Drawing.Point(112, 132); - this.txtmaterialid.Name = "txtmaterialid"; - this.txtmaterialid.Size = new System.Drawing.Size(481, 20); - this.txtmaterialid.StyleController = this.layoutControl1; - this.txtmaterialid.TabIndex = 6; - // - // layoutControlItem6 - // - this.layoutControlItem6.Control = this.txtmaterialid; - this.layoutControlItem6.CustomizationFormText = "物料id"; - this.layoutControlItem6.Location = new System.Drawing.Point(0, 120); - this.layoutControlItem6.Name = "layoutControlItem6"; - this.layoutControlItem6.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem6.Text = "物料id"; - this.layoutControlItem6.TextSize = new System.Drawing.Size(96, 14); - - // - // treeListLookUpEdit1 - // - this.txtmaterialname.EditValue = ""; - this.txtmaterialname.Location = new System.Drawing.Point(120, 84); - this.txtmaterialname.Name = "txtmaterialname"; - this.txtmaterialname.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { - new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); - this.txtmaterialname.Properties.DisplayMember = "Name"; - this.txtmaterialname.Properties.TreeList = this.txtmaterialnameTreeList; - this.txtmaterialname.Properties.ValueMember = "ID"; - this.txtmaterialname.Size = new System.Drawing.Size(932, 20); - this.txtmaterialname.StyleController = this.layoutControl1; - this.txtmaterialname.TabIndex = 7; - // - // treeListLookUpEdit1TreeList - // - this.txtmaterialnameTreeList.Location = new System.Drawing.Point(0, 0); - this.txtmaterialnameTreeList.Name = "txtmaterialnameTreeList"; - this.txtmaterialnameTreeList.OptionsView.ShowIndentAsRowStyle = true; - this.txtmaterialnameTreeList.ParentFieldName = "PID"; - this.txtmaterialnameTreeList.Size = new System.Drawing.Size(400, 200); - this.txtmaterialnameTreeList.TabIndex = 0; - - // - // layoutControlItem7 - // - this.layoutControlItem7.Control = this.txtmaterialname; - this.layoutControlItem7.CustomizationFormText = "物料名称"; - this.layoutControlItem7.Location = new System.Drawing.Point(0, 144); - this.layoutControlItem7.Name = "layoutControlItem7"; - this.layoutControlItem7.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem7.Text = "物料名称"; - this.layoutControlItem7.TextSize = new System.Drawing.Size(96, 14); - - // - // txt${ColumnInfo.Name.Alias.ToCapit()} - // - this.txtmaterialcode.Location = new System.Drawing.Point(112, 180); - this.txtmaterialcode.Name = "txtmaterialcode"; - this.txtmaterialcode.Size = new System.Drawing.Size(481, 20); - this.txtmaterialcode.StyleController = this.layoutControl1; - this.txtmaterialcode.TabIndex = 8; - // - // layoutControlItem8 - // - this.layoutControlItem8.Control = this.txtmaterialcode; - this.layoutControlItem8.CustomizationFormText = "物料编号"; - this.layoutControlItem8.Location = new System.Drawing.Point(0, 168); - this.layoutControlItem8.Name = "layoutControlItem8"; - this.layoutControlItem8.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem8.Text = "物料编号"; - this.layoutControlItem8.TextSize = new System.Drawing.Size(96, 14); - - // - // txt${ColumnInfo.Name.Alias.ToCapit()} - // - this.txtmaterialspec.Location = new System.Drawing.Point(112, 204); - this.txtmaterialspec.Name = "txtmaterialspec"; - this.txtmaterialspec.Size = new System.Drawing.Size(481, 20); - this.txtmaterialspec.StyleController = this.layoutControl1; - this.txtmaterialspec.TabIndex = 9; - // - // layoutControlItem9 - // - this.layoutControlItem9.Control = this.txtmaterialspec; - this.layoutControlItem9.CustomizationFormText = "规格型号"; - this.layoutControlItem9.Location = new System.Drawing.Point(0, 192); - this.layoutControlItem9.Name = "layoutControlItem9"; - this.layoutControlItem9.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem9.Text = "规格型号"; - this.layoutControlItem9.TextSize = new System.Drawing.Size(96, 14); - - // - // lookUpEdit1 - // - this.txtmaterialtype.Location = new System.Drawing.Point(120, 60); - this.txtmaterialtype.Name = "txtmaterialtype"; - this.txtmaterialtype.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { - new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); - this.txtmaterialtype.Properties.DisplayMember = "Name"; - this.txtmaterialtype.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; - this.txtmaterialtype.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; - this.txtmaterialtype.Properties.ValueMember = "ID"; - this.txtmaterialtype.Size = new System.Drawing.Size(932, 20); - this.txtmaterialtype.StyleController = this.layoutControl1; - this.txtmaterialtype.TabIndex = 10; - this.txtmaterialtype.EditValue = ""; - - // - // layoutControlItem10 - // - this.layoutControlItem10.Control = this.txtmaterialtype; - this.layoutControlItem10.CustomizationFormText = "物料类型"; - this.layoutControlItem10.Location = new System.Drawing.Point(0, 216); - this.layoutControlItem10.Name = "layoutControlItem10"; - this.layoutControlItem10.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem10.Text = "物料类型"; - this.layoutControlItem10.TextSize = new System.Drawing.Size(96, 14); - - // - // txt${ColumnInfo.Name.Alias.ToCapit()} - // - this.txtunitusenumber.Location = new System.Drawing.Point(112, 252); - this.txtunitusenumber.Name = "txtunitusenumber"; - this.txtunitusenumber.Size = new System.Drawing.Size(481, 20); - this.txtunitusenumber.StyleController = this.layoutControl1; - this.txtunitusenumber.TabIndex = 11; - // - // layoutControlItem11 - // - this.layoutControlItem11.Control = this.txtunitusenumber; - this.layoutControlItem11.CustomizationFormText = "单位用量"; - this.layoutControlItem11.Location = new System.Drawing.Point(0, 240); - this.layoutControlItem11.Name = "layoutControlItem11"; - this.layoutControlItem11.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem11.Text = "单位用量"; - this.layoutControlItem11.TextSize = new System.Drawing.Size(96, 14); - - // - // lookUpEdit1 - // - this.txtunit.Location = new System.Drawing.Point(120, 60); - this.txtunit.Name = "txtunit"; - this.txtunit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { - new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); - this.txtunit.Properties.DisplayMember = "Name"; - this.txtunit.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; - this.txtunit.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; - this.txtunit.Properties.ValueMember = "ID"; - this.txtunit.Size = new System.Drawing.Size(932, 20); - this.txtunit.StyleController = this.layoutControl1; - this.txtunit.TabIndex = 12; - this.txtunit.EditValue = ""; - - // - // layoutControlItem12 - // - this.layoutControlItem12.Control = this.txtunit; - this.layoutControlItem12.CustomizationFormText = "计量单位"; - this.layoutControlItem12.Location = new System.Drawing.Point(0, 264); - this.layoutControlItem12.Name = "layoutControlItem12"; - this.layoutControlItem12.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem12.Text = "计量单位"; - this.layoutControlItem12.TextSize = new System.Drawing.Size(96, 14); - - // - // lookUpEdit1 - // - this.txtwarehouse.Location = new System.Drawing.Point(120, 60); - 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(932, 20); - this.txtwarehouse.StyleController = this.layoutControl1; - this.txtwarehouse.TabIndex = 13; - this.txtwarehouse.EditValue = ""; - - // - // layoutControlItem13 - // - this.layoutControlItem13.Control = this.txtwarehouse; - this.layoutControlItem13.CustomizationFormText = "仓库"; - this.layoutControlItem13.Location = new System.Drawing.Point(0, 288); - this.layoutControlItem13.Name = "layoutControlItem13"; - this.layoutControlItem13.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem13.Text = "仓库"; - this.layoutControlItem13.TextSize = new System.Drawing.Size(96, 14); - - // - // txt${ColumnInfo.Name.Alias.ToCapit()} - // - this.txtunitprice.Location = new System.Drawing.Point(112, 324); - this.txtunitprice.Name = "txtunitprice"; - this.txtunitprice.Size = new System.Drawing.Size(481, 20); - this.txtunitprice.StyleController = this.layoutControl1; - this.txtunitprice.TabIndex = 14; - // - // layoutControlItem14 - // - this.layoutControlItem14.Control = this.txtunitprice; - this.layoutControlItem14.CustomizationFormText = "单价"; - this.layoutControlItem14.Location = new System.Drawing.Point(0, 312); - this.layoutControlItem14.Name = "layoutControlItem14"; - this.layoutControlItem14.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem14.Text = "单价"; - this.layoutControlItem14.TextSize = new System.Drawing.Size(96, 14); - - // - // txt${ColumnInfo.Name.Alias.ToCapit()} - // - this.txtmoney.Location = new System.Drawing.Point(112, 348); - this.txtmoney.Name = "txtmoney"; - this.txtmoney.Size = new System.Drawing.Size(481, 20); - this.txtmoney.StyleController = this.layoutControl1; - this.txtmoney.TabIndex = 15; - // - // layoutControlItem15 - // - this.layoutControlItem15.Control = this.txtmoney; - this.layoutControlItem15.CustomizationFormText = "金额"; - this.layoutControlItem15.Location = new System.Drawing.Point(0, 336); - this.layoutControlItem15.Name = "layoutControlItem15"; - this.layoutControlItem15.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem15.Text = "金额"; - this.layoutControlItem15.TextSize = new System.Drawing.Size(96, 14); - - // - // txt${ColumnInfo.Name.Alias.ToCapit()} - // - this.txtremark.Location = new System.Drawing.Point(112, 372); - this.txtremark.Name = "txtremark"; - this.txtremark.Size = new System.Drawing.Size(481, 20); - this.txtremark.StyleController = this.layoutControl1; - this.txtremark.TabIndex = 16; - // - // layoutControlItem16 - // - this.layoutControlItem16.Control = this.txtremark; - this.layoutControlItem16.CustomizationFormText = "备注"; - this.layoutControlItem16.Location = new System.Drawing.Point(0, 360); - this.layoutControlItem16.Name = "layoutControlItem16"; - this.layoutControlItem16.Size = new System.Drawing.Size(585, 24); - this.layoutControlItem16.Text = "备注"; - this.layoutControlItem16.TextSize = new System.Drawing.Size(96, 14); - - - // - // layoutControlGroup1 - // - this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; - this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; - this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { - this.layoutControlItem1 - ,this.layoutControlItem2 - ,this.layoutControlItem3 - ,this.layoutControlItem4 - ,this.layoutControlItem5 - ,this.layoutControlItem6 - ,this.layoutControlItem7 - ,this.layoutControlItem8 - ,this.layoutControlItem9 - ,this.layoutControlItem10 - ,this.layoutControlItem11 - ,this.layoutControlItem12 - ,this.layoutControlItem13 - ,this.layoutControlItem14 - ,this.layoutControlItem15 - ,this.layoutControlItem16 - }); - this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); - this.layoutControlGroup1.Name = "layoutControlGroup1"; - this.layoutControlGroup1.Size = new System.Drawing.Size(605, 363); - this.layoutControlGroup1.Text = "layoutControlGroup1"; - this.layoutControlGroup1.TextVisible = false; - - - // - // xtraTabControl1 - // - this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.xtraTabControl1.Location = new System.Drawing.Point(0, 34); - this.xtraTabControl1.Name = "xtraTabControl1"; - this.xtraTabControl1.SelectedTabPage = this.tabDataList; - this.xtraTabControl1.Size = new System.Drawing.Size(585, 436); - this.xtraTabControl1.TabIndex = 1; - this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { - this.tabDataList, - this.tabDataDetail}); - // - // tabDataList - // - this.tabDataList.Controls.Add(this.grdList); - this.tabDataList.Name = "tabDataList"; - this.tabDataList.Size = new System.Drawing.Size(579, 407); - this.tabDataList.Text = "数据列表"; - // - // tabDataDetail - // - this.tabDataDetail.Controls.Add(this.panelControl2); - this.tabDataDetail.Name = "tabDataDetail"; - this.tabDataDetail.Size = new System.Drawing.Size(579, 407); - this.tabDataDetail.Text = "数据编辑"; - // - // grdList - // - this.grdList.Dock = System.Windows.Forms.DockStyle.Fill; - this.grdList.Location = new System.Drawing.Point(0, 0); - this.grdList.MainView = this.grdListView; - this.grdList.Name = "grdList"; - this.grdList.Size = new System.Drawing.Size(579, 407); - this.grdList.TabIndex = 0; - this.grdList.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { - this.grdListView}); - // - // grdListView - // - this.grdListView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { - this.gridColumn1, - this.gridColumn2, - this.gridColumn3, - this.gridColumn4, - this.gridColumn5, - this.gridColumn6, - this.gridColumn7, - this.gridColumn8, - this.gridColumn9, - this.gridColumn10, - this.gridColumn11, - this.gridColumn12, - this.gridColumn13, - this.gridColumn14, - this.gridColumn15, - this.gridColumn16, - }); - this.grdListView.OptionsBehavior.Editable = false; - this.grdListView.GridControl = this.grdList; - this.grdListView.Name = "grdListView"; - this.grdListView.OptionsView.ColumnAutoWidth=false; - this.grdListView.BestFitColumns(); - // - // panelControl2 - // - this.panelControl2.Controls.Add(this.layoutControl1); - this.panelControl2.Dock = System.Windows.Forms.DockStyle.Fill; - this.panelControl2.Location = new System.Drawing.Point(0, 0); - this.panelControl2.Name = "panelControl2"; - this.panelControl2.Size = new System.Drawing.Size(579, 407); - this.panelControl2.TabIndex = 0; - - //////////////////////////////// - (this.gridColumn1).Caption = "id"; - (this.gridColumn1).Name = "gridColumn1"; - (this.gridColumn1).FieldName = "id"; - // repositoryItemTreeListLookUpEdit1 - // - (this.gridColumn2).ColumnEdit = this.repositoryItemTreeListtxtpid; - this.repositoryItemTreeListtxtpid.AutoHeight = false; - this.repositoryItemTreeListtxtpid.DisplayMember = "Name"; - this.repositoryItemTreeListtxtpid.ValueMember = "ID"; - this.repositoryItemTreeListtxtpid.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { - new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); - this.repositoryItemTreeListtxtpid.Name = "repositoryItemTreeListtxtpid"; - this.repositoryItemTreeListtxtpid.TreeList = this.repositoryItemTreeListtxtpidTreeList; - // - // repositoryItemTreeListLookUpEdit1TreeList - // - this.repositoryItemTreeListtxtpidTreeList.Location = new System.Drawing.Point(0, 0); - this.repositoryItemTreeListtxtpidTreeList.ParentFieldName = "PID"; - this.repositoryItemTreeListtxtpidTreeList.Name = "repositoryItemTreeListtxtpidTreeList"; - this.repositoryItemTreeListtxtpidTreeList.OptionsView.ShowIndentAsRowStyle = true; - this.repositoryItemTreeListtxtpidTreeList.Size = new System.Drawing.Size(400, 200); - this.repositoryItemTreeListtxtpidTreeList.TabIndex = 0; - (this.gridColumn2).Caption = "父项"; - (this.gridColumn2).Name = "gridColumn2"; - (this.gridColumn2).FieldName = "pid"; - (this.gridColumn2).Visible = true; - (this.gridColumn2).VisibleIndex = 2; - - //////////////////////////////// - (this.gridColumn3).Caption = "BOM主表"; - (this.gridColumn3).Name = "gridColumn3"; - (this.gridColumn3).FieldName = "productBOMid"; - (this.gridColumn3).Visible = true; - (this.gridColumn3).VisibleIndex = 3; - - //////////////////////////////// - (this.gridColumn4).Caption = "BOM编号"; - (this.gridColumn4).Name = "gridColumn4"; - (this.gridColumn4).FieldName = "productBOMcode"; - (this.gridColumn4).Visible = true; - (this.gridColumn4).VisibleIndex = 4; - - //////////////////////////////// - (this.gridColumn5).Caption = "产品编号"; - (this.gridColumn5).Name = "gridColumn5"; - (this.gridColumn5).FieldName = "productcode"; - (this.gridColumn5).Visible = true; - (this.gridColumn5).VisibleIndex = 5; - - //////////////////////////////// - (this.gridColumn6).Caption = "物料id"; - (this.gridColumn6).Name = "gridColumn6"; - (this.gridColumn6).FieldName = "materialid"; - (this.gridColumn6).Visible = true; - (this.gridColumn6).VisibleIndex = 6; - - // repositoryItemTreeListLookUpEdit1 - // - (this.gridColumn7).ColumnEdit = this.repositoryItemTreeListtxtmaterialname; - this.repositoryItemTreeListtxtmaterialname.AutoHeight = false; - this.repositoryItemTreeListtxtmaterialname.DisplayMember = "Name"; - this.repositoryItemTreeListtxtmaterialname.ValueMember = "ID"; - this.repositoryItemTreeListtxtmaterialname.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { - new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); - this.repositoryItemTreeListtxtmaterialname.Name = "repositoryItemTreeListtxtmaterialname"; - this.repositoryItemTreeListtxtmaterialname.TreeList = this.repositoryItemTreeListtxtmaterialnameTreeList; - // - // repositoryItemTreeListLookUpEdit1TreeList - // - this.repositoryItemTreeListtxtmaterialnameTreeList.Location = new System.Drawing.Point(0, 0); - this.repositoryItemTreeListtxtmaterialnameTreeList.ParentFieldName = "PID"; - this.repositoryItemTreeListtxtmaterialnameTreeList.Name = "repositoryItemTreeListtxtmaterialnameTreeList"; - this.repositoryItemTreeListtxtmaterialnameTreeList.OptionsView.ShowIndentAsRowStyle = true; - this.repositoryItemTreeListtxtmaterialnameTreeList.Size = new System.Drawing.Size(400, 200); - this.repositoryItemTreeListtxtmaterialnameTreeList.TabIndex = 0; - (this.gridColumn7).Caption = "物料名称"; - (this.gridColumn7).Name = "gridColumn7"; - (this.gridColumn7).FieldName = "materialname"; - (this.gridColumn7).Visible = true; - (this.gridColumn7).VisibleIndex = 7; - - //////////////////////////////// - (this.gridColumn8).Caption = "物料编号"; - (this.gridColumn8).Name = "gridColumn8"; - (this.gridColumn8).FieldName = "materialcode"; - (this.gridColumn8).Visible = true; - (this.gridColumn8).VisibleIndex = 8; - - //////////////////////////////// - (this.gridColumn9).Caption = "规格型号"; - (this.gridColumn9).Name = "gridColumn9"; - (this.gridColumn9).FieldName = "materialspec"; - (this.gridColumn9).Visible = true; - (this.gridColumn9).VisibleIndex = 9; - - (this.gridColumn10).ColumnEdit = this.repositoryItemtxtmaterialtype; - this.repositoryItemtxtmaterialtype.AutoHeight = false; - this.repositoryItemtxtmaterialtype.DisplayMember = "Name"; - this.repositoryItemtxtmaterialtype.ValueMember = "ID"; - this.repositoryItemtxtmaterialtype.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { - new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); - this.repositoryItemtxtmaterialtype.Name = "repositoryItemtxtmaterialtype"; - (this.gridColumn10).Caption = "物料类型"; - (this.gridColumn10).Name = "gridColumn10"; - (this.gridColumn10).FieldName = "materialtype"; - (this.gridColumn10).Visible = true; - (this.gridColumn10).VisibleIndex = 10; - - //////////////////////////////// - (this.gridColumn11).Caption = "单位用量"; - (this.gridColumn11).Name = "gridColumn11"; - (this.gridColumn11).FieldName = "unitusenumber"; - (this.gridColumn11).Visible = true; - (this.gridColumn11).VisibleIndex = 11; - - (this.gridColumn12).ColumnEdit = this.repositoryItemtxtunit; - this.repositoryItemtxtunit.AutoHeight = false; - this.repositoryItemtxtunit.DisplayMember = "Name"; - this.repositoryItemtxtunit.ValueMember = "ID"; - this.repositoryItemtxtunit.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { - new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); - this.repositoryItemtxtunit.Name = "repositoryItemtxtunit"; - (this.gridColumn12).Caption = "计量单位"; - (this.gridColumn12).Name = "gridColumn12"; - (this.gridColumn12).FieldName = "unit"; - (this.gridColumn12).Visible = true; - (this.gridColumn12).VisibleIndex = 12; - - (this.gridColumn13).ColumnEdit = this.repositoryItemtxtwarehouse; - this.repositoryItemtxtwarehouse.AutoHeight = false; - this.repositoryItemtxtwarehouse.DisplayMember = "Name"; - this.repositoryItemtxtwarehouse.ValueMember = "ID"; - this.repositoryItemtxtwarehouse.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { - new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); - this.repositoryItemtxtwarehouse.Name = "repositoryItemtxtwarehouse"; - (this.gridColumn13).Caption = "仓库"; - (this.gridColumn13).Name = "gridColumn13"; - (this.gridColumn13).FieldName = "warehouse"; - (this.gridColumn13).Visible = true; - (this.gridColumn13).VisibleIndex = 13; - - //////////////////////////////// - (this.gridColumn14).Caption = "单价"; - (this.gridColumn14).Name = "gridColumn14"; - (this.gridColumn14).FieldName = "unitprice"; - (this.gridColumn14).Visible = true; - (this.gridColumn14).VisibleIndex = 14; - - //////////////////////////////// - (this.gridColumn15).Caption = "金额"; - (this.gridColumn15).Name = "gridColumn15"; - (this.gridColumn15).FieldName = "money"; - (this.gridColumn15).Visible = true; - (this.gridColumn15).VisibleIndex = 15; - - //////////////////////////////// - (this.gridColumn16).Caption = "备注"; - (this.gridColumn16).Name = "gridColumn16"; - (this.gridColumn16).FieldName = "remark"; - (this.gridColumn16).Visible = true; - (this.gridColumn16).VisibleIndex = 16; - - - // - // XtraForm1 - // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1300, 800); - this.Controls.Add(this.xtraTabControl1); - this.Name = "FrmproductBOMdetail"; - this.Text = "FrmproductBOMdetail"; - this.Load += new System.EventHandler(this.FrmproductBOMdetail_Load); - this.Controls.SetChildIndex(this.xtraTabControl1, 0); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtpidTreeList)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtpid)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtpidTreeList)).EndInit(); - - ((System.ComponentModel.ISupportInitialize)(this.txtpid.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtproductBOMid.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtproductBOMcode.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtproductcode.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtmaterialid.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtmaterialnameTreeList)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtmaterialname)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeListtxtmaterialnameTreeList)).EndInit(); - - ((System.ComponentModel.ISupportInitialize)(this.txtmaterialname.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtmaterialcode.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtmaterialspec.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtmaterialtype)).EndInit(); - - ((System.ComponentModel.ISupportInitialize)(this.txtmaterialtype.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtunitusenumber.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtunit)).EndInit(); - - ((System.ComponentModel.ISupportInitialize)(this.txtunit.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtwarehouse)).EndInit(); - - ((System.ComponentModel.ISupportInitialize)(this.txtwarehouse.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtunitprice.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtmoney.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit(); - ///////////////////////// - ((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); - this.xtraTabControl1.ResumeLayout(false); - this.tabDataList.ResumeLayout(false); - this.tabDataDetail.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.grdList)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.grdListView)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); - this.layoutControl1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).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.XtraEditors.TextEdit txtid; - private DevExpress.XtraTreeList.TreeList txtpidTreeList; - private DevExpress.XtraEditors.Repository.RepositoryItemTreeListLookUpEdit repositoryItemTreeListtxtpid; - private DevExpress.XtraTreeList.TreeList repositoryItemTreeListtxtpidTreeList; - - private DevExpress.XtraEditors.TreeListLookUpEdit txtpid; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtproductBOMid; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtproductBOMcode; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtproductcode; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtmaterialid; - private DevExpress.XtraTreeList.TreeList txtmaterialnameTreeList; - private DevExpress.XtraEditors.Repository.RepositoryItemTreeListLookUpEdit repositoryItemTreeListtxtmaterialname; - private DevExpress.XtraTreeList.TreeList repositoryItemTreeListtxtmaterialnameTreeList; - - private DevExpress.XtraEditors.TreeListLookUpEdit txtmaterialname; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtmaterialcode; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtmaterialspec; - private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtmaterialtype; - - private DevExpress.XtraEditors.LookUpEdit txtmaterialtype; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtunitusenumber; - private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtunit; - - private DevExpress.XtraEditors.LookUpEdit txtunit; - private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtwarehouse; - - private DevExpress.XtraEditors.LookUpEdit txtwarehouse; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtunitprice; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtmoney; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtremark; - - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem11; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem12; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem13; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem14; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem15; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem16; - } -} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmquotation.cs b/WinformGeneralDeveloperFrame/Form/Frmquotation.cs index a792119..598a390 100644 --- a/WinformGeneralDeveloperFrame/Form/Frmquotation.cs +++ b/WinformGeneralDeveloperFrame/Form/Frmquotation.cs @@ -26,7 +26,7 @@ namespace MES.Form } private void Frmquotation_Load(object sender, EventArgs e) { - InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new quotationInfo(),gridControl1,new string[]{ "txtquotationcode" , "txtquotationdate" }); + InitFrom(xtraTabControl1,grdList,grdListView,new []{layoutControlGroup1},new quotationInfo(),gridControl1,new []{ "txtquotationcode" , "txtquotationdate", "txttotalprice" }); InitSearchDicData(); repositoryItemtxtproductid.EditValueChanged += RepositoryItemtxtproductid_EditValueChanged; } @@ -183,7 +183,16 @@ namespace MES.Form { List detaiListAdd = dic["Add"]; - detaiListAdd.ForEach(a=>a.quotationid=info.id); + int num = 0; + detaiListAdd.ForEach(a=> + { + num ++; + a.quotationid = info.id; + string codedetail = "KHD" + DateTime.Now.Year + DateTime.Now.Month + DateTime.Now.Day + DateTime.Now.Hour + + DateTime.Now.Minute + DateTime.Now.Second + DateTime.Now.Millisecond.ToString("D3")+num; + a.quotationdetailcode = codedetail; + a.quotationcode = info.quotationcode; + }); db.quotationdetailInfo.AddRange(detaiListAdd); db.SaveChanges(); } @@ -197,7 +206,16 @@ namespace MES.Form { List detaiListAdd = dic["Add"]; - detaiListAdd.ForEach(a => a.quotationid = info.id); + int num = 0; + detaiListAdd.ForEach(a => + { + num++; + a.quotationid = info.id; + string codedetail = "KHD" + DateTime.Now.Year + DateTime.Now.Month + DateTime.Now.Day + DateTime.Now.Hour + + DateTime.Now.Minute + DateTime.Now.Second + DateTime.Now.Millisecond.ToString("D3")+num; + a.quotationdetailcode = codedetail; + a.quotationcode = info.quotationcode; + }); db.quotationdetailInfo.AddRange(detaiListAdd); List detaiListEdit = @@ -352,6 +370,12 @@ namespace MES.Form ; } gridView1.BestFitColumns(); + + } + + private void gridView1_RowUpdated(object sender, DevExpress.XtraGrid.Views.Base.RowObjectEventArgs e) + { + txttotalprice.Text = gridColumn17.SummaryItem.SummaryValue.ToString(); } } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmquotation.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmquotation.designer.cs index 9c4716d..7e26c33 100644 --- a/WinformGeneralDeveloperFrame/Form/Frmquotation.designer.cs +++ b/WinformGeneralDeveloperFrame/Form/Frmquotation.designer.cs @@ -52,9 +52,11 @@ namespace MES.Form this.tabDataList = new DevExpress.XtraTab.XtraTabPage(); this.grdList = new DevExpress.XtraGrid.GridControl(); this.grdListView = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.gridColumn23 = new DevExpress.XtraGrid.Columns.GridColumn(); this.tabDataDetail = new DevExpress.XtraTab.XtraTabPage(); this.panelControl2 = new DevExpress.XtraEditors.PanelControl(); this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); + this.txttotalprice = new DevExpress.XtraEditors.TextEdit(); this.gridControl1 = new DevExpress.XtraGrid.GridControl(); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.toolStripMenuItemAdd = new System.Windows.Forms.ToolStripMenuItem(); @@ -98,9 +100,8 @@ namespace MES.Form this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txttotalprice = new DevExpress.XtraEditors.TextEdit(); this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem(); - this.gridColumn23 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn24 = new DevExpress.XtraGrid.Columns.GridColumn(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomerid)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomertype)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomeruser)).BeginInit(); @@ -115,6 +116,7 @@ namespace MES.Form this.panelControl2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txttotalprice.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit(); this.contextMenuStrip1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); @@ -144,7 +146,6 @@ namespace MES.Form ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txttotalprice.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit(); this.SuspendLayout(); // @@ -325,6 +326,14 @@ namespace MES.Form this.grdListView.Name = "grdListView"; this.grdListView.OptionsBehavior.Editable = false; // + // gridColumn23 + // + this.gridColumn23.Caption = "总价"; + this.gridColumn23.FieldName = "totalprice"; + this.gridColumn23.Name = "gridColumn23"; + this.gridColumn23.Visible = true; + this.gridColumn23.VisibleIndex = 9; + // // tabDataDetail // this.tabDataDetail.Controls.Add(this.panelControl2); @@ -363,6 +372,14 @@ namespace MES.Form this.layoutControl1.TabIndex = 6; this.layoutControl1.Text = "layoutControl1"; // + // txttotalprice + // + this.txttotalprice.Location = new System.Drawing.Point(63, 108); + this.txttotalprice.Name = "txttotalprice"; + this.txttotalprice.Size = new System.Drawing.Size(580, 20); + this.txttotalprice.StyleController = this.layoutControl1; + this.txttotalprice.TabIndex = 12; + // // gridControl1 // this.gridControl1.ContextMenuStrip = this.contextMenuStrip1; @@ -415,12 +432,14 @@ namespace MES.Form this.gridColumn19, this.gridColumn20, this.gridColumn21, - this.gridColumn22}); + this.gridColumn22, + this.gridColumn24}); this.gridView1.GridControl = this.gridControl1; this.gridView1.Name = "gridView1"; this.gridView1.OptionsBehavior.Editable = false; this.gridView1.OptionsView.ShowFooter = true; this.gridView1.ValidateRow += new DevExpress.XtraGrid.Views.Base.ValidateRowEventHandler(this.gridView1_ValidateRow); + this.gridView1.RowUpdated += new DevExpress.XtraGrid.Views.Base.RowObjectEventHandler(this.gridView1_RowUpdated); // // gridColumn12 // @@ -441,7 +460,7 @@ namespace MES.Form this.productid.FieldName = "productid"; this.productid.Name = "productid"; this.productid.Visible = true; - this.productid.VisibleIndex = 0; + this.productid.VisibleIndex = 1; this.productid.Width = 201; // // repositoryItemtxtproductid @@ -460,7 +479,7 @@ namespace MES.Form this.gridColumn13.FieldName = "spec"; this.gridColumn13.Name = "gridColumn13"; this.gridColumn13.Visible = true; - this.gridColumn13.VisibleIndex = 1; + this.gridColumn13.VisibleIndex = 2; this.gridColumn13.Width = 201; // // gridColumn14 @@ -469,7 +488,7 @@ namespace MES.Form this.gridColumn14.FieldName = "number"; this.gridColumn14.Name = "gridColumn14"; this.gridColumn14.Visible = true; - this.gridColumn14.VisibleIndex = 2; + this.gridColumn14.VisibleIndex = 3; this.gridColumn14.Width = 201; // // gridColumn15 @@ -479,7 +498,7 @@ namespace MES.Form this.gridColumn15.FieldName = "unit"; this.gridColumn15.Name = "gridColumn15"; this.gridColumn15.Visible = true; - this.gridColumn15.VisibleIndex = 3; + this.gridColumn15.VisibleIndex = 4; this.gridColumn15.Width = 201; // // repositoryItemtxtunit @@ -498,7 +517,7 @@ namespace MES.Form this.gridColumn16.FieldName = "unitprice"; this.gridColumn16.Name = "gridColumn16"; this.gridColumn16.Visible = true; - this.gridColumn16.VisibleIndex = 4; + this.gridColumn16.VisibleIndex = 5; this.gridColumn16.Width = 201; // // gridColumn17 @@ -509,7 +528,7 @@ namespace MES.Form this.gridColumn17.Summary.AddRange(new DevExpress.XtraGrid.GridSummaryItem[] { new DevExpress.XtraGrid.GridColumnSummaryItem(DevExpress.Data.SummaryItemType.Sum, "money", "总金额={0:0.##}")}); this.gridColumn17.Visible = true; - this.gridColumn17.VisibleIndex = 5; + this.gridColumn17.VisibleIndex = 6; this.gridColumn17.Width = 201; // // gridColumn18 @@ -519,7 +538,7 @@ namespace MES.Form this.gridColumn18.FieldName = "stockid"; this.gridColumn18.Name = "gridColumn18"; this.gridColumn18.Visible = true; - this.gridColumn18.VisibleIndex = 6; + this.gridColumn18.VisibleIndex = 7; this.gridColumn18.Width = 201; // // repositoryItemtxtstockid @@ -538,7 +557,7 @@ namespace MES.Form this.gridColumn19.FieldName = "productcode"; this.gridColumn19.Name = "gridColumn19"; this.gridColumn19.Visible = true; - this.gridColumn19.VisibleIndex = 7; + this.gridColumn19.VisibleIndex = 8; this.gridColumn19.Width = 201; // // gridColumn20 @@ -547,7 +566,7 @@ namespace MES.Form this.gridColumn20.FieldName = "quotationcode"; this.gridColumn20.Name = "gridColumn20"; this.gridColumn20.Visible = true; - this.gridColumn20.VisibleIndex = 8; + this.gridColumn20.VisibleIndex = 9; this.gridColumn20.Width = 201; // // gridColumn21 @@ -562,7 +581,7 @@ namespace MES.Form this.gridColumn22.FieldName = "remark"; this.gridColumn22.Name = "gridColumn22"; this.gridColumn22.Visible = true; - this.gridColumn22.VisibleIndex = 9; + this.gridColumn22.VisibleIndex = 10; this.gridColumn22.Width = 201; // // txtid @@ -813,14 +832,6 @@ namespace MES.Form this.layoutControlItem11.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem11.TextVisible = false; // - // txttotalprice - // - this.txttotalprice.Location = new System.Drawing.Point(63, 108); - this.txttotalprice.Name = "txttotalprice"; - this.txttotalprice.Size = new System.Drawing.Size(580, 20); - this.txttotalprice.StyleController = this.layoutControl1; - this.txttotalprice.TabIndex = 12; - // // layoutControlItem12 // this.layoutControlItem12.Control = this.txttotalprice; @@ -830,13 +841,14 @@ namespace MES.Form this.layoutControlItem12.Text = "总价"; this.layoutControlItem12.TextSize = new System.Drawing.Size(48, 14); // - // gridColumn23 + // gridColumn24 // - this.gridColumn23.Caption = "总价"; - this.gridColumn23.FieldName = "totalprice"; - this.gridColumn23.Name = "gridColumn23"; - this.gridColumn23.Visible = true; - this.gridColumn23.VisibleIndex = 8; + this.gridColumn24.Caption = "明细单号"; + this.gridColumn24.FieldName = "quotationdetailcode"; + this.gridColumn24.Name = "gridColumn24"; + this.gridColumn24.OptionsColumn.AllowEdit = false; + this.gridColumn24.Visible = true; + this.gridColumn24.VisibleIndex = 0; // // Frmquotation // @@ -862,6 +874,7 @@ namespace MES.Form this.panelControl2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.txttotalprice.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit(); this.contextMenuStrip1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); @@ -891,7 +904,6 @@ namespace MES.Form ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txttotalprice.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit(); this.ResumeLayout(false); @@ -978,5 +990,6 @@ namespace MES.Form private TextEdit txttotalprice; private LayoutControlItem layoutControlItem12; private DevExpress.XtraGrid.Columns.GridColumn gridColumn23; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn24; } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmrequisition.cs b/WinformGeneralDeveloperFrame/Form/Frmrequisition.cs new file mode 100644 index 0000000..8ec1df1 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmrequisition.cs @@ -0,0 +1,321 @@ +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; + +namespace MES.Form +{ + public partial class Frmrequisition : FrmBaseForm + { + private Dictionary fieldDictionary = new Dictionary(); + public Frmrequisition() + { + InitializeComponent(); + } + private void Frmrequisition_Load(object sender, EventArgs e) + { + InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new requisitionInfo(),gridControl1,new []{ "txtrequisitioncode" , "txttotalprice" }); + InitSearchDicData(); + repositoryItemLookUpEditmaterialid.EditValueChanged += RepositoryItemLookUpEditmaterialid_EditValueChanged; + } + + private void RepositoryItemLookUpEditmaterialid_EditValueChanged(object sender, EventArgs e) + { + using (var db = new MESDB()) + { + LookUpEdit lookUpEdit = sender as LookUpEdit; + int materialid = lookUpEdit.EditValue.ToString().ToInt16(); + materialInfo material = db.materialInfo.Find(materialid); + if (material != null) + { + gridView1.GetFocusedDataRow()["materialcode"] = material.code; + gridView1.GetFocusedDataRow()["materialspec"] = material.spec; + gridView1.GetFocusedDataRow()["materialunit"] = material.unit; + gridView1.GetFocusedDataRow()["unitprice"] = material.referprice; + gridView1.GetFocusedDataRow()["warehouse"] = material.warehouse; + } + } + } + + /// + /// 数据源初始化 + /// + /// + private void Init() + { + txtdeptid.Properties.DataSource = GetDataTableUtils.SqlTable("部门"); + repositoryItemtxtdeptid.DataSource= GetDataTableUtils.SqlTable("部门"); + txtcreatorId.Properties.DataSource = GetDataTableUtils.SqlTable("用户"); + repositoryItemtxtcreatorId.DataSource= GetDataTableUtils.SqlTable("用户"); + + repositoryItemLookUpEditmaterialid.DataSource = GetDataTableUtils.SqlTable("物料"); + repositoryItemLookUpEditwarehouse.DataSource = GetDataTableUtils.SqlTable("仓库"); + repositoryItemLookUpEditmaterialunit.DataSource = GetDataTableUtils.SqlTable("计量单位"); + + } + /// + /// 搜索字段 + /// + /// + private void InitSearchDicData() + { + fieldDictionary.Add("请购单编号","requisitioncode"); + } + + public override void InitgrdListDataSource() + { + using (var con=new MESDB())/// + { + grdList.DataSource=con.requisitionInfo.ToList(); + } + Init(); + } + /// + /// 字段为空校验 + /// + /// + public override bool CheckInput() + { + if(string.IsNullOrEmpty(txtdeptid.EditValue.ToString())) + { + "请购部门不能为空".ShowWarning(); + txtdeptid.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtrequisitiondate.EditValue.ToString())) + { + "请购日期不能为空".ShowWarning(); + txtrequisitiondate.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtdeliverdate.ToString())) + { + "交货日期不能为空".ShowWarning(); + txtdeliverdate.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtcreatorId.EditValue.ToString())) + { + "制单人不能为空".ShowWarning(); + txtcreatorId.Focus(); + return false; + } + if(string.IsNullOrEmpty(txttotalprice.EditValue.ToString())) + { + "金额不能为空".ShowWarning(); + txttotalprice.Focus(); + return false; + } + return true; + } + /// + /// 保存 + /// + /// + public override bool SaveFunction() + { + string code = "QG" + 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 + { + requisitionInfo info = (requisitionInfo)this.ControlDataToModel(new requisitionInfo()); + using (var db = new MESDB()) + { + using (var tran = db.Database.BeginTransaction()) + { + try + { + Dictionary> dic = + dt.GetDataTableData(); + if (info.id == 0)//新增 + { + info.requisitioncode = code; + db.requisitionInfo.Add(info); + db.SaveChanges(); + txtid.Text = info.id.ToString(); + txtrequisitioncode.Text = code; + if (dt != null) + { + List detaiListAdd = + dic["Add"]; + int num = 0; + detaiListAdd.ForEach(a => + { + num++; + a.requisitionid = info.id; + a.requisitioncode = info.requisitioncode; + string codeD = "QGD" + DateTime.Now.Year + DateTime.Now.Month + DateTime.Now.Day + DateTime.Now.Hour + + DateTime.Now.Minute + DateTime.Now.Second + DateTime.Now.Millisecond.ToString("D3")+num; + a.requisitiondetailcode = codeD; + }); + db.requisitiondetailInfo.AddRange(detaiListAdd); + db.SaveChanges(); + } + } + else //更新 + { + db.Entry(info).State = EntityState.Modified; + db.SaveChanges(); + if (dt != null) + { + List detaiListAdd = + dic["Add"]; + int num = 0; + detaiListAdd.ForEach(a => + { + num++; + a.requisitionid = info.id; + a.requisitioncode = info.requisitioncode; + string codeD = "QGD" + DateTime.Now.Year + DateTime.Now.Month + DateTime.Now.Day + DateTime.Now.Hour + + DateTime.Now.Minute + DateTime.Now.Second + DateTime.Now.Millisecond.ToString("D3")+num; + a.requisitiondetailcode = codeD; + }); + db.requisitiondetailInfo.AddRange(detaiListAdd); + + List detaiListEdit = + dic["Edit"]; + detaiListEdit.ForEach((a) => + { + a.requisitionid = info.id; + a.requisitioncode = info.requisitioncode; + 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 + { + requisitionInfo info = (requisitionInfo)this.ControlDataToModel(new requisitionInfo()); + 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.requisitionInfo.SqlQuery("select * from requisition").ToList(); + } + else + { + grdList.DataSource = db.requisitionInfo.SqlQuery($"select * from requisition where {sql}").ToList(); + } + } + } + } + + public override void AddFunction() + { + txtrequisitiondate.DateTime=DateTime.Now; + gridControl1.DataSource = new List().ToDataTable(); + } + + public override void gridControlMouseDoubleClickFunction(object sender, EventArgs e) + { + requisitionInfo info = grdListView.GetFocusedRow() as requisitionInfo; + if (info != null) + { + using (var db = new MESDB()) + { + gridControl1.DataSource = db.requisitiondetailInfo.Where(p => p.requisitionid == info.id).ToList().ToDataTable(); + gridView1.BestFitColumns(); + } + } + } + + 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_RowUpdated(object sender, DevExpress.XtraGrid.Views.Base.RowObjectEventArgs e) + { + txttotalprice.Text = gridColumn18.SummaryItem.SummaryValue.ToString(); + } + + private void gridView1_ValidateRow(object sender, DevExpress.XtraGrid.Views.Base.ValidateRowEventArgs e) + { + if (!string.IsNullOrEmpty(gridView1.GetFocusedDataRow()["unitprice"].ToString()) && + !string.IsNullOrEmpty(gridView1.GetFocusedDataRow()["requisitionnumber"].ToString())) + { + gridView1.GetFocusedDataRow()["money"] = decimal.Multiply( + gridView1.GetFocusedDataRow()["unitprice"].ToDecimal(0), + gridView1.GetFocusedDataRow()["requisitionnumber"].ToDecimal(0)); + ; + } + gridView1.BestFitColumns(); + } + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmrequisition.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmrequisition.designer.cs new file mode 100644 index 0000000..0d03342 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmrequisition.designer.cs @@ -0,0 +1,880 @@ + +using DevExpress.XtraEditors; +using DevExpress.XtraLayout; +using DevExpress.XtraTab; + +namespace MES.Form +{ + partial class Frmrequisition + { + /// + /// 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.repositoryItemtxtdeptid = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxtcreatorId = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn8 = 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.txtdeptid = new DevExpress.XtraEditors.TreeListLookUpEdit(); + this.treeListLookUpEdit1TreeList = new DevExpress.XtraTreeList.TreeList(); + this.xtraTabControl2 = new DevExpress.XtraTab.XtraTabControl(); + this.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage(); + 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.gridColumn9 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn10 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn11 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemLookUpEditmaterialid = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn13 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn14 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn15 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemLookUpEditmaterialunit = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + 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.repositoryItemLookUpEditwarehouse = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn20 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.txtid = new DevExpress.XtraEditors.TextEdit(); + this.txtrequisitioncode = new DevExpress.XtraEditors.TextEdit(); + this.txtrequisitiondate = new DevExpress.XtraEditors.DateEdit(); + this.txtdeliverdate = new DevExpress.XtraEditors.DateEdit(); + this.txtcreatorId = new DevExpress.XtraEditors.LookUpEdit(); + this.txttotalprice = new DevExpress.XtraEditors.TextEdit(); + this.txtremark = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); + this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); + this.gridColumn21 = new DevExpress.XtraGrid.Columns.GridColumn(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtdeptid)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcreatorId)).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.txtdeptid.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.treeListLookUpEdit1TreeList)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl2)).BeginInit(); + this.xtraTabControl2.SuspendLayout(); + this.xtraTabPage2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit(); + this.contextMenuStrip1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditmaterialid)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditmaterialunit)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditwarehouse)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtrequisitioncode.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtrequisitiondate.Properties.CalendarTimeProperties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtrequisitiondate.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliverdate.Properties.CalendarTimeProperties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliverdate.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreatorId.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttotalprice.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.layoutControlItem5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); + this.SuspendLayout(); + // + // gridColumn1 + // + this.gridColumn1.Caption = "id"; + this.gridColumn1.FieldName = "id"; + this.gridColumn1.Name = "gridColumn1"; + // + // gridColumn2 + // + this.gridColumn2.Caption = "请购单编号"; + this.gridColumn2.FieldName = "requisitioncode"; + this.gridColumn2.Name = "gridColumn2"; + this.gridColumn2.Visible = true; + this.gridColumn2.VisibleIndex = 0; + this.gridColumn2.Width = 201; + // + // gridColumn3 + // + this.gridColumn3.Caption = "请购部门"; + this.gridColumn3.ColumnEdit = this.repositoryItemtxtdeptid; + this.gridColumn3.FieldName = "deptid"; + this.gridColumn3.Name = "gridColumn3"; + this.gridColumn3.Visible = true; + this.gridColumn3.VisibleIndex = 1; + this.gridColumn3.Width = 201; + // + // repositoryItemtxtdeptid + // + this.repositoryItemtxtdeptid.AutoHeight = false; + this.repositoryItemtxtdeptid.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtdeptid.DisplayMember = "Name"; + this.repositoryItemtxtdeptid.Name = "repositoryItemtxtdeptid"; + this.repositoryItemtxtdeptid.ValueMember = "ID"; + // + // gridColumn4 + // + this.gridColumn4.Caption = "请购日期"; + this.gridColumn4.DisplayFormat.FormatString = "G"; + this.gridColumn4.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.gridColumn4.FieldName = "requisitiondate"; + this.gridColumn4.Name = "gridColumn4"; + this.gridColumn4.Visible = true; + this.gridColumn4.VisibleIndex = 2; + this.gridColumn4.Width = 201; + // + // gridColumn5 + // + this.gridColumn5.Caption = "交货日期"; + this.gridColumn5.DisplayFormat.FormatString = "G"; + this.gridColumn5.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.gridColumn5.FieldName = "deliverdate"; + this.gridColumn5.Name = "gridColumn5"; + this.gridColumn5.Visible = true; + this.gridColumn5.VisibleIndex = 3; + this.gridColumn5.Width = 201; + // + // gridColumn6 + // + this.gridColumn6.Caption = "制单人"; + this.gridColumn6.ColumnEdit = this.repositoryItemtxtcreatorId; + this.gridColumn6.FieldName = "creatorId"; + this.gridColumn6.Name = "gridColumn6"; + this.gridColumn6.Visible = true; + this.gridColumn6.VisibleIndex = 4; + this.gridColumn6.Width = 201; + // + // repositoryItemtxtcreatorId + // + this.repositoryItemtxtcreatorId.AutoHeight = false; + this.repositoryItemtxtcreatorId.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtcreatorId.DisplayMember = "Name"; + this.repositoryItemtxtcreatorId.Name = "repositoryItemtxtcreatorId"; + this.repositoryItemtxtcreatorId.ValueMember = "ID"; + // + // gridColumn7 + // + this.gridColumn7.Caption = "金额"; + this.gridColumn7.FieldName = "totalprice"; + this.gridColumn7.Name = "gridColumn7"; + this.gridColumn7.Visible = true; + this.gridColumn7.VisibleIndex = 5; + this.gridColumn7.Width = 201; + // + // gridColumn8 + // + this.gridColumn8.Caption = "备注"; + this.gridColumn8.FieldName = "remark"; + this.gridColumn8.Name = "gridColumn8"; + this.gridColumn8.Visible = true; + this.gridColumn8.VisibleIndex = 6; + this.gridColumn8.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(971, 680); + 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(965, 651); + 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(965, 651); + 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.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(965, 651); + 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(965, 651); + this.panelControl2.TabIndex = 0; + // + // layoutControl1 + // + this.layoutControl1.Controls.Add(this.txtdeptid); + this.layoutControl1.Controls.Add(this.xtraTabControl2); + this.layoutControl1.Controls.Add(this.txtid); + this.layoutControl1.Controls.Add(this.txtrequisitioncode); + this.layoutControl1.Controls.Add(this.txtrequisitiondate); + this.layoutControl1.Controls.Add(this.txtdeliverdate); + this.layoutControl1.Controls.Add(this.txtcreatorId); + this.layoutControl1.Controls.Add(this.txttotalprice); + 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(961, 647); + this.layoutControl1.TabIndex = 6; + this.layoutControl1.Text = "layoutControl1"; + // + // txtdeptid + // + this.txtdeptid.EditValue = ""; + this.txtdeptid.Location = new System.Drawing.Point(75, 36); + this.txtdeptid.Name = "txtdeptid"; + this.txtdeptid.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtdeptid.Properties.DisplayMember = "Name"; + this.txtdeptid.Properties.TreeList = this.treeListLookUpEdit1TreeList; + this.txtdeptid.Properties.ValueMember = "ID"; + this.txtdeptid.Size = new System.Drawing.Size(403, 20); + this.txtdeptid.StyleController = this.layoutControl1; + this.txtdeptid.TabIndex = 2; + // + // treeListLookUpEdit1TreeList + // + this.treeListLookUpEdit1TreeList.Location = new System.Drawing.Point(0, 0); + this.treeListLookUpEdit1TreeList.Name = "treeListLookUpEdit1TreeList"; + this.treeListLookUpEdit1TreeList.OptionsView.ShowIndentAsRowStyle = true; + this.treeListLookUpEdit1TreeList.ParentFieldName = "PID"; + this.treeListLookUpEdit1TreeList.Size = new System.Drawing.Size(400, 200); + this.treeListLookUpEdit1TreeList.TabIndex = 0; + // + // xtraTabControl2 + // + this.xtraTabControl2.Location = new System.Drawing.Point(12, 108); + this.xtraTabControl2.Name = "xtraTabControl2"; + this.xtraTabControl2.SelectedTabPage = this.xtraTabPage2; + this.xtraTabControl2.Size = new System.Drawing.Size(937, 527); + this.xtraTabControl2.TabIndex = 9; + this.xtraTabControl2.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { + this.xtraTabPage2}); + // + // xtraTabPage2 + // + this.xtraTabPage2.Controls.Add(this.gridControl1); + this.xtraTabPage2.Name = "xtraTabPage2"; + this.xtraTabPage2.Size = new System.Drawing.Size(931, 498); + this.xtraTabPage2.Text = "请购明细"; + // + // gridControl1 + // + this.gridControl1.ContextMenuStrip = this.contextMenuStrip1; + this.gridControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.gridControl1.Location = new System.Drawing.Point(0, 0); + this.gridControl1.MainView = this.gridView1; + this.gridControl1.Name = "gridControl1"; + this.gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { + this.repositoryItemLookUpEditmaterialid, + this.repositoryItemLookUpEditmaterialunit, + this.repositoryItemLookUpEditwarehouse}); + this.gridControl1.Size = new System.Drawing.Size(931, 498); + this.gridControl1.TabIndex = 1; + 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(101, 48); + // + // toolStripMenuItemAdd + // + this.toolStripMenuItemAdd.Name = "toolStripMenuItemAdd"; + this.toolStripMenuItemAdd.Size = new System.Drawing.Size(100, 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(100, 22); + this.toolStripMenuItemDel.Text = "删除"; + this.toolStripMenuItemDel.Click += new System.EventHandler(this.toolStripMenuItemDel_Click); + // + // gridView1 + // + this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { + 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.gridView1.GridControl = this.gridControl1; + this.gridView1.Name = "gridView1"; + this.gridView1.OptionsBehavior.Editable = false; + this.gridView1.OptionsView.ShowFooter = true; + this.gridView1.ValidateRow += new DevExpress.XtraGrid.Views.Base.ValidateRowEventHandler(this.gridView1_ValidateRow); + this.gridView1.RowUpdated += new DevExpress.XtraGrid.Views.Base.RowObjectEventHandler(this.gridView1_RowUpdated); + // + // gridColumn9 + // + this.gridColumn9.Caption = "id"; + this.gridColumn9.FieldName = "id"; + this.gridColumn9.Name = "gridColumn9"; + // + // gridColumn10 + // + this.gridColumn10.Caption = "请购单主表"; + this.gridColumn10.FieldName = "requisitionid"; + this.gridColumn10.Name = "gridColumn10"; + this.gridColumn10.Width = 201; + // + // gridColumn11 + // + this.gridColumn11.Caption = "请购单号"; + this.gridColumn11.FieldName = "requisitioncode"; + this.gridColumn11.Name = "gridColumn11"; + this.gridColumn11.Width = 201; + // + // gridColumn12 + // + this.gridColumn12.Caption = "物料名称"; + this.gridColumn12.ColumnEdit = this.repositoryItemLookUpEditmaterialid; + this.gridColumn12.FieldName = "materialid"; + this.gridColumn12.Name = "gridColumn12"; + this.gridColumn12.Visible = true; + this.gridColumn12.VisibleIndex = 1; + this.gridColumn12.Width = 201; + // + // repositoryItemLookUpEditmaterialid + // + this.repositoryItemLookUpEditmaterialid.AutoHeight = false; + this.repositoryItemLookUpEditmaterialid.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemLookUpEditmaterialid.DisplayMember = "Name"; + this.repositoryItemLookUpEditmaterialid.Name = "repositoryItemLookUpEditmaterialid"; + this.repositoryItemLookUpEditmaterialid.NullText = ""; + this.repositoryItemLookUpEditmaterialid.ValueMember = "ID"; + // + // gridColumn13 + // + this.gridColumn13.Caption = "物料编码"; + this.gridColumn13.FieldName = "materialcode"; + this.gridColumn13.Name = "gridColumn13"; + this.gridColumn13.OptionsColumn.AllowEdit = false; + this.gridColumn13.Visible = true; + this.gridColumn13.VisibleIndex = 2; + this.gridColumn13.Width = 201; + // + // gridColumn14 + // + this.gridColumn14.Caption = "规格型号"; + this.gridColumn14.FieldName = "materialspec"; + this.gridColumn14.Name = "gridColumn14"; + this.gridColumn14.OptionsColumn.AllowEdit = false; + this.gridColumn14.Visible = true; + this.gridColumn14.VisibleIndex = 3; + this.gridColumn14.Width = 201; + // + // gridColumn15 + // + this.gridColumn15.Caption = "计量单位"; + this.gridColumn15.ColumnEdit = this.repositoryItemLookUpEditmaterialunit; + this.gridColumn15.FieldName = "materialunit"; + this.gridColumn15.Name = "gridColumn15"; + this.gridColumn15.OptionsColumn.AllowEdit = false; + this.gridColumn15.Visible = true; + this.gridColumn15.VisibleIndex = 4; + this.gridColumn15.Width = 201; + // + // repositoryItemLookUpEditmaterialunit + // + this.repositoryItemLookUpEditmaterialunit.AutoHeight = false; + this.repositoryItemLookUpEditmaterialunit.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemLookUpEditmaterialunit.DisplayMember = "Name"; + this.repositoryItemLookUpEditmaterialunit.Name = "repositoryItemLookUpEditmaterialunit"; + this.repositoryItemLookUpEditmaterialunit.NullText = ""; + this.repositoryItemLookUpEditmaterialunit.ValueMember = "ID"; + // + // gridColumn16 + // + this.gridColumn16.Caption = "请购数量"; + this.gridColumn16.FieldName = "requisitionnumber"; + this.gridColumn16.Name = "gridColumn16"; + this.gridColumn16.Visible = true; + this.gridColumn16.VisibleIndex = 5; + this.gridColumn16.Width = 201; + // + // gridColumn17 + // + this.gridColumn17.Caption = "单价"; + this.gridColumn17.FieldName = "unitprice"; + this.gridColumn17.Name = "gridColumn17"; + this.gridColumn17.Visible = true; + this.gridColumn17.VisibleIndex = 6; + this.gridColumn17.Width = 201; + // + // gridColumn18 + // + this.gridColumn18.Caption = "金额"; + this.gridColumn18.FieldName = "money"; + this.gridColumn18.Name = "gridColumn18"; + this.gridColumn18.OptionsColumn.AllowEdit = false; + this.gridColumn18.Summary.AddRange(new DevExpress.XtraGrid.GridSummaryItem[] { + new DevExpress.XtraGrid.GridColumnSummaryItem(DevExpress.Data.SummaryItemType.Sum, "money", "总金额={0:0.##}")}); + this.gridColumn18.Visible = true; + this.gridColumn18.VisibleIndex = 7; + this.gridColumn18.Width = 201; + // + // gridColumn19 + // + this.gridColumn19.Caption = "仓库"; + this.gridColumn19.ColumnEdit = this.repositoryItemLookUpEditwarehouse; + this.gridColumn19.FieldName = "warehouse"; + this.gridColumn19.Name = "gridColumn19"; + this.gridColumn19.OptionsColumn.AllowEdit = false; + this.gridColumn19.Visible = true; + this.gridColumn19.VisibleIndex = 8; + this.gridColumn19.Width = 201; + // + // repositoryItemLookUpEditwarehouse + // + this.repositoryItemLookUpEditwarehouse.AutoHeight = false; + this.repositoryItemLookUpEditwarehouse.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemLookUpEditwarehouse.DisplayMember = "Name"; + this.repositoryItemLookUpEditwarehouse.Name = "repositoryItemLookUpEditwarehouse"; + this.repositoryItemLookUpEditwarehouse.NullText = ""; + this.repositoryItemLookUpEditwarehouse.ValueMember = "ID"; + // + // gridColumn20 + // + this.gridColumn20.Caption = "备注"; + this.gridColumn20.FieldName = "remark"; + this.gridColumn20.Name = "gridColumn20"; + this.gridColumn20.Visible = true; + this.gridColumn20.VisibleIndex = 9; + this.gridColumn20.Width = 201; + // + // txtid + // + this.txtid.Location = new System.Drawing.Point(75, 12); + this.txtid.Name = "txtid"; + this.txtid.Size = new System.Drawing.Size(403, 20); + this.txtid.StyleController = this.layoutControl1; + this.txtid.TabIndex = 1; + // + // txtrequisitioncode + // + this.txtrequisitioncode.Location = new System.Drawing.Point(545, 12); + this.txtrequisitioncode.Name = "txtrequisitioncode"; + this.txtrequisitioncode.Size = new System.Drawing.Size(404, 20); + this.txtrequisitioncode.StyleController = this.layoutControl1; + this.txtrequisitioncode.TabIndex = 2; + // + // txtrequisitiondate + // + this.txtrequisitiondate.EditValue = null; + this.txtrequisitiondate.ImeMode = System.Windows.Forms.ImeMode.Off; + this.txtrequisitiondate.Location = new System.Drawing.Point(545, 36); + this.txtrequisitiondate.Name = "txtrequisitiondate"; + this.txtrequisitiondate.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtrequisitiondate.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton()}); + this.txtrequisitiondate.Properties.DisplayFormat.FormatString = "G"; + this.txtrequisitiondate.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.txtrequisitiondate.Size = new System.Drawing.Size(404, 20); + this.txtrequisitiondate.StyleController = this.layoutControl1; + this.txtrequisitiondate.TabIndex = 4; + // + // txtdeliverdate + // + this.txtdeliverdate.EditValue = null; + this.txtdeliverdate.ImeMode = System.Windows.Forms.ImeMode.Off; + this.txtdeliverdate.Location = new System.Drawing.Point(75, 60); + 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.Properties.EditFormat.FormatString = "G"; + this.txtdeliverdate.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.txtdeliverdate.Properties.Mask.EditMask = "F"; + this.txtdeliverdate.Size = new System.Drawing.Size(403, 20); + this.txtdeliverdate.StyleController = this.layoutControl1; + this.txtdeliverdate.TabIndex = 5; + // + // txtcreatorId + // + this.txtcreatorId.EditValue = ""; + this.txtcreatorId.Location = new System.Drawing.Point(75, 84); + 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(403, 20); + this.txtcreatorId.StyleController = this.layoutControl1; + this.txtcreatorId.TabIndex = 6; + // + // txttotalprice + // + this.txttotalprice.Location = new System.Drawing.Point(545, 60); + this.txttotalprice.Name = "txttotalprice"; + this.txttotalprice.Size = new System.Drawing.Size(404, 20); + this.txttotalprice.StyleController = this.layoutControl1; + this.txttotalprice.TabIndex = 7; + // + // txtremark + // + this.txtremark.Location = new System.Drawing.Point(545, 84); + this.txtremark.Name = "txtremark"; + this.txtremark.Size = new System.Drawing.Size(404, 20); + this.txtremark.StyleController = this.layoutControl1; + this.txtremark.TabIndex = 8; + // + // layoutControlGroup1 + // + this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; + this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; + this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { + this.layoutControlItem1, + this.layoutControlItem5, + this.layoutControlItem6, + this.layoutControlItem9, + this.layoutControlItem2, + this.layoutControlItem4, + this.layoutControlItem7, + this.layoutControlItem8, + this.layoutControlItem3}); + this.layoutControlGroup1.Name = "layoutControlGroup1"; + this.layoutControlGroup1.Size = new System.Drawing.Size(961, 647); + 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(470, 24); + this.layoutControlItem1.Text = "id"; + this.layoutControlItem1.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem5 + // + this.layoutControlItem5.Control = this.txtdeliverdate; + this.layoutControlItem5.CustomizationFormText = "交货日期"; + this.layoutControlItem5.Location = new System.Drawing.Point(0, 48); + this.layoutControlItem5.Name = "layoutControlItem5"; + this.layoutControlItem5.Size = new System.Drawing.Size(470, 24); + this.layoutControlItem5.Text = "交货日期"; + this.layoutControlItem5.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem6 + // + this.layoutControlItem6.Control = this.txtcreatorId; + this.layoutControlItem6.CustomizationFormText = "制单人"; + this.layoutControlItem6.Location = new System.Drawing.Point(0, 72); + this.layoutControlItem6.Name = "layoutControlItem6"; + this.layoutControlItem6.Size = new System.Drawing.Size(470, 24); + this.layoutControlItem6.Text = "制单人"; + this.layoutControlItem6.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem9 + // + this.layoutControlItem9.Control = this.xtraTabControl2; + this.layoutControlItem9.Location = new System.Drawing.Point(0, 96); + this.layoutControlItem9.Name = "layoutControlItem9"; + this.layoutControlItem9.Size = new System.Drawing.Size(941, 531); + this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0); + this.layoutControlItem9.TextVisible = false; + // + // layoutControlItem2 + // + this.layoutControlItem2.Control = this.txtrequisitioncode; + this.layoutControlItem2.CustomizationFormText = "请购单编号"; + this.layoutControlItem2.Location = new System.Drawing.Point(470, 0); + this.layoutControlItem2.Name = "layoutControlItem2"; + this.layoutControlItem2.Size = new System.Drawing.Size(471, 24); + this.layoutControlItem2.Text = "请购单编号"; + this.layoutControlItem2.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem4 + // + this.layoutControlItem4.Control = this.txtrequisitiondate; + this.layoutControlItem4.CustomizationFormText = "请购日期"; + this.layoutControlItem4.Location = new System.Drawing.Point(470, 24); + this.layoutControlItem4.Name = "layoutControlItem4"; + this.layoutControlItem4.Size = new System.Drawing.Size(471, 24); + this.layoutControlItem4.Text = "请购日期"; + this.layoutControlItem4.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem7 + // + this.layoutControlItem7.Control = this.txttotalprice; + this.layoutControlItem7.CustomizationFormText = "金额"; + this.layoutControlItem7.Location = new System.Drawing.Point(470, 48); + this.layoutControlItem7.Name = "layoutControlItem7"; + this.layoutControlItem7.Size = new System.Drawing.Size(471, 24); + this.layoutControlItem7.Text = "金额"; + this.layoutControlItem7.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem8 + // + this.layoutControlItem8.Control = this.txtremark; + this.layoutControlItem8.CustomizationFormText = "备注"; + this.layoutControlItem8.Location = new System.Drawing.Point(470, 72); + this.layoutControlItem8.Name = "layoutControlItem8"; + this.layoutControlItem8.Size = new System.Drawing.Size(471, 24); + this.layoutControlItem8.Text = "备注"; + this.layoutControlItem8.TextSize = new System.Drawing.Size(60, 14); + // + // layoutControlItem3 + // + this.layoutControlItem3.Control = this.txtdeptid; + this.layoutControlItem3.Location = new System.Drawing.Point(0, 24); + this.layoutControlItem3.Name = "layoutControlItem3"; + this.layoutControlItem3.Size = new System.Drawing.Size(470, 24); + this.layoutControlItem3.Text = "请购部门"; + this.layoutControlItem3.TextSize = new System.Drawing.Size(60, 14); + // + // gridColumn21 + // + this.gridColumn21.Caption = "明细单号"; + this.gridColumn21.FieldName = "requisitiondetailcode"; + this.gridColumn21.Name = "gridColumn21"; + this.gridColumn21.OptionsColumn.AllowEdit = false; + this.gridColumn21.Visible = true; + this.gridColumn21.VisibleIndex = 0; + // + // Frmrequisition + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(971, 714); + this.Controls.Add(this.xtraTabControl1); + this.Name = "Frmrequisition"; + this.Text = "请购单"; + this.Load += new System.EventHandler(this.Frmrequisition_Load); + this.Controls.SetChildIndex(this.xtraTabControl1, 0); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtdeptid)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcreatorId)).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.txtdeptid.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.treeListLookUpEdit1TreeList)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl2)).EndInit(); + this.xtraTabControl2.ResumeLayout(false); + this.xtraTabPage2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit(); + this.contextMenuStrip1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditmaterialid)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditmaterialunit)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemLookUpEditwarehouse)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtrequisitioncode.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtrequisitiondate.Properties.CalendarTimeProperties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtrequisitiondate.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliverdate.Properties.CalendarTimeProperties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliverdate.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreatorId.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txttotalprice.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.layoutControlItem5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).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.XtraEditors.TextEdit txtid; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtrequisitioncode; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtdeptid; + /////////////////////////////// + private DevExpress.XtraEditors.DateEdit txtrequisitiondate; + /////////////////////////////// + private DevExpress.XtraEditors.DateEdit txtdeliverdate; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtcreatorId; + + private DevExpress.XtraEditors.LookUpEdit txtcreatorId; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txttotalprice; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtremark; + + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; + 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 XtraTabControl xtraTabControl2; + private XtraTabPage xtraTabPage2; + private LayoutControlItem layoutControlItem9; + private DevExpress.XtraGrid.GridControl gridControl1; + private DevExpress.XtraGrid.Views.Grid.GridView gridView1; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn9; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn10; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn11; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn12; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn13; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn14; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn15; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn16; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn17; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn18; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn19; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn20; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemLookUpEditmaterialid; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemLookUpEditmaterialunit; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemLookUpEditwarehouse; + private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemAdd; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemDel; + private TreeListLookUpEdit txtdeptid; + private DevExpress.XtraTreeList.TreeList treeListLookUpEdit1TreeList; + private LayoutControlItem layoutControlItem3; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn21; + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmsaledetail.resx b/WinformGeneralDeveloperFrame/Form/Frmrequisition.resx similarity index 96% rename from WinformGeneralDeveloperFrame/Form/Frmsaledetail.resx rename to WinformGeneralDeveloperFrame/Form/Frmrequisition.resx index 1af7de1..ad53752 100644 --- a/WinformGeneralDeveloperFrame/Form/Frmsaledetail.resx +++ b/WinformGeneralDeveloperFrame/Form/Frmrequisition.resx @@ -117,4 +117,7 @@ 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/Frmreturnsale.cs b/WinformGeneralDeveloperFrame/Form/Frmreturnsale.cs index 17bfc5c..a800a1a 100644 --- a/WinformGeneralDeveloperFrame/Form/Frmreturnsale.cs +++ b/WinformGeneralDeveloperFrame/Form/Frmreturnsale.cs @@ -149,10 +149,15 @@ namespace MES.Form { List detaiListAdd = dic["Add"]; + int num = 0; detaiListAdd.ForEach(a => { + num++; a.returnsalecode = info.returnsalecode; a.returnsaleid = info.id; + string coded = "SDD" + DateTime.Now.Year + DateTime.Now.Month + DateTime.Now.Day + DateTime.Now.Hour + + DateTime.Now.Minute + DateTime.Now.Second + DateTime.Now.Millisecond.ToString("D3")+num; + a.returnsaledetailcode = coded; }); db.returnsaledetailInfo.AddRange(detaiListAdd); db.SaveChanges(); @@ -166,10 +171,15 @@ namespace MES.Form { List detaiListAdd = dic["Add"]; + int num = 0; detaiListAdd.ForEach(a => { + num++; a.returnsalecode = info.returnsalecode; a.returnsaleid = info.id; + string coded = "SDD" + DateTime.Now.Year + DateTime.Now.Month + DateTime.Now.Day + DateTime.Now.Hour + + DateTime.Now.Minute + DateTime.Now.Second + DateTime.Now.Millisecond.ToString("D3")+num; + a.returnsaledetailcode = coded; }); db.returnsaledetailInfo.AddRange(detaiListAdd); diff --git a/WinformGeneralDeveloperFrame/Form/Frmreturnsale.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmreturnsale.designer.cs index a52a64d..8401d1a 100644 --- a/WinformGeneralDeveloperFrame/Form/Frmreturnsale.designer.cs +++ b/WinformGeneralDeveloperFrame/Form/Frmreturnsale.designer.cs @@ -100,6 +100,7 @@ namespace MES.Form this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); + this.gridColumn23 = new DevExpress.XtraGrid.Columns.GridColumn(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomerid)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomertype)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcontactuser)).BeginInit(); @@ -414,7 +415,8 @@ namespace MES.Form this.gridColumn19, this.gridColumn20, this.gridColumn21, - this.gridColumn22}); + this.gridColumn22, + this.gridColumn23}); this.gridView1.GridControl = this.gridControl1; this.gridView1.Name = "gridView1"; this.gridView1.OptionsBehavior.Editable = false; @@ -439,7 +441,7 @@ namespace MES.Form this.gridColumn13.Name = "gridColumn13"; this.gridColumn13.OptionsColumn.AllowEdit = false; this.gridColumn13.Visible = true; - this.gridColumn13.VisibleIndex = 1; + this.gridColumn13.VisibleIndex = 2; this.gridColumn13.Width = 201; // // gridColumn14 @@ -449,7 +451,7 @@ namespace MES.Form this.gridColumn14.FieldName = "deliversalecode"; this.gridColumn14.Name = "gridColumn14"; this.gridColumn14.Visible = true; - this.gridColumn14.VisibleIndex = 0; + this.gridColumn14.VisibleIndex = 1; this.gridColumn14.Width = 201; // // repositoryItemGridLookUpEditdeliversalecode @@ -478,7 +480,7 @@ namespace MES.Form this.gridColumn15.Name = "gridColumn15"; this.gridColumn15.OptionsColumn.AllowEdit = false; this.gridColumn15.Visible = true; - this.gridColumn15.VisibleIndex = 2; + this.gridColumn15.VisibleIndex = 3; this.gridColumn15.Width = 201; // // gridColumn16 @@ -488,7 +490,7 @@ namespace MES.Form this.gridColumn16.Name = "gridColumn16"; this.gridColumn16.OptionsColumn.AllowEdit = false; this.gridColumn16.Visible = true; - this.gridColumn16.VisibleIndex = 3; + this.gridColumn16.VisibleIndex = 4; this.gridColumn16.Width = 201; // // gridColumn17 @@ -498,7 +500,7 @@ namespace MES.Form this.gridColumn17.Name = "gridColumn17"; this.gridColumn17.OptionsColumn.AllowEdit = false; this.gridColumn17.Visible = true; - this.gridColumn17.VisibleIndex = 4; + this.gridColumn17.VisibleIndex = 5; this.gridColumn17.Width = 201; // // gridColumn18 @@ -508,7 +510,7 @@ namespace MES.Form this.gridColumn18.Name = "gridColumn18"; this.gridColumn18.OptionsColumn.AllowEdit = false; this.gridColumn18.Visible = true; - this.gridColumn18.VisibleIndex = 5; + this.gridColumn18.VisibleIndex = 6; this.gridColumn18.Width = 201; // // gridColumn19 @@ -519,7 +521,7 @@ namespace MES.Form this.gridColumn19.Name = "gridColumn19"; this.gridColumn19.OptionsColumn.AllowEdit = false; this.gridColumn19.Visible = true; - this.gridColumn19.VisibleIndex = 6; + this.gridColumn19.VisibleIndex = 7; this.gridColumn19.Width = 201; // // repositoryItemLookUpEditwarehouse @@ -538,7 +540,7 @@ namespace MES.Form this.gridColumn20.FieldName = "returnnumber"; this.gridColumn20.Name = "gridColumn20"; this.gridColumn20.Visible = true; - this.gridColumn20.VisibleIndex = 7; + this.gridColumn20.VisibleIndex = 8; this.gridColumn20.Width = 201; // // gridColumn21 @@ -549,7 +551,7 @@ namespace MES.Form this.gridColumn21.Name = "gridColumn21"; this.gridColumn21.OptionsColumn.AllowEdit = false; this.gridColumn21.Visible = true; - this.gridColumn21.VisibleIndex = 8; + this.gridColumn21.VisibleIndex = 9; this.gridColumn21.Width = 201; // // repositoryItemLookUpEditunit @@ -568,7 +570,7 @@ namespace MES.Form this.gridColumn22.FieldName = "remark"; this.gridColumn22.Name = "gridColumn22"; this.gridColumn22.Visible = true; - this.gridColumn22.VisibleIndex = 9; + this.gridColumn22.VisibleIndex = 10; this.gridColumn22.Width = 201; // // repositoryItemGridLookUpEdit @@ -832,6 +834,15 @@ namespace MES.Form this.layoutControlItem11.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem11.TextVisible = false; // + // gridColumn23 + // + this.gridColumn23.Caption = "明细单号"; + this.gridColumn23.FieldName = "returnsaledetailcode"; + this.gridColumn23.Name = "gridColumn23"; + this.gridColumn23.OptionsColumn.AllowEdit = false; + this.gridColumn23.Visible = true; + this.gridColumn23.VisibleIndex = 0; + // // Frmreturnsale // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); @@ -972,5 +983,6 @@ namespace MES.Form private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemAdd; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemDel; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn23; } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmreturnsaledetail.cs b/WinformGeneralDeveloperFrame/Form/Frmreturnsaledetail.cs deleted file mode 100644 index 60200b6..0000000 --- a/WinformGeneralDeveloperFrame/Form/Frmreturnsaledetail.cs +++ /dev/null @@ -1,211 +0,0 @@ -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 Frmreturnsaledetail : FrmBaseForm - { - private Dictionary fieldDictionary = new Dictionary(); - public Frmreturnsaledetail() - { - InitializeComponent(); - } - private void Frmreturnsaledetail_Load(object sender, EventArgs e) - { - - InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new returnsaledetailInfo()); - InitSearchDicData(); - } - /// - /// 数据源初始化 - /// - /// - private void Init() - { - - - - - txtwarehouse.Properties.DataSource = GetDataTableUtils.SqlTable("仓库"); - repositoryItemtxtwarehouse.DataSource= GetDataTableUtils.SqlTable("仓库"); - txtunit.Properties.DataSource = GetDataTableUtils.SqlTable("计量单位"); - repositoryItemtxtunit.DataSource= GetDataTableUtils.SqlTable("计量单位"); - - - } - /// - /// 搜索字段 - /// - /// - private void InitSearchDicData() - { - fieldDictionary.Add("id","id"); - fieldDictionary.Add("退货单主表","returnsaleid"); - fieldDictionary.Add("退货单号","returnsalecode"); - fieldDictionary.Add("出货单号","deliversalecode"); - fieldDictionary.Add("销售单号","salecode"); - fieldDictionary.Add("产品编号","productcode"); - fieldDictionary.Add("产品名称","productname"); - fieldDictionary.Add("规格型号","productspec"); - fieldDictionary.Add("仓库","warehouse"); - fieldDictionary.Add("退货数量","returnnumber"); - fieldDictionary.Add("计量单位","unit"); - fieldDictionary.Add("备注","remark"); - } - - public override void InitgrdListDataSource() - { - using (var con=new MESDB())/// - { - grdList.DataSource=con.returnsaledetailInfo.ToList(); - } - Init(); - } - /// - /// 字段为空校验 - /// - /// - public override bool CheckInput() - { - if(string.IsNullOrEmpty(txtreturnsaleid.EditValue.ToString())) - { - "退货单主表不能为空".ShowWarning(); - txtreturnsaleid.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtreturnsalecode.EditValue.ToString())) - { - "退货单号不能为空".ShowWarning(); - txtreturnsalecode.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtdeliversalecode.EditValue.ToString())) - { - "出货单号不能为空".ShowWarning(); - txtdeliversalecode.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtsalecode.EditValue.ToString())) - { - "销售单号不能为空".ShowWarning(); - txtsalecode.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtproductcode.EditValue.ToString())) - { - "产品编号不能为空".ShowWarning(); - txtproductcode.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtproductname.EditValue.ToString())) - { - "产品名称不能为空".ShowWarning(); - txtproductname.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtproductspec.EditValue.ToString())) - { - "规格型号不能为空".ShowWarning(); - txtproductspec.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtwarehouse.EditValue.ToString())) - { - "仓库不能为空".ShowWarning(); - txtwarehouse.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtreturnnumber.EditValue.ToString())) - { - "退货数量不能为空".ShowWarning(); - txtreturnnumber.Focus(); - return false; - } - if(string.IsNullOrEmpty(txtunit.EditValue.ToString())) - { - "计量单位不能为空".ShowWarning(); - txtunit.Focus(); - return false; - } - return true; - } - /// - /// 保存 - /// - /// - public override bool SaveFunction() - { - try - { - returnsaledetailInfo info= (returnsaledetailInfo)this.ControlDataToModel(new returnsaledetailInfo()); - using (var db = new MESDB()) - { - db.returnsaledetailInfo.AddOrUpdate(info); - db.SaveChanges(); - } - } - catch (Exception ex) - { - ex.Message.ShowError(); - return false; - } - return true; - } - /// - /// 删除 - /// - /// - public override bool DelFunction() - { - try - { - returnsaledetailInfo info = (returnsaledetailInfo)this.ControlDataToModel(new returnsaledetailInfo()); - 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.returnsaledetailInfo.SqlQuery("select * from returnsaledetail").ToList(); - } - else - { - grdList.DataSource = db.returnsaledetailInfo.SqlQuery($"select * from returnsaledetail where {sql}").ToList(); - } - } - } - } - } -} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmreturnsaledetail.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmreturnsaledetail.designer.cs deleted file mode 100644 index b1620b2..0000000 --- a/WinformGeneralDeveloperFrame/Form/Frmreturnsaledetail.designer.cs +++ /dev/null @@ -1,696 +0,0 @@ - -using DevExpress.XtraEditors; -using DevExpress.XtraLayout; -using DevExpress.XtraTab; - -namespace MES.Form -{ - partial class Frmreturnsaledetail - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.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.repositoryItemtxtunit = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); - this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn(); - this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); - this.tabDataList = new DevExpress.XtraTab.XtraTabPage(); - this.grdList = new DevExpress.XtraGrid.GridControl(); - this.grdListView = new DevExpress.XtraGrid.Views.Grid.GridView(); - this.tabDataDetail = new DevExpress.XtraTab.XtraTabPage(); - this.panelControl2 = new DevExpress.XtraEditors.PanelControl(); - this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); - this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); - this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txtid = new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txtreturnsaleid = new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txtreturnsalecode = new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txtdeliversalecode = new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txtsalecode = new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txtproductcode = new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txtproductname = new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txtproductspec = new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txtwarehouse = new DevExpress.XtraEditors.LookUpEdit(); - this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txtreturnnumber = new DevExpress.XtraEditors.TextEdit(); - this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txtunit = new DevExpress.XtraEditors.LookUpEdit(); - this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem(); - this.txtremark = new DevExpress.XtraEditors.TextEdit(); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtwarehouse)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtunit)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); - this.xtraTabControl1.SuspendLayout(); - this.tabDataList.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.grdList)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.grdListView)).BeginInit(); - this.tabDataDetail.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit(); - this.panelControl2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); - this.layoutControl1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtreturnsaleid.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtreturnsalecode.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtdeliversalecode.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsalecode.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtproductcode.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtproductname.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtproductspec.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtwarehouse.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtreturnnumber.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtunit.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).BeginInit(); - this.SuspendLayout(); - // - // gridColumn1 - // - this.gridColumn1.Caption = "id"; - this.gridColumn1.FieldName = "id"; - this.gridColumn1.Name = "gridColumn1"; - // - // gridColumn2 - // - this.gridColumn2.Caption = "退货单主表"; - this.gridColumn2.FieldName = "returnsaleid"; - this.gridColumn2.Name = "gridColumn2"; - // - // gridColumn3 - // - this.gridColumn3.Caption = "退货单号"; - this.gridColumn3.FieldName = "returnsalecode"; - this.gridColumn3.Name = "gridColumn3"; - this.gridColumn3.Visible = true; - this.gridColumn3.VisibleIndex = 0; - this.gridColumn3.Width = 201; - // - // gridColumn4 - // - this.gridColumn4.Caption = "出货单号"; - this.gridColumn4.FieldName = "deliversalecode"; - this.gridColumn4.Name = "gridColumn4"; - this.gridColumn4.Visible = true; - this.gridColumn4.VisibleIndex = 1; - this.gridColumn4.Width = 201; - // - // gridColumn5 - // - this.gridColumn5.Caption = "销售单号"; - this.gridColumn5.FieldName = "salecode"; - this.gridColumn5.Name = "gridColumn5"; - this.gridColumn5.Visible = true; - this.gridColumn5.VisibleIndex = 2; - this.gridColumn5.Width = 201; - // - // gridColumn6 - // - this.gridColumn6.Caption = "产品编号"; - this.gridColumn6.FieldName = "productcode"; - this.gridColumn6.Name = "gridColumn6"; - this.gridColumn6.Visible = true; - this.gridColumn6.VisibleIndex = 3; - this.gridColumn6.Width = 201; - // - // gridColumn7 - // - this.gridColumn7.Caption = "产品名称"; - this.gridColumn7.FieldName = "productname"; - this.gridColumn7.Name = "gridColumn7"; - this.gridColumn7.Visible = true; - this.gridColumn7.VisibleIndex = 4; - this.gridColumn7.Width = 201; - // - // gridColumn8 - // - this.gridColumn8.Caption = "规格型号"; - this.gridColumn8.FieldName = "productspec"; - this.gridColumn8.Name = "gridColumn8"; - this.gridColumn8.Visible = true; - this.gridColumn8.VisibleIndex = 5; - 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 = 6; - 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 = "returnnumber"; - this.gridColumn10.Name = "gridColumn10"; - this.gridColumn10.Visible = true; - this.gridColumn10.VisibleIndex = 7; - this.gridColumn10.Width = 201; - // - // gridColumn11 - // - this.gridColumn11.Caption = "计量单位"; - this.gridColumn11.ColumnEdit = this.repositoryItemtxtunit; - this.gridColumn11.FieldName = "unit"; - this.gridColumn11.Name = "gridColumn11"; - this.gridColumn11.Visible = true; - this.gridColumn11.VisibleIndex = 8; - this.gridColumn11.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"; - // - // gridColumn12 - // - this.gridColumn12.Caption = "备注"; - this.gridColumn12.FieldName = "remark"; - this.gridColumn12.Name = "gridColumn12"; - this.gridColumn12.Visible = true; - this.gridColumn12.VisibleIndex = 9; - this.gridColumn12.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.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.txtreturnsaleid); - this.layoutControl1.Controls.Add(this.txtreturnsalecode); - this.layoutControl1.Controls.Add(this.txtdeliversalecode); - this.layoutControl1.Controls.Add(this.txtsalecode); - this.layoutControl1.Controls.Add(this.txtproductcode); - this.layoutControl1.Controls.Add(this.txtproductname); - this.layoutControl1.Controls.Add(this.txtproductspec); - this.layoutControl1.Controls.Add(this.txtwarehouse); - this.layoutControl1.Controls.Add(this.txtreturnnumber); - this.layoutControl1.Controls.Add(this.txtunit); - 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(1290, 733); - this.layoutControl1.TabIndex = 6; - this.layoutControl1.Text = "layoutControl1"; - // - // layoutControlGroup1 - // - this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; - this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; - this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { - this.layoutControlItem1, - this.layoutControlItem2, - this.layoutControlItem3, - this.layoutControlItem4, - this.layoutControlItem5, - this.layoutControlItem6, - this.layoutControlItem7, - this.layoutControlItem8, - this.layoutControlItem9, - this.layoutControlItem10, - this.layoutControlItem11, - this.layoutControlItem12}); - 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(60, 14); - // - // txtid - // - this.txtid.Location = new System.Drawing.Point(75, 12); - this.txtid.Name = "txtid"; - this.txtid.Size = new System.Drawing.Size(1203, 20); - this.txtid.StyleController = this.layoutControl1; - this.txtid.TabIndex = 1; - // - // layoutControlItem2 - // - this.layoutControlItem2.Control = this.txtreturnsaleid; - this.layoutControlItem2.CustomizationFormText = "退货单主表"; - this.layoutControlItem2.Location = new System.Drawing.Point(0, 24); - this.layoutControlItem2.Name = "layoutControlItem2"; - this.layoutControlItem2.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem2.Text = "退货单主表"; - this.layoutControlItem2.TextSize = new System.Drawing.Size(60, 14); - // - // txtreturnsaleid - // - this.txtreturnsaleid.Location = new System.Drawing.Point(75, 36); - this.txtreturnsaleid.Name = "txtreturnsaleid"; - this.txtreturnsaleid.Size = new System.Drawing.Size(1203, 20); - this.txtreturnsaleid.StyleController = this.layoutControl1; - this.txtreturnsaleid.TabIndex = 2; - // - // layoutControlItem3 - // - this.layoutControlItem3.Control = this.txtreturnsalecode; - this.layoutControlItem3.CustomizationFormText = "退货单号"; - this.layoutControlItem3.Location = new System.Drawing.Point(0, 48); - this.layoutControlItem3.Name = "layoutControlItem3"; - this.layoutControlItem3.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem3.Text = "退货单号"; - this.layoutControlItem3.TextSize = new System.Drawing.Size(60, 14); - // - // txtreturnsalecode - // - this.txtreturnsalecode.Location = new System.Drawing.Point(75, 60); - this.txtreturnsalecode.Name = "txtreturnsalecode"; - this.txtreturnsalecode.Size = new System.Drawing.Size(1203, 20); - this.txtreturnsalecode.StyleController = this.layoutControl1; - this.txtreturnsalecode.TabIndex = 3; - // - // layoutControlItem4 - // - this.layoutControlItem4.Control = this.txtdeliversalecode; - this.layoutControlItem4.CustomizationFormText = "出货单号"; - this.layoutControlItem4.Location = new System.Drawing.Point(0, 72); - this.layoutControlItem4.Name = "layoutControlItem4"; - this.layoutControlItem4.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem4.Text = "出货单号"; - this.layoutControlItem4.TextSize = new System.Drawing.Size(60, 14); - // - // txtdeliversalecode - // - this.txtdeliversalecode.Location = new System.Drawing.Point(75, 84); - this.txtdeliversalecode.Name = "txtdeliversalecode"; - this.txtdeliversalecode.Size = new System.Drawing.Size(1203, 20); - this.txtdeliversalecode.StyleController = this.layoutControl1; - this.txtdeliversalecode.TabIndex = 4; - // - // layoutControlItem5 - // - this.layoutControlItem5.Control = this.txtsalecode; - this.layoutControlItem5.CustomizationFormText = "销售单号"; - this.layoutControlItem5.Location = new System.Drawing.Point(0, 96); - this.layoutControlItem5.Name = "layoutControlItem5"; - this.layoutControlItem5.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem5.Text = "销售单号"; - this.layoutControlItem5.TextSize = new System.Drawing.Size(60, 14); - // - // txtsalecode - // - this.txtsalecode.Location = new System.Drawing.Point(75, 108); - this.txtsalecode.Name = "txtsalecode"; - this.txtsalecode.Size = new System.Drawing.Size(1203, 20); - this.txtsalecode.StyleController = this.layoutControl1; - this.txtsalecode.TabIndex = 5; - // - // layoutControlItem6 - // - this.layoutControlItem6.Control = this.txtproductcode; - this.layoutControlItem6.CustomizationFormText = "产品编号"; - this.layoutControlItem6.Location = new System.Drawing.Point(0, 120); - this.layoutControlItem6.Name = "layoutControlItem6"; - this.layoutControlItem6.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem6.Text = "产品编号"; - this.layoutControlItem6.TextSize = new System.Drawing.Size(60, 14); - // - // txtproductcode - // - this.txtproductcode.Location = new System.Drawing.Point(75, 132); - this.txtproductcode.Name = "txtproductcode"; - this.txtproductcode.Size = new System.Drawing.Size(1203, 20); - this.txtproductcode.StyleController = this.layoutControl1; - this.txtproductcode.TabIndex = 6; - // - // layoutControlItem7 - // - this.layoutControlItem7.Control = this.txtproductname; - this.layoutControlItem7.CustomizationFormText = "产品名称"; - this.layoutControlItem7.Location = new System.Drawing.Point(0, 144); - this.layoutControlItem7.Name = "layoutControlItem7"; - this.layoutControlItem7.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem7.Text = "产品名称"; - this.layoutControlItem7.TextSize = new System.Drawing.Size(60, 14); - // - // txtproductname - // - this.txtproductname.Location = new System.Drawing.Point(75, 156); - this.txtproductname.Name = "txtproductname"; - this.txtproductname.Size = new System.Drawing.Size(1203, 20); - this.txtproductname.StyleController = this.layoutControl1; - this.txtproductname.TabIndex = 7; - // - // layoutControlItem8 - // - this.layoutControlItem8.Control = this.txtproductspec; - this.layoutControlItem8.CustomizationFormText = "规格型号"; - this.layoutControlItem8.Location = new System.Drawing.Point(0, 168); - this.layoutControlItem8.Name = "layoutControlItem8"; - this.layoutControlItem8.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem8.Text = "规格型号"; - this.layoutControlItem8.TextSize = new System.Drawing.Size(60, 14); - // - // txtproductspec - // - this.txtproductspec.Location = new System.Drawing.Point(75, 180); - this.txtproductspec.Name = "txtproductspec"; - this.txtproductspec.Size = new System.Drawing.Size(1203, 20); - this.txtproductspec.StyleController = this.layoutControl1; - this.txtproductspec.TabIndex = 8; - // - // 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(60, 14); - // - // txtwarehouse - // - this.txtwarehouse.EditValue = ""; - this.txtwarehouse.Location = new System.Drawing.Point(75, 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(1203, 20); - this.txtwarehouse.StyleController = this.layoutControl1; - this.txtwarehouse.TabIndex = 9; - // - // layoutControlItem10 - // - this.layoutControlItem10.Control = this.txtreturnnumber; - this.layoutControlItem10.CustomizationFormText = "退货数量"; - this.layoutControlItem10.Location = new System.Drawing.Point(0, 216); - this.layoutControlItem10.Name = "layoutControlItem10"; - this.layoutControlItem10.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem10.Text = "退货数量"; - this.layoutControlItem10.TextSize = new System.Drawing.Size(60, 14); - // - // txtreturnnumber - // - this.txtreturnnumber.Location = new System.Drawing.Point(75, 228); - this.txtreturnnumber.Name = "txtreturnnumber"; - this.txtreturnnumber.Size = new System.Drawing.Size(1203, 20); - this.txtreturnnumber.StyleController = this.layoutControl1; - this.txtreturnnumber.TabIndex = 10; - // - // layoutControlItem11 - // - this.layoutControlItem11.Control = this.txtunit; - this.layoutControlItem11.CustomizationFormText = "计量单位"; - this.layoutControlItem11.Location = new System.Drawing.Point(0, 240); - this.layoutControlItem11.Name = "layoutControlItem11"; - this.layoutControlItem11.Size = new System.Drawing.Size(1270, 24); - this.layoutControlItem11.Text = "计量单位"; - this.layoutControlItem11.TextSize = new System.Drawing.Size(60, 14); - // - // txtunit - // - this.txtunit.EditValue = ""; - this.txtunit.Location = new System.Drawing.Point(75, 252); - 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(1203, 20); - this.txtunit.StyleController = this.layoutControl1; - this.txtunit.TabIndex = 11; - // - // layoutControlItem12 - // - this.layoutControlItem12.Control = this.txtremark; - this.layoutControlItem12.CustomizationFormText = "备注"; - this.layoutControlItem12.Location = new System.Drawing.Point(0, 264); - this.layoutControlItem12.Name = "layoutControlItem12"; - this.layoutControlItem12.Size = new System.Drawing.Size(1270, 449); - this.layoutControlItem12.Text = "备注"; - this.layoutControlItem12.TextSize = new System.Drawing.Size(60, 14); - // - // txtremark - // - this.txtremark.Location = new System.Drawing.Point(75, 276); - this.txtremark.Name = "txtremark"; - this.txtremark.Size = new System.Drawing.Size(1203, 20); - this.txtremark.StyleController = this.layoutControl1; - this.txtremark.TabIndex = 12; - // - // Frmreturnsaledetail - // - 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 = "Frmreturnsaledetail"; - this.Text = "Frmreturnsaledetail"; - this.Load += new System.EventHandler(this.Frmreturnsaledetail_Load); - this.Controls.SetChildIndex(this.xtraTabControl1, 0); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtwarehouse)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtunit)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); - this.xtraTabControl1.ResumeLayout(false); - this.tabDataList.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.grdList)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.grdListView)).EndInit(); - this.tabDataDetail.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit(); - this.panelControl2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); - this.layoutControl1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtreturnsaleid.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtreturnsalecode.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtdeliversalecode.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtsalecode.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtproductcode.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtproductname.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtproductspec.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtwarehouse.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtreturnnumber.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtunit.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).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.XtraEditors.TextEdit txtid; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtreturnsaleid; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtreturnsalecode; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtdeliversalecode; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtsalecode; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtproductcode; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtproductname; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtproductspec; - private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtwarehouse; - - private DevExpress.XtraEditors.LookUpEdit txtwarehouse; - /////////////////////////////// - private DevExpress.XtraEditors.TextEdit txtreturnnumber; - private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtunit; - - private DevExpress.XtraEditors.LookUpEdit txtunit; - /////////////////////////////// - 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; - } -} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmreturnsaledetail.resx b/WinformGeneralDeveloperFrame/Form/Frmreturnsaledetail.resx deleted file mode 100644 index 1af7de1..0000000 --- a/WinformGeneralDeveloperFrame/Form/Frmreturnsaledetail.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmsale.cs b/WinformGeneralDeveloperFrame/Form/Frmsale.cs index 9b28d83..ba42a0c 100644 --- a/WinformGeneralDeveloperFrame/Form/Frmsale.cs +++ b/WinformGeneralDeveloperFrame/Form/Frmsale.cs @@ -170,10 +170,15 @@ namespace MES.Form { List detaiListAdd = dic["Add"]; + int num = 0; detaiListAdd.ForEach(a => { + num++; a.saleid = info.id; a.salecode = info.saleordercode; + string codeD = "SOD" + DateTime.Now.Year + DateTime.Now.Month + DateTime.Now.Day + DateTime.Now.Hour + + DateTime.Now.Minute + DateTime.Now.Second + DateTime.Now.Millisecond.ToString("D3")+num; + a.saledetailcode = codeD; }); db.saledetailInfo.AddRange(detaiListAdd); db.SaveChanges(); @@ -187,10 +192,15 @@ namespace MES.Form { List detaiListAdd = dic["Add"]; + int num = 0; detaiListAdd.ForEach(a => { + num++; a.saleid = info.id; a.salecode = info.saleordercode; + string codeD = "SOD" + DateTime.Now.Year + DateTime.Now.Month + DateTime.Now.Day + DateTime.Now.Hour + + DateTime.Now.Minute + DateTime.Now.Second + DateTime.Now.Millisecond.ToString("D3")+num; + a.saledetailcode = codeD; }); db.saledetailInfo.AddRange(detaiListAdd); diff --git a/WinformGeneralDeveloperFrame/Form/Frmsale.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmsale.designer.cs index a14d2b3..3d8e0a2 100644 --- a/WinformGeneralDeveloperFrame/Form/Frmsale.designer.cs +++ b/WinformGeneralDeveloperFrame/Form/Frmsale.designer.cs @@ -123,6 +123,7 @@ namespace MES.Form this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem(); + this.gridColumn38 = new DevExpress.XtraGrid.Columns.GridColumn(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomerid)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomertype)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcontactuser)).BeginInit(); @@ -513,7 +514,8 @@ namespace MES.Form this.gridColumn34, this.gridColumn35, this.gridColumn36, - this.gridColumn37}); + this.gridColumn37, + this.gridColumn38}); this.gridView1.GridControl = this.gridControl1; this.gridView1.Name = "gridView1"; this.gridView1.OptionsBehavior.Editable = false; @@ -534,7 +536,7 @@ namespace MES.Form this.gridColumn16.FieldName = "productid"; this.gridColumn16.Name = "gridColumn16"; this.gridColumn16.Visible = true; - this.gridColumn16.VisibleIndex = 0; + this.gridColumn16.VisibleIndex = 1; this.gridColumn16.Width = 201; // // repositoryItemGridLookUpEdit1 @@ -552,7 +554,9 @@ namespace MES.Form // this.repositoryItemGridLookUpEdit1View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus; this.repositoryItemGridLookUpEdit1View.Name = "repositoryItemGridLookUpEdit1View"; + this.repositoryItemGridLookUpEdit1View.OptionsBehavior.AllowIncrementalSearch = true; this.repositoryItemGridLookUpEdit1View.OptionsBehavior.Editable = false; + this.repositoryItemGridLookUpEdit1View.OptionsFind.SearchInPreview = true; this.repositoryItemGridLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false; this.repositoryItemGridLookUpEdit1View.OptionsView.ColumnAutoWidth = false; this.repositoryItemGridLookUpEdit1View.OptionsView.ShowGroupPanel = false; @@ -563,7 +567,7 @@ namespace MES.Form this.gridColumn17.FieldName = "productspec"; this.gridColumn17.Name = "gridColumn17"; this.gridColumn17.Visible = true; - this.gridColumn17.VisibleIndex = 1; + this.gridColumn17.VisibleIndex = 2; this.gridColumn17.Width = 201; // // gridColumn18 @@ -572,7 +576,7 @@ namespace MES.Form this.gridColumn18.FieldName = "salenumber"; this.gridColumn18.Name = "gridColumn18"; this.gridColumn18.Visible = true; - this.gridColumn18.VisibleIndex = 2; + this.gridColumn18.VisibleIndex = 3; this.gridColumn18.Width = 201; // // gridColumn19 @@ -582,7 +586,7 @@ namespace MES.Form this.gridColumn19.FieldName = "unit"; this.gridColumn19.Name = "gridColumn19"; this.gridColumn19.Visible = true; - this.gridColumn19.VisibleIndex = 3; + this.gridColumn19.VisibleIndex = 4; this.gridColumn19.Width = 201; // // repositoryItemtxtunit @@ -601,7 +605,7 @@ namespace MES.Form this.gridColumn20.FieldName = "unitprice"; this.gridColumn20.Name = "gridColumn20"; this.gridColumn20.Visible = true; - this.gridColumn20.VisibleIndex = 4; + this.gridColumn20.VisibleIndex = 5; this.gridColumn20.Width = 201; // // gridColumn21 @@ -610,7 +614,7 @@ namespace MES.Form this.gridColumn21.FieldName = "money"; this.gridColumn21.Name = "gridColumn21"; this.gridColumn21.Visible = true; - this.gridColumn21.VisibleIndex = 5; + this.gridColumn21.VisibleIndex = 6; this.gridColumn21.Width = 201; // // gridColumn22 @@ -621,7 +625,7 @@ namespace MES.Form this.gridColumn22.FieldName = "deliverdate"; this.gridColumn22.Name = "gridColumn22"; this.gridColumn22.Visible = true; - this.gridColumn22.VisibleIndex = 6; + this.gridColumn22.VisibleIndex = 7; this.gridColumn22.Width = 201; // // gridColumn23 @@ -631,7 +635,7 @@ namespace MES.Form this.gridColumn23.FieldName = "warehouse"; this.gridColumn23.Name = "gridColumn23"; this.gridColumn23.Visible = true; - this.gridColumn23.VisibleIndex = 7; + this.gridColumn23.VisibleIndex = 8; this.gridColumn23.Width = 201; // // repositoryItemtxtwarehouse @@ -650,7 +654,7 @@ namespace MES.Form this.gridColumn24.Name = "gridColumn24"; this.gridColumn24.OptionsColumn.AllowEdit = false; this.gridColumn24.Visible = true; - this.gridColumn24.VisibleIndex = 8; + this.gridColumn24.VisibleIndex = 9; this.gridColumn24.Width = 201; // // gridColumn25 @@ -660,7 +664,7 @@ namespace MES.Form this.gridColumn25.Name = "gridColumn25"; this.gridColumn25.OptionsColumn.AllowEdit = false; this.gridColumn25.Visible = true; - this.gridColumn25.VisibleIndex = 9; + this.gridColumn25.VisibleIndex = 10; this.gridColumn25.Width = 201; // // gridColumn26 @@ -670,7 +674,7 @@ namespace MES.Form this.gridColumn26.Name = "gridColumn26"; this.gridColumn26.OptionsColumn.AllowEdit = false; this.gridColumn26.Visible = true; - this.gridColumn26.VisibleIndex = 10; + this.gridColumn26.VisibleIndex = 11; this.gridColumn26.Width = 201; // // gridColumn27 @@ -680,7 +684,7 @@ namespace MES.Form this.gridColumn27.Name = "gridColumn27"; this.gridColumn27.OptionsColumn.AllowEdit = false; this.gridColumn27.Visible = true; - this.gridColumn27.VisibleIndex = 11; + this.gridColumn27.VisibleIndex = 12; this.gridColumn27.Width = 201; // // gridColumn28 @@ -690,7 +694,7 @@ namespace MES.Form this.gridColumn28.Name = "gridColumn28"; this.gridColumn28.OptionsColumn.AllowEdit = false; this.gridColumn28.Visible = true; - this.gridColumn28.VisibleIndex = 12; + this.gridColumn28.VisibleIndex = 13; this.gridColumn28.Width = 201; // // gridColumn29 @@ -700,7 +704,7 @@ namespace MES.Form this.gridColumn29.Name = "gridColumn29"; this.gridColumn29.OptionsColumn.AllowEdit = false; this.gridColumn29.Visible = true; - this.gridColumn29.VisibleIndex = 13; + this.gridColumn29.VisibleIndex = 14; this.gridColumn29.Width = 201; // // gridColumn30 @@ -710,7 +714,7 @@ namespace MES.Form this.gridColumn30.Name = "gridColumn30"; this.gridColumn30.OptionsColumn.AllowEdit = false; this.gridColumn30.Visible = true; - this.gridColumn30.VisibleIndex = 14; + this.gridColumn30.VisibleIndex = 15; this.gridColumn30.Width = 201; // // gridColumn31 @@ -720,7 +724,7 @@ namespace MES.Form this.gridColumn31.Name = "gridColumn31"; this.gridColumn31.OptionsColumn.AllowEdit = false; this.gridColumn31.Visible = true; - this.gridColumn31.VisibleIndex = 15; + this.gridColumn31.VisibleIndex = 16; this.gridColumn31.Width = 201; // // gridColumn32 @@ -730,7 +734,7 @@ namespace MES.Form this.gridColumn32.Name = "gridColumn32"; this.gridColumn32.OptionsColumn.AllowEdit = false; this.gridColumn32.Visible = true; - this.gridColumn32.VisibleIndex = 16; + this.gridColumn32.VisibleIndex = 17; this.gridColumn32.Width = 201; // // gridColumn33 @@ -740,7 +744,7 @@ namespace MES.Form this.gridColumn33.Name = "gridColumn33"; this.gridColumn33.OptionsColumn.AllowEdit = false; this.gridColumn33.Visible = true; - this.gridColumn33.VisibleIndex = 17; + this.gridColumn33.VisibleIndex = 18; this.gridColumn33.Width = 201; // // gridColumn34 @@ -750,7 +754,7 @@ namespace MES.Form this.gridColumn34.Name = "gridColumn34"; this.gridColumn34.OptionsColumn.AllowEdit = false; this.gridColumn34.Visible = true; - this.gridColumn34.VisibleIndex = 18; + this.gridColumn34.VisibleIndex = 19; this.gridColumn34.Width = 201; // // gridColumn35 @@ -759,7 +763,7 @@ namespace MES.Form this.gridColumn35.FieldName = "productcode"; this.gridColumn35.Name = "gridColumn35"; this.gridColumn35.Visible = true; - this.gridColumn35.VisibleIndex = 19; + this.gridColumn35.VisibleIndex = 20; this.gridColumn35.Width = 201; // // gridColumn36 @@ -776,7 +780,7 @@ namespace MES.Form this.gridColumn37.Name = "gridColumn37"; this.gridColumn37.OptionsColumn.AllowEdit = false; this.gridColumn37.Visible = true; - this.gridColumn37.VisibleIndex = 20; + this.gridColumn37.VisibleIndex = 21; this.gridColumn37.Width = 201; // // repositoryItemtxtproductid @@ -1123,6 +1127,15 @@ namespace MES.Form this.layoutControlItem14.Text = "备注"; this.layoutControlItem14.TextSize = new System.Drawing.Size(48, 14); // + // gridColumn38 + // + this.gridColumn38.Caption = "明细单号"; + this.gridColumn38.FieldName = "saledetailcode"; + this.gridColumn38.Name = "gridColumn38"; + this.gridColumn38.OptionsColumn.AllowEdit = false; + this.gridColumn38.Visible = true; + this.gridColumn38.VisibleIndex = 0; + // // Frmsale // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); @@ -1299,5 +1312,6 @@ namespace MES.Form private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemDel; private DevExpress.XtraEditors.Repository.RepositoryItemGridLookUpEdit repositoryItemGridLookUpEdit1; private DevExpress.XtraGrid.Views.Grid.GridView repositoryItemGridLookUpEdit1View; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn38; } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmsaledetail.cs b/WinformGeneralDeveloperFrame/Form/Frmsaledetail.cs deleted file mode 100644 index 0dc2835..0000000 --- a/WinformGeneralDeveloperFrame/Form/Frmsaledetail.cs +++ /dev/null @@ -1,277 +0,0 @@ -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 deleted file mode 100644 index e670c9e..0000000 --- a/WinformGeneralDeveloperFrame/Form/Frmsaledetail.designer.cs +++ /dev/null @@ -1,1158 +0,0 @@ - -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/FrmsysDataBase.cs b/WinformGeneralDeveloperFrame/FrmsysDataBase.cs index ffb9bb6..7d5ca59 100644 --- a/WinformGeneralDeveloperFrame/FrmsysDataBase.cs +++ b/WinformGeneralDeveloperFrame/FrmsysDataBase.cs @@ -104,7 +104,7 @@ namespace MES.Form { this.Close(); } - private bool CheckInput() + private bool CheckInput() { if (string.IsNullOrEmpty(txtConnName.Text)) { diff --git a/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj b/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj index 97f36cb..8ad0563 100644 --- a/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj +++ b/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj @@ -137,6 +137,8 @@ + + @@ -147,6 +149,8 @@ + + @@ -161,6 +165,12 @@ + + Form + + + Frmbuyer.cs + Form @@ -173,12 +183,6 @@ Frmdeliversale.cs - - Form - - - Frmdeliversaledetail.cs - Form @@ -197,42 +201,30 @@ FrmproductBOM.cs - - Form - - - FrmproductBOMdetail.cs - Form Frmquotation.cs + + Form + + + Frmrequisition.cs + Form Frmreturnsale.cs - - Form - - - Frmreturnsaledetail.cs - Form Frmsale.cs - - Form - - - Frmsaledetail.cs - Form @@ -395,6 +387,9 @@ BaseForm.cs + + Frmbuyer.cs + Frmcustomer.cs @@ -410,24 +405,18 @@ FrmproductBOM.cs - - FrmproductBOMdetail.cs - Frmquotation.cs + + Frmrequisition.cs + Frmreturnsale.cs - - Frmreturnsaledetail.cs - Frmsale.cs - - Frmsaledetail.cs - Frmstock.cs