/// <summary> /// 绑定列表 /// </summary> void BindInfo() { int count = 0; EyouSoft.BLL.TourStructure.Tour bll = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo); EyouSoft.Model.TourStructure.TourSearchTKZCInfo SearchInfo = new EyouSoft.Model.TourStructure.TourSearchTKZCInfo(); #region 查询参数 string ddltype = Utils.GetQueryStringValue("tourtype"); string teamNum = Utils.GetQueryStringValue("tourCode"); txt_teamNum.Value = teamNum; string com = Utils.GetQueryStringValue("companyName"); txt_com.Value = com; string comtype = Utils.GetQueryStringValue("comType"); string goDate = Utils.GetQueryStringValue("beginDate"); txt_godate.Value = goDate; string fukDate = Utils.GetQueryStringValue("payDate"); txt_payDate.Value = fukDate; if (ddltype != "-1" && ddltype != "") { select.Value = ddltype; SearchInfo.TourType = (EyouSoft.Model.EnumType.TourStructure.TourType)Utils.GetInt(ddltype); } if (teamNum != "") { SearchInfo.TourCode = teamNum; } if (com != "") { SearchInfo.SupplierCName = com; ExpendSearchInfo.SupplierName = com; } if (comtype != "-1" && comtype != "") { ddl_comType.SelectedValue = comtype; SearchInfo.SupplierCType = (EyouSoft.Model.EnumType.CompanyStructure.SupplierType)Utils.GetInt(comtype); if ((EyouSoft.Model.EnumType.CompanyStructure.SupplierType)Utils.GetInt(comtype) == EyouSoft.Model.EnumType.CompanyStructure.SupplierType.票务) { this.pnlGround.Visible = false; ExpendSearchInfo.SupplierType = EyouSoft.Model.EnumType.CompanyStructure.SupplierType.票务; } if ((EyouSoft.Model.EnumType.CompanyStructure.SupplierType)Utils.GetInt(comtype) == EyouSoft.Model.EnumType.CompanyStructure.SupplierType.地接) { this.pnlTicket.Visible = false; ExpendSearchInfo.SupplierType = EyouSoft.Model.EnumType.CompanyStructure.SupplierType.地接; } } //if (goDate != "") //{ // SearchInfo.FDate = Utils.GetDateTimeNullable(goDate); //} //if (fukDate != "") //{ // SearchInfo.PaymentFTime = Utils.GetDateTimeNullable(fukDate); //} SearchInfo.SDate = Utils.GetDateTimeNullable(goDate); SearchInfo.EDate = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("rdate")); SearchInfo.PaymentSTime = Utils.GetDateTimeNullable(fukDate); SearchInfo.PaymentETime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("payendtime")); #endregion IList <EyouSoft.Model.TourStructure.LBTKZCTourInfo> list = bll.GetToursTKZC(CurrentUserCompanyID, false, 20, EyouSoft.Common.Utils.GetInt(Request.QueryString["page"], 1), ref count, SearchInfo); rpt_list1.DataSource = list; rpt_list1.DataBind(); //合计 bll.GetToursTKZC(CurrentUserCompanyID, false, SearchInfo, ref travelAgencyAmount, ref travelAgencyHasAmount, ref ticketAmount, ref ticketHasAmount, ref singleAmount, ref singleHasAmount); this.rpt_list1.EmptyText = "<tr><td height='30px' bgcolor='#e3f1fc' colspan='5' align='center'>暂时没有数据!</td></tr>"; #region 分页 ExportPageInfo1.intPageSize = 20; ExportPageInfo1.intRecordCount = count; ExportPageInfo1.PageLinkURL = Request.Path + "?"; ExportPageInfo1.UrlParams = Request.QueryString; ExportPageInfo1.CurrencyPage = EyouSoft.Common.Utils.GetInt(Request.QueryString["page"], 1); #endregion if (!IsDanXiang) { phDanXiang.Visible = false; } if (!IsDiJie) { pnlGround.Visible = false; } if (!IsJiPiao) { pnlTicket.Visible = false; } }