From 22f37018f11fffbc4a7bd656e1a459b3b02a8980 Mon Sep 17 00:00:00 2001 From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU> Date: 星期六, 20 九月 2025 10:31:33 +0800 Subject: [PATCH] 设备台账表、设备保养记录表、设备点检记录表的增删改和审核功能 --- DevApp/Gs.DevApp/DevFrm/Rpt/YS_sb_djjl.cs | 300 +++++ DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbbyjlb.cs | 304 +++++ DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbtzb.resx | 2 DevApp/Gs.DevApp/DevFrm/Rpt/YS_sb_djjl.Designer.cs | 684 ++++++++++++ DevApp/Gs.DevApp/DevFrm/Rpt/YS_sb_djjl.resx | 2 DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbtzb.cs | 305 +++++ DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbbyjlb.Designer.cs | 768 +++++++++++++ DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbbyjlb.resx | 2 DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbtzb.Designer.cs | 821 ++++++++++++++ 9 files changed, 3,062 insertions(+), 126 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sb_djjl.Designer.cs b/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sb_djjl.Designer.cs index 5c0affb..2caac03 100644 --- a/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sb_djjl.Designer.cs +++ b/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sb_djjl.Designer.cs @@ -1,5 +1,4 @@ -/* Create By GS EasyCode */ -namespace Gs.DevApp.DevFrm +锘縩amespace Gs.DevApp.DevFrm { partial class YS_sb_djjl { @@ -30,8 +29,16 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); + DevExpress.XtraLayout.ColumnDefinition columnDefinition1 = new DevExpress.XtraLayout.ColumnDefinition(); + DevExpress.XtraLayout.ColumnDefinition columnDefinition2 = new DevExpress.XtraLayout.ColumnDefinition(); + DevExpress.XtraLayout.ColumnDefinition columnDefinition3 = new DevExpress.XtraLayout.ColumnDefinition(); + DevExpress.XtraLayout.ColumnDefinition columnDefinition4 = new DevExpress.XtraLayout.ColumnDefinition(); + DevExpress.XtraLayout.RowDefinition rowDefinition1 = new DevExpress.XtraLayout.RowDefinition(); + DevExpress.XtraLayout.RowDefinition rowDefinition2 = new DevExpress.XtraLayout.RowDefinition(); + DevExpress.XtraLayout.RowDefinition rowDefinition3 = new DevExpress.XtraLayout.RowDefinition(); + DevExpress.XtraLayout.RowDefinition rowDefinition4 = new DevExpress.XtraLayout.RowDefinition(); this.toolBarMenu1 = new Gs.DevApp.UserControl.UcToolBarMenu(); - this.tips = new DevExpress.Utils.ToolTipController(this.components); + this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage(); this.split1 = new DevExpress.XtraEditors.SplitContainerControl(); this.gcMain1 = new DevExpress.XtraGrid.GridControl(); @@ -43,8 +50,48 @@ this.bz = new DevExpress.XtraGrid.Columns.GridColumn(); this.sbbm = new DevExpress.XtraGrid.Columns.GridColumn(); this.djrq = new DevExpress.XtraGrid.Columns.GridColumn(); + this.checkUser = new DevExpress.XtraGrid.Columns.GridColumn(); + this.checkDate = new DevExpress.XtraGrid.Columns.GridColumn(); + this.checkStatus = new DevExpress.XtraGrid.Columns.GridColumn(); + this.upDataUser = new DevExpress.XtraGrid.Columns.GridColumn(); + this.upDataTime = new DevExpress.XtraGrid.Columns.GridColumn(); this.pageBar1 = new UserControls.Data.UcPageBar(); - this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); + this.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage(); + this.splitMx1 = new DevExpress.XtraEditors.SplitContainerControl(); + this.layoutMx1 = new DevExpress.XtraLayout.LayoutControl(); + this.lbGuid = new System.Windows.Forms.Label(); + this.txt_sbbm = new DevExpress.XtraEditors.TextEdit(); + this.txt_checkUser = new DevExpress.XtraEditors.TextEdit(); + this.txt_checkDate = new DevExpress.XtraEditors.TextEdit(); + this.txt_checkStatus = new DevExpress.XtraEditors.CheckEdit(); + this.txt_Guid = new DevExpress.XtraEditors.TextEdit(); + this.txt_bz = new DevExpress.XtraEditors.TextEdit(); + this.txt_djr = new DevExpress.XtraEditors.TextEdit(); + this.txt_djsj = new DevExpress.XtraEditors.TextEdit(); + this.txt_djrq = new DevExpress.XtraEditors.TextEdit(); + this.txt_UpDataTime = new DevExpress.XtraEditors.TextEdit(); + this.txt_UpDataUser = new DevExpress.XtraEditors.TextEdit(); + this.txt_sbmc = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); + this.Root = new DevExpress.XtraLayout.LayoutControlGroup(); + this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem(); + this.tips = new DevExpress.Utils.ToolTipController(this.components); + this.picCheckBox = new System.Windows.Forms.PictureBox(); + this.txt_createUser2 = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem17 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem18 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); + this.xtraTabControl1.SuspendLayout(); this.xtraTabPage1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.split1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.split1.Panel1)).BeginInit(); @@ -53,15 +100,50 @@ this.split1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gcMain1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); - this.xtraTabControl1.SuspendLayout(); + this.xtraTabPage2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitMx1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.splitMx1.Panel1)).BeginInit(); + this.splitMx1.Panel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitMx1.Panel2)).BeginInit(); + this.splitMx1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.layoutMx1)).BeginInit(); + this.layoutMx1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txt_sbbm.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_checkUser.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_checkDate.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_checkStatus.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_Guid.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_bz.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_djr.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_djsj.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_djrq.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_UpDataTime.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_UpDataUser.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_sbmc.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_createUser2.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit(); this.SuspendLayout(); // // toolBarMenu1 // this.toolBarMenu1.chkParameter = null; this.toolBarMenu1.currentAction = null; - this.toolBarMenu1.defaultActions = "鏌ヨ"; + this.toolBarMenu1.defaultActions = null; this.toolBarMenu1.Dock = System.Windows.Forms.DockStyle.Top; this.toolBarMenu1.guidKey = null; this.toolBarMenu1.isSetBtn = false; @@ -73,6 +155,19 @@ this.toolBarMenu1.TabIndex = 0; this.toolBarMenu1.xlsInService = null; this.toolBarMenu1.xlsOutParameter = null; + // + // xtraTabControl1 + // + this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.xtraTabControl1.Location = new System.Drawing.Point(0, 98); + this.xtraTabControl1.Margin = new System.Windows.Forms.Padding(4); + this.xtraTabControl1.Name = "xtraTabControl1"; + this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1; + this.xtraTabControl1.Size = new System.Drawing.Size(1410, 736); + this.xtraTabControl1.TabIndex = 3; + this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { + this.xtraTabPage1, + this.xtraTabPage2}); // // xtraTabPage1 // @@ -114,7 +209,7 @@ this.gcMain1.Margin = new System.Windows.Forms.Padding(4); this.gcMain1.Name = "gcMain1"; this.gcMain1.Size = new System.Drawing.Size(1408, 635); - this.gcMain1.TabIndex = 2; + this.gcMain1.TabIndex = 5; this.gcMain1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView1}); // @@ -130,7 +225,12 @@ this.djsj, this.bz, this.sbbm, - this.djrq}); + this.djrq, + this.checkUser, + this.checkDate, + this.checkStatus, + this.upDataUser, + this.upDataTime}); this.gridView1.DetailHeight = 428; this.gridView1.GridControl = this.gcMain1; this.gridView1.IndicatorWidth = 62; @@ -212,6 +312,61 @@ this.djrq.Tag = "djrq"; this.djrq.Width = 112; // + // checkUser + // + this.checkUser.Caption = "瀹℃牳浜�"; + this.checkUser.FieldName = "checkUser"; + this.checkUser.MinWidth = 30; + this.checkUser.Name = "checkUser"; + this.checkUser.Tag = "checkUser"; + this.checkUser.Visible = true; + this.checkUser.VisibleIndex = 5; + this.checkUser.Width = 112; + // + // checkDate + // + this.checkDate.Caption = "瀹℃牳鏃堕棿"; + this.checkDate.FieldName = "checkDate"; + this.checkDate.MinWidth = 30; + this.checkDate.Name = "checkDate"; + this.checkDate.Tag = "checkDate"; + this.checkDate.Visible = true; + this.checkDate.VisibleIndex = 6; + this.checkDate.Width = 112; + // + // checkStatus + // + this.checkStatus.Caption = "瀹℃牳鏍囪瘑"; + this.checkStatus.FieldName = "checkStatus"; + this.checkStatus.MinWidth = 30; + this.checkStatus.Name = "checkStatus"; + this.checkStatus.Tag = "checkStatus"; + this.checkStatus.Visible = true; + this.checkStatus.VisibleIndex = 7; + this.checkStatus.Width = 112; + // + // upDataUser + // + this.upDataUser.Caption = "鏇存柊浜�"; + this.upDataUser.FieldName = "upDataUser"; + this.upDataUser.MinWidth = 30; + this.upDataUser.Name = "upDataUser"; + this.upDataUser.Tag = "upDataUser"; + this.upDataUser.Visible = true; + this.upDataUser.VisibleIndex = 8; + this.upDataUser.Width = 112; + // + // upDataTime + // + this.upDataTime.Caption = "鏇存柊鏃堕棿"; + this.upDataTime.FieldName = "upDataTime"; + this.upDataTime.MinWidth = 30; + this.upDataTime.Name = "upDataTime"; + this.upDataTime.Tag = "upDataTime"; + this.upDataTime.Visible = true; + this.upDataTime.VisibleIndex = 9; + this.upDataTime.Width = 112; + // // pageBar1 // this.pageBar1.CurrentPage = 1; @@ -224,29 +379,435 @@ this.pageBar1.TabIndex = 4; this.pageBar1.TotalPages = 0; // - // xtraTabControl1 + // xtraTabPage2 // - this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.xtraTabControl1.Location = new System.Drawing.Point(0, 98); - this.xtraTabControl1.Margin = new System.Windows.Forms.Padding(4); - this.xtraTabControl1.Name = "xtraTabControl1"; - this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1; - this.xtraTabControl1.Size = new System.Drawing.Size(1410, 736); - this.xtraTabControl1.TabIndex = 3; - this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { - this.xtraTabPage1}); + this.xtraTabPage2.Controls.Add(this.splitMx1); + this.xtraTabPage2.Margin = new System.Windows.Forms.Padding(4); + this.xtraTabPage2.Name = "xtraTabPage2"; + this.xtraTabPage2.Size = new System.Drawing.Size(1408, 698); + this.xtraTabPage2.Text = "鏁版嵁璇︾粏"; + // + // splitMx1 + // + this.splitMx1.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitMx1.Horizontal = false; + this.splitMx1.Location = new System.Drawing.Point(0, 0); + this.splitMx1.Margin = new System.Windows.Forms.Padding(4); + this.splitMx1.Name = "splitMx1"; + // + // splitMx1.Panel1 + // + this.splitMx1.Panel1.Controls.Add(this.layoutMx1); + this.splitMx1.Panel1.Text = "Panel1"; + // + // splitMx1.Panel2 + // + this.splitMx1.Panel2.Text = "Panel2"; + this.splitMx1.ShowSplitGlyph = DevExpress.Utils.DefaultBoolean.True; + this.splitMx1.Size = new System.Drawing.Size(1408, 698); + this.splitMx1.SplitterPosition = 159; + this.splitMx1.TabIndex = 0; + // + // layoutMx1 + // + this.layoutMx1.Controls.Add(this.lbGuid); + this.layoutMx1.Controls.Add(this.txt_sbbm); + this.layoutMx1.Controls.Add(this.txt_checkUser); + this.layoutMx1.Controls.Add(this.txt_checkDate); + this.layoutMx1.Controls.Add(this.txt_checkStatus); + this.layoutMx1.Controls.Add(this.txt_Guid); + this.layoutMx1.Controls.Add(this.txt_bz); + this.layoutMx1.Controls.Add(this.txt_djr); + this.layoutMx1.Controls.Add(this.txt_djsj); + this.layoutMx1.Controls.Add(this.txt_djrq); + this.layoutMx1.Controls.Add(this.txt_UpDataTime); + this.layoutMx1.Controls.Add(this.txt_UpDataUser); + this.layoutMx1.Controls.Add(this.txt_sbmc); + this.layoutMx1.Dock = System.Windows.Forms.DockStyle.Fill; + this.layoutMx1.HiddenItems.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { + this.layoutControlItem9}); + this.layoutMx1.Location = new System.Drawing.Point(0, 0); + this.layoutMx1.Margin = new System.Windows.Forms.Padding(4); + this.layoutMx1.Name = "layoutMx1"; + this.layoutMx1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(1108, 0, 812, 500); + this.layoutMx1.Root = this.Root; + this.layoutMx1.Size = new System.Drawing.Size(1408, 159); + this.layoutMx1.TabIndex = 0; + this.layoutMx1.Text = "layoutControl1"; + // + // lbGuid + // + this.lbGuid.Location = new System.Drawing.Point(692, 131); + this.lbGuid.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbGuid.Name = "lbGuid"; + this.lbGuid.Size = new System.Drawing.Size(334, 34); + this.lbGuid.TabIndex = 1; + this.lbGuid.Text = "lbGuid"; + this.lbGuid.Visible = false; + // + // txt_sbbm + // + this.txt_sbbm.Location = new System.Drawing.Point(96, 46); + this.txt_sbbm.Margin = new System.Windows.Forms.Padding(4); + this.txt_sbbm.Name = "txt_sbbm"; + this.txt_sbbm.Properties.Appearance.Options.UseFont = true; + this.txt_sbbm.Size = new System.Drawing.Size(259, 28); + this.txt_sbbm.StyleController = this.layoutMx1; + this.txt_sbbm.TabIndex = 231; + this.txt_sbbm.Tag = ""; + // + // txt_checkUser + // + this.txt_checkUser.Location = new System.Drawing.Point(443, 81); + this.txt_checkUser.Margin = new System.Windows.Forms.Padding(4); + this.txt_checkUser.Name = "txt_checkUser"; + this.txt_checkUser.Size = new System.Drawing.Size(259, 28); + this.txt_checkUser.StyleController = this.layoutMx1; + this.txt_checkUser.TabIndex = 247; + this.txt_checkUser.Tag = "readonly"; + // + // txt_checkDate + // + this.txt_checkDate.Location = new System.Drawing.Point(96, 81); + this.txt_checkDate.Margin = new System.Windows.Forms.Padding(4); + this.txt_checkDate.Name = "txt_checkDate"; + this.txt_checkDate.Size = new System.Drawing.Size(259, 28); + this.txt_checkDate.StyleController = this.layoutMx1; + this.txt_checkDate.TabIndex = 248; + this.txt_checkDate.Tag = "readonly"; + // + // txt_checkStatus + // + this.txt_checkStatus.Location = new System.Drawing.Point(706, 81); + this.txt_checkStatus.Margin = new System.Windows.Forms.Padding(4); + this.txt_checkStatus.Name = "txt_checkStatus"; + this.txt_checkStatus.Properties.Caption = "瀹℃牳鏍囪瘑"; + this.txt_checkStatus.Size = new System.Drawing.Size(343, 27); + this.txt_checkStatus.StyleController = this.layoutMx1; + this.txt_checkStatus.TabIndex = 249; + this.txt_checkStatus.Tag = "readonly"; + // + // txt_Guid + // + this.txt_Guid.Location = new System.Drawing.Point(1137, 81); + this.txt_Guid.Margin = new System.Windows.Forms.Padding(4); + this.txt_Guid.Name = "txt_Guid"; + this.txt_Guid.Size = new System.Drawing.Size(259, 28); + this.txt_Guid.StyleController = this.layoutMx1; + this.txt_Guid.TabIndex = 250; + this.txt_Guid.Tag = ""; + // + // txt_bz + // + this.txt_bz.Location = new System.Drawing.Point(1137, 12); + this.txt_bz.Name = "txt_bz"; + this.txt_bz.Size = new System.Drawing.Size(259, 28); + this.txt_bz.StyleController = this.layoutMx1; + this.txt_bz.TabIndex = 251; + // + // txt_djr + // + this.txt_djr.Location = new System.Drawing.Point(443, 12); + this.txt_djr.Name = "txt_djr"; + this.txt_djr.Size = new System.Drawing.Size(259, 28); + this.txt_djr.StyleController = this.layoutMx1; + this.txt_djr.TabIndex = 251; + // + // txt_djsj + // + this.txt_djsj.Location = new System.Drawing.Point(790, 12); + this.txt_djsj.Name = "txt_djsj"; + this.txt_djsj.Size = new System.Drawing.Size(259, 28); + this.txt_djsj.StyleController = this.layoutMx1; + this.txt_djsj.TabIndex = 251; + // + // txt_djrq + // + this.txt_djrq.Location = new System.Drawing.Point(443, 46); + this.txt_djrq.Margin = new System.Windows.Forms.Padding(4); + this.txt_djrq.Name = "txt_djrq"; + this.txt_djrq.Properties.Appearance.Options.UseFont = true; + this.txt_djrq.Size = new System.Drawing.Size(259, 28); + this.txt_djrq.StyleController = this.layoutMx1; + this.txt_djrq.TabIndex = 231; + this.txt_djrq.Tag = ""; + // + // txt_UpDataTime + // + this.txt_UpDataTime.Location = new System.Drawing.Point(790, 46); + this.txt_UpDataTime.Margin = new System.Windows.Forms.Padding(4); + this.txt_UpDataTime.Name = "txt_UpDataTime"; + this.txt_UpDataTime.Properties.Appearance.Options.UseFont = true; + this.txt_UpDataTime.Size = new System.Drawing.Size(259, 28); + this.txt_UpDataTime.StyleController = this.layoutMx1; + this.txt_UpDataTime.TabIndex = 231; + this.txt_UpDataTime.Tag = "readonly"; + // + // txt_UpDataUser + // + this.txt_UpDataUser.Location = new System.Drawing.Point(1137, 46); + this.txt_UpDataUser.Margin = new System.Windows.Forms.Padding(4); + this.txt_UpDataUser.Name = "txt_UpDataUser"; + this.txt_UpDataUser.Properties.Appearance.Options.UseFont = true; + this.txt_UpDataUser.Size = new System.Drawing.Size(259, 28); + this.txt_UpDataUser.StyleController = this.layoutMx1; + this.txt_UpDataUser.TabIndex = 231; + this.txt_UpDataUser.Tag = "readonly"; + // + // txt_sbmc + // + this.txt_sbmc.Location = new System.Drawing.Point(96, 12); + this.txt_sbmc.Name = "txt_sbmc"; + this.txt_sbmc.Size = new System.Drawing.Size(259, 28); + this.txt_sbmc.StyleController = this.layoutMx1; + this.txt_sbmc.TabIndex = 251; + // + // layoutControlItem9 + // + this.layoutControlItem9.Control = this.lbGuid; + this.layoutControlItem9.Location = new System.Drawing.Point(542, 96); + this.layoutControlItem9.Name = "layoutControlItem9"; + this.layoutControlItem9.OptionsTableLayoutItem.ColumnIndex = 2; + this.layoutControlItem9.OptionsTableLayoutItem.RowIndex = 3; + this.layoutControlItem9.Size = new System.Drawing.Size(271, 32); + this.layoutControlItem9.Text = "lbGuid"; + this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0); + this.layoutControlItem9.TextVisible = false; + // + // Root + // + this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; + this.Root.GroupBordersVisible = false; + this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { + this.layoutControlItem4, + this.layoutControlItem3, + this.layoutControlItem2, + this.layoutControlItem1, + this.layoutControlItem6, + this.layoutControlItem5, + this.layoutControlItem8, + this.layoutControlItem7, + this.layoutControlItem10, + this.layoutControlItem13, + this.layoutControlItem18, + this.layoutControlItem12}); + this.Root.LayoutMode = DevExpress.XtraLayout.Utils.LayoutMode.Table; + this.Root.Name = "Root"; + columnDefinition1.SizeType = System.Windows.Forms.SizeType.Percent; + columnDefinition1.Width = 100D; + columnDefinition2.SizeType = System.Windows.Forms.SizeType.Percent; + columnDefinition2.Width = 100D; + columnDefinition3.SizeType = System.Windows.Forms.SizeType.Percent; + columnDefinition3.Width = 100D; + columnDefinition4.SizeType = System.Windows.Forms.SizeType.Percent; + columnDefinition4.Width = 100D; + this.Root.OptionsTableLayoutGroup.ColumnDefinitions.AddRange(new DevExpress.XtraLayout.ColumnDefinition[] { + columnDefinition1, + columnDefinition2, + columnDefinition3, + columnDefinition4}); + rowDefinition1.Height = 100D; + rowDefinition1.SizeType = System.Windows.Forms.SizeType.Percent; + rowDefinition2.Height = 100D; + rowDefinition2.SizeType = System.Windows.Forms.SizeType.Percent; + rowDefinition3.Height = 100D; + rowDefinition3.SizeType = System.Windows.Forms.SizeType.Percent; + rowDefinition4.Height = 100D; + rowDefinition4.SizeType = System.Windows.Forms.SizeType.Percent; + this.Root.OptionsTableLayoutGroup.RowDefinitions.AddRange(new DevExpress.XtraLayout.RowDefinition[] { + rowDefinition1, + rowDefinition2, + rowDefinition3, + rowDefinition4}); + this.Root.Size = new System.Drawing.Size(1408, 159); + this.Root.TextVisible = false; + // + // layoutControlItem4 + // + this.layoutControlItem4.Control = this.txt_bz; + this.layoutControlItem4.Location = new System.Drawing.Point(1041, 0); + this.layoutControlItem4.Name = "layoutControlItem4"; + this.layoutControlItem4.OptionsTableLayoutItem.ColumnIndex = 3; + this.layoutControlItem4.Size = new System.Drawing.Size(347, 34); + this.layoutControlItem4.Text = "澶囨敞"; + this.layoutControlItem4.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem3 + // + this.layoutControlItem3.Control = this.txt_djr; + this.layoutControlItem3.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem3.CustomizationFormText = "鐐规浜�"; + this.layoutControlItem3.Location = new System.Drawing.Point(347, 0); + this.layoutControlItem3.Name = "layoutControlItem3"; + this.layoutControlItem3.OptionsTableLayoutItem.ColumnIndex = 1; + this.layoutControlItem3.Size = new System.Drawing.Size(347, 34); + this.layoutControlItem3.Text = "鐐规浜�"; + this.layoutControlItem3.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem2 + // + this.layoutControlItem2.Control = this.txt_djsj; + this.layoutControlItem2.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem2.CustomizationFormText = "鐐规鏃堕棿"; + this.layoutControlItem2.Location = new System.Drawing.Point(694, 0); + this.layoutControlItem2.Name = "layoutControlItem2"; + this.layoutControlItem2.OptionsTableLayoutItem.ColumnIndex = 2; + this.layoutControlItem2.Size = new System.Drawing.Size(347, 34); + this.layoutControlItem2.Text = "鐐规鏃堕棿"; + this.layoutControlItem2.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem1 + // + this.layoutControlItem1.Control = this.txt_sbmc; + this.layoutControlItem1.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem1.CustomizationFormText = "璁惧鍚嶇О"; + this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); + this.layoutControlItem1.Name = "layoutControlItem1"; + this.layoutControlItem1.Size = new System.Drawing.Size(347, 34); + this.layoutControlItem1.Text = "璁惧鍚嶇О"; + this.layoutControlItem1.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem6 + // + this.layoutControlItem6.Control = this.txt_sbbm; + this.layoutControlItem6.Location = new System.Drawing.Point(0, 34); + this.layoutControlItem6.Name = "layoutControlItem6"; + this.layoutControlItem6.OptionsTableLayoutItem.RowIndex = 1; + this.layoutControlItem6.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem6.Text = "璁惧缂栫爜"; + this.layoutControlItem6.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem5 + // + this.layoutControlItem5.Control = this.txt_djrq; + this.layoutControlItem5.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem5.CustomizationFormText = "鐐规鏃ユ湡"; + this.layoutControlItem5.Location = new System.Drawing.Point(347, 34); + this.layoutControlItem5.Name = "layoutControlItem5"; + this.layoutControlItem5.OptionsTableLayoutItem.ColumnIndex = 1; + this.layoutControlItem5.OptionsTableLayoutItem.RowIndex = 1; + this.layoutControlItem5.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem5.Text = "鐐规鏃ユ湡"; + this.layoutControlItem5.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem8 + // + this.layoutControlItem8.Control = this.txt_checkDate; + this.layoutControlItem8.Location = new System.Drawing.Point(0, 69); + this.layoutControlItem8.Name = "layoutControlItem8"; + this.layoutControlItem8.OptionsTableLayoutItem.RowIndex = 2; + this.layoutControlItem8.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem8.Text = "瀹℃牳鏃堕棿"; + this.layoutControlItem8.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem7 + // + this.layoutControlItem7.Control = this.txt_checkUser; + this.layoutControlItem7.Location = new System.Drawing.Point(347, 69); + this.layoutControlItem7.Name = "layoutControlItem7"; + this.layoutControlItem7.OptionsTableLayoutItem.ColumnIndex = 1; + this.layoutControlItem7.OptionsTableLayoutItem.RowIndex = 2; + this.layoutControlItem7.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem7.Text = "瀹℃牳浜�"; + this.layoutControlItem7.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem10 + // + this.layoutControlItem10.Control = this.txt_checkStatus; + this.layoutControlItem10.Location = new System.Drawing.Point(694, 69); + this.layoutControlItem10.Name = "layoutControlItem10"; + this.layoutControlItem10.OptionsTableLayoutItem.ColumnIndex = 2; + this.layoutControlItem10.OptionsTableLayoutItem.RowIndex = 2; + this.layoutControlItem10.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem10.TextSize = new System.Drawing.Size(0, 0); + this.layoutControlItem10.TextVisible = false; + // + // layoutControlItem13 + // + this.layoutControlItem13.Control = this.txt_Guid; + this.layoutControlItem13.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem13.CustomizationFormText = "Guid"; + this.layoutControlItem13.Location = new System.Drawing.Point(1041, 69); + this.layoutControlItem13.Name = "layoutControlItem13"; + this.layoutControlItem13.OptionsTableLayoutItem.ColumnIndex = 3; + this.layoutControlItem13.OptionsTableLayoutItem.RowIndex = 2; + this.layoutControlItem13.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem13.Text = "Guid"; + this.layoutControlItem13.TextSize = new System.Drawing.Size(72, 22); + this.layoutControlItem13.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; + // + // picCheckBox + // + this.picCheckBox.Image = global::Gs.DevApp.Properties.Resources.ico_noCheck; + this.picCheckBox.Location = new System.Drawing.Point(1285, 29); + this.picCheckBox.Margin = new System.Windows.Forms.Padding(4); + this.picCheckBox.Name = "picCheckBox"; + this.picCheckBox.Size = new System.Drawing.Size(125, 61); + this.picCheckBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.picCheckBox.TabIndex = 9; + this.picCheckBox.TabStop = false; + this.picCheckBox.Visible = false; + // + // txt_createUser2 + // + this.txt_createUser2.Location = new System.Drawing.Point(96, 12); + this.txt_createUser2.Margin = new System.Windows.Forms.Padding(4); + this.txt_createUser2.Name = "txt_createUser2"; + this.txt_createUser2.Properties.Appearance.Options.UseFont = true; + this.txt_createUser2.Size = new System.Drawing.Size(259, 28); + this.txt_createUser2.TabIndex = 231; + this.txt_createUser2.Tag = "readonly"; + // + // layoutControlItem17 + // + this.layoutControlItem17.Control = this.txt_createUser2; + this.layoutControlItem17.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem17.CustomizationFormText = "鍒涘缓浜�"; + this.layoutControlItem17.Location = new System.Drawing.Point(0, 0); + this.layoutControlItem17.Name = "layoutControlItem17"; + this.layoutControlItem17.Size = new System.Drawing.Size(347, 34); + this.layoutControlItem17.Text = "鍒涘缓浜�"; + this.layoutControlItem17.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem18 + // + this.layoutControlItem18.Control = this.txt_UpDataTime; + this.layoutControlItem18.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem18.CustomizationFormText = "鏇存柊鏃堕棿"; + this.layoutControlItem18.Location = new System.Drawing.Point(694, 34); + this.layoutControlItem18.Name = "layoutControlItem18"; + this.layoutControlItem18.OptionsTableLayoutItem.ColumnIndex = 2; + this.layoutControlItem18.OptionsTableLayoutItem.RowIndex = 1; + this.layoutControlItem18.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem18.Text = "鏇存柊鏃堕棿"; + this.layoutControlItem18.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem12 + // + this.layoutControlItem12.Control = this.txt_UpDataUser; + this.layoutControlItem12.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem12.CustomizationFormText = "鏇存柊浜�"; + this.layoutControlItem12.Location = new System.Drawing.Point(1041, 34); + this.layoutControlItem12.Name = "layoutControlItem12"; + this.layoutControlItem12.OptionsTableLayoutItem.ColumnIndex = 3; + this.layoutControlItem12.OptionsTableLayoutItem.RowIndex = 1; + this.layoutControlItem12.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem12.Text = "鏇存柊浜�"; + this.layoutControlItem12.TextSize = new System.Drawing.Size(72, 22); // // YS_sb_djjl // this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 22F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1410, 834); + this.Controls.Add(this.picCheckBox); this.Controls.Add(this.xtraTabControl1); this.Controls.Add(this.toolBarMenu1); - this.IconOptions.Image = global::Gs.DevApp.Properties.Resources.logo_png_black; this.Margin = new System.Windows.Forms.Padding(4); this.Name = "YS_sb_djjl"; this.Text = "璁惧鐐规璁板綍琛�"; + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); + this.xtraTabControl1.ResumeLayout(false); this.xtraTabPage1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.split1.Panel1)).EndInit(); this.split1.Panel1.ResumeLayout(false); @@ -255,26 +816,99 @@ this.split1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.gcMain1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); - this.xtraTabControl1.ResumeLayout(false); + this.xtraTabPage2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitMx1.Panel1)).EndInit(); + this.splitMx1.Panel1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitMx1.Panel2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.splitMx1)).EndInit(); + this.splitMx1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.layoutMx1)).EndInit(); + this.layoutMx1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.txt_sbbm.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_checkUser.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_checkDate.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_checkStatus.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_Guid.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_bz.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_djr.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_djsj.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_djrq.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_UpDataTime.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_UpDataUser.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_sbmc.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_createUser2.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit(); this.ResumeLayout(false); } #endregion private UserControl.UcToolBarMenu toolBarMenu1; - private DevExpress.Utils.ToolTipController tips; + private DevExpress.XtraTab.XtraTabControl xtraTabControl1; private DevExpress.XtraTab.XtraTabPage xtraTabPage1; private DevExpress.XtraEditors.SplitContainerControl split1; + private UserControls.Data.UcPageBar pageBar1; + private DevExpress.XtraTab.XtraTabPage xtraTabPage2; + private DevExpress.XtraEditors.SplitContainerControl splitMx1; + private System.Windows.Forms.Label lbGuid; + private DevExpress.XtraEditors.TextEdit txt_sbbm; + private DevExpress.XtraLayout.LayoutControl layoutMx1; + private DevExpress.XtraLayout.LayoutControlGroup Root; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9; + private DevExpress.Utils.ToolTipController tips; + private DevExpress.XtraEditors.TextEdit txt_checkUser; + private DevExpress.XtraEditors.TextEdit txt_checkDate; + private DevExpress.XtraEditors.CheckEdit txt_checkStatus; + private System.Windows.Forms.PictureBox picCheckBox; + private DevExpress.XtraEditors.TextEdit txt_bz; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; + private DevExpress.XtraEditors.TextEdit txt_djr; + private DevExpress.XtraEditors.TextEdit txt_djsj; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; + private DevExpress.XtraEditors.TextEdit txt_Guid; + private DevExpress.XtraEditors.TextEdit txt_djrq; + private DevExpress.XtraEditors.TextEdit txt_UpDataTime; + private DevExpress.XtraEditors.TextEdit txt_createUser2; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem17; + private DevExpress.XtraEditors.TextEdit txt_UpDataUser; + private DevExpress.XtraEditors.TextEdit txt_sbmc; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem13; private DevExpress.XtraGrid.GridControl gcMain1; private DevExpress.XtraGrid.Views.Grid.GridView gridView1; private DevExpress.XtraGrid.Columns.GridColumn guid; - private UserControls.Data.UcPageBar pageBar1; - private DevExpress.XtraTab.XtraTabControl xtraTabControl1; private DevExpress.XtraGrid.Columns.GridColumn sbmc; private DevExpress.XtraGrid.Columns.GridColumn djr; private DevExpress.XtraGrid.Columns.GridColumn djsj; private DevExpress.XtraGrid.Columns.GridColumn bz; private DevExpress.XtraGrid.Columns.GridColumn sbbm; private DevExpress.XtraGrid.Columns.GridColumn djrq; + private DevExpress.XtraGrid.Columns.GridColumn checkUser; + private DevExpress.XtraGrid.Columns.GridColumn checkDate; + private DevExpress.XtraGrid.Columns.GridColumn checkStatus; + private DevExpress.XtraGrid.Columns.GridColumn upDataUser; + private DevExpress.XtraGrid.Columns.GridColumn upDataTime; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem18; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem12; } } \ No newline at end of file diff --git a/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sb_djjl.cs b/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sb_djjl.cs index 69189dd..27e2c2f 100644 --- a/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sb_djjl.cs +++ b/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sb_djjl.cs @@ -1,39 +1,59 @@ +锘縰sing DevExpress.ClipboardSource.SpreadsheetML; +using DevExpress.XtraEditors; 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.ComponentModel; using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using System.Windows.Media.Animation; namespace Gs.DevApp.DevFrm { + /// <summary> + /// 璁惧鐐规璁板綍琛� + /// </summary> public partial class YS_sb_djjl : DevExpress.XtraEditors.XtraForm { - //璁惧鐐规璁板綍琛� string _webServiceName = "YS_sb_djjl/"; List<FilterEntity> _filterList = new List<FilterEntity>(); + public YS_sb_djjl() { InitializeComponent(); + this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick;//鏌ヨ浜嬩欢 + this.toolBarMenu1.btnAddClick += ToolBarMenu1_btnAddClick;//鏂板浜嬩欢 + this.toolBarMenu1.btnEdtClick += ToolBarMenu1_btnEdtClick;//淇敼浜嬩欢 + this.toolBarMenu1.btnSaveClick += ToolBarMenu1_btnSaveClick; this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; - this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; + this.toolBarMenu1.btnDelClick += ToolBarMenu1_btnDelClick1; + this.toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick; + toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; + toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; this.toolBarMenu1.getXmlConfig(); - Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, this, "", "", (value) => + Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "checkStatus", "", (value) => { - - }); + Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0); + }, tips); Gs.DevApp.ToolBox.UtilityHelper.SetTabParameter(gridView1, xtraTabControl1, pageBar1, (value) => { + getModel(value); }, (value) => { getPageList(this.pageBar1.CurrentPage); - }); + }, lbGuid); getPageList(1); pageBar1.PagerEvent += PageBar1_PagerEvent; } + private async void GridView1_ColumnFilterChanged(object sender, EventArgs e) { _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns, gridView1); @@ -74,6 +94,79 @@ _filterList = e.FilterList; getPageList(1); } + /// <summary> + /// 瀹℃牳浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnChkClick(object sender, EventArgs e) + { + _toolCk(1); + } + + /// <summary> + /// 鍙嶅鏍� + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + /// <exception cref="NotImplementedException"></exception> + private void ToolBarMenu1_btnFChkClick(object sender, EventArgs e) + { + _toolCk(0); + } + /// <summary> + /// 鍙栨秷浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnEscClick(object sender, EventArgs e) + { + Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 1); + } + + /// <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_Guid, gridView1); + //(rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_Guid, gridView1, "hourlyType"); + if (string.IsNullOrEmpty(rowGuid)) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + if (!MsgHelper.AskQuestion("浣犻�夋嫨浜嗐��" + rowName + "銆戯紝纭畾鍒犻櫎鍚楋紵")) + return; + List<dynamic> lst = new List<dynamic>(); + lst.Add(rowGuid); + var _obj = new + { + guid = rowGuid, + mxGuid = Guid.Empty.ToString(), + }; + try + { + string strJson = UtilityHelper.HttpPost("", _webServiceName + "DeleteModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strJson); + if (_rtn.rtnCode > 0) + { + if (xtraTabControl1.SelectedTabPageIndex == 0) + { } + else + Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 2); + getPageList(this.pageBar1.CurrentPage); + } + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } /// <summary> /// 鍒锋柊浜嬩欢 @@ -82,7 +175,87 @@ /// <param name="e"></param> private void ToolBarMenu1_btnLoadClick(object sender, EventArgs e) { + if (xtraTabControl1.SelectedTabPageIndex == 1) + getModel(lbGuid.Text.Trim()); + else + { + getPageList(this.pageBar1.CurrentPage); + } + } + + /// <summary> + /// 鏂板浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnAddClick(object sender, EventArgs e) + { + lbGuid.Text = ""; + Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 4); + UtilityHelper.CleanValueByControl(this.layoutMx1.Controls, true); getPageList(this.pageBar1.CurrentPage); + } + private void ToolBarMenu1_btnEdtClick(object sender, EventArgs e) + { + string rowGuid, rowName; + (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1,lbGuid, txt_Guid, gridView1); + if (string.IsNullOrEmpty(rowGuid)) + { + MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 3); + getModel(rowGuid); + getPageList(this.pageBar1.CurrentPage); + } + + /// <summary> + /// 淇濆瓨浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) + { + toolBarMenu1.isSetBtn = false; + string sbmc = txt_sbmc.Text.Trim();//鎻愪氦鐘舵�� + string djr = txt_djr.Text.Trim();//鐐规浜� + string djsj = txt_djsj.Text.Trim();//鐐规鏃堕棿 + string bz = txt_bz.Text.Trim();//澶囨敞 + string djrq = txt_djrq.Text.Trim();//鐐规鏃ユ湡(澶氫綑) + string sbbm = txt_sbbm.Text.Trim();//璁惧缂栫爜 + string UpDataTime = txt_UpDataTime.Text.Trim();//鏇存柊鏃堕棿 + string UpDataUser = txt_UpDataUser.Text.Trim();//鏇存柊浜� + + try + { + var _obj = new + { + guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //涓诲缓 + sbmc = sbmc, + djr = djr, + djsj = djsj, + bz = bz, + djrq = djrq, + sbbm = sbbm, + UpDataTime= UpDataTime, + UpDataUser= UpDataUser + }; + 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.outGuid; + toolBarMenu1.isSetBtn = true; + UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, false); + toolBarMenu1.currentAction = ""; + Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 6); + } + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } } /// <summary> @@ -93,12 +266,13 @@ private void getPageList(int curPage) { gcMain1.DataSource = null; var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); - PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "a.INDEP_DATE", "asc", "", _sbSqlWhere.ToString()); - string json = JsonConvert.SerializeObject(pgq); + var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "", "", "", _sbSqlWhere.ToString()); + var json = JsonConvert.SerializeObject(pgq); try { - var strReturn = UtilityHelper.HttpPost("", _webServiceName + "GetListPage", json); - ReturnModel<PageListModel> dd = UtilityHelper.ReturnToTablePage(strReturn); + var strReturn = UtilityHelper.HttpPost("", + _webServiceName + "GetListPage", json); + var dd = UtilityHelper.ReturnToTablePage(strReturn); if (dd.rtnCode > 0) { DataTable dt = dd.rtnData.list; @@ -109,7 +283,6 @@ gcMain1.DataSource = dt; gcMain1.ForceInitialize(); gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1); - } else UtilityHelper.SetDefaultTable(gcMain1, gridView1); @@ -125,8 +298,109 @@ } catch (Exception ex) { - ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); + MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); } } + + /// <summary> + /// 瀛愯〃鏌ヨ + /// </summary> + /// <param name="strGuid">涓婚敭</param> + /// <param name="isEdit">鏄惁鍙紪杈�</param> + /// <param name="tabIdx">閫夐」鍗″簭鍙�</param> + private void getModel(string strGuid) + { + bool isEdit = false; + if (toolBarMenu1.currentAction == "add") return; + if (toolBarMenu1.currentAction == "edit") isEdit = true; + if (string.IsNullOrEmpty(strGuid)) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + 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; + UtilityHelper.SetValueByObj(this.layoutMx1.Controls, dy, isEdit); + + } + else + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + + /// <summary> + /// 宸ュ叿鏉′簨浠� + /// </summary> + /// <param name="inFieldValue"></param> + private void _toolCk(int _inFieldValue) + { + string strMsg = ""; + switch (_inFieldValue) + { + case 1: + strMsg = "瀹℃牳"; + break; + case 0: + strMsg = "鍙嶅鏍�"; + break; + } + ; + toolBarMenu1.guidKey = ""; + string rowGuid, rowName; + (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_Guid, gridView1); + //(rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_SalaryType, gridView1, "hourlyType"); + if (string.IsNullOrEmpty(rowGuid)) + { + MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + if (!MsgHelper.AskQuestion("浣犻�夋嫨浜嗐��" + rowName + "銆戯紝纭畾" + strMsg + "鍚楋紵")) + return; + var _obj = new + { + guid = rowGuid, + ckValue = _inFieldValue, + parameter = "YS_sb_djjl,check_Date,check_Status,check_user" + }; + try + { + var strJson = UtilityHelper.HttpPost("", "General/GeneralCheck", + JsonConvert.SerializeObject(_obj)); + var _rtn = UtilityHelper.ReturnToDynamic(strJson); + if (_rtn.rtnCode > 0) + { + MsgHelper.ShowInformation(_rtn.rtnData.outMsg.ToString()); + if (xtraTabControl1.SelectedTabPageIndex == 1) + { + getModel(lbGuid.Text.Trim()); + } + int rowHandle = gridView1.LocateByValue(1, gridView1.Columns["guid"], rowGuid); + gridView1.FocusedRowHandle = rowHandle; + UtilityHelper.SetCheckIco(gridView1, "checkStatus", "checkUser", "checkDate", picCheckBox, this, _inFieldValue.ToString()); + } + else + MsgHelper.ShowError(_rtn.rtnData.outMsg.ToString()); + } + catch (Exception ex) + { + MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); + } + } + + } -} +} \ No newline at end of file diff --git a/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sb_djjl.resx b/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sb_djjl.resx index a4826a3..5160e8b 100644 --- a/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sb_djjl.resx +++ b/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sb_djjl.resx @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> +锘�<?xml version="1.0" encoding="utf-8"?> <root> <!-- Microsoft ResX Schema diff --git a/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbbyjlb.Designer.cs b/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbbyjlb.Designer.cs index 51e192b..7591af5 100644 --- a/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbbyjlb.Designer.cs +++ b/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbbyjlb.Designer.cs @@ -1,5 +1,4 @@ -/* Create By GS EasyCode */ -namespace Gs.DevApp.DevFrm +锘縩amespace Gs.DevApp.DevFrm { partial class YS_sbbyjlb { @@ -30,8 +29,16 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); + DevExpress.XtraLayout.ColumnDefinition columnDefinition1 = new DevExpress.XtraLayout.ColumnDefinition(); + DevExpress.XtraLayout.ColumnDefinition columnDefinition2 = new DevExpress.XtraLayout.ColumnDefinition(); + DevExpress.XtraLayout.ColumnDefinition columnDefinition3 = new DevExpress.XtraLayout.ColumnDefinition(); + DevExpress.XtraLayout.ColumnDefinition columnDefinition4 = new DevExpress.XtraLayout.ColumnDefinition(); + DevExpress.XtraLayout.RowDefinition rowDefinition1 = new DevExpress.XtraLayout.RowDefinition(); + DevExpress.XtraLayout.RowDefinition rowDefinition2 = new DevExpress.XtraLayout.RowDefinition(); + DevExpress.XtraLayout.RowDefinition rowDefinition3 = new DevExpress.XtraLayout.RowDefinition(); + DevExpress.XtraLayout.RowDefinition rowDefinition4 = new DevExpress.XtraLayout.RowDefinition(); this.toolBarMenu1 = new Gs.DevApp.UserControl.UcToolBarMenu(); - this.tips = new DevExpress.Utils.ToolTipController(this.components); + this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage(); this.split1 = new DevExpress.XtraEditors.SplitContainerControl(); this.gcMain1 = new DevExpress.XtraGrid.GridControl(); @@ -45,8 +52,52 @@ this.createTime = new DevExpress.XtraGrid.Columns.GridColumn(); this.lastModifyUser = new DevExpress.XtraGrid.Columns.GridColumn(); this.lastModifyTime = new DevExpress.XtraGrid.Columns.GridColumn(); + this.checkUser = new DevExpress.XtraGrid.Columns.GridColumn(); + this.checkDate = new DevExpress.XtraGrid.Columns.GridColumn(); + this.checkStatus = new DevExpress.XtraGrid.Columns.GridColumn(); + this.upDataUser = new DevExpress.XtraGrid.Columns.GridColumn(); + this.upDataTime = new DevExpress.XtraGrid.Columns.GridColumn(); this.pageBar1 = new UserControls.Data.UcPageBar(); - this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); + this.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage(); + this.splitMx1 = new DevExpress.XtraEditors.SplitContainerControl(); + this.layoutMx1 = new DevExpress.XtraLayout.LayoutControl(); + this.lbGuid = new System.Windows.Forms.Label(); + this.txt_createTime = new DevExpress.XtraEditors.TextEdit(); + this.txt_checkUser = new DevExpress.XtraEditors.TextEdit(); + this.txt_checkDate = new DevExpress.XtraEditors.TextEdit(); + this.txt_checkStatus = new DevExpress.XtraEditors.CheckEdit(); + this.txt_Guid = new DevExpress.XtraEditors.TextEdit(); + this.txt_lastModifyTime = new DevExpress.XtraEditors.TextEdit(); + this.txt_lastModifyUser = new DevExpress.XtraEditors.TextEdit(); + this.txt_remark = new DevExpress.XtraEditors.TextEdit(); + this.txt_customerCode = new DevExpress.XtraEditors.TextEdit(); + this.txt_customerName = new DevExpress.XtraEditors.TextEdit(); + this.txt_createUser = new DevExpress.XtraEditors.TextEdit(); + this.txt_UpDataTime = new DevExpress.XtraEditors.TextEdit(); + this.txt_UpDataUser = new DevExpress.XtraEditors.TextEdit(); + this.txt_submitStatus = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); + this.Root = new DevExpress.XtraLayout.LayoutControlGroup(); + this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem16 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem18 = new DevExpress.XtraLayout.LayoutControlItem(); + this.tips = new DevExpress.Utils.ToolTipController(this.components); + this.picCheckBox = new System.Windows.Forms.PictureBox(); + this.txt_createUser2 = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem17 = new DevExpress.XtraLayout.LayoutControlItem(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); + this.xtraTabControl1.SuspendLayout(); this.xtraTabPage1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.split1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.split1.Panel1)).BeginInit(); @@ -55,15 +106,54 @@ this.split1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gcMain1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); - this.xtraTabControl1.SuspendLayout(); + this.xtraTabPage2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitMx1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.splitMx1.Panel1)).BeginInit(); + this.splitMx1.Panel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitMx1.Panel2)).BeginInit(); + this.splitMx1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.layoutMx1)).BeginInit(); + this.layoutMx1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txt_createTime.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_checkUser.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_checkDate.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_checkStatus.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_Guid.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_lastModifyTime.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_lastModifyUser.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_remark.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_customerCode.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_customerName.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_createUser.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_UpDataTime.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_UpDataUser.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_submitStatus.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_createUser2.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).BeginInit(); this.SuspendLayout(); // // toolBarMenu1 // this.toolBarMenu1.chkParameter = null; this.toolBarMenu1.currentAction = null; - this.toolBarMenu1.defaultActions = "鏌ヨ"; + this.toolBarMenu1.defaultActions = null; this.toolBarMenu1.Dock = System.Windows.Forms.DockStyle.Top; this.toolBarMenu1.guidKey = null; this.toolBarMenu1.isSetBtn = false; @@ -75,6 +165,19 @@ this.toolBarMenu1.TabIndex = 0; this.toolBarMenu1.xlsInService = null; this.toolBarMenu1.xlsOutParameter = null; + // + // xtraTabControl1 + // + this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.xtraTabControl1.Location = new System.Drawing.Point(0, 98); + this.xtraTabControl1.Margin = new System.Windows.Forms.Padding(4); + this.xtraTabControl1.Name = "xtraTabControl1"; + this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1; + this.xtraTabControl1.Size = new System.Drawing.Size(1410, 736); + this.xtraTabControl1.TabIndex = 3; + this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { + this.xtraTabPage1, + this.xtraTabPage2}); // // xtraTabPage1 // @@ -116,7 +219,7 @@ this.gcMain1.Margin = new System.Windows.Forms.Padding(4); this.gcMain1.Name = "gcMain1"; this.gcMain1.Size = new System.Drawing.Size(1408, 635); - this.gcMain1.TabIndex = 2; + this.gcMain1.TabIndex = 5; this.gcMain1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView1}); // @@ -134,7 +237,12 @@ this.createUser, this.createTime, this.lastModifyUser, - this.lastModifyTime}); + this.lastModifyTime, + this.checkUser, + this.checkDate, + this.checkStatus, + this.upDataUser, + this.upDataTime}); this.gridView1.DetailHeight = 428; this.gridView1.GridControl = this.gcMain1; this.gridView1.IndicatorWidth = 62; @@ -160,7 +268,7 @@ this.submitStatus.Name = "submitStatus"; this.submitStatus.Tag = "submitStatus"; this.submitStatus.Visible = true; - this.submitStatus.VisibleIndex = 1; + this.submitStatus.VisibleIndex = 0; this.submitStatus.Width = 112; // // customerCode @@ -171,7 +279,7 @@ this.customerCode.Name = "customerCode"; this.customerCode.Tag = "customerCode"; this.customerCode.Visible = true; - this.customerCode.VisibleIndex = 2; + this.customerCode.VisibleIndex = 1; this.customerCode.Width = 112; // // customerName @@ -182,7 +290,7 @@ this.customerName.Name = "customerName"; this.customerName.Tag = "customerName"; this.customerName.Visible = true; - this.customerName.VisibleIndex = 3; + this.customerName.VisibleIndex = 2; this.customerName.Width = 112; // // remark @@ -193,7 +301,7 @@ this.remark.Name = "remark"; this.remark.Tag = "remark"; this.remark.Visible = true; - this.remark.VisibleIndex = 4; + this.remark.VisibleIndex = 3; this.remark.Width = 112; // // createUser @@ -204,7 +312,7 @@ this.createUser.Name = "createUser"; this.createUser.Tag = "createUser"; this.createUser.Visible = true; - this.createUser.VisibleIndex = 5; + this.createUser.VisibleIndex = 4; this.createUser.Width = 112; // // createTime @@ -215,7 +323,7 @@ this.createTime.Name = "createTime"; this.createTime.Tag = "createTime"; this.createTime.Visible = true; - this.createTime.VisibleIndex = 6; + this.createTime.VisibleIndex = 5; this.createTime.Width = 112; // // lastModifyUser @@ -226,7 +334,7 @@ this.lastModifyUser.Name = "lastModifyUser"; this.lastModifyUser.Tag = "lastModifyUser"; this.lastModifyUser.Visible = true; - this.lastModifyUser.VisibleIndex = 7; + this.lastModifyUser.VisibleIndex = 6; this.lastModifyUser.Width = 112; // // lastModifyTime @@ -237,8 +345,63 @@ this.lastModifyTime.Name = "lastModifyTime"; this.lastModifyTime.Tag = "lastModifyTime"; this.lastModifyTime.Visible = true; - this.lastModifyTime.VisibleIndex = 8; + this.lastModifyTime.VisibleIndex = 7; this.lastModifyTime.Width = 112; + // + // checkUser + // + this.checkUser.Caption = "瀹℃牳浜�"; + this.checkUser.FieldName = "checkUser"; + this.checkUser.MinWidth = 30; + this.checkUser.Name = "checkUser"; + this.checkUser.Tag = "checkUser"; + this.checkUser.Visible = true; + this.checkUser.VisibleIndex = 8; + this.checkUser.Width = 112; + // + // checkDate + // + this.checkDate.Caption = "瀹℃牳鏃堕棿"; + this.checkDate.FieldName = "checkDate"; + this.checkDate.MinWidth = 30; + this.checkDate.Name = "checkDate"; + this.checkDate.Tag = "checkDate"; + this.checkDate.Visible = true; + this.checkDate.VisibleIndex = 9; + this.checkDate.Width = 112; + // + // checkStatus + // + this.checkStatus.Caption = "瀹℃牳鏍囪瘑"; + this.checkStatus.FieldName = "checkStatus"; + this.checkStatus.MinWidth = 30; + this.checkStatus.Name = "checkStatus"; + this.checkStatus.Tag = "checkStatus"; + this.checkStatus.Visible = true; + this.checkStatus.VisibleIndex = 10; + this.checkStatus.Width = 112; + // + // upDataUser + // + this.upDataUser.Caption = "鏇存柊浜�"; + this.upDataUser.FieldName = "upDataUser"; + this.upDataUser.MinWidth = 30; + this.upDataUser.Name = "upDataUser"; + this.upDataUser.Tag = "upDataUser"; + this.upDataUser.Visible = true; + this.upDataUser.VisibleIndex = 11; + this.upDataUser.Width = 112; + // + // upDataTime + // + this.upDataTime.Caption = "鏇存柊鏃堕棿"; + this.upDataTime.FieldName = "upDataTime"; + this.upDataTime.MinWidth = 30; + this.upDataTime.Name = "upDataTime"; + this.upDataTime.Tag = "upDataTime"; + this.upDataTime.Visible = true; + this.upDataTime.VisibleIndex = 12; + this.upDataTime.Width = 112; // // pageBar1 // @@ -252,29 +415,487 @@ this.pageBar1.TabIndex = 4; this.pageBar1.TotalPages = 0; // - // xtraTabControl1 + // xtraTabPage2 // - this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.xtraTabControl1.Location = new System.Drawing.Point(0, 98); - this.xtraTabControl1.Margin = new System.Windows.Forms.Padding(4); - this.xtraTabControl1.Name = "xtraTabControl1"; - this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1; - this.xtraTabControl1.Size = new System.Drawing.Size(1410, 736); - this.xtraTabControl1.TabIndex = 3; - this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { - this.xtraTabPage1}); + this.xtraTabPage2.Controls.Add(this.splitMx1); + this.xtraTabPage2.Margin = new System.Windows.Forms.Padding(4); + this.xtraTabPage2.Name = "xtraTabPage2"; + this.xtraTabPage2.Size = new System.Drawing.Size(1408, 698); + this.xtraTabPage2.Text = "鏁版嵁璇︾粏"; + // + // splitMx1 + // + this.splitMx1.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitMx1.Horizontal = false; + this.splitMx1.Location = new System.Drawing.Point(0, 0); + this.splitMx1.Margin = new System.Windows.Forms.Padding(4); + this.splitMx1.Name = "splitMx1"; + // + // splitMx1.Panel1 + // + this.splitMx1.Panel1.Controls.Add(this.layoutMx1); + this.splitMx1.Panel1.Text = "Panel1"; + // + // splitMx1.Panel2 + // + this.splitMx1.Panel2.Text = "Panel2"; + this.splitMx1.ShowSplitGlyph = DevExpress.Utils.DefaultBoolean.True; + this.splitMx1.Size = new System.Drawing.Size(1408, 698); + this.splitMx1.SplitterPosition = 159; + this.splitMx1.TabIndex = 0; + // + // layoutMx1 + // + this.layoutMx1.Controls.Add(this.lbGuid); + this.layoutMx1.Controls.Add(this.txt_createTime); + this.layoutMx1.Controls.Add(this.txt_checkUser); + this.layoutMx1.Controls.Add(this.txt_checkDate); + this.layoutMx1.Controls.Add(this.txt_checkStatus); + this.layoutMx1.Controls.Add(this.txt_Guid); + this.layoutMx1.Controls.Add(this.txt_lastModifyTime); + this.layoutMx1.Controls.Add(this.txt_lastModifyUser); + this.layoutMx1.Controls.Add(this.txt_remark); + this.layoutMx1.Controls.Add(this.txt_customerCode); + this.layoutMx1.Controls.Add(this.txt_customerName); + this.layoutMx1.Controls.Add(this.txt_createUser); + this.layoutMx1.Controls.Add(this.txt_UpDataTime); + this.layoutMx1.Controls.Add(this.txt_UpDataUser); + this.layoutMx1.Controls.Add(this.txt_submitStatus); + this.layoutMx1.Dock = System.Windows.Forms.DockStyle.Fill; + this.layoutMx1.HiddenItems.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { + this.layoutControlItem9}); + this.layoutMx1.Location = new System.Drawing.Point(0, 0); + this.layoutMx1.Margin = new System.Windows.Forms.Padding(4); + this.layoutMx1.Name = "layoutMx1"; + this.layoutMx1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(1108, 0, 812, 500); + this.layoutMx1.Root = this.Root; + this.layoutMx1.Size = new System.Drawing.Size(1408, 159); + this.layoutMx1.TabIndex = 0; + this.layoutMx1.Text = "layoutControl1"; + // + // lbGuid + // + this.lbGuid.Location = new System.Drawing.Point(692, 131); + this.lbGuid.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbGuid.Name = "lbGuid"; + this.lbGuid.Size = new System.Drawing.Size(334, 34); + this.lbGuid.TabIndex = 1; + this.lbGuid.Text = "lbGuid"; + this.lbGuid.Visible = false; + // + // txt_createTime + // + this.txt_createTime.Location = new System.Drawing.Point(132, 46); + this.txt_createTime.Margin = new System.Windows.Forms.Padding(4); + this.txt_createTime.Name = "txt_createTime"; + this.txt_createTime.Properties.Appearance.Options.UseFont = true; + this.txt_createTime.Size = new System.Drawing.Size(223, 28); + this.txt_createTime.StyleController = this.layoutMx1; + this.txt_createTime.TabIndex = 231; + this.txt_createTime.Tag = ""; + // + // txt_checkUser + // + this.txt_checkUser.Location = new System.Drawing.Point(479, 81); + this.txt_checkUser.Margin = new System.Windows.Forms.Padding(4); + this.txt_checkUser.Name = "txt_checkUser"; + this.txt_checkUser.Size = new System.Drawing.Size(223, 28); + this.txt_checkUser.StyleController = this.layoutMx1; + this.txt_checkUser.TabIndex = 247; + this.txt_checkUser.Tag = "readonly"; + // + // txt_checkDate + // + this.txt_checkDate.Location = new System.Drawing.Point(132, 81); + this.txt_checkDate.Margin = new System.Windows.Forms.Padding(4); + this.txt_checkDate.Name = "txt_checkDate"; + this.txt_checkDate.Size = new System.Drawing.Size(223, 28); + this.txt_checkDate.StyleController = this.layoutMx1; + this.txt_checkDate.TabIndex = 248; + this.txt_checkDate.Tag = "readonly"; + // + // txt_checkStatus + // + this.txt_checkStatus.Location = new System.Drawing.Point(706, 81); + this.txt_checkStatus.Margin = new System.Windows.Forms.Padding(4); + this.txt_checkStatus.Name = "txt_checkStatus"; + this.txt_checkStatus.Properties.Caption = "瀹℃牳鏍囪瘑"; + this.txt_checkStatus.Size = new System.Drawing.Size(343, 27); + this.txt_checkStatus.StyleController = this.layoutMx1; + this.txt_checkStatus.TabIndex = 249; + this.txt_checkStatus.Tag = "readonly"; + // + // txt_Guid + // + this.txt_Guid.Location = new System.Drawing.Point(1173, 81); + this.txt_Guid.Margin = new System.Windows.Forms.Padding(4); + this.txt_Guid.Name = "txt_Guid"; + this.txt_Guid.Size = new System.Drawing.Size(223, 28); + this.txt_Guid.StyleController = this.layoutMx1; + this.txt_Guid.TabIndex = 250; + this.txt_Guid.Tag = ""; + // + // txt_lastModifyTime + // + this.txt_lastModifyTime.Location = new System.Drawing.Point(1173, 46); + this.txt_lastModifyTime.Margin = new System.Windows.Forms.Padding(4); + this.txt_lastModifyTime.Name = "txt_lastModifyTime"; + this.txt_lastModifyTime.Properties.Appearance.Options.UseFont = true; + this.txt_lastModifyTime.Size = new System.Drawing.Size(223, 28); + this.txt_lastModifyTime.StyleController = this.layoutMx1; + this.txt_lastModifyTime.TabIndex = 231; + this.txt_lastModifyTime.Tag = ""; + // + // txt_lastModifyUser + // + this.txt_lastModifyUser.Location = new System.Drawing.Point(826, 46); + this.txt_lastModifyUser.Margin = new System.Windows.Forms.Padding(4); + this.txt_lastModifyUser.Name = "txt_lastModifyUser"; + this.txt_lastModifyUser.Properties.Appearance.Options.UseFont = true; + this.txt_lastModifyUser.Size = new System.Drawing.Size(223, 28); + this.txt_lastModifyUser.StyleController = this.layoutMx1; + this.txt_lastModifyUser.TabIndex = 231; + this.txt_lastModifyUser.Tag = ""; + // + // txt_remark + // + this.txt_remark.Location = new System.Drawing.Point(1173, 12); + this.txt_remark.Name = "txt_remark"; + this.txt_remark.Size = new System.Drawing.Size(223, 28); + this.txt_remark.StyleController = this.layoutMx1; + this.txt_remark.TabIndex = 251; + // + // txt_customerCode + // + this.txt_customerCode.Location = new System.Drawing.Point(479, 12); + this.txt_customerCode.Name = "txt_customerCode"; + this.txt_customerCode.Size = new System.Drawing.Size(223, 28); + this.txt_customerCode.StyleController = this.layoutMx1; + this.txt_customerCode.TabIndex = 251; + // + // txt_customerName + // + this.txt_customerName.Location = new System.Drawing.Point(826, 12); + this.txt_customerName.Name = "txt_customerName"; + this.txt_customerName.Size = new System.Drawing.Size(223, 28); + this.txt_customerName.StyleController = this.layoutMx1; + this.txt_customerName.TabIndex = 251; + // + // txt_createUser + // + this.txt_createUser.Location = new System.Drawing.Point(479, 46); + this.txt_createUser.Margin = new System.Windows.Forms.Padding(4); + this.txt_createUser.Name = "txt_createUser"; + this.txt_createUser.Properties.Appearance.Options.UseFont = true; + this.txt_createUser.Size = new System.Drawing.Size(223, 28); + this.txt_createUser.StyleController = this.layoutMx1; + this.txt_createUser.TabIndex = 231; + this.txt_createUser.Tag = ""; + // + // txt_UpDataTime + // + this.txt_UpDataTime.Location = new System.Drawing.Point(826, 116); + this.txt_UpDataTime.Margin = new System.Windows.Forms.Padding(4); + this.txt_UpDataTime.Name = "txt_UpDataTime"; + this.txt_UpDataTime.Properties.Appearance.Options.UseFont = true; + this.txt_UpDataTime.Size = new System.Drawing.Size(223, 28); + this.txt_UpDataTime.StyleController = this.layoutMx1; + this.txt_UpDataTime.TabIndex = 231; + this.txt_UpDataTime.Tag = "readonly"; + // + // txt_UpDataUser + // + this.txt_UpDataUser.Location = new System.Drawing.Point(1173, 116); + this.txt_UpDataUser.Margin = new System.Windows.Forms.Padding(4); + this.txt_UpDataUser.Name = "txt_UpDataUser"; + this.txt_UpDataUser.Properties.Appearance.Options.UseFont = true; + this.txt_UpDataUser.Size = new System.Drawing.Size(223, 28); + this.txt_UpDataUser.StyleController = this.layoutMx1; + this.txt_UpDataUser.TabIndex = 231; + this.txt_UpDataUser.Tag = "readonly"; + // + // txt_submitStatus + // + this.txt_submitStatus.Location = new System.Drawing.Point(132, 12); + this.txt_submitStatus.Name = "txt_submitStatus"; + this.txt_submitStatus.Size = new System.Drawing.Size(223, 28); + this.txt_submitStatus.StyleController = this.layoutMx1; + this.txt_submitStatus.TabIndex = 251; + // + // layoutControlItem9 + // + this.layoutControlItem9.Control = this.lbGuid; + this.layoutControlItem9.Location = new System.Drawing.Point(542, 96); + this.layoutControlItem9.Name = "layoutControlItem9"; + this.layoutControlItem9.OptionsTableLayoutItem.ColumnIndex = 2; + this.layoutControlItem9.OptionsTableLayoutItem.RowIndex = 3; + this.layoutControlItem9.Size = new System.Drawing.Size(271, 32); + this.layoutControlItem9.Text = "lbGuid"; + this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0); + this.layoutControlItem9.TextVisible = false; + // + // Root + // + this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; + this.Root.GroupBordersVisible = false; + this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { + this.layoutControlItem4, + this.layoutControlItem3, + this.layoutControlItem2, + this.layoutControlItem1, + this.layoutControlItem16, + this.layoutControlItem14, + this.layoutControlItem6, + this.layoutControlItem5, + this.layoutControlItem8, + this.layoutControlItem7, + this.layoutControlItem10, + this.layoutControlItem13, + this.layoutControlItem12, + this.layoutControlItem18}); + this.Root.LayoutMode = DevExpress.XtraLayout.Utils.LayoutMode.Table; + this.Root.Name = "Root"; + columnDefinition1.SizeType = System.Windows.Forms.SizeType.Percent; + columnDefinition1.Width = 100D; + columnDefinition2.SizeType = System.Windows.Forms.SizeType.Percent; + columnDefinition2.Width = 100D; + columnDefinition3.SizeType = System.Windows.Forms.SizeType.Percent; + columnDefinition3.Width = 100D; + columnDefinition4.SizeType = System.Windows.Forms.SizeType.Percent; + columnDefinition4.Width = 100D; + this.Root.OptionsTableLayoutGroup.ColumnDefinitions.AddRange(new DevExpress.XtraLayout.ColumnDefinition[] { + columnDefinition1, + columnDefinition2, + columnDefinition3, + columnDefinition4}); + rowDefinition1.Height = 100D; + rowDefinition1.SizeType = System.Windows.Forms.SizeType.Percent; + rowDefinition2.Height = 100D; + rowDefinition2.SizeType = System.Windows.Forms.SizeType.Percent; + rowDefinition3.Height = 100D; + rowDefinition3.SizeType = System.Windows.Forms.SizeType.Percent; + rowDefinition4.Height = 100D; + rowDefinition4.SizeType = System.Windows.Forms.SizeType.Percent; + this.Root.OptionsTableLayoutGroup.RowDefinitions.AddRange(new DevExpress.XtraLayout.RowDefinition[] { + rowDefinition1, + rowDefinition2, + rowDefinition3, + rowDefinition4}); + this.Root.Size = new System.Drawing.Size(1408, 159); + this.Root.TextVisible = false; + // + // layoutControlItem4 + // + this.layoutControlItem4.Control = this.txt_remark; + this.layoutControlItem4.Location = new System.Drawing.Point(1041, 0); + this.layoutControlItem4.Name = "layoutControlItem4"; + this.layoutControlItem4.OptionsTableLayoutItem.ColumnIndex = 3; + this.layoutControlItem4.Size = new System.Drawing.Size(347, 34); + this.layoutControlItem4.Text = "澶囨敞"; + this.layoutControlItem4.TextSize = new System.Drawing.Size(108, 22); + // + // layoutControlItem3 + // + this.layoutControlItem3.Control = this.txt_customerCode; + this.layoutControlItem3.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem3.CustomizationFormText = "瀹㈡埛缂栫爜"; + this.layoutControlItem3.Location = new System.Drawing.Point(347, 0); + this.layoutControlItem3.Name = "layoutControlItem3"; + this.layoutControlItem3.OptionsTableLayoutItem.ColumnIndex = 1; + this.layoutControlItem3.Size = new System.Drawing.Size(347, 34); + this.layoutControlItem3.Text = "瀹㈡埛缂栫爜"; + this.layoutControlItem3.TextSize = new System.Drawing.Size(108, 22); + // + // layoutControlItem2 + // + this.layoutControlItem2.Control = this.txt_customerName; + this.layoutControlItem2.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem2.CustomizationFormText = "瀹㈡埛鍚嶇О"; + this.layoutControlItem2.Location = new System.Drawing.Point(694, 0); + this.layoutControlItem2.Name = "layoutControlItem2"; + this.layoutControlItem2.OptionsTableLayoutItem.ColumnIndex = 2; + this.layoutControlItem2.Size = new System.Drawing.Size(347, 34); + this.layoutControlItem2.Text = "瀹㈡埛鍚嶇О"; + this.layoutControlItem2.TextSize = new System.Drawing.Size(108, 22); + // + // layoutControlItem1 + // + this.layoutControlItem1.Control = this.txt_submitStatus; + this.layoutControlItem1.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem1.CustomizationFormText = "鎻愪氦鐘舵��"; + this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); + this.layoutControlItem1.Name = "layoutControlItem1"; + this.layoutControlItem1.Size = new System.Drawing.Size(347, 34); + this.layoutControlItem1.Text = "鎻愪氦鐘舵��"; + this.layoutControlItem1.TextSize = new System.Drawing.Size(108, 22); + // + // layoutControlItem16 + // + this.layoutControlItem16.Control = this.txt_lastModifyUser; + this.layoutControlItem16.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem16.CustomizationFormText = "鏈�鍚庝慨鏀逛汉"; + this.layoutControlItem16.Location = new System.Drawing.Point(694, 34); + this.layoutControlItem16.Name = "layoutControlItem16"; + this.layoutControlItem16.OptionsTableLayoutItem.ColumnIndex = 2; + this.layoutControlItem16.OptionsTableLayoutItem.RowIndex = 1; + this.layoutControlItem16.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem16.Text = "鏈�鍚庝慨鏀逛汉"; + this.layoutControlItem16.TextSize = new System.Drawing.Size(108, 22); + // + // layoutControlItem14 + // + this.layoutControlItem14.Control = this.txt_lastModifyTime; + this.layoutControlItem14.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem14.CustomizationFormText = "鏈�鍚庝慨鏀规椂闂�"; + this.layoutControlItem14.Location = new System.Drawing.Point(1041, 34); + this.layoutControlItem14.Name = "layoutControlItem14"; + this.layoutControlItem14.OptionsTableLayoutItem.ColumnIndex = 3; + this.layoutControlItem14.OptionsTableLayoutItem.RowIndex = 1; + this.layoutControlItem14.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem14.Text = "鏈�鍚庝慨鏀规椂闂�"; + this.layoutControlItem14.TextSize = new System.Drawing.Size(108, 22); + // + // layoutControlItem6 + // + this.layoutControlItem6.Control = this.txt_createTime; + this.layoutControlItem6.Location = new System.Drawing.Point(0, 34); + this.layoutControlItem6.Name = "layoutControlItem6"; + this.layoutControlItem6.OptionsTableLayoutItem.RowIndex = 1; + this.layoutControlItem6.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem6.Text = "鍒涘缓鏃堕棿"; + this.layoutControlItem6.TextSize = new System.Drawing.Size(108, 22); + // + // layoutControlItem5 + // + this.layoutControlItem5.Control = this.txt_createUser; + this.layoutControlItem5.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem5.CustomizationFormText = "鍒涘缓浜�"; + this.layoutControlItem5.Location = new System.Drawing.Point(347, 34); + this.layoutControlItem5.Name = "layoutControlItem5"; + this.layoutControlItem5.OptionsTableLayoutItem.ColumnIndex = 1; + this.layoutControlItem5.OptionsTableLayoutItem.RowIndex = 1; + this.layoutControlItem5.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem5.Text = "鍒涘缓浜�"; + this.layoutControlItem5.TextSize = new System.Drawing.Size(108, 22); + // + // layoutControlItem8 + // + this.layoutControlItem8.Control = this.txt_checkDate; + this.layoutControlItem8.Location = new System.Drawing.Point(0, 69); + this.layoutControlItem8.Name = "layoutControlItem8"; + this.layoutControlItem8.OptionsTableLayoutItem.RowIndex = 2; + this.layoutControlItem8.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem8.Text = "瀹℃牳鏃堕棿"; + this.layoutControlItem8.TextSize = new System.Drawing.Size(108, 22); + // + // layoutControlItem7 + // + this.layoutControlItem7.Control = this.txt_checkUser; + this.layoutControlItem7.Location = new System.Drawing.Point(347, 69); + this.layoutControlItem7.Name = "layoutControlItem7"; + this.layoutControlItem7.OptionsTableLayoutItem.ColumnIndex = 1; + this.layoutControlItem7.OptionsTableLayoutItem.RowIndex = 2; + this.layoutControlItem7.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem7.Text = "瀹℃牳浜�"; + this.layoutControlItem7.TextSize = new System.Drawing.Size(108, 22); + // + // layoutControlItem10 + // + this.layoutControlItem10.Control = this.txt_checkStatus; + this.layoutControlItem10.Location = new System.Drawing.Point(694, 69); + this.layoutControlItem10.Name = "layoutControlItem10"; + this.layoutControlItem10.OptionsTableLayoutItem.ColumnIndex = 2; + this.layoutControlItem10.OptionsTableLayoutItem.RowIndex = 2; + this.layoutControlItem10.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem10.TextSize = new System.Drawing.Size(0, 0); + this.layoutControlItem10.TextVisible = false; + // + // layoutControlItem13 + // + this.layoutControlItem13.Control = this.txt_Guid; + this.layoutControlItem13.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem13.CustomizationFormText = "Guid"; + this.layoutControlItem13.Location = new System.Drawing.Point(1041, 69); + this.layoutControlItem13.Name = "layoutControlItem13"; + this.layoutControlItem13.OptionsTableLayoutItem.ColumnIndex = 3; + this.layoutControlItem13.OptionsTableLayoutItem.RowIndex = 2; + this.layoutControlItem13.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem13.Text = "Guid"; + this.layoutControlItem13.TextSize = new System.Drawing.Size(108, 22); + this.layoutControlItem13.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; + // + // layoutControlItem12 + // + this.layoutControlItem12.Control = this.txt_UpDataUser; + this.layoutControlItem12.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem12.CustomizationFormText = "鏇存柊浜�"; + this.layoutControlItem12.Location = new System.Drawing.Point(1041, 104); + this.layoutControlItem12.Name = "layoutControlItem12"; + this.layoutControlItem12.OptionsTableLayoutItem.ColumnIndex = 3; + this.layoutControlItem12.OptionsTableLayoutItem.RowIndex = 3; + this.layoutControlItem12.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem12.Text = "鏇存柊浜�"; + this.layoutControlItem12.TextSize = new System.Drawing.Size(108, 22); + // + // layoutControlItem18 + // + this.layoutControlItem18.Control = this.txt_UpDataTime; + this.layoutControlItem18.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem18.CustomizationFormText = "鏇存柊鏃堕棿"; + this.layoutControlItem18.Location = new System.Drawing.Point(694, 104); + this.layoutControlItem18.Name = "layoutControlItem18"; + this.layoutControlItem18.OptionsTableLayoutItem.ColumnIndex = 2; + this.layoutControlItem18.OptionsTableLayoutItem.RowIndex = 3; + this.layoutControlItem18.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem18.Text = "鏇存柊鏃堕棿"; + this.layoutControlItem18.TextSize = new System.Drawing.Size(108, 22); + // + // picCheckBox + // + this.picCheckBox.Image = global::Gs.DevApp.Properties.Resources.ico_noCheck; + this.picCheckBox.Location = new System.Drawing.Point(1285, 29); + this.picCheckBox.Margin = new System.Windows.Forms.Padding(4); + this.picCheckBox.Name = "picCheckBox"; + this.picCheckBox.Size = new System.Drawing.Size(125, 61); + this.picCheckBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.picCheckBox.TabIndex = 9; + this.picCheckBox.TabStop = false; + this.picCheckBox.Visible = false; + // + // txt_createUser2 + // + this.txt_createUser2.Location = new System.Drawing.Point(96, 12); + this.txt_createUser2.Margin = new System.Windows.Forms.Padding(4); + this.txt_createUser2.Name = "txt_createUser2"; + this.txt_createUser2.Properties.Appearance.Options.UseFont = true; + this.txt_createUser2.Size = new System.Drawing.Size(259, 28); + this.txt_createUser2.TabIndex = 231; + this.txt_createUser2.Tag = "readonly"; + // + // layoutControlItem17 + // + this.layoutControlItem17.Control = this.txt_createUser2; + this.layoutControlItem17.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem17.CustomizationFormText = "鍒涘缓浜�"; + this.layoutControlItem17.Location = new System.Drawing.Point(0, 0); + this.layoutControlItem17.Name = "layoutControlItem17"; + this.layoutControlItem17.Size = new System.Drawing.Size(347, 34); + this.layoutControlItem17.Text = "鍒涘缓浜�"; + this.layoutControlItem17.TextSize = new System.Drawing.Size(72, 22); // // YS_sbbyjlb // this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 22F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1410, 834); + this.Controls.Add(this.picCheckBox); this.Controls.Add(this.xtraTabControl1); this.Controls.Add(this.toolBarMenu1); - this.IconOptions.Image = global::Gs.DevApp.Properties.Resources.logo_png_black; this.Margin = new System.Windows.Forms.Padding(4); this.Name = "YS_sbbyjlb"; this.Text = "璁惧淇濆吇璁板綍琛�"; + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); + this.xtraTabControl1.ResumeLayout(false); this.xtraTabPage1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.split1.Panel1)).EndInit(); this.split1.Panel1.ResumeLayout(false); @@ -283,21 +904,87 @@ this.split1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.gcMain1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); - this.xtraTabControl1.ResumeLayout(false); + this.xtraTabPage2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitMx1.Panel1)).EndInit(); + this.splitMx1.Panel1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitMx1.Panel2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.splitMx1)).EndInit(); + this.splitMx1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.layoutMx1)).EndInit(); + this.layoutMx1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.txt_createTime.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_checkUser.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_checkDate.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_checkStatus.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_Guid.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_lastModifyTime.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_lastModifyUser.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_remark.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_customerCode.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_customerName.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_createUser.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_UpDataTime.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_UpDataUser.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_submitStatus.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_createUser2.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).EndInit(); this.ResumeLayout(false); } #endregion private UserControl.UcToolBarMenu toolBarMenu1; - private DevExpress.Utils.ToolTipController tips; + private DevExpress.XtraTab.XtraTabControl xtraTabControl1; private DevExpress.XtraTab.XtraTabPage xtraTabPage1; private DevExpress.XtraEditors.SplitContainerControl split1; + private UserControls.Data.UcPageBar pageBar1; + private DevExpress.XtraTab.XtraTabPage xtraTabPage2; + private DevExpress.XtraEditors.SplitContainerControl splitMx1; + private System.Windows.Forms.Label lbGuid; + private DevExpress.XtraEditors.TextEdit txt_createTime; + private DevExpress.XtraLayout.LayoutControl layoutMx1; + private DevExpress.XtraLayout.LayoutControlGroup Root; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9; + private DevExpress.Utils.ToolTipController tips; + private DevExpress.XtraEditors.TextEdit txt_checkUser; + private DevExpress.XtraEditors.TextEdit txt_checkDate; + private DevExpress.XtraEditors.CheckEdit txt_checkStatus; + private System.Windows.Forms.PictureBox picCheckBox; + private DevExpress.XtraEditors.TextEdit txt_lastModifyTime; + private DevExpress.XtraEditors.TextEdit txt_lastModifyUser; + private DevExpress.XtraEditors.TextEdit txt_remark; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; + private DevExpress.XtraEditors.TextEdit txt_customerCode; + private DevExpress.XtraEditors.TextEdit txt_customerName; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; + private DevExpress.XtraEditors.TextEdit txt_Guid; + private DevExpress.XtraEditors.TextEdit txt_createUser; + private DevExpress.XtraEditors.TextEdit txt_UpDataTime; + private DevExpress.XtraEditors.TextEdit txt_createUser2; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem17; + private DevExpress.XtraEditors.TextEdit txt_UpDataUser; + private DevExpress.XtraEditors.TextEdit txt_submitStatus; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; private DevExpress.XtraGrid.GridControl gcMain1; private DevExpress.XtraGrid.Views.Grid.GridView gridView1; private DevExpress.XtraGrid.Columns.GridColumn guid; - private UserControls.Data.UcPageBar pageBar1; - private DevExpress.XtraTab.XtraTabControl xtraTabControl1; private DevExpress.XtraGrid.Columns.GridColumn submitStatus; private DevExpress.XtraGrid.Columns.GridColumn customerCode; private DevExpress.XtraGrid.Columns.GridColumn customerName; @@ -306,5 +993,20 @@ private DevExpress.XtraGrid.Columns.GridColumn createTime; private DevExpress.XtraGrid.Columns.GridColumn lastModifyUser; private DevExpress.XtraGrid.Columns.GridColumn lastModifyTime; + private DevExpress.XtraGrid.Columns.GridColumn checkUser; + private DevExpress.XtraGrid.Columns.GridColumn checkDate; + private DevExpress.XtraGrid.Columns.GridColumn checkStatus; + private DevExpress.XtraGrid.Columns.GridColumn upDataUser; + private DevExpress.XtraGrid.Columns.GridColumn upDataTime; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem16; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem14; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem13; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem12; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem18; } } \ No newline at end of file diff --git a/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbbyjlb.cs b/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbbyjlb.cs index 20fb04b..6a81860 100644 --- a/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbbyjlb.cs +++ b/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbbyjlb.cs @@ -1,39 +1,59 @@ +锘縰sing DevExpress.ClipboardSource.SpreadsheetML; +using DevExpress.XtraEditors; 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.ComponentModel; using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using System.Windows.Media.Animation; namespace Gs.DevApp.DevFrm { + /// <summary> + /// 璁惧淇濆吇璁板綍琛� + /// </summary> public partial class YS_sbbyjlb : DevExpress.XtraEditors.XtraForm { - //璁惧淇濆吇璁板綍琛� string _webServiceName = "YS_sbbyjlb/"; List<FilterEntity> _filterList = new List<FilterEntity>(); + public YS_sbbyjlb() { InitializeComponent(); + this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick;//鏌ヨ浜嬩欢 + this.toolBarMenu1.btnAddClick += ToolBarMenu1_btnAddClick;//鏂板浜嬩欢 + this.toolBarMenu1.btnEdtClick += ToolBarMenu1_btnEdtClick;//淇敼浜嬩欢 + this.toolBarMenu1.btnSaveClick += ToolBarMenu1_btnSaveClick; this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; - this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; + this.toolBarMenu1.btnDelClick += ToolBarMenu1_btnDelClick1; + this.toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick; + toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; + toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; this.toolBarMenu1.getXmlConfig(); - Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, this, "", "", (value) => + Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "checkStatus", "", (value) => { - - }); + Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0); + }, tips); Gs.DevApp.ToolBox.UtilityHelper.SetTabParameter(gridView1, xtraTabControl1, pageBar1, (value) => { + getModel(value); }, (value) => { getPageList(this.pageBar1.CurrentPage); - }); + }, lbGuid); getPageList(1); pageBar1.PagerEvent += PageBar1_PagerEvent; } + private async void GridView1_ColumnFilterChanged(object sender, EventArgs e) { _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns, gridView1); @@ -74,6 +94,79 @@ _filterList = e.FilterList; getPageList(1); } + /// <summary> + /// 瀹℃牳浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnChkClick(object sender, EventArgs e) + { + _toolCk(1); + } + + /// <summary> + /// 鍙嶅鏍� + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + /// <exception cref="NotImplementedException"></exception> + private void ToolBarMenu1_btnFChkClick(object sender, EventArgs e) + { + _toolCk(0); + } + /// <summary> + /// 鍙栨秷浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnEscClick(object sender, EventArgs e) + { + Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 1); + } + + /// <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_Guid, gridView1); + //(rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_Guid, gridView1, "hourlyType"); + if (string.IsNullOrEmpty(rowGuid)) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + if (!MsgHelper.AskQuestion("浣犻�夋嫨浜嗐��" + rowName + "銆戯紝纭畾鍒犻櫎鍚楋紵")) + return; + List<dynamic> lst = new List<dynamic>(); + lst.Add(rowGuid); + var _obj = new + { + guid = rowGuid, + mxGuid = Guid.Empty.ToString(), + }; + try + { + string strJson = UtilityHelper.HttpPost("", _webServiceName + "DeleteModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strJson); + if (_rtn.rtnCode > 0) + { + if (xtraTabControl1.SelectedTabPageIndex == 0) + { } + else + Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 2); + getPageList(this.pageBar1.CurrentPage); + } + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } /// <summary> /// 鍒锋柊浜嬩欢 @@ -82,7 +175,91 @@ /// <param name="e"></param> private void ToolBarMenu1_btnLoadClick(object sender, EventArgs e) { + if (xtraTabControl1.SelectedTabPageIndex == 1) + getModel(lbGuid.Text.Trim()); + else + { + getPageList(this.pageBar1.CurrentPage); + } + } + + /// <summary> + /// 鏂板浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnAddClick(object sender, EventArgs e) + { + lbGuid.Text = ""; + Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 4); + UtilityHelper.CleanValueByControl(this.layoutMx1.Controls, true); getPageList(this.pageBar1.CurrentPage); + } + private void ToolBarMenu1_btnEdtClick(object sender, EventArgs e) + { + string rowGuid, rowName; + (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1,lbGuid, txt_Guid, gridView1); + if (string.IsNullOrEmpty(rowGuid)) + { + MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 3); + getModel(rowGuid); + getPageList(this.pageBar1.CurrentPage); + } + + /// <summary> + /// 淇濆瓨浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) + { + toolBarMenu1.isSetBtn = false; + string submitStatus = txt_submitStatus.Text.Trim();//鎻愪氦鐘舵�� + string customerCode = txt_customerCode.Text.Trim();//瀹㈡埛缂栫爜 + string customerName = txt_customerName.Text.Trim();//瀹㈡埛鍚嶇О + string remark = txt_remark.Text.Trim();//澶囨敞 + string createUser = txt_createUser.Text.Trim();//鍒涘缓浜� + string createTime = txt_createTime.Text.Trim();//鏃堕棿 + string lastModifyUser = txt_lastModifyUser.Text.Trim();//鏈�鍚庝慨鏀逛汉 + string lastModifyTime = txt_lastModifyTime.Text.Trim();//鏈�鍚庝慨鏀规椂闂� + string UpDataTime = txt_UpDataTime.Text.Trim();//鏇存柊鏃堕棿 + string UpDataUser = txt_UpDataUser.Text.Trim();//鏇存柊浜� + + try + { + var _obj = new + { + guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //涓诲缓 + submitStatus = submitStatus, + customerCode = customerCode, + customerName = customerName, + remark = remark, + createUser = createUser, + createTime = createTime, + lastModifyUser = lastModifyUser, + lastModifyTime = lastModifyTime, + UpDataTime= UpDataTime, + UpDataUser= UpDataUser + }; + 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.outGuid; + toolBarMenu1.isSetBtn = true; + UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, false); + toolBarMenu1.currentAction = ""; + Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 6); + } + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } } /// <summary> @@ -93,12 +270,13 @@ private void getPageList(int curPage) { gcMain1.DataSource = null; var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); - PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "a.INDEP_DATE", "asc", "", _sbSqlWhere.ToString()); - string json = JsonConvert.SerializeObject(pgq); + var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "", "", "", _sbSqlWhere.ToString()); + var json = JsonConvert.SerializeObject(pgq); try { - var strReturn = UtilityHelper.HttpPost("", _webServiceName + "GetListPage", json); - ReturnModel<PageListModel> dd = UtilityHelper.ReturnToTablePage(strReturn); + var strReturn = UtilityHelper.HttpPost("", + _webServiceName + "GetListPage", json); + var dd = UtilityHelper.ReturnToTablePage(strReturn); if (dd.rtnCode > 0) { DataTable dt = dd.rtnData.list; @@ -109,7 +287,6 @@ gcMain1.DataSource = dt; gcMain1.ForceInitialize(); gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1); - } else UtilityHelper.SetDefaultTable(gcMain1, gridView1); @@ -125,8 +302,109 @@ } catch (Exception ex) { - ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); + MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); } } + + /// <summary> + /// 瀛愯〃鏌ヨ + /// </summary> + /// <param name="strGuid">涓婚敭</param> + /// <param name="isEdit">鏄惁鍙紪杈�</param> + /// <param name="tabIdx">閫夐」鍗″簭鍙�</param> + private void getModel(string strGuid) + { + bool isEdit = false; + if (toolBarMenu1.currentAction == "add") return; + if (toolBarMenu1.currentAction == "edit") isEdit = true; + if (string.IsNullOrEmpty(strGuid)) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + 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; + UtilityHelper.SetValueByObj(this.layoutMx1.Controls, dy, isEdit); + + } + else + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + + /// <summary> + /// 宸ュ叿鏉′簨浠� + /// </summary> + /// <param name="inFieldValue"></param> + private void _toolCk(int _inFieldValue) + { + string strMsg = ""; + switch (_inFieldValue) + { + case 1: + strMsg = "瀹℃牳"; + break; + case 0: + strMsg = "鍙嶅鏍�"; + break; + } + ; + toolBarMenu1.guidKey = ""; + string rowGuid, rowName; + (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_Guid, gridView1); + //(rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_SalaryType, gridView1, "hourlyType"); + if (string.IsNullOrEmpty(rowGuid)) + { + MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + if (!MsgHelper.AskQuestion("浣犻�夋嫨浜嗐��" + rowName + "銆戯紝纭畾" + strMsg + "鍚楋紵")) + return; + var _obj = new + { + guid = rowGuid, + ckValue = _inFieldValue, + parameter = "YS_sbbyjlb,check_Date,check_Status,check_user" + }; + try + { + var strJson = UtilityHelper.HttpPost("", "General/GeneralCheck", + JsonConvert.SerializeObject(_obj)); + var _rtn = UtilityHelper.ReturnToDynamic(strJson); + if (_rtn.rtnCode > 0) + { + MsgHelper.ShowInformation(_rtn.rtnData.outMsg.ToString()); + if (xtraTabControl1.SelectedTabPageIndex == 1) + { + getModel(lbGuid.Text.Trim()); + } + int rowHandle = gridView1.LocateByValue(1, gridView1.Columns["guid"], rowGuid); + gridView1.FocusedRowHandle = rowHandle; + UtilityHelper.SetCheckIco(gridView1, "checkStatus", "checkUser", "checkDate", picCheckBox, this, _inFieldValue.ToString()); + } + else + MsgHelper.ShowError(_rtn.rtnData.outMsg.ToString()); + } + catch (Exception ex) + { + MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); + } + } + + } -} +} \ No newline at end of file diff --git a/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbbyjlb.resx b/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbbyjlb.resx index a4826a3..5160e8b 100644 --- a/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbbyjlb.resx +++ b/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbbyjlb.resx @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> +锘�<?xml version="1.0" encoding="utf-8"?> <root> <!-- Microsoft ResX Schema diff --git a/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbtzb.Designer.cs b/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbtzb.Designer.cs index 6de23be..b1b8d8f 100644 --- a/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbtzb.Designer.cs +++ b/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbtzb.Designer.cs @@ -1,5 +1,4 @@ -/* Create By GS EasyCode */ -namespace Gs.DevApp.DevFrm +锘縩amespace Gs.DevApp.DevFrm { partial class YS_sbtzb { @@ -30,8 +29,16 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); + DevExpress.XtraLayout.ColumnDefinition columnDefinition1 = new DevExpress.XtraLayout.ColumnDefinition(); + DevExpress.XtraLayout.ColumnDefinition columnDefinition2 = new DevExpress.XtraLayout.ColumnDefinition(); + DevExpress.XtraLayout.ColumnDefinition columnDefinition3 = new DevExpress.XtraLayout.ColumnDefinition(); + DevExpress.XtraLayout.ColumnDefinition columnDefinition4 = new DevExpress.XtraLayout.ColumnDefinition(); + DevExpress.XtraLayout.RowDefinition rowDefinition1 = new DevExpress.XtraLayout.RowDefinition(); + DevExpress.XtraLayout.RowDefinition rowDefinition2 = new DevExpress.XtraLayout.RowDefinition(); + DevExpress.XtraLayout.RowDefinition rowDefinition3 = new DevExpress.XtraLayout.RowDefinition(); + DevExpress.XtraLayout.RowDefinition rowDefinition4 = new DevExpress.XtraLayout.RowDefinition(); this.toolBarMenu1 = new Gs.DevApp.UserControl.UcToolBarMenu(); - this.tips = new DevExpress.Utils.ToolTipController(this.components); + this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage(); this.split1 = new DevExpress.XtraEditors.SplitContainerControl(); this.gcMain1 = new DevExpress.XtraGrid.GridControl(); @@ -47,8 +54,56 @@ this.sl = new DevExpress.XtraGrid.Columns.GridColumn(); this.zt = new DevExpress.XtraGrid.Columns.GridColumn(); this.sccj = new DevExpress.XtraGrid.Columns.GridColumn(); + this.checkUser = new DevExpress.XtraGrid.Columns.GridColumn(); + this.checkDate = new DevExpress.XtraGrid.Columns.GridColumn(); + this.checkStatus = new DevExpress.XtraGrid.Columns.GridColumn(); + this.upDataTime = new DevExpress.XtraGrid.Columns.GridColumn(); + this.upDataUser = new DevExpress.XtraGrid.Columns.GridColumn(); this.pageBar1 = new UserControls.Data.UcPageBar(); - this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); + this.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage(); + this.splitMx1 = new DevExpress.XtraEditors.SplitContainerControl(); + this.layoutMx1 = new DevExpress.XtraLayout.LayoutControl(); + this.lbGuid = new System.Windows.Forms.Label(); + this.txt_createDate = new DevExpress.XtraEditors.TextEdit(); + this.txt_checkUser = new DevExpress.XtraEditors.TextEdit(); + this.txt_checkDate = new DevExpress.XtraEditors.TextEdit(); + this.txt_checkStatus = new DevExpress.XtraEditors.CheckEdit(); + this.txt_Guid = new DevExpress.XtraEditors.TextEdit(); + this.txt_dw = new DevExpress.XtraEditors.TextEdit(); + this.txt_sl = new DevExpress.XtraEditors.TextEdit(); + this.txt_zt = new DevExpress.XtraEditors.TextEdit(); + this.txt_sccj = new DevExpress.XtraEditors.TextEdit(); + this.txt_bz = new DevExpress.XtraEditors.TextEdit(); + this.txt_sbmc = new DevExpress.XtraEditors.TextEdit(); + this.txt_sbgg = new DevExpress.XtraEditors.TextEdit(); + this.txt_createUser = new DevExpress.XtraEditors.TextEdit(); + this.txt_UpDataTime = new DevExpress.XtraEditors.TextEdit(); + this.txt_UpDataUser = new DevExpress.XtraEditors.TextEdit(); + this.txt_sbbm = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); + this.Root = new DevExpress.XtraLayout.LayoutControlGroup(); + this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem16 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem18 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); + this.tips = new DevExpress.Utils.ToolTipController(this.components); + this.picCheckBox = new System.Windows.Forms.PictureBox(); + this.txt_createUser2 = new DevExpress.XtraEditors.TextEdit(); + this.layoutControlItem17 = new DevExpress.XtraLayout.LayoutControlItem(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); + this.xtraTabControl1.SuspendLayout(); this.xtraTabPage1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.split1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.split1.Panel1)).BeginInit(); @@ -57,15 +112,58 @@ this.split1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gcMain1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); - this.xtraTabControl1.SuspendLayout(); + this.xtraTabPage2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitMx1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.splitMx1.Panel1)).BeginInit(); + this.splitMx1.Panel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitMx1.Panel2)).BeginInit(); + this.splitMx1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.layoutMx1)).BeginInit(); + this.layoutMx1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txt_createDate.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_checkUser.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_checkDate.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_checkStatus.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_Guid.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_dw.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_sl.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_zt.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_sccj.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_bz.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_sbmc.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_sbgg.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_createUser.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_UpDataTime.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_UpDataUser.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_sbbm.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_createUser2.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).BeginInit(); this.SuspendLayout(); // // toolBarMenu1 // this.toolBarMenu1.chkParameter = null; this.toolBarMenu1.currentAction = null; - this.toolBarMenu1.defaultActions = "鏌ヨ"; + this.toolBarMenu1.defaultActions = null; this.toolBarMenu1.Dock = System.Windows.Forms.DockStyle.Top; this.toolBarMenu1.guidKey = null; this.toolBarMenu1.isSetBtn = false; @@ -77,6 +175,19 @@ this.toolBarMenu1.TabIndex = 0; this.toolBarMenu1.xlsInService = null; this.toolBarMenu1.xlsOutParameter = null; + // + // xtraTabControl1 + // + this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.xtraTabControl1.Location = new System.Drawing.Point(0, 98); + this.xtraTabControl1.Margin = new System.Windows.Forms.Padding(4); + this.xtraTabControl1.Name = "xtraTabControl1"; + this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1; + this.xtraTabControl1.Size = new System.Drawing.Size(1410, 736); + this.xtraTabControl1.TabIndex = 3; + this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { + this.xtraTabPage1, + this.xtraTabPage2}); // // xtraTabPage1 // @@ -118,7 +229,7 @@ this.gcMain1.Margin = new System.Windows.Forms.Padding(4); this.gcMain1.Name = "gcMain1"; this.gcMain1.Size = new System.Drawing.Size(1408, 635); - this.gcMain1.TabIndex = 2; + this.gcMain1.TabIndex = 5; this.gcMain1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView1}); // @@ -138,7 +249,12 @@ this.dw, this.sl, this.zt, - this.sccj}); + this.sccj, + this.checkUser, + this.checkDate, + this.checkStatus, + this.upDataTime, + this.upDataUser}); this.gridView1.DetailHeight = 428; this.gridView1.GridControl = this.gcMain1; this.gridView1.IndicatorWidth = 62; @@ -266,6 +382,61 @@ this.sccj.VisibleIndex = 9; this.sccj.Width = 94; // + // checkUser + // + this.checkUser.Caption = "瀹℃牳浜�"; + this.checkUser.FieldName = "checkUser"; + this.checkUser.MinWidth = 30; + this.checkUser.Name = "checkUser"; + this.checkUser.Tag = "checkUser"; + this.checkUser.Visible = true; + this.checkUser.VisibleIndex = 10; + this.checkUser.Width = 112; + // + // checkDate + // + this.checkDate.Caption = "瀹℃牳鏃堕棿"; + this.checkDate.FieldName = "checkDate"; + this.checkDate.MinWidth = 30; + this.checkDate.Name = "checkDate"; + this.checkDate.Tag = "checkDate"; + this.checkDate.Visible = true; + this.checkDate.VisibleIndex = 11; + this.checkDate.Width = 112; + // + // checkStatus + // + this.checkStatus.Caption = "瀹℃牳鏍囪瘑"; + this.checkStatus.FieldName = "checkStatus"; + this.checkStatus.MinWidth = 30; + this.checkStatus.Name = "checkStatus"; + this.checkStatus.Tag = "checkStatus"; + this.checkStatus.Visible = true; + this.checkStatus.VisibleIndex = 12; + this.checkStatus.Width = 112; + // + // upDataTime + // + this.upDataTime.Caption = "鏇存柊鏃堕棿"; + this.upDataTime.FieldName = "upDataTime"; + this.upDataTime.MinWidth = 30; + this.upDataTime.Name = "upDataTime"; + this.upDataTime.Tag = "upDataTime"; + this.upDataTime.Visible = true; + this.upDataTime.VisibleIndex = 13; + this.upDataTime.Width = 112; + // + // upDataUser + // + this.upDataUser.Caption = "鏇存柊浜�"; + this.upDataUser.FieldName = "upDataUser"; + this.upDataUser.MinWidth = 30; + this.upDataUser.Name = "upDataUser"; + this.upDataUser.Tag = "upDataUser"; + this.upDataUser.Visible = true; + this.upDataUser.VisibleIndex = 14; + this.upDataUser.Width = 112; + // // pageBar1 // this.pageBar1.CurrentPage = 1; @@ -278,29 +449,538 @@ this.pageBar1.TabIndex = 4; this.pageBar1.TotalPages = 0; // - // xtraTabControl1 + // xtraTabPage2 // - this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.xtraTabControl1.Location = new System.Drawing.Point(0, 98); - this.xtraTabControl1.Margin = new System.Windows.Forms.Padding(4); - this.xtraTabControl1.Name = "xtraTabControl1"; - this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1; - this.xtraTabControl1.Size = new System.Drawing.Size(1410, 736); - this.xtraTabControl1.TabIndex = 3; - this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { - this.xtraTabPage1}); + this.xtraTabPage2.Controls.Add(this.splitMx1); + this.xtraTabPage2.Margin = new System.Windows.Forms.Padding(4); + this.xtraTabPage2.Name = "xtraTabPage2"; + this.xtraTabPage2.Size = new System.Drawing.Size(1408, 698); + this.xtraTabPage2.Text = "鏁版嵁璇︾粏"; + // + // splitMx1 + // + this.splitMx1.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitMx1.Horizontal = false; + this.splitMx1.Location = new System.Drawing.Point(0, 0); + this.splitMx1.Margin = new System.Windows.Forms.Padding(4); + this.splitMx1.Name = "splitMx1"; + // + // splitMx1.Panel1 + // + this.splitMx1.Panel1.Controls.Add(this.layoutMx1); + this.splitMx1.Panel1.Text = "Panel1"; + // + // splitMx1.Panel2 + // + this.splitMx1.Panel2.Text = "Panel2"; + this.splitMx1.ShowSplitGlyph = DevExpress.Utils.DefaultBoolean.True; + this.splitMx1.Size = new System.Drawing.Size(1408, 698); + this.splitMx1.SplitterPosition = 159; + this.splitMx1.TabIndex = 0; + // + // layoutMx1 + // + this.layoutMx1.Controls.Add(this.lbGuid); + this.layoutMx1.Controls.Add(this.txt_createDate); + this.layoutMx1.Controls.Add(this.txt_checkUser); + this.layoutMx1.Controls.Add(this.txt_checkDate); + this.layoutMx1.Controls.Add(this.txt_checkStatus); + this.layoutMx1.Controls.Add(this.txt_Guid); + this.layoutMx1.Controls.Add(this.txt_dw); + this.layoutMx1.Controls.Add(this.txt_sl); + this.layoutMx1.Controls.Add(this.txt_zt); + this.layoutMx1.Controls.Add(this.txt_sccj); + this.layoutMx1.Controls.Add(this.txt_bz); + this.layoutMx1.Controls.Add(this.txt_sbmc); + this.layoutMx1.Controls.Add(this.txt_sbgg); + this.layoutMx1.Controls.Add(this.txt_createUser); + this.layoutMx1.Controls.Add(this.txt_UpDataTime); + this.layoutMx1.Controls.Add(this.txt_UpDataUser); + this.layoutMx1.Controls.Add(this.txt_sbbm); + this.layoutMx1.Dock = System.Windows.Forms.DockStyle.Fill; + this.layoutMx1.HiddenItems.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { + this.layoutControlItem9}); + this.layoutMx1.Location = new System.Drawing.Point(0, 0); + this.layoutMx1.Margin = new System.Windows.Forms.Padding(4); + this.layoutMx1.Name = "layoutMx1"; + this.layoutMx1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(1108, 0, 812, 500); + this.layoutMx1.Root = this.Root; + this.layoutMx1.Size = new System.Drawing.Size(1408, 159); + this.layoutMx1.TabIndex = 0; + this.layoutMx1.Text = "layoutControl1"; + // + // lbGuid + // + this.lbGuid.Location = new System.Drawing.Point(692, 131); + this.lbGuid.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbGuid.Name = "lbGuid"; + this.lbGuid.Size = new System.Drawing.Size(334, 34); + this.lbGuid.TabIndex = 1; + this.lbGuid.Text = "lbGuid"; + this.lbGuid.Visible = false; + // + // txt_createDate + // + this.txt_createDate.Location = new System.Drawing.Point(96, 81); + this.txt_createDate.Margin = new System.Windows.Forms.Padding(4); + this.txt_createDate.Name = "txt_createDate"; + this.txt_createDate.Properties.Appearance.Options.UseFont = true; + this.txt_createDate.Size = new System.Drawing.Size(259, 28); + this.txt_createDate.StyleController = this.layoutMx1; + this.txt_createDate.TabIndex = 231; + this.txt_createDate.Tag = ""; + // + // txt_checkUser + // + this.txt_checkUser.Location = new System.Drawing.Point(443, 116); + this.txt_checkUser.Margin = new System.Windows.Forms.Padding(4); + this.txt_checkUser.Name = "txt_checkUser"; + this.txt_checkUser.Size = new System.Drawing.Size(259, 28); + this.txt_checkUser.StyleController = this.layoutMx1; + this.txt_checkUser.TabIndex = 247; + this.txt_checkUser.Tag = "readonly"; + // + // txt_checkDate + // + this.txt_checkDate.Location = new System.Drawing.Point(96, 116); + this.txt_checkDate.Margin = new System.Windows.Forms.Padding(4); + this.txt_checkDate.Name = "txt_checkDate"; + this.txt_checkDate.Size = new System.Drawing.Size(259, 28); + this.txt_checkDate.StyleController = this.layoutMx1; + this.txt_checkDate.TabIndex = 248; + this.txt_checkDate.Tag = "readonly"; + // + // txt_checkStatus + // + this.txt_checkStatus.Location = new System.Drawing.Point(706, 116); + this.txt_checkStatus.Margin = new System.Windows.Forms.Padding(4); + this.txt_checkStatus.Name = "txt_checkStatus"; + this.txt_checkStatus.Properties.Caption = "瀹℃牳鏍囪瘑"; + this.txt_checkStatus.Size = new System.Drawing.Size(343, 27); + this.txt_checkStatus.StyleController = this.layoutMx1; + this.txt_checkStatus.TabIndex = 249; + this.txt_checkStatus.Tag = "readonly"; + // + // txt_Guid + // + this.txt_Guid.Location = new System.Drawing.Point(1137, 116); + this.txt_Guid.Margin = new System.Windows.Forms.Padding(4); + this.txt_Guid.Name = "txt_Guid"; + this.txt_Guid.Size = new System.Drawing.Size(259, 28); + this.txt_Guid.StyleController = this.layoutMx1; + this.txt_Guid.TabIndex = 250; + this.txt_Guid.Tag = ""; + // + // txt_dw + // + this.txt_dw.Location = new System.Drawing.Point(790, 46); + this.txt_dw.Margin = new System.Windows.Forms.Padding(4); + this.txt_dw.Name = "txt_dw"; + this.txt_dw.Properties.Appearance.Options.UseFont = true; + this.txt_dw.Size = new System.Drawing.Size(259, 28); + this.txt_dw.StyleController = this.layoutMx1; + this.txt_dw.TabIndex = 231; + this.txt_dw.Tag = ""; + // + // txt_sl + // + this.txt_sl.Location = new System.Drawing.Point(443, 46); + this.txt_sl.Margin = new System.Windows.Forms.Padding(4); + this.txt_sl.Name = "txt_sl"; + this.txt_sl.Properties.Appearance.Options.UseFont = true; + this.txt_sl.Size = new System.Drawing.Size(259, 28); + this.txt_sl.StyleController = this.layoutMx1; + this.txt_sl.TabIndex = 231; + this.txt_sl.Tag = ""; + // + // txt_zt + // + this.txt_zt.Location = new System.Drawing.Point(1137, 46); + this.txt_zt.Margin = new System.Windows.Forms.Padding(4); + this.txt_zt.Name = "txt_zt"; + this.txt_zt.Properties.Appearance.Options.UseFont = true; + this.txt_zt.Size = new System.Drawing.Size(259, 28); + this.txt_zt.StyleController = this.layoutMx1; + this.txt_zt.TabIndex = 231; + this.txt_zt.Tag = ""; + // + // txt_sccj + // + this.txt_sccj.Location = new System.Drawing.Point(96, 46); + this.txt_sccj.Margin = new System.Windows.Forms.Padding(4); + this.txt_sccj.Name = "txt_sccj"; + this.txt_sccj.Properties.Appearance.Options.UseFont = true; + this.txt_sccj.Size = new System.Drawing.Size(259, 28); + this.txt_sccj.StyleController = this.layoutMx1; + this.txt_sccj.TabIndex = 231; + this.txt_sccj.Tag = ""; + // + // txt_bz + // + this.txt_bz.Location = new System.Drawing.Point(1137, 12); + this.txt_bz.Name = "txt_bz"; + this.txt_bz.Size = new System.Drawing.Size(259, 28); + this.txt_bz.StyleController = this.layoutMx1; + this.txt_bz.TabIndex = 251; + // + // txt_sbmc + // + this.txt_sbmc.Location = new System.Drawing.Point(443, 12); + this.txt_sbmc.Name = "txt_sbmc"; + this.txt_sbmc.Size = new System.Drawing.Size(259, 28); + this.txt_sbmc.StyleController = this.layoutMx1; + this.txt_sbmc.TabIndex = 251; + // + // txt_sbgg + // + this.txt_sbgg.Location = new System.Drawing.Point(790, 12); + this.txt_sbgg.Name = "txt_sbgg"; + this.txt_sbgg.Size = new System.Drawing.Size(259, 28); + this.txt_sbgg.StyleController = this.layoutMx1; + this.txt_sbgg.TabIndex = 251; + // + // txt_createUser + // + this.txt_createUser.Location = new System.Drawing.Point(443, 81); + this.txt_createUser.Margin = new System.Windows.Forms.Padding(4); + this.txt_createUser.Name = "txt_createUser"; + this.txt_createUser.Properties.Appearance.Options.UseFont = true; + this.txt_createUser.Size = new System.Drawing.Size(259, 28); + this.txt_createUser.StyleController = this.layoutMx1; + this.txt_createUser.TabIndex = 231; + this.txt_createUser.Tag = ""; + // + // txt_UpDataTime + // + this.txt_UpDataTime.Location = new System.Drawing.Point(790, 81); + this.txt_UpDataTime.Margin = new System.Windows.Forms.Padding(4); + this.txt_UpDataTime.Name = "txt_UpDataTime"; + this.txt_UpDataTime.Properties.Appearance.Options.UseFont = true; + this.txt_UpDataTime.Size = new System.Drawing.Size(259, 28); + this.txt_UpDataTime.StyleController = this.layoutMx1; + this.txt_UpDataTime.TabIndex = 231; + this.txt_UpDataTime.Tag = "readonly"; + // + // txt_UpDataUser + // + this.txt_UpDataUser.Location = new System.Drawing.Point(1137, 81); + this.txt_UpDataUser.Margin = new System.Windows.Forms.Padding(4); + this.txt_UpDataUser.Name = "txt_UpDataUser"; + this.txt_UpDataUser.Properties.Appearance.Options.UseFont = true; + this.txt_UpDataUser.Size = new System.Drawing.Size(259, 28); + this.txt_UpDataUser.StyleController = this.layoutMx1; + this.txt_UpDataUser.TabIndex = 231; + this.txt_UpDataUser.Tag = "readonly"; + // + // txt_sbbm + // + this.txt_sbbm.Location = new System.Drawing.Point(96, 12); + this.txt_sbbm.Name = "txt_sbbm"; + this.txt_sbbm.Size = new System.Drawing.Size(259, 28); + this.txt_sbbm.StyleController = this.layoutMx1; + this.txt_sbbm.TabIndex = 251; + // + // layoutControlItem9 + // + this.layoutControlItem9.Control = this.lbGuid; + this.layoutControlItem9.Location = new System.Drawing.Point(542, 96); + this.layoutControlItem9.Name = "layoutControlItem9"; + this.layoutControlItem9.OptionsTableLayoutItem.ColumnIndex = 2; + this.layoutControlItem9.OptionsTableLayoutItem.RowIndex = 3; + this.layoutControlItem9.Size = new System.Drawing.Size(271, 32); + this.layoutControlItem9.Text = "lbGuid"; + this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0); + this.layoutControlItem9.TextVisible = false; + // + // Root + // + this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; + this.Root.GroupBordersVisible = false; + this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { + this.layoutControlItem4, + this.layoutControlItem3, + this.layoutControlItem2, + this.layoutControlItem13, + this.layoutControlItem8, + this.layoutControlItem7, + this.layoutControlItem10, + this.layoutControlItem15, + this.layoutControlItem16, + this.layoutControlItem6, + this.layoutControlItem14, + this.layoutControlItem11, + this.layoutControlItem5, + this.layoutControlItem18, + this.layoutControlItem12, + this.layoutControlItem1}); + this.Root.LayoutMode = DevExpress.XtraLayout.Utils.LayoutMode.Table; + this.Root.Name = "Root"; + columnDefinition1.SizeType = System.Windows.Forms.SizeType.Percent; + columnDefinition1.Width = 100D; + columnDefinition2.SizeType = System.Windows.Forms.SizeType.Percent; + columnDefinition2.Width = 100D; + columnDefinition3.SizeType = System.Windows.Forms.SizeType.Percent; + columnDefinition3.Width = 100D; + columnDefinition4.SizeType = System.Windows.Forms.SizeType.Percent; + columnDefinition4.Width = 100D; + this.Root.OptionsTableLayoutGroup.ColumnDefinitions.AddRange(new DevExpress.XtraLayout.ColumnDefinition[] { + columnDefinition1, + columnDefinition2, + columnDefinition3, + columnDefinition4}); + rowDefinition1.Height = 100D; + rowDefinition1.SizeType = System.Windows.Forms.SizeType.Percent; + rowDefinition2.Height = 100D; + rowDefinition2.SizeType = System.Windows.Forms.SizeType.Percent; + rowDefinition3.Height = 100D; + rowDefinition3.SizeType = System.Windows.Forms.SizeType.Percent; + rowDefinition4.Height = 100D; + rowDefinition4.SizeType = System.Windows.Forms.SizeType.Percent; + this.Root.OptionsTableLayoutGroup.RowDefinitions.AddRange(new DevExpress.XtraLayout.RowDefinition[] { + rowDefinition1, + rowDefinition2, + rowDefinition3, + rowDefinition4}); + this.Root.Size = new System.Drawing.Size(1408, 159); + this.Root.TextVisible = false; + // + // layoutControlItem4 + // + this.layoutControlItem4.Control = this.txt_bz; + this.layoutControlItem4.Location = new System.Drawing.Point(1041, 0); + this.layoutControlItem4.Name = "layoutControlItem4"; + this.layoutControlItem4.OptionsTableLayoutItem.ColumnIndex = 3; + this.layoutControlItem4.Size = new System.Drawing.Size(347, 34); + this.layoutControlItem4.Text = "澶囨敞"; + this.layoutControlItem4.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem3 + // + this.layoutControlItem3.Control = this.txt_sbmc; + this.layoutControlItem3.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem3.CustomizationFormText = "璁惧鍚嶇О"; + this.layoutControlItem3.Location = new System.Drawing.Point(347, 0); + this.layoutControlItem3.Name = "layoutControlItem3"; + this.layoutControlItem3.OptionsTableLayoutItem.ColumnIndex = 1; + this.layoutControlItem3.Size = new System.Drawing.Size(347, 34); + this.layoutControlItem3.Text = "璁惧鍚嶇О"; + this.layoutControlItem3.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem2 + // + this.layoutControlItem2.Control = this.txt_sbgg; + this.layoutControlItem2.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem2.CustomizationFormText = "璁惧瑙勬牸"; + this.layoutControlItem2.Location = new System.Drawing.Point(694, 0); + this.layoutControlItem2.Name = "layoutControlItem2"; + this.layoutControlItem2.OptionsTableLayoutItem.ColumnIndex = 2; + this.layoutControlItem2.Size = new System.Drawing.Size(347, 34); + this.layoutControlItem2.Text = "璁惧瑙勬牸"; + this.layoutControlItem2.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem13 + // + this.layoutControlItem13.Control = this.txt_Guid; + this.layoutControlItem13.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem13.CustomizationFormText = "Guid"; + this.layoutControlItem13.Location = new System.Drawing.Point(1041, 104); + this.layoutControlItem13.Name = "layoutControlItem13"; + this.layoutControlItem13.OptionsTableLayoutItem.ColumnIndex = 3; + this.layoutControlItem13.OptionsTableLayoutItem.RowIndex = 3; + this.layoutControlItem13.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem13.Text = "Guid"; + this.layoutControlItem13.TextSize = new System.Drawing.Size(72, 22); + this.layoutControlItem13.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; + // + // layoutControlItem8 + // + this.layoutControlItem8.Control = this.txt_checkDate; + this.layoutControlItem8.Location = new System.Drawing.Point(0, 104); + this.layoutControlItem8.Name = "layoutControlItem8"; + this.layoutControlItem8.OptionsTableLayoutItem.RowIndex = 3; + this.layoutControlItem8.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem8.Text = "瀹℃牳鏃堕棿"; + this.layoutControlItem8.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem7 + // + this.layoutControlItem7.Control = this.txt_checkUser; + this.layoutControlItem7.Location = new System.Drawing.Point(347, 104); + this.layoutControlItem7.Name = "layoutControlItem7"; + this.layoutControlItem7.OptionsTableLayoutItem.ColumnIndex = 1; + this.layoutControlItem7.OptionsTableLayoutItem.RowIndex = 3; + this.layoutControlItem7.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem7.Text = "瀹℃牳浜�"; + this.layoutControlItem7.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem10 + // + this.layoutControlItem10.Control = this.txt_checkStatus; + this.layoutControlItem10.Location = new System.Drawing.Point(694, 104); + this.layoutControlItem10.Name = "layoutControlItem10"; + this.layoutControlItem10.OptionsTableLayoutItem.ColumnIndex = 2; + this.layoutControlItem10.OptionsTableLayoutItem.RowIndex = 3; + this.layoutControlItem10.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem10.TextSize = new System.Drawing.Size(0, 0); + this.layoutControlItem10.TextVisible = false; + // + // layoutControlItem15 + // + this.layoutControlItem15.Control = this.txt_zt; + this.layoutControlItem15.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem15.CustomizationFormText = "鐘舵��"; + this.layoutControlItem15.Location = new System.Drawing.Point(1041, 34); + this.layoutControlItem15.Name = "layoutControlItem15"; + this.layoutControlItem15.OptionsTableLayoutItem.ColumnIndex = 3; + this.layoutControlItem15.OptionsTableLayoutItem.RowIndex = 1; + this.layoutControlItem15.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem15.Text = "鐘舵��"; + this.layoutControlItem15.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem16 + // + this.layoutControlItem16.Control = this.txt_sccj; + this.layoutControlItem16.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem16.CustomizationFormText = "鐢熶骇鍘傚"; + this.layoutControlItem16.Location = new System.Drawing.Point(0, 34); + this.layoutControlItem16.Name = "layoutControlItem16"; + this.layoutControlItem16.OptionsTableLayoutItem.RowIndex = 1; + this.layoutControlItem16.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem16.Text = "鐢熶骇鍘傚"; + this.layoutControlItem16.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem6 + // + this.layoutControlItem6.Control = this.txt_createDate; + this.layoutControlItem6.Location = new System.Drawing.Point(0, 69); + this.layoutControlItem6.Name = "layoutControlItem6"; + this.layoutControlItem6.OptionsTableLayoutItem.RowIndex = 2; + this.layoutControlItem6.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem6.Text = "鍒涘缓鏃堕棿"; + this.layoutControlItem6.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem14 + // + this.layoutControlItem14.Control = this.txt_sl; + this.layoutControlItem14.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem14.CustomizationFormText = "鏁伴噺"; + this.layoutControlItem14.Location = new System.Drawing.Point(347, 34); + this.layoutControlItem14.Name = "layoutControlItem14"; + this.layoutControlItem14.OptionsTableLayoutItem.ColumnIndex = 1; + this.layoutControlItem14.OptionsTableLayoutItem.RowIndex = 1; + this.layoutControlItem14.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem14.Text = "鏁伴噺"; + this.layoutControlItem14.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem11 + // + this.layoutControlItem11.Control = this.txt_dw; + this.layoutControlItem11.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem11.CustomizationFormText = "鍗曚綅"; + this.layoutControlItem11.Location = new System.Drawing.Point(694, 34); + this.layoutControlItem11.Name = "layoutControlItem11"; + this.layoutControlItem11.OptionsTableLayoutItem.ColumnIndex = 2; + this.layoutControlItem11.OptionsTableLayoutItem.RowIndex = 1; + this.layoutControlItem11.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem11.Text = "鍗曚綅"; + this.layoutControlItem11.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem5 + // + this.layoutControlItem5.Control = this.txt_createUser; + this.layoutControlItem5.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem5.CustomizationFormText = "鍒涘缓浜�"; + this.layoutControlItem5.Location = new System.Drawing.Point(347, 69); + this.layoutControlItem5.Name = "layoutControlItem5"; + this.layoutControlItem5.OptionsTableLayoutItem.ColumnIndex = 1; + this.layoutControlItem5.OptionsTableLayoutItem.RowIndex = 2; + this.layoutControlItem5.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem5.Text = "鍒涘缓浜�"; + this.layoutControlItem5.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem18 + // + this.layoutControlItem18.Control = this.txt_UpDataTime; + this.layoutControlItem18.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem18.CustomizationFormText = "鏇存柊鏃堕棿"; + this.layoutControlItem18.Location = new System.Drawing.Point(694, 69); + this.layoutControlItem18.Name = "layoutControlItem18"; + this.layoutControlItem18.OptionsTableLayoutItem.ColumnIndex = 2; + this.layoutControlItem18.OptionsTableLayoutItem.RowIndex = 2; + this.layoutControlItem18.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem18.Text = "鏇存柊鏃堕棿"; + this.layoutControlItem18.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem12 + // + this.layoutControlItem12.Control = this.txt_UpDataUser; + this.layoutControlItem12.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem12.CustomizationFormText = "鏇存柊浜�"; + this.layoutControlItem12.Location = new System.Drawing.Point(1041, 69); + this.layoutControlItem12.Name = "layoutControlItem12"; + this.layoutControlItem12.OptionsTableLayoutItem.ColumnIndex = 3; + this.layoutControlItem12.OptionsTableLayoutItem.RowIndex = 2; + this.layoutControlItem12.Size = new System.Drawing.Size(347, 35); + this.layoutControlItem12.Text = "鏇存柊浜�"; + this.layoutControlItem12.TextSize = new System.Drawing.Size(72, 22); + // + // layoutControlItem1 + // + this.layoutControlItem1.Control = this.txt_sbbm; + this.layoutControlItem1.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem1.CustomizationFormText = "璁惧缂栫爜"; + this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); + this.layoutControlItem1.Name = "layoutControlItem1"; + this.layoutControlItem1.Size = new System.Drawing.Size(347, 34); + this.layoutControlItem1.Text = "璁惧缂栫爜"; + this.layoutControlItem1.TextSize = new System.Drawing.Size(72, 22); + // + // picCheckBox + // + this.picCheckBox.Image = global::Gs.DevApp.Properties.Resources.ico_noCheck; + this.picCheckBox.Location = new System.Drawing.Point(1285, 29); + this.picCheckBox.Margin = new System.Windows.Forms.Padding(4); + this.picCheckBox.Name = "picCheckBox"; + this.picCheckBox.Size = new System.Drawing.Size(125, 61); + this.picCheckBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.picCheckBox.TabIndex = 9; + this.picCheckBox.TabStop = false; + this.picCheckBox.Visible = false; + // + // txt_createUser2 + // + this.txt_createUser2.Location = new System.Drawing.Point(96, 12); + this.txt_createUser2.Margin = new System.Windows.Forms.Padding(4); + this.txt_createUser2.Name = "txt_createUser2"; + this.txt_createUser2.Properties.Appearance.Options.UseFont = true; + this.txt_createUser2.Size = new System.Drawing.Size(259, 28); + this.txt_createUser2.TabIndex = 231; + this.txt_createUser2.Tag = "readonly"; + // + // layoutControlItem17 + // + this.layoutControlItem17.Control = this.txt_createUser2; + this.layoutControlItem17.ControlAlignment = System.Drawing.ContentAlignment.TopLeft; + this.layoutControlItem17.CustomizationFormText = "鍒涘缓浜�"; + this.layoutControlItem17.Location = new System.Drawing.Point(0, 0); + this.layoutControlItem17.Name = "layoutControlItem17"; + this.layoutControlItem17.Size = new System.Drawing.Size(347, 34); + this.layoutControlItem17.Text = "鍒涘缓浜�"; + this.layoutControlItem17.TextSize = new System.Drawing.Size(72, 22); // // YS_sbtzb // this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 22F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1410, 834); + this.Controls.Add(this.picCheckBox); this.Controls.Add(this.xtraTabControl1); this.Controls.Add(this.toolBarMenu1); - this.IconOptions.Image = global::Gs.DevApp.Properties.Resources.logo_png_black; this.Margin = new System.Windows.Forms.Padding(4); this.Name = "YS_sbtzb"; - this.Text = "璁惧鍙拌处琛�"; + this.Text = "璁惧鍙拌处"; + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); + this.xtraTabControl1.ResumeLayout(false); this.xtraTabPage1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.split1.Panel1)).EndInit(); this.split1.Panel1.ResumeLayout(false); @@ -309,16 +989,72 @@ this.split1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.gcMain1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); - this.xtraTabControl1.ResumeLayout(false); + this.xtraTabPage2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitMx1.Panel1)).EndInit(); + this.splitMx1.Panel1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitMx1.Panel2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.splitMx1)).EndInit(); + this.splitMx1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.layoutMx1)).EndInit(); + this.layoutMx1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.txt_createDate.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_checkUser.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_checkDate.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_checkStatus.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_Guid.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_dw.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_sl.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_zt.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_sccj.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_bz.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_sbmc.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_sbgg.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_createUser.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_UpDataTime.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_UpDataUser.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_sbbm.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_createUser2.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).EndInit(); this.ResumeLayout(false); } #endregion private UserControl.UcToolBarMenu toolBarMenu1; - private DevExpress.Utils.ToolTipController tips; + private DevExpress.XtraTab.XtraTabControl xtraTabControl1; private DevExpress.XtraTab.XtraTabPage xtraTabPage1; private DevExpress.XtraEditors.SplitContainerControl split1; + private UserControls.Data.UcPageBar pageBar1; + private DevExpress.XtraTab.XtraTabPage xtraTabPage2; + private DevExpress.XtraEditors.SplitContainerControl splitMx1; + private System.Windows.Forms.Label lbGuid; + private DevExpress.XtraEditors.TextEdit txt_createDate; + private DevExpress.XtraLayout.LayoutControl layoutMx1; + private DevExpress.XtraLayout.LayoutControlGroup Root; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9; + private DevExpress.Utils.ToolTipController tips; + private DevExpress.XtraEditors.TextEdit txt_checkUser; + private DevExpress.XtraEditors.TextEdit txt_checkDate; + private DevExpress.XtraEditors.CheckEdit txt_checkStatus; + private System.Windows.Forms.PictureBox picCheckBox; private DevExpress.XtraGrid.GridControl gcMain1; private DevExpress.XtraGrid.Views.Grid.GridView gridView1; private DevExpress.XtraGrid.Columns.GridColumn guid; @@ -332,7 +1068,40 @@ private DevExpress.XtraGrid.Columns.GridColumn sl; private DevExpress.XtraGrid.Columns.GridColumn zt; private DevExpress.XtraGrid.Columns.GridColumn sccj; - private UserControls.Data.UcPageBar pageBar1; - private DevExpress.XtraTab.XtraTabControl xtraTabControl1; + private DevExpress.XtraEditors.TextEdit txt_dw; + private DevExpress.XtraEditors.TextEdit txt_sl; + private DevExpress.XtraEditors.TextEdit txt_zt; + private DevExpress.XtraEditors.TextEdit txt_sccj; + private DevExpress.XtraEditors.TextEdit txt_bz; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; + private DevExpress.XtraEditors.TextEdit txt_sbmc; + private DevExpress.XtraEditors.TextEdit txt_sbgg; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem15; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem16; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem14; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem11; + private DevExpress.XtraGrid.Columns.GridColumn checkUser; + private DevExpress.XtraGrid.Columns.GridColumn checkDate; + private DevExpress.XtraGrid.Columns.GridColumn checkStatus; + private DevExpress.XtraEditors.TextEdit txt_Guid; + private DevExpress.XtraEditors.TextEdit txt_createUser; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem13; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5; + private DevExpress.XtraGrid.Columns.GridColumn upDataTime; + private DevExpress.XtraGrid.Columns.GridColumn upDataUser; + private DevExpress.XtraEditors.TextEdit txt_UpDataTime; + private DevExpress.XtraEditors.TextEdit txt_createUser2; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem17; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem18; + private DevExpress.XtraEditors.TextEdit txt_UpDataUser; + private DevExpress.XtraEditors.TextEdit txt_sbbm; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem12; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; } } \ No newline at end of file diff --git a/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbtzb.cs b/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbtzb.cs index e9596d5..cf8179c 100644 --- a/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbtzb.cs +++ b/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbtzb.cs @@ -1,39 +1,56 @@ +锘縰sing DevExpress.ClipboardSource.SpreadsheetML; +using DevExpress.XtraEditors; 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.ComponentModel; using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using System.Windows.Media.Animation; namespace Gs.DevApp.DevFrm { public partial class YS_sbtzb : DevExpress.XtraEditors.XtraForm { - //璁惧鍙拌处琛� string _webServiceName = "YS_sbtzb/"; List<FilterEntity> _filterList = new List<FilterEntity>(); + public YS_sbtzb() { InitializeComponent(); + this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick;//鏌ヨ浜嬩欢 + this.toolBarMenu1.btnAddClick += ToolBarMenu1_btnAddClick;//鏂板浜嬩欢 + this.toolBarMenu1.btnEdtClick += ToolBarMenu1_btnEdtClick;//淇敼浜嬩欢 + this.toolBarMenu1.btnSaveClick += ToolBarMenu1_btnSaveClick; this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; - this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; + this.toolBarMenu1.btnDelClick += ToolBarMenu1_btnDelClick1; + this.toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick; + toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; + toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; this.toolBarMenu1.getXmlConfig(); - Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, this, "", "", (value) => + Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "checkStatus", "", (value) => { - - }); + Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0); + }, tips); Gs.DevApp.ToolBox.UtilityHelper.SetTabParameter(gridView1, xtraTabControl1, pageBar1, (value) => { + getModel(value); }, (value) => { getPageList(this.pageBar1.CurrentPage); - }); + }, lbGuid); getPageList(1); pageBar1.PagerEvent += PageBar1_PagerEvent; } + private async void GridView1_ColumnFilterChanged(object sender, EventArgs e) { _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns, gridView1); @@ -74,6 +91,79 @@ _filterList = e.FilterList; getPageList(1); } + /// <summary> + /// 瀹℃牳浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnChkClick(object sender, EventArgs e) + { + _toolCk(1); + } + + /// <summary> + /// 鍙嶅鏍� + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + /// <exception cref="NotImplementedException"></exception> + private void ToolBarMenu1_btnFChkClick(object sender, EventArgs e) + { + _toolCk(0); + } + /// <summary> + /// 鍙栨秷浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnEscClick(object sender, EventArgs e) + { + Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 1); + } + + /// <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_Guid, gridView1); + //(rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_Guid, gridView1, "hourlyType"); + if (string.IsNullOrEmpty(rowGuid)) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + if (!MsgHelper.AskQuestion("浣犻�夋嫨浜嗐��" + rowName + "銆戯紝纭畾鍒犻櫎鍚楋紵")) + return; + List<dynamic> lst = new List<dynamic>(); + lst.Add(rowGuid); + var _obj = new + { + guid = rowGuid, + mxGuid = Guid.Empty.ToString(), + }; + try + { + string strJson = UtilityHelper.HttpPost("", _webServiceName + "DeleteModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strJson); + if (_rtn.rtnCode > 0) + { + if (xtraTabControl1.SelectedTabPageIndex == 0) + { } + else + Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 2); + getPageList(this.pageBar1.CurrentPage); + } + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } /// <summary> /// 鍒锋柊浜嬩欢 @@ -82,7 +172,95 @@ /// <param name="e"></param> private void ToolBarMenu1_btnLoadClick(object sender, EventArgs e) { + if (xtraTabControl1.SelectedTabPageIndex == 1) + getModel(lbGuid.Text.Trim()); + else + { + getPageList(this.pageBar1.CurrentPage); + } + } + + /// <summary> + /// 鏂板浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnAddClick(object sender, EventArgs e) + { + lbGuid.Text = ""; + Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 4); + UtilityHelper.CleanValueByControl(this.layoutMx1.Controls, true); getPageList(this.pageBar1.CurrentPage); + } + private void ToolBarMenu1_btnEdtClick(object sender, EventArgs e) + { + string rowGuid, rowName; + (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1,lbGuid, txt_Guid, gridView1); + if (string.IsNullOrEmpty(rowGuid)) + { + MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 3); + getModel(rowGuid); + getPageList(this.pageBar1.CurrentPage); + } + + /// <summary> + /// 淇濆瓨浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) + { + toolBarMenu1.isSetBtn = false; + string sbbm = txt_sbbm.Text.Trim();//璁惧缂栫爜 + string sbmc = txt_sbmc.Text.Trim();//璁惧鍚嶇О + string bz = txt_bz.Text.Trim();//澶囨敞 + string createUser = txt_createUser.Text.Trim();//鍒涘缓浜� + string createDate = txt_createDate.Text.Trim();//鍒涘缓鏃堕棿 + string sbgg = txt_sbgg.Text.Trim();//璁惧瑙勬牸 + string dw = txt_dw.Text.Trim();//鍗曚綅锛堝彴/鏉★級 + string sl = txt_sl.Text.Trim();//鏁伴噺 + string zt = txt_zt.Text.Trim();//鐘舵�� + string sccj = txt_sccj.Text.Trim();//鐢熶骇鍘傚 + string UpDataTime = txt_UpDataTime.Text.Trim();//鏇存柊鏃堕棿 + string UpDataUser = txt_UpDataUser.Text.Trim();//鏇存柊浜� + + try + { + var _obj = new + { + guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //涓诲缓 + sbbm = sbbm, + sbmc = sbmc, + bz = bz, + createUser = createUser, + createDate = createDate, + sbgg = sbgg, + dw = dw, + sl = sl, + zt = zt, + sccj = sccj, + UpDataTime= UpDataTime, + UpDataUser= UpDataUser + }; + 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.outGuid; + toolBarMenu1.isSetBtn = true; + UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, false); + toolBarMenu1.currentAction = ""; + Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 6); + } + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } } /// <summary> @@ -93,12 +271,13 @@ private void getPageList(int curPage) { gcMain1.DataSource = null; var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); - PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "a.INDEP_DATE", "asc", "", _sbSqlWhere.ToString()); - string json = JsonConvert.SerializeObject(pgq); + var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "", "", "", _sbSqlWhere.ToString()); + var json = JsonConvert.SerializeObject(pgq); try { - var strReturn = UtilityHelper.HttpPost("", _webServiceName + "GetListPage", json); - ReturnModel<PageListModel> dd = UtilityHelper.ReturnToTablePage(strReturn); + var strReturn = UtilityHelper.HttpPost("", + _webServiceName + "GetListPage", json); + var dd = UtilityHelper.ReturnToTablePage(strReturn); if (dd.rtnCode > 0) { DataTable dt = dd.rtnData.list; @@ -109,7 +288,6 @@ gcMain1.DataSource = dt; gcMain1.ForceInitialize(); gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1); - } else UtilityHelper.SetDefaultTable(gcMain1, gridView1); @@ -125,8 +303,109 @@ } catch (Exception ex) { - ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); + MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); } } + + /// <summary> + /// 瀛愯〃鏌ヨ + /// </summary> + /// <param name="strGuid">涓婚敭</param> + /// <param name="isEdit">鏄惁鍙紪杈�</param> + /// <param name="tabIdx">閫夐」鍗″簭鍙�</param> + private void getModel(string strGuid) + { + bool isEdit = false; + if (toolBarMenu1.currentAction == "add") return; + if (toolBarMenu1.currentAction == "edit") isEdit = true; + if (string.IsNullOrEmpty(strGuid)) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + 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; + UtilityHelper.SetValueByObj(this.layoutMx1.Controls, dy, isEdit); + + } + else + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + + /// <summary> + /// 宸ュ叿鏉′簨浠� + /// </summary> + /// <param name="inFieldValue"></param> + private void _toolCk(int _inFieldValue) + { + string strMsg = ""; + switch (_inFieldValue) + { + case 1: + strMsg = "瀹℃牳"; + break; + case 0: + strMsg = "鍙嶅鏍�"; + break; + } + ; + toolBarMenu1.guidKey = ""; + string rowGuid, rowName; + (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_Guid, gridView1); + //(rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_SalaryType, gridView1, "hourlyType"); + if (string.IsNullOrEmpty(rowGuid)) + { + MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + if (!MsgHelper.AskQuestion("浣犻�夋嫨浜嗐��" + rowName + "銆戯紝纭畾" + strMsg + "鍚楋紵")) + return; + var _obj = new + { + guid = rowGuid, + ckValue = _inFieldValue, + parameter = "YS_sbtzb,check_Date,check_Status,check_user" + }; + try + { + var strJson = UtilityHelper.HttpPost("", "General/GeneralCheck", + JsonConvert.SerializeObject(_obj)); + var _rtn = UtilityHelper.ReturnToDynamic(strJson); + if (_rtn.rtnCode > 0) + { + MsgHelper.ShowInformation(_rtn.rtnData.outMsg.ToString()); + if (xtraTabControl1.SelectedTabPageIndex == 1) + { + getModel(lbGuid.Text.Trim()); + } + int rowHandle = gridView1.LocateByValue(1, gridView1.Columns["guid"], rowGuid); + gridView1.FocusedRowHandle = rowHandle; + UtilityHelper.SetCheckIco(gridView1, "checkStatus", "checkUser", "checkDate", picCheckBox, this, _inFieldValue.ToString()); + } + else + MsgHelper.ShowError(_rtn.rtnData.outMsg.ToString()); + } + catch (Exception ex) + { + MsgHelper.ShowError("鎻愮ず锛�" + ex.Message); + } + } + + } -} +} \ No newline at end of file diff --git a/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbtzb.resx b/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbtzb.resx index a4826a3..5160e8b 100644 --- a/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbtzb.resx +++ b/DevApp/Gs.DevApp/DevFrm/Rpt/YS_sbtzb.resx @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> +锘�<?xml version="1.0" encoding="utf-8"?> <root> <!-- Microsoft ResX Schema -- Gitblit v1.9.3