From eedfab0cc6288b09227ee6970c8071114dd831de Mon Sep 17 00:00:00 2001 From: cnf <3200815559@qq.com> Date: 星期四, 11 九月 2025 18:52:55 +0800 Subject: [PATCH] 首检 --- DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemIns.cs | 61 +++++++++++++++++++++++------- 1 files changed, 46 insertions(+), 15 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemIns.cs b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemIns.cs index 7d5db43..3215710 100644 --- a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemIns.cs +++ b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemIns.cs @@ -1,3 +1,4 @@ +using Gs.DevApp.DevFrm.Rpt; using Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Gs.DevApp.UserControl; @@ -25,9 +26,13 @@ toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick; toolBarMenu1.btnDelClick += ToolBarMenu1_btnDelClick1; + toolBarMenu1.btnPrintClick += ToolBarMenu1_btnPrintClick; this.toolBarMenu1.getXmlConfig(); Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx2); Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); + Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMxL2); + Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMxL1); + Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "checkStatus", "", (value) => { Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0); @@ -43,24 +48,49 @@ }, lbGuid); getPageList(1); pageBar1.PagerEvent += PageBar1_PagerEvent; + //鎵撳嵃姣斾緥 + UtilityHelper.SetSimpleGridColor(gridView1, "barcodeProgress", "=100.00%", "Cell", Color.Green); + //鍏ュ簱姣斾緥 + UtilityHelper.SetSimpleGridColor(gridView1, "rkbl", "=100.00%", "Cell", Color.Green); - // 浣跨敤鏂扮殑绠�鍖栨牸寮忚缃鏍哥姸鎬侀鑹� - this.Load += (s, e) => { - System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer(); - timer.Interval = 1000; // 1绉掑悗鎵ц - timer.Tick += (sender, args) => { - timer.Stop(); - timer.Dispose(); - - // 璁剧疆瀹℃牳鐘舵�侀鑹� - 鏀寔澶氱bit绫诲瀷鐨勫�兼牸寮� - - UtilityHelper.SetSimpleGridColor(gridView1, "checkStatus", "=True", "Cell", Color.Blue); - - }; - timer.Start(); - }; } + + private void ToolBarMenu1_btnPrintClick(object sender, EventArgs e) + { + string rowGuid, rowName; + (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_billNo, gridView1); + if (string.IsNullOrEmpty(rowGuid)) + { + MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎵撳嵃鐨勫崟鎹紒"); + return; + } + + try + { + string rptParameter = "rpt_Cgrk{" + + rowGuid // @inOrderGuid - 鍗曟嵁guid + + "," + "100" // @isDesign - 閲嶆墦閮芥槸浼�100 + + "," + "" // @in1 - 鍏ュ簱鏃堕棿锛堟墿灞曠敤锛� + + "," + "" // @in2 - 鐗归噰锛堟墿灞曠敤锛� + + "," + "" // @in3 - 渚涘簲鍟唅d锛堟墿灞曠敤锛� + + "," + "" // @in4 - 寮犳暟锛堟墿灞曠敤锛� + + "," + "" // @in5 - 鏁伴噺锛堟墿灞曠敤锛� + + "," + "" // @in6 - 鎵╁睍鐢� + + "}"; + using (Form rpt = new RptPreview(rowGuid, rptParameter)) + { + rpt.ShowDialog(); + } + } + catch (Exception ex) + { + MsgHelper.ShowError(ex.Message); + } + } + + + private void GridView1_ColumnFilterChanged(object sender, EventArgs e) { _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns, gridView1); @@ -353,6 +383,7 @@ } int rowHandle = gridView1.LocateByValue(1, gridView1.Columns["guid"], rowGuid); gridView1.FocusedRowHandle = rowHandle; + int _meth = (( _inFieldValue == 1) ? 1 : -1); UtilityHelper.SetCheckIco(gridView1, "checkStatus", "checkUser", "checkDate", picCheckBox, this, _inFieldValue.ToString()); } } -- Gitblit v1.9.3