kyy
2025-09-04 9ecf582d2b5524915731d0c8bba0b62572d91973
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);
@@ -50,6 +55,42 @@
        }
        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 - 供应商id(扩展用)
                + "," + ""  // @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);
@@ -342,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());
                }
            }