| | |
| | | this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; |
| | | this.toolBarMenu1.btnZhongTaiClick += ToolBarMenu1_btnZhongTaiClick; |
| | | this.toolBarMenu1.btnTzblClick += ToolBarMenu1_btnTzblClick; |
| | | // this.toolBarMenu1.btnKgClick += ToolBarMenu1_btnKgClick; |
| | | // this.toolBarMenu1.btnKgClick += ToolBarMenu1_btnKgClick; |
| | | this.toolBarMenu1.btnWgClick += ToolBarMenu1_btnWgClick; |
| | | toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick; |
| | | this.toolBarMenu1.btnShouJianClick += ToolBarMenu1_btnShouJianClick; |
| | |
| | | }; |
| | | 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); |
| | | Gs.DevApp.ToolBox.UtilityHelper.PrintJiSuan(txt_psnQty_1, txt_iCount_1, txt_kQty.Text.Trim(), radOut, txt_yuliang_1); |
| | | }; |
| | | radOut.SelectedIndexChanged += (s, e) => |
| | | { |
| | |
| | | this.ucBtnPrint100.btnReportClick += (s, e) => |
| | | { |
| | | _print100(); |
| | | }; |
| | | //导入模板 |
| | | this.btnIn.Click += (s, e) => |
| | | { |
| | | //这是一个随机值,将会被当作父亲guid存到file表中,服务端根据这个guid读取相应的文件 |
| | | string upGuid = Guid.NewGuid().ToString(); |
| | | string strService = "XlsInDaaHgm"; |
| | | Gs.DevApp.UserControl.ShowUp frm = new Gs.DevApp.UserControl.ShowUp(upGuid); |
| | | frm.UpdateParent += (ss, ee) => |
| | | { |
| | | var _obj = new |
| | | { |
| | | tmpGuid = upGuid, |
| | | strType = "", |
| | | }; |
| | | try |
| | | { |
| | | string strJson = UtilityHelper.HttpPost("", |
| | | "XlsInOut/" + strService, |
| | | JsonConvert.SerializeObject(_obj)); |
| | | var _rtn = UtilityHelper.ReturnToDynamic(strJson); |
| | | MsgHelper.ShowInformation("提示:" + _rtn.rtnMsg); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | }; |
| | | frm.ShowDialog(); |
| | | }; |
| | | } |
| | | |
| | |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | } |
| | | |
| | | |
| | | private void ToolBarMenu1_btnTzblClick(object sender, EventArgs e) |
| | | { |
| | | _toolCk(7); |
| | |
| | | txt_zQty98.Text = dy.daa008; |
| | | txt_yQty98.Text = dy.yQty98; |
| | | txt_kQty98.Text = dy.kQty98; |
| | | //后盖码 |
| | | txt_zQty100.Text = dy.daa008; |
| | | txt_yQty100.Text = dy.yQty100; |
| | | txt_kQty100.Text = dy.kQty100; |
| | | |
| | | lbGuid.Text = strGuid; |
| | | List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); |
| | | gvList.Add(gvMx1); |
| | |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx4, gvMx4); |
| | | } |
| | | txt_psnQty_1.Text = txt_printRemark.Text = txt_iCount_1.Text = txt_printRemark98.Text = txt_iCount_98.Text = txt_yuliang_1.Text=""; |
| | | txt_psnQty_1.Text = txt_printRemark.Text = txt_iCount_1.Text = txt_printRemark98.Text = txt_iCount_98.Text = txt_yuliang_1.Text = ""; |
| | | } |
| | | else |
| | | ToolBox.MsgHelper.Warning("提示:" + _rtn.rtnMsg); |
| | |
| | | this.ucBtnPrint1.rptParameter = "rpt_daa{" |
| | | + txt_printRemark.Text.Trim() |
| | | + "," + "" |
| | | + "," + Gs.DevApp.ToolBox.UtilityHelper.ToDecimal( txt_yuliang_1.Text.Trim()) |
| | | + "," + Gs.DevApp.ToolBox.UtilityHelper.ToDecimal(txt_yuliang_1.Text.Trim()) |
| | | + "," + txt_iCount_1.Text.Trim() |
| | | + "," + txt_psnQty_1.Text.Trim() |
| | | + "}"; |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 这是后盖码,仅仅打印, |
| | | /// 这是后盖码 |
| | | /// </summary> |
| | | private void _print100() |
| | | { |
| | |
| | | this.ucBtnPrint100.rptParameter = "return false"; |
| | | return; |
| | | } |
| | | this.ucBtnPrint100.rptParameter = "rpt_hgm{" |
| | | + "100" |
| | | if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_iCount_100.Text.Trim())) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请输入正确的条码数量!"); |
| | | txt_iCount_100.Focus(); |
| | | this.ucBtnPrint100.rptParameter = "return false"; |
| | | return; |
| | | } |
| | | this.ucBtnPrint100.rptParameter = "rpt_trace{" |
| | | + "" |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + txt_iCount_100.Text.Trim() |
| | | + "," + 1 |
| | | + "}"; |
| | | } |
| | | |