//列表初始化 protected void ListBind(string[] operIds, string operName, string inputGoLine, string inputDate, string tourCode, DateTime?sVerifyTime, DateTime?eVerifyTime, DateTime?lSDate, DateTime?lEDate) { int pageCount = 1; EyouSoft.BLL.PlanStruture.PlaneTicket bll = new EyouSoft.BLL.PlanStruture.PlaneTicket(SiteUserInfo); System.Collections.Generic.IList <EyouSoft.Model.PlanStructure.TicketInfo> list = null; EyouSoft.Model.PlanStructure.TicketSearchModel SearchModel = new EyouSoft.Model.PlanStructure.TicketSearchModel(); if (!(string.IsNullOrEmpty(operName) && string.IsNullOrEmpty(inputDate) && string.IsNullOrEmpty(operName) && string.IsNullOrEmpty(inputGoLine) && string.IsNullOrEmpty(tourCode) && !sVerifyTime.HasValue && !eVerifyTime.HasValue && !lSDate.HasValue && !lEDate.HasValue)) { SearchModel.TicketListOrFinancialList = 1; SearchModel.CompanyId = SiteUserInfo.CompanyID; SearchModel.Operator = operName; SearchModel.DepartureTime = inputDate; SearchModel.FligthSegment = inputGoLine; SearchModel.TourCode = tourCode; SearchModel.SVerifyTime = sVerifyTime; SearchModel.EVerifyTime = eVerifyTime; SearchModel.LSDate = lSDate; SearchModel.LEDate = lEDate; //根据条件搜索相关记录 list = bll.SearchTicketOut(pageSize, pageIndex, SearchModel, ref recordCount, ref pageCount); } else { list = bll.GetCheckedTicketList(pageSize, pageIndex, SiteUserInfo.CompanyID, ref recordCount, ref pageCount); } if (list != null && list.Count > 0) { repList.DataSource = list; repList.DataBind(); } else { this.ExporPageInfoSelect1.Visible = false; this.repList.EmptyText = "<tr><td height='30px' bgcolor='#e3f1fc' colspan='12' align='center'>暂时没有数据!</td></tr>"; } BindPage(); }
//列表初始化 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; } }