| | |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_billNo, gridView1); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | this.toolBarMenu1.rptParameter = "return false"; |
| | | MsgHelper.Warning("请先选择你要打印的单据!"); |
| | | return; |
| | | } |
| | | |
| | | try |
| | | { |
| | | string rptParameter = "rpt_Cgrk{" |
| | | + rowGuid // @inOrderGuid - 单据guid |
| | | + "," + "100" // @isDesign - 重打都是传100 |
| | |
| | | + "," + "" // @in5 - 数量(扩展用) |
| | | + "," + "" // @in6 - 扩展用 |
| | | + "}"; |
| | | using (Form rpt = new RptPreview(rowGuid, rptParameter)) |
| | | { |
| | | rpt.ShowDialog(); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.ShowError(ex.Message); |
| | | } |
| | | this.toolBarMenu1.rptParameter = rptParameter; |
| | | this.toolBarMenu1.guidKey = rowGuid; |
| | | |
| | | } |
| | | |
| | | |