| | |
| | | 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; |
| | |
| | | }; |
| | | 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) |
| | | { |
| | | _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns, gridView1); |
| | |
| | | { |
| | | 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 |