Beispiel #1
0
        private void onInit()
        {
            //证件类型绑定
            CusCardTypeBind();
            //航空公司绑定
            AirCompanyTypeBind();
            string id = Utils.GetQueryStringValue("id");

            if (id != "")
            {
                //机票申请编号
                this.hidRefundId.Value = id;

                EyouSoft.BLL.PlanStruture.PlaneTicket         bll         = new EyouSoft.BLL.PlanStruture.PlaneTicket();
                EyouSoft.Model.PlanStructure.MCheckTicketInfo CheckTicket = bll.GetMCheckTicket(id);

                if (CheckTicket != null)
                {
                    #region 航班
                    if (CheckTicket.TicketFlightList != null && CheckTicket.TicketFlightList.Count > 0)
                    {
                        RepAirList.DataSource = CheckTicket.TicketFlightList;
                        RepAirList.DataBind();
                    }
                    #endregion

                    #region 机票状态
                    EyouSoft.Model.EnumType.PlanStructure.TicketState ticketState = CheckTicket.TicketState;
                    switch (ticketState)
                    {
                    case EyouSoft.Model.EnumType.PlanStructure.TicketState.机票申请:
                    {
                        this.PanClose.Visible  = false;
                        this.Panquxiao.Visible = false;
                        this.PanShenhe.Visible = true;
                    }
                    break;

                    case EyouSoft.Model.EnumType.PlanStructure.TicketState.审核通过:
                    {
                        this.PanShenhe.Visible = false;
                        this.Panquxiao.Visible = true;
                        this.PanClose.Visible  = false;
                    }
                    break;

                    case EyouSoft.Model.EnumType.PlanStructure.TicketState.已出票:
                    {
                        this.PanClose.Visible  = true;
                        this.Panquxiao.Visible = false;
                        this.PanShenhe.Visible = false;
                    }
                    break;

                    default:
                        break;
                    }
                    #endregion

                    #region  单
                    if (CheckTicket.CustomerList != null && CheckTicket.CustomerList.Count > 0)
                    {
                        this.RepCusList.DataSource = CheckTicket.CustomerList;
                        this.RepCusList.DataBind();
                    }
                    #endregion

                    #region 票款
                    if (CheckTicket.TicketKindList != null && CheckTicket.TicketKindList.Count > 0)
                    {
                        foreach (EyouSoft.Model.PlanStructure.TicketKindInfo TicketKindInfo in CheckTicket.TicketKindList)
                        {
                            #region 成人
                            if (TicketKindInfo.TicketType == EyouSoft.Model.EnumType.PlanStructure.KindType.成人)
                            {
                                //票面价
                                this.txtAdultPrice.Value = FilterEndOfTheZeroDecimal(TicketKindInfo.Price);
                                //税/机建
                                this.txtAdultShui.Value = FilterEndOfTheZeroDecimal(TicketKindInfo.OilFee);
                                //人数
                                this.txtAdultCount.Value = TicketKindInfo.PeopleCount.ToString();
                                //代理费
                                this.txtAdultProxyPrice.Value = FilterEndOfTheZeroDecimal(TicketKindInfo.AgencyPrice);
                                //票款
                                this.txtAdultSum.Value = FilterEndOfTheZeroDecimal(TicketKindInfo.TotalMoney);
                                //百分比
                                txt_Percent.Value  = FilterEndOfTheZeroDecimal(TicketKindInfo.Discount);
                                txt_DaiLiFei.Value = FilterEndOfTheZeroDecimal(TicketKindInfo.OtherPrice);
                            }
                            #endregion

                            #region 儿童
                            if (TicketKindInfo.TicketType == EyouSoft.Model.EnumType.PlanStructure.KindType.儿童)
                            {
                                //票面价
                                this.txtChildPrice.Value = FilterEndOfTheZeroDecimal(TicketKindInfo.Price);
                                //税/机建
                                this.txtChildShui.Value = FilterEndOfTheZeroDecimal(TicketKindInfo.OilFee);
                                //人数
                                this.txtChildCount.Value = TicketKindInfo.PeopleCount.ToString();
                                //代理费
                                this.txtChildProxyPrice.Value = FilterEndOfTheZeroDecimal(TicketKindInfo.AgencyPrice);
                                //票款
                                this.txtChildSum.Value = FilterEndOfTheZeroDecimal(TicketKindInfo.TotalMoney);
                                txt_Percent2.Value     = FilterEndOfTheZeroDecimal(TicketKindInfo.Discount);
                                txt_DaiLiFei2.Value    = FilterEndOfTheZeroDecimal(TicketKindInfo.OtherPrice);
                            }
                            #endregion
                        }
                    }
                    #endregion

                    #region  订单信息
                    EyouSoft.Model.PlanStructure.TicketOutListInfo TicketOutListInfo = new EyouSoft.BLL.PlanStruture.PlaneTicket().GetTicketModel(id);
                    if (TicketOutListInfo != null)
                    {
                        IList <EyouSoft.Model.TourStructure.OrderByCheckTicket> list = new EyouSoft.BLL.TourStructure.TourOrder().GetOrderByCheckTicketByOrderId(SiteUserInfo.CompanyID, TicketOutListInfo.OrderId);
                        if (list != null && list.Count > 0)
                        {
                            this.TicketOrderlist.DataSource = list;
                            this.TicketOrderlist.DataBind();
                        }
                    }

                    #endregion
                    //总费用
                    this.txtSumMoney.Value = EyouSoft.Common.Utils.FilterEndOfTheZeroString(EyouSoft.Common.Utils.GetDecimal(CheckTicket.TotalAmount.ToString()).ToString("0.00"));

                    //财务审核备注
                    txt_remark.Text = CheckTicket.ReviewRemark;
                }
                CheckTicket = null;
                bll         = null;
            }
        }
Beispiel #2
0
        private void onInit()
        {
            BindPayType();
            //证件类型绑定
            CusCardTypeBind();
            //航空公司绑定
            AirCompanyTypeBind();
            string id = Utils.GetQueryStringValue("id");

            if (id != "")
            {
                EyouSoft.BLL.PlanStruture.PlaneTicket          bll   = new EyouSoft.BLL.PlanStruture.PlaneTicket();
                EyouSoft.Model.PlanStructure.TicketOutListInfo model = bll.GetTicketOutListModel(id);
                if (model != null)
                {
                    #region 航班
                    if (model.TicketFlightList != null && model.TicketFlightList.Count > 0)
                    {
                        RepAirList.DataSource = model.TicketFlightList;
                        RepAirList.DataBind();
                    }
                    #endregion

                    #region  单

                    this.hideTourId.Value = model.TourId;

                    EyouSoft.BLL.TourStructure.TourOrder orderbll = new EyouSoft.BLL.TourStructure.TourOrder(SiteUserInfo);
                    System.Collections.Generic.IList <EyouSoft.Model.TourStructure.TourOrderCustomer> cusromerList = orderbll.GetTravellers(model.TourId);
                    if (cusromerList != null && cusromerList.Count > 0)
                    {
                        this.RepCusList.DataSource = cusromerList;
                        this.RepCusList.DataBind();
                    }
                    #endregion

                    #region 票款
                    if (model.TicketKindInfoList != null && model.TicketKindInfoList.Count > 0)
                    {
                        foreach (EyouSoft.Model.PlanStructure.TicketKindInfo TicketKindInfo in model.TicketKindInfoList)
                        {
                            #region 成人
                            if (TicketKindInfo.TicketType == EyouSoft.Model.EnumType.PlanStructure.KindType.成人)
                            {
                                //票面价
                                this.txtAdultPrice.Value = EyouSoft.Common.Utils.FilterEndOfTheZeroString(EyouSoft.Common.Utils.GetDecimal(TicketKindInfo.Price.ToString()).ToString("0.00"));
                                //税/机建
                                this.txtAdultShui.Value = EyouSoft.Common.Utils.FilterEndOfTheZeroString(EyouSoft.Common.Utils.GetDecimal(TicketKindInfo.OilFee.ToString()).ToString("0.00"));
                                //人数
                                this.txtAdultCount.Value = TicketKindInfo.PeopleCount.ToString();
                                //代理费
                                this.txtAdultProxyPrice.Value = EyouSoft.Common.Utils.FilterEndOfTheZeroString(EyouSoft.Common.Utils.GetDecimal(TicketKindInfo.AgencyPrice.ToString()).ToString("0.00"));
                                //百分比
                                this.txt_Percent.Value = EyouSoft.Common.Utils.FilterEndOfTheZeroString((TicketKindInfo.Discount).ToString("0.00"));
                                //其它费用
                                this.txt_OtherMoney.Value = EyouSoft.Common.Utils.FilterEndOfTheZeroString(EyouSoft.Common.Utils.GetDecimal(TicketKindInfo.OtherPrice.ToString()).ToString("0.00"));
                                //票款
                                this.txtAdultSum.Value = EyouSoft.Common.Utils.FilterEndOfTheZeroString(EyouSoft.Common.Utils.GetDecimal(TicketKindInfo.TotalMoney.ToString()).ToString("0.00"));
                            }
                            #endregion

                            #region 儿童
                            if (TicketKindInfo.TicketType == EyouSoft.Model.EnumType.PlanStructure.KindType.儿童)
                            {
                                //票面价
                                this.txtChildPrice.Value = EyouSoft.Common.Utils.FilterEndOfTheZeroString(EyouSoft.Common.Utils.GetDecimal(TicketKindInfo.Price.ToString()).ToString("0.00"));
                                //税/机建
                                this.txtChildShui.Value = EyouSoft.Common.Utils.FilterEndOfTheZeroString(EyouSoft.Common.Utils.GetDecimal(TicketKindInfo.OilFee.ToString()).ToString("0.00"));
                                //人数
                                this.txtChildCount.Value = TicketKindInfo.PeopleCount.ToString();
                                //代理费
                                this.txtChildProxyPrice.Value = EyouSoft.Common.Utils.FilterEndOfTheZeroString(EyouSoft.Common.Utils.GetDecimal(TicketKindInfo.AgencyPrice.ToString()).ToString("0.00"));
                                //百分比
                                this.txt_PercentChild.Value = EyouSoft.Common.Utils.FilterEndOfTheZeroString((TicketKindInfo.Discount).ToString("0.00"));
                                //其它费用
                                this.txt_OtherMoneyChild.Value = EyouSoft.Common.Utils.FilterEndOfTheZeroString(EyouSoft.Common.Utils.GetDecimal(TicketKindInfo.OtherPrice.ToString()).ToString("0.00"));
                                //票款
                                this.txtChildSum.Value = EyouSoft.Common.Utils.FilterEndOfTheZeroString(EyouSoft.Common.Utils.GetDecimal(TicketKindInfo.TotalMoney.ToString()).ToString("0.00"));
                            }
                            #endregion
                        }
                    }
                    #endregion

                    #region 基本信息
                    //总费用
                    this.txtSumMoney.Value = EyouSoft.Common.Utils.FilterEndOfTheZeroString(EyouSoft.Common.Utils.GetDecimal(model.Total.ToString()).ToString("0.00"));
                    //支付方式
                    this.ddlPayType.SelectedValue = model.PayType.ToString();
                    //订票须知
                    this.txtOrderPiaoMust.Value = model.Notice;
                    //PNR
                    this.txtPNR.Value = model.PNR;
                    //售票处
                    this.txtSalePlace.Value = model.TicketOffice;
                    //供应商编号
                    this.hd_PiaoWuSuppId.Value = model.TicketOfficeId.ToString();
                    //票号
                    this.txtPiaoHao.Value = model.TicketNum;
                    //备注
                    this.txtMemo.Value = model.Remark;
                    //支付方式
                    if (model.PayType.ToString() != "0" && model.PayType.ToString() != "")
                    {
                        this.ddlPayType.Items.FindByText(model.PayType.ToString()).Selected = true;
                    }
                    //订单ID
                    this.hdOrderID.Value = model.OrderId;
                    //团号ID
                    this.hdTourID.Value = model.TourId;
                    //线路名称
                    this.hd_LineName.Value = model.RouteName;
                    #endregion
                }
                bll   = null;
                model = null;
            }
        }
Beispiel #3
0
        private void onInit()
        {
            BindPayType();
            //证件类型绑定
            CusCardTypeBind();
            //航空公司绑定
            AirCompanyTypeBind();
            string id = Utils.GetQueryStringValue("id");

            if (id != "")
            {
                EyouSoft.BLL.PlanStruture.PlaneTicket          bll   = new EyouSoft.BLL.PlanStruture.PlaneTicket();
                EyouSoft.Model.PlanStructure.TicketOutListInfo model = bll.GetTicketOutListModel(id);
                if (model != null)
                {
                    #region 航班
                    if (model.TicketFlightList != null && model.TicketFlightList.Count > 0)
                    {
                        RepAirList.DataSource = model.TicketFlightList;
                        RepAirList.DataBind();
                    }
                    #endregion

                    #region  单
                    if (model.CustomerInfoList != null && model.CustomerInfoList.Count > 0)
                    {
                        this.RepCusList.DataSource = model.CustomerInfoList;
                        this.RepCusList.DataBind();
                    }
                    #endregion

                    #region 票款
                    if (model.TicketKindInfoList != null && model.TicketKindInfoList.Count > 0)
                    {
                        foreach (EyouSoft.Model.PlanStructure.TicketKindInfo TicketKindInfo in model.TicketKindInfoList)
                        {
                            #region 成人
                            if (TicketKindInfo.TicketType == EyouSoft.Model.EnumType.PlanStructure.KindType.成人)
                            {
                                //票面价
                                this.txtAdultPrice.Value = FilterEndOfTheZeroDecimal(TicketKindInfo.Price);
                                //税/机建
                                this.txtAdultShui.Value = FilterEndOfTheZeroDecimal(TicketKindInfo.OilFee);
                                //人数
                                this.txtAdultCount.Value = TicketKindInfo.PeopleCount.ToString();
                                //代理费
                                this.txtAdultProxyPrice.Value = FilterEndOfTheZeroDecimal(TicketKindInfo.AgencyPrice);
                                //票款
                                this.txtAdultSum.Value = FilterEndOfTheZeroDecimal(TicketKindInfo.TotalMoney);
                                //百分比
                                txt_Percent.Value  = FilterEndOfTheZeroDecimal(TicketKindInfo.Discount);
                                txt_DaiLiFei.Value = FilterEndOfTheZeroDecimal(TicketKindInfo.OtherPrice);
                            }
                            #endregion

                            #region 儿童
                            if (TicketKindInfo.TicketType == EyouSoft.Model.EnumType.PlanStructure.KindType.儿童)
                            {
                                //票面价
                                this.txtChildPrice.Value = FilterEndOfTheZeroDecimal(TicketKindInfo.Price);
                                //税/机建
                                this.txtChildShui.Value = FilterEndOfTheZeroDecimal(TicketKindInfo.OilFee);
                                //人数
                                this.txtChildCount.Value = TicketKindInfo.PeopleCount.ToString();
                                //代理费
                                this.txtChildProxyPrice.Value = FilterEndOfTheZeroDecimal(TicketKindInfo.AgencyPrice);
                                //票款
                                this.txtChildSum.Value = FilterEndOfTheZeroDecimal(TicketKindInfo.TotalMoney);
                                txt_Percent2.Value     = FilterEndOfTheZeroDecimal(TicketKindInfo.Discount);
                                txt_DaiLiFei2.Value    = FilterEndOfTheZeroDecimal(TicketKindInfo.OtherPrice);
                            }
                            #endregion
                        }
                    }
                    #endregion

                    #region 基本信息
                    //总费用
                    this.txtSumMoney.Value = EyouSoft.Common.Utils.FilterEndOfTheZeroString(EyouSoft.Common.Utils.GetDecimal(model.TotalAmount.ToString()).ToString("0.00"));
                    //支付方式
                    this.ddlPayType.SelectedValue = model.PayType.ToString();
                    //订票须知
                    this.txtOrderPiaoMust.Value = model.Notice;
                    //PNR
                    this.txtPNR.Value = model.PNR;
                    //售票处
                    this.txtSalePlace.Value = model.TicketOffice;
                    //票号
                    this.txtPiaoHao.Value = model.TicketNum;
                    //备注
                    this.txtMemo.Value = model.Remark;
                    if (model.PayType.ToString() != "0" && model.PayType.ToString() != "")
                    {
                        this.ddlPayType.Items.FindByText(model.PayType.ToString()).Selected = true;
                    }
                    //订单ID
                    this.hdOrderID.Value = model.OrderId;
                    //团号ID
                    this.hdTourID.Value = model.TourId;
                    #endregion
                }
                bll   = null;
                model = null;
            }
        }