Esempio n. 1
0
        /// <summary>
        /// 查询泰隆优选大使推荐订单信息。
        /// </summary>
        /// <param name="queryVM"></param>
        /// <param name="p"></param>
        /// <param name="callback"></param>
        public void QueryAmbassadorRecommendOrderInfo(NeweggAmbassadorOrderQueryVM queryVM, PagingInfo p, EventHandler <RestClientEventArgs <dynamic> > callback)
        {
            var queryFilter = queryVM.ConvertVM <NeweggAmbassadorOrderQueryVM, NeweggAmbassadorOrderQueryFilter>();

            queryFilter.CompanyCode = CPApplication.Current.CompanyCode;
            queryFilter.PagingInfo  = p;
            string relativeUrl = "/MKTService/NeweggAmbassador/QueryAmbassadorRecommendOrderInfo";

            restClient.QueryDynamicData(relativeUrl, queryFilter, callback);
        }
Esempio n. 2
0
        /// <summary>
        /// 导出泰隆优选大使积分发放信息到Excel
        /// </summary>
        /// <param name="queryVM"></param>
        /// <param name="p"></param>
        /// <param name="callback"></param>
        public void ExportAllPointInfoToExcel(NeweggAmbassadorOrderQueryVM queryVM, ColumnSet[] columnSet)
        {
            var queryFilter = queryVM.ConvertVM <NeweggAmbassadorOrderQueryVM, NeweggAmbassadorOrderQueryFilter>();

            queryFilter.CompanyCode = CPApplication.Current.CompanyCode;

            queryFilter.PagingInfo = new PagingInfo()
            {
                PageSize  = ConstValue.MaxRowCountLimit,
                PageIndex = 0,
                SortBy    = string.Empty
            };

            queryFilter.PagingInfo.PageSize = -1;
            string relativeUrl = "/MKTService/NeweggAmbassador/ExportPointInfo";

            restClient.ExportFile(relativeUrl, queryFilter, columnSet);
        }