From b5dcb53aa7b452d44b4fc19a0c830f86ab9cb5aa Mon Sep 17 00:00:00 2001 From: cdk <2441919651@qq.com> Date: 星期五, 25 七月 2025 15:19:50 +0800 Subject: [PATCH] Merge branch 'master' of http://git.gs-mes.com:8080/r/~tjx/GsMesClient --- DevApp/Gs.DevApp/DevFrm/WW/WwBlcl.cs | 6 +++ DevApp/Gs.DevApp/UserControl/UcToolBarMenu.Designer.cs | 8 ++-- DevApp/Gs.DevApp/DevFrm/WOM/Frm_WomFanGong.cs | 45 +++++++++++++--------- DevApp/Gs.DevApp/DevFrm/WOM/Frm_WomFanGong.Designer.cs | 38 +++++++++--------- DevApp/Gs.DevApp/Program.cs | 4 +- DevApp/Gs.DevApp/XtraForm1.cs | 10 +++-- 6 files changed, 63 insertions(+), 48 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_WomFanGong.Designer.cs b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_WomFanGong.Designer.cs index dc1a0db..f7af8af 100644 --- a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_WomFanGong.Designer.cs +++ b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_WomFanGong.Designer.cs @@ -93,6 +93,7 @@ this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem17 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem16 = new DevExpress.XtraLayout.LayoutControlItem(); + this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem(); this.tabMx = new DevExpress.XtraTab.XtraTabControl(); this.tabMxPage1 = new DevExpress.XtraTab.XtraTabPage(); this.gcMx1 = new DevExpress.XtraGrid.GridControl(); @@ -121,7 +122,6 @@ this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn9 = new DevExpress.XtraGrid.Columns.GridColumn(); this.tips = new DevExpress.Utils.ToolTipController(this.components); - this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); this.xtraTabControl1.SuspendLayout(); this.xtraTabPage1.SuspendLayout(); @@ -174,6 +174,7 @@ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tabMx)).BeginInit(); this.tabMx.SuspendLayout(); this.tabMxPage1.SuspendLayout(); @@ -182,7 +183,6 @@ this.tabMxPage2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gcMx2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gvMx2)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit(); this.SuspendLayout(); // // toolBarMenu1 @@ -859,6 +859,18 @@ this.layoutControlItem16.Text = "杩濊绫诲埆"; this.layoutControlItem16.TextSize = new System.Drawing.Size(75, 18); // + // layoutControlItem13 + // + this.layoutControlItem13.Control = this.ucBtnPrint98; + this.layoutControlItem13.Location = new System.Drawing.Point(990, 99); + this.layoutControlItem13.Name = "layoutControlItem13"; + this.layoutControlItem13.OptionsTableLayoutItem.ColumnIndex = 3; + this.layoutControlItem13.OptionsTableLayoutItem.RowIndex = 3; + this.layoutControlItem13.Size = new System.Drawing.Size(332, 33); + this.layoutControlItem13.Text = "纭畾鎵撳嵃"; + this.layoutControlItem13.TextSize = new System.Drawing.Size(0, 0); + this.layoutControlItem13.TextVisible = false; + // // tabMx // this.tabMx.Dock = System.Windows.Forms.DockStyle.Fill; @@ -984,7 +996,7 @@ // this.tabMxPage2.Controls.Add(this.gcMx2); this.tabMxPage2.Name = "tabMxPage2"; - this.tabMxPage2.Size = new System.Drawing.Size(1361, 332); + this.tabMxPage2.Size = new System.Drawing.Size(1361, 376); this.tabMxPage2.Text = "杩芥函鐮佹槑缁�"; // // gcMx2 @@ -993,7 +1005,7 @@ this.gcMx2.Location = new System.Drawing.Point(0, 0); this.gcMx2.MainView = this.gvMx2; this.gcMx2.Name = "gcMx2"; - this.gcMx2.Size = new System.Drawing.Size(1361, 332); + this.gcMx2.Size = new System.Drawing.Size(1361, 376); this.gcMx2.TabIndex = 2; this.gcMx2.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gvMx2}); @@ -1100,7 +1112,7 @@ // gridColumn12 // this.gridColumn12.Caption = "缁戝畾鏃堕棿"; - this.gridColumn12.FieldName = "dhdh"; + this.gridColumn12.FieldName = "bdDateTime"; this.gridColumn12.MinWidth = 25; this.gridColumn12.Name = "gridColumn12"; this.gridColumn12.Visible = true; @@ -1110,7 +1122,7 @@ // gridColumn5 // this.gridColumn5.Caption = "缁戝畾浜�"; - this.gridColumn5.FieldName = "bdDateTime"; + this.gridColumn5.FieldName = "bdUserBy"; this.gridColumn5.MinWidth = 25; this.gridColumn5.Name = "gridColumn5"; this.gridColumn5.Visible = true; @@ -1156,18 +1168,6 @@ this.gridColumn9.Visible = true; this.gridColumn9.VisibleIndex = 11; this.gridColumn9.Width = 94; - // - // layoutControlItem13 - // - this.layoutControlItem13.Control = this.ucBtnPrint98; - this.layoutControlItem13.Location = new System.Drawing.Point(990, 99); - this.layoutControlItem13.Name = "layoutControlItem13"; - this.layoutControlItem13.OptionsTableLayoutItem.ColumnIndex = 3; - this.layoutControlItem13.OptionsTableLayoutItem.RowIndex = 3; - this.layoutControlItem13.Size = new System.Drawing.Size(332, 33); - this.layoutControlItem13.Text = "纭畾鎵撳嵃"; - this.layoutControlItem13.TextSize = new System.Drawing.Size(0, 0); - this.layoutControlItem13.TextVisible = false; // // Frm_WomFanGong // @@ -1230,6 +1230,7 @@ ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tabMx)).EndInit(); this.tabMx.ResumeLayout(false); this.tabMxPage1.ResumeLayout(false); @@ -1238,7 +1239,6 @@ this.tabMxPage2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.gcMx2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gvMx2)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit(); this.ResumeLayout(false); } diff --git a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_WomFanGong.cs b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_WomFanGong.cs index b2b463b..01ad6ef 100644 --- a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_WomFanGong.cs +++ b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_WomFanGong.cs @@ -1,6 +1,7 @@ 锘縰sing DevExpress.Utils.MVVM.Services; using DevExpress.XtraGrid.Views.Grid; using DevExpress.XtraLayout.Customization; +using DevExpress.XtraRichEdit.Model; using Gs.DevApp.DevFrm.Rpt; using Gs.DevApp.Entity; using Gs.DevApp.ToolBox; @@ -41,7 +42,7 @@ }, lbGuid); getPageList(1); pageBar1.PagerEvent += PageBar1_PagerEvent; - //瑙g粦杩芥函鐮� + //纭畾鍙嶅伐 btnZsm.Click += (s, e) => { if (!MsgHelper.AskQuestion("纭畾鐢熸垚鏂扮殑杩芥函鐮佸悧锛�")) @@ -70,8 +71,8 @@ } }; //杩欐槸鎵撳嵃锛岃繖鍜屽叾瀹冮〉闈㈡槸涓嶄竴鏍风殑锛屼笉鑳藉鍒惰繖閲� - this.ucBtnPrint98.SetPlButton(false); - this.ucBtnPrint98.btnPrintClick += (s, e) => + this.ucBtnPrint98.SetPrintButton(false); + this.ucBtnPrint98.btnAllClick += (s, e) => { string rowGuid = txt_aboutGuid.Text.Trim(); if (rowGuid.Length < 36) @@ -82,33 +83,39 @@ } SelectDeleteBar frm = new SelectDeleteBar(rowGuid, "杩芥函鐮�", lbGuid.Text.Trim()); string strCodeList = ""; + string strAction = ""; frm.UpdateParent += (ss, ee) => { strCodeList = ee.StringSingle; + strAction = ee.Data; }; frm.ShowDialog(); if (string.IsNullOrEmpty(strCodeList)) return; - try + if (strAction == "print") { - string rptParameter = "rpt_trace{" - + "100" - + "," + "" - + "," + "" - + "," + "" - + "," + "" - + "," + strCodeList - + "}"; - using (Form rpt = new RptPreview(rowGuid, rptParameter)) + try { - rpt.ShowDialog(); + string rptParameter = "rpt_trace{" + + "100" + + "," + "" + + "," + "" + + "," + "" + + "," + "" + + "," + strCodeList + + "}"; + using (Form rpt = new RptPreview(rowGuid, rptParameter)) + { + rpt.ShowDialog(); + } + frm.Close(); } - frm.Close(); + catch (Exception ex) + { + MsgHelper.ShowError(ex.Message); + } } - catch (Exception ex) - { - MsgHelper.ShowError(ex.Message); - } + }; } diff --git a/DevApp/Gs.DevApp/DevFrm/WW/WwBlcl.cs b/DevApp/Gs.DevApp/DevFrm/WW/WwBlcl.cs index 81d4769..915d45a 100644 --- a/DevApp/Gs.DevApp/DevFrm/WW/WwBlcl.cs +++ b/DevApp/Gs.DevApp/DevFrm/WW/WwBlcl.cs @@ -256,6 +256,9 @@ gvList.Add(gvMx1); UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, true, gvList); } + //2025/07/12鍔犱笂淇敼鐘舵�佷笅涓嶈兘淇敼 + txt_orgId.IsReadly = true; + txt_aboutGuid.IsReadly = true; } /// <summary> /// 鏂板浜嬩欢 @@ -270,6 +273,9 @@ gridViews.Add(gvMx1); UtilityHelper.CleanValueByControl(this.layoutMx1.Controls, true, gridViews); Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1); + //澧炲姞鏃讹紝榛樿缁勭粐 + string deftOrg = UtilityHelper.GetFirstOrg(txt_orgId); + } /// <summary> diff --git a/DevApp/Gs.DevApp/Program.cs b/DevApp/Gs.DevApp/Program.cs index 2ae901a..4dd0414 100644 --- a/DevApp/Gs.DevApp/Program.cs +++ b/DevApp/Gs.DevApp/Program.cs @@ -40,8 +40,8 @@ /// </summary> private static void _startLogin() { - Application.Run(new Gs.DevApp.XtraForm1()); - return; + //Application.Run(new Gs.DevApp.XtraForm1()); + //return; CefSettings settings = new CefSettings(); settings.Locale = "zh-CN"; Cef.Initialize(settings); diff --git a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.Designer.cs b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.Designer.cs index c32ebc6..4b44e1d 100644 --- a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.Designer.cs +++ b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.Designer.cs @@ -596,7 +596,7 @@ // this.barDockControlBottom.CausesValidation = false; this.barDockControlBottom.Dock = System.Windows.Forms.DockStyle.Bottom; - this.barDockControlBottom.Location = new System.Drawing.Point(0, 265); + this.barDockControlBottom.Location = new System.Drawing.Point(0, 69); this.barDockControlBottom.Manager = this.barManager1; this.barDockControlBottom.Size = new System.Drawing.Size(1543, 0); // @@ -606,7 +606,7 @@ this.barDockControlLeft.Dock = System.Windows.Forms.DockStyle.Left; this.barDockControlLeft.Location = new System.Drawing.Point(0, 142); this.barDockControlLeft.Manager = this.barManager1; - this.barDockControlLeft.Size = new System.Drawing.Size(0, 123); + this.barDockControlLeft.Size = new System.Drawing.Size(0, 0); // // barDockControlRight // @@ -614,7 +614,7 @@ this.barDockControlRight.Dock = System.Windows.Forms.DockStyle.Right; this.barDockControlRight.Location = new System.Drawing.Point(1543, 142); this.barDockControlRight.Manager = this.barManager1; - this.barDockControlRight.Size = new System.Drawing.Size(0, 123); + this.barDockControlRight.Size = new System.Drawing.Size(0, 0); // // UcToolBarMenu // @@ -625,7 +625,7 @@ this.Controls.Add(this.barDockControlBottom); this.Controls.Add(this.barDockControlTop); this.Name = "UcToolBarMenu"; - this.Size = new System.Drawing.Size(1543, 265); + this.Size = new System.Drawing.Size(1543, 69); ((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); diff --git a/DevApp/Gs.DevApp/XtraForm1.cs b/DevApp/Gs.DevApp/XtraForm1.cs index b7fc7a0..f318ce3 100644 --- a/DevApp/Gs.DevApp/XtraForm1.cs +++ b/DevApp/Gs.DevApp/XtraForm1.cs @@ -23,7 +23,6 @@ public XtraForm1() { InitializeComponent(); - } private void simpleButton2_Click(object sender, EventArgs e) @@ -172,7 +171,9 @@ private void simpleButton1_Click(object sender, EventArgs e) { - DataTable dataTable1 = this.GetDataTable($"select MIG004,MIG005 from BASMIG(nolock) where MIG001='ShuiJianZhanWei01' and MIG003='{((BaseEdit)this.txtGWM).EditValue.ToString()}'", "tmpBASMIG2"); + System.Text.StringBuilder sbSql1 = new StringBuilder(); + sbSql1.Append($"select MIG004,MIG005 from BASMIG(nolock) where MIG001='ShuiJianZhanWei01' and MIG003='{((BaseEdit)this.txtGWM).EditValue.ToString()}'"); + DataTable dataTable1 = this.GetDataTable(sbSql1.ToString(), "tmpBASMIG2"); if (dataTable1 == null || dataTable1.Rows.Count <= 0) { MessageBox.Show("璇ユ按妫�绔欎綅鐮佷笉瀛樺湪锛岃纭锛�"); @@ -183,7 +184,9 @@ ModbusFactory modbusFactory = new ModbusFactory(); byte num1 = byte.Parse("1"); ushort num2 = ushort.Parse("1"); - DataTable dataTable2 = GetDataTable(string.Format($"select case when MIG006='D' then MIG003+{dataTable1.Rows[0][0]} else MIG003+{dataTable1.Rows[0][1]} end MIG003,MIG004 from BASMIG(nolock) where MIG001 = 'ShuiJianAddress01' order by MIG005"), "tmpBASMIG3"); + System.Text.StringBuilder sbSql2 = new StringBuilder(); + sbSql2.Append(string.Format($"select case when MIG006='D' then MIG003+{dataTable1.Rows[0][0]} else MIG003+{dataTable1.Rows[0][1]} end MIG003,MIG004 from BASMIG(nolock) where MIG001 = 'ShuiJianAddress01' order by MIG005")); + DataTable dataTable2 = GetDataTable(sbSql2.ToString(), "tmpBASMIG3"); if (dataTable2 == null || dataTable2.Rows.Count <= 0) { MessageBox.Show("姘存鍦板潃涓嶅瓨鍦紝璇风‘璁わ紒"); @@ -251,7 +254,6 @@ { throw new Exception(ex.Message); } - return ds.Tables[0]; } } -- Gitblit v1.9.3