kyy
2025-11-10 6f6bdbb9455f928e3f1d629683044e49a95df48e
DevApp/Gs.DevApp/DevFrm/Rpt/CKTmkc.cs
@@ -21,6 +21,7 @@
            this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick;
            this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick;
            toolBarMenu1.btnPrintClick += ToolBarMenu1_btnPrintClick;
            toolBarMenu1.btnTBPrintClick += ToolBarMenu1_btnTBPrintClick;
            this.toolBarMenu1.getXmlConfig();
            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, this, "", "", (value) =>
            {
@@ -250,5 +251,33 @@
                                               + "}";
            this.toolBarMenu1.guidKey = null;
        }
        /// <summary>
        /// 这是托板打印
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ToolBarMenu1_btnTBPrintClick(object sender, EventArgs e)
        {
            //System.Text.StringBuilder sb = new System.Text.StringBuilder();
            gridView1.PostEditor();
            gridView1.UpdateCurrentRow();
            /*if (string.IsNullOrEmpty(sb.ToString()))
            {
                Gs.DevApp.ToolBox.MsgHelper.ShowError("提示:请先选择物料!");
                this.toolBarMenu1.rptParameter = "return false";
                return;
            }*/
            this.toolBarMenu1.rptParameter = "rpt_TB_Print{"
                                               + ""
                                               + "," + ""
                                               + "," + ""
                                                + "," + ""
                                               + "," + ""
                                               + "," + ""
                                               + "}";
            this.toolBarMenu1.guidKey = null;
        }
    }
}