/// <summary> /// 根据query得到到货通知信息 /// </summary> /// <param name="model"></param> /// <param name="PageSize"></param> /// <param name="PageIndex"></param> /// <param name="SortField"></param> /// <param name="callback"></param> public void GetProductNotifyByQuery(ProductNotifyQueryVM model, int PageSize, int PageIndex, string SortField, EventHandler <RestClientEventArgs <dynamic> > callback) { int priductId; ProductNotifyQueryFilter query = new ProductNotifyQueryFilter(); query.Category1SysNo = model.Category1SysNo; query.Category2SysNo = model.Category2SysNo; query.Category3SysNo = model.Category3SysNo; query.CustomserID = model.CustomserID; query.Email = model.Email; query.EndTime = model.EndTime; query.PMSysNo = model.PMSysNo; if (int.TryParse(model.ProductSysNo, out priductId)) { query.ProductSysNo = priductId; } query.StartTime = model.StartTime; query.Status = model.Status; query.PageInfo = new PagingInfo { PageSize = PageSize, PageIndex = PageIndex, SortBy = SortField }; restClient.QueryDynamicData(GetProductNotifyUrl, query, (obj, args) => { if (args.FaultsHandle()) { return; } callback(obj, args); }); }
public ProductNotify() { InitializeComponent(); this.Loaded += (sender, e) => { model = new ProductNotifyQueryVM(); if (!string.IsNullOrEmpty(Request.Param)) { model.ProductSysNo = Request.Param; } this.DataContext = model; }; this.ProductNotifyQueryResult.LoadingDataSource += new EventHandler <LoadingDataEventArgs>(ProductNotifyQueryResult_LoadingDataSource); }