| | |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.PrintAuto(txt_psnQty_1, txt_iCount_1, radOut, txt_yuliang_1); |
| | | }; |
| | | |
| | | |
| | | |
| | | //一键打印事件 |
| | | this.ucBtnPrintOne1.btnPrintClick += (s, e) => |
| | | { |
| | | string mainGuid = lbGuid.Text.Trim(); |
| | | ucBtnPrint1.guidKey = mainGuid; |
| | | this.ucBtnPrint1.rptParameter = "rpt_Arrival{" |
| | | + "101"//一键打印101 |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + "" |
| | | + "}"; |
| | | |
| | | txt_iCount_1.Text = ""; |
| | | txt_psnQty_1.Text = ""; |
| | | }; |
| | | //一键打印批量操作事件 |
| | | this.ucBtnPrintOne1.btnAllClick += (s, e) => |
| | | { |
| | | string mainGuid = lbGuid.Text.Trim(); |
| | | SelectDeleteBar frm = new SelectDeleteBar(mainGuid, "批量条码"); // 标题区分来源 |
| | | string strCodeList = ""; |
| | | string strAction = ""; |
| | | frm.UpdateParent += (ss, ee) => |
| | | { |
| | | strCodeList = ee.StringSingle; |
| | | strAction = ee.Data; |
| | | }; |
| | | frm.ShowDialog(); |
| | | if (string.IsNullOrEmpty(strCodeList)) |
| | | return; |
| | | if (strAction == "print") |
| | | { |
| | | try |
| | | { |
| | | string rptParameter = "rpt_Arrival{" |
| | | + "100"//重打都是传100, |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + strCodeList |
| | | + "}"; |
| | | using (Form rpt = new RptPreview(mainGuid, rptParameter)) |
| | | { |
| | | rpt.ShowDialog(); |
| | | } |
| | | frm.Close(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.ShowError(ex.Message); |
| | | } |
| | | } |
| | | }; |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | | { |