Пример #1
0
        protected void BindTravelagencyList()
        {
            int recordCount = 0;
            int ProvinceId  = EyouSoft.Common.Function.StringValidate.GetIntValue(Request.QueryString["ProvinceId"]); //省份
            int CityId      = EyouSoft.Common.Function.StringValidate.GetIntValue(Request.QueryString["CityId"]);     //城市

            string CompanyName     = Utils.InputText(Request.QueryString["CompanyName"]);                             //单位名称
            string RecommendPerson = Utils.InputText(Request.QueryString["CommendName"]);                             //负责人

            EyouSoft.Model.CompanyStructure.QueryParamsAllCompany SearchModel = new EyouSoft.Model.CompanyStructure.QueryParamsAllCompany();
            SearchModel.PorvinceId        = ProvinceId;
            SearchModel.CityId            = CityId;
            SearchModel.CompanyName       = CompanyName;
            SearchModel.ContactName       = RecommendPerson;
            SearchModel.CompanyType       = EyouSoft.Model.CompanyStructure.CompanyType.组团;
            SearchModel.IsQueryOnlineUser = true;      //是否在线组团

            SearchModel.BusinessProperties = EyouSoft.Model.CompanyStructure.BusinessProperties.旅游社;

            IList <EyouSoft.Model.CompanyStructure.CompanyDetailInfo> CompanyList = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetListChecked(SearchModel, PageSize, PageIndex, ref recordCount);

            if (CompanyList != null && CompanyList.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", "LineTravelagencyData.LoadData(this);", 1);
                this.ExporPageInfoSelect1.AttributesEventAdd("onchange", "LineTravelagencyData.LoadData(this);", 0);
                this.crpTravelagencyList.DataSource = CompanyList;
                this.crpTravelagencyList.DataBind();
            }
            else
            {
                StringBuilder strEmptyText = new StringBuilder();
                strEmptyText.Append("<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"1\" class=\"kuang\">");
                strEmptyText.Append("<tr background=\"" + ImageServerUrl + "/images/yunying/hangbg.gif\" class=\"white\" height=\"23\">");
                strEmptyText.AppendFormat("<td width=\"5%\" height=\"23\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>序号</strong> </td> <td width=\"7%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>单位名称</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"18%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>联系人</strong></td><td width=\"10%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>手机</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"12%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"><strong>电话</strong></td><td width=\"13%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\">  <strong>QQ/MSN</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>登录时间</strong></td><td width=\"11%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>登录总次数</strong></td>", ImageServerUrl);
                strEmptyText.Append("<tr class=\"huanghui\" ><td  align='center' colspan='10' height='100px'>暂无组团社信息</td></tr>");
                strEmptyText.Append("</tr>");
                strEmptyText.Append("<tr background=\"" + ImageServerUrl + "/images/yunying/hangbg.gif\" class=\"white\" height=\"23\">");
                strEmptyText.AppendFormat("<td width=\"5%\" height=\"23\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>序号</strong> </td> <td width=\"7%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>单位名称</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"18%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>联系人</strong></td><td width=\"10%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>手机</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"12%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"><strong>电话</strong></td><td width=\"13%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\">  <strong>QQ/MSN</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>登录时间</strong></td><td width=\"11%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>登录总次数</strong></td>", ImageServerUrl);
                strEmptyText.Append("</tr>");
                strEmptyText.Append("</table>");
                this.crpTravelagencyList.EmptyText = strEmptyText.ToString();
            }
            SearchModel = null;
            CompanyList = null;
        }
Пример #2
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void InitPage(int provinceid, int cityid, string comname, string companytype)
        {
            int intRecordCount = 0;

            intPageIndex = Utils.GetInt(Utils.InputText(Request.QueryString["Page"]), 1);
            EyouSoft.Model.CompanyStructure.QueryParamsAllCompany QueryModel = new EyouSoft.Model.CompanyStructure.QueryParamsAllCompany();
            QueryModel.PorvinceId = provinceid;
            ProvinceAndCityList1.SetProvinceId = QueryModel.PorvinceId;

            QueryModel.CityId = cityid;
            ProvinceAndCityList1.SetCityId = QueryModel.CityId;

            if (!string.IsNullOrEmpty(companytype))
            {
                // intPageIndex = 1;
            }
            else
            {
                if (!string.IsNullOrEmpty(Request.QueryString["CompanyType"]))
                {
                    companytype = Request.QueryString["CompanyType"];
                }
                else
                {
                    companytype = "全部";
                }
            }
            QueryModel.CompanyType = (EyouSoft.Model.CompanyStructure.CompanyType)Enum.Parse(typeof(EyouSoft.Model.CompanyStructure.CompanyType), companytype);

            QueryModel.CompanyName   = comname;
            CompanyName              = comname;
            this.ddlCompanyType.Text = companytype;
            IList <EyouSoft.Model.CompanyStructure.CompanyDetailInfo> lists = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetListChecked(QueryModel, intPageSize, intPageIndex, ref intRecordCount);

            if (lists != null && lists.Count > 0)
            {
                rptQueryTour.DataSource = lists;
                rptQueryTour.DataBind();
                this.ExportPageInfo1.intPageSize          = intPageSize;
                this.ExportPageInfo1.intRecordCount       = intRecordCount;
                this.ExportPageInfo1.CurrencyPage         = intPageIndex;
                this.ExportPageInfo1.CurrencyPageCssClass = "RedFnt";
                this.ExportPageInfo1.UrlParams            = Request.QueryString;
                this.ExportPageInfo1.PageLinkURL          = "CompanyListSelect.aspx?";
                this.ExportPageInfo1.LinkType             = 3;
            }
            ProvinceAndCityList1.SetCityId     = QueryModel.CityId;
            ProvinceAndCityList1.SetProvinceId = QueryModel.PorvinceId;
            lists      = null;
            QueryModel = null;
            if (rptQueryTour.Items.Count < 1)
            {
                Literal1.Text = "暂无公司可以选择!";
            }
        }
Пример #3
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void InitPage()
        {
            EyouSoft.Model.CompanyStructure.QueryParamsAllCompany QueryModel = new EyouSoft.Model.CompanyStructure.QueryParamsAllCompany();
            if (Request.QueryString["Province"] != null)
            {
                QueryModel.PorvinceId = Utils.GetInt(Request.QueryString["Province"]);
                ProvinceAndCityList1.SetProvinceId = QueryModel.PorvinceId;
            }
            else
            {
                QueryModel.PorvinceId = 0;
            }
            if (Request.QueryString["City"] != null)
            {
                QueryModel.CityId = Utils.GetInt(Request.QueryString["City"]);
                ProvinceAndCityList1.SetCityId = QueryModel.CityId;
            }
            else
            {
                QueryModel.CityId = 0;
            }
            AeraID = Utils.GetQueryStringValue("AeraID");
            if (Utils.GetInt(AeraID) > 0)
            {
                QueryModel.AreaId = Utils.GetInt(AeraID);
            }
            intPageIndex           = Utils.GetInt(Request.QueryString["Page"], 1);
            CompanyName            = Utils.GetQueryStringValue("CompanyName");
            QueryModel.CompanyName = CompanyName;
            QueryModel.CompanyType = Utils.GetQueryStringValue("comType") == "1" ? EyouSoft.Model.CompanyStructure.CompanyType.专线 : EyouSoft.Model.CompanyStructure.CompanyType.地接;
            EyouSoft.IBLL.CompanyStructure.ICompanyInfo Ibll = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();

            IList <EyouSoft.Model.CompanyStructure.CompanyInfo> lists = Ibll.GetListTourAgency(QueryModel, intPageSize, intPageIndex, ref intRecordCount);//(QueryModel, intPageSize, intPageIndex, ref intRecordCount);

            rptQueryTour.DataSource = lists;
            rptQueryTour.DataBind();
            this.ExportPageInfo1.intPageSize    = intPageSize;
            this.ExportPageInfo1.intRecordCount = intRecordCount;
            this.ExportPageInfo1.CurrencyPage   = intPageIndex;
            this.ExportPageInfo1.PageLinkURL    = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
            this.ExportPageInfo1.UrlParams      = Request.QueryString;
            if (rptQueryTour.Items.Count < 1)
            {
                Literal1.Text = "暂无" + QueryModel.CompanyType.ToString() + "可以选择!";
            }
            Ibll       = null;
            lists      = null;
            QueryModel = null;
            lists      = null;
        }
Пример #4
0
        private void BindTravelagencyList()
        {
            int recordCount = 0;

            string CompanyType = Request.QueryString["CompanyType"];

            EyouSoft.Model.CompanyStructure.CompanyType TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.全部;

            switch (CompanyType)
            {
            case "1":
                TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.专线;
                break;

            case "2":
                TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.组团;
                break;

            case "3":
                TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.地接;
                break;
            }
            string CompanyName = Utils.InputText(Request.QueryString["CompanyName"]);

            EyouSoft.Model.CompanyStructure.QueryParamsAllCompany SearchModel = new EyouSoft.Model.CompanyStructure.QueryParamsAllCompany();
            SearchModel.CompanyName       = CompanyName;
            SearchModel.CompanyType       = TypeEmnu;
            SearchModel.IsQueryOnlineUser = null;


            SearchModel.BusinessProperties = EyouSoft.Model.CompanyStructure.BusinessProperties.旅游社;

            IList <EyouSoft.Model.CompanyStructure.CompanyDetailInfo> CompanyList = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetListChecked(SearchModel, PageSize, PageIndex, ref recordCount);

            if (CompanyList != null && CompanyList.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", "CompanyManage.LoadData(this);", 1);
                this.ExporPageInfoSelect1.AttributesEventAdd("onchange", "CompanyManage.LoadData(this);", 0);
                this.repCompanyList.DataSource = CompanyList;
                this.repCompanyList.DataBind();
            }
            else
            {
                StringBuilder strEmptyText = new StringBuilder();
                strEmptyText.Append("<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"1\" class=\"kuang\">");
                strEmptyText.Append("<tr background=\"" + ImageServerUrl + "/images/yunying/hangbg.gif\" class=\"white\" height=\"23\">");
                strEmptyText.AppendFormat("<td width=\"5%\" height=\"23\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>序号</strong> </td> <td width=\"7%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>单位名称</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"18%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>联系人</strong></td><td width=\"10%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>手机</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"12%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"><strong>电话</strong></td><td width=\"13%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\">  <strong>QQ/MSN</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>最后登录时间</strong></td><td width=\"11%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>登录次数</strong></td>", ImageServerUrl);
                strEmptyText.Append("<tr class=\"huanghui\" ><td  align='center' colspan='10' height='100px'>暂无零售商历史登录记录信息</td></tr>");
                strEmptyText.Append("</tr>");
                strEmptyText.Append("<tr background=\"" + ImageServerUrl + "/images/yunying/hangbg.gif\" class=\"white\" height=\"23\">");
                strEmptyText.AppendFormat("<td width=\"5%\" height=\"23\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>序号</strong> </td> <td width=\"7%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>单位名称</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"18%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>联系人</strong></td><td width=\"10%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>手机</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"12%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"><strong>电话</strong></td><td width=\"13%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\">  <strong>QQ/MSN</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>最后登录时间</strong></td><td width=\"11%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>登录次数</strong></td>", ImageServerUrl);
                strEmptyText.Append("</tr>");
                strEmptyText.Append("</table>");
                this.repCompanyList.EmptyText = strEmptyText.ToString();
            }
            SearchModel = null;
            CompanyList = null;
        }
Пример #5
0
        /// <summary>
        /// 绑定线路区域下的5个广告位及团队信息
        /// </summary>
        protected void BindCompanyAndTour()
        {
            int    recordCount = 0;
            string SearchType  = Request.QueryString["SearchType"];
            int    intSearchId = 0;
            string SearchId    = Request.QueryString["Id"];

            intSearchId = EyouSoft.Common.Function.StringValidate.GetIntValue(SearchId);

            StringBuilder strEmpty       = new StringBuilder();
            string        ErrorInfo      = "";
            int?          SearchTourArea = null;

            if (TourAreaId > 0)
            {
                EyouSoft.Model.SystemStructure.SysArea Model = EyouSoft.BLL.SystemStructure.SysArea.CreateInstance().GetSysAreaModel(TourAreaId);
                if (Model != null)
                {
                    ErrorInfo += "“" + Model.AreaName + "”";
                    this.hidRourName.Value = Model.AreaName;
                    strRourListName        = Model.AreaName;
                }
                Model          = null;
                SearchTourArea = TourAreaId;
            }

            EyouSoft.Model.CompanyStructure.QueryParamsAllCompany CompanySearch = new EyouSoft.Model.CompanyStructure.QueryParamsAllCompany();
            CompanySearch.CityId = CityId;
            CompanySearch.AreaId = TourAreaId;
            IList <EyouSoft.Model.CompanyStructure.CompanyPicTxt> CompanyList = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetListCityAreaAdvRouteAgency(CompanySearch);
            StringBuilder StrCompanyList = new StringBuilder();

            if (CompanyList != null && CompanyList.Count > 0)
            {
                int CompanyCount = CompanyList.Count;
                for (int i = 0; i < CompanyList.Count; i++)
                {
                    bool   isSelect    = false;
                    string classNmae   = "pingpaibg";
                    string strisSelect = " onmouseout=\"this.style.border='1px solid #ccc'\" onmouseover=\"this.style.border='1px  solid #FFAE78'\"";
                    if (SearchType != null && SearchType.Equals("Company", StringComparison.OrdinalIgnoreCase))
                    {
                        if (CompanyList[i].ID == SearchId)
                        {
                            isSelect   = true;
                            ErrorInfo += "“" + CompanyList[i].CompanyName + "”";
                            //strEmpty.AppendFormat("“{0}”", CompanyList[i].CompanyName);
                            strisSelect = "";
                            classNmae   = "pingpaibgon";
                        }
                    }

                    StrCompanyList.AppendFormat("<li {0} ><div " + strisSelect + ">", isSelect ? " class=\"active\" " : "");
                    StrCompanyList.AppendFormat("<a href=\"{0}\"><img src=\"{1}\" width=\"114\" height=\"50\" border=\"0\" /></a>", "/TourManage/TourList.aspx?CityId=" + CityId + "&TourAreaId=" + TourAreaId + "&SearchType=Company&Id=" + CompanyList[i].ID, CompanyList[i].CompanyLogo.ImagePath != "" ? EyouSoft.Common.Domain.FileSystem + CompanyList[i].CompanyLogo.ImagePath : EyouSoft.Common.Utils.NoLogoImage100_55);
                    StrCompanyList.AppendFormat("<a href=\"{0}\"><p>{1}</p></a></div></li>", "/TourManage/TourList.aspx?CityId=" + CityId + "&TourAreaId=" + TourAreaId + "&SearchType=Company&Id=" + CompanyList[i].ID, CompanyList[i].CompanyName);
                }
            }
            CompanyList   = null;
            CompanySearch = null;


            FiveCompany = StrCompanyList.ToString();



            IList <EyouSoft.Model.TourStructure.TourBasicInfo> TourList = new List <EyouSoft.Model.TourStructure.TourBasicInfo>();

            if (!string.IsNullOrEmpty(SearchType))
            {
                //按主题类型
                if (SearchType.Equals("Theme", StringComparison.OrdinalIgnoreCase))
                {
                    TourList = EyouSoft.BLL.TourStructure.Tour.CreateInstance().GetToursByRouteTheme(PageSize, PageIndex, ref recordCount, CityId, SearchTourArea, intSearchId, false, true);
                }
                //按价格区间
                else if (SearchType.Equals("Price", StringComparison.OrdinalIgnoreCase))
                {
                    int?   MinPrice  = null;
                    int?   MaxPrice  = null;
                    string PriceType = "之间";
                    switch (SearchId)
                    {
                    case "1":
                        MinPrice = 1;
                        MaxPrice = 300;
                        break;

                    case "2":
                        MinPrice = 300;
                        MaxPrice = 800;
                        break;

                    case "3":
                        MinPrice = 800;
                        MaxPrice = 1600;
                        break;

                    case "4":
                        MinPrice = 1600;
                        MaxPrice = 3000;
                        break;

                    case "5":
                        MinPrice = 3000;
                        MaxPrice = 6000;
                        break;

                    case "6":
                        MinPrice  = 6000;
                        PriceType = "以上";
                        break;
                    }
                    TourList = EyouSoft.BLL.TourStructure.Tour.CreateInstance().GetToursByPriceRange(PageSize, PageIndex, ref recordCount, CityId, SearchTourArea, MinPrice, MaxPrice, false, true);
                    if (MinPrice != null || MaxPrice != null)
                    {
                        StringBuilder strPrice = new StringBuilder();
                        strPrice.AppendFormat("“价格在{0}{3}{1}{2}”", MinPrice == null ? "" : MinPrice.ToString(), MaxPrice == null ? "" : MaxPrice.ToString(), PriceType, PriceType == "之间" ? "-" : "");
                        ErrorInfo += strPrice.ToString();
                        strPrice   = null;
                    }
                }
                //按行程天数
                else if (SearchType.Equals("Day", StringComparison.OrdinalIgnoreCase))
                {
                    int DaysType = 0;
                    if (intSearchId == 5)
                    {
                        DaysType = 1;
                    }
                    if (intSearchId == 8) //首页5日游查询
                    {
                        intSearchId = 5;
                    }

                    TourList = EyouSoft.BLL.TourStructure.Tour.CreateInstance().GetToursByTourDays(PageSize, PageIndex, ref recordCount, CityId, SearchTourArea, DaysType, intSearchId, false, true);
                    if (intSearchId > 0)
                    {
                        StringBuilder strDays = new StringBuilder();
                        strDays.AppendFormat("“{0}”", intSearchId == 5 ? "5日游及以上" : intSearchId.ToString() + "日游");
                        ErrorInfo += strDays.ToString();
                        strDays    = null;
                    }
                }
                //按公司单位
                else if (SearchType.Equals("Company", StringComparison.OrdinalIgnoreCase))
                {
                    TourList = EyouSoft.BLL.TourStructure.Tour.CreateInstance().GetToursByCompanyId(PageSize, PageIndex, ref recordCount, CityId, SearchTourArea, SearchId, false, true);
                }
                else if (SearchType.Equals("More", StringComparison.OrdinalIgnoreCase))
                {
                    string RouteName = Utils.InputText(Request.QueryString["RouteName"]);
                    int    intDays   = 0;
                    string strDays   = Utils.InputText(Request.QueryString["Days"]);
                    if (!string.IsNullOrEmpty(strDays) && EyouSoft.Common.Function.StringValidate.IsInteger(strDays))
                    {
                        intDays = Convert.ToInt32(strDays);
                    }
                    int?SearchDay = null;
                    if (intDays > 0)
                    {
                        SearchDay = intDays;
                    }
                    string   CompanyName  = Utils.InputText(Request.QueryString["CompanyName"]);
                    DateTime?StartDate    = null;
                    string   strStartDate = Utils.InputText(Request.QueryString["StartDate"]);
                    if (!string.IsNullOrEmpty(strStartDate) && EyouSoft.Common.Function.StringValidate.IsDateTime(strStartDate))
                    {
                        StartDate = Convert.ToDateTime(strStartDate);
                    }
                    DateTime?EndDate    = null;
                    string   strEndDate = Utils.InputText(Request.QueryString["EndDate"]);
                    if (!string.IsNullOrEmpty(strEndDate) && EyouSoft.Common.Function.StringValidate.IsDateTime(strEndDate))
                    {
                        EndDate = Convert.ToDateTime(strEndDate);
                    }
                    TourList = EyouSoft.BLL.TourStructure.Tour.CreateInstance().GetTours(PageSize, PageIndex, ref recordCount, CityId, SearchTourArea, RouteName, SearchDay, CompanyName, StartDate, EndDate, false, true);
                    if (!string.IsNullOrEmpty(RouteName))
                    {
                        ErrorInfo += "“" + RouteName + "”";
                    }
                    if (intDays > 0)
                    {
                        ErrorInfo += "“" + intDays + "天”";
                    }
                    if (!string.IsNullOrEmpty(CompanyName))
                    {
                        ErrorInfo += "“" + CompanyName + "”";
                    }
                    if (StartDate != null)
                    {
                        ErrorInfo += "“" + Convert.ToDateTime(StartDate).ToShortDateString() + "”";
                    }
                    if (EndDate != null)
                    {
                        ErrorInfo += "“" + Convert.ToDateTime(EndDate).ToShortDateString() + "”";
                    }
                }
            }
            else
            {
                TourList = EyouSoft.BLL.TourStructure.Tour.CreateInstance().GetTours(PageSize, PageIndex, ref recordCount, CityId, SearchTourArea, false, true);
            }

            if (TourList != null && TourList.Count > 0)
            {
                this.ExporPageInfoSelect1.intPageSize    = PageSize;
                this.ExporPageInfoSelect1.intRecordCount = recordCount;
                this.ExporPageInfoSelect1.CurrencyPage   = PageIndex;


                if (EyouSoft.Common.URLREWRITE.UrlReWriteUtils.IsReWriteUrl(Request))
                {
                    //是否重写 分页的链接
                    this.ExporPageInfoSelect1.IsUrlRewrite = true;
                    //设置需要替换的值
                    this.ExporPageInfoSelect1.Placeholder = "#PageIndex#";
                    //获得线路的url 赋值给分页控件
                    this.ExporPageInfoSelect1.PageLinkURL = EyouSoft.Common.URLREWRITE.UrlReWriteUtils.GetUrlForPage(Request) + "_#PageIndex#";
                }
                else
                {
                    this.ExporPageInfoSelect1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
                    this.ExporPageInfoSelect1.UrlParams   = Request.QueryString;
                }



                this.repTourList.DataSource = TourList;
                this.repTourList.DataBind();
            }
            else
            {
                strEmpty.Append("<div class=\"noresult\" >");
                if (!string.IsNullOrEmpty(SearchType))
                {
                    //按主题类型
                    if (SearchType.Equals("Theme", StringComparison.OrdinalIgnoreCase))
                    {
                        string RouteTypeName = EyouSoft.BLL.SystemStructure.SysField.CreateInstance().GetFieldNameById(intSearchId, EyouSoft.Model.SystemStructure.SysFieldType.线路主题);
                        if (!string.IsNullOrEmpty(RouteTypeName))
                        {
                            ErrorInfo += "“" + RouteTypeName + "”";
                        }
                    }
                }
                strEmpty.Append("<div class=\"p1\"><h3><span class='timg'><img src='" + ImageServerUrl + "/images/UserPublicCenter/paoqian.gif' /></span><span>抱歉,在" + ErrorInfo + "没有找到相关的结果!</span></h3></div>");
                strEmpty.Append("<div class=\"p2\"><a href=\"" + EyouSoft.Common.Domain.UserBackCenter + "/routeagency/addquicktour.aspx\"><img src=\"" + ImageServerUrl + "/images/new2011/xianlu/nobg_07.gif\" alt=\"我要添加产品\"/></a></div>");
                strEmpty.Append("<div class=\"p3\"><b>建议你:</b><br />");
                strEmpty.Append("·适当删减或更改关键词试试<br /> ·看看输入的文字是否有错别字<br />·如关键词中含有城市名,去掉城市名试试 <br />·换个分类搜索试试");
                strEmpty.Append("</div>");
                strAllEmpty = strEmpty.ToString();
                this.ExporPageInfoSelect1.Visible = false;
                this.repTourList.EmptyText        = strAllEmpty;
            }
            TourList = null;
        }
Пример #6
0
        private void BindLoginRecordList()
        {
            int      recordCount = 0;
            DateTime?startDate   = null;
            DateTime?EndDate     = null;
            string   CompanyName = Utils.InputText(Request.QueryString["CompanyName"]);//单位名称


            string date = Request.QueryString["StartDate"];

            if (StringValidate.IsDateTime(date))
            {
                startDate = Convert.ToDateTime(date); //开始时间
            }
            date = Request.QueryString["EndDate"];    //结束时间
            if (StringValidate.IsDateTime(date))
            {
                EndDate = Convert.ToDateTime(date);
            }

            EyouSoft.Model.CompanyStructure.QueryParamsAllCompany SearchModel = new EyouSoft.Model.CompanyStructure.QueryParamsAllCompany();

            SearchModel.CompanyName       = CompanyName;
            SearchModel.IsQueryOnlineUser = null;
            SearchModel.LoginStartDate    = startDate;
            SearchModel.LoginEndDate      = EndDate;

            IList <EyouSoft.Model.CompanyStructure.CompanyDetailInfo> LoginRecordList =
                EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetListChecked(SearchModel, PageSize, PageIndex, ref recordCount);

            if (LoginRecordList != null && LoginRecordList.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", "LoginRecordData.LoadData(this);", 1);
                this.ExporPageInfoSelect1.AttributesEventAdd("onchange", "LoginRecordData.LoadData(this);", 0);
                if (startDate != null || EndDate != null)
                {
                    for (int i = 0; i < LoginRecordList.Count; i++)
                    {
                        //登录次数
                        LoginRecordList[i].StateMore.LoginCount = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance()
                                                                  .GetLoginCountByTime(LoginRecordList[i].ID, startDate, EndDate);
                    }
                }
                this.crpLoginRecordList.DataSource = LoginRecordList;
                this.crpLoginRecordList.DataBind();
            }
            else
            {
                StringBuilder strEmptyText = new StringBuilder();
                strEmptyText.Append("<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"1\" class=\"kuang\">");
                strEmptyText.Append("<tr background=\"" + ImageServerUrl + "/images/yunying/hangbg.gif\" class=\"white\" height=\"23\">");
                strEmptyText.AppendFormat("<td width=\"5%\" height=\"23\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>序号</strong> </td> <td width=\"7%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>单位名称</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"18%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>联系人</strong></td><td width=\"10%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>手机</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"12%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"><strong>电话</strong></td><td width=\"13%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\">  <strong>QQ/MSN</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>最后登录时间</strong></td><td width=\"11%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>登录次数</strong></td>", ImageServerUrl);
                strEmptyText.Append("<tr class=\"huanghui\" ><td  align='center' colspan='10' height='100px'>暂无零售商历史登录记录</td></tr>");
                strEmptyText.Append("</tr>");
                strEmptyText.Append("<tr background=\"" + ImageServerUrl + "/images/yunying/hangbg.gif\" class=\"white\" height=\"23\">");
                strEmptyText.AppendFormat("<td width=\"5%\" height=\"23\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>序号</strong> </td> <td width=\"7%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>单位名称</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"18%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>联系人</strong></td><td width=\"10%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>手机</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"12%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"><strong>电话</strong></td><td width=\"13%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\">  <strong>QQ/MSN</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>最后登录时间</strong></td><td width=\"11%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>登录次数</strong></td>", ImageServerUrl);
                strEmptyText.Append("</tr>");
                strEmptyText.Append("</table>");
                this.crpLoginRecordList.EmptyText = strEmptyText.ToString();
            }
            LoginRecordList = null;
        }
Пример #7
0
        /// <summary>
        /// 初始化旅行社列表
        /// </summary>
        protected void BindCompanyList()
        {
            int recordCount = 0;
            int ProvinceId  = EyouSoft.Common.Function.StringValidate.GetIntValue(Request.QueryString["ProvinceId"]);
            int CityId      = EyouSoft.Common.Function.StringValidate.GetIntValue(Request.QueryString["CityId"]);

            string CompanyType = Request.QueryString["CompanyType"];

            EyouSoft.Model.CompanyStructure.CompanyType TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.全部;

            switch (CompanyType)
            {
            case "1":
                TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.专线;
                break;

            case "2":
                TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.组团;
                break;

            case "3":
                TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.地接;
                break;
            }
            string CompanyName     = Utils.InputText(Request.QueryString["CompanyName"]);
            string RecommendPerson = Utils.InputText(Request.QueryString["RecommendPerson"]);

            EyouSoft.Model.CompanyStructure.QueryParamsAllCompany SearchModel = new EyouSoft.Model.CompanyStructure.QueryParamsAllCompany();
            SearchModel.PorvinceId         = ProvinceId;
            SearchModel.CityId             = CityId;
            SearchModel.CompanyName        = CompanyName;
            SearchModel.CommendName        = RecommendPerson;
            SearchModel.CompanyType        = TypeEmnu;
            SearchModel.BusinessProperties = EyouSoft.Model.CompanyStructure.BusinessProperties.旅游社;
            SearchModel.Username           = Utils.InputText(Request.QueryString["username"]);
            SearchModel.ContactName        = Utils.InputText(Request.QueryString["contactName"]);

            IList <EyouSoft.Model.CompanyStructure.CompanyDetailInfo> CompanyList = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetListChecked(SearchModel, PageSize, PageIndex, ref recordCount);

            if (CompanyList != null && CompanyList.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", "CompanyManage.LoadData(this);", 1);
                this.ExporPageInfoSelect1.AttributesEventAdd("onchange", "CompanyManage.LoadData(this);", 0);
                this.repCompanyList.DataSource = CompanyList;
                this.repCompanyList.DataBind();
            }
            else
            {
                StringBuilder strEmptyText = new StringBuilder();
                strEmptyText.Append("<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"1\" class=\"kuang\">");
                strEmptyText.Append("<tr background=\"" + ImageServerUrl + "/images/yunying/hangbg.gif\" class=\"white\" height=\"23\">");
                strEmptyText.AppendFormat("<td width=\"5%\" height=\"23\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>序号</strong> </td> <td width=\"7%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>经营范围</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"18%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>经营范围</strong></td><td width=\"10%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>产品销售城市</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"12%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"><strong>产品区域</strong></td><td width=\"13%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\">  <strong>联系方式</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>证书</strong></td><td width=\"11%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>收费项目</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"4%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>登录</strong> </td><td width=\"8%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>加入时间</strong></td>", ImageServerUrl);
                strEmptyText.Append("<tr class=\"huanghui\" ><td  align='center' colspan='10' height='100px'>暂无旅行社信息</td></tr>");
                strEmptyText.Append("</tr>");
                strEmptyText.Append("<tr background=\"" + ImageServerUrl + "/images/yunying/hangbg.gif\" class=\"white\" height=\"23\">");
                strEmptyText.AppendFormat("<td width=\"5%\" height=\"23\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>序号</strong> </td> <td width=\"7%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>经营范围</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"18%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>单位名称</strong></td><td width=\"10%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>产品销售城市</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"12%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"><strong>产品区域</strong></td><td width=\"13%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\">  <strong>联系方式</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>证书</strong></td><td width=\"11%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>收费项目</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"4%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>登录</strong> </td><td width=\"8%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>加入时间</strong></td>", ImageServerUrl);
                strEmptyText.Append("</tr>");
                strEmptyText.Append("</table>");
                this.repCompanyList.EmptyText = strEmptyText.ToString();
            }
            SearchModel = null;
            CompanyList = null;
        }
Пример #8
0
        /// <summary>
        /// 绑定公司列表
        /// </summary>
        protected void BindList()
        {
            int recordCount = 0;
            int ProvinceId  = Utils.GetInt(Request.QueryString["ProvinceId"]);
            int CityId      = Utils.GetInt(Request.QueryString["CityId"]);

            EyouSoft.Model.CompanyStructure.CompanyType TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.景区;
            string strMessage = "暂无景区会员信息";

            switch (CompanyType)
            {
            case 2:
                TypeEmnu   = EyouSoft.Model.CompanyStructure.CompanyType.酒店;
                strMessage = "暂无酒店会员信息";
                break;

            case 3:
                TypeEmnu   = EyouSoft.Model.CompanyStructure.CompanyType.车队;
                strMessage = "暂无车队会员信息";
                break;

            case 4:
                TypeEmnu   = EyouSoft.Model.CompanyStructure.CompanyType.旅游用品店;
                strMessage = "暂无旅游用品会员信息";
                break;

            case 5:
                TypeEmnu   = EyouSoft.Model.CompanyStructure.CompanyType.购物店;
                strMessage = "暂无购物点会员信息";
                break;

            case 6:
                TypeEmnu   = EyouSoft.Model.CompanyStructure.CompanyType.机票供应商;
                strMessage = "暂无机票供应商会员信息";
                break;

            case 7:
                TypeEmnu   = EyouSoft.Model.CompanyStructure.CompanyType.其他采购商;
                strMessage = "暂无其他采购商会员信息";
                break;

            case 11:
                TypeEmnu   = EyouSoft.Model.CompanyStructure.CompanyType.随便逛逛;
                strMessage = "暂无随便逛逛会员信息";
                break;
            }
            string CompanyName = Server.UrlDecode(Utils.InputText(Request.QueryString["CompanyName"]));

            EyouSoft.Model.CompanyStructure.QueryParamsAllCompany SearchModel = new EyouSoft.Model.CompanyStructure.QueryParamsAllCompany();
            SearchModel.PorvinceId  = ProvinceId;
            SearchModel.CityId      = CityId;
            SearchModel.CompanyName = CompanyName;
            SearchModel.CompanyType = TypeEmnu;
            SearchModel.Username    = Utils.InputText(Request.QueryString["username"]);
            SearchModel.ContactName = Utils.InputText(Request.QueryString["contactName"]);

            IList <EyouSoft.Model.CompanyStructure.CompanyDetailInfo> CompanyList = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetListChecked(SearchModel, PageSize, PageIndex, ref recordCount);

            if (CompanyList != null && CompanyList.Count > 0)
            {
                this.ExportPageInfo1.intPageSize    = PageSize;
                this.ExportPageInfo1.intRecordCount = recordCount;
                this.ExportPageInfo1.CurrencyPage   = PageIndex;
                this.ExportPageInfo1.PageLinkURL    = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
                this.ExportPageInfo1.UrlParams      = Request.QueryString;
                this.repCompanyList.DataSource      = CompanyList;
                this.repCompanyList.DataBind();
            }
            else
            {
                StringBuilder strEmptyText = new StringBuilder();
                strEmptyText.Append("<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"1\" class=\"kuang\">");
                strEmptyText.Append("<tr background=\"" + ImageServerUrl + "/images/yunying/hangbg.gif\" class=\"white\" height=\"23\">");
                strEmptyText.AppendFormat("<td width=\"7%\" height=\"23\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>序号</strong> </td> ", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"18%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"><strong>单位名称</strong></td><td width=\"10%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\">  <strong>地区</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td align=\"center\"  width=\"13%\"  background=\"{0}/images/yunying/hangbg.gif\"> <strong>联系方式</strong></td><td width=\"11%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>收费项目</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"4%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>登录次数</strong> </td><td width=\"8%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>加入时间</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<tr class=\"huanghui\" ><td  align='center' colspan='10' height='100px'>{0}</td></tr>", strMessage);
                strEmptyText.Append("</tr>");
                strEmptyText.Append("<tr background=\"" + ImageServerUrl + "/images/yunying/hangbg.gif\" class=\"white\" height=\"23\">");
                strEmptyText.AppendFormat("<td width=\"7%\" height=\"23\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>序号</strong> </td> ", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"18%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"><strong>单位名称</strong></td><td width=\"10%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\">  <strong>地区</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td align=\"center\"  width=\"13%\"  background=\"{0}/images/yunying/hangbg.gif\"> <strong>联系方式</strong></td><td width=\"11%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>收费项目</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"4%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>登录次数</strong> </td><td width=\"8%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>加入时间</strong></td>", ImageServerUrl);
                strEmptyText.Append("</tr>");
                strEmptyText.Append("</table>");
                this.repCompanyList.EmptyText = strEmptyText.ToString();
            }
            SearchModel = null;
            CompanyList = null;
        }