lu
2024-12-20 a55730702b0b1b541d6ec40cac4469a2418936d5
DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemQtrk.cs
@@ -30,7 +30,9 @@
            this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick;
            toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick;
            toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick;
            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, "", "", (value) =>
            toolBarMenu1.btnReportClick += ToolBarMenu1_btnReportClick;
            toolBarMenu1.btnDesignClick += ToolBarMenu1_btnDesignClick;
            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "qt015", "", (value) =>
            {
                Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0);
            });
@@ -43,6 +45,8 @@
            });
            getPageList(1);
            pageBar1.PagerEvent += PageBar1_PagerEvent;
            txt_qt011.getSuppler("");
            txt_qt018.getSuppler("");
            //设置仓库选择
            this.txt_qt011.EditChanged += (s, e) =>
            {
@@ -73,7 +77,7 @@
            {
                MsgHelper.Warning("提示:" + ex.Message);
            }
            gcMx1.MouseClick += GcMx1_MouseClick;
        }
        private   void GridView1_ColumnFilterChanged(object sender, EventArgs e)
        {
@@ -114,6 +118,55 @@
        {
            _filterList = e.FilterList;
            getPageList(1);
        }
        private void ToolBarMenu1_btnDesignClick(object sender, EventArgs e)
        {
            toolBarMenu1.guidKey = "";
            string rowGuid, rowName;
            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1,
                lbGuid, txt_qtck, gridView1);
            toolBarMenu1.guidKey = rowGuid;
            toolBarMenu1.rptParameter = "rpt_Qtrk{}";
        }
        private void ToolBarMenu1_btnReportClick(object sender, EventArgs e)
        {
            toolBarMenu1.guidKey = "";
            string rowGuid, rowName;
            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1,
                lbGuid, txt_qtck, gridView1);
            toolBarMenu1.guidKey = rowGuid;
            if (xtraTabControl1.SelectedTabPageIndex == 0)
            {
                getModel(rowGuid);
                this.toolBarMenu1.rptParameter = "return false";
                return;
            }
            if (string.IsNullOrEmpty(txt_iCount_1.Text.Trim()))
            {
                Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码张数!");
                txt_iCount_1.Focus();
                this.toolBarMenu1.rptParameter = "return false";
                return;
            }
            if (string.IsNullOrEmpty(txt_psnQty_1.Text.Trim()))
            {
                Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印条码数量!");
                txt_psnQty_1.Focus();
                this.toolBarMenu1.rptParameter = "return false";
                return;
            }
            if (lbMxGuid.Text.Trim().Length < 10)
            {
                Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择打印的行!");
                this.toolBarMenu1.rptParameter = "return false";
                return;
            }
            this.toolBarMenu1.rptParameter = "rpt_Qtrk{" + lbMxGuid.Text.Trim()
                   + "," + ""
                   + "," + ""
                   + "," + txt_iCount_1.Text.Trim()
                   + "," + txt_psnQty_1.Text.Trim()
                   + "}";
        }
        /// <summary>
@@ -254,7 +307,7 @@
                inRklx = txt_qt020.Text.Trim(),//入库类型
                inGys = inGys,//供应商
                inCjId = inCjId,//入库仓库
                inDepart = txt_qt009.Text.Trim(),//申请部门
                inDepart = txt_qt009.GetId(),//申请部门
                inXsdh = txt_qt021.Text.Trim(),//销售单号
                inRkyy = txt_qt010.Text.Trim(),//入库原因
                list = new List<dynamic>(),
@@ -358,7 +411,6 @@
                MsgHelper.Warning("请先选择你要操作的行!");
                return;
            }
            var _obj = new
            {
                guid = strGuid,//主建
@@ -527,6 +579,22 @@
            
        }
        private void GcMx1_MouseClick(object sender, MouseEventArgs e)
        {
            string rowGuid = Gs.DevApp.ToolBox.UtilityHelper.GetCurrentDoubleRow(gvMx1, e, "guid");
            if (string.IsNullOrEmpty(rowGuid))
                return;
            lbMxGuid.Text = rowGuid;
            toolBarMenu1.guidKey = rowGuid;
            var info = gvMx1.CalcHitInfo(e.Location);
            var view = info.View;
            var row = view.GetDataRow(info.RowHandle);
            txtWlid.Text = row["itemId"].ToString();
            txtWlgg.Text = row["qd004"].ToString();
            txtWlmc.Text = row["qd003"].ToString();
            txtQuantity.Text = row["qd007"].ToString();//申请总量
            txtYdy.Text = row["YDYNUM"].ToString();//已打印总量
            kyPrtQty.Text = row["KDYNUM"].ToString();//可打印总量
        }
    }
}