Ejemplo n.º 1
0
        public void ExportExcelFile(CouponCodeCustomerLogQueryFilterVM queryVM, ColumnSet[] columns)
        {
            CouponCodeCustomerLogFilter queryFilter = new CouponCodeCustomerLogFilter();

            queryFilter          = queryVM.ConvertVM <CouponCodeCustomerLogQueryFilterVM, CouponCodeCustomerLogFilter>();
            queryFilter.PageInfo = new PagingInfo
            {
                PageSize  = ConstValue.MaxRowCountLimit,
                PageIndex = 0,
                SortBy    = null
            };
            string relativeUrl = "/MKTService/Coupons/QueryCustomerGetLog";

            restClient.ExportFile(relativeUrl, queryFilter, columns);
        }
Ejemplo n.º 2
0
        public void Query(CouponCodeCustomerLogQueryFilterVM filterVM, EventHandler <RestClientEventArgs <dynamic> > callback)
        {
            if (!filterVM.HasValidationErrors)
            {
                string relativeUrl = "/MKTService/Coupons/QueryCustomerGetLog";
                CouponCodeCustomerLogFilter filter = filterVM.ConvertVM <CouponCodeCustomerLogQueryFilterVM, CouponCodeCustomerLogFilter>();

                restClient.QueryDynamicData(relativeUrl, filter, (obj, args) =>
                {
                    if (args.FaultsHandle())
                    {
                        return;
                    }
                    callback(obj, args);
                });
            }
        }
Ejemplo n.º 3
0
 public CouponCodeCustomerLogFacade(IPage page, CouponCodeCustomerLogQueryFilterVM vm)
 {
     restClient = new RestClient(ServiceBaseUrl, page);
     _ViewModel = vm;
 }