| | |
| | | }, lbGuid); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | //打印事件 |
| | | this.ucBtnPrint1.btnPrintClick += (s, e) => |
| | | { |
| | | string rowGuid = lbMxGuid.Text.Trim(); |
| | |
| | | this.ucBtnPrint1.rptParameter = "return false"; |
| | | return; |
| | | } |
| | | this.ucBtnPrint1.rptParameter = "rpt_Arrival{" + lbMxGuid.Text.Trim() |
| | | this.ucBtnPrint1.rptParameter = "rpt_Arrival{" |
| | | + lbMxGuid.Text.Trim()//关联主键 |
| | | + "," + "" |
| | | + "," + Gs.DevApp.ToolBox.UtilityHelper.ToDecimal(txt_yuliang_1.Text.Trim()) |
| | | + "," + txt_iCount_1.Text.Trim() |
| | | + "," + txt_psnQty_1.Text.Trim() |
| | | + "," + Gs.DevApp.ToolBox.UtilityHelper.ToDecimal(txt_yuliang_1.Text.Trim())//余数 |
| | | + "," + txt_iCount_1.Text.Trim()//张数 |
| | | + "," + txt_psnQty_1.Text.Trim()//每张条码数量 |
| | | + "}"; |
| | | txt_iCount_1.Text = ""; |
| | | txt_psnQty_1.Text = ""; |
| | | }; |
| | | //打印批量操作事件 |
| | | this.ucBtnPrint1.btnAllClick += (s, e) => |
| | | { |
| | | string rowGuid = lbMxGuid.Text.Trim(); |
| | | SelectDeleteBar frm = new SelectDeleteBar(rowGuid, "采购入库"); |
| | | string strCodeList = ""; |
| | | string strAction = ""; |
| | | frm.UpdateParent += (ss, ee) => |
| | | { |
| | | strCodeList = ee.StringSingle; |
| | | strAction = ee.Data; |
| | | }; |
| | | frm.ShowDialog(); |
| | | if (string.IsNullOrEmpty(strCodeList)) |
| | | return; |
| | | try |
| | | { |
| | | string rptParameter = "rpt_Arrival{" |
| | | + "100" |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + strCodeList |
| | | + "}"; |
| | | using (Form rpt = new RptPreview(rowGuid, rptParameter)) |
| | | if (strAction == "print") { |
| | | try |
| | | { |
| | | rpt.ShowDialog(); |
| | | string rptParameter = "rpt_Arrival{" |
| | | + "100"//重打都是传100, |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + strCodeList |
| | | + "}"; |
| | | using (Form rpt = new RptPreview(rowGuid, rptParameter)) |
| | | { |
| | | rpt.ShowDialog(); |
| | | } |
| | | frm.Close(); |
| | | } |
| | | frm.Close(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.ShowError(ex.Message); |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.ShowError(ex.Message); |
| | | } |
| | | } |
| | | }; |
| | | gvMx1.FocusedRowChanged += GvMx1_FocusedRowChanged; |
| | | //自动计算打印量 |
| | | //打印自动计算 |
| | | txt_psnQty_1.TextChanged += (s, e) => |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.PrintJiSuan(txt_psnQty_1, txt_iCount_1, txt_kQty.Text.Trim(), radOut, txt_yuliang_1); |