bug
lu
9 天以前 5ba3024752708ecbc2a84bd73f1f79d4bd86b994
DevApp/Gs.DevApp/DevFrm/WOM/FrmBackFlash.cs
@@ -1,15 +1,12 @@
using DevExpress.RichEdit.Export;
using Gs.DevApp.Entity;
using Gs.DevApp.Entity;
using Gs.DevApp.ToolBox;
using Gs.DevApp.UserControl;
using Newtonsoft.Json;
using OracleInternal.Sharding;
using System;
using System.Collections.Generic;
using System.Data;
using System.Threading.Tasks;
using System.Windows.Forms;
using static DevExpress.XtraBars.Docking2010.Views.BaseRegistrator;
namespace Gs.DevApp.DevFrm.WOM
{
@@ -17,6 +14,9 @@
    {
        string _webServiceName = "MesBackFlash/";
        List<FilterEntity> _filterList = new List<FilterEntity>();
        string _ucBm = "";//领料部门
        string _ucCk = "";//发料仓库
        string _ucWl = "";//料
        public FrmBackFlash()
        {
            InitializeComponent();
@@ -42,9 +42,21 @@
            }, lbGuid);
            getPageList(1);
            pageBar1.PagerEvent += PageBar1_PagerEvent;
            txt_depotId.getSuppler("");
            txt_departmentId.getSuppler("");
            txt_ItemId.getSuppler("");
            //选择库存组织(变明细中的物料和变货主)
            this.txt_orgId.EditChanged += (s, e) =>
            {
                string _orgId = txt_orgId.GetId();
                if (string.IsNullOrEmpty(_orgId))
                    return;
                txt_depotId.getSuppler(_orgId, _ucCk);
                txt_departmentId.getSuppler(_orgId, _ucBm);
                txt_ItemId.getSuppler(_orgId, _ucWl);
            };
            this.txt_ItemId.EditChanged += (s, e) =>
            {
                txt_itemNo.Text = txt_ItemId.GetCode();
                txt_itemModel.Text = txt_ItemId.GetModel();
            };
        }
        private async void GridView1_ColumnFilterChanged(object sender, EventArgs e)
        {
@@ -320,8 +332,14 @@
                if (_rtn.rtnCode > 0)
                {
                    dynamic dy = _rtn.rtnData;
                    _ucBm = dy.departmentId;
                    _ucCk = dy.depotId;
                    _ucWl = dy.ItemId;
                    lbGuid.Text = strGuid;
                    UtilityHelper.SetValueByObj(this.layoutMx1.Controls, dy, isEdit);
                    _ucBm = "";
                    _ucCk = "";
                    _ucWl = "";
                }
                else
                    ToolBox.MsgHelper.Warning("提示:" + _rtn.rtnMsg);