| | |
| | | public Frm_Womdaa() |
| | | { |
| | | InitializeComponent(); |
| | | this.splitMx99.PanelVisibility = DevExpress.XtraEditors.SplitPanelVisibility.Panel2; |
| | | this.splitMx98.PanelVisibility = DevExpress.XtraEditors.SplitPanelVisibility.Panel2; |
| | | this.splitMx100.PanelVisibility = DevExpress.XtraEditors.SplitPanelVisibility.Panel2; |
| | | this.toolBarMenu1.btnEdtClick += ToolBarMenu1_btnEdtClick; |
| | | // this.toolBarMenu1.btnSaveClick += ToolBarMenu1_btnSaveClick; |
| | | this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; |
| | |
| | | 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; |
| | |
| | | }; |
| | | frm.ShowDialog(); |
| | | }; |
| | | //批量删除条码 |
| | | this.btnDeleteBar.Click += (s, e) => |
| | | { |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_daa001, gridView1, "daa001"); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的数据!"); |
| | | return; |
| | | } |
| | | SelectDeleteBar frm = new SelectDeleteBar(rowGuid,"后盖码"); |
| | | //赋值给明细表 |
| | | frm.UpdateParent += (ss, ee) => |
| | | { |
| | | try |
| | | { |
| | | string strMsg = ee.StringSingle; |
| | | if(strMsg=="1") |
| | | getModel(rowGuid); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MessageBox.Show(ex.Message); |
| | | } |
| | | }; |
| | | frm.ShowDialog(); |
| | | }; |
| | | } |
| | | |
| | | |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | | { |
| | |
| | | { |
| | | _toolCk(7); |
| | | } |
| | | //private void ToolBarMenu1_btnKgClick(object sender, EventArgs e) |
| | | //{ |
| | | // _toolCk(8); |
| | | //} |
| | | private void ToolBarMenu1_btnKgClick(object sender, EventArgs e) |
| | | { |
| | | _toolCk(8); |
| | | } |
| | | private void ToolBarMenu1_btnWgClick(object sender, EventArgs e) |
| | | { |
| | | _toolCk(9); |
| | |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx4, gvMx4); |
| | | } |
| | | //加上打印权限 |
| | | JArray array5 = new JArray(); |
| | | foreach (var a in _job["rtnData"]["list5"]) |
| | | { |
| | | if (a["blackName"].ToString() == "托板码打印") |
| | | { |
| | | splitMx99.PanelVisibility = DevExpress.XtraEditors.SplitPanelVisibility.Both; |
| | | continue; |
| | | } |
| | | if (a["blackName"].ToString() == "追溯码打印") |
| | | { |
| | | splitMx98.PanelVisibility = DevExpress.XtraEditors.SplitPanelVisibility.Both; |
| | | continue; |
| | | } |
| | | if (a["blackName"].ToString() == "后盖码打印") |
| | | { |
| | | splitMx100.PanelVisibility = DevExpress.XtraEditors.SplitPanelVisibility.Both; |
| | | continue; |
| | | } |
| | | if (a["blackName"].ToString() == "齐套标识卡打印") |
| | | { |
| | | xtraTabPage5.PageVisible = true; |
| | | continue; |
| | | } |
| | | } |
| | | |
| | | txt_psnQty_1.Text = txt_printRemark.Text = txt_iCount_1.Text = txt_printRemark98.Text = txt_iCount_98.Text = txt_yuliang_1.Text = ""; |
| | | } |
| | | else |
| | |
| | | this.ucBtnPrint1.rptParameter = "return false"; |
| | | return; |
| | | } |
| | | if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_iCount_1.Text.Trim())) |
| | | if (!Gs.DevApp.ToolBox.UtilityHelper.IsNumeric3(txt_iCount_1.Text.Trim(), txt_yuliang_1.Text.Trim())) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("请输入正确的条码数量!"); |
| | | txt_iCount_1.Focus(); |