lu
2025-01-08 c77fa816dd42d7cd437301efbfdff93ea56f6c79
DevApp/Gs.DevApp/UserControl/SelectCgMx.cs
@@ -17,22 +17,22 @@
        private readonly string _webServiceName = "MesInvItemArnManager/";
        private string suppId = "";
        private string receiveOrgId = "";
        /// <summary>
        /// 供应商编号
        /// </summary>
        /// <param name="supp_no"></param>
        public SelectCgMx(string _suppId)
        public SelectCgMx(string _suppId,string _receiveOrgId)
        {
            InitializeComponent();
            this.suppId = _suppId;
            this.receiveOrgId = _receiveOrgId;
            pageBar1.PagerEvent += PageBar1_PagerEvent;
            getPageList(1, UtilityHelper.GetPageSize());
            gridView1.IndicatorWidth = 50;
            gridView1.CustomDrawRowIndicator += (s, e) =>
            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", (value) =>
            {
                if (e.Info.IsRowIndicator && e.RowHandle >= 0)
                    e.Info.DisplayText = (e.RowHandle + 1).ToString();
            };
            });
            getPageList(1, UtilityHelper.GetPageSize());
            btnIn.Click += (s, e) =>
            {
                var list = new List<string>();
@@ -80,13 +80,14 @@
                sortName = "",
                keyWhere = "",
                inBusType = "CG",
                inSupId = this.suppId
                inSupId = this.suppId,
                inReceiveOrgId=this.receiveOrgId,
            };
            var json = JsonConvert.SerializeObject(_obj);
            try
            {
                var strReturn = UtilityHelper.HttpPost("",
                    _webServiceName + "SelectDialog", json);
                    _webServiceName + "SelectForm", json);
                var dd = UtilityHelper.ReturnToTablePage(strReturn);
                var dt = dd.rtnData.list;
                gcMain.BindingContext = new BindingContext();