コード例 #1
0
ファイル: ReportService.cs プロジェクト: 842549829/Pool
        /// <summary>
        /// 平台机票销售
        /// </summary>
        /// <param name="paination">分页信息</param>
        /// <param name="view">查询条件</param>
        /// <returns>table</returns>
        public static DataTable QueryPlatformTicket(Pagination paination, PlatformTicketView view, out decimal totalPurchaserAmount, out decimal totalProviderAmount, out decimal totalSupplierAmount, out decimal totalRoyaltyAmount, out decimal totalPostponeFee, out decimal totalPlatformCommission, out decimal totalPlatformPremium, out decimal totalPlatformProfit)
        {
            if (view == null)
            {
                throw new ArgumentNullException("view");
            }
            var repository = Factory.CreateReportRepository();

            return(repository.QueryPlatformTicketReport(paination, view, out totalPurchaserAmount, out totalProviderAmount, out totalSupplierAmount, out totalRoyaltyAmount, out totalPostponeFee, out totalPlatformCommission, out totalPlatformPremium, out totalPlatformProfit));
        }
コード例 #2
0
ファイル: ReportService.cs プロジェクト: 842549829/Pool
        /// <summary>
        ///   平台销售
        /// </summary>
        /// <param name="view">查询条件</param>
        /// <returns>table</returns>
        public static DataTable DownloadPlatformTicket(PlatformTicketView view)
        {
            decimal totalPurchaserAmount; decimal totalProviderAmount; decimal totalSupplierAmount; decimal totalRoyaltyAmount; decimal totalPostponeFee; decimal totalPlatformCommission; decimal totalPlatformPremium; decimal totalPlatformProfit;

            return(ReportService.QueryPlatformTicket(null, view, out totalPurchaserAmount, out totalProviderAmount, out totalSupplierAmount, out totalRoyaltyAmount, out totalPostponeFee, out totalPlatformCommission, out totalPlatformPremium, out totalPlatformProfit));
        }
コード例 #3
0
        private PlatformTicketView getCondition()
        {
            var view = new PlatformTicketView();

            if (!string.IsNullOrWhiteSpace(this.txtStartDate.Text))
            {
                view.FinishBeginTime = DateTime.Parse(this.txtStartDate.Text);
            }
            if (!string.IsNullOrWhiteSpace(this.txtEndDate.Text))
            {
                view.FinishEndTime = DateTime.Parse(this.txtEndDate.Text).AddDays(1).AddMilliseconds(-3);
            }
            if (!string.IsNullOrWhiteSpace(this.ddlAirlines.SelectedValue))
            {
                view.Airline = this.ddlAirlines.SelectedValue;
            }
            if (!string.IsNullOrWhiteSpace(this.ddlTicketStatus.SelectedValue))
            {
                view.TicketState = (TicketState)int.Parse(this.ddlTicketStatus.SelectedValue);
            }
            if (this.txtProviderCompany.CompanyId.HasValue)
            {
                view.Provider = this.txtProviderCompany.CompanyId;
            }
            if (this.txtProductCompany.CompanyId.HasValue)
            {
                view.Supplier = this.txtProductCompany.CompanyId;
            }
            if (this.txtPurchaseCompany.CompanyId.HasValue)
            {
                view.Purchaser = this.txtPurchaseCompany.CompanyId;
            }
            if (!string.IsNullOrWhiteSpace(this.txtTicketNo.Text))
            {
                view.TicketNo = this.txtTicketNo.Text.Trim();
            }
            if (!string.IsNullOrWhiteSpace(this.txtPNR.Text))
            {
                view.PNR = this.txtPNR.Text.Trim();
            }
            if (!string.IsNullOrWhiteSpace(this.txtPassenger.Text))
            {
                view.Passenger = this.txtPassenger.Text.Trim();
            }
            if (!string.IsNullOrWhiteSpace(this.ddlRelationType.SelectedValue))
            {
                view.RelationType = (RelationType)int.Parse(this.ddlRelationType.SelectedValue);
            }
            if (!string.IsNullOrWhiteSpace(this.txtOrderId.Text))
            {
                view.OrderId = decimal.Parse(this.txtOrderId.Text.Trim());
            }
            if (!string.IsNullOrWhiteSpace(this.txtTakeOffLowerTime.Text))
            {
                view.TakeoffBeginDate = DateTime.Parse(this.txtTakeOffLowerTime.Text);
            }
            if (!string.IsNullOrWhiteSpace(this.txtTakeOffUpperTime.Text))
            {
                view.TakeoffEndDate = DateTime.Parse(this.txtTakeOffUpperTime.Text).AddDays(1).AddMilliseconds(-3);
            }
            if (!string.IsNullOrWhiteSpace(this.ddlPayType.SelectedValue))
            {
                view.PayType = this.ddlPayType.SelectedValue == "1";
            }
            return(view);
        }