cdk
2025-12-06 e2fffcde27c802e06b4e15ea100c1df838b6ea52
DevApp/Gs.DevApp/DevFrm/WW/WwBlcl.cs
@@ -15,6 +15,7 @@
        string _webServiceName = "WWBlManager/";
        List<FilterEntity> _filterList = new List<FilterEntity>();
        public string strType = "";
        string _ucGys = "";//供应商
        public WwBlcl(string _strType)
        {
            InitializeComponent();
@@ -37,8 +38,9 @@
            toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick;
            toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick;
            toolBarMenu1.btnPrintClick += ToolBarMenu1_btnPrintClick;
            toolBarMenu1.btnWjClick += ToolBarMenu1_btnWjClick;
            this.toolBarMenu1.getXmlConfig();
            Form parentForm = this.FindForm();
            Form parentForm = this.FindForm();
            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1);
            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, parentForm, "bl018", "", (value) =>
            {
@@ -58,7 +60,7 @@
                var orgId = txt_orgId.GetId();
                if (string.IsNullOrEmpty(orgId))
                    return;
                txt_wwGys.getSuppler(orgId, txt_wwGys.GetId());
                txt_wwGys.getSuppler(orgId, _ucGys);
            };
            //选择需要入库的明细
            btnSelect.Click += (s, e) =>
@@ -89,6 +91,7 @@
                            _row["bld008"] = dym.dab007;//已领用量
                            _row["bld009"] = dym.dwName;//单位
                            _row["bld001"] = dym.bld001;//工单号
                            _row["stockNum"] = dym.stockNum;//库存数量
                            _Table.Rows.Add(_row);
                            idx++;
                        }
@@ -108,6 +111,8 @@
                frm.ShowDialog();
            };
        }
        private void GridView1_ColumnFilterChanged(object sender, EventArgs e)
        {
            _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns, gridView1);
@@ -287,6 +292,8 @@
            gridViews.Add(gvMx1);
            UtilityHelper.CleanValueByControl(this.layoutMx1.Controls, true, gridViews);
            Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1);
            //增加时,默认组织
            string deftOrg = UtilityHelper.GetFirstOrg(txt_orgId);
        }
        /// <summary>
        /// 保存事件
@@ -447,10 +454,12 @@
                if (_rtn.rtnCode > 0)
                {
                    dynamic dy = _rtn.rtnData;
                    _ucGys = dy.wwGys;
                    lbGuid.Text = strGuid;
                    List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
                    gvList.Add(gvMx1);
                    UtilityHelper.SetValueByObj(this.layoutMx1.Controls, dy, isEdit, gvList);
                    _ucGys = "";
                    JObject _job = JObject.Parse(strJson);
                    JArray array = new JArray();
                    foreach (var a in _job["rtnData"]["list"])
@@ -479,6 +488,16 @@
            }
        }
        /// <summary>
        /// 完结事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <exception cref="NotImplementedException"></exception>
        private void ToolBarMenu1_btnWjClick(object sender, EventArgs e)
        {
            _toolCk(2);
        }
        /// <summary>
        ///     审核事件
@@ -516,6 +535,9 @@
                case 0:
                    strMsg = "反审核";
                    break;
                case 2:
                    strMsg = "完结";
                    break;
            }
            ;
            toolBarMenu1.guidKey = "";