From a89f2c46d1f53a4d9e23dc76b949b40d2b2b18a6 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期六, 08 二月 2025 08:22:22 +0800 Subject: [PATCH] 采购退货 --- DevApp/Gs.DevApp/UserControl/SelectCgMx.cs | 31 ++++++++++++++++++------------- 1 files changed, 18 insertions(+), 13 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/SelectCgMx.cs b/DevApp/Gs.DevApp/UserControl/SelectCgMx.cs index 0bf98fc..16f1de7 100644 --- a/DevApp/Gs.DevApp/UserControl/SelectCgMx.cs +++ b/DevApp/Gs.DevApp/UserControl/SelectCgMx.cs @@ -17,22 +17,26 @@ private readonly string _webServiceName = "MesInvItemArnManager/"; private string suppId = ""; + private string receiveOrgId = ""; + private string isWw = ""; /// <summary> - /// 渚涘簲鍟嗙紪鍙� + /// /// </summary> - /// <param name="supp_no"></param> - public SelectCgMx(string _suppId) + /// <param name="_suppId"></param> + /// <param name="_receiveOrgId"></param> + /// <param name="_isWw"></param> + public SelectCgMx(string _suppId, string _receiveOrgId, string _isWw) { InitializeComponent(); this.suppId = _suppId; + this.receiveOrgId = _receiveOrgId; + this.isWw= _isWw; 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>(); @@ -79,24 +83,25 @@ everyPageSize = pageSize, sortName = "", keyWhere = "", - inBusType = "CG", - inSupId = this.suppId + inBusType = isWw, + 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(); gcMain.DataSource = dt; gcMain.ForceInitialize(); + gridView1.BestFitColumns(); var dddd = dd.rtnData.pages; //鎬婚〉 pageBar1.TotalPages = dddd; pageBar1.RecordCount = dd.rtnData.total; //璁板綍鎬绘暟 pageBar1.CurrentPage = curPage; //褰撳墠椤� - pageBar1.setTxt(); } catch (Exception ex) { -- Gitblit v1.9.3