Exemplo n.º 1
0
        private void RouteSearchWithOption()
        {
            MRouteSearchOption m_RouteSearchOption = new MRouteSearchOption();

            m_RouteSearchOption.AvoidanceType = 1;   //1:区域避让2:名称避让 3 :表示区域避让和名称避让。
            m_RouteSearchOption.Ext           = "1"; /// 当 ext=0 时,表示不返回途经城市;当 ext=1 时,表示返回途经城市列表,城市做排重处理;当 ext=2 时,表示返回途经城市列表,城市不做排重处理。
            m_RouteSearchOption.Name          = "";  //起终点:石碑胡同 避让的一条到路名:
            m_RouteSearchOption.Per           = 50;
            //  m_RouteSearchOption.Region = "116.388054,39.90539;116.3881,39.905743";

            m_RouteSearchOption.Config    = "R";//路径导航时,config=R ,当查询导航路径距离时,config=CDR
            m_RouteSearchOption.Encode    = "GBK";
            m_RouteSearchOption.RouteType = 0;


            m_RouteSearchOption.X1 = start.LngX;
            m_RouteSearchOption.Y1 = start.LatY;
            m_RouteSearchOption.X2 = end.LngX;
            m_RouteSearchOption.Y2 = end.LatY;
            m_RouteSearchOption.Xs = new double[0] {
            };
            m_RouteSearchOption.Ys = new double[0] {
            };
            MRouteSearch.RouteSearchWithOption(m_RouteSearchOption, CallBack);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 初始化页面
        /// </summary>
        private void InitPage()
        {
            MRouteSearch queryModel = new MRouteSearch();

            queryModel.RouteSource = RouteSource.地接社添加;
            int intPageSize    = 7;
            int intRecordCount = 0;
            int intPageindex   = Utils.GetInt(Utils.GetQueryStringValue("Page"), 1);
            IList <EyouSoft.Model.NewTourStructure.MRoute> RouteList =
                EyouSoft.BLL.NewTourStructure.BRoute.CreateInstance().GetBackCenterList(intPageSize, intPageindex, ref intRecordCount, this.SiteUserInfo.CompanyID, queryModel);

            if (RouteList.Count > 0 && RouteList != null)
            {
                this.rptRoutes.DataSource = RouteList;
                this.rptRoutes.DataBind();
                this.ExporPageInfoSelect2.PageLinkCount  = 7;
                ExporPageInfoSelect2.CurrencyPage        = intPageindex;
                this.ExporPageInfoSelect2.HrefType       = Adpost.Common.ExporPage.HrefTypeEnum.JsHref;
                this.ExporPageInfoSelect2.intPageSize    = intPageSize;
                this.ExporPageInfoSelect2.intRecordCount = intRecordCount;
                this.ExporPageInfoSelect2.AttributesEventAdd("onclick", "LoadData(this)", 1);
                RouteList = null;
            }
            else
            {
                rptRoutes.Visible   = false;
                this.NoData.Visible = true;
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// 初始化线路列表
        /// </summary>
        private void InitRouteList()
        {
            //记录条数
            int intRecordCount = 0;

            //页码
            CurrencyPage = Utils.GetInt(Utils.GetQueryStringValue("Page"), 1);
            //查询实体
            MRouteSearch queryModel = new MRouteSearch();

            #region 查询参数赋值
            //线路来源,专线,地接
            routeSource            = (RouteSource)Utils.GetInt(Utils.GetQueryStringValue("routeSource"), 1);
            queryModel.RouteSource = routeSource;
            //专线Id
            queryModel.AreaId    = Utils.GetInt(Utils.GetQueryStringValue("lineId"), 0);
            ILine1.CheckedId     = queryModel.AreaId.ToString();
            ddl_ZX.SelectedValue = queryModel.AreaId.ToString();
            //专线类型
            queryModel.RouteType = null;
            if (Utils.GetIntSign(Utils.GetQueryStringValue("lineType"), -1) >= 0)
            {
                queryModel.RouteType = (AreaType)Utils.GetInt(Utils.GetQueryStringValue("lineType"));
            }
            //出发城市
            queryModel.StartCity     = Utils.GetInt(Utils.GetQueryStringValue("goCity"), 0);
            ddl_goCity.SelectedValue = queryModel.StartCity.ToString();
            //关键字
            queryModel.RouteKey = Utils.GetQueryStringValue("keyWord") == "线路名称" ? string.Empty : Utils.GetQueryStringValue("keyWord");
            txt_keyWord.Value   = queryModel.RouteKey.Length > 0 ? queryModel.RouteKey : "线路名称";
            #endregion
            IRoute bll = EyouSoft.BLL.NewTourStructure.BRoute.CreateInstance();
            //线路库列表
            IList <MRoute> list = bll.GetBackCenterList(intPageSize, CurrencyPage, ref intRecordCount, SiteUserInfo.CompanyID, queryModel);
            if (list != null && list.Count > 0)
            {
                //存在列表数据
                rpt_List.DataSource = list;
                rpt_List.DataBind();

                ExportPageInfo1.Visible             = true;
                this.ExportPageInfo1.intPageSize    = intPageSize;
                this.ExportPageInfo1.intRecordCount = intRecordCount;
                this.ExportPageInfo1.CurrencyPage   = CurrencyPage;
                this.ExportPageInfo1.PageLinkURL    = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";

                this.ExportPageInfo1.UrlParams.Add("lineId", queryModel.AreaId.ToString());
                this.ExportPageInfo1.UrlParams.Add("lineType", Utils.GetQueryStringValue("lineType"));
                this.ExportPageInfo1.UrlParams.Add("goCity", queryModel.StartCity.ToString());
                this.ExportPageInfo1.UrlParams.Add("keyWord", queryModel.RouteKey);
                this.ExportPageInfo1.UrlParams.Add("routeSource", Utils.GetInt(Utils.GetQueryStringValue("routeSource"), 1).ToString());
            }
            else
            {
                //不存在列表数据
                pnlNodata.Visible = true;
            }
        }
Exemplo n.º 4
0
 /// <summary>
 /// 网店线路
 /// </summary>
 /// <param name="pageSize">每页显示记录数</param>
 /// <param name="pageCurrent">当前页</param>
 /// <param name="recordCount">总记录数</param>
 /// <param name="companyId">公司编号</param>
 /// <param name="search">搜索实体</param>
 /// <returns></returns>
 public IList <MShopRoute> GetShopList(int pageSize, int pageCurrent, ref int recordCount,
                                       string companyId, MRouteSearch search)
 {
     if (!string.IsNullOrEmpty(companyId))
     {
         return(dal.GetShopList(pageSize, pageCurrent, ref recordCount, 2, companyId, search));
     }
     return(null);
 }
Exemplo n.º 5
0
        /// <summary>
        /// 初始化线路列表
        /// </summary>
        private void InitRouteList()
        {
            //记录条数
            int intRecordCount = 0;
            //页码
            int    CurrencyPage = Utils.GetInt(Utils.GetQueryStringValue("Page"), 1);
            int    intPageSize  = 15;
            IRoute bll          = EyouSoft.BLL.NewTourStructure.BRoute.CreateInstance();
            //查询实体
            MRouteSearch queryModel = new MRouteSearch();

            #region 查询参数赋值
            routeSource = (RouteSource)Utils.GetInt(Utils.GetQueryStringValue("routeSource"), 1);
            //线路来源,专线,地接
            queryModel.RouteSource = routeSource;

            //专线Id
            queryModel.AreaId = Utils.GetInt(Utils.GetQueryStringValue("lineId"), 0);
            if (Utils.GetIntSign(Utils.GetQueryStringValue("lineType"), -1) >= 0)
            {
                queryModel.RouteType = (AreaType)Utils.GetInt(Utils.GetQueryStringValue("lineType"));
            }
            //出发城市
            queryModel.StartCity = Utils.GetInt(Utils.GetQueryStringValue("goCity"), 0);
            //关键字
            queryModel.RouteKey = Utils.GetQueryStringValue("keyWord") == "线路名称" ? string.Empty : Utils.GetQueryStringValue("keyWord");
            #endregion
            //线路库列表
            IList <MRoute> list = bll.GetBackCenterList(intPageSize, CurrencyPage, ref intRecordCount, Utils.GetQueryStringValue("companyID"), queryModel);
            if (list != null && list.Count > 0)
            {
                //存在列表数据
                rpt_List.DataSource = list;
                rpt_List.DataBind();

                ExportPageInfo1.Visible             = true;
                this.ExportPageInfo1.intPageSize    = intPageSize;
                this.ExportPageInfo1.intRecordCount = intRecordCount;
                this.ExportPageInfo1.CurrencyPage   = CurrencyPage;
                this.ExportPageInfo1.PageLinkURL    = "/routeagency/routemanage/RouteView.aspx?";

                this.ExportPageInfo1.UrlParams.Add("lineId", queryModel.AreaId.ToString());
                this.ExportPageInfo1.UrlParams.Add("lineType", Utils.GetQueryStringValue("lineType"));
                this.ExportPageInfo1.UrlParams.Add("goCity", queryModel.StartCity.ToString());
                this.ExportPageInfo1.UrlParams.Add("keyWord", queryModel.RouteKey);
                this.ExportPageInfo1.UrlParams.Add("routeSource", Utils.GetInt(Utils.GetQueryStringValue("routeSource"), 1).ToString());
            }
            else
            {
                //不存在列表数据
                pnlNodata.Visible = true;
            }
        }
Exemplo n.º 6
0
 protected void rptAreaList_ItemDataBound(object sender, RepeaterItemEventArgs e)
 {
     if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
     {
         int intRecordCount = 0;
         //找到对应的绑定项里的对应的线路区域编号
         EyouSoft.Model.SystemStructure.AreaBase areaModel = (EyouSoft.Model.SystemStructure.AreaBase)e.Item.DataItem;
         MRouteSearch queryModel = new MRouteSearch();
         queryModel.AreaId      = areaModel.AreaId;
         queryModel.RouteSource = RouteSource.专线商添加;
         queryModel.RouteType   = areaModel.RouteType;
         IList <MRoute> list        = EyouSoft.BLL.NewTourStructure.BRoute.CreateInstance().GetBackCenterList(1000000, 1, ref intRecordCount, this.SiteUserInfo.CompanyID, queryModel);
         Repeater       rptTourList = (Repeater)e.Item.FindControl("rptTourList");
         if (list != null && list.Count > 0)
         {
             rptTourList.DataSource = list;
             rptTourList.DataBind();
         }
     }
 }
Exemplo n.º 7
0
        /// <summary>
        /// 初始化页面
        /// </summary>
        private void InitPage()
        {
            //记录条数
            int intRecordCount = 0;
            //页码
            int CurrencyPage = Utils.GetInt(Utils.GetQueryStringValue("Page"), 1);
            int intPageSize  = 15;
            //IRoute bll = EyouSoft.BLL.NewTourStructure.BRoute.CreateInstance();
            //查询实体
            MRouteSearch queryModel = new MRouteSearch();

            #region 查询参数赋值
            //线路来源
            queryModel.RouteSource = null;
            //专线Id
            areaId            = Utils.GetQueryStringValue("lineId");
            queryModel.AreaId = Utils.GetInt(areaId, 0);
            //专线类型
            queryModel.RouteType = null;
            if (Utils.GetIntSign(Utils.GetQueryStringValue("lineType"), -1) >= 0)
            {
                type = Utils.GetQueryStringValue("lineType");
                queryModel.RouteType = (AreaType)Utils.GetInt(Utils.GetQueryStringValue("lineType"));
            }
            //出发城市
            queryModel.StartCity     = Utils.GetInt(Utils.GetQueryStringValue("goCityId"), 0);
            queryModel.StartCityName = Utils.GetQueryStringValue("goCity");
            //出团月份
            string goTime = Utils.GetQueryStringValue("goTime");
            //出团月份 0:全部,1:无出团计划 3:月份 默认0:全部 值在3的情况下,要给Year,Month属性赋值
            queryModel.LeaveMonth = goTime == "-1" ? 0 : 3;
            if (queryModel.LeaveMonth == 3)
            {
                queryModel.Month = Utils.GetInt(Utils.GetDateTime(goTime).ToString("MM"));
                queryModel.Year  = Utils.GetInt(Utils.GetDateTime(goTime).ToString("yyyy"));
            }
            //关键字
            queryModel.RouteKey = Utils.GetQueryStringValue("keyWord") == "线路名称" ? string.Empty : Utils.GetQueryStringValue("keyWord");
            #endregion
            //线路库列表
            IList <MRoute> list = EyouSoft.BLL.NewTourStructure.BRoute.CreateInstance().GetList(
                intPageSize,
                CurrencyPage,
                ref intRecordCount,
                queryModel);
            if (list != null && list.Count > 0)
            {
                //存在列表数据
                rpt_List.DataSource = list;
                rpt_List.DataBind();

                ExportPageInfo1.Visible             = true;
                this.ExportPageInfo1.intPageSize    = intPageSize;
                this.ExportPageInfo1.intRecordCount = intRecordCount;
                this.ExportPageInfo1.CurrencyPage   = CurrencyPage;
                this.ExportPageInfo1.PageLinkURL    = "/TeamService/LineLibraryList.aspx?";

                this.ExportPageInfo1.UrlParams.Add("lineId", Utils.GetQueryStringValue("lineId"));
                this.ExportPageInfo1.UrlParams.Add("lineType", Utils.GetQueryStringValue("lineType"));
                this.ExportPageInfo1.UrlParams.Add("goCityId", queryModel.StartCity.ToString());
                this.ExportPageInfo1.UrlParams.Add("goCity", queryModel.StartCityName.ToString());
                this.ExportPageInfo1.UrlParams.Add("keyWord", queryModel.RouteKey);
            }
            else
            {
                //不存在列表数据
                pnlNodata.Visible = true;
            }
        }
Exemplo n.º 8
0
 /// <summary>
 /// 用户后台线路列表
 /// </summary>
 /// <param name="pageSize">每页显示记录数</param>
 /// <param name="pageCurrent">当前页</param>
 /// <param name="RecordCount">总记录数</param>
 /// <param name="companyId">公司编号</param>
 /// <param name="search">搜索实体</param>
 /// <returns>线路集合</returns>
 public IList <MRoute> GetBackCenterList(int pageSize, int pageCurrent, ref int RecordCount, string companyId, MRouteSearch search)
 {
     if (!string.IsNullOrEmpty(companyId))
     {
         return(dal.GetBackCenterList(pageSize, pageCurrent, ref RecordCount, 2, 3, companyId, search));
     }
     return(null);
 }
Exemplo n.º 9
0
 /// <summary>
 /// 运营后台线路列表
 /// </summary>
 /// <param name="pageSize">每页显示记录数</param>
 /// <param name="pageCurrent">当前页</param>
 /// <param name="RecordCount">总记录数</param>
 /// <param name="search">搜索实体</param>
 /// <returns>线路集合</returns>
 public IList <MRoute> GetOperationsCenterList(int pageSize, int pageCurrent, ref int RecordCount, MRouteSearch search)
 {
     return(dal.GetOperationsCenterList(pageSize, pageCurrent, ref RecordCount, 2, 1, search));
 }
Exemplo n.º 10
0
 /// <summary>
 /// 线路列表-组团社
 /// </summary>
 /// <param name="pageSize">每页显示记录数</param>
 /// <param name="pageCurrent">当前页</param>
 /// <param name="RecordCount">总记录数</param>
 /// <param name="search">搜索实体</param>
 /// <returns></returns>
 public IList <MRoute> GetList(int pageSize, int pageCurrent, ref int RecordCount, MRouteSearch search)
 {
     return(dal.GetList(pageSize, pageCurrent, ref RecordCount, 3, 1, search));
 }
Exemplo n.º 11
0
        /// <summary>
        /// 绑定线路列表
        /// </summary>
        protected void BindLineList()
        {
            int    recordCount      = 0;
            int    Line1            = -1;
            string SearchKeyword    = Utils.InputText(Request.QueryString["SearchKeyword"]);                                        //关键字
            int    intRecommendType = EyouSoft.Common.Function.StringValidate.GetIntValue(Request.QueryString["RecommendType"]);    //推荐类型

            Line1 = EyouSoft.Common.Function.StringValidate.GetIntValue(Request.QueryString["Line1"]);                              //专线国内国外周边
            int            Line2        = EyouSoft.Common.Function.StringValidate.GetIntValue(Request.QueryString["Line2"]);        //专线编号
            int            BusinessLine = EyouSoft.Common.Function.StringValidate.GetIntValue(Request.QueryString["BusinessLine"]); //专线商编号
            string         Departure    = Utils.InputText(Request.QueryString["Departure"]);                                        //出发地
            int            ProvinceId   = EyouSoft.Common.Function.StringValidate.GetIntValue(Request.QueryString["ProvinceId"]);   //专线商所在省份
            int            CityId       = EyouSoft.Common.Function.StringValidate.GetIntValue(Request.QueryString["CityId"]);       //专线商所在城市
            MRouteSearch   SearchModel  = new MRouteSearch();
            IList <MRoute> listMRoute   = new List <MRoute>();                                                                      //线路list初始化

            if (!string.IsNullOrEmpty(SearchKeyword))
            {
                SearchModel.RouteKey = SearchKeyword;
            }
            if (!string.IsNullOrEmpty(Departure))
            {
                SearchModel.StartCityName = Departure;
            }
            if (Line1 > -1)
            {
                SearchModel.RouteType = (AreaType)Line1;
            }
            if (BusinessLine > 0)
            {
                SearchModel.Publishers = BusinessLine.ToString();
            }
            if (Line2 > 0)
            {
                SearchModel.AreaId = Line2;
            }
            if (intRecommendType > 0)
            {
                SearchModel.RecommendType = (RecommendType)intRecommendType;
            }
            if (ProvinceId > 0)
            {
                SearchModel.PublishersProvinceId = ProvinceId;
            }
            if (CityId > 0)
            {
                SearchModel.PublishersCityId = CityId;
            }
            listMRoute = BRoute.CreateInstance().GetOperationsCenterList(PageSize, PageIndex, ref recordCount, SearchModel);
            if (listMRoute.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", "LineManage.LoadData(this);", 1);
                this.ExporPageInfoSelect1.AttributesEventAdd("onchange", "LineManage.LoadData(this);", 0);
                this.repList.DataSource = listMRoute;
                this.repList.DataBind();
            }
            else
            {
                StringBuilder strEmptyText = new StringBuilder();
                strEmptyText.Append("<table width=\"100%\" border=\"1\" align=\"center\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#C7DEEB\" class=\"table_basic\">");
                strEmptyText.Append("<tr>");
                strEmptyText.Append("<th nowrap=\"nowrap\">全选</th>");
                strEmptyText.Append("<th nowrap=\"nowrap\">线路名称</th>");
                strEmptyText.Append("<th nowrap=\"nowrap\">发布单位</th><th nowrap=\"nowrap\">状态</th>");
                strEmptyText.Append("<th nowrap=\"nowrap\">天数</th><th nowrap=\"nowrap\">班级计划</th>");
                strEmptyText.Append("<th nowrap=\"nowrap\">成人</th nowrap=\"nowrap\"><th>儿童</th>");
                strEmptyText.Append("<th nowrap=\"nowrap\">B2B</th><th nowrap=\"nowrap\">B2C</th>");
                strEmptyText.Append("<th nowrap=\"nowrap\">计划管理</th><th nowrap=\"nowrap\">点击</th>");
                strEmptyText.Append("<th nowrap=\"nowrap\">创建时间</th>");
                strEmptyText.Append("<th nowrap=\"nowrap\">操作</th>");
                strEmptyText.Append("<tr align='center'><td  align='center' colspan='20' height='100px'>暂无线路信息</td></tr>");
                strEmptyText.Append("</tr>");
                strEmptyText.Append("</table>");
                this.repList.EmptyText = strEmptyText.ToString();
            }
            SearchModel = null;
            listMRoute  = null;
        }
Exemplo n.º 12
0
        /// <summary>
        /// 网店4近期线路
        /// </summary>
        /// <param name="topNum">获取条数</param>
        /// <param name="areaId">线路专线</param>
        /// <param name="companyId">公司编号</param>
        /// <param name="search">查询实体</param>
        /// <returns></returns>
        public IList <MShopRoute> GetShop4NearList(int topNum, int areaId, string companyId, MRouteSearch search)
        {
            if (!string.IsNullOrEmpty(companyId))
            {
                topNum = topNum > 0 ? topNum : 10;

                return(dal.GetShopList(topNum, areaId, companyId, 5, search));
            }
            return(null);
        }