Beispiel #1
0
        /// <summary>
        /// 初始化页面
        /// </summary>
        private void InitPage()
        {
            //lbl_msg.Text = SiteUserInfo.CompanyName + " " + SiteUserInfo.ContactInfo.ContactName;
            //分页参数
            int pageSize             = 15,
                pageCurrent          = Utils.GetInt(Utils.GetQueryStringValue("Page"), 1),
                recordCount          = 0;
            MPowderSearch queryModel = new MPowderSearch();

            #region 查询参数赋值
            //专线Id
            queryModel.AreaId = Utils.GetInt(Utils.GetQueryStringValue("lineId"), 0);
            ILine1.CheckedId  = queryModel.AreaId.ToString();
            //关键字
            queryModel.TourKey = Utils.GetQueryStringValue("keyWord");
            txt_keyWord.Value  = queryModel.TourKey.Length > 0 ? queryModel.TourKey : string.Empty;
            //出团时间
            queryModel.LeaveDate = Utils.GetDateTime(Request.QueryString["goTimeS"], (DateTime.Now + new TimeSpan(1, 0, 0, 0)));
            txt_goTimeS.Value    = queryModel.LeaveDate.Date == (DateTime.Now + new TimeSpan(1, 0, 0, 0)).Date ? string.Empty : queryModel.LeaveDate.ToString("yyyy-MM-dd");

            //回团时间
            queryModel.EndLeaveDate = Utils.GetDateTime(Utils.GetQueryStringValue("goTimeE"), DateTime.MinValue);
            txt_goTimeE.Value       = queryModel.EndLeaveDate == DateTime.MinValue ? string.Empty : queryModel.EndLeaveDate.ToString();
            //出发地Id
            startCityId            = Utils.GetQueryStringValue("goCityId");
            queryModel.StartCityId = Utils.GetInt(startCityId);
            //出发地Name
            queryModel.StartCityName = Utils.GetQueryStringValue("goCityName");
            txt_goCity.Value         = queryModel.StartCityName;
            queryModel.RecommendType = null;
            if (Utils.GetIntSign(Utils.GetQueryStringValue("status"), -1) >= 0)
            {
                queryModel.RecommendType = (RecommendType)Utils.GetInt(Utils.GetQueryStringValue("status"));
            }
            //出游天数
            powderDay = Utils.GetInt(Utils.GetQueryStringValue("travelDays"), 0);
            if (powderDay > 0)
            {
                queryModel.PowderDay = (PowderDay)powderDay;
            }
            #endregion
            IList <MPowderList> list = EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance().GetList(
                pageSize,
                pageCurrent,
                ref recordCount,
                AreaType.国际线,
                SiteUserInfo.CityId,
                queryModel);

            if (list != null && list.Count > 0)
            {
                rpt_list.DataSource = list;
                rpt_list.DataBind();
                ExportPageInfo1.Visible             = true;
                this.ExportPageInfo1.intPageSize    = pageSize;
                this.ExportPageInfo1.intRecordCount = recordCount;
                this.ExportPageInfo1.CurrencyPage   = pageCurrent;
                this.ExportPageInfo1.PageLinkURL    = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
                //this.ExportPageInfo1.UrlParams = Request.QueryString;
                this.ExportPageInfo1.UrlParams.Add("travelDays", Utils.GetQueryStringValue("travelDays"));
                this.ExportPageInfo1.UrlParams.Add("lineId", queryModel.AreaId.ToString());
                this.ExportPageInfo1.UrlParams.Add("status", Utils.GetQueryStringValue("status"));
                this.ExportPageInfo1.UrlParams.Add("goCityId", Utils.GetQueryStringValue("goCityId"));
                this.ExportPageInfo1.UrlParams.Add("goCityName", Utils.GetQueryStringValue("goCityName"));
                this.ExportPageInfo1.UrlParams.Add("goTimeS", queryModel.LeaveDate.ToString("yyyy-MM-dd"));
                this.ExportPageInfo1.UrlParams.Add("goTimeE", queryModel.EndLeaveDate.ToString());
                this.ExportPageInfo1.UrlParams.Add("keyWord", queryModel.TourKey);
            }
            else
            {
                //不存在列表数据
                pnlNodata.Visible       = true;
                ExportPageInfo1.Visible = false;
            }
        }
Beispiel #2
0
        /// <summary>
        /// 页面初始化
        /// </summary>
        private void InitPage()
        {
            //绑定专线下拉
            BindZX();
            MPowderSearch queryModel = new MPowderSearch();

            #region 查询参数赋值
            //专线Id
            queryModel.AreaId    = Utils.GetInt(Utils.GetQueryStringValue("lineId"), 0);
            ILine1.CheckedId     = queryModel.AreaId.ToString();
            ddl_ZX.SelectedValue = queryModel.AreaId.ToString();
            //关键字
            queryModel.TourKey = Utils.GetQueryStringValue("keyWord");
            txt_keyWord.Value  = queryModel.TourKey.Length > 0 ? queryModel.TourKey : string.Empty;
            //专线类型
            queryModel.AreaType = null;
            if (Utils.GetIntSign(Utils.GetQueryStringValue("lineType"), -1) >= 0)
            {
                queryModel.AreaType = (AreaType)Utils.GetInt(Utils.GetQueryStringValue("lineType"));
            }
            //出团时间
            queryModel.LeaveDate = Utils.GetDateTime(Utils.GetQueryStringValue("goTimeS"), DateTime.MinValue);
            txt_goTimeS.Value    = queryModel.LeaveDate == DateTime.MinValue ? string.Empty : queryModel.LeaveDate.ToString("yyyy-MM-dd");
            //回团时间
            queryModel.EndLeaveDate = Utils.GetDateTime(Utils.GetQueryStringValue("goTimeE"), DateTime.MinValue);
            txt_goTimeE.Value       = queryModel.EndLeaveDate == DateTime.MinValue ? string.Empty : queryModel.EndLeaveDate.ToString("yyyy-MM-dd");
            queryModel.RouteId      = Utils.GetQueryStringValue("routeId");
            #endregion
            //分页参数
            int pageSize             = 15,
                pageCurrent          = Utils.GetInt(Utils.GetQueryStringValue("page"), 1),
                recordCount          = 0;
            IList <MPowderList> list = EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance().GetHistoryList(
                pageSize,
                pageCurrent,
                ref recordCount,
                SiteUserInfo.CompanyID,
                queryModel);

            if (list != null && list.Count > 0)
            {
                rpt_list.DataSource = list;
                rpt_list.DataBind();
                ExportPageInfo1.Visible             = true;
                this.ExportPageInfo1.intPageSize    = pageSize;
                this.ExportPageInfo1.intRecordCount = recordCount;
                this.ExportPageInfo1.CurrencyPage   = pageCurrent;
                this.ExportPageInfo1.PageLinkURL    = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
                //this.ExportPageInfo1.UrlParams = Request.QueryString;
                this.ExportPageInfo1.UrlParams.Add("routeId", queryModel.RouteId);
                this.ExportPageInfo1.UrlParams.Add("lineId", queryModel.AreaId.ToString());
                this.ExportPageInfo1.UrlParams.Add("lineType", Utils.GetQueryStringValue("lineType"));
                this.ExportPageInfo1.UrlParams.Add("goTimeS", queryModel.LeaveDate.ToString());
                this.ExportPageInfo1.UrlParams.Add("goTimeE", queryModel.EndLeaveDate.ToString());
                this.ExportPageInfo1.UrlParams.Add("keyWord", queryModel.TourKey);
            }
            else
            {
                //不存在列表数据
                pnlNodata.Visible = true;
            }
        }
Beispiel #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //分页参数
            int pageSize             = 15,
                pageCurrent          = Utils.GetInt(Utils.GetQueryStringValue("Page"), 1),
                recordCount          = 0;
            MPowderSearch queryModel = new MPowderSearch();

            #region 查询参数赋值
            //专线Id
            queryModel.AreaId = Utils.GetInt(Utils.GetQueryStringValue("lineId"), 0);

            //关键字
            queryModel.TourKey = Utils.GetQueryStringValue("keyWord");
            //出团时间
            queryModel.LeaveDate = Utils.GetDateTime(Request.QueryString["goTimeS"] ?? (DateTime.Now + new TimeSpan(1, 0, 0, 0)).ToString());

            //回团时间
            queryModel.EndLeaveDate = Utils.GetDateTime(Utils.GetQueryStringValue("goTimeE"));
            //出发地Id
            queryModel.StartCityId = Utils.GetInt(Utils.GetQueryStringValue("goCityId"));
            //出发地Name
            queryModel.StartCityName = Utils.GetQueryStringValue("goCityName");
            //推荐类型
            queryModel.RecommendType = null;
            if (Utils.GetIntSign(Utils.GetQueryStringValue("status"), -1) >= 0)
            {
                queryModel.RecommendType = (RecommendType)Utils.GetInt(Utils.GetQueryStringValue("status"));
            }
            //出游天数
            int powderDay = Utils.GetInt(Utils.GetQueryStringValue("travelDays"), 0);
            if (powderDay > 0)
            {
                queryModel.PowderDay = (PowderDay)powderDay;
            }
            #endregion
            IList <MPowderList> list = EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance().GetList(
                pageSize,
                pageCurrent,
                ref recordCount,
                (AreaType)Utils.GetInt(Utils.GetQueryStringValue("lineType")),
                Utils.GetInt(Utils.GetQueryStringValue("uCityId")),
                queryModel);

            if (list != null && list.Count > 0)
            {
                rpt_list.DataSource = list;
                rpt_list.DataBind();
                ExportPageInfo1.Visible             = true;
                this.ExportPageInfo1.intPageSize    = pageSize;
                this.ExportPageInfo1.intRecordCount = recordCount;
                this.ExportPageInfo1.CurrencyPage   = pageCurrent;
                this.ExportPageInfo1.PageLinkURL    = "/TeamService/ScatterPlanI.aspx?";
                //this.ExportPageInfo1.UrlParams = Request.QueryString;
                this.ExportPageInfo1.UrlParams.Add("travelDays", Utils.GetQueryStringValue("travelDays"));
                this.ExportPageInfo1.UrlParams.Add("lineId", queryModel.AreaId.ToString());
                this.ExportPageInfo1.UrlParams.Add("goCityId", Utils.GetQueryStringValue("goCityId"));
                this.ExportPageInfo1.UrlParams.Add("goCityName", Utils.GetQueryStringValue("goCityName"));
                this.ExportPageInfo1.UrlParams.Add("status", Utils.GetQueryStringValue("status"));
                this.ExportPageInfo1.UrlParams.Add("goTimeS", Utils.GetQueryStringValue("goTimeS"));
                this.ExportPageInfo1.UrlParams.Add("goTimeE", queryModel.EndLeaveDate.ToString("yyyy-MM-dd"));
                this.ExportPageInfo1.UrlParams.Add("keyWord", queryModel.TourKey);
            }
            else
            {
                //不存在列表数据
                pnlNodata.Visible       = true;
                ExportPageInfo1.Visible = false;
            }
        }
Beispiel #4
0
        /// <summary>
        /// 绑定散拼计划列表
        /// </summary>
        protected void BindLineList()
        {
            int    recordCount   = 0;
            string SearchKeyword = Utils.InputText(Request.QueryString["SearchKeyword"]);                               //关键字
            int    Line1         = EyouSoft.Common.Function.StringValidate.GetIntValue(Request.QueryString["Line1"]);   //专线国内国外周边
            int    Line2         = EyouSoft.Common.Function.StringValidate.GetIntValue(Request.QueryString["Line2"]);   //专线编号
            string BusinessLine  = Utils.GetQueryStringValue("BusinessLine");                                           //专线商
            string Departure     = Utils.InputText(Request.QueryString["Departure"]);                                   //出发地
            string StartDate     = Utils.InputText(Request.QueryString["StartDate"]);                                   //出团开始时间
            string EndDate       = Utils.InputText(Request.QueryString["EndDate"]);                                     //出团结束时间
            string PriceStart    = Utils.InputText(Request.QueryString["PriceStart"]);                                  //价格范围(开始)
            string PriceEnd      = Utils.InputText(Request.QueryString["PriceEnd"]);                                    //价格范围(结束)
            int    Themeid       = EyouSoft.Common.Function.StringValidate.GetIntValue(Request.QueryString["Themeid"]); //主题

            MPowderSearch SearchModel = new MPowderSearch();

            if (SearchKeyword != "")
            {
                SearchModel.TourKey = SearchKeyword;
            }
            if (Line1 > -1)
            {
                SearchModel.AreaType = (AreaType)Line1;
            }
            if (Line2 > 0)
            {
                SearchModel.AreaId = Line2;
            }
            if (BusinessLine != "0")
            {
                SearchModel.Publishers = BusinessLine;
            }
            if (!string.IsNullOrEmpty(Departure))
            {
                SearchModel.StartCityName = Departure;
            }
            if (!string.IsNullOrEmpty(StartDate))
            {
                SearchModel.LeaveDate = Convert.ToDateTime(StartDate);
            }
            if (!string.IsNullOrEmpty(EndDate))
            {
                SearchModel.EndLeaveDate = Convert.ToDateTime(EndDate);
            }
            if (!string.IsNullOrEmpty(PriceStart))
            {
                SearchModel.StartPrice = Convert.ToDecimal(PriceStart);
            }
            if (!string.IsNullOrEmpty(PriceEnd))
            {
                SearchModel.EndPrice = Convert.ToDecimal(PriceEnd);
            }
            if (Themeid > 0)
            {
                SearchModel.ThemeId = Themeid;
            }
            IList <MPowderList> listScenicArea = EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance().GetList(PageSize, PageIndex, ref recordCount, SearchModel);

            if (listScenicArea.Count > 0)
            {
                this.ExporPageInfoSelect1.intPageSize    = PageSize;
                this.ExporPageInfoSelect1.intRecordCount = recordCount;
                this.ExporPageInfoSelect1.CurrencyPage   = PageIndex;
                this.ExporPageInfoSelect1.HrefType       = Adpost.Common.ExporPage.HrefTypeEnum.JsHref;
                this.ExporPageInfoSelect1.AttributesEventAdd("onclick", "ScatteredfightManage.LoadData(this);", 1);
                this.ExporPageInfoSelect1.AttributesEventAdd("onchange", "ScatteredfightManage.LoadData(this);", 0);
                this.repList.DataSource = listScenicArea;
                this.repList.DataBind();
            }
            else
            {
                StringBuilder strEmptyText = new StringBuilder();
                strEmptyText.Append("<table width=\"98%\" border=\"1\" align=\"center\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#C7DEEB\" class=\"table_basic\">");
                strEmptyText.Append("<tr class=\"list_basicbg\">");
                strEmptyText.Append("<th align=\"middle\" nowrap=\"nowrap\">全选</th>");
                strEmptyText.Append("<th align=\"middle\" nowrap=\"nowrap\">团号</th>");
                strEmptyText.Append("<th align=\"middle\" nowrap=\"nowrap\">出发地</th><th align=\"middle\" nowrap=\"nowrap\">线路名称</th>");
                strEmptyText.Append("<th align=\"middle\" nowrap=\"nowrap\">发布单位</th><th align=\"middle\" nowrap=\"nowrap\">类型</th>");
                strEmptyText.Append("<th align=\"middle\" nowrap=\"nowrap\">出团日期</th align=\"middle\" nowrap=\"nowrap\"><th>报名截止</th>");
                strEmptyText.Append("<th align=\"middle\" nowrap=\"nowrap\">人数</th><th align=\"middle\" nowrap=\"nowrap\">余位</th>");
                strEmptyText.Append("<th align=\"middle\" nowrap=\"nowrap\">状态</th><th align=\"middle\" nowrap=\"nowrap\">成人价</th>");
                strEmptyText.Append("<th align=\"middle\" nowrap=\"nowrap\">儿童价</th><th align=\"middle\" nowrap=\"nowrap\">单房差</th>");
                strEmptyText.Append("<th align=\"middle\" nowrap=\"nowrap\">游客</th><th align=\"middle\" nowrap=\"nowrap\">功能</th>");
                strEmptyText.Append("<tr align='center'><td  align='center' colspan='20' height='100px'>暂无散拼计划</td></tr>");
                strEmptyText.Append("</tr>");
                strEmptyText.Append("<tr>");
                strEmptyText.Append(" <td align=\"center\"><input type=\"checkbox\" name=\"checkbox2\" id=\"checkbox22\" />");
                strEmptyText.Append("全选</td>");
                //strEmptyText.Append("<td colspan=\"15\" align=\"left\"><input type=\"submit\" name=\"button\" id=\"button\" value=\"统一修改团队行程\" /></td>");
                strEmptyText.Append(" </tr>");
                strEmptyText.Append("</table>");
                this.repList.EmptyText = strEmptyText.ToString();
            }
            //SearchModel = null;
            listScenicArea = null;
        }
Beispiel #5
0
 /// <summary>
 /// 获取散拼计划列表
 /// </summary>
 /// <param name="topNum">top数量(小于等于0取所有)</param>
 /// <param name="search">搜索实体</param>
 /// <param name="orderIndex">排序方式 0/1 出团时间降/升序</param>
 /// <returns>散拼计划列表</returns>
 public virtual IList <MPowderList> GetList(int topNum, MPowderSearch search, int orderIndex)
 {
     return(dal.GetList(topNum, search, orderIndex));
 }
Beispiel #6
0
 /// <summary>
 /// 分页获取散拼计划列表(运营后台)
 /// </summary>
 /// <param name="pageSize">每页记录数</param>
 /// <param name="pageCurrent">当前页</param>
 /// <param name="recordCount">总记录数</param>
 /// <param name="search">搜索实体</param>
 /// <returns>散拼计划列表</returns>
 public IList <MPowderList> GetList(int pageSize, int pageCurrent, ref int recordCount, MPowderSearch search)
 {
     return(dal.GetList(pageSize, pageCurrent, ref recordCount, 1, search));
 }
Beispiel #7
0
 /// <summary>
 /// 分页获取散拼计划列表(用户后台-组团社)
 /// </summary>
 /// <param name="pageSize">每页记录数</param>
 /// <param name="pageCurrent">当前页</param>
 /// <param name="recordCount">总记录数</param>
 /// <param name="AreaType">线路类型</param>
 /// <param name="cityId">商家所在城市</param>
 /// <param name="search">搜索实体</param>
 /// <returns>散拼计划列表</returns>
 public IList <MPowderList> GetList(int pageSize, int pageCurrent, ref int recordCount,
                                    Model.SystemStructure.AreaType AreaType, int cityId, MPowderSearch search)
 {
     return(dal.GetList(pageSize, pageCurrent, ref recordCount, AreaType, cityId, 2, search));
 }