| | |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | | using Newtonsoft.Json; |
| | | using static DevExpress.XtraPrinting.Native.PageSizeInfo; |
| | | |
| | | namespace Gs.DevApp.UserControl |
| | | { |
| | |
| | | lookSearchSupplier.Properties.NullText = "请选择"; |
| | | lookSearchSupplier.EditValueChanged += |
| | | LookSearchSupplier_EditValueChanged; |
| | | getSuppler(); |
| | | } |
| | | |
| | | public bool IsReadly { get; set; } |
| | | private string _KeyFile = ""; |
| | | public string KeyFile |
| | | { |
| | |
| | | set |
| | | { |
| | | _KeyFile = value; |
| | | if(!string.IsNullOrEmpty(value)) |
| | | getSuppler(); |
| | | } |
| | | } |
| | |
| | | |
| | | private void getSuppler() |
| | | { |
| | | var pgq = new PageQueryModel(1, 999999, "supp_no", "asc", "", |
| | | " and fforbidstatus='A'"); |
| | | var json = JsonConvert.SerializeObject(pgq); |
| | | var _obj = new |
| | | { |
| | | currentPage = 1, |
| | | everyPageSize = 999999, |
| | | sortName = "", |
| | | keyWhere = "", |
| | | }; |
| | | var json = JsonConvert.SerializeObject(_obj); |
| | | try |
| | | { |
| | | var strReturn = UtilityHelper.HttpPost("", |
| | | "MesSupplierManager/GetListPage", json); |
| | | "MesSupplierManager/GetListSelect", json); |
| | | var rtn = UtilityHelper.ReturnToTablePage(strReturn); |
| | | var dt = rtn.rtnData.list; |
| | | lookSearchSupplier.Properties.DataSource = dt; |