/// <summary> /// 状态 /// </summary> /// <param name="status"></param> /// <returns></returns> public string getStatus(EyouSoft.Model.EnumType.PlanStructure.TicketState status) { if (status != EyouSoft.Model.EnumType.PlanStructure.TicketState.机票申请) { return(status.ToString()); } else { return(""); } }
/// <summary> /// 状态 /// </summary> /// <param name="ticketState"></param> /// <param name="tourState"></param> /// <returns></returns> public string getStatus(EyouSoft.Model.EnumType.PlanStructure.TicketState ticketState, EyouSoft.Model.EnumType.TourStructure.TourStatus tourState) { if (ticketState == PlanStructure.TicketState.机票申请) { return("机票申请"); } else { if (ticketState == PlanStructure.TicketState.审核通过) { return("未出票"); } else { return(tourState.ToString()); } } }
//列表初始化 protected void ListBind(string[] operID, string operName, string inputDate, string inputGoLine, string timeStart, string timeEnd, EyouSoft.Model.EnumType.PlanStructure.TicketState state, string tourCode, DateTime?lSDate, DateTime?lEDate) { int pageCount = 1; pageIndex = Utils.GetInt(Utils.GetQueryStringValue("Page"), 1); EyouSoft.BLL.PlanStruture.PlaneTicket PlaneTicketBll = new EyouSoft.BLL.PlanStruture.PlaneTicket(SiteUserInfo); EyouSoft.Model.PlanStructure.TicketSearchModel SearchModel = new EyouSoft.Model.PlanStructure.TicketSearchModel(); System.Collections.Generic.IList <EyouSoft.Model.PlanStructure.TicketInfo> Ilist = null; if (!(string.IsNullOrEmpty(operName) && string.IsNullOrEmpty(inputDate) && string.IsNullOrEmpty(inputGoLine) && string.IsNullOrEmpty(timeStart) && string.IsNullOrEmpty(timeEnd) && Convert.ToInt32(state) == 0 && string.IsNullOrEmpty(tourCode) && !lSDate.HasValue && !lEDate.HasValue)) { SearchModel.TicketListOrFinancialList = 2; SearchModel.CompanyId = SiteUserInfo.CompanyID; SearchModel.Operator = operName; SearchModel.DepartureTime = inputDate; SearchModel.FligthSegment = inputGoLine; SearchModel.TourCode = tourCode; if (timeStart != "") { SearchModel.AirTimeStart = Convert.ToDateTime(timeStart); } if (timeEnd != "") { SearchModel.AirTimeEnd = Convert.ToDateTime(timeEnd); } SearchModel.TicketState = state; SearchModel.LSDate = lSDate; SearchModel.LEDate = lEDate; //根据条件搜索相关记录 Ilist = PlaneTicketBll.SearchTicketOut(pageSize, pageIndex, SearchModel, ref recordCount, ref pageCount); } else { Ilist = PlaneTicketBll.GetTicketList(pageSize, pageIndex, SiteUserInfo.CompanyID, ref recordCount, ref pageCount); } if (Ilist != null && Ilist.Count > 0) { this.repList.DataSource = Ilist; this.repList.DataBind(); } else { this.ExporPageInfoSelect1.Visible = false; this.repList.EmptyText = "<tr><td height='30px' bgcolor='#e3f1fc' colspan='12' align='center'>暂时没有数据!</td></tr>"; } PlaneTicketBll = null; SearchModel = null; BindPage(); this.txtTimeStart.Value = timeStart; this.txtTimeEnd.Value = timeEnd; if (this.dpTicketState.Items.FindByValue(Convert.ToInt32(state).ToString()) != null) { this.dpTicketState.Items.FindByValue(Convert.ToInt32(state).ToString()).Selected = true; } }
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; } }