public void QueryBusinessCooperation(BusinessCooperationQueryVM vm, PagingInfo pagingInfo, EventHandler <RestClientEventArgs <dynamic> > callback) { var data = vm.ConvertVM <BusinessCooperationQueryVM, BusinessCooperationQueryFilter>(); data.PagingInfo = pagingInfo; data.CompanyCode = CPApplication.Current.CompanyCode; string relativeUrl = "/MKTService/GroupBuying/QueryBusinessCooperation"; restClient.QueryDynamicData(relativeUrl, data, callback); }
public override void OnPageLoad(object sender, EventArgs e) { base.OnPageLoad(sender, e); CodeNamePairHelper.GetList("MKT", "GroupBuyingTypeList", CodeNamePairAppendItemType.All, (s, a) => { if (a.FaultsHandle()) { return; } var vm = new BusinessCooperationQueryVM(); vm.GroupBuyingTypeList = a.Result; this.VM = vm; }); }