private void btnSearch_Click(object sender, RoutedEventArgs e)
        {
            var flag = ValidationManager.Validate(this.QueryBuilder);

            if (flag)
            {
                _queryVM.StockSysNo = 51;                                           //上海仓
                _queryVM.SOType     = ECCentral.BizEntity.SO.SOType.ElectronicCard; //电子卡订单

                this._lastQueryVM = Newegg.Oversea.Silverlight.Utilities.UtilityHelper.DeepClone <GiftInvoiceDetaiReportQueryVM>(_queryVM);

                this.DataGrid.Bind();
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 礼品卡发票明细表导出
        /// </summary>
        /// <param name="queryVM"></param>
        /// <param name="columnSet"></param>
        public void ExportGiftInvoiceDetailReportExcelFile(GiftInvoiceDetaiReportQueryVM queryVM, ColumnSet[] columnSet)
        {
            GiftInvoiceDetaiReportQueryFilter queryFilter = queryVM.ConvertVM <GiftInvoiceDetaiReportQueryVM, GiftInvoiceDetaiReportQueryFilter>();

            queryFilter.PagingInfo = new PagingInfo
            {
                PageSize  = ECCentral.Portal.Basic.ConstValue.MaxRowCountLimit,
                PageIndex = 0,
                SortBy    = ""
            };
            string relativeUrl = "/InvoiceService/InvoiceReport/GiftInvoiceDetailReport";

            queryFilter.CompanyCode = CPApplication.Current.CompanyCode;
            restClient.ExportFile(relativeUrl, queryFilter, columnSet);
        }
Esempio n. 3
0
        /// <summary>
        /// 礼品卡发票明细表查询
        /// </summary>
        /// <param name="queryVM"></param>
        /// <param name="pageSize"></param>
        /// <param name="pageIndex"></param>
        /// <param name="sortField"></param>
        /// <param name="callback"></param>
        public void QueryGiftInvoiceDetailReport(GiftInvoiceDetaiReportQueryVM queryVM, int pageSize, int pageIndex, string sortField, Action <dynamic> callback)
        {
            GiftInvoiceDetaiReportQueryFilter filter = queryVM.ConvertVM <GiftInvoiceDetaiReportQueryVM, GiftInvoiceDetaiReportQueryFilter>();

            filter.PagingInfo = new PagingInfo()
            {
                PageIndex = pageIndex,
                PageSize  = pageSize,
                SortBy    = sortField
            };

            string relativeUrl = "/InvoiceService/InvoiceReport/GiftInvoiceDetailReport";

            filter.CompanyCode = CPApplication.Current.CompanyCode;
            restClient.QueryDynamicData(relativeUrl, filter, (obj, args) =>
            {
                if (args.FaultsHandle())
                {
                    return;
                }
                callback(args.Result);
            });
        }
 private void InitData()
 {
     _queryVM = new GiftInvoiceDetaiReportQueryVM();
     this.QueryBuilder.DataContext = _lastQueryVM = _queryVM;
 }