| | |
| | | </assemblyBinding> |
| | | </runtime> |
| | | <appSettings> |
| | | <add key="WebApiUrl" value="http://localhost:5263/" /> |
| | | <!--<add key="WebApiUrl" value="http://192.168.1.145:81/" />--> |
| | | <!--<add key="WebApiUrl" value="http://localhost:5263/" />--> |
| | | <add key="WebApiUrl" value="http://192.168.1.145:81/" /> |
| | | <add key="LogPath" value="logs" /> |
| | | <add key="ProductName" value="广深科技 G-MES V2.0" /> |
| | | <add key="PageSize" value="50" /> |
| | |
| | | using System.Drawing; |
| | | using System.IO; |
| | | using System.Net; |
| | | using System.Net.Cache; |
| | | using System.Net.Http; |
| | | using System.Reflection; |
| | | using System.Resources; |
| | |
| | | request.Accept = "*/*"; |
| | | request.Timeout = 15000; |
| | | request.AllowAutoRedirect = false; |
| | | request.ServicePoint.Expect100Continue = false; |
| | | HttpRequestCachePolicy noCachePolicy = new HttpRequestCachePolicy(HttpRequestCacheLevel.NoCacheNoStore); |
| | | request.CachePolicy = noCachePolicy; |
| | | using (Stream requestStream = await request.GetRequestStreamAsync()) |
| | | { |
| | | byte[] dataBytes = Encoding.UTF8.GetBytes(param); |
| | |
| | | request.Accept = "*/*"; |
| | | request.Timeout = 15000; |
| | | request.AllowAutoRedirect = false; |
| | | request.ServicePoint.Expect100Continue = false; |
| | | HttpRequestCachePolicy noCachePolicy = new HttpRequestCachePolicy(HttpRequestCacheLevel.NoCacheNoStore); |
| | | request.CachePolicy = noCachePolicy; |
| | | StreamWriter requestStream = null; |
| | | WebResponse response = null; |
| | | string responseStr = null; |
| | |
| | | |
| | | private async void getSuppler() |
| | | { |
| | | UcLoading _loading = new UcLoading(); |
| | | var pgq = new PageQueryModel(1, 999999, "item_name", "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 = await UtilityHelper.HttpPostAsync("", |
| | | "MesItemsManager/GetListPageByLook", json); |
| | | var rtn = UtilityHelper.ReturnToList(strReturn); |
| | | var dt = rtn.rtnData; |
| | | var strReturn = UtilityHelper.HttpPost("", |
| | | "MesItemsManager/GetListSelect", json); |
| | | var rtn = UtilityHelper.ReturnToTablePage(strReturn); |
| | | var dt = rtn.rtnData.list; |
| | | lookSearchSupplier.Properties.DataSource = dt; |
| | | lookSearchSupplier.Properties.DisplayMember = "itemName"; |
| | | // lookSearchSupplier.Properties.ValueMember = "depotId"; |
| | |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | _loading.Close(); |
| | | } |
| | | |
| | | public string GetId() |
| | |
| | | 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 = ""; |
| | |
| | | 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; |