| | |
| | | { |
| | | try |
| | | { |
| | | string rptParameter = "rpt_Arrival{" |
| | | string rptParameter = "rpt_Arrival_Hb{" |
| | | + "100"//重打都是传100, |
| | | + "," + "" |
| | | + "," + "" |
| | |
| | | releaseNosStr // s5 → @in6:releaseNo列表 |
| | | }; |
| | | |
| | | /*string paramContent = string.Join(",", reportParams); |
| | | string rptParam = $"rpt_Arrival_One{{{paramContent}}}"; |
| | | |
| | | this.ucBtnPrintOne1.guidKey = mainGuid; |
| | | this.ucBtnPrintOne1.rptParameter = rptParam; |
| | | |
| | | // 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"; |
| | | } |
| | | */ |
| | | |
| | | this.ucBtnPrintOne1.guidKey = mainGuid; |
| | | this.ucBtnPrintOne1.rptParameter = "rpt_Arrival_One{" |