コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (this.IsLogin)
         {
             if (!string.IsNullOrEmpty(Utils.GetQueryStringValue("TourCompanyID")))
             {
                 CompanyID = Utils.GetQueryStringValue("TourCompanyID");
                 EyouSoft.IBLL.CompanyStructure.ICompanyInfo       Ibll  = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
                 EyouSoft.Model.CompanyStructure.CompanyDetailInfo model = new EyouSoft.Model.CompanyStructure.CompanyDetailInfo();
                 model              = Ibll.GetModel(CompanyID);
                 ManName            = model.ContactInfo.ContactName;
                 ConnectTel         = model.ContactInfo.Tel;
                 ConnectFax         = model.ContactInfo.Fax;
                 ConnectMobilePhone = model.ContactInfo.Mobile;
                 model              = null;
                 Ibll = null;
             }
         }
         else
         {
         }
     }
 }
コード例 #2
0
 /// <summary>
 /// 获取公司信息
 /// </summary>
 /// <returns></returns>
 private EyouSoft.Model.CompanyStructure.CompanyInfo GetCompanyInfo(string CompanyID)
 {
     EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll  = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
     EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(CompanyID);
     ICompanyInfobll = null;
     return(companyInfoModel);
 }
コード例 #3
0
        protected void BindCompany()
        {
            EyouSoft.IBLL.CompanyStructure.ICompanyInfo companyBll = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
            int areaId = Utils.GetInt(Request.QueryString["areaid"], 0);

            if (areaId != 0)
            {
                //获取查询条件
                QueryParamsCompanyBase query = new QueryParamsCompanyBase();
                query.AreaId = areaId;
                query.CityId = SiteUserInfo.CityId;
                //获取批发商数据
                IList <EyouSoft.Model.CompanyStructure.CompanyInfo> companyList = companyBll.GetListRouteAgency(query, pageSize, pageIndex, ref recordCount);
                if (companyList.Count > 0)
                {
                    alcl_rpt_companyList1.DataSource = companyList;
                    alcl_rpt_companyList1.DataBind();
                    BindPage(areaId);//设置分页
                }
                else
                {
                    alcl_rpt_companyList1.EmptyText = "暂无批发商信息";
                    this.ExportPageInfo1.Visible    = false;
                }
                companyList = null;
            }
        }
コード例 #4
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;
        }
コード例 #5
0
 /// <summary>
 /// 初始化基础信息
 /// </summary>
 private void InitBasicInfo()
 {
     EyouSoft.IBLL.CompanyStructure.ICompanyInfo       bll   = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
     EyouSoft.Model.CompanyStructure.CompanyDetailInfo model = bll.GetModel(CompanyID);
     if (model != null)
     {
         this.lblCompanyName.Text = model.CompanyName;
         this.lblLicense.Text     = model.License;
         this.lblAddress.Text     = model.CompanyAddress;
         if (model.ContactInfo != null)
         {
             this.lblContactFax.Text = model.ContactInfo.Fax;
             this.lblContactTel.Text = model.ContactInfo.Tel;
         }
     }
     model = null;
     bll   = null;
 }
コード例 #6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         #region 获取所属公司信息
         EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll  = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
         EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(Utils.GetQueryStringValue("CompanyID"));
         ContactName      = companyInfoModel.ContactInfo.ContactName;
         MQ               = companyInfoModel.ContactInfo.MQ;
         QQ               = companyInfoModel.ContactInfo.QQ;
         Phone            = companyInfoModel.ContactInfo.Mobile;
         Fax              = companyInfoModel.ContactInfo.Fax;
         Tel              = companyInfoModel.ContactInfo.Tel;
         ICompanyInfobll  = null;
         companyInfoModel = null;
         #endregion
     }
 }
コード例 #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                //if (SiteUserInfo.CompanyRole.RoleItems.Where(i => i == EyouSoft.Model.CompanyStructure.CompanyType.全部 || i == EyouSoft.Model.CompanyStructure.CompanyType.专线 || i == EyouSoft.Model.CompanyStructure.CompanyType.组团 || i == EyouSoft.Model.CompanyStructure.CompanyType.地接 || i==EyouSoft.Model.CompanyStructure.CompanyType.其他采购商).Count() < 1)
                //{
                //    Response.Clear();
                //    Response.Write("<script type='text/javascript'>alert('对不起,你不是旅行社用户!');</script>");
                //    Response.End();
                //    return;
                //}
                this.GoogleMapKey = EyouSoft.Common.ConfigModel.ConfigClass.GetConfigString("appSettings", "GoogleMapsAPIKEY");
                this.initData();
            }
            if (IsCompanyCheck)
            {
                isCompanyCheck = true;
            }

            //if (!CheckGrant(TravelPermission.系统设置_单位信息))
            //{
            //    haveUpdate = false;
            //}
            companyBll   = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
            companyModel = companyBll.GetModel(SiteUserInfo.CompanyID);//获取公司信息
            string method = Utils.GetFormValue("method");

            if (method == "save")
            {
                if (!haveUpdate)
                {
                    Utils.ResponseMeg(false, "对不起,你没有该权限!");
                    return;
                }
                UpdateCompanyInfo();//更新单位信息
                return;
            }
            else
            {
                LoadCompanyInfo();//初始化单位信息
            }
        }
コード例 #8
0
        /// <summary>
        /// 初始化批发商列表
        /// </summary>
        private void InitCompanys()
        {
            this.InitFavors();

            int pageSize    = 20;
            int pageIndex   = Utils.GetInt(Request.QueryString["Page"], 1);
            int recordCount = 0;

            EyouSoft.Model.CompanyStructure.QueryParamsCompanyBase query = new EyouSoft.Model.CompanyStructure.QueryParamsCompanyBase();

            query.AreaId      = Utils.GetInt(Request.QueryString["AreaId"], 0);
            query.CompanyName = Utils.InputText(Request.QueryString["CompanyName"]);
            query.CityId      = SiteUserInfo.CityId;

            EyouSoft.IBLL.CompanyStructure.ICompanyInfo bll = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
            var items = bll.GetListRouteAgency(query, pageSize, pageIndex, ref recordCount);
            var obj   = new { html = string.Empty, pageSize = pageSize, pageIndex = pageIndex, recordCount = recordCount };

            if (items != null && items.Count > 0)
            {
                StringBuilder html = new StringBuilder();
                html.Append(@"<table width=""210"" border=""0"" cellpadding=""0"" align=""center"" cellspacing=""1"" bgcolor=""#eeeeee"" > ");

                foreach (EyouSoft.Model.CompanyStructure.CompanyInfo tmp in items)
                {
                    html.Append("<tr>");
                    html.Append(this.GetstrCompany(tmp.ID, tmp.CompanyName, tmp.ContactInfo.ContactName, tmp.ContactInfo.Tel, tmp.ContactInfo.Mobile));
                    html.Append("</tr>");
                }

                html.Append("</table>");

                obj = new { html = html.ToString(), pageSize = pageSize, pageIndex = pageIndex, recordCount = recordCount };
            }

            bll = null;

            Response.Clear();
            Response.Write(Newtonsoft.Json.JsonConvert.SerializeObject(obj));
            Response.End();
        }
コード例 #9
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void InitPage()
        {
            EyouSoft.IBLL.TourStructure.ITour     Ibll  = EyouSoft.BLL.TourStructure.Tour.CreateInstance();
            EyouSoft.Model.TourStructure.TourInfo model = Ibll.GetTourInfo(TourID);
            if (model != null)
            {
                #region 获取所属公司信息
                if (this.IsLogin)
                {
                    CompanyID      = this.SiteUserInfo.CompanyID;
                    TourContactTel = this.SiteUserInfo.ContactInfo.Tel;
                    TourContact    = this.SiteUserInfo.ContactInfo.ContactName;
                    EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll  = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
                    EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(this.SiteUserInfo.CompanyID);
                    CompanyName      = companyInfoModel.CompanyName;
                    CompanyAddress   = companyInfoModel.CompanyAddress;
                    License          = companyInfoModel.License;
                    ICompanyInfobll  = null;
                    companyInfoModel = null;
                }
                else
                {
                    EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll  = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
                    EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(model.CompanyID);
                    CompanyName      = companyInfoModel.CompanyName;
                    CompanyAddress   = companyInfoModel.CompanyAddress;
                    License          = companyInfoModel.License;
                    TourContactTel   = companyInfoModel.ContactInfo.Tel;
                    TourContact      = companyInfoModel.ContactInfo.ContactName;
                    ICompanyInfobll  = null;
                    companyInfoModel = null;
                }
                #endregion

                #region 获取地接社信息
                if (model.LocalTravelAgency != null && model.LocalTravelAgency.Count > 0)
                {
                    rptTourLocalityInfo.DataSource = model.LocalTravelAgency;
                    rptTourLocalityInfo.DataBind();
                }
                else
                {
                    localInfo.Visible = false;
                }
                #endregion

                #region 团队相关信息
                TourDays  = model.TourDays;
                RouteName = model.RouteName;
                if (model.ReleaseType == EyouSoft.Model.TourStructure.ReleaseType.Standard)//标准发布
                {
                    if (!string.IsNullOrEmpty(model.LeaveTraffic))
                    {
                        ltrTraffic.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.LeaveTraffic);
                    }
                    else
                    {
                        Tr_Traffic.Visible = false;
                    }
                    if (!string.IsNullOrEmpty(model.CollectionContect))
                    {
                        ltrCollectionContect.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.CollectionContect);
                    }
                    else
                    {
                        CollectionContect.Visible = false;
                    }
                    if (!string.IsNullOrEmpty(model.MeetTourContect))
                    {
                        ltrMeetTourContect.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.MeetTourContect);
                    }
                    else
                    {
                        MeetTourContect.Visible = false;
                    }

                    ResideContent       = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.ResideContent);       //住宿
                    DinnerContent       = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.DinnerContent);       //用餐
                    SightContent        = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.SightContent);        //景点
                    CarContent          = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.CarContent);          //用车
                    GuideContent        = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.GuideContent);        //导游
                    TrafficContent      = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.TrafficContent);      //往返交通
                    IncludeOtherContent = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.IncludeOtherContent); //其它
                    NotContainService   = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.IncludeOtherContent); //其它说明
                    //备注
                    SpeciallyNotice = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.SpeciallyNotice);

                    rptTeamNotice.DataSource = model.StandardPlan;
                    rptTeamNotice.DataBind();
                }
                else//快速发布
                {
                    pnlQuickPlan.Visible      = true;
                    Tr_Traffic.Visible        = false;
                    CollectionContect.Visible = false;
                    MeetTourContect.Visible   = false;
                    pnlNotQuickPlan.Visible   = false;
                    QuickPlanContent          = model.QuickPlan;
                }
                #region 盖章信息
                //if(this.SiteUserInfo.CompanyID==model.se)
                if (!string.IsNullOrEmpty(OrderID))
                {
                    string BuyCompanyID = EyouSoft.BLL.TourStructure.TourOrder.CreateInstance().GetOrderModel(OrderID).BuyCompanyID;
                    if (this.SiteUserInfo.CompanyID == BuyCompanyID)
                    {
                        string imgPath = EyouSoft.BLL.TourStructure.CompanyContractSignet.CreateInstance().GetGroupAdviceSignet(OrderID);
                        if (!string.IsNullOrEmpty(imgPath))
                        {
                            imgBuyCompany.Visible  = true;
                            imgBuyCompany.ImageUrl = Domain.FileSystem + imgPath;
                            btnCancelStamp.Visible = true;
                            btnToStamp.Visible     = false;
                        }
                    }
                    else
                    {
                        this.btnCancelStamp.Visible = false;
                        this.btnToStamp.Visible     = false;
                    }
                }
                else
                {//无订单号传入时,盖章隐藏
                    this.btnCancelStamp.Visible = false;
                    this.btnToStamp.Visible     = false;
                }
                //if (!this.CheckGrant(EyouSoft.Common.TravelPermission.系统设置_盖章) && this.SiteUserInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.组团))
                if (this.SiteUserInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.组团))
                {
                    this.btnCancelStamp.Visible = false;
                    this.btnToStamp.Visible     = false;
                }
                #endregion
                #endregion
            }
            Ibll  = null;
            model = null;
        }
コード例 #10
0
        //初始化页面
        public void Initialize()
        {
            provinceID    = Utils.GetInt(Utils.GetQueryStringValue("provinceID"), 0);
            cityID        = Utils.GetInt(Utils.GetQueryStringValue("cId"), 0);
            areaID        = Utils.GetInt(Utils.GetQueryStringValue("areaID"), 0);
            companytypeid = Utils.GetInt(Utils.GetQueryStringValue("companytype"));
            pageIndex     = Utils.GetInt(Request.QueryString["Page"], 1);
            companyName   = Utils.GetQueryStringValue("CompanyName").Trim();
            companyType   = Utils.GetQueryStringValue("companytype");
            if (provinceID <= 0 && cityID > 0)
            {
                EyouSoft.IBLL.SystemStructure.ISysCity Bcity = EyouSoft.BLL.SystemStructure.SysCity.CreateInstance();
                EyouSoft.Model.SystemStructure.SysCity Mcity = new EyouSoft.Model.SystemStructure.SysCity();
                Mcity      = Bcity.GetSysCityModel(cityID);
                provinceID = Mcity.ProvinceId;
            }
            //获取省份列表
            EyouSoft.IBLL.SystemStructure.ISysProvince         Bpro    = EyouSoft.BLL.SystemStructure.SysProvince.CreateInstance();
            IList <EyouSoft.Model.SystemStructure.SysProvince> ProList = Bpro.GetProvinceList();

            this.province.DataSource = ProList;
            this.province.DataBind();
            //获取同行列表
            EyouSoft.IBLL.CompanyStructure.ICompanyInfo             Bcompany = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
            IList <EyouSoft.Model.CompanyStructure.CompanyTongHang> ComList  = null;

            ComList = Bcompany.GetTongHangList(pageSize, pageIndex, ref recordCount,
                                               new EyouSoft.Model.CompanyStructure.QueryNewCompany()
            {
                PorvinceId   = provinceID,
                KeyWord      = companyName,
                CityId       = cityID,
                CountyId     = areaID,
                CompanyTypes =
                    (companytypeid == 0)
                                                               ? null
                                                               : new CompanyType?[]
                {
                    (EyouSoft.Model.CompanyStructure.CompanyType)
                    companytypeid
                }
            });

            //获取省份名字
            if (provinceID > 0)
            {
                provinceName = Bpro.GetProvinceModel(provinceID).ProvinceName;
            }
            else
            {
                provinceName = "全部";
            }
            Bcompany = null;
            if (ComList != null && ComList.Count > 0)
            {
                this.rivalList.DataSource = ComList;
                this.rivalList.DataBind();
                BindPage();
            }
            else
            {
                this.rivalList.EmptyText = "搜索结果为空,请尝试修改搜索条件重试!";
                this.pageInfor.Visible   = false;
            }
        }
コード例 #11
0
        private void InitPage()
        {
            EyouSoft.IBLL.TourStructure.ITour     Ibll  = EyouSoft.BLL.TourStructure.Tour.CreateInstance();
            EyouSoft.Model.TourStructure.TourInfo model = Ibll.GetTourInfo(TourID);
            if (model != null)
            {
                TemplateTourID = model.ParentTourID;
                #region 获取所属公司信息
                if (this.IsLogin)
                {
                    TourContactTel = this.SiteUserInfo.ContactInfo.Tel;
                    TourContact    = this.SiteUserInfo.ContactInfo.ContactName;
                    EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll  = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
                    EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(this.SiteUserInfo.CompanyID);
                    CompanyName      = companyInfoModel.CompanyName;
                    CompanyAddress   = companyInfoModel.CompanyAddress;
                    License          = companyInfoModel.License;
                    ICompanyInfobll  = null;
                    companyInfoModel = null;
                }
                else
                {
                    tbl_Header.Visible = false;
                    //EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
                    //EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(model.CompanyID);
                    //CompanyName = companyInfoModel.CompanyName;
                    //CompanyAddress = companyInfoModel.CompanyAddress;
                    //License = companyInfoModel.License;
                    //TourContactTel = companyInfoModel.ContactInfo.Tel;
                    //TourContact = companyInfoModel.ContactInfo.ContactName;
                    //ICompanyInfobll = null;
                    //companyInfoModel = null;
                }
                #endregion

                #region 获取地接社信息
                if (model.LocalTravelAgency != null && model.LocalTravelAgency.Count > 0)
                {
                    rptTourLocalityInfo.DataSource = model.LocalTravelAgency;
                    rptTourLocalityInfo.DataBind();
                }
                else
                {
                    HasLocalCompanyInfo = false;
                }

                #endregion

                #region 价格等级信息
                IList <EyouSoft.Model.TourStructure.TourPriceDetail> PriceLists = EyouSoft.BLL.TourStructure.Tour.CreateInstance().GetTourPriceDetail(TemplateTourID);
                List <UserBackCenter.RouteAgency.CompanyPriceDetail> newLists   = new List <UserBackCenter.RouteAgency.CompanyPriceDetail>();
                UserBackCenter.RouteAgency.CompanyPriceDetail        cpModel    = null;
                if (PriceLists != null && PriceLists.Count > 0)
                {
                    ((List <EyouSoft.Model.TourStructure.TourPriceDetail>)PriceLists).ForEach(item =>
                    {
                        cpModel = new UserBackCenter.RouteAgency.CompanyPriceDetail();
                        cpModel.PriceStandName = item.PriceStandName;
                        ((List <EyouSoft.Model.TourStructure.TourPriceCustomerLeaveDetail>)item.PriceDetail).ForEach(childItem =>
                        {
                            switch (childItem.CustomerLevelType)
                            {
                            case EyouSoft.Model.CompanyStructure.CustomerLevelType.行:
                                cpModel.AdultPrice1    = childItem.AdultPrice;
                                cpModel.ChildrenPrice1 = childItem.ChildrenPrice;
                                break;

                            case EyouSoft.Model.CompanyStructure.CustomerLevelType.门市:
                                cpModel.AdultPrice2    = childItem.AdultPrice;
                                cpModel.ChildrenPrice2 = childItem.ChildrenPrice;
                                break;

                            case EyouSoft.Model.CompanyStructure.CustomerLevelType.单房差:
                                cpModel.SingleRoom1 = childItem.AdultPrice;
                                cpModel.SingleRoom2 = childItem.ChildrenPrice;
                                break;
                            }
                        });
                        newLists.Add(cpModel);
                        cpModel = null;
                    });
                    this.rptTourPriceDetail.DataSource = newLists;
                    this.rptTourPriceDetail.DataBind();
                    newLists = null;
                }
                PriceLists = null;
                #endregion

                #region 团队相关信息
                RouteName = model.RouteName;
                LeaveDate = model.LeaveDate;
                BackDate  = model.ComeBackDate;
                TourDays  = model.TourDays;
                TourCode  = model.TourNo;
                if (model.ReleaseType == EyouSoft.Model.TourStructure.ReleaseType.Standard)//标准发布
                {
                    Traffic           = EyouSoft.Common.Function.StringValidate.TextToHtml(model.LeaveTraffic.Trim());
                    MeetTourContect   = EyouSoft.Common.Function.StringValidate.TextToHtml(model.MeetTourContect.Trim());
                    CollectionContect = EyouSoft.Common.Function.StringValidate.TextToHtml(model.CollectionContect.Trim());
                    //行程信息及相关
                    rptStandardPlan.DataSource = model.StandardPlan;
                    rptStandardPlan.DataBind();
                    //服务标准及说明
                    List <EyouSoft.Model.TourStructure.ServiceStandard> serviceList = new List <EyouSoft.Model.TourStructure.ServiceStandard>();
                    if (model.ServiceStandard != null)
                    {
                        serviceList.Add(model.ServiceStandard);
                        NotContainService = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.NotContainService);
                        SpeciallyNotice   = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.SpeciallyNotice);
                        this.rptServiceStandard.DataSource = serviceList;
                        this.rptServiceStandard.DataBind();
                    }
                }
                else//快速发布
                {
                    isStadardType        = false;
                    pnlQuickPlan.Visible = true;
                    QuickPlanContent     = model.QuickPlan;
                }
                #endregion
            }
            Ibll  = null;
            model = null;
        }
コード例 #12
0
        //初始化页面信息
        public void Initialize()
        {
            //获取热点资讯排行
            EyouSoft.IBLL.NewsStructure.INewsBll             bll_News = EyouSoft.BLL.NewsStructure.NewsBll.CreateInstance();
            IList <EyouSoft.Model.NewsStructure.WebSiteNews> HotList  = bll_News.GetHotNews(10);
            StringBuilder strHot = new StringBuilder();

            if (HotList != null && HotList.Count > 0)
            {
                foreach (EyouSoft.Model.NewsStructure.WebSiteNews item in HotList)
                {
                    if (item.GotoUrl.Length > 0)
                    {//含有跳转的
                        strHot.AppendFormat("<li><a href='{0}' title='{3}' target=\"_blank\" style='{2}'>{1}</a></li>", item.GotoUrl, EyouSoft.Common.Utils.GetText2(item.AfficheTitle, 16, true), "color:" + item.TitleColor, item.AfficheTitle);
                    }
                    else
                    {//不含跳转
                        strHot.AppendFormat("<li><a href='{0}' title='{3}' target=\"_blank\" style='{2}'>{1}</a></li>", EyouSoft.Common.URLREWRITE.Infomation.GetNewsDetailUrl(item.AfficheClass, item.Id), EyouSoft.Common.Utils.GetText2(item.AfficheTitle, 16, true), "color:" + item.TitleColor, item.AfficheTitle);
                    }
                }
            }
            else
            {
                strHot.Append("<li>暂无资讯排行信息</li>");
            }
            HotLists = strHot.ToString();

            //获取资讯信息类别
            EyouSoft.IBLL.NewsStructure.INewsType         BLL_NewsType = EyouSoft.BLL.NewsStructure.NewsType.CreateInstance();
            IList <EyouSoft.Model.NewsStructure.NewsType> InfoTypeList = BLL_NewsType.GetInformationType();

            EyouSoft.Model.NewsStructure.NewsType only = InfoTypeList.Where(p => p.ClassName == "行业新闻").FirstOrDefault();
            //获取最新行业新闻
            IList <EyouSoft.Model.NewsStructure.WebSiteNews> Trades = bll_News.GetListByNewType(6, only.Id);

            this.news.DataSource = Trades;
            this.news.DataBind();
            bll_News = null;

            //获取供求信息
            EyouSoft.IBLL.CommunityStructure.IExchangeList         Bchange = EyouSoft.BLL.CommunityStructure.ExchangeList.CreateInstance();
            IList <EyouSoft.Model.CommunityStructure.ExchangeList> excList = Bchange.GetTopList(6);

            this.star.DataSource = excList;
            this.DataBind();

            //获取最新线路
            EyouSoft.IBLL.NewTourStructure.IRoute          Btour    = EyouSoft.BLL.NewTourStructure.BRoute.CreateInstance();
            IList <EyouSoft.Model.NewTourStructure.MRoute> TourList = Btour.GetNewRouteList(6);
            StringBuilder NewRoute = new StringBuilder();

            if (TourList != null)
            {
                foreach (EyouSoft.Model.NewTourStructure.MRoute item in TourList)
                {
                    NewRoute.Append(string.Format("<li><a title='{0}' target='_blank' href='{1}'>{2}</a></li>", item.RouteName, EyouSoft.Common.URLREWRITE.Tour.GetTourToUrl(item.Id, CityId), Utils.GetText2(item.RouteName, 16, true)));
                }
            }
            RouteList = NewRoute.ToString();
            Btour     = null;
            //获取旅游企业
            EyouSoft.IBLL.CompanyStructure.ICompanyInfo Bcompany = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
            IList <EyouSoft.Model.CompanyStructure.MLatestRegCompanyInfo> ComList = Bcompany.GetTopNumNewCompanys(9, true);

            this.company.DataSource = ComList;
            this.company.DataBind();
            Bcompany = null;
        }
コード例 #13
0
        private void InitPage()
        {
            EyouSoft.IBLL.TourStructure.ITour     Ibll  = EyouSoft.BLL.TourStructure.Tour.CreateInstance();
            EyouSoft.Model.TourStructure.TourInfo model = Ibll.GetTourInfo(TourID);
            if (model != null)
            {
                TemplateTourID = model.ParentTourID;
                #region 获取所属公司信息
                EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll  = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
                EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(model.CompanyID);
                CompanyName      = companyInfoModel.CompanyName;
                CompanyAddress   = companyInfoModel.CompanyAddress;
                License          = companyInfoModel.License;
                TourContactFax   = companyInfoModel.ContactInfo.Fax;
                ICompanyInfobll  = null;
                companyInfoModel = null;
                #endregion

                #region 获取地接社信息
                if (model.LocalTravelAgency != null && model.LocalTravelAgency.Count > 0)
                {
                    //EyouSoft.Model.TourStructure.TourLocalityInfo localMode = ((List<EyouSoft.Model.TourStructure.TourLocalityInfo>)model.LocalTravelAgency).First(LocalAgency =>
                    //{
                    //    return LocalAgency.TourId == TourID;
                    //});
                    //if (localMode != null)
                    //{
                    ltrLocalCompanyName.Text = model.LocalTravelAgency[0].LocalCompanyName;
                    ltrLicenseNumber.Text    = model.LocalTravelAgency[0].LicenseNumber;
                    //}
                }
                #endregion

                #region 价格等级信息
                IList <EyouSoft.Model.TourStructure.TourPriceDetail> PriceLists = EyouSoft.BLL.TourStructure.Tour.CreateInstance().GetTourPriceDetail(TemplateTourID);
                List <UserBackCenter.RouteAgency.CompanyPriceDetail> newLists   = new List <UserBackCenter.RouteAgency.CompanyPriceDetail>();
                UserBackCenter.RouteAgency.CompanyPriceDetail        cpModel    = null;
                if (PriceLists != null && PriceLists.Count > 0)
                {
                    ((List <EyouSoft.Model.TourStructure.TourPriceDetail>)PriceLists).ForEach(item =>
                    {
                        cpModel = new UserBackCenter.RouteAgency.CompanyPriceDetail();
                        cpModel.PriceStandName = item.PriceStandName;
                        ((List <EyouSoft.Model.TourStructure.TourPriceCustomerLeaveDetail>)item.PriceDetail).ForEach(childItem =>
                        {
                            switch (childItem.CustomerLevelType)
                            {
                            case EyouSoft.Model.CompanyStructure.CustomerLevelType.行:
                                cpModel.AdultPrice1    = childItem.AdultPrice;
                                cpModel.ChildrenPrice1 = childItem.ChildrenPrice;
                                break;

                            case EyouSoft.Model.CompanyStructure.CustomerLevelType.门市:
                                cpModel.AdultPrice2    = childItem.AdultPrice;
                                cpModel.ChildrenPrice2 = childItem.ChildrenPrice;
                                break;

                            case EyouSoft.Model.CompanyStructure.CustomerLevelType.单房差:
                                cpModel.SingleRoom1 = childItem.AdultPrice;
                                cpModel.SingleRoom2 = childItem.ChildrenPrice;
                                break;
                            }
                        });
                        newLists.Add(cpModel);
                        cpModel = null;
                    });
                    this.rptTourPriceDetail.DataSource = newLists;
                    this.rptTourPriceDetail.DataBind();
                    newLists = null;
                }
                PriceLists = null;
                #endregion

                #region 团队相关信息
                RouteName = model.RouteName;
                LeaveDate = model.LeaveDate;
                BackDate  = model.ComeBackDate;
                TourDays  = model.TourDays;
                TourCode  = model.TourNo;
                if (((int)model.ReleaseType) == 0)//标注发布
                {
                    ltrTraffic.Text           = model.LeaveTraffic;
                    ltrMeetTourContect.Text   = model.MeetTourContect;
                    ltrCollectionContect.Text = model.CollectionContect;
                    //行程信息及相关
                    rptStandardPlan.DataSource = model.StandardPlan;
                    rptStandardPlan.DataBind();
                    //服务标准及说明
                    List <EyouSoft.Model.TourStructure.ServiceStandard> serviceList = new List <EyouSoft.Model.TourStructure.ServiceStandard>();
                    if (model.ServiceStandard != null)
                    {
                        serviceList.Add(model.ServiceStandard);
                        this.rptServiceStandard.DataSource = serviceList;
                        this.rptServiceStandard.DataBind();
                    }
                }
                else//快速发布
                {
                    pnlServiceStandard.Visible   = false;
                    Tr_CollectionContect.Visible = false;

                    Tr_Traffic.Visible = false;
                    QuickPlanContent   = model.QuickPlan;
                }
                #endregion
            }
            Ibll  = null;
            model = null;
        }
コード例 #14
0
        /// <summary>
        /// 初始化基础信息
        /// </summary>
        private void InitBasicInfo()
        {
            if (UserInfoModel != null)
            {
                this.ltrCompanyName.Text = UserInfoModel.CompanyName;
            }
            EyouSoft.IBLL.CompanyStructure.ICompanyInfo       CompanyInfo      = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
            EyouSoft.Model.CompanyStructure.CompanyDetailInfo CompanyInfoModel = CompanyInfo.GetModel(UserInfoModel.CompanyID);
            if (CompanyInfoModel != null)
            {
                if (!String.IsNullOrEmpty(CompanyInfoModel.AttachInfo.CompanyLogo.ImagePath))
                {
                    this.imgLogo.Src = Domain.FileSystem + CompanyInfoModel.AttachInfo.CompanyLogo.ImagePath;
                }
                else
                {
                    this.imgLogo.Src = ImageServerPath + "/images/logo.gif";
                }
            }

            EyouSoft.IBLL.CompanyStructure.ICompanySetting CSetBll   = EyouSoft.BLL.CompanyStructure.CompanySetting.CreateInstance();
            EyouSoft.Model.CompanyStructure.CompanySetting CSetModel = CSetBll.GetModel(UserInfoModel.CompanyID);
            if (CSetModel != null)
            {
                switch (CSetModel.FirstMenu)
                {
                case EyouSoft.Model.CompanyStructure.MenuSection.专线服务:
                    FirstMenu = "0";
                    break;

                case EyouSoft.Model.CompanyStructure.MenuSection.组团服务:
                    FirstMenu = "1";
                    break;

                case EyouSoft.Model.CompanyStructure.MenuSection.地接服务:
                    FirstMenu = "2";
                    break;

                case EyouSoft.Model.CompanyStructure.MenuSection.景区服务:
                    FirstMenu = "3";
                    break;

                default:
                    FirstMenu = "1";
                    break;
                }
            }

            #region 专线和组团显示控制
            EyouSoft.Model.CompanyStructure.CompanyRole   RoleModel = UserInfoModel.CompanyRole;
            EyouSoft.Model.CompanyStructure.CompanyType[] enumType  = RoleModel.RoleItems;

            if (enumType.Length > 0)
            {
                foreach (EyouSoft.Model.CompanyStructure.CompanyType type in enumType)
                {
                    if (type == EyouSoft.Model.CompanyStructure.CompanyType.专线)
                    {
                        IsRouteAgency = true;
                    }
                    else if (type == EyouSoft.Model.CompanyStructure.CompanyType.组团 ||
                             type == EyouSoft.Model.CompanyStructure.CompanyType.其他采购商)
                    {
                        IsTourAgency = true;
                    }
                    else if (type == EyouSoft.Model.CompanyStructure.CompanyType.地接)
                    {
                        IsLocalAgency = true;
                    }
                    else if (type == EyouSoft.Model.CompanyStructure.CompanyType.景区)
                    {
                        IsSightAgency = true;
                    }
                    else
                    {
                        IsOther = true;
                    }
                }
                if (IsRouteAgency)   // 仅为专线
                {
                    this.div_RouteAgency.Visible = true;
                    //景区门票后台搜索页
                    divSceniceList.Visible = true;
                }
                if (IsTourAgency)     // 仅为组团
                {
                    this.div_TourAgency.Visible = true;
                    //景区门票后台搜索页
                    divSceniceList.Visible = true;
                }
                if (IsLocalAgency)
                {   // 地接
                    this.div_LocalAgency.Visible = true;
                    //景区门票后台搜索页
                    divSceniceList.Visible = true;
                }
                if (!IsRouteAgency && !IsTourAgency && IsLocalAgency)
                {
                    //景区门票后台搜索页
                    divSceniceList.Visible = true;
                }
                if (IsSightAgency)
                {
                    div_SightAgency.Visible = true;
                    divHotelCenter.Visible  = false;
                    //景区门票后台搜索页
                    divSceniceList.Visible = true;
                    //我的网店链接地址
                    hrefSightShop.HRef = IsOpenHighShop
                                             ? "/EShop/SightShop/SightShopDefault.aspx"
                                             : "/GeneralShop/SightShop/Default.aspx";
                }

                #region ZhouWenChao 2011-03-07  注释,原因是酒店用户进入不了后台

                //if (IsOther)
                //{
                //    Utils.ShowError("对不起,您不是旅行社账户!", "");
                //    return;
                //}

                #endregion
            }
            #endregion
        }
コード例 #15
0
        /// <summary>
        /// 更新公司信息
        /// </summary>
        /// <param name="requestInfo"></param>
        /// <returns></returns>
        private EyouSoft.OpenRelation.Model.MResponseInfo UpdateCompanyInfo(EyouSoft.OpenRelation.Model.MRequestInfo requestInfo)
        {
            EyouSoft.OpenRelation.Model.MResponseInfo responseInfo = new EyouSoft.OpenRelation.Model.MResponseInfo()
            {
                IsSuccess = true
            };
            if (requestInfo == null)
            {
                responseInfo.IsSuccess = false;
                responseInfo.Desc      = "http request post info对象为空!";

                return(responseInfo);
            }

            EyouSoft.OpenRelation.Model.MCompanyInfo MiddComp = EyouSoft.OpenRelation.Utils.InvertJSON <EyouSoft.OpenRelation.Model.MCompanyInfo>(requestInfo.InstructionCode);
            if (MiddComp == null)
            {
                responseInfo.IsSuccess = false;
                responseInfo.Desc      = "Josn对象转为中间平台对象时发生错误!";

                return(responseInfo);
            }
            EyouSoft.IBLL.CompanyStructure.ICompanyInfo        ComBll      = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
            EyouSoft.Model.CompanyStructure.CompanyArchiveInfo CompanyInfo = ComBll.GetModel(MiddComp.PlatformCompanyId);
            if (CompanyInfo == null || CompanyInfo.ContactInfo == null)
            {
                responseInfo.IsSuccess = false;
                responseInfo.Desc      = "在平台中未找到对应的公司或者公司对应的联系人信息!";

                return(responseInfo);
            }

            //大平台邮箱不能为空 赋值空格
            if (string.IsNullOrEmpty(MiddComp.ContactEmail))
            {
                MiddComp.ContactEmail = " ";
            }

            //公司
            if (!string.IsNullOrEmpty(MiddComp.CompanyName))
            {
                CompanyInfo.CompanyName = MiddComp.CompanyName;
            }
            if (!string.IsNullOrEmpty(MiddComp.Address))
            {
                CompanyInfo.CompanyAddress = MiddComp.Address;
            }
            if (!string.IsNullOrEmpty(MiddComp.Domain))
            {
                CompanyInfo.WebSite = MiddComp.Domain;
            }
            //联系人
            if (!string.IsNullOrEmpty(MiddComp.ContactName))
            {
                CompanyInfo.ContactInfo.ContactName = MiddComp.ContactName;
            }
            if (!string.IsNullOrEmpty(MiddComp.ContactTelephone))
            {
                CompanyInfo.ContactInfo.Tel = MiddComp.ContactTelephone;
            }
            if (!string.IsNullOrEmpty(MiddComp.ContactMobile))
            {
                CompanyInfo.ContactInfo.Mobile = MiddComp.ContactMobile;
            }
            if (!string.IsNullOrEmpty(MiddComp.ContactFax))
            {
                CompanyInfo.ContactInfo.Fax = MiddComp.ContactFax;
            }
            CompanyInfo.ContactInfo.Email      = MiddComp.ContactEmail;
            CompanyInfo.ContactInfo.MSN        = MiddComp.ContactMSN;
            CompanyInfo.ContactInfo.QQ         = MiddComp.ContactQQ;
            CompanyInfo.ContactInfo.ContactSex = GetGender(MiddComp.ContactGender);

            try
            {
                responseInfo.IsSuccess = ComBll.UpdateSelf(CompanyInfo);
                responseInfo.Desc      = "修改公司信息完成!";
            }
            catch (Exception e)
            {
                responseInfo.IsSuccess = false;
                responseInfo.Desc      = "修改公司信息操作执行异常!";
                responseInfo.ErrorCode = e.Message + e.StackTrace;
            }

            return(responseInfo);
        }
コード例 #16
0
        private void InitPage()
        {
            EyouSoft.IBLL.TourStructure.ITour     Ibll  = EyouSoft.BLL.TourStructure.Tour.CreateInstance();
            EyouSoft.Model.TourStructure.TourInfo model = Ibll.GetTourInfo(TourID);
            if (model != null)
            {
                TemplateTourID = model.ParentTourID;
                #region 新增浏览记录
                string currentCompanyId = string.Empty;
                if (this.IsLogin)
                {
                    currentCompanyId = SiteUserInfo.CompanyID;
                }
                if (model.CompanyID != currentCompanyId && !string.IsNullOrEmpty(currentCompanyId))
                {
                    EyouSoft.Model.TourStructure.TourVisitInfo TourModel = new EyouSoft.Model.TourStructure.TourVisitInfo();
                    TourModel.TourId             = TourID;
                    TourModel.VisitedCompanyId   = model.CompanyID;
                    TourModel.VisitedCompanyName = model.CompanyName;
                    TourModel.VisitedTime        = DateTime.Today;
                    TourModel.VisitTourCode      = model.TourNo;
                    TourModel.VisitTourRouteName = model.RouteName;
                    if (IsLogin)
                    {
                        TourModel.ClientCompanyId            = SiteUserInfo.CompanyID;
                        TourModel.ClientCompanyName          = SiteUserInfo.CompanyName;
                        TourModel.ClientUserContactMobile    = SiteUserInfo.ContactInfo.Mobile;
                        TourModel.ClientUserContactName      = SiteUserInfo.ContactInfo.ContactName;
                        TourModel.ClientUserContactTelephone = SiteUserInfo.ContactInfo.Tel;
                        TourModel.ClientUserId        = SiteUserInfo.ID;
                        TourModel.ClinetUserContactQQ = SiteUserInfo.ContactInfo.QQ;
                    }
                    else
                    {
                        TourModel.ClientCompanyId = "";
                    }
                    EyouSoft.BLL.TourStructure.Tour.CreateInstance().InsertTourVisitedInfo(TourModel);
                    TourModel = null;
                }
                else if (!IsLogin)
                {
                    EyouSoft.BLL.TourStructure.Tour.CreateInstance().IncreaseClicks(TourID);
                }
                #endregion

                #region 获取所属公司信息
                if (this.IsLogin)
                {
                    TourContactTel = this.SiteUserInfo.ContactInfo.Tel;
                    TourContact    = this.SiteUserInfo.ContactInfo.ContactName;
                    EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll  = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
                    EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(this.SiteUserInfo.CompanyID);
                    CompanyName      = companyInfoModel.CompanyName;
                    CompanyAddress   = companyInfoModel.CompanyAddress;
                    License          = companyInfoModel.License;
                    ICompanyInfobll  = null;
                    companyInfoModel = null;
                }
                else
                {
                    tbl_Header.Visible = false;
                    //EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
                    //EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(model.CompanyID);
                    //CompanyName = companyInfoModel.CompanyName;
                    //CompanyAddress = companyInfoModel.CompanyAddress;
                    //License = companyInfoModel.License;
                    //TourContactTel = companyInfoModel.ContactInfo.Tel;
                    //TourContact = companyInfoModel.ContactInfo.ContactName;
                    //ICompanyInfobll = null;
                    //companyInfoModel = null;
                }
                #endregion

                #region 获取地接社信息
                rptTourLocalityInfo.DataSource = model.LocalTravelAgency;
                rptTourLocalityInfo.DataBind();
                if (rptTourLocalityInfo.Items.Count < 1)
                {
                    isNotLocalCompany = false;
                }
                #endregion

                #region 价格等级信息
                IList <EyouSoft.Model.TourStructure.TourPriceDetail> PriceLists = EyouSoft.BLL.TourStructure.Tour.CreateInstance().GetTourPriceDetail(TemplateTourID);
                List <UserBackCenter.RouteAgency.CompanyPriceDetail> newLists   = new List <UserBackCenter.RouteAgency.CompanyPriceDetail>();
                UserBackCenter.RouteAgency.CompanyPriceDetail        cpModel    = null;
                if (PriceLists != null && PriceLists.Count > 0)
                {
                    ((List <EyouSoft.Model.TourStructure.TourPriceDetail>)PriceLists).ForEach(item =>
                    {
                        cpModel = new UserBackCenter.RouteAgency.CompanyPriceDetail();
                        cpModel.PriceStandName = item.PriceStandName;
                        ((List <EyouSoft.Model.TourStructure.TourPriceCustomerLeaveDetail>)item.PriceDetail).ForEach(childItem =>
                        {
                            switch (childItem.CustomerLevelType)
                            {
                            case EyouSoft.Model.CompanyStructure.CustomerLevelType.行:
                                cpModel.AdultPrice1    = childItem.AdultPrice;
                                cpModel.ChildrenPrice1 = childItem.ChildrenPrice;
                                break;

                            case EyouSoft.Model.CompanyStructure.CustomerLevelType.门市:
                                cpModel.AdultPrice2    = childItem.AdultPrice;
                                cpModel.ChildrenPrice2 = childItem.ChildrenPrice;
                                break;

                            case EyouSoft.Model.CompanyStructure.CustomerLevelType.单房差:
                                cpModel.SingleRoom1 = childItem.AdultPrice;
                                cpModel.SingleRoom2 = childItem.ChildrenPrice;
                                break;
                            }
                        });
                        newLists.Add(cpModel);
                        cpModel = null;
                    });
                    this.rptTourPriceDetail.DataSource = newLists;
                    this.rptTourPriceDetail.DataBind();
                    newLists = null;
                }
                PriceLists = null;
                #endregion

                #region 团队相关信息
                RouteName = model.RouteName;
                LeaveDate = model.LeaveDate;
                BackDate  = model.ComeBackDate;
                TourDays  = model.TourDays;
                TourCode  = model.TourNo;
                if (model.ReleaseType == EyouSoft.Model.TourStructure.ReleaseType.Standard)//标准发布
                {
                    if (!string.IsNullOrEmpty(model.LeaveTraffic))
                    {
                        ltrTraffic.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.LeaveTraffic);
                    }
                    else
                    {
                        Tr_Traffic.Visible = false;
                    }
                    if (!string.IsNullOrEmpty(model.MeetTourContect))
                    {
                        ltrMeetTourContect.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.MeetTourContect);
                    }
                    else
                    {
                        Tr_MeetTourContect.Visible = false;
                    }
                    if (!string.IsNullOrEmpty(model.CollectionContect))
                    {
                        ltrCollectionContect.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.CollectionContect);
                    }
                    else
                    {
                        Tr_CollectionContect.Visible = false;
                    }

                    //行程信息及相关
                    rptStandardPlan.DataSource = model.StandardPlan;
                    rptStandardPlan.DataBind();
                    //服务标准及说明
                    if (model.ServiceStandard != null)
                    {
                        ResideContent       = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.ResideContent);       //住宿
                        DinnerContent       = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.DinnerContent);       //用餐
                        SightContent        = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.SightContent);        //景点
                        CarContent          = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.CarContent);          //用车
                        GuideContent        = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.GuideContent);        //导游
                        TrafficContent      = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.TrafficContent);      //往返交通
                        IncludeOtherContent = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.IncludeOtherContent); //其它
                        if (!string.IsNullOrEmpty(model.ServiceStandard.NotContainService))
                        {
                            NotContainService = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.NotContainService);
                        }
                        else
                        {
                            Tr_NotContainService.Visible = false;
                        }
                        if (!string.IsNullOrEmpty(model.ServiceStandard.SpeciallyNotice))
                        {
                            SpeciallyNotice = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.SpeciallyNotice);
                        }
                        else
                        {
                            Tr_SpeciallyNotice.Visible = false;
                        }
                    }
                }
                else//快速发布
                {
                    pnlServiceStandard.Visible   = false;
                    Tr_CollectionContect.Visible = false;
                    Tr_MeetTourContect.Visible   = false;
                    Tr_Traffic.Visible           = false;
                    QuickPlanContent             = model.QuickPlan;
                }
                #endregion
            }
            Ibll  = null;
            model = null;
        }
コード例 #17
0
        private void InitPage()
        {
            EyouSoft.IBLL.TourStructure.ITour     Ibll  = EyouSoft.BLL.TourStructure.Tour.CreateInstance();
            EyouSoft.Model.TourStructure.TourInfo model = Ibll.GetTourInfo(TourID);
            if (model != null)
            {
                #region 获取所属公司信息
                EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll  = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
                EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(model.CompanyID);
                CompanyName      = companyInfoModel.CompanyName;
                CompanyAddress   = companyInfoModel.CompanyAddress;
                License          = companyInfoModel.License;
                ICompanyInfobll  = null;
                companyInfoModel = null;
                #endregion
                List <EyouSoft.Model.TourStructure.TourPriceDetail> priceList = new List <EyouSoft.Model.TourStructure.TourPriceDetail>();
                priceList = (List <EyouSoft.Model.TourStructure.TourPriceDetail>)model.TourPriceDetail;
                #region 团队报价等级处理
                //用于数据绑定
                List <CPriceDetail> BindPriceList = new List <CPriceDetail>();
                CPriceDetail        cModel        = null;
                //该团队的报价等级明细
                priceList.ForEach(delegate(EyouSoft.Model.TourStructure.TourPriceDetail item)
                {
                    cModel = new CPriceDetail();
                    cModel.PriceStandName = item.PriceStandName;
                    ((List <EyouSoft.Model.TourStructure.TourPriceCustomerLeaveDetail>) item.PriceDetail).ForEach(delegate(EyouSoft.Model.TourStructure.TourPriceCustomerLeaveDetail itemPriceLeave)
                    {
                        switch (itemPriceLeave.CustomerLevelType)
                        {
                        case EyouSoft.Model.CompanyStructure.CustomerLevelType.行:
                            cModel.AdultPrice    = itemPriceLeave.AdultPrice;
                            cModel.ChildrenPrice = itemPriceLeave.AdultPrice;
                            break;

                        case EyouSoft.Model.CompanyStructure.CustomerLevelType.单房差:
                            cModel.SingleRoom = itemPriceLeave.ChildrenPrice;
                            break;
                        }
                        ;
                    });
                    BindPriceList.Add(cModel);
                });
                BindPriceList = null;
                cModel        = null;
                this.rptTourPriceDetail.DataSource = BindPriceList;
                this.rptTourPriceDetail.DataBind();
                #endregion
                if (((int)model.ReleaseType) == 0)
                {
                    rptStandardPlan.DataSource = model.StandardPlan;
                    rptStandardPlan.DataBind();
                }
                else
                {
                    QuickPlanContent = model.QuickPlan;
                }
            }
            Ibll  = null;
            model = null;
        }
コード例 #18
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string requestType = Request.QueryString["type"] != null ? Request.QueryString["type"].ToString().ToLower() : "";

            if (requestType == "save")
            {
                Save();
            }
            // 判断用户是否登录,如果没有登录跳转到登录页面
            if (!IsLogin)
            {
                EyouSoft.Security.Membership.UserProvider.RedirectLogin(Domain.UserBackCenter + "/TicketsCenter/Default.aspx");
                return;
            }

            //判断用户所在公司,在运营后台是否通过了审核
            if (!IsCompanyCheck)//没有通过审核
            {
                Utils.ShowError("对不起,您还没通过审核,不能进入机票供应商后台!", "ticketscenter");
                return;
            }

            //判断用户是否是机票供应商用户
            if (!IsAirTicketSupplyUser)//不是
            {
                Utils.ShowError("对不起,您不是机票供应商用户,不能进入机票供应商后台!", "ticketscenter");
                return;
            }

            //判断用户绑定的支付帐户信息 是否已经成功加入支付圈
            EyouSoft.IBLL.TicketStructure.ITicketCompanyAccount bll =
                EyouSoft.BLL.TicketStructure.TicketCompanyAccount.CreateInstance();

            //当前只能判断支付宝接口和财付通接口的帐户
            IList <EyouSoft.Model.TicketStructure.TicketCompanyAccount> accountList =
                bll.GetTicketCompanyAccountList(SiteUserInfo.CompanyID);

            if (accountList != null && accountList.Count > 0)
            {
                foreach (EyouSoft.Model.TicketStructure.TicketCompanyAccount account in accountList)
                {
                    if (account.InterfaceType == EyouSoft.Model.TicketStructure.TicketAccountType.支付宝)
                    {
                        if (account.IsSign)//已经签约
                        {
                            continue;
                        }
                        //通过 支付宝查询是否签约接口,获取该帐户是否已经签约
                        Query_Customer queryCustomer = new Query_Customer(
                            AlipayParameters.Partner,
                            AlipayParameters.Key,
                            AlipayParameters.SignType,
                            AlipayParameters.Input_Charset,
                            account.AccountNumber);
                        Query_Customer_Result queryCustomerResult = queryCustomer.GetResult();
                        if (queryCustomerResult.IsSuccess_Refund_Charge)//已经签约
                        {
                            //将成功签约的状态保存到数据库中
                            account.IsSign = true;
                            bll.SetIsSign(account.CompanyId, account.InterfaceType, true);
                        }
                    }
                    else if (account.InterfaceType == EyouSoft.Model.TicketStructure.TicketAccountType.财付通)
                    {
                        if (account.IsSign)//已经建立委托退款关系
                        {
                            continue;
                        }
                        //通过 财付通查询是否建立委托退款关系接口,获取该帐户是否已经建立委托关系
                        trustRefundQuerys querys = new trustRefundQuerys(
                            TenpayParameters.Bargainor_ID,
                            account.AccountNumber,
                            TenpayParameters.Key,
                            Context);
                        bool isTrust = querys.IsTrustRefund();
                        if (isTrust == true)//已经建立关系
                        {
                            //将成功建立关系的状态保存到数据库中
                            account.IsSign = true;
                            bll.SetIsSign(account.CompanyId, account.InterfaceType, true);
                        }
                    }
                }
            }

            //初始化订单管理列表
            diclist = EyouSoft.BLL.TicketStructure.TicketOrder.CreateInstance().GetSupplierHandelStats(SiteUserInfo.CompanyID);

            //初始化公司信息
            ltrCompanyName.Text = SiteUserInfo.CompanyName;
            EyouSoft.IBLL.CompanyStructure.ICompanyInfo       CompanyInfo      = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
            EyouSoft.Model.CompanyStructure.CompanyDetailInfo CompanyInfoModel = CompanyInfo.GetModel(SiteUserInfo.CompanyID);
            if (CompanyInfoModel != null)
            {
                if (!String.IsNullOrEmpty(CompanyInfoModel.AttachInfo.CompanyLogo.ImagePath))
                {
                    this.imgLogo.Src = Domain.FileSystem + CompanyInfoModel.AttachInfo.CompanyLogo.ImagePath;
                }
                else
                {
                    this.imgLogo.Src = ImageServerUrl + "/images/logo.gif";
                }
            }
            ltrUserName.Text = SiteUserInfo.UserName;

            //初始化  现有运价数 ,平台用户数
            int gongYingUserCount = 0;

            EyouSoft.Model.SystemStructure.SummaryCount scount =
                EyouSoft.BLL.SystemStructure.SummaryCount.CreateInstance().GetSummary();
            if (scount != null)
            {
                gongYingUserCount = scount.TicketCompanyVirtual;
            }
            ltrGongYingCompanyCount.Text = gongYingUserCount.ToString();

            //初始化用户资料
            EyouSoft.IBLL.TicketStructure.ITicketSupplierInfo isupplierInfoBll =
                EyouSoft.BLL.TicketStructure.TicketSupplierInfo.CreateInstance();
            EyouSoft.Model.TicketStructure.TicketWholesalersAllInfo allInfo =
                isupplierInfoBll.GetSupplierInfo(SiteUserInfo.CompanyID);
            if (allInfo != null)
            {
                Default_ContactPeople.Value = allInfo.ContactName;                              //联系人
                Default_Phone.Value         = allInfo.ContactTel;                               //联系电话
                ltrUserLevel.Text           = allInfo.ProxyLev;                                 //代理级别
                ltrTicketSuccess.Text       = (allInfo.SuccessRate * 100).ToString("F1") + "%"; //出票成功率
                Default_ICP.Value           = allInfo.ICPNumber;                                //ICP备案号
                Default_Url.Value           = allInfo.WebSite;                                  //网址

                string licenceImg = allInfo.AttachInfo.BusinessCertif.LicenceImg;               //营业执照
                //判断是否有上传了营业执照
                if (!string.IsNullOrEmpty(licenceImg))                                          //有
                {
                    //显示 查看图片链接
                    ltrFile1.Text = string.Format("<a href='{0}' target='_blank'>查看</a>", Domain.FileSystem + licenceImg);
                }
                else
                {
                    ltrFile1.Text = "暂无营业执照";
                }

                string bronze = allInfo.AttachInfo.Bronze; //铜牌
                //判断是否有上传了铜牌
                if (!string.IsNullOrEmpty(bronze))         //有
                {
                    //显示 查看图片链接
                    ltrFile2.Text = string.Format("<a href='{0}' target='_blank'>查看</a>", Domain.FileSystem + bronze);
                }
                else
                {
                    ltrFile2.Text = "暂无铜牌图片";
                }

                string tradeAward = allInfo.AttachInfo.TradeAward; //行业奖项
                //判断是否有上传了行业奖项
                if (!string.IsNullOrEmpty(tradeAward))             //有
                {
                    //显示 查看图片链接
                    ltrFile3.Text = string.Format("<a href='{0}' target='_blank'>查看</a>", Domain.FileSystem + tradeAward);
                }
                else
                {
                    ltrFile3.Text = "暂无行业奖项图片";
                }

                Default_Remark.Value = allInfo.CompanyRemark;//备注
            }
        }
コード例 #19
0
        private void InitLocalAgencyList()
        {
            int    intRecordCount = 0;
            string CompanyName    = Server.UrlDecode(Utils.GetQueryStringValue("CompanyName"));
            string ContactName    = Server.UrlDecode(Utils.GetQueryStringValue("ContactName"));

            CurrencyPage = Utils.GetInt(Utils.InputText(Request.QueryString["Page"]), 1);
            EyouSoft.IBLL.CompanyStructure.ICompanyInfo        bll   = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
            EyouSoft.Model.CompanyStructure.QueryParamsCompany query = new EyouSoft.Model.CompanyStructure.QueryParamsCompany();
            query.CityId      = RequestCityID;
            query.CompanyName = CompanyName;
            query.ContactName = ContactName;
            query.PorvinceId  = ProvinceID;
            IList <EyouSoft.Model.CompanyStructure.CompanyInfo> list = bll.GetListLocalAgency(query, intPageSize, CurrencyPage, ref intRecordCount);

            if (intRecordCount > 0)
            {
                string[] CompanyIDList = new string[list.Count];
                CompanyIDList = (from c in list where true select c.ID).ToArray();
                AttachList    = EyouSoft.BLL.CompanyStructure.CompanyAttachInfo.CreateInstance().GetList(CompanyIDList);

                this.rptLocalAgencyList.DataSource = list;
                this.rptLocalAgencyList.DataBind();

                if (EyouSoft.Common.URLREWRITE.UrlReWriteUtils.IsReWriteUrl(Request))
                {
                    this.ExporPageInfoSelect1.Placeholder  = "#PageIndex#";
                    this.ExporPageInfoSelect1.IsUrlRewrite = true;
                    string strTemp = EyouSoft.Common.URLREWRITE.UrlReWriteUtils.GetUrlForPage(Request);
                    if (strTemp.Split('_').Count() == 3)
                    {
                        this.ExporPageInfoSelect1.PageLinkURL = strTemp.Split('_')[0] + "_" + strTemp.Split('_')[1] + "_0" + "_" + CityId + "_#PageIndex#";
                    }
                    else
                    {
                        this.ExporPageInfoSelect1.PageLinkURL = strTemp + "_#PageIndex#";
                    }
                    //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.ExporPageInfoSelect1.intPageSize    = intPageSize;
                this.ExporPageInfoSelect1.CurrencyPage   = CurrencyPage;
                this.ExporPageInfoSelect1.intRecordCount = intRecordCount;
                //this.ExporPageInfoSelect1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"] + "?CityID=" + CityId + "&";
                //this.ExporPageInfoSelect1.UrlParams = Request.QueryString;
            }
            else
            {
                this.ExporPageInfoSelect1.Visible = false;
                this.pnlNoData.Visible            = true;
            }

            this.txtCompanyName.Value = CompanyName;
            this.txtContactName.Value = ContactName;

            list = null;
            bll  = null;
        }