From e70362b2c95d25269c650153ce7fc56b883f2631 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期六, 14 十二月 2024 16:52:10 +0800 Subject: [PATCH] 生产退料 --- DevApp/Gs.DevApp/UserControl/UcLookDaa.Designer.cs | 168 +++ DevApp/Gs.DevApp/UserControl/UcLookDaa.cs | 97 + DevApp/Gs.DevApp/DevFrm/QiTa/Frm_MesItemTbl.cs | 389 +++++++ DevApp/Gs.DevApp/Gs.DevApp.csproj.user | 2 DevApp/Gs.DevApp/UserControl/SelectItemTbl.cs | 104 ++ DevApp/Gs.DevApp/DevFrm/BasicData/Frm_MesUnit.cs | 9 DevApp/Gs.DevApp/Gs.DevApp.csproj | 27 DevApp/Gs.DevApp/UserControl/SelectItemTbl.Designer.cs | 289 +++++ DevApp/Gs.DevApp/DevFrm/QiTa/Frm_MesItemTbl.Designer.cs | 1454 +++++++++++++++++++++++++++++ DevApp/Gs.DevApp/DevFrm/QiTa/Frm_MesItemTbl.resx | 120 ++ DevApp/Gs.DevApp/UserControl/SelectItemTbl.resx | 120 ++ DevApp/Gs.DevApp/UserControl/UcLookDaa.resx | 120 ++ DevApp/Gs.DevApp/DevFrm/BasicData/Frm_MesUnit.Designer.cs | 83 13 files changed, 2,933 insertions(+), 49 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/BasicData/Frm_MesUnit.Designer.cs b/DevApp/Gs.DevApp/DevFrm/BasicData/Frm_MesUnit.Designer.cs index fba6798..d2d43df 100644 --- a/DevApp/Gs.DevApp/DevFrm/BasicData/Frm_MesUnit.Designer.cs +++ b/DevApp/Gs.DevApp/DevFrm/BasicData/Frm_MesUnit.Designer.cs @@ -75,12 +75,12 @@ this.pageBar1 = new UserControls.Data.UcPageBar(); this.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage(); this.panel1 = new System.Windows.Forms.Panel(); + this.txt_fcurrentunitid = new Gs.DevApp.UserControl.UcLookUnit(); + this.txt_fbaseunit = new Gs.DevApp.UserControl.UcLookUnit(); + this.txt_newunit = new Gs.DevApp.UserControl.UcLookUnit(); + this.txt_oldunit = new Gs.DevApp.UserControl.UcLookUnit(); this.labelControl11 = new DevExpress.XtraEditors.LabelControl(); this.lbGuid = new System.Windows.Forms.Label(); - this.txt_oldunit = new Gs.DevApp.UserControl.UcLookUnit(); - this.txt_newunit = new Gs.DevApp.UserControl.UcLookUnit(); - this.txt_fbaseunit = new Gs.DevApp.UserControl.UcLookUnit(); - this.txt_fcurrentunitid = new Gs.DevApp.UserControl.UcLookUnit(); ((System.ComponentModel.ISupportInitialize)(this.txt_fforbidstatus.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txt_fdescription.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txt_fprecision.Properties)).BeginInit(); @@ -129,7 +129,6 @@ this.gv_fforbidstatus.FieldName = "fforbidstatus"; this.gv_fforbidstatus.MinWidth = 50; this.gv_fforbidstatus.Name = "gv_fforbidstatus"; - this.gv_fforbidstatus.OptionsColumn.AllowEdit = false; this.gv_fforbidstatus.Tag = "query_a.fforbidstatus"; this.gv_fforbidstatus.Visible = true; this.gv_fforbidstatus.VisibleIndex = 9; @@ -162,7 +161,6 @@ this.gv_fdescription.FieldName = "fdescription"; this.gv_fdescription.MinWidth = 50; this.gv_fdescription.Name = "gv_fdescription"; - this.gv_fdescription.OptionsColumn.AllowEdit = false; this.gv_fdescription.Tag = "query_a.fdescription"; this.gv_fdescription.Visible = true; this.gv_fdescription.VisibleIndex = 8; @@ -195,7 +193,6 @@ this.gv_fprecision.FieldName = "fprecision"; this.gv_fprecision.MinWidth = 50; this.gv_fprecision.Name = "gv_fprecision"; - this.gv_fprecision.OptionsColumn.AllowEdit = false; this.gv_fprecision.Tag = "query_a.fprecision"; this.gv_fprecision.Visible = true; this.gv_fprecision.VisibleIndex = 7; @@ -228,7 +225,6 @@ this.gv_froundtype.FieldName = "froundtype"; this.gv_froundtype.MinWidth = 50; this.gv_froundtype.Name = "gv_froundtype"; - this.gv_froundtype.OptionsColumn.AllowEdit = false; this.gv_froundtype.Tag = "query_a.froundtype"; this.gv_froundtype.Visible = true; this.gv_froundtype.VisibleIndex = 6; @@ -271,7 +267,6 @@ this.gv_fconvertnumerator.FieldName = "fconvertnumerator"; this.gv_fconvertnumerator.MinWidth = 50; this.gv_fconvertnumerator.Name = "gv_fconvertnumerator"; - this.gv_fconvertnumerator.OptionsColumn.AllowEdit = false; this.gv_fconvertnumerator.Tag = "query_a.fconvertnumerator"; this.gv_fconvertnumerator.Visible = true; this.gv_fconvertnumerator.VisibleIndex = 5; @@ -314,7 +309,6 @@ this.gv_fconvertdenominator.FieldName = "fconvertdenominator"; this.gv_fconvertdenominator.MinWidth = 50; this.gv_fconvertdenominator.Name = "gv_fconvertdenominator"; - this.gv_fconvertdenominator.OptionsColumn.AllowEdit = false; this.gv_fconvertdenominator.Tag = "query_a.fconvertdenominator"; this.gv_fconvertdenominator.Visible = true; this.gv_fconvertdenominator.VisibleIndex = 4; @@ -347,7 +341,6 @@ this.gv_funitgroupid.FieldName = "funitgroupid"; this.gv_funitgroupid.MinWidth = 50; this.gv_funitgroupid.Name = "gv_funitgroupid"; - this.gv_funitgroupid.OptionsColumn.AllowEdit = false; this.gv_funitgroupid.Tag = "query_a.funitgroupid"; this.gv_funitgroupid.Visible = true; this.gv_funitgroupid.VisibleIndex = 3; @@ -380,7 +373,6 @@ this.gv_fname.FieldName = "fname"; this.gv_fname.MinWidth = 50; this.gv_fname.Name = "gv_fname"; - this.gv_fname.OptionsColumn.AllowEdit = false; this.gv_fname.Tag = "query_a.fname"; this.gv_fname.Visible = true; this.gv_fname.VisibleIndex = 2; @@ -414,6 +406,7 @@ this.gv_fnumber.MinWidth = 50; this.gv_fnumber.Name = "gv_fnumber"; this.gv_fnumber.OptionsColumn.AllowEdit = false; + this.gv_fnumber.OptionsColumn.ReadOnly = true; this.gv_fnumber.Tag = "query_a.fnumber"; this.gv_fnumber.Visible = true; this.gv_fnumber.VisibleIndex = 1; @@ -504,7 +497,7 @@ this.gv_id.FieldName = "id"; this.gv_id.MinWidth = 50; this.gv_id.Name = "gv_id"; - this.gv_id.OptionsColumn.AllowEdit = false; + this.gv_id.OptionsColumn.ReadOnly = true; this.gv_id.Tag = "query_a.id"; this.gv_id.Visible = true; this.gv_id.VisibleIndex = 0; @@ -641,6 +634,38 @@ this.panel1.Size = new System.Drawing.Size(814, 426); this.panel1.TabIndex = 1; // + // txt_fcurrentunitid + // + this.txt_fcurrentunitid.IsReadly = false; + this.txt_fcurrentunitid.Location = new System.Drawing.Point(368, 160); + this.txt_fcurrentunitid.Name = "txt_fcurrentunitid"; + this.txt_fcurrentunitid.Size = new System.Drawing.Size(150, 28); + this.txt_fcurrentunitid.TabIndex = 302; + // + // txt_fbaseunit + // + this.txt_fbaseunit.IsReadly = false; + this.txt_fbaseunit.Location = new System.Drawing.Point(368, 119); + this.txt_fbaseunit.Name = "txt_fbaseunit"; + this.txt_fbaseunit.Size = new System.Drawing.Size(150, 28); + this.txt_fbaseunit.TabIndex = 301; + // + // txt_newunit + // + this.txt_newunit.IsReadly = false; + this.txt_newunit.Location = new System.Drawing.Point(123, 200); + this.txt_newunit.Name = "txt_newunit"; + this.txt_newunit.Size = new System.Drawing.Size(150, 28); + this.txt_newunit.TabIndex = 300; + // + // txt_oldunit + // + this.txt_oldunit.IsReadly = false; + this.txt_oldunit.Location = new System.Drawing.Point(123, 119); + this.txt_oldunit.Name = "txt_oldunit"; + this.txt_oldunit.Size = new System.Drawing.Size(150, 28); + this.txt_oldunit.TabIndex = 299; + // // labelControl11 // this.labelControl11.Location = new System.Drawing.Point(53, 373); @@ -659,38 +684,6 @@ this.lbGuid.Size = new System.Drawing.Size(0, 21); this.lbGuid.TabIndex = 1; this.lbGuid.Visible = false; - // - // txt_oldunit - // - this.txt_oldunit.IsReadly = false; - this.txt_oldunit.Location = new System.Drawing.Point(123, 119); - this.txt_oldunit.Name = "txt_oldunit"; - this.txt_oldunit.Size = new System.Drawing.Size(150, 28); - this.txt_oldunit.TabIndex = 299; - // - // txt_newunit - // - this.txt_newunit.IsReadly = false; - this.txt_newunit.Location = new System.Drawing.Point(123, 200); - this.txt_newunit.Name = "txt_newunit"; - this.txt_newunit.Size = new System.Drawing.Size(150, 28); - this.txt_newunit.TabIndex = 300; - // - // txt_fbaseunit - // - this.txt_fbaseunit.IsReadly = false; - this.txt_fbaseunit.Location = new System.Drawing.Point(368, 119); - this.txt_fbaseunit.Name = "txt_fbaseunit"; - this.txt_fbaseunit.Size = new System.Drawing.Size(150, 28); - this.txt_fbaseunit.TabIndex = 301; - // - // txt_fcurrentunitid - // - this.txt_fcurrentunitid.IsReadly = false; - this.txt_fcurrentunitid.Location = new System.Drawing.Point(368, 160); - this.txt_fcurrentunitid.Name = "txt_fcurrentunitid"; - this.txt_fcurrentunitid.Size = new System.Drawing.Size(150, 28); - this.txt_fcurrentunitid.TabIndex = 302; // // Frm_MesUnit // diff --git a/DevApp/Gs.DevApp/DevFrm/BasicData/Frm_MesUnit.cs b/DevApp/Gs.DevApp/DevFrm/BasicData/Frm_MesUnit.cs index 660a506..f0e1d1c 100644 --- a/DevApp/Gs.DevApp/DevFrm/BasicData/Frm_MesUnit.cs +++ b/DevApp/Gs.DevApp/DevFrm/BasicData/Frm_MesUnit.cs @@ -25,10 +25,11 @@ getPageList(1); pageBar1.PagerEvent += PageBar1_PagerEvent; } - private void GridView1_ColumnFilterChanged(object sender, EventArgs e) + + private void GridView1_ColumnFilterChanged(object sender, EventArgs e) { _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns); - Task.Delay(100); + Task.Delay(100); getPageList(1); } /// <summary> @@ -106,7 +107,7 @@ /// </summary> /// <param name="curPage">绗嚑椤�</param> /// <param name="pageSize">姣忛〉鍑犳潯</param> - private void getPageList(int curPage) + private void getPageList(int curPage) { var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "fname", "asc", "", @@ -184,5 +185,7 @@ MsgHelper.Warning("鎻愮ず锛�" + ex.Message); } } + + } } \ No newline at end of file diff --git a/DevApp/Gs.DevApp/DevFrm/QiTa/Frm_MesItemTbl.Designer.cs b/DevApp/Gs.DevApp/DevFrm/QiTa/Frm_MesItemTbl.Designer.cs new file mode 100644 index 0000000..2c93a3d --- /dev/null +++ b/DevApp/Gs.DevApp/DevFrm/QiTa/Frm_MesItemTbl.Designer.cs @@ -0,0 +1,1454 @@ +/* Create By GS EasyCode */ +namespace Gs.DevApp.DevFrm +{ + partial class Frm_MesItemTbl + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.gvMx1tld009 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gvMx1tld007 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gvMx1tld006 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gvMx1tld005 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gvMx1tld004 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gvMx1tld003 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gvMx1tld002 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gvMx1tld001 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gvMx1tlid = new DevExpress.XtraGrid.Columns.GridColumn(); + this.tabMxPage1 = new DevExpress.XtraTab.XtraTabPage(); + this.gcMx1 = new DevExpress.XtraGrid.GridControl(); + this.gvMx1 = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.panelMx1 = new DevExpress.XtraEditors.PanelControl(); + this.lbMxGuid = new DevExpress.XtraEditors.LabelControl(); + this.txt_iCount_1 = new DevExpress.XtraEditors.TextEdit(); + this.labelControl14 = new DevExpress.XtraEditors.LabelControl(); + this.txt_psnQty_1 = new DevExpress.XtraEditors.TextEdit(); + this.labelControl12 = new DevExpress.XtraEditors.LabelControl(); + this.kyPrtQty = new DevExpress.XtraEditors.TextEdit(); + this.labelControl13 = new DevExpress.XtraEditors.LabelControl(); + this.textEdit6 = new DevExpress.XtraEditors.TextEdit(); + this.labelControl1 = new DevExpress.XtraEditors.LabelControl(); + this.txtQuantity = new DevExpress.XtraEditors.TextEdit(); + this.labelControl10 = new DevExpress.XtraEditors.LabelControl(); + this.txtWlgg = new DevExpress.XtraEditors.TextEdit(); + this.labelControl9 = new DevExpress.XtraEditors.LabelControl(); + this.txtWlmc = new DevExpress.XtraEditors.TextEdit(); + this.labelControl8 = new DevExpress.XtraEditors.LabelControl(); + this.txtWlid = new DevExpress.XtraEditors.TextEdit(); + this.labelControl7 = new DevExpress.XtraEditors.LabelControl(); + this.gv_tbl022 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gv_itemId = new DevExpress.XtraGrid.Columns.GridColumn(); + this.lb_tbl021 = new DevExpress.XtraEditors.LabelControl(); + this.txt_tbl021 = new DevExpress.XtraEditors.TextEdit(); + this.gv_tbl021 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.lb_tbl020 = new DevExpress.XtraEditors.LabelControl(); + this.gv_tbl020 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gv_tbl019 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gv_tbl018 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gv_tbl017 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gv_tbl016 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gv_tbl015 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gv_tbl014 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.lb_tbl013 = new DevExpress.XtraEditors.LabelControl(); + this.gv_tbl013 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.lb_tbl012 = new DevExpress.XtraEditors.LabelControl(); + this.txt_tbl012 = new DevExpress.XtraEditors.TextEdit(); + this.gv_tbl012 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.lb_tbl011 = new DevExpress.XtraEditors.LabelControl(); + this.txt_tbl011 = new DevExpress.XtraEditors.TextEdit(); + this.gv_tbl011 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gv_tbl010 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gv_tbl009 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gv_tbl008 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gv_tbl007 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.lb_tbl006 = new DevExpress.XtraEditors.LabelControl(); + this.txt_tbl006 = new DevExpress.XtraEditors.TextEdit(); + this.gv_tbl006 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.lb_tbl005 = new DevExpress.XtraEditors.LabelControl(); + this.gv_tbl005 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.lb_tbl004 = new DevExpress.XtraEditors.LabelControl(); + this.txt_tbl004 = new DevExpress.XtraEditors.TextEdit(); + this.gv_tbl004 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.lb_tbl003 = new DevExpress.XtraEditors.LabelControl(); + this.txt_tbl003 = new DevExpress.XtraEditors.TextEdit(); + this.gv_tbl003 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.lb_tbl002 = new DevExpress.XtraEditors.LabelControl(); + this.gv_tbl002 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.lb_tbl001 = new DevExpress.XtraEditors.LabelControl(); + this.txt_tbl001 = new DevExpress.XtraEditors.TextEdit(); + this.gv_tbl001 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.lb_billNo = new DevExpress.XtraEditors.LabelControl(); + this.txt_billNo = new DevExpress.XtraEditors.TextEdit(); + this.gv_billNo = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gv_id = new DevExpress.XtraGrid.Columns.GridColumn(); + this.toolBarMenu1 = new Gs.DevApp.UserControl.UcToolBarMenu(); + this.gcMain = new DevExpress.XtraGrid.GridControl(); + this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); + this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage(); + this.pageBar1 = new UserControls.Data.UcPageBar(); + this.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage(); + this.tabMx = new DevExpress.XtraTab.XtraTabControl(); + this.xtraTabPage3 = new DevExpress.XtraTab.XtraTabPage(); + this.panel1 = new System.Windows.Forms.Panel(); + this.txt_tbl020 = new DevExpress.XtraEditors.CheckEdit(); + this.txt_tbl013 = new DevExpress.XtraEditors.CheckEdit(); + this.txt_tbl005 = new DevExpress.XtraEditors.ComboBoxEdit(); + this.txt_tbl002 = new Gs.DevApp.UserControl.UcLookDaa(); + this.btnSelect = new DevExpress.XtraEditors.SimpleButton(); + this.labelControl11 = new DevExpress.XtraEditors.LabelControl(); + this.lbGuid = new System.Windows.Forms.Label(); + this.tabMxPage1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.gcMx1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gvMx1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.panelMx1)).BeginInit(); + this.panelMx1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txt_iCount_1.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_psnQty_1.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.kyPrtQty.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.textEdit6.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtQuantity.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtWlgg.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtWlmc.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtWlid.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_tbl021.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_tbl012.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_tbl011.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_tbl006.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_tbl004.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_tbl003.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_tbl001.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_billNo.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gcMain)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); + this.xtraTabControl1.SuspendLayout(); + this.xtraTabPage1.SuspendLayout(); + this.xtraTabPage2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tabMx)).BeginInit(); + this.tabMx.SuspendLayout(); + this.panel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txt_tbl020.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_tbl013.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_tbl005.Properties)).BeginInit(); + this.SuspendLayout(); + // + // gvMx1tld009 + // + this.gvMx1tld009.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gvMx1tld009.AppearanceCell.Options.UseFont = true; + this.gvMx1tld009.Caption = "鐗╂枡id"; + this.gvMx1tld009.FieldName = "tld009"; + this.gvMx1tld009.MinWidth = 50; + this.gvMx1tld009.Name = "gvMx1tld009"; + this.gvMx1tld009.Tag = "query_a.tld009"; + this.gvMx1tld009.Visible = true; + this.gvMx1tld009.VisibleIndex = 8; + this.gvMx1tld009.Width = 94; + // + // gvMx1tld007 + // + this.gvMx1tld007.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gvMx1tld007.AppearanceCell.Options.UseFont = true; + this.gvMx1tld007.Caption = "鍗曚綅"; + this.gvMx1tld007.FieldName = "tld007"; + this.gvMx1tld007.MinWidth = 50; + this.gvMx1tld007.Name = "gvMx1tld007"; + this.gvMx1tld007.Tag = "query_a.tld007"; + this.gvMx1tld007.Visible = true; + this.gvMx1tld007.VisibleIndex = 7; + this.gvMx1tld007.Width = 94; + // + // gvMx1tld006 + // + this.gvMx1tld006.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gvMx1tld006.AppearanceCell.Options.UseFont = true; + this.gvMx1tld006.Caption = "宸查��鏁伴噺"; + this.gvMx1tld006.FieldName = "tld006"; + this.gvMx1tld006.MinWidth = 50; + this.gvMx1tld006.Name = "gvMx1tld006"; + this.gvMx1tld006.Tag = "query_a.tld006"; + this.gvMx1tld006.Visible = true; + this.gvMx1tld006.VisibleIndex = 6; + this.gvMx1tld006.Width = 94; + // + // gvMx1tld005 + // + this.gvMx1tld005.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gvMx1tld005.AppearanceCell.Options.UseFont = true; + this.gvMx1tld005.Caption = "鐢宠鏁伴噺"; + this.gvMx1tld005.FieldName = "tld005"; + this.gvMx1tld005.MinWidth = 50; + this.gvMx1tld005.Name = "gvMx1tld005"; + this.gvMx1tld005.Tag = "query_a.tld005"; + this.gvMx1tld005.Visible = true; + this.gvMx1tld005.VisibleIndex = 5; + this.gvMx1tld005.Width = 94; + // + // gvMx1tld004 + // + this.gvMx1tld004.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gvMx1tld004.AppearanceCell.Options.UseFont = true; + this.gvMx1tld004.Caption = "瑙勬牸鍨嬪彿"; + this.gvMx1tld004.FieldName = "tld004"; + this.gvMx1tld004.MinWidth = 50; + this.gvMx1tld004.Name = "gvMx1tld004"; + this.gvMx1tld004.Tag = "query_a.tld004"; + this.gvMx1tld004.Visible = true; + this.gvMx1tld004.VisibleIndex = 4; + this.gvMx1tld004.Width = 94; + // + // gvMx1tld003 + // + this.gvMx1tld003.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gvMx1tld003.AppearanceCell.Options.UseFont = true; + this.gvMx1tld003.Caption = "鐗╂枡鍚嶇О"; + this.gvMx1tld003.FieldName = "tld003"; + this.gvMx1tld003.MinWidth = 50; + this.gvMx1tld003.Name = "gvMx1tld003"; + this.gvMx1tld003.Tag = "query_a.tld003"; + this.gvMx1tld003.Visible = true; + this.gvMx1tld003.VisibleIndex = 3; + this.gvMx1tld003.Width = 94; + // + // gvMx1tld002 + // + this.gvMx1tld002.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gvMx1tld002.AppearanceCell.Options.UseFont = true; + this.gvMx1tld002.Caption = "鐗╂枡缂栫爜"; + this.gvMx1tld002.FieldName = "tld002"; + this.gvMx1tld002.MinWidth = 50; + this.gvMx1tld002.Name = "gvMx1tld002"; + this.gvMx1tld002.Tag = "query_a.tld002"; + this.gvMx1tld002.Visible = true; + this.gvMx1tld002.VisibleIndex = 2; + this.gvMx1tld002.Width = 94; + // + // gvMx1tld001 + // + this.gvMx1tld001.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gvMx1tld001.AppearanceCell.Options.UseFont = true; + this.gvMx1tld001.Caption = "宸ュ崟鍙�"; + this.gvMx1tld001.FieldName = "tld001"; + this.gvMx1tld001.MinWidth = 50; + this.gvMx1tld001.Name = "gvMx1tld001"; + this.gvMx1tld001.Tag = "query_a.tld001"; + this.gvMx1tld001.Visible = true; + this.gvMx1tld001.VisibleIndex = 1; + this.gvMx1tld001.Width = 94; + // + // gvMx1tlid + // + this.gvMx1tlid.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gvMx1tlid.AppearanceCell.Options.UseFont = true; + this.gvMx1tlid.Caption = "tlid"; + this.gvMx1tlid.FieldName = "tlid"; + this.gvMx1tlid.MinWidth = 50; + this.gvMx1tlid.Name = "gvMx1tlid"; + this.gvMx1tlid.Tag = "query_a.tlid"; + this.gvMx1tlid.Visible = true; + this.gvMx1tlid.VisibleIndex = 0; + this.gvMx1tlid.Width = 94; + // + // tabMxPage1 + // + this.tabMxPage1.Controls.Add(this.gcMx1); + this.tabMxPage1.Controls.Add(this.panelMx1); + this.tabMxPage1.Name = "tabMxPage1"; + this.tabMxPage1.Size = new System.Drawing.Size(1124, 370); + this.tabMxPage1.Text = "閫�鏂欐槑缁�"; + // + // gcMx1 + // + this.gcMx1.Dock = System.Windows.Forms.DockStyle.Fill; + this.gcMx1.Location = new System.Drawing.Point(0, 98); + this.gcMx1.MainView = this.gvMx1; + this.gcMx1.Name = "gcMx1"; + this.gcMx1.Size = new System.Drawing.Size(1124, 272); + this.gcMx1.TabIndex = 0; + this.gcMx1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { + this.gvMx1}); + // + // gvMx1 + // + this.gvMx1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { + this.gvMx1tlid, + this.gridColumn3, + this.gvMx1tld001, + this.gvMx1tld002, + this.gvMx1tld003, + this.gvMx1tld004, + this.gvMx1tld005, + this.gvMx1tld006, + this.gvMx1tld007, + this.gvMx1tld009, + this.gridColumn1, + this.gridColumn2}); + this.gvMx1.GridControl = this.gcMx1; + this.gvMx1.Name = "gvMx1"; + this.gvMx1.OptionsBehavior.AllowAddRows = DevExpress.Utils.DefaultBoolean.True; + this.gvMx1.OptionsFind.ShowSearchNavButtons = false; + this.gvMx1.OptionsView.NewItemRowPosition = DevExpress.XtraGrid.Views.Grid.NewItemRowPosition.Bottom; + this.gvMx1.OptionsView.ShowGroupPanel = false; + // + // gridColumn3 + // + this.gridColumn3.Caption = "dabGuid"; + this.gridColumn3.FieldName = "aboutGuid"; + this.gridColumn3.MinWidth = 25; + this.gridColumn3.Name = "gridColumn3"; + this.gridColumn3.Visible = true; + this.gridColumn3.VisibleIndex = 11; + this.gridColumn3.Width = 94; + // + // gridColumn1 + // + this.gridColumn1.Caption = "宸叉墦鍗版暟閲�"; + this.gridColumn1.MinWidth = 25; + this.gridColumn1.Name = "gridColumn1"; + this.gridColumn1.Visible = true; + this.gridColumn1.VisibleIndex = 9; + this.gridColumn1.Width = 94; + // + // gridColumn2 + // + this.gridColumn2.Caption = "鍙墦鍗版暟閲�"; + this.gridColumn2.MinWidth = 25; + this.gridColumn2.Name = "gridColumn2"; + this.gridColumn2.Visible = true; + this.gridColumn2.VisibleIndex = 10; + this.gridColumn2.Width = 94; + // + // panelMx1 + // + this.panelMx1.Controls.Add(this.lbMxGuid); + this.panelMx1.Controls.Add(this.txt_iCount_1); + this.panelMx1.Controls.Add(this.labelControl14); + this.panelMx1.Controls.Add(this.txt_psnQty_1); + this.panelMx1.Controls.Add(this.labelControl12); + this.panelMx1.Controls.Add(this.kyPrtQty); + this.panelMx1.Controls.Add(this.labelControl13); + this.panelMx1.Controls.Add(this.textEdit6); + this.panelMx1.Controls.Add(this.labelControl1); + this.panelMx1.Controls.Add(this.txtQuantity); + this.panelMx1.Controls.Add(this.labelControl10); + this.panelMx1.Controls.Add(this.txtWlgg); + this.panelMx1.Controls.Add(this.labelControl9); + this.panelMx1.Controls.Add(this.txtWlmc); + this.panelMx1.Controls.Add(this.labelControl8); + this.panelMx1.Controls.Add(this.txtWlid); + this.panelMx1.Controls.Add(this.labelControl7); + this.panelMx1.Dock = System.Windows.Forms.DockStyle.Top; + this.panelMx1.Location = new System.Drawing.Point(0, 0); + this.panelMx1.Name = "panelMx1"; + this.panelMx1.Size = new System.Drawing.Size(1124, 98); + this.panelMx1.TabIndex = 1; + // + // lbMxGuid + // + this.lbMxGuid.Location = new System.Drawing.Point(552, 75); + this.lbMxGuid.Name = "lbMxGuid"; + this.lbMxGuid.Size = new System.Drawing.Size(58, 18); + this.lbMxGuid.TabIndex = 229; + this.lbMxGuid.Text = "lbMxGuid"; + this.lbMxGuid.Visible = false; + // + // txt_iCount_1 + // + this.txt_iCount_1.Location = new System.Drawing.Point(654, 34); + this.txt_iCount_1.Name = "txt_iCount_1"; + this.txt_iCount_1.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.txt_iCount_1.Properties.Appearance.Options.UseFont = true; + this.txt_iCount_1.Size = new System.Drawing.Size(96, 28); + this.txt_iCount_1.TabIndex = 228; + // + // labelControl14 + // + this.labelControl14.Location = new System.Drawing.Point(543, 39); + this.labelControl14.Name = "labelControl14"; + this.labelControl14.Size = new System.Drawing.Size(105, 18); + this.labelControl14.TabIndex = 227; + this.labelControl14.Text = "鎵撳嵃鏉$爜寮犳暟锛�"; + // + // txt_psnQty_1 + // + this.txt_psnQty_1.Location = new System.Drawing.Point(654, 4); + this.txt_psnQty_1.Name = "txt_psnQty_1"; + this.txt_psnQty_1.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.txt_psnQty_1.Properties.Appearance.Options.UseFont = true; + this.txt_psnQty_1.Size = new System.Drawing.Size(96, 28); + this.txt_psnQty_1.TabIndex = 226; + // + // labelControl12 + // + this.labelControl12.Location = new System.Drawing.Point(543, 9); + this.labelControl12.Name = "labelControl12"; + this.labelControl12.Size = new System.Drawing.Size(105, 18); + this.labelControl12.TabIndex = 225; + this.labelControl12.Text = "姣忓紶鏉$爜鏁伴噺锛�"; + // + // kyPrtQty + // + this.kyPrtQty.Location = new System.Drawing.Point(430, 65); + this.kyPrtQty.Name = "kyPrtQty"; + this.kyPrtQty.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.kyPrtQty.Properties.Appearance.Options.UseFont = true; + this.kyPrtQty.Properties.ReadOnly = true; + this.kyPrtQty.Size = new System.Drawing.Size(96, 28); + this.kyPrtQty.TabIndex = 224; + // + // labelControl13 + // + this.labelControl13.Location = new System.Drawing.Point(332, 70); + this.labelControl13.Name = "labelControl13"; + this.labelControl13.Size = new System.Drawing.Size(90, 18); + this.labelControl13.TabIndex = 223; + this.labelControl13.Text = "鍙墦鍗版�绘暟锛�"; + // + // textEdit6 + // + this.textEdit6.Location = new System.Drawing.Point(430, 34); + this.textEdit6.Name = "textEdit6"; + this.textEdit6.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.textEdit6.Properties.Appearance.Options.UseFont = true; + this.textEdit6.Properties.ReadOnly = true; + this.textEdit6.Size = new System.Drawing.Size(96, 28); + this.textEdit6.TabIndex = 222; + // + // labelControl1 + // + this.labelControl1.Location = new System.Drawing.Point(332, 39); + this.labelControl1.Name = "labelControl1"; + this.labelControl1.Size = new System.Drawing.Size(90, 18); + this.labelControl1.TabIndex = 221; + this.labelControl1.Text = "宸叉墦鍗版�婚噺锛�"; + // + // txtQuantity + // + this.txtQuantity.Location = new System.Drawing.Point(430, 4); + this.txtQuantity.Name = "txtQuantity"; + this.txtQuantity.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.txtQuantity.Properties.Appearance.Options.UseFont = true; + this.txtQuantity.Properties.ReadOnly = true; + this.txtQuantity.Size = new System.Drawing.Size(96, 28); + this.txtQuantity.TabIndex = 220; + // + // labelControl10 + // + this.labelControl10.Location = new System.Drawing.Point(317, 9); + this.labelControl10.Name = "labelControl10"; + this.labelControl10.Size = new System.Drawing.Size(105, 18); + this.labelControl10.TabIndex = 219; + this.labelControl10.Text = "鏈鏀惰揣鎬婚噺锛�"; + // + // txtWlgg + // + this.txtWlgg.Location = new System.Drawing.Point(90, 65); + this.txtWlgg.Name = "txtWlgg"; + this.txtWlgg.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.txtWlgg.Properties.Appearance.Options.UseFont = true; + this.txtWlgg.Properties.ReadOnly = true; + this.txtWlgg.Size = new System.Drawing.Size(215, 28); + this.txtWlgg.TabIndex = 218; + // + // labelControl9 + // + this.labelControl9.Location = new System.Drawing.Point(11, 70); + this.labelControl9.Name = "labelControl9"; + this.labelControl9.Size = new System.Drawing.Size(75, 18); + this.labelControl9.TabIndex = 217; + this.labelControl9.Text = "鐗╂枡瑙勬牸锛�"; + // + // txtWlmc + // + this.txtWlmc.Location = new System.Drawing.Point(90, 34); + this.txtWlmc.Name = "txtWlmc"; + this.txtWlmc.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.txtWlmc.Properties.Appearance.Options.UseFont = true; + this.txtWlmc.Properties.ReadOnly = true; + this.txtWlmc.Size = new System.Drawing.Size(215, 28); + this.txtWlmc.TabIndex = 216; + // + // labelControl8 + // + this.labelControl8.Location = new System.Drawing.Point(11, 39); + this.labelControl8.Name = "labelControl8"; + this.labelControl8.Size = new System.Drawing.Size(75, 18); + this.labelControl8.TabIndex = 215; + this.labelControl8.Text = "鐗╂枡鍚嶇О锛�"; + // + // txtWlid + // + this.txtWlid.Location = new System.Drawing.Point(90, 4); + this.txtWlid.Name = "txtWlid"; + this.txtWlid.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.txtWlid.Properties.Appearance.Options.UseFont = true; + this.txtWlid.Properties.ReadOnly = true; + this.txtWlid.Size = new System.Drawing.Size(215, 28); + this.txtWlid.TabIndex = 214; + // + // labelControl7 + // + this.labelControl7.Location = new System.Drawing.Point(25, 9); + this.labelControl7.Name = "labelControl7"; + this.labelControl7.Size = new System.Drawing.Size(61, 18); + this.labelControl7.TabIndex = 213; + this.labelControl7.Text = "鐗╂枡ID锛�"; + // + // gv_tbl022 + // + this.gv_tbl022.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl022.AppearanceCell.Options.UseFont = true; + this.gv_tbl022.Caption = "鏄惁琛ユ枡瀹屾垚 "; + this.gv_tbl022.FieldName = "tbl022"; + this.gv_tbl022.MinWidth = 50; + this.gv_tbl022.Name = "gv_tbl022"; + this.gv_tbl022.OptionsColumn.AllowEdit = false; + this.gv_tbl022.Tag = "query_a.tbl022"; + this.gv_tbl022.Visible = true; + this.gv_tbl022.VisibleIndex = 24; + this.gv_tbl022.Width = 94; + // + // gv_itemId + // + this.gv_itemId.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_itemId.AppearanceCell.Options.UseFont = true; + this.gv_itemId.Caption = "浜у搧id "; + this.gv_itemId.FieldName = "itemId"; + this.gv_itemId.MinWidth = 50; + this.gv_itemId.Name = "gv_itemId"; + this.gv_itemId.OptionsColumn.AllowEdit = false; + this.gv_itemId.Tag = "query_a.item_id"; + this.gv_itemId.Visible = true; + this.gv_itemId.VisibleIndex = 23; + this.gv_itemId.Width = 94; + // + // lb_tbl021 + // + this.lb_tbl021.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_tbl021.Appearance.Options.UseFont = true; + this.lb_tbl021.Location = new System.Drawing.Point(256, 54); + this.lb_tbl021.Name = "lb_tbl021"; + this.lb_tbl021.Size = new System.Drawing.Size(73, 21); + this.lb_tbl021.TabIndex = 298; + this.lb_tbl021.Text = "鐢熶骇杞﹂棿 "; + // + // txt_tbl021 + // + this.txt_tbl021.Enabled = false; + this.txt_tbl021.Location = new System.Drawing.Point(331, 50); + this.txt_tbl021.Name = "txt_tbl021"; + this.txt_tbl021.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.txt_tbl021.Properties.Appearance.Options.UseFont = true; + this.txt_tbl021.Size = new System.Drawing.Size(150, 28); + this.txt_tbl021.TabIndex = 298; + // + // gv_tbl021 + // + this.gv_tbl021.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl021.AppearanceCell.Options.UseFont = true; + this.gv_tbl021.Caption = "鐢熶骇杞﹂棿 "; + this.gv_tbl021.FieldName = "tbl021"; + this.gv_tbl021.MinWidth = 50; + this.gv_tbl021.Name = "gv_tbl021"; + this.gv_tbl021.OptionsColumn.AllowEdit = false; + this.gv_tbl021.Tag = "query_a.tbl021"; + this.gv_tbl021.Visible = true; + this.gv_tbl021.VisibleIndex = 22; + this.gv_tbl021.Width = 94; + // + // lb_tbl020 + // + this.lb_tbl020.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_tbl020.Appearance.Options.UseFont = true; + this.lb_tbl020.Location = new System.Drawing.Point(745, 120); + this.lb_tbl020.Name = "lb_tbl020"; + this.lb_tbl020.Size = new System.Drawing.Size(73, 21); + this.lb_tbl020.TabIndex = 291; + this.lb_tbl020.Text = "瀹岀粨鏍囪瘑 "; + // + // gv_tbl020 + // + this.gv_tbl020.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl020.AppearanceCell.Options.UseFont = true; + this.gv_tbl020.Caption = "瀹岀粨鏍囪瘑 "; + this.gv_tbl020.FieldName = "tbl020"; + this.gv_tbl020.MinWidth = 50; + this.gv_tbl020.Name = "gv_tbl020"; + this.gv_tbl020.OptionsColumn.AllowEdit = false; + this.gv_tbl020.Tag = "query_a.tbl020"; + this.gv_tbl020.Visible = true; + this.gv_tbl020.VisibleIndex = 21; + this.gv_tbl020.Width = 94; + // + // gv_tbl019 + // + this.gv_tbl019.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl019.AppearanceCell.Options.UseFont = true; + this.gv_tbl019.Caption = "浜嬪姟绫诲瀷缂栫爜 "; + this.gv_tbl019.FieldName = "tbl019"; + this.gv_tbl019.MinWidth = 50; + this.gv_tbl019.Name = "gv_tbl019"; + this.gv_tbl019.OptionsColumn.AllowEdit = false; + this.gv_tbl019.Tag = "query_a.tbl019"; + this.gv_tbl019.Visible = true; + this.gv_tbl019.VisibleIndex = 20; + this.gv_tbl019.Width = 94; + // + // gv_tbl018 + // + this.gv_tbl018.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl018.AppearanceCell.Options.UseFont = true; + this.gv_tbl018.Caption = "鍗曟嵁绫诲瀷缂栫爜 "; + this.gv_tbl018.FieldName = "tbl018"; + this.gv_tbl018.MinWidth = 50; + this.gv_tbl018.Name = "gv_tbl018"; + this.gv_tbl018.OptionsColumn.AllowEdit = false; + this.gv_tbl018.Tag = "query_a.tbl018"; + this.gv_tbl018.Visible = true; + this.gv_tbl018.VisibleIndex = 19; + this.gv_tbl018.Width = 94; + // + // gv_tbl017 + // + this.gv_tbl017.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl017.AppearanceCell.Options.UseFont = true; + this.gv_tbl017.Caption = "渚涘簲鍟嗙紪鐮� "; + this.gv_tbl017.FieldName = "tbl017"; + this.gv_tbl017.MinWidth = 50; + this.gv_tbl017.Name = "gv_tbl017"; + this.gv_tbl017.OptionsColumn.AllowEdit = false; + this.gv_tbl017.Tag = "query_a.tbl017"; + this.gv_tbl017.Visible = true; + this.gv_tbl017.VisibleIndex = 18; + this.gv_tbl017.Width = 94; + // + // gv_tbl016 + // + this.gv_tbl016.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl016.AppearanceCell.Options.UseFont = true; + this.gv_tbl016.Caption = "ERP杩斿洖淇℃伅 "; + this.gv_tbl016.FieldName = "tbl016"; + this.gv_tbl016.MinWidth = 50; + this.gv_tbl016.Name = "gv_tbl016"; + this.gv_tbl016.OptionsColumn.AllowEdit = false; + this.gv_tbl016.Tag = "query_a.tbl016"; + this.gv_tbl016.Visible = true; + this.gv_tbl016.VisibleIndex = 17; + this.gv_tbl016.Width = 94; + // + // gv_tbl015 + // + this.gv_tbl015.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl015.AppearanceCell.Options.UseFont = true; + this.gv_tbl015.Caption = "ERP鍥炲啓鍗曞彿 "; + this.gv_tbl015.FieldName = "tbl015"; + this.gv_tbl015.MinWidth = 50; + this.gv_tbl015.Name = "gv_tbl015"; + this.gv_tbl015.OptionsColumn.AllowEdit = false; + this.gv_tbl015.Tag = "query_a.tbl015"; + this.gv_tbl015.Visible = true; + this.gv_tbl015.VisibleIndex = 16; + this.gv_tbl015.Width = 94; + // + // gv_tbl014 + // + this.gv_tbl014.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl014.AppearanceCell.Options.UseFont = true; + this.gv_tbl014.Caption = "ERP鍥炲啓鐘舵�� "; + this.gv_tbl014.FieldName = "tbl014"; + this.gv_tbl014.MinWidth = 50; + this.gv_tbl014.Name = "gv_tbl014"; + this.gv_tbl014.OptionsColumn.AllowEdit = false; + this.gv_tbl014.Tag = "query_a.tbl014"; + this.gv_tbl014.Visible = true; + this.gv_tbl014.VisibleIndex = 15; + this.gv_tbl014.Width = 94; + // + // lb_tbl013 + // + this.lb_tbl013.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_tbl013.Appearance.Options.UseFont = true; + this.lb_tbl013.Location = new System.Drawing.Point(745, 88); + this.lb_tbl013.Name = "lb_tbl013"; + this.lb_tbl013.Size = new System.Drawing.Size(73, 21); + this.lb_tbl013.TabIndex = 252; + this.lb_tbl013.Text = "瀹℃牳鐘舵�� "; + // + // gv_tbl013 + // + this.gv_tbl013.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl013.AppearanceCell.Options.UseFont = true; + this.gv_tbl013.Caption = "瀹℃牳鐘舵�� "; + this.gv_tbl013.FieldName = "tbl013"; + this.gv_tbl013.MinWidth = 50; + this.gv_tbl013.Name = "gv_tbl013"; + this.gv_tbl013.OptionsColumn.AllowEdit = false; + this.gv_tbl013.Tag = "query_a.tbl013"; + this.gv_tbl013.Visible = true; + this.gv_tbl013.VisibleIndex = 14; + this.gv_tbl013.Width = 94; + // + // lb_tbl012 + // + this.lb_tbl012.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_tbl012.Appearance.Options.UseFont = true; + this.lb_tbl012.Location = new System.Drawing.Point(745, 54); + this.lb_tbl012.Name = "lb_tbl012"; + this.lb_tbl012.Size = new System.Drawing.Size(73, 21); + this.lb_tbl012.TabIndex = 247; + this.lb_tbl012.Text = "瀹℃牳鏃堕棿 "; + // + // txt_tbl012 + // + this.txt_tbl012.Enabled = false; + this.txt_tbl012.Location = new System.Drawing.Point(822, 50); + this.txt_tbl012.Name = "txt_tbl012"; + this.txt_tbl012.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.txt_tbl012.Properties.Appearance.Options.UseFont = true; + this.txt_tbl012.Size = new System.Drawing.Size(150, 28); + this.txt_tbl012.TabIndex = 247; + // + // gv_tbl012 + // + this.gv_tbl012.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl012.AppearanceCell.Options.UseFont = true; + this.gv_tbl012.Caption = "瀹℃牳鏃堕棿 "; + this.gv_tbl012.FieldName = "tbl012"; + this.gv_tbl012.MinWidth = 50; + this.gv_tbl012.Name = "gv_tbl012"; + this.gv_tbl012.OptionsColumn.AllowEdit = false; + this.gv_tbl012.Tag = "query_a.tbl012"; + this.gv_tbl012.Visible = true; + this.gv_tbl012.VisibleIndex = 13; + this.gv_tbl012.Width = 94; + // + // lb_tbl011 + // + this.lb_tbl011.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_tbl011.Appearance.Options.UseFont = true; + this.lb_tbl011.Location = new System.Drawing.Point(762, 20); + this.lb_tbl011.Name = "lb_tbl011"; + this.lb_tbl011.Size = new System.Drawing.Size(56, 21); + this.lb_tbl011.TabIndex = 243; + this.lb_tbl011.Text = "瀹℃牳浜� "; + // + // txt_tbl011 + // + this.txt_tbl011.Enabled = false; + this.txt_tbl011.Location = new System.Drawing.Point(822, 16); + this.txt_tbl011.Name = "txt_tbl011"; + this.txt_tbl011.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.txt_tbl011.Properties.Appearance.Options.UseFont = true; + this.txt_tbl011.Size = new System.Drawing.Size(150, 28); + this.txt_tbl011.TabIndex = 243; + // + // gv_tbl011 + // + this.gv_tbl011.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl011.AppearanceCell.Options.UseFont = true; + this.gv_tbl011.Caption = "瀹℃牳浜� "; + this.gv_tbl011.FieldName = "tbl011"; + this.gv_tbl011.MinWidth = 50; + this.gv_tbl011.Name = "gv_tbl011"; + this.gv_tbl011.OptionsColumn.AllowEdit = false; + this.gv_tbl011.Tag = "query_a.tbl011"; + this.gv_tbl011.Visible = true; + this.gv_tbl011.VisibleIndex = 12; + this.gv_tbl011.Width = 94; + // + // gv_tbl010 + // + this.gv_tbl010.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl010.AppearanceCell.Options.UseFont = true; + this.gv_tbl010.Caption = "鍒涘缓鏃堕棿 "; + this.gv_tbl010.FieldName = "tbl010"; + this.gv_tbl010.MinWidth = 50; + this.gv_tbl010.Name = "gv_tbl010"; + this.gv_tbl010.OptionsColumn.AllowEdit = false; + this.gv_tbl010.Tag = "query_a.tbl010"; + this.gv_tbl010.Visible = true; + this.gv_tbl010.VisibleIndex = 11; + this.gv_tbl010.Width = 94; + // + // gv_tbl009 + // + this.gv_tbl009.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl009.AppearanceCell.Options.UseFont = true; + this.gv_tbl009.Caption = "鍒涘缓浜� "; + this.gv_tbl009.FieldName = "tbl009"; + this.gv_tbl009.MinWidth = 50; + this.gv_tbl009.Name = "gv_tbl009"; + this.gv_tbl009.OptionsColumn.AllowEdit = false; + this.gv_tbl009.Tag = "query_a.tbl009"; + this.gv_tbl009.Visible = true; + this.gv_tbl009.VisibleIndex = 10; + this.gv_tbl009.Width = 94; + // + // gv_tbl008 + // + this.gv_tbl008.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl008.AppearanceCell.Options.UseFont = true; + this.gv_tbl008.Caption = "浜嬪姟绫诲瀷 "; + this.gv_tbl008.FieldName = "tbl008"; + this.gv_tbl008.MinWidth = 50; + this.gv_tbl008.Name = "gv_tbl008"; + this.gv_tbl008.OptionsColumn.AllowEdit = false; + this.gv_tbl008.Tag = "query_a.tbl008"; + this.gv_tbl008.Visible = true; + this.gv_tbl008.VisibleIndex = 9; + this.gv_tbl008.Width = 94; + // + // gv_tbl007 + // + this.gv_tbl007.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl007.AppearanceCell.Options.UseFont = true; + this.gv_tbl007.Caption = "鍗曟嵁绫诲瀷 "; + this.gv_tbl007.FieldName = "tbl007"; + this.gv_tbl007.MinWidth = 50; + this.gv_tbl007.Name = "gv_tbl007"; + this.gv_tbl007.OptionsColumn.AllowEdit = false; + this.gv_tbl007.Tag = "query_a.tbl007"; + this.gv_tbl007.Visible = true; + this.gv_tbl007.VisibleIndex = 8; + this.gv_tbl007.Width = 94; + // + // lb_tbl006 + // + this.lb_tbl006.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_tbl006.Appearance.Options.UseFont = true; + this.lb_tbl006.Location = new System.Drawing.Point(45, 120); + this.lb_tbl006.Name = "lb_tbl006"; + this.lb_tbl006.Size = new System.Drawing.Size(39, 21); + this.lb_tbl006.TabIndex = 226; + this.lb_tbl006.Text = "澶囨敞 "; + // + // txt_tbl006 + // + this.txt_tbl006.Location = new System.Drawing.Point(85, 116); + this.txt_tbl006.Name = "txt_tbl006"; + this.txt_tbl006.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.txt_tbl006.Properties.Appearance.Options.UseFont = true; + this.txt_tbl006.Size = new System.Drawing.Size(650, 28); + this.txt_tbl006.TabIndex = 226; + // + // gv_tbl006 + // + this.gv_tbl006.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl006.AppearanceCell.Options.UseFont = true; + this.gv_tbl006.Caption = "澶囨敞 "; + this.gv_tbl006.FieldName = "tbl006"; + this.gv_tbl006.MinWidth = 50; + this.gv_tbl006.Name = "gv_tbl006"; + this.gv_tbl006.OptionsColumn.AllowEdit = false; + this.gv_tbl006.Tag = "query_a.tbl006"; + this.gv_tbl006.Visible = true; + this.gv_tbl006.VisibleIndex = 7; + this.gv_tbl006.Width = 94; + // + // lb_tbl005 + // + this.lb_tbl005.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_tbl005.Appearance.Options.UseFont = true; + this.lb_tbl005.Location = new System.Drawing.Point(11, 88); + this.lb_tbl005.Name = "lb_tbl005"; + this.lb_tbl005.Size = new System.Drawing.Size(73, 21); + this.lb_tbl005.TabIndex = 222; + this.lb_tbl005.Text = "閫�鏂欏師鍥� "; + // + // gv_tbl005 + // + this.gv_tbl005.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl005.AppearanceCell.Options.UseFont = true; + this.gv_tbl005.Caption = "閫�鏂欏師鍥� "; + this.gv_tbl005.FieldName = "tbl005"; + this.gv_tbl005.MinWidth = 50; + this.gv_tbl005.Name = "gv_tbl005"; + this.gv_tbl005.OptionsColumn.AllowEdit = false; + this.gv_tbl005.Tag = "query_a.tbl005"; + this.gv_tbl005.Visible = true; + this.gv_tbl005.VisibleIndex = 6; + this.gv_tbl005.Width = 94; + // + // lb_tbl004 + // + this.lb_tbl004.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_tbl004.Appearance.Options.UseFont = true; + this.lb_tbl004.Location = new System.Drawing.Point(508, 54); + this.lb_tbl004.Name = "lb_tbl004"; + this.lb_tbl004.Size = new System.Drawing.Size(73, 21); + this.lb_tbl004.TabIndex = 219; + this.lb_tbl004.Text = "浜у搧鍨嬪彿 "; + // + // txt_tbl004 + // + this.txt_tbl004.Enabled = false; + this.txt_tbl004.Location = new System.Drawing.Point(585, 50); + this.txt_tbl004.Name = "txt_tbl004"; + this.txt_tbl004.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.txt_tbl004.Properties.Appearance.Options.UseFont = true; + this.txt_tbl004.Size = new System.Drawing.Size(150, 28); + this.txt_tbl004.TabIndex = 219; + // + // gv_tbl004 + // + this.gv_tbl004.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl004.AppearanceCell.Options.UseFont = true; + this.gv_tbl004.Caption = "浜у搧鍨嬪彿 "; + this.gv_tbl004.FieldName = "tbl004"; + this.gv_tbl004.MinWidth = 50; + this.gv_tbl004.Name = "gv_tbl004"; + this.gv_tbl004.OptionsColumn.AllowEdit = false; + this.gv_tbl004.Tag = "query_a.tbl004"; + this.gv_tbl004.Visible = true; + this.gv_tbl004.VisibleIndex = 5; + this.gv_tbl004.Width = 94; + // + // lb_tbl003 + // + this.lb_tbl003.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_tbl003.Appearance.Options.UseFont = true; + this.lb_tbl003.Location = new System.Drawing.Point(256, 20); + this.lb_tbl003.Name = "lb_tbl003"; + this.lb_tbl003.Size = new System.Drawing.Size(73, 21); + this.lb_tbl003.TabIndex = 217; + this.lb_tbl003.Text = "浠诲姟鍗曞彿 "; + // + // txt_tbl003 + // + this.txt_tbl003.Enabled = false; + this.txt_tbl003.Location = new System.Drawing.Point(331, 16); + this.txt_tbl003.Name = "txt_tbl003"; + this.txt_tbl003.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.txt_tbl003.Properties.Appearance.Options.UseFont = true; + this.txt_tbl003.Size = new System.Drawing.Size(150, 28); + this.txt_tbl003.TabIndex = 217; + // + // gv_tbl003 + // + this.gv_tbl003.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl003.AppearanceCell.Options.UseFont = true; + this.gv_tbl003.Caption = "浠诲姟鍗曞彿 "; + this.gv_tbl003.FieldName = "tbl003"; + this.gv_tbl003.MinWidth = 50; + this.gv_tbl003.Name = "gv_tbl003"; + this.gv_tbl003.OptionsColumn.AllowEdit = false; + this.gv_tbl003.Tag = "query_a.tbl003"; + this.gv_tbl003.Visible = true; + this.gv_tbl003.VisibleIndex = 4; + this.gv_tbl003.Width = 94; + // + // lb_tbl002 + // + this.lb_tbl002.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_tbl002.Appearance.Options.UseFont = true; + this.lb_tbl002.Location = new System.Drawing.Point(11, 54); + this.lb_tbl002.Name = "lb_tbl002"; + this.lb_tbl002.Size = new System.Drawing.Size(73, 21); + this.lb_tbl002.TabIndex = 216; + this.lb_tbl002.Text = "鐢熶骇宸ュ崟 "; + // + // gv_tbl002 + // + this.gv_tbl002.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl002.AppearanceCell.Options.UseFont = true; + this.gv_tbl002.Caption = "鐢熶骇宸ュ崟 "; + this.gv_tbl002.FieldName = "tbl002"; + this.gv_tbl002.MinWidth = 50; + this.gv_tbl002.Name = "gv_tbl002"; + this.gv_tbl002.OptionsColumn.AllowEdit = false; + this.gv_tbl002.Tag = "query_a.tbl002"; + this.gv_tbl002.Visible = true; + this.gv_tbl002.VisibleIndex = 3; + this.gv_tbl002.Width = 94; + // + // lb_tbl001 + // + this.lb_tbl001.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_tbl001.Appearance.Options.UseFont = true; + this.lb_tbl001.Location = new System.Drawing.Point(508, 20); + this.lb_tbl001.Name = "lb_tbl001"; + this.lb_tbl001.Size = new System.Drawing.Size(73, 21); + this.lb_tbl001.TabIndex = 213; + this.lb_tbl001.Text = "浜х嚎鍚嶇О "; + // + // txt_tbl001 + // + this.txt_tbl001.Enabled = false; + this.txt_tbl001.Location = new System.Drawing.Point(585, 16); + this.txt_tbl001.Name = "txt_tbl001"; + this.txt_tbl001.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.txt_tbl001.Properties.Appearance.Options.UseFont = true; + this.txt_tbl001.Size = new System.Drawing.Size(150, 28); + this.txt_tbl001.TabIndex = 213; + // + // gv_tbl001 + // + this.gv_tbl001.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_tbl001.AppearanceCell.Options.UseFont = true; + this.gv_tbl001.Caption = "浜х嚎鍚嶇О "; + this.gv_tbl001.FieldName = "tbl001"; + this.gv_tbl001.MinWidth = 50; + this.gv_tbl001.Name = "gv_tbl001"; + this.gv_tbl001.OptionsColumn.AllowEdit = false; + this.gv_tbl001.Tag = "query_a.tbl001"; + this.gv_tbl001.Visible = true; + this.gv_tbl001.VisibleIndex = 2; + this.gv_tbl001.Width = 94; + // + // lb_billNo + // + this.lb_billNo.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_billNo.Appearance.Options.UseFont = true; + this.lb_billNo.Location = new System.Drawing.Point(11, 20); + this.lb_billNo.Name = "lb_billNo"; + this.lb_billNo.Size = new System.Drawing.Size(73, 21); + this.lb_billNo.TabIndex = 211; + this.lb_billNo.Text = "閫�鏂欏崟鍙� "; + // + // txt_billNo + // + this.txt_billNo.Enabled = false; + this.txt_billNo.Location = new System.Drawing.Point(85, 16); + this.txt_billNo.Name = "txt_billNo"; + this.txt_billNo.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.txt_billNo.Properties.Appearance.Options.UseFont = true; + this.txt_billNo.Size = new System.Drawing.Size(150, 28); + this.txt_billNo.TabIndex = 211; + // + // gv_billNo + // + this.gv_billNo.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_billNo.AppearanceCell.Options.UseFont = true; + this.gv_billNo.Caption = "鍗曞彿 "; + this.gv_billNo.FieldName = "billNo"; + this.gv_billNo.MinWidth = 50; + this.gv_billNo.Name = "gv_billNo"; + this.gv_billNo.OptionsColumn.AllowEdit = false; + this.gv_billNo.Tag = "query_a.bill_no"; + this.gv_billNo.Visible = true; + this.gv_billNo.VisibleIndex = 1; + this.gv_billNo.Width = 94; + // + // gv_id + // + this.gv_id.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_id.AppearanceCell.Options.UseFont = true; + this.gv_id.Caption = "ID "; + this.gv_id.FieldName = "id"; + this.gv_id.MinWidth = 50; + this.gv_id.Name = "gv_id"; + this.gv_id.OptionsColumn.AllowEdit = false; + this.gv_id.Tag = "query_a.id"; + this.gv_id.Visible = true; + this.gv_id.VisibleIndex = 0; + this.gv_id.Width = 94; + // + // toolBarMenu1 + // + this.toolBarMenu1.chkParameter = null; + this.toolBarMenu1.Dock = System.Windows.Forms.DockStyle.Top; + this.toolBarMenu1.guidKey = null; + this.toolBarMenu1.isSetBtn = false; + this.toolBarMenu1.Location = new System.Drawing.Point(0, 0); + this.toolBarMenu1.Name = "toolBarMenu1"; + this.toolBarMenu1.rptParameter = null; + this.toolBarMenu1.Size = new System.Drawing.Size(1128, 80); + this.toolBarMenu1.TabIndex = 0; + this.toolBarMenu1.xlsInService = null; + this.toolBarMenu1.xlsOutParameter = null; + // + // gcMain + // + this.gcMain.Dock = System.Windows.Forms.DockStyle.Fill; + this.gcMain.Font = new System.Drawing.Font("Tahoma", 10F); + this.gcMain.Location = new System.Drawing.Point(0, 0); + this.gcMain.MainView = this.gridView1; + this.gcMain.Name = "gcMain"; + this.gcMain.Size = new System.Drawing.Size(1126, 553); + this.gcMain.TabIndex = 1; + this.gcMain.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { + this.gridView1}); + // + // gridView1 + // + this.gridView1.Appearance.Row.Font = new System.Drawing.Font("Tahoma", 10F); + this.gridView1.Appearance.Row.Options.UseFont = true; + this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { + this.gv_id, + this.gv_billNo, + this.gv_tbl001, + this.gv_tbl002, + this.gv_tbl003, + this.gv_tbl004, + this.gv_tbl005, + this.gv_tbl006, + this.gv_tbl007, + this.gv_tbl008, + this.gv_tbl009, + this.gv_tbl010, + this.gv_tbl011, + this.gv_tbl012, + this.gv_tbl013, + this.gv_tbl014, + this.gv_tbl015, + this.gv_tbl016, + this.gv_tbl017, + this.gv_tbl018, + this.gv_tbl019, + this.gv_tbl020, + this.gv_tbl021, + this.gv_itemId, + this.gv_tbl022}); + this.gridView1.GridControl = this.gcMain; + this.gridView1.IndicatorWidth = 50; + this.gridView1.Name = "gridView1"; + this.gridView1.OptionsFind.ShowSearchNavButtons = false; + this.gridView1.OptionsView.ShowAutoFilterRow = true; + this.gridView1.OptionsView.ShowGroupPanel = false; + // + // xtraTabControl1 + // + this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.xtraTabControl1.Location = new System.Drawing.Point(0, 80); + this.xtraTabControl1.Name = "xtraTabControl1"; + this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1; + this.xtraTabControl1.Size = new System.Drawing.Size(1128, 624); + this.xtraTabControl1.TabIndex = 3; + this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { + this.xtraTabPage1, + this.xtraTabPage2}); + // + // xtraTabPage1 + // + this.xtraTabPage1.Controls.Add(this.gcMain); + this.xtraTabPage1.Controls.Add(this.pageBar1); + this.xtraTabPage1.Name = "xtraTabPage1"; + this.xtraTabPage1.Size = new System.Drawing.Size(1126, 592); + this.xtraTabPage1.Text = "鏁版嵁鏌ヨ"; + // + // pageBar1 + // + this.pageBar1.CurrentPage = 1; + this.pageBar1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.pageBar1.Location = new System.Drawing.Point(0, 553); + this.pageBar1.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); + this.pageBar1.Name = "pageBar1"; + this.pageBar1.RecordCount = 0; + this.pageBar1.Size = new System.Drawing.Size(1126, 39); + this.pageBar1.TabIndex = 3; + this.pageBar1.TotalPages = 0; + // + // xtraTabPage2 + // + this.xtraTabPage2.Controls.Add(this.tabMx); + this.xtraTabPage2.Controls.Add(this.panel1); + this.xtraTabPage2.Name = "xtraTabPage2"; + this.xtraTabPage2.PageEnabled = false; + this.xtraTabPage2.Size = new System.Drawing.Size(1126, 592); + this.xtraTabPage2.Text = "鏁版嵁缂栬緫"; + // + // tabMx + // + this.tabMx.Dock = System.Windows.Forms.DockStyle.Fill; + this.tabMx.Location = new System.Drawing.Point(0, 190); + this.tabMx.Name = "tabMx"; + this.tabMx.SelectedTabPage = this.tabMxPage1; + this.tabMx.Size = new System.Drawing.Size(1126, 402); + this.tabMx.TabIndex = 2; + this.tabMx.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { + this.tabMxPage1, + this.xtraTabPage3}); + // + // xtraTabPage3 + // + this.xtraTabPage3.Name = "xtraTabPage3"; + this.xtraTabPage3.Size = new System.Drawing.Size(1124, 370); + this.xtraTabPage3.Text = "鏉$爜鏄庣粏"; + // + // panel1 + // + this.panel1.BackColor = System.Drawing.Color.White; + this.panel1.Controls.Add(this.txt_tbl020); + this.panel1.Controls.Add(this.txt_tbl013); + this.panel1.Controls.Add(this.txt_tbl005); + this.panel1.Controls.Add(this.txt_tbl002); + this.panel1.Controls.Add(this.btnSelect); + this.panel1.Controls.Add(this.labelControl11); + this.panel1.Controls.Add(this.lbGuid); + this.panel1.Controls.Add(this.lb_tbl021); + this.panel1.Controls.Add(this.txt_tbl021); + this.panel1.Controls.Add(this.lb_tbl020); + this.panel1.Controls.Add(this.lb_tbl013); + this.panel1.Controls.Add(this.lb_tbl012); + this.panel1.Controls.Add(this.txt_tbl012); + this.panel1.Controls.Add(this.lb_tbl011); + this.panel1.Controls.Add(this.txt_tbl011); + this.panel1.Controls.Add(this.lb_tbl006); + this.panel1.Controls.Add(this.txt_tbl006); + this.panel1.Controls.Add(this.lb_tbl005); + this.panel1.Controls.Add(this.lb_tbl004); + this.panel1.Controls.Add(this.txt_tbl004); + this.panel1.Controls.Add(this.lb_tbl003); + this.panel1.Controls.Add(this.txt_tbl003); + this.panel1.Controls.Add(this.lb_tbl002); + this.panel1.Controls.Add(this.lb_tbl001); + this.panel1.Controls.Add(this.txt_tbl001); + this.panel1.Controls.Add(this.lb_billNo); + this.panel1.Controls.Add(this.txt_billNo); + this.panel1.Dock = System.Windows.Forms.DockStyle.Top; + this.panel1.Font = new System.Drawing.Font("Tahoma", 10F); + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(1126, 190); + this.panel1.TabIndex = 1; + // + // txt_tbl020 + // + this.txt_tbl020.Enabled = false; + this.txt_tbl020.Location = new System.Drawing.Point(822, 120); + this.txt_tbl020.Name = "txt_tbl020"; + this.txt_tbl020.Properties.Caption = ""; + this.txt_tbl020.Size = new System.Drawing.Size(94, 24); + this.txt_tbl020.TabIndex = 461; + // + // txt_tbl013 + // + this.txt_tbl013.Enabled = false; + this.txt_tbl013.Location = new System.Drawing.Point(822, 85); + this.txt_tbl013.Name = "txt_tbl013"; + this.txt_tbl013.Properties.Caption = ""; + this.txt_tbl013.Size = new System.Drawing.Size(94, 24); + this.txt_tbl013.TabIndex = 460; + // + // txt_tbl005 + // + this.txt_tbl005.Location = new System.Drawing.Point(85, 86); + this.txt_tbl005.Name = "txt_tbl005"; + this.txt_tbl005.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.txt_tbl005.Properties.Items.AddRange(new object[] { + "鑹搧閫�鏂�", + "鏉ユ枡涓嶈壇閫�鏂�", + "浣滀笟涓嶈壇閫�鏂�"}); + this.txt_tbl005.Size = new System.Drawing.Size(150, 24); + this.txt_tbl005.TabIndex = 459; + // + // txt_tbl002 + // + this.txt_tbl002.IsReadly = false; + this.txt_tbl002.Location = new System.Drawing.Point(85, 50); + this.txt_tbl002.Name = "txt_tbl002"; + this.txt_tbl002.Size = new System.Drawing.Size(150, 28); + this.txt_tbl002.TabIndex = 458; + // + // btnSelect + // + this.btnSelect.ImageOptions.Image = global::Gs.DevApp.Properties.Resources.lookup_reference_16x16; + this.btnSelect.Location = new System.Drawing.Point(12, 150); + this.btnSelect.Name = "btnSelect"; + this.btnSelect.Size = new System.Drawing.Size(107, 29); + this.btnSelect.TabIndex = 457; + this.btnSelect.Text = "閫夊彇鐗╂枡"; + // + // labelControl11 + // + this.labelControl11.Location = new System.Drawing.Point(993, 119); + this.labelControl11.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.labelControl11.Name = "labelControl11"; + this.labelControl11.Size = new System.Drawing.Size(45, 18); + this.labelControl11.TabIndex = 130; + this.labelControl11.Text = "涓婚敭锛�"; + this.labelControl11.Visible = false; + // + // lbGuid + // + this.lbGuid.AutoSize = true; + this.lbGuid.Location = new System.Drawing.Point(1044, 119); + this.lbGuid.Name = "lbGuid"; + this.lbGuid.Size = new System.Drawing.Size(0, 21); + this.lbGuid.TabIndex = 1; + this.lbGuid.Visible = false; + // + // Frm_MesItemTbl + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1128, 704); + this.Controls.Add(this.xtraTabControl1); + this.Controls.Add(this.toolBarMenu1); + this.Name = "Frm_MesItemTbl"; + this.tabMxPage1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.gcMx1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gvMx1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.panelMx1)).EndInit(); + this.panelMx1.ResumeLayout(false); + this.panelMx1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txt_iCount_1.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_psnQty_1.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.kyPrtQty.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.textEdit6.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtQuantity.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtWlgg.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtWlmc.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtWlid.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_tbl021.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_tbl012.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_tbl011.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_tbl006.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_tbl004.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_tbl003.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_tbl001.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_billNo.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gcMain)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); + this.xtraTabControl1.ResumeLayout(false); + this.xtraTabPage1.ResumeLayout(false); + this.xtraTabPage2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.tabMx)).EndInit(); + this.tabMx.ResumeLayout(false); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txt_tbl020.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_tbl013.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_tbl005.Properties)).EndInit(); + this.ResumeLayout(false); + + } + #endregion + private UserControl.UcToolBarMenu toolBarMenu1; + private DevExpress.XtraGrid.GridControl gcMain; + private DevExpress.XtraGrid.Views.Grid.GridView gridView1; + private DevExpress.XtraTab.XtraTabControl xtraTabControl1; + private DevExpress.XtraTab.XtraTabPage xtraTabPage1; + private DevExpress.XtraTab.XtraTabPage xtraTabPage2; + private UserControls.Data.UcPageBar pageBar1; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Label lbGuid; + private DevExpress.XtraEditors.LabelControl labelControl11; + private DevExpress.XtraTab.XtraTabControl tabMx; + private DevExpress.XtraGrid.Columns.GridColumn gvMx1tld009; + private DevExpress.XtraGrid.Columns.GridColumn gvMx1tld007; + private DevExpress.XtraGrid.Columns.GridColumn gvMx1tld006; + private DevExpress.XtraGrid.Columns.GridColumn gvMx1tld005; + private DevExpress.XtraGrid.Columns.GridColumn gvMx1tld004; + private DevExpress.XtraGrid.Columns.GridColumn gvMx1tld003; + private DevExpress.XtraGrid.Columns.GridColumn gvMx1tld002; + private DevExpress.XtraGrid.Columns.GridColumn gvMx1tld001; + private DevExpress.XtraGrid.Columns.GridColumn gvMx1tlid; + private DevExpress.XtraTab.XtraTabPage tabMxPage1; + private DevExpress.XtraGrid.GridControl gcMx1; + private DevExpress.XtraGrid.Views.Grid.GridView gvMx1; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl022; + private DevExpress.XtraGrid.Columns.GridColumn gv_itemId; + + private DevExpress.XtraEditors.LabelControl lb_tbl021; + private DevExpress.XtraEditors.TextEdit txt_tbl021; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl021; + + private DevExpress.XtraEditors.LabelControl lb_tbl020; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl020; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl019; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl018; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl017; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl016; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl015; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl014; + + private DevExpress.XtraEditors.LabelControl lb_tbl013; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl013; + + private DevExpress.XtraEditors.LabelControl lb_tbl012; + private DevExpress.XtraEditors.TextEdit txt_tbl012; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl012; + + private DevExpress.XtraEditors.LabelControl lb_tbl011; + private DevExpress.XtraEditors.TextEdit txt_tbl011; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl011; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl010; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl009; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl008; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl007; + + private DevExpress.XtraEditors.LabelControl lb_tbl006; + private DevExpress.XtraEditors.TextEdit txt_tbl006; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl006; + + private DevExpress.XtraEditors.LabelControl lb_tbl005; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl005; + + private DevExpress.XtraEditors.LabelControl lb_tbl004; + private DevExpress.XtraEditors.TextEdit txt_tbl004; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl004; + + private DevExpress.XtraEditors.LabelControl lb_tbl003; + private DevExpress.XtraEditors.TextEdit txt_tbl003; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl003; + + private DevExpress.XtraEditors.LabelControl lb_tbl002; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl002; + + private DevExpress.XtraEditors.LabelControl lb_tbl001; + private DevExpress.XtraEditors.TextEdit txt_tbl001; + private DevExpress.XtraGrid.Columns.GridColumn gv_tbl001; + + private DevExpress.XtraEditors.LabelControl lb_billNo; + private DevExpress.XtraEditors.TextEdit txt_billNo; + private DevExpress.XtraGrid.Columns.GridColumn gv_billNo; + private DevExpress.XtraGrid.Columns.GridColumn gv_id; + private DevExpress.XtraTab.XtraTabPage xtraTabPage3; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn1; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn2; + private DevExpress.XtraEditors.SimpleButton btnSelect; + private DevExpress.XtraEditors.PanelControl panelMx1; + private DevExpress.XtraEditors.LabelControl lbMxGuid; + private DevExpress.XtraEditors.TextEdit txt_iCount_1; + private DevExpress.XtraEditors.LabelControl labelControl14; + private DevExpress.XtraEditors.TextEdit txt_psnQty_1; + private DevExpress.XtraEditors.LabelControl labelControl12; + private DevExpress.XtraEditors.TextEdit kyPrtQty; + private DevExpress.XtraEditors.LabelControl labelControl13; + private DevExpress.XtraEditors.TextEdit textEdit6; + private DevExpress.XtraEditors.LabelControl labelControl1; + private DevExpress.XtraEditors.TextEdit txtQuantity; + private DevExpress.XtraEditors.LabelControl labelControl10; + private DevExpress.XtraEditors.TextEdit txtWlgg; + private DevExpress.XtraEditors.LabelControl labelControl9; + private DevExpress.XtraEditors.TextEdit txtWlmc; + private DevExpress.XtraEditors.LabelControl labelControl8; + private DevExpress.XtraEditors.TextEdit txtWlid; + private DevExpress.XtraEditors.LabelControl labelControl7; + private UserControl.UcLookDaa txt_tbl002; + private DevExpress.XtraEditors.ComboBoxEdit txt_tbl005; + private DevExpress.XtraEditors.CheckEdit txt_tbl020; + private DevExpress.XtraEditors.CheckEdit txt_tbl013; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn3; + } +} \ No newline at end of file diff --git a/DevApp/Gs.DevApp/DevFrm/QiTa/Frm_MesItemTbl.cs b/DevApp/Gs.DevApp/DevFrm/QiTa/Frm_MesItemTbl.cs new file mode 100644 index 0000000..d8009c5 --- /dev/null +++ b/DevApp/Gs.DevApp/DevFrm/QiTa/Frm_MesItemTbl.cs @@ -0,0 +1,389 @@ +using Gs.DevApp.Entity; +using Gs.DevApp.ToolBox; +using Gs.DevApp.UserControl; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.Data; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Gs.DevApp.DevFrm +{ + public partial class Frm_MesItemTbl : DevExpress.XtraEditors.XtraForm + { + string _webServiceName = "MesItemTblManager/"; + List<FilterEntity> _filterList = new List<FilterEntity>(); + public Frm_MesItemTbl() + { + InitializeComponent(); + this.toolBarMenu1.btnAddClick += ToolBarMenu1_btnAddClick; + this.toolBarMenu1.btnEdtClick += ToolBarMenu1_btnEdtClick; + this.toolBarMenu1.btnSaveClick += ToolBarMenu1_btnSaveClick; + this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; + this.toolBarMenu1.btnDelClick += ToolBarMenu1_btnDelClick1; + this.toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick; + this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; + gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; + Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1); + getPageList(1); + pageBar1.PagerEvent += PageBar1_PagerEvent; + //閫夋嫨闇�瑕佸叆搴撶殑鏄庣粏 + btnSelect.Click += (s, e) => + { + string _tbl002 = txt_tbl002.GetId(); + if (string.IsNullOrEmpty(_tbl002)) + { + Gs.DevApp.ToolBox.MsgHelper.ShowError("璇峰厛閫夋嫨宸ュ崟锛�"); + return; + } + var frm = new SelectItemTbl(_tbl002); + //璧嬪�肩粰鏄庣粏琛� + frm.UpdateParent += (ss, ee) => + { + try + { + var lst = new List<string>(); + lst = ee.StringList; + var _obj = lst; + var strReturn = UtilityHelper.HttpPost("", + "MesItemTblManager/SelectPbaToView", + JsonConvert.SerializeObject(_obj)); + var dt = UtilityHelper.ReturnToList(strReturn); + DataTable _newTable = dt.rtnData; + DataTable _oldTable = (DataTable)gcMx1.DataSource; + DataRow[] sourceRows = _newTable.Select(); + for (int i = 0; i < sourceRows.Length; i++) + { + _oldTable.ImportRow(sourceRows[i]); + } + gcMx1.BindingContext = new BindingContext(); + gcMx1.DataSource = _oldTable; + gcMx1.ForceInitialize(); + } + catch (Exception ex) + { + MessageBox.Show(ex.Message); + } + }; + frm.ShowDialog(); + }; + } + private async void GridView1_ColumnFilterChanged(object sender, EventArgs e) + { + _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns); + await Task.Delay(100); + getPageList(1); + } + /// <summary> + /// 鍙屽嚮浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void GcMain_MouseDoubleClick(object sender, MouseEventArgs e) + { + string rowGuid = Gs.DevApp.ToolBox.UtilityHelper.GetCurrentDoubleRow(gridView1, e, "guid"); + if (!string.IsNullOrEmpty(rowGuid)) + getModel(rowGuid, false, 999); + } + /// <summary> + /// 鍒嗛〉浜嬩欢 + /// </summary> + /// <param name="curPage"></param> + /// <param name="pageSize"></param> + private void PageBar1_PagerEvent(int curPage, int pageSize) + { + getPageList(curPage); + } + /// <summary> + /// 鏌ヨ浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnQueryClick(object sender, EventArgs e) + { + gridView1.ColumnFilterChanged -= GridView1_ColumnFilterChanged; + gridView1.ActiveFilter.Clear(); + gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged; + var frm = new ShowFilter(gridView1.Columns, _filterList); + frm.UpdateParent += Frm_UpdateParent; + frm.ShowDialog(); + } + /// <summary> + /// 鏌ヨ鍥炶皟 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void Frm_UpdateParent(object sender, UpdateParentEventArgs e) + { + _filterList = e.FilterList; + getPageList(1); + } + + /// <summary> + /// 鍙栨秷浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnEscClick(object sender, EventArgs e) + { + UtilityHelper.JumpToTab(xtraTabControl1, 0); + } + + /// <summary> + /// 鍒犻櫎浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnDelClick1(object sender, EventArgs e) + { + string rowGuid = "", rowName = ""; + // (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_billNo, gridView1); + if (string.IsNullOrEmpty(rowGuid)) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + if (!MsgHelper.AskQuestion("浣犻�夋嫨浜嗐��" + rowName + "銆戯紝纭畾鍒犻櫎鍚楋紵")) + return; + List<dynamic> lst = new List<dynamic>(); + lst.Add(rowGuid); + var _obj = lst; + try + { + string strJson = UtilityHelper.HttpPost("", _webServiceName + "DeleteModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strJson); + if (_rtn.rtnCode > 0) + { + UtilityHelper.JumpToTab(xtraTabControl1, 0); + getPageList(1); + } + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + + /// <summary> + /// 鍒锋柊浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnLoadClick(object sender, EventArgs e) + { + if (xtraTabControl1.SelectedTabPageIndex == 1) + getModel(lbGuid.Text.Trim(), false, 999); + else + { + _filterList.Clear(); + if (gridView1.ActiveFilter.Count > 0) + { + gridView1.ColumnFilterChanged -= GridView1_ColumnFilterChanged; + gridView1.ActiveFilter.Clear(); + gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged; + } + getPageList(1); + } + } + /// <summary> + /// 淇敼浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnEdtClick(object sender, EventArgs e) + { + string rowGuid = "", rowName = ""; + // (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_billNo, gridView1); + if (string.IsNullOrEmpty(rowGuid)) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + getModel(rowGuid, true, 1); + } + /// <summary> + /// 鏂板浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnAddClick(object sender, EventArgs e) + { + UtilityHelper.JumpToTab(xtraTabControl1, 1); + lbGuid.Text = ""; + List<DevExpress.XtraGrid.Views.Grid.GridView> gridViews = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); + gridViews.Add(gvMx1); + UtilityHelper.CleanValueByControl(this.panel1.Controls, true, gridViews); + Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1); + } + /// <summary> + /// 淇濆瓨浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) + { + toolBarMenu1.isSetBtn = false; + string workId = txt_tbl002.GetId(); + if (string.IsNullOrEmpty(workId.Trim())) + { + Gs.DevApp.ToolBox.MsgHelper.Warning("璇烽�夋嫨宸ュ崟锛�"); + txt_tbl002.Focus(); + return; + } + if (string.IsNullOrEmpty(txt_tbl005.Text.Trim())) + { + Gs.DevApp.ToolBox.MsgHelper.Warning("璇烽�夋嫨鍘熷洜锛�"); + txt_tbl005.Focus(); + return; + } + var _obj = new + { + guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //涓诲缓 + bz = txt_tbl006.Text.Trim(),//澶囨敞 + yy = txt_tbl005.Text.Trim(),//鍘熷洜 + list = new List<dynamic>(), + }; + gvMx1.CloseEditor(); + gvMx1.UpdateCurrentRow(); + if (gvMx1.DataRowCount <= 0) + { + MsgHelper.ShowError("鏄庣粏涓嶈兘涓虹┖锛岃閫夋嫨浣犵殑鏀舵枡鏄庣粏锛�"); + return; + } + for (var i = 0; i < gvMx1.DataRowCount; i++) + { + var row = gvMx1.GetDataRow(i); + if (row != null) + { + Guid? _guid = UtilityHelper.ToGuid(row["guid"].ToString()); + string _sl = row["tld005"].ToString(); + if (string.IsNullOrEmpty(_sl)) + { + MsgHelper.ShowError("鐢宠鏁伴噺涓嶈兘涓虹┖锛�"); + return; + } + _obj.list.Add(new + { + Guid = _guid, + AboutGuid = Gs.DevApp.ToolBox.UtilityHelper.ToGuid(row["aboutGuid"].ToString()), + Sl = _sl //鐢宠鏁伴噺 + }); + } + } + try + { + string strJson = UtilityHelper.HttpPost("", _webServiceName + "EditModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strJson); + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + if (_rtn.rtnCode > 0) + { + lbGuid.Text = _rtn.rtnData; + toolBarMenu1.isSetBtn = true; + UtilityHelper.ChangeEnableByControl(this.panel1.Controls, false); + } + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + + /// <summary> + /// + /// </summary> + /// <param name="curPage">绗嚑椤�</param> + /// <param name="pageSize">姣忛〉鍑犳潯</param> + private void getPageList(int curPage) + { + + var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); + PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "create_date", "asc", "", _sbSqlWhere.ToString()); + string json = JsonConvert.SerializeObject(pgq); + try + { + var strReturn = UtilityHelper.HttpPost("", _webServiceName + "GetListPage", json); + ReturnModel<PageListModel> dd = UtilityHelper.ReturnToTablePage(strReturn); + if (dd.rtnCode > 0) + { + DataTable dt = dd.rtnData.list; + gcMain.BindingContext = new BindingContext(); + gridView1.ColumnFilterChanged -= GridView1_ColumnFilterChanged; + if (dt.Rows.Count > 0) + { + gcMain.DataSource = dt; + gcMain.ForceInitialize(); + } + else + UtilityHelper.SetDefaultTable(gcMain, gridView1); + gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged; + pageBar1.TotalPages = dd.rtnData.pages;//鎬婚〉 + pageBar1.CurrentPage = curPage;//褰撳墠椤� + pageBar1.RecordCount = dd.rtnData.total;//鎬昏褰曟暟 + } + else + { + ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + dd.rtnMsg); + } + } + catch (Exception ex) + { + ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); + } + + } + private void getModel(string strGuid, bool isEdit, int tabIdx) + { + if (string.IsNullOrEmpty(strGuid)) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + UtilityHelper.JumpToTab(xtraTabControl1, tabIdx); + var _obj = new + { + guid = strGuid,//涓诲缓 + }; + try + { + string strJson = UtilityHelper.HttpPost("", _webServiceName + "GetModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strJson); + if (_rtn.rtnCode > 0) + { + dynamic dy = _rtn.rtnData; + lbGuid.Text = strGuid; + List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); + gvList.Add(gvMx1); + UtilityHelper.SetValueByObj(this.panel1.Controls, dy, isEdit, gvList); + JObject _job = JObject.Parse(strJson); + JArray array = new JArray(); + foreach (var a in _job["rtnData"]["list"]) + { + array.Add(a); + } + DataTable dt = JsonConvert.DeserializeObject<DataTable>(array.ToString()); + if (dt.Rows.Count > 0) + { + gcMx1.BindingContext = new BindingContext(); + gcMx1.DataSource = dt; + gcMx1.ForceInitialize(); + } + else + { + Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1); + } + } + else + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + + + } +} \ No newline at end of file diff --git a/DevApp/Gs.DevApp/DevFrm/QiTa/Frm_MesItemTbl.resx b/DevApp/Gs.DevApp/DevFrm/QiTa/Frm_MesItemTbl.resx new file mode 100644 index 0000000..d58980a --- /dev/null +++ b/DevApp/Gs.DevApp/DevFrm/QiTa/Frm_MesItemTbl.resx @@ -0,0 +1,120 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" use="required" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> +</root> \ No newline at end of file diff --git a/DevApp/Gs.DevApp/Gs.DevApp.csproj b/DevApp/Gs.DevApp/Gs.DevApp.csproj index 7a78a04..60bbe9a 100644 --- a/DevApp/Gs.DevApp/Gs.DevApp.csproj +++ b/DevApp/Gs.DevApp/Gs.DevApp.csproj @@ -327,6 +327,12 @@ <Compile Include="DevFrm\QiTa\Frm_MesItemQtrk.Designer.cs"> <DependentUpon>Frm_MesItemQtrk.cs</DependentUpon> </Compile> + <Compile Include="DevFrm\QiTa\Frm_MesItemTbl.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="DevFrm\QiTa\Frm_MesItemTbl.Designer.cs"> + <DependentUpon>Frm_MesItemTbl.cs</DependentUpon> + </Compile> <Compile Include="DevFrm\Rpt\RptPreview.cs"> <SubType>Form</SubType> </Compile> @@ -569,6 +575,12 @@ <Compile Include="UserControl\SelectCheckDt.Designer.cs"> <DependentUpon>SelectCheckDt.cs</DependentUpon> </Compile> + <Compile Include="UserControl\SelectItemTbl.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="UserControl\SelectItemTbl.Designer.cs"> + <DependentUpon>SelectItemTbl.cs</DependentUpon> + </Compile> <Compile Include="UserControl\SelectWomdaahb.cs"> <SubType>Form</SubType> </Compile> @@ -628,6 +640,12 @@ </Compile> <Compile Include="UserControl\UcLookCustomer.Designer.cs"> <DependentUpon>UcLookCustomer.cs</DependentUpon> + </Compile> + <Compile Include="UserControl\UcLookDaa.cs"> + <SubType>UserControl</SubType> + </Compile> + <Compile Include="UserControl\UcLookDaa.Designer.cs"> + <DependentUpon>UcLookDaa.cs</DependentUpon> </Compile> <Compile Include="UserControl\UcLookDefectType.cs"> <SubType>UserControl</SubType> @@ -794,6 +812,9 @@ <EmbeddedResource Include="DevFrm\QiTa\Frm_MesItemQtrk.resx"> <DependentUpon>Frm_MesItemQtrk.cs</DependentUpon> </EmbeddedResource> + <EmbeddedResource Include="DevFrm\QiTa\Frm_MesItemTbl.resx"> + <DependentUpon>Frm_MesItemTbl.cs</DependentUpon> + </EmbeddedResource> <EmbeddedResource Include="DevFrm\Rpt\RptPreview.resx"> <DependentUpon>RptPreview.cs</DependentUpon> </EmbeddedResource> @@ -900,6 +921,9 @@ <EmbeddedResource Include="UserControl\SelectCheckDt.resx"> <DependentUpon>SelectCheckDt.cs</DependentUpon> </EmbeddedResource> + <EmbeddedResource Include="UserControl\SelectItemTbl.resx"> + <DependentUpon>SelectItemTbl.cs</DependentUpon> + </EmbeddedResource> <EmbeddedResource Include="UserControl\SelectWomdaahb.resx"> <DependentUpon>SelectWomdaahb.cs</DependentUpon> </EmbeddedResource> @@ -930,6 +954,9 @@ <EmbeddedResource Include="UserControl\UcLookCustomer.resx"> <DependentUpon>UcLookCustomer.cs</DependentUpon> </EmbeddedResource> + <EmbeddedResource Include="UserControl\UcLookDaa.resx"> + <DependentUpon>UcLookDaa.cs</DependentUpon> + </EmbeddedResource> <EmbeddedResource Include="UserControl\UcLookDefectType.resx"> <DependentUpon>UcLookDefectType.cs</DependentUpon> </EmbeddedResource> diff --git a/DevApp/Gs.DevApp/Gs.DevApp.csproj.user b/DevApp/Gs.DevApp/Gs.DevApp.csproj.user index ea14450..78c201e 100644 --- a/DevApp/Gs.DevApp/Gs.DevApp.csproj.user +++ b/DevApp/Gs.DevApp/Gs.DevApp.csproj.user @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> - <ProjectView>ProjectFiles</ProjectView> + <ProjectView>ShowAllFiles</ProjectView> <PublishUrlHistory>publish\</PublishUrlHistory> <InstallUrlHistory /> <SupportUrlHistory /> diff --git a/DevApp/Gs.DevApp/UserControl/SelectItemTbl.Designer.cs b/DevApp/Gs.DevApp/UserControl/SelectItemTbl.Designer.cs new file mode 100644 index 0000000..f6f0ed8 --- /dev/null +++ b/DevApp/Gs.DevApp/UserControl/SelectItemTbl.Designer.cs @@ -0,0 +1,289 @@ +锘縩amespace Gs.DevApp.UserControl +{ + partial class SelectItemTbl + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); + this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage(); + this.gcMain = new DevExpress.XtraGrid.GridControl(); + this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.gv_chk = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gv_guid = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gv_supplierItemCode = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gv_supplierItemName = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.panelControl1 = new DevExpress.XtraEditors.PanelControl(); + this.btnIn = new DevExpress.XtraEditors.SimpleButton(); + this.pageBar1 = new UserControls.Data.UcPageBar(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); + this.xtraTabControl1.SuspendLayout(); + this.xtraTabPage1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.gcMain)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit(); + this.panelControl1.SuspendLayout(); + this.SuspendLayout(); + // + // xtraTabControl1 + // + this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.xtraTabControl1.Location = new System.Drawing.Point(0, 0); + this.xtraTabControl1.Name = "xtraTabControl1"; + this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1; + this.xtraTabControl1.Size = new System.Drawing.Size(1023, 465); + this.xtraTabControl1.TabIndex = 5; + this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { + this.xtraTabPage1}); + // + // xtraTabPage1 + // + this.xtraTabPage1.Controls.Add(this.gcMain); + this.xtraTabPage1.Controls.Add(this.panelControl1); + this.xtraTabPage1.Name = "xtraTabPage1"; + this.xtraTabPage1.Size = new System.Drawing.Size(1021, 433); + this.xtraTabPage1.Text = "璇烽�夋嫨闇�瑕侀��鐨勬暟鎹�"; + // + // gcMain + // + this.gcMain.Dock = System.Windows.Forms.DockStyle.Fill; + this.gcMain.Font = new System.Drawing.Font("Tahoma", 10F); + this.gcMain.Location = new System.Drawing.Point(0, 0); + this.gcMain.MainView = this.gridView1; + this.gcMain.Name = "gcMain"; + this.gcMain.Size = new System.Drawing.Size(1021, 390); + this.gcMain.TabIndex = 1; + this.gcMain.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { + this.gridView1}); + // + // gridView1 + // + this.gridView1.Appearance.HeaderPanel.Options.UseTextOptions = true; + this.gridView1.Appearance.HeaderPanel.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap; + this.gridView1.Appearance.Row.Font = new System.Drawing.Font("Tahoma", 10F); + this.gridView1.Appearance.Row.Options.UseFont = true; + this.gridView1.ColumnPanelRowHeight = 50; + this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { + this.gv_chk, + this.gv_guid, + this.gridColumn1, + this.gv_supplierItemCode, + this.gv_supplierItemName, + this.gridColumn5, + this.gridColumn6, + this.gridColumn4, + this.gridColumn3}); + this.gridView1.GridControl = this.gcMain; + this.gridView1.IndicatorWidth = 50; + this.gridView1.Name = "gridView1"; + this.gridView1.OptionsFind.ShowSearchNavButtons = false; + this.gridView1.OptionsView.ShowAutoFilterRow = true; + this.gridView1.OptionsView.ShowGroupPanel = false; + // + // gv_chk + // + this.gv_chk.Caption = "閫夋嫨"; + this.gv_chk.FieldName = "gvChk"; + this.gv_chk.MinWidth = 60; + this.gv_chk.Name = "gv_chk"; + this.gv_chk.Visible = true; + this.gv_chk.VisibleIndex = 0; + this.gv_chk.Width = 94; + // + // gv_guid + // + this.gv_guid.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_guid.AppearanceCell.Options.UseFont = true; + this.gv_guid.Caption = "涓婚敭涓嶈兘鍒犻櫎"; + this.gv_guid.FieldName = "dabGuid"; + this.gv_guid.MinWidth = 50; + this.gv_guid.Name = "gv_guid"; + this.gv_guid.OptionsColumn.AllowEdit = false; + this.gv_guid.OptionsColumn.ReadOnly = true; + this.gv_guid.Tag = "query_a.guid"; + this.gv_guid.Width = 94; + // + // gridColumn1 + // + this.gridColumn1.Caption = "鐗╂枡ID"; + this.gridColumn1.FieldName = "itemId"; + this.gridColumn1.MinWidth = 80; + this.gridColumn1.Name = "gridColumn1"; + this.gridColumn1.OptionsColumn.ReadOnly = true; + this.gridColumn1.Visible = true; + this.gridColumn1.VisibleIndex = 1; + this.gridColumn1.Width = 94; + // + // gv_supplierItemCode + // + this.gv_supplierItemCode.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_supplierItemCode.AppearanceCell.Options.UseFont = true; + this.gv_supplierItemCode.Caption = "鐗╂枡缂栫爜"; + this.gv_supplierItemCode.FieldName = "itemNo"; + this.gv_supplierItemCode.MinWidth = 100; + this.gv_supplierItemCode.Name = "gv_supplierItemCode"; + this.gv_supplierItemCode.OptionsColumn.AllowEdit = false; + this.gv_supplierItemCode.OptionsColumn.ReadOnly = true; + this.gv_supplierItemCode.Tag = "query_a.SUPPLIER_ITEM_CODE"; + this.gv_supplierItemCode.Visible = true; + this.gv_supplierItemCode.VisibleIndex = 2; + this.gv_supplierItemCode.Width = 100; + // + // gv_supplierItemName + // + this.gv_supplierItemName.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_supplierItemName.AppearanceCell.Options.UseFont = true; + this.gv_supplierItemName.Caption = "鐗╂枡鍚嶇О"; + this.gv_supplierItemName.FieldName = "dab004"; + this.gv_supplierItemName.MinWidth = 120; + this.gv_supplierItemName.Name = "gv_supplierItemName"; + this.gv_supplierItemName.OptionsColumn.AllowEdit = false; + this.gv_supplierItemName.OptionsColumn.ReadOnly = true; + this.gv_supplierItemName.Tag = "query_a.SUPPLIER_ITEM_NAME"; + this.gv_supplierItemName.Visible = true; + this.gv_supplierItemName.VisibleIndex = 3; + this.gv_supplierItemName.Width = 120; + // + // gridColumn5 + // + this.gridColumn5.Caption = "鐗╂枡瑙勬牸"; + this.gridColumn5.FieldName = "dab005"; + this.gridColumn5.MinWidth = 250; + this.gridColumn5.Name = "gridColumn5"; + this.gridColumn5.OptionsColumn.ReadOnly = true; + this.gridColumn5.Visible = true; + this.gridColumn5.VisibleIndex = 4; + this.gridColumn5.Width = 250; + // + // gridColumn6 + // + this.gridColumn6.Caption = "鍗曚綅"; + this.gridColumn6.FieldName = "fnumber"; + this.gridColumn6.MinWidth = 100; + this.gridColumn6.Name = "gridColumn6"; + this.gridColumn6.OptionsColumn.ReadOnly = true; + this.gridColumn6.Visible = true; + this.gridColumn6.VisibleIndex = 5; + this.gridColumn6.Width = 100; + // + // gridColumn4 + // + this.gridColumn4.Caption = "宸插彂鏁伴噺"; + this.gridColumn4.FieldName = "dab007"; + this.gridColumn4.MinWidth = 25; + this.gridColumn4.Name = "gridColumn4"; + this.gridColumn4.Visible = true; + this.gridColumn4.VisibleIndex = 6; + this.gridColumn4.Width = 94; + // + // gridColumn3 + // + this.gridColumn3.Caption = "琛孖D"; + this.gridColumn3.FieldName = "erpid"; + this.gridColumn3.MinWidth = 25; + this.gridColumn3.Name = "gridColumn3"; + this.gridColumn3.Visible = true; + this.gridColumn3.VisibleIndex = 7; + this.gridColumn3.Width = 94; + // + // panelControl1 + // + this.panelControl1.Controls.Add(this.btnIn); + this.panelControl1.Controls.Add(this.pageBar1); + this.panelControl1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.panelControl1.Location = new System.Drawing.Point(0, 390); + this.panelControl1.Name = "panelControl1"; + this.panelControl1.Size = new System.Drawing.Size(1021, 43); + this.panelControl1.TabIndex = 4; + // + // btnIn + // + this.btnIn.Dock = System.Windows.Forms.DockStyle.Left; + this.btnIn.ImageOptions.Image = global::Gs.DevApp.Properties.Resources.checkbuttons_16x161; + this.btnIn.Location = new System.Drawing.Point(2, 2); + this.btnIn.Name = "btnIn"; + this.btnIn.Size = new System.Drawing.Size(94, 39); + this.btnIn.TabIndex = 4; + this.btnIn.Text = "纭畾瀵煎叆"; + // + // pageBar1 + // + this.pageBar1.CurrentPage = 1; + this.pageBar1.Dock = System.Windows.Forms.DockStyle.Right; + this.pageBar1.Location = new System.Drawing.Point(35, 2); + this.pageBar1.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); + this.pageBar1.Name = "pageBar1"; + this.pageBar1.RecordCount = 0; + this.pageBar1.Size = new System.Drawing.Size(984, 39); + this.pageBar1.TabIndex = 3; + this.pageBar1.TotalPages = 0; + // + // SelectItemTbl + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1023, 465); + this.Controls.Add(this.xtraTabControl1); + this.IconOptions.Image = global::Gs.DevApp.Properties.Resources.logo_png_black; + this.Name = "SelectItemTbl"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "鐢熶骇閫�鏂欑敵璇烽�夋嫨鐗╂枡"; + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); + this.xtraTabControl1.ResumeLayout(false); + this.xtraTabPage1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.gcMain)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit(); + this.panelControl1.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private DevExpress.XtraTab.XtraTabControl xtraTabControl1; + private DevExpress.XtraTab.XtraTabPage xtraTabPage1; + private DevExpress.XtraGrid.GridControl gcMain; + private DevExpress.XtraGrid.Views.Grid.GridView gridView1; + private DevExpress.XtraGrid.Columns.GridColumn gv_chk; + private DevExpress.XtraGrid.Columns.GridColumn gv_guid; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn1; + private DevExpress.XtraGrid.Columns.GridColumn gv_supplierItemCode; + private DevExpress.XtraGrid.Columns.GridColumn gv_supplierItemName; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn5; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn6; + private DevExpress.XtraEditors.PanelControl panelControl1; + private DevExpress.XtraEditors.SimpleButton btnIn; + private UserControls.Data.UcPageBar pageBar1; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn4; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn3; + } +} \ No newline at end of file diff --git a/DevApp/Gs.DevApp/UserControl/SelectItemTbl.cs b/DevApp/Gs.DevApp/UserControl/SelectItemTbl.cs new file mode 100644 index 0000000..a60eddd --- /dev/null +++ b/DevApp/Gs.DevApp/UserControl/SelectItemTbl.cs @@ -0,0 +1,104 @@ +锘縰sing DevExpress.XtraEditors; +using Gs.DevApp.ToolBox; +using Newtonsoft.Json; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Gs.DevApp.UserControl +{ + public partial class SelectItemTbl : DevExpress.XtraEditors.XtraForm + { + private readonly List<FilterEntity> _filterList = + new List<FilterEntity>(); + private readonly string _webServiceName = "MesItemTblManager/"; + private string daaGuid = ""; + public SelectItemTbl(string _daaGuid) + { + InitializeComponent(); + this.daaGuid = _daaGuid; + pageBar1.PagerEvent += PageBar1_PagerEvent; + getPageList(1, UtilityHelper.GetPageSize()); + gridView1.IndicatorWidth = 50; + gridView1.CustomDrawRowIndicator += (s, e) => + { + if (e.Info.IsRowIndicator && e.RowHandle >= 0) + e.Info.DisplayText = (e.RowHandle + 1).ToString(); + }; + btnIn.Click += (s, e) => + { + var list = new List<string>(); + for (var i = 0; i < gridView1.DataRowCount; i++) + { + var checkBox = gridView1.GetRowCellDisplayText(i, "gvChk"); + if (checkBox == "Checked") + { + var _guid = gridView1.GetRowCellValue(i, "dabGuid") + .ToString(); + list.Add(_guid); + } + } + UpdateParent?.Invoke(this, + new UpdateParentEventArgs { StringList = list }); + Close(); + }; + } + + /// <summary> + /// 閫夋嫨鍚庣殑鍥炶皟浜嬩欢 + /// </summary> + public event EventHandler<UpdateParentEventArgs> UpdateParent; + + /// <summary> + /// 鍒嗛〉浜嬩欢 + /// </summary> + /// <param name="curPage"></param> + /// <param name="pageSize"></param> + private void PageBar1_PagerEvent(int curPage, int pageSize) + { + getPageList(curPage, pageSize); + } + + /// <summary> + /// </summary> + /// <param name="curPage">绗嚑椤�</param> + /// <param name="pageSize">姣忛〉鍑犳潯</param> + private void getPageList(int curPage, int pageSize) + { + var _obj = new + { + currentPage = curPage, + everyPageSize = pageSize, + sortName = "", + keyWhere = "", + daaGuid = daaGuid + }; + var json = JsonConvert.SerializeObject(_obj); + try + { + var strReturn = UtilityHelper.HttpPost("", + _webServiceName + "SelectPba", json); + var dd = UtilityHelper.ReturnToTablePage(strReturn); + var dt = dd.rtnData.list; + gcMain.BindingContext = new BindingContext(); + gcMain.DataSource = dt; + gcMain.ForceInitialize(); + var dddd = dd.rtnData.pages; //鎬婚〉 + pageBar1.TotalPages = dddd; + pageBar1.RecordCount = dd.rtnData.total; //璁板綍鎬绘暟 + pageBar1.CurrentPage = curPage; //褰撳墠椤� + + } + catch (Exception ex) + { + MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + } +} \ No newline at end of file diff --git a/DevApp/Gs.DevApp/UserControl/SelectItemTbl.resx b/DevApp/Gs.DevApp/UserControl/SelectItemTbl.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/DevApp/Gs.DevApp/UserControl/SelectItemTbl.resx @@ -0,0 +1,120 @@ +锘�<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" use="required" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> +</root> \ No newline at end of file diff --git a/DevApp/Gs.DevApp/UserControl/UcLookDaa.Designer.cs b/DevApp/Gs.DevApp/UserControl/UcLookDaa.Designer.cs new file mode 100644 index 0000000..489902a --- /dev/null +++ b/DevApp/Gs.DevApp/UserControl/UcLookDaa.Designer.cs @@ -0,0 +1,168 @@ +锘縩amespace Gs.DevApp.UserControl +{ + partial class UcLookDaa + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.lookSearchSupplier = new DevExpress.XtraEditors.SearchLookUpEdit(); + this.searchLookUpEdit1View = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn(); + this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn(); + ((System.ComponentModel.ISupportInitialize)(this.lookSearchSupplier.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.searchLookUpEdit1View)).BeginInit(); + this.SuspendLayout(); + // + // lookSearchSupplier + // + this.lookSearchSupplier.Dock = System.Windows.Forms.DockStyle.Fill; + this.lookSearchSupplier.EditValue = "璇烽�夋嫨"; + this.lookSearchSupplier.Location = new System.Drawing.Point(0, 0); + this.lookSearchSupplier.Name = "lookSearchSupplier"; + this.lookSearchSupplier.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lookSearchSupplier.Properties.Appearance.Options.UseFont = true; + this.lookSearchSupplier.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.lookSearchSupplier.Properties.PopupView = this.searchLookUpEdit1View; + this.lookSearchSupplier.Size = new System.Drawing.Size(387, 28); + this.lookSearchSupplier.TabIndex = 10; + // + // searchLookUpEdit1View + // + this.searchLookUpEdit1View.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { + this.gridColumn5, + this.gridColumn1, + this.gridColumn2, + this.gridColumn8, + this.gridColumn7, + this.gridColumn6, + this.gridColumn3, + this.gridColumn4}); + this.searchLookUpEdit1View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus; + this.searchLookUpEdit1View.Name = "searchLookUpEdit1View"; + this.searchLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false; + this.searchLookUpEdit1View.OptionsView.ShowGroupPanel = false; + // + // gridColumn5 + // + this.gridColumn5.Caption = "宸ュ崟鍙�"; + this.gridColumn5.FieldName = "daa001"; + this.gridColumn5.Name = "gridColumn5"; + this.gridColumn5.Visible = true; + this.gridColumn5.VisibleIndex = 0; + // + // gridColumn1 + // + this.gridColumn1.Caption = "鐢熶骇杞﹂棿"; + this.gridColumn1.FieldName = "dptnName"; + this.gridColumn1.Name = "gridColumn1"; + this.gridColumn1.Visible = true; + this.gridColumn1.VisibleIndex = 1; + // + // gridColumn2 + // + this.gridColumn2.Caption = "鐢熶骇绾垮埆"; + this.gridColumn2.FieldName = "xb"; + this.gridColumn2.MinWidth = 80; + this.gridColumn2.Name = "gridColumn2"; + this.gridColumn2.UnboundDataType = typeof(string); + this.gridColumn2.Visible = true; + this.gridColumn2.VisibleIndex = 2; + this.gridColumn2.Width = 80; + // + // gridColumn3 + // + this.gridColumn3.Caption = "浜у搧缂栫爜"; + this.gridColumn3.FieldName = "itemNo"; + this.gridColumn3.MinWidth = 100; + this.gridColumn3.Name = "gridColumn3"; + this.gridColumn3.Visible = true; + this.gridColumn3.VisibleIndex = 6; + this.gridColumn3.Width = 100; + // + // gridColumn4 + // + this.gridColumn4.Caption = "guid"; + this.gridColumn4.FieldName = "guid"; + this.gridColumn4.Name = "gridColumn4"; + // + // gridColumn6 + // + this.gridColumn6.Caption = "鍗曚綅"; + this.gridColumn6.FieldName = "fnumber"; + this.gridColumn6.Name = "gridColumn6"; + this.gridColumn6.Visible = true; + this.gridColumn6.VisibleIndex = 5; + // + // gridColumn7 + // + this.gridColumn7.Caption = "瑙勬牸鍨嬪彿"; + this.gridColumn7.FieldName = "itemModel"; + this.gridColumn7.Name = "gridColumn7"; + this.gridColumn7.Visible = true; + this.gridColumn7.VisibleIndex = 4; + // + // gridColumn8 + // + this.gridColumn8.Caption = "浠诲姟鍗曞彿"; + this.gridColumn8.FieldName = "daa021"; + this.gridColumn8.Name = "gridColumn8"; + this.gridColumn8.Visible = true; + this.gridColumn8.VisibleIndex = 3; + // + // UcLookDaa + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.lookSearchSupplier); + this.Name = "UcLookDaa"; + this.Size = new System.Drawing.Size(387, 30); + ((System.ComponentModel.ISupportInitialize)(this.lookSearchSupplier.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.searchLookUpEdit1View)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private DevExpress.XtraEditors.SearchLookUpEdit lookSearchSupplier; + private DevExpress.XtraGrid.Views.Grid.GridView searchLookUpEdit1View; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn5; + 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 gridColumn8; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn7; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn6; + } +} diff --git a/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs b/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs new file mode 100644 index 0000000..19a95cc --- /dev/null +++ b/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs @@ -0,0 +1,97 @@ +锘縰sing DevExpress.XtraEditors; +using Gs.DevApp.Entity; +using Gs.DevApp.ToolBox; +using Newtonsoft.Json; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Gs.DevApp.UserControl +{ + public partial class UcLookDaa : DevExpress.XtraEditors.XtraUserControl + { + public UcLookDaa() + { + InitializeComponent(); + lookSearchSupplier.Properties.NullText = "璇烽�夋嫨"; + lookSearchSupplier.EditValueChanged += + LookSearchSupplier_EditValueChanged; + getSuppler(); + } + + public bool IsReadly { get; set; } + + /// <summary> + /// 鏀瑰彉浜嬩欢 + /// </summary> + public event EventHandler EditChanged; + + private void LookSearchSupplier_EditValueChanged(object sender, + EventArgs e) + { + if (EditChanged != null) EditChanged(this, e); + } + + private void getSuppler() + { + var pgq = new PageQueryModel(1, 999999, "a.daa001", "asc", "", " and 1=1"); + var json = JsonConvert.SerializeObject(pgq); + try + { + var strReturn = UtilityHelper.HttpPost("", "WomdaaManager/GetListSelect", json); + var rtn = UtilityHelper.ReturnToTablePage(strReturn); + var dt = rtn.rtnData.list; + lookSearchSupplier.Properties.DataSource = dt; + lookSearchSupplier.Properties.DisplayMember = "daa001"; + lookSearchSupplier.Properties.ValueMember = "guid"; + } + catch (Exception ex) + { + MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + + public string GetId() + { + var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView; + if (row != null) + { + string id = row["guid"].ToString(); + return id; + } + return ""; + } + public string GetCode() + { + var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView; + if (row != null) + { + string id = row["daa001"].ToString(); + return id; + } + return ""; + } + public string GetName() + { + var name = lookSearchSupplier.Text.Trim(); + return name; + } + + public void SetIdOrCode(string Code) + { + if (Code == "-1") + { + lookSearchSupplier.EditValue = null; + return; + } + lookSearchSupplier.EditValue = (((Code.ToString().Trim()))); + } + + } +} diff --git a/DevApp/Gs.DevApp/UserControl/UcLookDaa.resx b/DevApp/Gs.DevApp/UserControl/UcLookDaa.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/DevApp/Gs.DevApp/UserControl/UcLookDaa.resx @@ -0,0 +1,120 @@ +锘�<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" use="required" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> +</root> \ No newline at end of file -- Gitblit v1.9.3