From e00d2648d77cd3d42390bd018870f7e50175f418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=AF=20=E7=8E=8B?= <648428741@qq.com> Date: Tue, 1 Jun 2021 17:31:40 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=80=E5=94=AE=E5=87=BA=E8=B4=A7=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vs/WinformGeneralDeveloperFrame/v16/.suo | Bin 522752 -> 522752 bytes WinformGeneralDeveloperFrame/DB/MESDB.cs | 3 +- .../Entity/deliversaleInfo.cs | 46 + .../Entity/deliversaledetailInfo.cs | 49 + .../Form/Frmdeliversale.cs | 363 +++++++ .../Form/Frmdeliversale.designer.cs | 949 ++++++++++++++++++ .../Form/Frmdeliversale.resx | 123 +++ .../Form/Frmdeliversaledetail.cs | 194 ++++ .../Form/Frmdeliversaledetail.designer.cs | 680 +++++++++++++ WinformGeneralDeveloperFrame/Form/Frmsale.cs | 45 +- .../Form/Frmsale.designer.cs | 1 + .../Properties/licenses.licx | 47 +- .../WinformGeneralDeveloperFrame.csproj | 17 + 13 files changed, 2469 insertions(+), 48 deletions(-) create mode 100644 WinformGeneralDeveloperFrame/Entity/deliversaleInfo.cs create mode 100644 WinformGeneralDeveloperFrame/Entity/deliversaledetailInfo.cs create mode 100644 WinformGeneralDeveloperFrame/Form/Frmdeliversale.cs create mode 100644 WinformGeneralDeveloperFrame/Form/Frmdeliversale.designer.cs create mode 100644 WinformGeneralDeveloperFrame/Form/Frmdeliversale.resx create mode 100644 WinformGeneralDeveloperFrame/Form/Frmdeliversaledetail.cs create mode 100644 WinformGeneralDeveloperFrame/Form/Frmdeliversaledetail.designer.cs diff --git a/.vs/WinformGeneralDeveloperFrame/v16/.suo b/.vs/WinformGeneralDeveloperFrame/v16/.suo index 3370350da30baa609a523102566e0147b883be9a..5bccf4120a525e222ea3b90a23c8113458bdc69b 100644 GIT binary patch delta 25521 zcmeIac|c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wy)!{8vL%l)?)&jb`}>Vd zPJZWbbjX;-Q=ge2LTb%U-ua|^sqrQ>sxea+YmV{#NA>u|3QU#0U9C?+xnrH1$sRSu z(zDl;KQ$Qm$cOF6HTyn2zttyAXL7?)r)tfl6o%{A11s=Zvk=Yx-x@BK!)0Vd4U!j7xIXLw)we}iv849Vssj1UV`?SG zy|1@3{YGe)g4wnT-_ULS^bS1u3#>PTW@#>~cRR3PBRa$VM+!5e=4(g&r4ee$k>Bf~ zW~Y-Hz9Pt+X5$~U-TL4^)TUj3h6NtdM|U>noHo|^+W$x6ijbX$V)2*K+?wqvOUv)|iL9!<1UZ&w1wsd5zm*u~mFBuw=g-_vdD+d8%TmK(7{7$Vj?dPqTWFER`#YX&-6l;uU zvKvQUiRRK2>jOM*8J2!e>^i&bwvW1613f)fvT7R-YAS;8eZmTZ5 saleInfo { get; set; } - public virtual DbSet saledetailInfo { get; set; } + public virtual DbSet deliversaleInfo { get; set; } + public virtual DbSet deliversaledetailInfo { get; set; } } } \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/deliversaleInfo.cs b/WinformGeneralDeveloperFrame/Entity/deliversaleInfo.cs new file mode 100644 index 0000000..5339352 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Entity/deliversaleInfo.cs @@ -0,0 +1,46 @@ +using WinformGeneralDeveloperFrame.Commons; + +namespace MES.Entity +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.DataAnnotations; + using System.ComponentModel.DataAnnotations.Schema; + using System.Data.Entity.Spatial; + + [Table("deliversale")] + public partial class deliversaleInfo + { + ///id + [ModelBindControl("txtid")] + public int id{set;get;} + ///客户 + [ModelBindControl("txtcustomerid")] + public int customerid{set;get;} + ///客户编号 + [ModelBindControl("txtcustomercode")] + public string customercode{set;get;} + ///出货日期 + [ModelBindControl("txtdeliverdate")] + public DateTime? deliverdate{set;get;}=DateTime.Now; + ///客户类型 + [ModelBindControl("txtcustomertype")] + public int customertype{set;get;} + ///联系人 + [ModelBindControl("txtcontactuser")] + public int contactuser{set;get;} + ///送货地址 + [ModelBindControl("txtdeliveraddress")] + public string deliveraddress{set;get;} + ///制单人 + [ModelBindControl("txtcreatorId")] + public int creatorId{set;get;} + ///出货单号 + [ModelBindControl("txtdeliversalecode")] + public string deliversalecode{set;get;} + ///备注 + [ModelBindControl("txtremark")] + public string remark{set;get;} + + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Entity/deliversaledetailInfo.cs b/WinformGeneralDeveloperFrame/Entity/deliversaledetailInfo.cs new file mode 100644 index 0000000..49ca7ca --- /dev/null +++ b/WinformGeneralDeveloperFrame/Entity/deliversaledetailInfo.cs @@ -0,0 +1,49 @@ +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("deliversaledetail")] + public partial class deliversaledetailInfo + { + ///id + [ModelBindControl("txtid")] + public int id{set;get;} + ///出货单 + [ModelBindControl("txtdeliversaleid")] + public int deliversaleid{set;get;} + ///销售单号 + [ModelBindControl("txtsalecode")] + public string salecode{set;get;} + ///产品名称 + [ModelBindControl("txtproductname")] + public string productname{set;get;} + ///产品编号 + [ModelBindControl("txtproductcode")] + public string productcode{set;get;} + ///规格型号 + [ModelBindControl("txtproductspec")] + public string productspec{set;get;} + ///仓库 + [ModelBindControl("txtwarehouse")] + public int warehouse{set;get;} + ///出货数量 + [ModelBindControl("txtnumber")] + public decimal number{set;get;} + ///计量单位 + [ModelBindControl("txtunit")] + public int unit{set;get;} + ///出库单号 + [ModelBindControl("txtdeliversalecode")] + public string deliversalecode{set;get;} + ///备注 + [ModelBindControl("txtremark")] + public string remark{set;get;} + + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmdeliversale.cs b/WinformGeneralDeveloperFrame/Form/Frmdeliversale.cs new file mode 100644 index 0000000..d934c00 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmdeliversale.cs @@ -0,0 +1,363 @@ +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 DevExpress.XtraEditors; +using DevExpress.XtraEditors.Repository; +using DevExpress.XtraGrid.Columns; + +namespace MES.Form +{ + public partial class Frmdeliversale : FrmBaseForm + { + private Dictionary fieldDictionary = new Dictionary(); + public Frmdeliversale() + { + InitializeComponent(); + } + private void Frmdeliversale_Load(object sender, EventArgs e) + { + InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new deliversaleInfo(),gridControl1,new string[]{ "txtdeliversalecode" }); + InitSearchDicData(); + repositoryItemGridLookUpEditsalecode.EditValueChanged += RepositoryItemGridLookUpEditsalecode_EditValueChanged; + } + + + /// + /// 数据源初始化 + /// + /// + private void Init() + { + txtcustomerid.Properties.DataSource = GetDataTableUtils.SqlTable("客户"); + repositoryItemtxtcustomerid.DataSource= GetDataTableUtils.SqlTable("客户"); + txtcustomertype.Properties.DataSource = GetDataTableUtils.SqlTable("客户类别"); + repositoryItemtxtcustomertype.DataSource= GetDataTableUtils.SqlTable("客户类别"); + txtcontactuser.Properties.DataSource = GetDataTableUtils.SqlTable("用户"); + repositoryItemtxtcontactuser.DataSource= GetDataTableUtils.SqlTable("用户"); + txtcreatorId.Properties.DataSource = GetDataTableUtils.SqlTable("用户"); + repositoryItemtxtcreatorId.DataSource= GetDataTableUtils.SqlTable("用户"); + + repositoryItemLookUpEditunit.DataSource=GetDataTableUtils.SqlTable("计量单位"); + repositoryItemLookUpEditwarehouse.DataSource = GetDataTableUtils.SqlTable("仓库"); + } + /// + /// 搜索字段 + /// + /// + private void InitSearchDicData() + { + fieldDictionary.Add("客户编号","customercode"); + fieldDictionary.Add("出货日期","deliverdate"); + fieldDictionary.Add("出货单号","deliversalecode"); + } + + public override void InitgrdListDataSource() + { + using (var con=new MESDB()) + { + grdList.DataSource=con.deliversaleInfo.ToList(); + } + Init(); + } + /// + /// 字段为空校验 + /// + /// + public override bool CheckInput() + { + if(string.IsNullOrEmpty(txtcustomerid.EditValue.ToString())) + { + "客户不能为空".ShowWarning(); + txtcustomerid.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtcustomercode.EditValue.ToString())) + { + "客户编号不能为空".ShowWarning(); + txtcustomercode.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtdeliverdate.EditValue.ToString())) + { + "出货日期不能为空".ShowWarning(); + txtdeliverdate.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtcustomertype.EditValue.ToString())) + { + "客户类型不能为空".ShowWarning(); + txtcustomertype.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtcontactuser.EditValue.ToString())) + { + "联系人不能为空".ShowWarning(); + txtcontactuser.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtdeliveraddress.EditValue.ToString())) + { + "送货地址不能为空".ShowWarning(); + txtdeliveraddress.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtcreatorId.EditValue.ToString())) + { + "制单人不能为空".ShowWarning(); + txtcreatorId.Focus(); + return false; + } + return true; + } + /// + /// 保存 + /// + /// + public override bool SaveFunction() + { + 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 + { + deliversaleInfo info= (deliversaleInfo)this.ControlDataToModel(new deliversaleInfo()); + using (var db = new MESDB()) + { + using (var tran =db.Database.BeginTransaction()) + { + try + { + Dictionary> dic = + dt.GetDataTableData(); + if (info.id == 0)//新增 + { + info.deliversalecode = code; + db.deliversaleInfo.Add(info); + db.SaveChanges(); + txtid.Text = info.id.ToString(); + txtdeliversalecode.Text = code; + if (dt != null) + { + List detaiListAdd = + dic["Add"]; + detaiListAdd.ForEach(a => + { + a.deliversalecode = info.deliversalecode; + a.deliversaleid = info.id; + }); + db.deliversaledetailInfo.AddRange(detaiListAdd); + db.SaveChanges(); + } + } + else //更新 + { + db.Entry(info).State = EntityState.Modified; + db.SaveChanges(); + if (dt != null) + { + List detaiListAdd = + dic["Add"]; + detaiListAdd.ForEach(a => + { + a.deliversalecode = info.deliversalecode; + a.deliversaleid = info.id; + }); + db.deliversaledetailInfo.AddRange(detaiListAdd); + + List detaiListEdit = + dic["Edit"]; + detaiListEdit.ForEach((a) => + { + a.deliversalecode = info.deliversalecode; + 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 + { + deliversaleInfo info = (deliversaleInfo)this.ControlDataToModel(new deliversaleInfo()); + using (var db = new MESDB()) + { + db.Entry(info).State=EntityState.Deleted; + db.Database.ExecuteSqlCommand($"delete from deliversaledetail where deliversaleid={info.id}"); + 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.deliversaleInfo.SqlQuery("select * from deliversale").ToList(); + } + else + { + grdList.DataSource = db.deliversaleInfo.SqlQuery($"select * from deliversale where {sql}").ToList(); + } + } + } + } + + public override void EditFunction() + { + txtcustomerid.ReadOnly = true; + } + + public override void AddFunction() + { + gridControl1.DataSource = new List().ToDataTable(); + } + + public override void gridControlMouseDoubleClickFunction(object sender, EventArgs e) + { + Initresgridcontrollookupedit(); + deliversaleInfo info = grdListView.GetFocusedRow() as deliversaleInfo; + if (info != null) + { + using (var db = new MESDB()) + { + gridControl1.DataSource = db.deliversaledetailInfo.Where(p => p.deliversaleid == info.id).ToList().ToDataTable(); + gridView1.BestFitColumns(); + } + } + } + + private void RepositoryItemGridLookUpEditsalecode_EditValueChanged(object sender, EventArgs e) + { + using (var db = new MESDB()) + { + GridLookUpEdit look = sender as GridLookUpEdit; + saledetailInfo detailInfo = look.Properties.View.GetFocusedDataRow().RowToModel(); + gridView1.GetFocusedDataRow()["productname"] =db.productInfo.Where(p=>p.id== detailInfo.productid).ToList().First().productname ; + gridView1.GetFocusedDataRow()["productcode"] = detailInfo.productcode; + gridView1.GetFocusedDataRow()["productspec"] = detailInfo.productspec; + gridView1.GetFocusedDataRow()["unit"] = detailInfo.unit; + gridView1.GetFocusedDataRow()["warehouse"] = detailInfo.warehouse; + gridView1.GetFocusedDataRow()["number"] = detailInfo.salenumber; + } + } + private void Initresgridcontrollookupedit() + { + GridColumn col1 = new GridColumn() { Caption = "销售单号", FieldName = "salecode", Visible = true }; + + GridColumn col7 = new GridColumn() { Caption = "产品名称", FieldName = "productid", Visible = true }; + RepositoryItemLookUpEdit resItemLookUpEdit = new RepositoryItemLookUpEdit(); + resItemLookUpEdit.DataSource = GetDataTableUtils.SqlTable("产品"); + resItemLookUpEdit.DisplayMember = "Name"; + resItemLookUpEdit.ValueMember = "ID"; + col7.ColumnEdit = resItemLookUpEdit; + GridColumn col2 = new GridColumn() { Caption = "规格型号", FieldName = "productspec", Visible = true }; + GridColumn col3 = new GridColumn() { Caption = "数量", FieldName = "salenumber", Visible = true }; + GridColumn col31 = new GridColumn() { Caption = "计量单位", FieldName = "unit", Visible = true }; + RepositoryItemLookUpEdit resItemLookUpEditunit = new RepositoryItemLookUpEdit(); + resItemLookUpEditunit.DataSource = GetDataTableUtils.SqlTable("计量单位"); + resItemLookUpEditunit.DisplayMember = "Name"; + resItemLookUpEditunit.ValueMember = "ID"; + col31.ColumnEdit = resItemLookUpEditunit; + + GridColumn col5 = new GridColumn() { Caption = "单价", FieldName = "unitprice", Visible = true }; + GridColumn col6 = new GridColumn() { Caption = "金额", FieldName = "money", Visible = true }; + repositoryItemGridLookUpEdit1View.Columns.AddRange(new GridColumn[] {col1, col7, col2, col3,col31, col5, col6 }); + } + private void gridView1_ValidateRow(object sender, DevExpress.XtraGrid.Views.Base.ValidateRowEventArgs e) + { + + } + + private void toolStripMenuItemAdd_Click(object sender, EventArgs e) + { + gridView1.AddNewRow(); + } + private void toolStripMenuItemDel_Click(object sender, EventArgs e) + { + gridView1.DeleteRow(gridView1.FocusedRowHandle); + } + + private void txtcustomerid_EditValueChanged(object sender, EventArgs e) + { + Initresgridcontrollookupedit(); + using (var db = new MESDB()) + { + + if (txtcustomerid.EditValue != null) + { + int id = txtcustomerid.EditValue.ToString().ToInt16(); + repositoryItemGridLookUpEditsalecode.DataSource = + db.Database.SqlQuery($"SELECT st.* FROM sale s left join saledetail st on s.id = st.saleid where s.customerid = {id}").ToDataTable(); + customerInfo customer = db.customerInfo.Where(p => p.id == id) + .First(); + if (customer != null) + { + txtcustomercode.Text = customer.customercode; + txtcustomertype.EditValue = customer.customertype; + txtcontactuser.EditValue = customer.contactuser; + txtdeliveraddress.Text = customer.address; + } + } + } + } + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmdeliversale.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmdeliversale.designer.cs new file mode 100644 index 0000000..b9022a7 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmdeliversale.designer.cs @@ -0,0 +1,949 @@ + +using DevExpress.XtraEditors; +using DevExpress.XtraLayout; +using DevExpress.XtraTab; + +namespace MES.Form +{ + partial class Frmdeliversale + { + /// + /// 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.repositoryItemtxtcustomerid = 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.repositoryItemtxtcustomertype = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxtcontactuser = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemtxtcreatorId = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); + this.gridColumn9 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn10 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); + this.tabDataList = new DevExpress.XtraTab.XtraTabPage(); + this.grdList = new DevExpress.XtraGrid.GridControl(); + this.grdListView = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.tabDataDetail = new DevExpress.XtraTab.XtraTabPage(); + this.panelControl2 = new DevExpress.XtraEditors.PanelControl(); + this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); + this.gridControl1 = new DevExpress.XtraGrid.GridControl(); + this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.toolStripMenuItemAdd = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItemDel = new System.Windows.Forms.ToolStripMenuItem(); + this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.gridColumn11 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn13 = new DevExpress.XtraGrid.Columns.GridColumn(); + 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.gridColumn20 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn21 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.repositoryItemTextEditsalecode = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); + this.txtid = new DevExpress.XtraEditors.TextEdit(); + this.txtcustomerid = new DevExpress.XtraEditors.LookUpEdit(); + this.txtcustomercode = new DevExpress.XtraEditors.TextEdit(); + this.txtdeliverdate = new DevExpress.XtraEditors.DateEdit(); + this.txtcustomertype = new DevExpress.XtraEditors.LookUpEdit(); + this.txtcontactuser = new DevExpress.XtraEditors.LookUpEdit(); + this.txtdeliveraddress = new DevExpress.XtraEditors.TextEdit(); + this.txtcreatorId = new DevExpress.XtraEditors.LookUpEdit(); + this.txtdeliversalecode = new DevExpress.XtraEditors.TextEdit(); + this.txtremark = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); + this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomerid)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomertype)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcontactuser)).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.gridControl1)).BeginInit(); + this.contextMenuStrip1.SuspendLayout(); + ((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.repositoryItemTextEditsalecode)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomerid.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomercode.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliverdate.Properties.CalendarTimeProperties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliverdate.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomertype.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcontactuser.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliveraddress.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreatorId.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliversalecode.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); + this.SuspendLayout(); + // + // gridColumn1 + // + this.gridColumn1.Caption = "id"; + this.gridColumn1.FieldName = "id"; + this.gridColumn1.Name = "gridColumn1"; + // + // gridColumn2 + // + this.gridColumn2.Caption = "客户"; + this.gridColumn2.ColumnEdit = this.repositoryItemtxtcustomerid; + this.gridColumn2.FieldName = "customerid"; + this.gridColumn2.Name = "gridColumn2"; + this.gridColumn2.Visible = true; + this.gridColumn2.VisibleIndex = 0; + this.gridColumn2.Width = 201; + // + // repositoryItemtxtcustomerid + // + this.repositoryItemtxtcustomerid.AutoHeight = false; + this.repositoryItemtxtcustomerid.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtcustomerid.DisplayMember = "Name"; + this.repositoryItemtxtcustomerid.Name = "repositoryItemtxtcustomerid"; + this.repositoryItemtxtcustomerid.ValueMember = "ID"; + // + // gridColumn3 + // + this.gridColumn3.Caption = "客户编号"; + this.gridColumn3.FieldName = "customercode"; + this.gridColumn3.Name = "gridColumn3"; + this.gridColumn3.Visible = true; + this.gridColumn3.VisibleIndex = 1; + this.gridColumn3.Width = 201; + // + // gridColumn4 + // + this.gridColumn4.Caption = "出货日期"; + this.gridColumn4.DisplayFormat.FormatString = "G"; + this.gridColumn4.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; + this.gridColumn4.FieldName = "deliverdate"; + this.gridColumn4.Name = "gridColumn4"; + this.gridColumn4.Visible = true; + this.gridColumn4.VisibleIndex = 2; + this.gridColumn4.Width = 201; + // + // gridColumn5 + // + this.gridColumn5.Caption = "客户类型"; + this.gridColumn5.ColumnEdit = this.repositoryItemtxtcustomertype; + this.gridColumn5.FieldName = "customertype"; + this.gridColumn5.Name = "gridColumn5"; + this.gridColumn5.Visible = true; + this.gridColumn5.VisibleIndex = 3; + this.gridColumn5.Width = 201; + // + // repositoryItemtxtcustomertype + // + this.repositoryItemtxtcustomertype.AutoHeight = false; + this.repositoryItemtxtcustomertype.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtcustomertype.DisplayMember = "Name"; + this.repositoryItemtxtcustomertype.Name = "repositoryItemtxtcustomertype"; + this.repositoryItemtxtcustomertype.ValueMember = "ID"; + // + // gridColumn6 + // + this.gridColumn6.Caption = "联系人"; + this.gridColumn6.ColumnEdit = this.repositoryItemtxtcontactuser; + this.gridColumn6.FieldName = "contactuser"; + this.gridColumn6.Name = "gridColumn6"; + this.gridColumn6.Visible = true; + this.gridColumn6.VisibleIndex = 4; + this.gridColumn6.Width = 201; + // + // repositoryItemtxtcontactuser + // + this.repositoryItemtxtcontactuser.AutoHeight = false; + this.repositoryItemtxtcontactuser.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemtxtcontactuser.DisplayMember = "Name"; + this.repositoryItemtxtcontactuser.Name = "repositoryItemtxtcontactuser"; + this.repositoryItemtxtcontactuser.ValueMember = "ID"; + // + // gridColumn7 + // + this.gridColumn7.Caption = "送货地址"; + this.gridColumn7.FieldName = "deliveraddress"; + this.gridColumn7.Name = "gridColumn7"; + this.gridColumn7.Visible = true; + this.gridColumn7.VisibleIndex = 5; + this.gridColumn7.Width = 201; + // + // gridColumn8 + // + this.gridColumn8.Caption = "制单人"; + this.gridColumn8.ColumnEdit = this.repositoryItemtxtcreatorId; + this.gridColumn8.FieldName = "creatorId"; + this.gridColumn8.Name = "gridColumn8"; + this.gridColumn8.Visible = true; + this.gridColumn8.VisibleIndex = 6; + this.gridColumn8.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"; + // + // gridColumn9 + // + this.gridColumn9.Caption = "出货单号"; + this.gridColumn9.FieldName = "deliversalecode"; + this.gridColumn9.Name = "gridColumn9"; + this.gridColumn9.Visible = true; + this.gridColumn9.VisibleIndex = 7; + this.gridColumn9.Width = 201; + // + // gridColumn10 + // + this.gridColumn10.Caption = "备注"; + this.gridColumn10.FieldName = "remark"; + this.gridColumn10.Name = "gridColumn10"; + this.gridColumn10.Visible = true; + this.gridColumn10.VisibleIndex = 8; + this.gridColumn10.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.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.gridControl1); + this.layoutControl1.Controls.Add(this.txtid); + this.layoutControl1.Controls.Add(this.txtcustomerid); + this.layoutControl1.Controls.Add(this.txtcustomercode); + this.layoutControl1.Controls.Add(this.txtdeliverdate); + this.layoutControl1.Controls.Add(this.txtcustomertype); + this.layoutControl1.Controls.Add(this.txtcontactuser); + this.layoutControl1.Controls.Add(this.txtdeliveraddress); + this.layoutControl1.Controls.Add(this.txtcreatorId); + this.layoutControl1.Controls.Add(this.txtdeliversalecode); + 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"; + // + // gridControl1 + // + this.gridControl1.ContextMenuStrip = this.contextMenuStrip1; + this.gridControl1.Location = new System.Drawing.Point(12, 156); + this.gridControl1.MainView = this.gridView1; + this.gridControl1.Name = "gridControl1"; + this.gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { + this.repositoryItemLookUpEditwarehouse, + this.repositoryItemLookUpEditunit, + this.repositoryItemTextEditsalecode, + this.repositoryItemGridLookUpEditsalecode}); + this.gridControl1.Size = new System.Drawing.Size(1266, 565); + this.gridControl1.TabIndex = 11; + this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { + this.gridView1}); + // + // contextMenuStrip1 + // + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.toolStripMenuItemAdd, + this.toolStripMenuItemDel}); + this.contextMenuStrip1.Name = "contextMenuStrip1"; + this.contextMenuStrip1.Size = new System.Drawing.Size(113, 48); + // + // toolStripMenuItemAdd + // + this.toolStripMenuItemAdd.Name = "toolStripMenuItemAdd"; + this.toolStripMenuItemAdd.Size = new System.Drawing.Size(112, 22); + this.toolStripMenuItemAdd.Text = "新增行"; + this.toolStripMenuItemAdd.Click += new System.EventHandler(this.toolStripMenuItemAdd_Click); + // + // toolStripMenuItemDel + // + this.toolStripMenuItemDel.Name = "toolStripMenuItemDel"; + this.toolStripMenuItemDel.Size = new System.Drawing.Size(112, 22); + this.toolStripMenuItemDel.Text = "删除行"; + this.toolStripMenuItemDel.Click += new System.EventHandler(this.toolStripMenuItemDel_Click); + // + // gridView1 + // + this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { + this.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.ColumnAutoWidth = false; + this.gridView1.ValidateRow += new DevExpress.XtraGrid.Views.Base.ValidateRowEventHandler(this.gridView1_ValidateRow); + // + // gridColumn11 + // + this.gridColumn11.Caption = "id"; + this.gridColumn11.FieldName = "id"; + this.gridColumn11.Name = "gridColumn11"; + // + // gridColumn12 + // + this.gridColumn12.Caption = "出货单"; + this.gridColumn12.FieldName = "deliversaleid"; + this.gridColumn12.Name = "gridColumn12"; + // + // gridColumn13 + // + this.gridColumn13.Caption = "销售单号"; + this.gridColumn13.ColumnEdit = this.repositoryItemGridLookUpEditsalecode; + this.gridColumn13.FieldName = "salecode"; + this.gridColumn13.Name = "gridColumn13"; + this.gridColumn13.Visible = true; + this.gridColumn13.VisibleIndex = 0; + this.gridColumn13.Width = 201; + // + // repositoryItemGridLookUpEditsalecode + // + this.repositoryItemGridLookUpEditsalecode.AutoHeight = false; + this.repositoryItemGridLookUpEditsalecode.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.repositoryItemGridLookUpEditsalecode.DisplayMember = "salecode"; + this.repositoryItemGridLookUpEditsalecode.Name = "repositoryItemGridLookUpEditsalecode"; + this.repositoryItemGridLookUpEditsalecode.NullText = ""; + this.repositoryItemGridLookUpEditsalecode.PopupView = this.repositoryItemGridLookUpEdit1View; + this.repositoryItemGridLookUpEditsalecode.ValueMember = "salecode"; + // + // repositoryItemGridLookUpEdit1View + // + this.repositoryItemGridLookUpEdit1View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus; + this.repositoryItemGridLookUpEdit1View.Name = "repositoryItemGridLookUpEdit1View"; + this.repositoryItemGridLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false; + this.repositoryItemGridLookUpEdit1View.OptionsView.ColumnAutoWidth = false; + this.repositoryItemGridLookUpEdit1View.OptionsView.ShowGroupPanel = false; + // + // gridColumn14 + // + this.gridColumn14.Caption = "产品名称"; + this.gridColumn14.FieldName = "productname"; + this.gridColumn14.Name = "gridColumn14"; + this.gridColumn14.OptionsColumn.AllowEdit = false; + this.gridColumn14.Visible = true; + this.gridColumn14.VisibleIndex = 1; + 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 = "产品编号"; + this.gridColumn15.FieldName = "productcode"; + 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 = "productspec"; + 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.repositoryItemLookUpEditwarehouse; + this.gridColumn17.FieldName = "warehouse"; + this.gridColumn17.Name = "gridColumn17"; + this.gridColumn17.OptionsColumn.AllowEdit = false; + this.gridColumn17.Visible = true; + this.gridColumn17.VisibleIndex = 4; + this.gridColumn17.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"; + // + // gridColumn18 + // + this.gridColumn18.Caption = "出货数量"; + this.gridColumn18.FieldName = "number"; + this.gridColumn18.Name = "gridColumn18"; + this.gridColumn18.Visible = true; + this.gridColumn18.VisibleIndex = 5; + this.gridColumn18.Width = 201; + // + // gridColumn19 + // + this.gridColumn19.Caption = "计量单位"; + this.gridColumn19.ColumnEdit = this.repositoryItemLookUpEditunit; + this.gridColumn19.FieldName = "unit"; + this.gridColumn19.Name = "gridColumn19"; + this.gridColumn19.OptionsColumn.AllowEdit = false; + this.gridColumn19.Visible = true; + this.gridColumn19.VisibleIndex = 6; + this.gridColumn19.Width = 201; + // + // gridColumn20 + // + this.gridColumn20.Caption = "出库单号"; + this.gridColumn20.FieldName = "deliversalecode"; + this.gridColumn20.Name = "gridColumn20"; + this.gridColumn20.Visible = true; + this.gridColumn20.VisibleIndex = 7; + this.gridColumn20.Width = 201; + // + // gridColumn21 + // + this.gridColumn21.Caption = "备注"; + this.gridColumn21.FieldName = "remark"; + this.gridColumn21.Name = "gridColumn21"; + this.gridColumn21.Visible = true; + this.gridColumn21.VisibleIndex = 8; + this.gridColumn21.Width = 201; + // + // repositoryItemTextEditsalecode + // + this.repositoryItemTextEditsalecode.AutoHeight = false; + this.repositoryItemTextEditsalecode.Name = "repositoryItemTextEditsalecode"; + // + // txtid + // + this.txtid.Location = new System.Drawing.Point(63, 12); + this.txtid.Name = "txtid"; + this.txtid.Size = new System.Drawing.Size(580, 20); + this.txtid.StyleController = this.layoutControl1; + this.txtid.TabIndex = 1; + // + // txtcustomerid + // + this.txtcustomerid.EditValue = ""; + this.txtcustomerid.Location = new System.Drawing.Point(63, 36); + this.txtcustomerid.Name = "txtcustomerid"; + this.txtcustomerid.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtcustomerid.Properties.DisplayMember = "Name"; + this.txtcustomerid.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; + this.txtcustomerid.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + this.txtcustomerid.Properties.ValueMember = "ID"; + this.txtcustomerid.Size = new System.Drawing.Size(580, 20); + this.txtcustomerid.StyleController = this.layoutControl1; + this.txtcustomerid.TabIndex = 2; + this.txtcustomerid.EditValueChanged += new System.EventHandler(this.txtcustomerid_EditValueChanged); + // + // txtcustomercode + // + this.txtcustomercode.Location = new System.Drawing.Point(698, 36); + this.txtcustomercode.Name = "txtcustomercode"; + this.txtcustomercode.Size = new System.Drawing.Size(580, 20); + this.txtcustomercode.StyleController = this.layoutControl1; + this.txtcustomercode.TabIndex = 3; + // + // txtdeliverdate + // + this.txtdeliverdate.EditValue = null; + this.txtdeliverdate.ImeMode = System.Windows.Forms.ImeMode.Off; + this.txtdeliverdate.Location = new System.Drawing.Point(698, 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.Size = new System.Drawing.Size(580, 20); + this.txtdeliverdate.StyleController = this.layoutControl1; + this.txtdeliverdate.TabIndex = 4; + // + // txtcustomertype + // + this.txtcustomertype.EditValue = ""; + this.txtcustomertype.Location = new System.Drawing.Point(63, 60); + this.txtcustomertype.Name = "txtcustomertype"; + this.txtcustomertype.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtcustomertype.Properties.DisplayMember = "Name"; + this.txtcustomertype.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; + this.txtcustomertype.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + this.txtcustomertype.Properties.ValueMember = "ID"; + this.txtcustomertype.Size = new System.Drawing.Size(580, 20); + this.txtcustomertype.StyleController = this.layoutControl1; + this.txtcustomertype.TabIndex = 5; + // + // txtcontactuser + // + this.txtcontactuser.EditValue = ""; + this.txtcontactuser.Location = new System.Drawing.Point(63, 84); + this.txtcontactuser.Name = "txtcontactuser"; + this.txtcontactuser.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txtcontactuser.Properties.DisplayMember = "Name"; + this.txtcontactuser.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; + this.txtcontactuser.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; + this.txtcontactuser.Properties.ValueMember = "ID"; + this.txtcontactuser.Size = new System.Drawing.Size(580, 20); + this.txtcontactuser.StyleController = this.layoutControl1; + this.txtcontactuser.TabIndex = 6; + // + // txtdeliveraddress + // + this.txtdeliveraddress.Location = new System.Drawing.Point(698, 84); + this.txtdeliveraddress.Name = "txtdeliveraddress"; + this.txtdeliveraddress.Size = new System.Drawing.Size(580, 20); + this.txtdeliveraddress.StyleController = this.layoutControl1; + this.txtdeliveraddress.TabIndex = 7; + // + // txtcreatorId + // + this.txtcreatorId.EditValue = ""; + this.txtcreatorId.Location = new System.Drawing.Point(63, 108); + 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(1215, 20); + this.txtcreatorId.StyleController = this.layoutControl1; + this.txtcreatorId.TabIndex = 8; + // + // txtdeliversalecode + // + this.txtdeliversalecode.Location = new System.Drawing.Point(698, 12); + this.txtdeliversalecode.Name = "txtdeliversalecode"; + this.txtdeliversalecode.Size = new System.Drawing.Size(580, 20); + this.txtdeliversalecode.StyleController = this.layoutControl1; + this.txtdeliversalecode.TabIndex = 9; + // + // txtremark + // + this.txtremark.Location = new System.Drawing.Point(63, 132); + this.txtremark.Name = "txtremark"; + this.txtremark.Size = new System.Drawing.Size(1215, 20); + this.txtremark.StyleController = this.layoutControl1; + this.txtremark.TabIndex = 10; + // + // layoutControlGroup1 + // + this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; + this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; + this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { + this.layoutControlItem1, + this.layoutControlItem2, + this.layoutControlItem4, + this.layoutControlItem6, + this.layoutControlItem8, + this.layoutControlItem10, + this.layoutControlItem11, + this.layoutControlItem3, + this.layoutControlItem5, + this.layoutControlItem7, + this.layoutControlItem9}); + 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(48, 14); + // + // layoutControlItem2 + // + this.layoutControlItem2.Control = this.txtcustomerid; + this.layoutControlItem2.CustomizationFormText = "客户"; + this.layoutControlItem2.Location = new System.Drawing.Point(0, 24); + this.layoutControlItem2.Name = "layoutControlItem2"; + this.layoutControlItem2.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem2.Text = "客户"; + this.layoutControlItem2.TextSize = new System.Drawing.Size(48, 14); + // + // layoutControlItem4 + // + this.layoutControlItem4.Control = this.txtdeliverdate; + this.layoutControlItem4.CustomizationFormText = "出货日期"; + this.layoutControlItem4.Location = new System.Drawing.Point(635, 48); + this.layoutControlItem4.Name = "layoutControlItem4"; + this.layoutControlItem4.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem4.Text = "出货日期"; + this.layoutControlItem4.TextSize = new System.Drawing.Size(48, 14); + // + // layoutControlItem6 + // + this.layoutControlItem6.Control = this.txtcontactuser; + this.layoutControlItem6.CustomizationFormText = "联系人"; + this.layoutControlItem6.Location = new System.Drawing.Point(0, 72); + this.layoutControlItem6.Name = "layoutControlItem6"; + this.layoutControlItem6.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem6.Text = "联系人"; + this.layoutControlItem6.TextSize = new System.Drawing.Size(48, 14); + // + // layoutControlItem8 + // + this.layoutControlItem8.Control = this.txtcreatorId; + this.layoutControlItem8.CustomizationFormText = "制单人"; + this.layoutControlItem8.Location = new System.Drawing.Point(0, 96); + this.layoutControlItem8.Name = "layoutControlItem8"; + this.layoutControlItem8.Size = new System.Drawing.Size(1270, 24); + this.layoutControlItem8.Text = "制单人"; + this.layoutControlItem8.TextSize = new System.Drawing.Size(48, 14); + // + // layoutControlItem10 + // + this.layoutControlItem10.Control = this.txtremark; + this.layoutControlItem10.CustomizationFormText = "备注"; + this.layoutControlItem10.Location = new System.Drawing.Point(0, 120); + this.layoutControlItem10.Name = "layoutControlItem10"; + this.layoutControlItem10.Size = new System.Drawing.Size(1270, 24); + this.layoutControlItem10.Text = "备注"; + this.layoutControlItem10.TextSize = new System.Drawing.Size(48, 14); + // + // layoutControlItem11 + // + this.layoutControlItem11.Control = this.gridControl1; + this.layoutControlItem11.Location = new System.Drawing.Point(0, 144); + this.layoutControlItem11.Name = "layoutControlItem11"; + this.layoutControlItem11.Size = new System.Drawing.Size(1270, 569); + this.layoutControlItem11.TextSize = new System.Drawing.Size(0, 0); + this.layoutControlItem11.TextVisible = false; + // + // layoutControlItem3 + // + this.layoutControlItem3.Control = this.txtcustomercode; + this.layoutControlItem3.CustomizationFormText = "客户编号"; + this.layoutControlItem3.Location = new System.Drawing.Point(635, 24); + this.layoutControlItem3.Name = "layoutControlItem3"; + this.layoutControlItem3.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem3.Text = "客户编号"; + this.layoutControlItem3.TextSize = new System.Drawing.Size(48, 14); + // + // layoutControlItem5 + // + this.layoutControlItem5.Control = this.txtcustomertype; + this.layoutControlItem5.CustomizationFormText = "客户类型"; + this.layoutControlItem5.Location = new System.Drawing.Point(0, 48); + this.layoutControlItem5.Name = "layoutControlItem5"; + this.layoutControlItem5.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem5.Text = "客户类型"; + this.layoutControlItem5.TextSize = new System.Drawing.Size(48, 14); + // + // layoutControlItem7 + // + this.layoutControlItem7.Control = this.txtdeliveraddress; + this.layoutControlItem7.CustomizationFormText = "送货地址"; + this.layoutControlItem7.Location = new System.Drawing.Point(635, 72); + this.layoutControlItem7.Name = "layoutControlItem7"; + this.layoutControlItem7.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem7.Text = "送货地址"; + this.layoutControlItem7.TextSize = new System.Drawing.Size(48, 14); + // + // layoutControlItem9 + // + this.layoutControlItem9.Control = this.txtdeliversalecode; + this.layoutControlItem9.CustomizationFormText = "出货单号"; + this.layoutControlItem9.Location = new System.Drawing.Point(635, 0); + this.layoutControlItem9.Name = "layoutControlItem9"; + this.layoutControlItem9.Size = new System.Drawing.Size(635, 24); + this.layoutControlItem9.Text = "出货单号"; + this.layoutControlItem9.TextSize = new System.Drawing.Size(48, 14); + // + // Frmdeliversale + // + 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 = "Frmdeliversale"; + this.Text = "销售出货单"; + this.Load += new System.EventHandler(this.Frmdeliversale_Load); + this.Controls.SetChildIndex(this.xtraTabControl1, 0); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomerid)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcustomertype)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.repositoryItemtxtcontactuser)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.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.gridControl1)).EndInit(); + this.contextMenuStrip1.ResumeLayout(false); + ((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.repositoryItemTextEditsalecode)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtid.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomerid.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomercode.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliverdate.Properties.CalendarTimeProperties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliverdate.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcustomertype.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcontactuser.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliveraddress.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtcreatorId.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtdeliversalecode.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtremark.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); + 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.XtraEditors.TextEdit txtid; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtcustomerid; + + private DevExpress.XtraEditors.LookUpEdit txtcustomerid; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtcustomercode; + /////////////////////////////// + private DevExpress.XtraEditors.DateEdit txtdeliverdate; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtcustomertype; + + private DevExpress.XtraEditors.LookUpEdit txtcustomertype; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtcontactuser; + + private DevExpress.XtraEditors.LookUpEdit txtcontactuser; + /////////////////////////////// + private DevExpress.XtraEditors.TextEdit txtdeliveraddress; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemtxtcreatorId; + + private DevExpress.XtraEditors.LookUpEdit txtcreatorId; + /////////////////////////////// + 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.XtraGrid.GridControl gridControl1; + private DevExpress.XtraGrid.Views.Grid.GridView gridView1; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn11; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn12; + private DevExpress.XtraGrid.Columns.GridColumn 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 LayoutControlItem layoutControlItem11; + private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemAdd; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemDel; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemLookUpEditwarehouse; + private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItemLookUpEditunit; + private DevExpress.XtraEditors.Repository.RepositoryItemTextEdit repositoryItemTextEditsalecode; + private DevExpress.XtraEditors.Repository.RepositoryItemGridLookUpEdit repositoryItemGridLookUpEditsalecode; + private DevExpress.XtraGrid.Views.Grid.GridView repositoryItemGridLookUpEdit1View; + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmdeliversale.resx b/WinformGeneralDeveloperFrame/Form/Frmdeliversale.resx new file mode 100644 index 0000000..ad53752 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmdeliversale.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmdeliversaledetail.cs b/WinformGeneralDeveloperFrame/Form/Frmdeliversaledetail.cs new file mode 100644 index 0000000..2b40d84 --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmdeliversaledetail.cs @@ -0,0 +1,194 @@ +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 Frmdeliversaledetail : FrmBaseForm + { + private Dictionary fieldDictionary = new Dictionary(); + public Frmdeliversaledetail() + { + InitializeComponent(); + } + private void Frmdeliversaledetail_Load(object sender, EventArgs e) + { + + InitFrom(xtraTabControl1,grdList,grdListView,new LayoutControlGroup[]{layoutControlGroup1},new deliversaledetailInfo()); + InitSearchDicData(); + } + /// + /// 数据源初始化 + /// + /// + private void Init() + { + + + + + txtwarehouse.Properties.DataSource = GetDataTableUtils.SqlTable("仓库"); + repositoryItemtxtwarehouse.DataSource= GetDataTableUtils.SqlTable("仓库"); + + + } + /// + /// 搜索字段 + /// + /// + private void InitSearchDicData() + { + fieldDictionary.Add("销售单号","salecode"); + fieldDictionary.Add("出库单号","deliversalecode"); + fieldDictionary.Add("备注","remark"); + } + + public override void InitgrdListDataSource() + { + using (var con=new MESDB())/// + { + grdList.DataSource=con.deliversaledetailInfo.ToList(); + } + Init(); + } + /// + /// 字段为空校验 + /// + /// + public override bool CheckInput() + { + if(string.IsNullOrEmpty(txtdeliversaleid.EditValue.ToString())) + { + "出货单不能为空".ShowWarning(); + txtdeliversaleid.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtsalecode.EditValue.ToString())) + { + "销售单号不能为空".ShowWarning(); + txtsalecode.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtproductname.EditValue.ToString())) + { + "产品名称不能为空".ShowWarning(); + txtproductname.Focus(); + return false; + } + if(string.IsNullOrEmpty(txtproductcode.EditValue.ToString())) + { + "产品编号不能为空".ShowWarning(); + txtproductcode.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(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(); + return false; + } + return true; + } + /// + /// 保存 + /// + /// + public override bool SaveFunction() + { + try + { + deliversaledetailInfo info= (deliversaledetailInfo)this.ControlDataToModel(new deliversaledetailInfo()); + using (var db = new MESDB()) + { + db.deliversaledetailInfo.AddOrUpdate(info); + db.SaveChanges(); + } + } + catch (Exception ex) + { + ex.Message.ShowError(); + return false; + } + return true; + } + /// + /// 删除 + /// + /// + public override bool DelFunction() + { + try + { + deliversaledetailInfo info = (deliversaledetailInfo)this.ControlDataToModel(new deliversaledetailInfo()); + 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.deliversaledetailInfo.SqlQuery("select * from deliversaledetail").ToList(); + } + else + { + grdList.DataSource = db.deliversaledetailInfo.SqlQuery($"select * from deliversaledetail where {sql}").ToList(); + } + } + } + } + } +} \ No newline at end of file diff --git a/WinformGeneralDeveloperFrame/Form/Frmdeliversaledetail.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmdeliversaledetail.designer.cs new file mode 100644 index 0000000..47993fd --- /dev/null +++ b/WinformGeneralDeveloperFrame/Form/Frmdeliversaledetail.designer.cs @@ -0,0 +1,680 @@ + +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/Frmsale.cs b/WinformGeneralDeveloperFrame/Form/Frmsale.cs index 887edb3..68b8eb7 100644 --- a/WinformGeneralDeveloperFrame/Form/Frmsale.cs +++ b/WinformGeneralDeveloperFrame/Form/Frmsale.cs @@ -22,7 +22,7 @@ namespace MES.Form public partial class Frmsale : FrmBaseForm { private Dictionary fieldDictionary = new Dictionary(); - public Frmsale() + public Frmsale()///22 { InitializeComponent(); } @@ -170,7 +170,11 @@ namespace MES.Form { List detaiListAdd = dic["Add"]; - detaiListAdd.ForEach(a => a.saleid = info.id); + detaiListAdd.ForEach(a => + { + a.saleid = info.id; + a.salecode = info.saleordercode; + }); db.saledetailInfo.AddRange(detaiListAdd); db.SaveChanges(); } @@ -183,13 +187,18 @@ namespace MES.Form { List detaiListAdd = dic["Add"]; - detaiListAdd.ForEach(a => a.saleid = info.id); + detaiListAdd.ForEach(a => + { + a.saleid = info.id; + a.salecode = info.saleordercode; + }); db.saledetailInfo.AddRange(detaiListAdd); List detaiListEdit = dic["Edit"]; detaiListEdit.ForEach((a) => { + a.salecode = info.saleordercode; db.Entry(a).State = EntityState.Modified; }); @@ -236,8 +245,10 @@ namespace MES.Form using (var db = new MESDB()) { db.Entry(info).State=EntityState.Deleted; + db.Database.ExecuteSqlCommand($"delete from saledetail where saleid={info.id}"); db.SaveChanges(); } + gridControl1.DataSource = null; } catch (Exception ex) { @@ -269,6 +280,12 @@ namespace MES.Form } } } + + public override void EditFunction() + { + txtcustomerid.ReadOnly = true; + } + public override void gridControlMouseDoubleClickFunction(object sender, EventArgs e) { Initresgridcontrollookupedit(); @@ -326,14 +343,7 @@ namespace MES.Form Initresgridcontrollookupedit(); using (var db = new MESDB()) { - if (db.quotationInfo.ToList().Count > 0&& db.quotationInfo.ToList() - .Where(p => p.customeruser == txtcustomerid.EditValue.ToString().ToInt16()).Count()>0) - { - quotationInfo quotation = db.quotationInfo.ToList() - .Where(p => p.customeruser == txtcustomerid.EditValue.ToString().ToInt16()).First(); - repositoryItemGridLookUpEdit1.DataSource = - db.quotationdetailInfo.Where(p => p.quotationid == quotation.id).ToList(); - } + repositoryItemGridLookUpEdit1.DataSource = db.Database.SqlQuery($"SELECT qt.* FROM quotation q left join quotationdetail qt on q.id = qt.quotationid where q.customerid = {txtcustomerid.EditValue}").ToDataTable(); if (txtcustomerid.EditValue != null) { int id = txtcustomerid.EditValue.ToString().ToInt16(); @@ -350,10 +360,6 @@ namespace MES.Form } } } - //GridColumn col1 = new GridColumn(); - //col1=repositoryItemGridLookUpEdit1View.Columns.AddField("productid"); - //col1.Caption = "产品名称"; - //col1.Visible = true; private void Initresgridcontrollookupedit() { GridColumn col1 = new GridColumn(){Caption = "产品",FieldName = "productid",Visible = false}; @@ -379,15 +385,6 @@ namespace MES.Form gridView1.GetFocusedDataRow()["productid"] = quotationdetail.productid; gridView1.GetFocusedDataRow()["unitprice"] = quotationdetail.unitprice; gridView1.GetFocusedDataRow()["salenumber"] = quotationdetail.number; - //LookUpEdit look = sender as LookUpEdit; - //int quotationid = look.EditValue.ToInt32(); - //quotationdetailInfo product = db.productInfo.Where(p => p.id == productid).FirstOrDefault(); - //DataTable dt = gridControl1.DataSource as DataTable; - //gridView1.GetFocusedDataRow()["spec"] = product.spec; - //gridView1.GetFocusedDataRow()["unit"] = product.unit; - //gridView1.GetFocusedDataRow()["stockid"] = product.warehouse; - //gridView1.GetFocusedDataRow()["productcode"] = product.productcode; - //gridView1.GetFocusedDataRow()["productname"] = product.productname; } } } diff --git a/WinformGeneralDeveloperFrame/Form/Frmsale.designer.cs b/WinformGeneralDeveloperFrame/Form/Frmsale.designer.cs index b9a9b48..a14d2b3 100644 --- a/WinformGeneralDeveloperFrame/Form/Frmsale.designer.cs +++ b/WinformGeneralDeveloperFrame/Form/Frmsale.designer.cs @@ -774,6 +774,7 @@ namespace MES.Form this.gridColumn37.Caption = "销售单号"; this.gridColumn37.FieldName = "salecode"; this.gridColumn37.Name = "gridColumn37"; + this.gridColumn37.OptionsColumn.AllowEdit = false; this.gridColumn37.Visible = true; this.gridColumn37.VisibleIndex = 20; this.gridColumn37.Width = 201; diff --git a/WinformGeneralDeveloperFrame/Properties/licenses.licx b/WinformGeneralDeveloperFrame/Properties/licenses.licx index 1b53e67..b603d48 100644 --- a/WinformGeneralDeveloperFrame/Properties/licenses.licx +++ b/WinformGeneralDeveloperFrame/Properties/licenses.licx @@ -1,29 +1,30 @@ -DevExpress.XtraEditors.DateEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraGrid.GridControl, DevExpress.XtraGrid.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraNavBar.NavBarControl, DevExpress.XtraNavBar.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.Repository.RepositoryItemDateEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.ComboBoxEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.Repository.RepositoryItemTreeListLookUpEdit, DevExpress.XtraTreeList.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.LookUpEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.ProgressBarControl, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.Repository.RepositoryItemSearchLookUpEdit, DevExpress.XtraGrid.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.Repository.RepositoryItemGridLookUpEdit, DevExpress.XtraGrid.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraBars.Ribbon.RibbonControl, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraCharts.ChartControl, DevExpress.XtraCharts.v19.2.UI, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.PopupGalleryEdit, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraTabbedMdi.XtraTabbedMdiManager, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.PictureEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraBars.BarManager, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a DevExpress.XtraEditors.Repository.RepositoryItemComboBox, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraCharts.ChartControl, DevExpress.XtraCharts.v19.2.UI, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.PopupGalleryEdit, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.Repository.RepositoryItemGridLookUpEdit, DevExpress.XtraGrid.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.PictureEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a DevExpress.XtraEditors.CheckEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.DateEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.GridLookUpEdit, DevExpress.XtraGrid.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraGrid.GridControl, DevExpress.XtraGrid.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.Repository.RepositoryItemSearchLookUpEdit, DevExpress.XtraGrid.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.ComboBoxEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.Repository.RepositoryItemTextEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraNavBar.NavBarControl, DevExpress.XtraNavBar.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraBars.BarManager, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraLayout.LayoutControl, DevExpress.XtraLayout.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.TextEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraTreeList.TreeList, DevExpress.XtraTreeList.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a DevExpress.XtraEditors.SearchLookUpEdit, DevExpress.XtraGrid.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.LookUpEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a DevExpress.XtraWizard.WizardControl, DevExpress.XtraWizard.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a DevExpress.XtraEditors.TreeListLookUpEdit, DevExpress.XtraTreeList.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.GridLookUpEdit, DevExpress.XtraGrid.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.ImageComboBoxEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraEditors.TextEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraLayout.LayoutControl, DevExpress.XtraLayout.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a DevExpress.XtraDataLayout.DataLayoutControl, DevExpress.XtraLayout.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a -DevExpress.XtraTreeList.TreeList, DevExpress.XtraTreeList.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraBars.Ribbon.RibbonControl, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.Repository.RepositoryItemTreeListLookUpEdit, DevExpress.XtraTreeList.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.Repository.RepositoryItemDateEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.ProgressBarControl, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraEditors.ImageComboBoxEdit, DevExpress.XtraEditors.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a +DevExpress.XtraTabbedMdi.XtraTabbedMdiManager, DevExpress.XtraBars.v19.2, Version=19.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a diff --git a/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj b/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj index c1e1ee3..0126a05 100644 --- a/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj +++ b/WinformGeneralDeveloperFrame/WinformGeneralDeveloperFrame.csproj @@ -138,6 +138,8 @@ + + @@ -161,6 +163,18 @@ Frmcustomer.cs + + Form + + + Frmdeliversale.cs + + + Form + + + Frmdeliversaledetail.cs + Form @@ -356,6 +370,9 @@ Frmcustomer.cs + + Frmdeliversale.cs + Frmmaterial.cs