示例#1
0
 public override void OnPageLoad(object sender, EventArgs e)
 {
     base.OnPageLoad(sender, e);
     _queryVM = new SaleDiscountRuleQueryVM();
     this.GridFilter.DataContext = _queryVM;
     this.lstStatus.ItemsSource  = EnumConverter.GetKeyValuePairs <SaleDiscountRuleStatus>(EnumConverter.EnumAppendItemType.All);
 }
示例#2
0
        public void Query(SaleDiscountRuleQueryVM queryVM, PagingInfo p, EventHandler <RestClientEventArgs <dynamic> > callback)
        {
            var queryFilter = queryVM.ConvertVM <SaleDiscountRuleQueryVM, SaleDiscountRuleQueryFilter>();

            queryFilter.CompanyCode = CPApplication.Current.CompanyCode;
            queryFilter.PagingInfo  = p;
            string relativeUrl = "/MKTService/SaleDiscountRule/Query";

            restClient.QueryDynamicData(relativeUrl, queryFilter, callback);
        }