lu
2025-01-13 9d3b4f0525c5a0c9a4c1e521cec260226394842f
DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemTbl.cs
@@ -28,8 +28,6 @@
            this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick;
            toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick;
            toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick;
            //toolBarMenu1.btnReportClick += ToolBarMenu1_btnReportClick;
            //toolBarMenu1.btnDesignClick += ToolBarMenu1_btnDesignClick;
            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1);
            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "tbl013", "", (value) =>
            {
@@ -44,6 +42,23 @@
            });
            getPageList(1);
            pageBar1.PagerEvent += PageBar1_PagerEvent;
            //设置组织
            txt_tbl023.EditChanged += (s, e) =>
            {
                string orgdId = txt_tbl023.GetId();
                if (string.IsNullOrEmpty(orgdId)) return;
                txt_tbl002.getSuppler(orgdId);
            };
            //设置工单子
            txt_tbl002.EditChanged += (s, e) =>
            {
                string daaId = txt_tbl002.GetId();
                if (string.IsNullOrEmpty(daaId)) return;
                txt_rwd.Text = txt_tbl002.GetRwd();
                txt_workName.Text = txt_tbl002.GetWorkName();
                txt_lineName.Text = txt_tbl002.GetPrdName();
                txt_itemName.Text = txt_tbl002.GetPrdModel();
            };
            //选择需要入库的明细
            btnSelect.Click += (s, e) =>
            {
@@ -360,6 +375,13 @@
        {
            toolBarMenu1.isSetBtn = false;
            string workId = txt_tbl002.GetId();
            string orgId = txt_tbl023.GetId();
            if (string.IsNullOrEmpty(orgId.Trim()))
            {
                Gs.DevApp.ToolBox.MsgHelper.Warning("请选择组织!");
                txt_tbl023.Focus();
                return;
            }
            if (string.IsNullOrEmpty(workId.Trim()))
            {
                Gs.DevApp.ToolBox.MsgHelper.Warning("请选择工单!");
@@ -377,6 +399,8 @@
                guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //主建
                bz = txt_tbl006.Text.Trim(),//备注
                yy = txt_tbl005.Text.Trim(),//原因
                inDaaGuid = workId,//工单
                inOrgId = orgId,//组织
                list = new List<dynamic>(),
            };
            gvMx1.CloseEditor();
@@ -447,6 +471,7 @@
                    {
                        gcMain.DataSource = dt;
                        gcMain.ForceInitialize();
                        gridView1.BestFitColumns();
                    }
                    else
                        UtilityHelper.SetDefaultTable(gcMain, gridView1);
@@ -504,6 +529,7 @@
                        gcMx1.BindingContext = new BindingContext();
                        gcMx1.DataSource = dt;
                        gcMx1.ForceInitialize();
                        gvMx1.BestFitColumns();
                    }
                    else
                    {
@@ -520,6 +546,7 @@
                        gcMx2.BindingContext = new BindingContext();
                        gcMx2.DataSource = dt2;
                        gcMx2.ForceInitialize();
                        gvMx2.BestFitColumns();
                    }
                    else
                    {