From 89776d6f53dff45b1ac0ee20438f5aa8dab2d0e5 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期一, 16 六月 2025 17:13:31 +0800 Subject: [PATCH] bug --- DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 58 insertions(+), 1 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs index 11bf359..4e45ee8 100644 --- a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs +++ b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs @@ -20,6 +20,9 @@ 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; @@ -123,8 +126,36 @@ }; 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); @@ -562,6 +593,32 @@ { 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 -- Gitblit v1.9.3