/// <summary> /// 初始化游客信息列表 /// </summary> protected void InitVisitorList() { EyouSoft.BLL.TourStructure.TourOrder order = new EyouSoft.BLL.TourStructure.TourOrder(base.SiteUserInfo); IList <EyouSoft.Model.TourStructure.TourOrderCustomer> list = order.GetTravellers(tourId); rptVisitorList.DataSource = list.Where(x => x.CustomerStatus == EyouSoft.Model.EnumType.TourStructure.CustomerStatus.正常).ToList(); rptVisitorList.DataBind(); }
void BindCusList() { string tourId = Utils.GetQueryStringValue("tourId"); string orderId = Utils.GetQueryStringValue("orderId"); if (tourId != "") { EyouSoft.BLL.TourStructure.TourOrder orderbll = new EyouSoft.BLL.TourStructure.TourOrder(SiteUserInfo); if (orderId != "") { EyouSoft.Model.TourStructure.TourOrder orderModel = orderbll.GetOrderModel(CurrentUserCompanyID, orderId); if (orderModel != null) { txt_RouteName.Value = orderModel.RouteName; int companyId = orderModel.BuyCompanyID; EyouSoft.Model.CompanyStructure.CustomerInfo cusModel = new EyouSoft.BLL.CompanyStructure.Customer().GetCustomerModel(companyId); if (cusModel != null) { txt_tel.Value = cusModel.Phone; txt_fax.Value = cusModel.Fax; txt_lxr.Value = cusModel.ContactName; txtJbr.Value = cusModel.ContactName; txt_TeamName.Value = cusModel.Name; txt_jiafan.Value = cusModel.Name; } txt_large.Value = EyouSoft.Common.Function.StringValidate.ConvertNumAmtToChinese(orderModel.SumPrice); txt_Price.Value = orderModel.SumPrice.ToString("###,##0.00"); txt_PepoleNum.Value = orderModel.AdultNumber + "/成人数" + "+" + orderModel.ChildNumber + "/儿童数"; IList <EyouSoft.Model.TourStructure.TourOrderCustomer> cusList = orderModel.CustomerList.Where(x => x.CustomerStatus == EyouSoft.Model.EnumType.TourStructure.CustomerStatus.正常).ToList(); cus_list.DataSource = cusList; cus_list.DataBind(); if (cusList.Count > 0) { txt_first.Value = cusList[0].ContactTel; } } } else { IList <EyouSoft.Model.TourStructure.TourOrderCustomer> cusList = orderbll.GetTravellers(tourId).Where(x => x.CustomerStatus == EyouSoft.Model.EnumType.TourStructure.CustomerStatus.正常).ToList();; cus_list.DataSource = cusList; cus_list.DataBind(); if (cusList.Count > 0) { txt_first.Value = cusList[0].ContactTel; } } } }
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; } }
/// <summary> /// 绑定信息 /// </summary> void BindInfo() { //EyouSoft.Model.PlanStructure.TicketOutListInfo model = bll.GetTicketOutListModel(Request.QueryString["id"]); //; EyouSoft.BLL.PlanStruture.PlaneTicket bll = new EyouSoft.BLL.PlanStruture.PlaneTicket(); UserInfo userInfo = null; bool _IsLogin = EyouSoft.Security.Membership.UserProvider.IsUserLogin(out userInfo); EyouSoft.BLL.TourStructure.TourOrder orderbll = new EyouSoft.BLL.TourStructure.TourOrder(userInfo); //string orderId = orderbll.GetOrderIdByTourId(Request.QueryString["tourId"]); if (Utils.GetQueryStringValue("tourId") != "") { string tourId = Utils.GetQueryStringValue("tourId"); this.hideTourId.Value = tourId; CustomerList = bll.CustomerList(Utils.GetQueryStringValue("tourId")); cusList = orderbll.GetTravellers(tourId);//.Where(x => x.CustomerStatus == EyouSoft.Model.EnumType.TourStructure.CustomerStatus.正常).ToList(); for (int i = cusList.Count - 1; i >= 0; i--) { if (!CustomerList.Contains(cusList[i].ID)) { if (cusList[i].CustomerStatus == EyouSoft.Model.EnumType.TourStructure.CustomerStatus.已退团) { cusList.RemoveAt(i); } } } rpt_list.DataSource = cusList; count = 10; rpt_list.DataBind(); } if (Utils.GetString(Request.QueryString["id"], "") != "") { this.hideId.Value = Utils.GetString(Request.QueryString["id"], ""); modelinfo = bll.GetTicketOutListModel(Request.QueryString["id"]); if (modelinfo != null) { rpt_hangbang.DataSource = modelinfo.TicketFlightList; rpt_hangbang.DataBind(); if (modelinfo.TicketKindInfoList != null) { piaomianjia = Utils.FilterEndOfTheZeroDecimal(modelinfo.TicketKindInfoList.FirstOrDefault().Price); shui = Utils.FilterEndOfTheZeroDecimal(modelinfo.TicketKindInfoList.FirstOrDefault().OilFee); pepoleNum = modelinfo.TicketKindInfoList.FirstOrDefault().PeopleCount.ToString(); DaiLiFei = Utils.FilterEndOfTheZeroDecimal(modelinfo.TicketKindInfoList.FirstOrDefault().AgencyPrice); piaokuan = Utils.FilterEndOfTheZeroDecimal(modelinfo.TicketKindInfoList.FirstOrDefault().TotalMoney); OtherMoney = Utils.FilterEndOfTheZeroDecimal(modelinfo.TicketKindInfoList.FirstOrDefault().OtherPrice); Percent = Utils.FilterEndOfTheZeroDecimal(modelinfo.TicketKindInfoList.FirstOrDefault().Discount * 100); if (modelinfo.TicketKindInfoList.Count > 1) { piaomianjia2 = Utils.FilterEndOfTheZeroDecimal(modelinfo.TicketKindInfoList[1].Price); shui2 = Utils.FilterEndOfTheZeroDecimal(modelinfo.TicketKindInfoList[1].OilFee); pepoleNum2 = modelinfo.TicketKindInfoList[1].PeopleCount.ToString(); DaiLiFei2 = Utils.FilterEndOfTheZeroDecimal(modelinfo.TicketKindInfoList[1].AgencyPrice); piaokuan2 = Utils.FilterEndOfTheZeroDecimal(modelinfo.TicketKindInfoList[1].TotalMoney); OtherMoney2 = Utils.FilterEndOfTheZeroDecimal(modelinfo.TicketKindInfoList[1].OtherPrice); Percent2 = Utils.FilterEndOfTheZeroDecimal(modelinfo.TicketKindInfoList[1].Discount * 100); } } Png = modelinfo.PNR; Total = Utils.FilterEndOfTheZeroDecimal(modelinfo.Total); paytype = modelinfo.PayType.ToString(); Notice = modelinfo.Notice; Remark = modelinfo.Remark; //售票处 this.txtSalePlace.Value = modelinfo.TicketOffice; this.hd_PiaoWuSuppId.Value = modelinfo.TicketOfficeId.ToString(); } } }