lu
2025-01-21 dd7c9629d16d81bde03e42b3e9e984088f3e4d2c
DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesDbck.cs
@@ -48,6 +48,8 @@
            txt_fromFcode.getSuppler("");
            this.txt_invFcode.EditChanged += (s, e) =>
            {
                txt_fstockoutorgidNo.Text = txt_invFcode.GetOrgName();
                txt_fowneroutidhead.Text = txt_invFcode.GetOrgId();
                var _obj = new
                {
                    currentPage = 1,
@@ -69,10 +71,14 @@
                    MsgHelper.Warning("提示:" + ex.Message);
                }
            };
            this.txt_fromFcode.EditChanged += (s, e) => {
                txt_fstockorgidNo.Text = txt_fromFcode.GetOrgName();
                txt_fowneridhead.Text = txt_fromFcode.GetOrgId();
            };
        }
        private void GridView1_ColumnFilterChanged(object sender, EventArgs e)
        {
            _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns);
            Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns, gridView1);
            Task.Delay(100);
            getPageList(1);
        }
@@ -150,8 +156,11 @@
                var _rtn = UtilityHelper.ReturnToDynamic(strJson);
                if (_rtn.rtnCode > 0)
                {
                    UtilityHelper.JumpToTab(xtraTabControl1, 0);
                    getPageList(1);
                    if (xtraTabControl1.SelectedTabPageIndex == 0)
                    { }
                    else
                        Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 2);
                    getPageList(this.pageBar1.CurrentPage);
                }
                MsgHelper.Warning("提示:" + _rtn.rtnMsg);
@@ -199,9 +208,16 @@
                return;
            }
            Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 3);
            List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
            gvList.Add(gvMx1);
            UtilityHelper.ChangeEnableByControl(panel1.Controls, true, gvList);
            if (xtraTabControl1.SelectedTabPageIndex == 1)
            {
                getModel(rowGuid);
            }
            else
            {
                List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
                gvList.Add(gvMx1);
                UtilityHelper.ChangeEnableByControl(panel1.Controls, true, gvList);
            }
        }
        /// <summary>
        /// 新增事件
@@ -230,13 +246,13 @@
             string _inRkId = txt_fromFcode.GetId();//入
            if (string.IsNullOrEmpty(_inCkId))
            {
                Gs.DevApp.ToolBox.MsgHelper.Warning("请选择工单!");
                Gs.DevApp.ToolBox.MsgHelper.Warning("请选择出货仓库!");
                txt_invFcode.Focus();
                return;
            }
            if (string.IsNullOrEmpty(_inRkId))
            {
                Gs.DevApp.ToolBox.MsgHelper.Warning("请选择仓库!");
                Gs.DevApp.ToolBox.MsgHelper.Warning("请选择收货仓库!");
                txt_fromFcode.Focus();
                return;
            }
@@ -430,7 +446,7 @@
            };
            toolBarMenu1.guidKey = "";
            string rowGuid, rowName;
            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_billno, gridView1, "blNo");
            (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_billno, gridView1, "billno");
            if (string.IsNullOrEmpty(rowGuid))
            {
                MsgHelper.Warning("请先选择你要操作的行!");
@@ -468,10 +484,10 @@
        {
            SearchLookUpEdit LookupEdit = sender as SearchLookUpEdit;
            DataRowView SelectedDataRow = (DataRowView)LookupEdit.GetSelectedDataRow();
            gvMx1.SetFocusedRowCellValue("itemNo", SelectedDataRow["itemNo"]);
            gvMx1.SetFocusedRowCellValue("itemName", SelectedDataRow["itemName"]);
            gvMx1.SetFocusedRowCellValue("itemModel", SelectedDataRow["itemModel"]);
            gvMx1.SetFocusedRowCellValue("dwName", SelectedDataRow["dwName"]);
            gvMx1.SetFocusedRowCellValue("itemNo", SelectedDataRow["itemNo"].ToString());
            gvMx1.SetFocusedRowCellValue("itemName", SelectedDataRow["itemName"].ToString());
            gvMx1.SetFocusedRowCellValue("itemMpdel", SelectedDataRow["itemModel"].ToString());
            gvMx1.SetFocusedRowCellValue("itemUnit", SelectedDataRow["dwName"].ToString());
        }
        private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
@@ -482,7 +498,7 @@
            if (e.Button.Index == 0)
            {
                var dr = gvMx1.GetDataRow(rowhandle);
                var mxGuid = dr["guid"].ToString();
                var mxGuid = dr["id"].ToString();
                if (!MsgHelper.AskQuestion("你选择了1条数据,确定删除吗?"))
                    return;
                if (string.IsNullOrEmpty(mxGuid))