cdk
2025-12-02 4b40e0d9657203dd45baa1e6358547f1080491cc
DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemQtrk.cs
@@ -213,6 +213,45 @@
            {
                Gs.DevApp.ToolBox.UtilityHelper.PrintAuto(txt_psnQty_1, txt_iCount_1, radOut, txt_yuliang_1);
            };
            //全部打印
            ucBtnPrintAll1.btnPrintClick += (s, e) =>
            {
                this.ucBtnPrintAll1.rptType = "";
                this.ucBtnPrintAll1.mxList = null;
                if (string.IsNullOrEmpty(lbGuid.Text.Trim()))
                {
                    MsgHelper.ShowError("提示:打印前请先保存单据!");
                    return;
                }
                getModel(lbGuid.Text.Trim());
                List<dynamic> lst = new List<dynamic>();
                DataTable dt = (DataTable)gcMx1.DataSource;
                foreach (DataRow row in dt.Rows)
                {
                    string guid = row["guid"].ToString();
                    string psnQty = row["kdy"].ToString();
                    if (string.IsNullOrEmpty(psnQty))
                    {
                        continue;
                    }
                    if (psnQty == "0")
                    {
                        continue;
                    }
                    lst.Add(new
                    {
                        guid = guid,
                        kdy = psnQty,
                    });
                }
                if (lst.Count <= 0)
                {
                    MsgHelper.ShowError("提示:暂无可打印的物料!");
                    return;
                }
                this.ucBtnPrintAll1.rptType = "rpt_Qtrk";
                this.ucBtnPrintAll1.mxList = lst;
            };
            #region 2025-08-27 复制beg
            btnCopyXls.Click += (s, e) =>
            {
@@ -269,7 +308,7 @@
            #endregion
        }
        /// <summary>
        /// 来源明细限制,
        /// </summary>
@@ -715,6 +754,8 @@
                    _ucHzlx = dy.qt023;
                    _ucHz = dy.qt024;
                    lbGuid.Text = strGuid;
                    ucLookHuoZhu1.SetHzId(_ucHz);
                    ucLookHuoZhu1.SetHzLx(_ucHzlx);
                    List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
                    gvList.Add(gvMx1);
                    gvList.Add(gvMx2);
@@ -725,6 +766,7 @@
                    _ucHzlx = "";
                    _ucHz = "";
                    ucLookHuoZhu1.Enabled = isEdit;
                    JObject _job = JObject.Parse(strJson);
                    JArray array = new JArray();
                    foreach (var a in _job["rtnData"]["list"])