lg
2025-11-26 f2a352ef00e1b5d3c0723eb8b9aada1bea1b2713
DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemTbl.cs
@@ -36,6 +36,9 @@
            toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick;
            toolBarMenu1.btnPingZhiClick += ToolBarMenu1_btnPingZhiClick;
            toolBarMenu1.btnFPingZhiClick += ToolBarMenu1_btnFPingZhiClick;
            toolBarMenu1.btnWjClick += ToolBarMenu1_btnWjClick;
            toolBarMenu1.btnPrintClick += ToolBarMenu1_btnPrintClick;
            this.toolBarMenu1.getXmlConfig();
            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1);
            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx2);
@@ -86,8 +89,8 @@
                {
                    try
                    {
                        var lst = new List<string>();
                        lst = ee.StringList;
                        var lst = new List<dynamic>();
                        lst = ee.DynamicList;
                        var _obj = lst;
                        var strReturn = UtilityHelper.HttpPost("",
                            "MesItemTblManager/SelectPbaToView",
@@ -176,9 +179,51 @@
            {
                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["tlid"].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_SCTL";
                this.ucBtnPrintAll1.mxList = lst;
            };
            #endregion
        }
        /// <summary>
        /// 打印
        /// </summary>
@@ -245,6 +290,32 @@
        {
            getPageList(curPage);
        }
        /// <summary>
        /// 打印
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ToolBarMenu1_btnPrintClick(object sender, EventArgs e)
        {
            //guidKey, rptParameter
            string rowGuid, rowName;
            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1,
                lbGuid, txt_billNo, gridView1, "billNo");
            if (string.IsNullOrEmpty(rowGuid))
            {
                MsgHelper.ShowError("请先选择你要操作的行!");
                return;
            }
            this.toolBarMenu1.rptParameter = "rpt_SCTLSQ{"
                                               + ""
                                               + "," + ""
                                               + "," + ""
                                               + "," + ""
                                               + "," + ""
                                               + "}";
            this.toolBarMenu1.guidKey = rowGuid;
        }
        /// <summary>
        /// 查询事件
        /// </summary>
@@ -269,7 +340,16 @@
            _filterList = e.FilterList;
            getPageList(1);
        }
        /// <summary>
        /// 完结
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <exception cref="NotImplementedException"></exception>
        private void ToolBarMenu1_btnWjClick(object sender, EventArgs e)
        {
            _toolCk(199);
        }
        /// <summary>
        /// 批准
        /// </summary>
@@ -537,7 +617,8 @@
                        AboutGuid = Gs.DevApp.ToolBox.UtilityHelper.ToGuid(row["aboutGuid"].ToString()),
                        Sl = _sl, //申请数量
                        Remark = _tld014,
                        Bllb = row["tld015"].ToString().Replace("|", ",")
                        Bllb = row["tld015"].ToString().Replace("|", ","),
                        tld016 = row["tld016"].ToString()
                    });
                }
            }
@@ -765,6 +846,9 @@
                case 5:
                    strMsg = "品质反审核";
                    break;
                case 199:
                    strMsg = "完结";
                    break;
            }
            ;
            toolBarMenu1.guidKey = "";
@@ -821,7 +905,7 @@
            var rowhandle = gvMx1.FocusedRowHandle;
            if (rowhandle < 0)
                return;
            UcDictionarySelect frm = new UcDictionarySelect("异常描述", "  a.s_type='QC异常描述' and a.pid<>'00000000-0000-0000-0000-000000000000'");
            UcDictionarySelect frm = new UcDictionarySelect("退料类别", "  a.s_type='生产退料类别' and a.pid<>'00000000-0000-0000-0000-000000000000'");
            frm.UpdateParent += (ss, ee) =>
            {
                System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder();