From 67f0a09af2c7285b20f809c360da0bd84ec99215 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期四, 20 二月 2025 17:28:01 +0800 Subject: [PATCH] 委外 --- DevApp/Gs.DevApp/DevFrm/WW/Frm_WwLlDj.cs | 70 +++++++++++++--------------------- 1 files changed, 27 insertions(+), 43 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/WW/Frm_WwLlDj.cs b/DevApp/Gs.DevApp/DevFrm/WW/Frm_WwLlDj.cs index 7c5740a..5b4694e 100644 --- a/DevApp/Gs.DevApp/DevFrm/WW/Frm_WwLlDj.cs +++ b/DevApp/Gs.DevApp/DevFrm/WW/Frm_WwLlDj.cs @@ -24,8 +24,12 @@ toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick; - Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx( gvMx1); - Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx2); + toolBarMenu1.btnLayoutClick += ToolBarMenu1_btnLayoutClick; + List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); + gvList.Add(gridView1); + Gs.DevApp.ToolBox.UtilityHelper.getGridViewConfig(this.GetType().FullName, gvList); + Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); + Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx2); Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "statusChk", "", (value) => { Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0); @@ -81,6 +85,20 @@ { _filterList = e.FilterList; getPageList(1); + } + /// <summary> + /// 甯冨眬浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnLayoutClick(object sender, EventArgs e) + { + Form parentForm = this.FindForm(); + string _formNamespace = parentForm.GetType().FullName; + List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); + gvList.Add(gridView1); + Gs.DevApp.UserControl.showLayOut DevFrm = new showLayOut(_formNamespace, gvList); + DevFrm.ShowDialog(); } /// <summary> /// 鏃ュ織 @@ -261,44 +279,7 @@ ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); } } - - private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) - { - gvMx2.CloseEditor(); - gvMx2.UpdateCurrentRow(); - var rowhandle = gvMx2.FocusedRowHandle; - if (rowhandle < 0) - return; - if (e.Button.Index == 0) - { - var dr = gvMx2.GetDataRow(rowhandle); - var mxGuid = dr["guid"].ToString(); - if (!MsgHelper.AskQuestion("浣犻�夋嫨浜�1鏉℃暟鎹紝纭畾鍒犻櫎鍚楋紵")) - return; - if (string.IsNullOrEmpty(mxGuid)) - { - gvMx2.DeleteRow(rowhandle); - return; - } - var strJson = ""; - var lst = new List<string>(); - lst.Add(mxGuid); - try - { - strJson = UtilityHelper.HttpPost("", - _webServiceName + "DeleteModelMx2", - JsonConvert.SerializeObject(lst)); - var _rtn = UtilityHelper.ReturnToDynamic(strJson); - if (_rtn.rtnCode > 0) getModel(lbGuid.Text); - MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); - } - catch (Exception ex) - { - MsgHelper.Warning("鎻愮ず锛�" + ex.Message); - } - } - } - + /// <summary> /// 宸ュ叿鏉′簨浠� /// </summary> @@ -338,12 +319,15 @@ JsonConvert.SerializeObject(_obj)); var _rtn = UtilityHelper.ReturnToDynamic(strJson); MsgHelper.Warning(_rtn.rtnData.outMsg.ToString()); - if (_rtn.rtnCode > 0) + if (_rtn.rtnCode > 0 && _rtn.rtnData.outSum * 1 > 0) { if (xtraTabControl1.SelectedTabPageIndex == 1) + { getModel(lbGuid.Text.Trim()); - else - getPageList(this.pageBar1.CurrentPage); + } + int rowHandle = gridView1.LocateByValue(1, gridView1.Columns["guid"], rowGuid); + gridView1.FocusedRowHandle = rowHandle; + UtilityHelper.SetCheckIco(gridView1, "statusChk", "checkUser", "checkDate", picCheckBox, this, _inFieldValue.ToString()); } } catch (Exception ex) -- Gitblit v1.9.3