| | |
| | | }, 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(); |
| | |
| | | try |
| | | { |
| | | string rptParameter = "rpt_Arrival{" |
| | | + "100" |
| | | + "100"//重打都是传100, |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + "" |
| | |
| | | } |
| | | }; |
| | | 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); |