Exemplo n.º 1
0
        private void bindHeader(Service.Order.Domain.Applyform.BalanceRefundApplyform applyform)
        {
            this.lblApplyformId.Text   = applyform.Id.ToString();
            this.linkOrderId.HRef      = "OrderDetail.aspx?id=" + applyform.OrderId.ToString() + "&returnUrl=" + System.Web.HttpUtility.UrlEncode(Request.Url.PathAndQuery);
            this.linkOrderId.InnerText = applyform.OrderId.ToString();
            this.lblApplyType.Text     = applyform.ToString();
            var product = applyform.Order.IsThirdRelation ? applyform.Order.Supplier.Product : applyform.Order.Provider.Product;

            if (product is SpeicalProductInfo)
            {
                var specialProductInfo = product as SpeicalProductInfo;
                this.lblProductType.Text = applyform.Order.Product.ProductType.GetDescription() + "(" + specialProductInfo.SpeicalProductType.GetDescription() + ")";
            }
            else
            {
                this.lblProductType.Text = applyform.Order.Product.ProductType.GetDescription();
            }
            this.lblStatus.Text = Service.Order.StatusService.GetBalanceRefundStatus(applyform.BalanceRefundStatus, DataTransferObject.Order.OrderRole.Platform);
            if (applyform.Order.Provider != null && applyform.Order.Provider.Product is Service.Order.Domain.CommonProductInfo)
            {
                this.lblTicketType.Text = (applyform.Order.Provider.Product as Service.Order.Domain.CommonProductInfo).TicketType.ToString();
            }
            else
            {
                this.lblTicketType.Text = "-";
            }
            lblPNR.Text  = AppendPNR(applyform.NewPNR, string.Empty);
            lblPNR.Text += AppendPNR(applyform.OriginalPNR, string.IsNullOrWhiteSpace(lblPNR.Text) ? string.Empty : "原编码:");
            this.linkPurchaser.InnerText = applyform.PurchaserName;
            this.linkPurchaser.HRef      = "/OrganizationModule/TerraceModule/CompanyInfoManage/LookUpCompanyInfo.aspx?CompanyId=" + applyform.PurchaserId.ToString();
            this.linkProvider.InnerText  = applyform.ProviderName;
            this.linkProvider.HRef       = "/OrganizationModule/TerraceModule/CompanyInfoManage/LookUpCompanyInfo.aspx?CompanyId=" + applyform.ProviderId.ToString();
        }
Exemplo n.º 2
0
 private void bindData(Service.Order.Domain.Applyform.BalanceRefundApplyform applyform)
 {
     bindHeader(applyform);
     bindVoyages(applyform.Applyform);
     bindPassengers(applyform.Applyform);
     bindApplyAndProcessInfo(applyform.Applyform);
     bindBill(applyform.Applyform);
     bindProcessInfo(applyform.Applyform);
 }
Exemplo n.º 3
0
        private void bindHeader(Service.Order.Domain.Applyform.BalanceRefundApplyform applyform)
        {
            var orderRole = BasePage.GetOrderRole(applyform.Order);

            this.lblApplyformId.Text   = applyform.Id.ToString();
            this.linkOrderId.HRef      = "OrderDetail.aspx?id=" + applyform.OrderId.ToString() + "&returnUrl=" + System.Web.HttpUtility.UrlEncode(Request.Url.PathAndQuery);
            this.linkOrderId.InnerText = applyform.OrderId.ToString();
            this.lblApplyType.Text     = "差额退款";
            var product = applyform.Order.IsThirdRelation && orderRole != OrderRole.Provider ? applyform.Order.Supplier.Product : applyform.Order.Provider.Product;

            if (product is SpeicalProductInfo)
            {
                var specialProductInfo = product as SpeicalProductInfo;
                this.lblProductType.Text = applyform.Order.Product.ProductType.GetDescription() + "(" + specialProductInfo.SpeicalProductType.GetDescription() + ")";
            }
            else
            {
                this.lblProductType.Text = product.ProductType.GetDescription();
            }
            this.lblStatus.Text = Service.Order.StatusService.GetBalanceRefundStatus(applyform.BalanceRefundStatus, orderRole);
            if (applyform.Order.Provider != null && applyform.Order.Provider.Product is Service.Order.Domain.CommonProductInfo)
            {
                this.lblTicketType.Text = (applyform.Order.Provider.Product as Service.Order.Domain.CommonProductInfo).TicketType.ToString();
            }
            else
            {
                this.lblTicketType.Text = "-";
            }

            lblPNR.Text  = AppendPNR(applyform.NewPNR, string.Empty);
            lblPNR.Text += AppendPNR(applyform.OriginalPNR, string.IsNullOrWhiteSpace(lblPNR.Text) ? string.Empty : "原编码:");

            if (applyform.Order.Provider != null && applyform.Order.Provider.PurchaserRelationType != Common.Enums.RelationType.Brother)
            {
                lblRelation.Text           = applyform.Order.Provider.PurchaserRelationType.GetDescription() + "-";
                hrefPurchaseName.InnerHtml = applyform.Order.Purchaser.Company.UserName + "(" + applyform.Order.Purchaser.Name + ")";
                this.hrefPurchaseName.HRef = "/OrganizationModule/RoleModule/ExtendCompanyManage/LowerComapnyInfoUpdate/LowerCompanyDetailInfo.aspx?CompanyId="
                                             + applyform.Order.Purchaser.CompanyId.ToString() +
                                             "&Type=" + (applyform.Order.Provider.PurchaserRelationType == Common.Enums.RelationType.Interior ? "Organization" : "Junion");
            }
            else
            {
                lblRelation.Text         = "平台采购";
                hrefPurchaseName.Visible = false;
            }
        }