| | |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx2); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx3); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMxL1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMxL2); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMxL3); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, "", "", (value) => |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0); |
| | |
| | | releaseNosStr // s5 → @in6:releaseNo列表 |
| | | }; |
| | | |
| | | string paramContent = string.Join(",", reportParams); |
| | | string rptParam = $"rpt_Arrival_One{{{paramContent}}}"; |
| | | //string paramContent = string.Join(",", reportParams); |
| | | //string rptParam = $"rpt_Arrival_One{{{paramContent}}}"; |
| | | |
| | | //this.ucBtnPrintOne1.guidKey = mainGuid; |
| | | //this.ucBtnPrintOne1.rptParameter = rptParam; |
| | | |
| | | this.ucBtnPrintOne1.guidKey = mainGuid; |
| | | this.ucBtnPrintOne1.rptParameter = rptParam; |
| | | this.ucBtnPrintOne1.rptParameter = "rpt_Arrival_One{" |
| | | + string.Join(",", reportParams) // 拼接reportParams数组元素 |
| | | + "}"; |
| | | |
| | | // 5. 调用预览(逻辑不变) |
| | | try |
| | | { |
| | | using (Form rptPreviewForm = new RptPreview(mainGuid, rptParam)) |
| | | { |
| | | DialogResult previewResult = rptPreviewForm.ShowDialog(); |
| | | if (previewResult == DialogResult.OK) |
| | | { |
| | | getModel(mainGuid); |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError($"批量打印完成!共打印 {validReleaseNos.Count} 条有效明细"); |
| | | } |
| | | else if (previewResult == DialogResult.Cancel) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("用户取消批量打印操作"); |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | string errorMsg = $"批量打印异常:{ex.Message}"; |
| | | if (ex.InnerException != null) |
| | | { |
| | | errorMsg += $"\n内部错误:{ex.InnerException.Message}"; |
| | | } |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError(errorMsg); |
| | | this.ucBtnPrintOne1.rptParameter = "return false"; |
| | | } |
| | | |
| | | /* // 5. 调用预览(逻辑不变) |
| | | try |
| | | { |
| | | using (Form rptPreviewForm = new RptPreview(mainGuid, rptParam)) |
| | | { |
| | | DialogResult previewResult = rptPreviewForm.ShowDialog(); |
| | | if (previewResult == DialogResult.OK) |
| | | { |
| | | getModel(mainGuid); |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError($"批量打印完成!共打印 {validReleaseNos.Count} 条有效明细"); |
| | | } |
| | | else if (previewResult == DialogResult.Cancel) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("用户取消批量打印操作"); |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | string errorMsg = $"批量打印异常:{ex.Message}"; |
| | | if (ex.InnerException != null) |
| | | { |
| | | errorMsg += $"\n内部错误:{ex.InnerException.Message}"; |
| | | } |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError(errorMsg); |
| | | this.ucBtnPrintOne1.rptParameter = "return false"; |
| | | } |
| | | */ |
| | | // 6. 清空控件 |
| | | txt_iCount_2.Text = ""; |
| | | txt_psnQty_2.Text = ""; |