コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!CheckMasterGrant(YuYingPermission.业114广告_管理该栏目))
            {
                Utils.ResponseNoPermit(YuYingPermission.业114广告_管理该栏目, true);
                return;
            }
            #region 异步删除数据
            if (Request.QueryString["mode"] != null && Request.QueryString["mode"].ToString() == "del")
            {
                bool result = EyouSoft.BLL.AdvStructure.SiteExtend.CreateInstance().DelSiteExtend(Utils.GetInt(Request.QueryString["id"], 0));
                Response.Clear();
                if (result)
                {
                    Response.Write("success");
                }
                else
                {
                    Response.Write("error");
                }
                Response.End();
            }
            #endregion

            #region 异步添加数据
            if (Request.QueryString["mode"] != null && Request.QueryString["mode"].ToString() == "add")
            {
                string strHtml = "error";
                Response.Clear();
                int    CityId    = Utils.GetInt(Request.QueryString["cityid"], 0);
                string companyId = Request.QueryString["cid"] == null?"":Request.QueryString["cid"].ToString();
                if (CityId > 0 && !string.IsNullOrEmpty(companyId))
                {
                    EyouSoft.Model.CompanyStructure.CompanyDetailInfo CompanyInfo = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(companyId);
                    if (CompanyInfo != null)
                    {
                        EyouSoft.Model.AdvStructure.SiteExtendInfo model = new EyouSoft.Model.AdvStructure.SiteExtendInfo();
                        model.CompanyID   = CompanyInfo.ID;
                        model.CompanyName = CompanyInfo.CompanyName;
                        model.IsBold      = false;
                        model.IsShow      = true;
                        model.ShowCityID  = CityId;
                        model.SortID      = 0;
                        EyouSoft.BLL.AdvStructure.SiteExtend.CreateInstance().AddSiteExtend(model);
                        model   = null;
                        strHtml = JsonConvert.SerializeObject(EyouSoft.BLL.AdvStructure.SiteExtend.CreateInstance().GetSiteExtendList(CityId, true));
                    }
                    CompanyInfo = null;
                }
                Response.Write(strHtml);
                Response.End();
            }
            #endregion

            if (Request.QueryString["mode"] != null && (Request.QueryString["mode"].ToString().ToLower() == "getlist" ||
                                                        Request.QueryString["mode"].ToString().ToLower() == "getalllist"))
            {
                BindList();
            }
        }
コード例 #2
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
         {
         }
     }
 }
コード例 #3
0
        private void InitCompanyInfo()
        {
            EyouSoft.Model.CompanyStructure.CompanyDetailInfo compDetail = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(CompanyID); //公司详细信息
            if (compDetail != null)
            {
                CompanyBrand        = compDetail.CompanyBrand;
                ltr_Address.Text    = "地址:" + compDetail.CompanyAddress;
                ltr_LinkPerson.Text = "联系人:" + compDetail.ContactInfo.ContactName;
                ltr_Fax.Text        = "传真:" + compDetail.ContactInfo.Fax;
                ltr_Mobile.Text     = "手机:" + compDetail.ContactInfo.Mobile;
                ltr_Phone.Text      = "电话:" + compDetail.ContactInfo.Tel;

                if (!string.IsNullOrEmpty(compDetail.ContactInfo.MQ))
                {
                    Mqpath = string.Format("<img src=\"{0}/Images/seniorshop/mqonline.gif\" width=\"70\" height=\"18\" />", ImageManage.GetImagerServerUrl(1));
                }//compDetail.AttachInfo.CompanyShopBanner.ImagePath  图片路径
                BannerImage     = EyouSoft.Common.Utils.GetEShopImgOrFalash(compDetail.AttachInfo.CompanyShopBanner.ImagePath, "javascript:void(0)"); //高级网店头部图片
                CompanyCardPath = Utils.GetLineShopImgPath(compDetail.AttachInfo.CompanyCard.ImagePath, 1); //卡片
            }
            compDetail = null;
            //版权显示
            EyouSoft.Model.ShopStructure.HighShopCompanyInfo info = EyouSoft.BLL.ShopStructure.HighShopCompanyInfo.CreateInstance().GetModel(CompanyID);
            if (info != null)
            {
                ltrCopyRight.Text = info.ShopCopyRight;
            }
            info = null;
        }
コード例 #4
0
 /// <summary>
 /// 初始化公司信息
 /// </summary>
 /// <param name="model"></param>
 private void InitCompanyInfo(EyouSoft.Model.CompanyStructure.CompanyDetailInfo model)
 {
     ltrCompanyName.Text    = model.CompanyName;
     ltrLicense.Text        = model.License;
     ltrProvinceName.Text   = this.GetProvinceName(model.ProvinceId);
     ltrCityName.Text       = this.GetCityName(model.CityId);
     ltrUserName.Text       = model.AdminAccount.UserName;
     ltrContactName.Text    = model.ContactInfo.ContactName;
     ltrTel.Text            = model.ContactInfo.Tel;
     ltrFax.Text            = model.ContactInfo.Fax;
     ltrMobile.Text         = model.ContactInfo.Mobile;
     ltrCommendPeople.Text  = model.CommendPeople;
     ltrCompanyAddress.Text = model.CompanyAddress;
     ltrShortRemark.Text    = model.ShortRemark;
     ltrRemark.Text         = model.Remark;
     #region 经营范围
     IList <EyouSoft.Model.SystemStructure.AreaBase> AreaLists = EyouSoft.BLL.CompanyStructure.CompanyArea.CreateInstance().GetCompanyArea(model.ID);
     string AreaName = string.Empty;
     ((List <EyouSoft.Model.SystemStructure.AreaBase>)AreaLists).ForEach(item =>
     {
         AreaName += item.AreaName + ",";
     });
     ltrShortRemark.Text = AreaName.TrimEnd(',');
     #endregion
 }
コード例 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!CheckGrant(TravelPermission.系统设置_权限管理))
            {
                Utils.ResponseNoPermit();
                haveUpdate = false;
                return;
            }
            EyouSoft.Model.CompanyStructure.CompanyDetailInfo companyModel = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
            //是否开通收费MQ
            //if (!companyModel.StateMore.CompanyService.IsServiceAvailable(EyouSoft.Model.CompanyStructure.SysService.MQ))
            //{
            //    Server.Transfer("/SystemSet/ApplyMQ.aspx");
            //    return;
            //}
            roleBll = EyouSoft.BLL.CompanyStructure.CompanyUserRoles.CreateInstance();
            string method = Utils.GetFormValue("method");

            if (method == "del")
            {
                DelRole();//删除角色
                return;
            }
            LoadRoleList();
        }
コード例 #6
0
        protected override void OnInit(EventArgs e)
        {
            //初始化公司ID
            bool   IsIndependentDomain = false;
            string currentUrlPath      = HttpContext.Current.Request.ServerVariables["Http_Host"];

            //是否正在使用独立域名访问网店
            if (Domain.SeniorOnlineShop.IndexOf(currentUrlPath) == -1)
            {
                IsIndependentDomain = true;
            }
            //如果使用独立域名访问网店,则根据域名查询所属公司ID.
            if (IsIndependentDomain)
            {
                EyouSoft.Model.SystemStructure.SysCompanyDomain cDomianModel = EyouSoft.BLL.SystemStructure.SysCompanyDomain.CreateInstance().
                                                                               GetSysCompanyDomain(EyouSoft.Model.SystemStructure.DomainType.网店域名, currentUrlPath);
                if (cDomianModel != null)
                {
                    _CompanyId       = cDomianModel.CompanyId;
                    this.TABLINKS_SY = "/";
                }
            }
            //如果没有使用独立域名访问网店,则从QueryString集合中查找cid参数,获取公司ID
            if (string.IsNullOrEmpty(_CompanyId))
            {
                _CompanyId = Utils.GetQueryStringValue("cid");
            }
            //获取高级网店信息和公司信息
            _detailCompanyInfo = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(_CompanyId);
            if (_detailCompanyInfo == null)
            {
                Utils.ShowError("高级网店不存在!", "SeniorShop");
                return;
            }
            //判断是否开通高级网店
            if (_detailCompanyInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.专线))
            {
                bool isOpenShop = false;
                isOpenShop = Utils.IsOpenHighShop(_CompanyId);
                //EyouSoft.Model.CompanyStructure.CompanyState state = new EyouSoft.Model.CompanyStructure.CompanyState();
                //Utils.GetCompanyDomain(CompanyId, out state,out isOpenShop, EyouSoft.Model.CompanyStructure.CompanyType.专线);
                if (!isOpenShop)
                {
                    Utils.ShowError("该公司未开通高级网店!", "SeniorShop");
                    return;
                }
            }

            _highCompanyInfo = EyouSoft.BLL.ShopStructure.HighShopCompanyInfo.CreateInstance().GetModel(_CompanyId);

            if (_highCompanyInfo == null)
            {
                Utils.ShowError("高级网店不存在!", "SeniorShop");
                return;
            }
            Utils.EShopTemplateValidate(this.CompanyId, _highCompanyInfo.TemplateId);

            base.OnInit(e);
        }
コード例 #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!CheckGrant(TravelPermission.系统设置_权限管理))
            {
                Utils.ResponseNoPermit();
                return;
            }
            if (!CheckGrant(TravelPermission.系统设置_权限管理, TravelPermission.系统设置_子账户管理))
            {
                haveUpdate = false;
            }
            EyouSoft.Model.CompanyStructure.CompanyDetailInfo companyModel = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
            //是否开通收费MQ
            //if (!companyModel.StateMore.CompanyService.IsServiceAvailable(EyouSoft.Model.CompanyStructure.SysService.MQ))
            //{
            //    Server.Transfer("/SystemSet/ApplyMQ.aspx");
            //    return;
            //}
            EyouSoft.Model.CompanyStructure.CompanySetting comSeting = EyouSoft.BLL.CompanyStructure.CompanySetting.CreateInstance().GetModel(SiteUserInfo.CompanyID);
            if (comSeting != null)
            {
                SonUserNumLimit = comSeting.OperatorLimit;
            }
            //是否开通专线,如果开通则显示专线区域列
            if (SiteUserInfo.CompanyRole.RoleItems.Contains(EyouSoft.Model.CompanyStructure.CompanyType.专线))
            {
                isArea = true;
            }
            sonUserBll = EyouSoft.BLL.CompanyStructure.CompanyUser.CreateInstance();
            pageIndex  = Utils.GetInt(Request.QueryString["Page"], 1);
            itemIndex  = (pageIndex - 1) * pageSize + 1;
            string method = Utils.GetFormValue("method");

            if (method == "del")//删除子账户
            {
                if (!haveUpdate)
                {
                    Utils.ResponseMeg(false, "对不起,你没有该权限!");
                    return;
                }
                DelSonUser();
                return;
            }
            if (method == "setforbid")//设置用户状态
            {
                if (!haveUpdate)
                {
                    Utils.ResponseMeg(false, "对不起,你没有该权限!");
                    return;
                }
                SetForbid();
                return;
            }
            userName = SiteUserInfo.UserName;
            LoadSonUserList();//绑定子账户列表
        }
コード例 #8
0
 protected override void OnInit(EventArgs e)
 {
     //初始化公司ID
     _CompanyId = Utils.InputText(Request.QueryString["cid"]);
     EyouSoft.Model.CompanyStructure.CompanyDetailInfo _detailCompanyInfo = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(_CompanyId);
     //if (_detailCompanyInfo == null)
     //{
     //    Utils.ShowError("普通网店不存在!", "Shop");
     //    return;
     //}
     compDetail = _detailCompanyInfo;
     base.OnInit(e);
 }
コード例 #9
0
 private void InitOldImg(EyouSoft.Model.CompanyStructure.CompanyDetailInfo deinfo)
 {
     divOldTemplate.Visible = true;
     divNewTemplate.Visible = false;
     if (deinfo != null)
     {
         string imgpath = deinfo.AttachInfo.CompanyShopBanner.ImagePath;   //高级网店头部图片路径
         hdfAgoImgPath.Value = imgpath;
         if (!string.IsNullOrEmpty(imgpath))
         {
             ltr_logo.Text = string.Format("<a href={0}  target='_blank'  title=\"点击查看\" >查看原图</a>", Domain.FileSystem + imgpath);
         }
     }
 }
コード例 #10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!CheckGrant(TravelPermission.系统设置_部门设置))
            {
                haveUpdate = false;
            }
            EyouSoft.Model.CompanyStructure.CompanyDetailInfo companyModel = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
            //是否开通收费MQ
            //if (!companyModel.StateMore.CompanyService.IsServiceAvailable(EyouSoft.Model.CompanyStructure.SysService.MQ))
            //{
            //    Server.Transfer("/SystemSet/ApplyMQ.aspx");
            //    return;
            //}
            companyDepartBll = EyouSoft.BLL.CompanyStructure.CompanyDepartment.CreateInstance();
            string method = Request.QueryString["method"];

            if (method == "save")
            {
                if (!haveUpdate)
                {
                    Utils.ResponseMeg(false, "对不起,你没有该权限!");
                    return;
                }
                UpadateDepart();//修改部门
                return;
            }
            if (method == "del")
            {
                if (!haveUpdate)
                {
                    Utils.ResponseMeg(false, "对不起,你没有该权限!");
                    return;
                }
                DelDepart();//删除部门
                return;
            }
            if (method == "add")
            {
                if (!haveUpdate)
                {
                    Utils.ResponseMeg(false, "对不起,你没有改权限!");
                    return;
                }
                AddDepart();//添加部门
                return;
            }

            LoadDepartList();
        }
コード例 #11
0
 /// <summary>
 /// 初始化用户信息
 /// </summary>
 private void InitUserInfo()
 {
     //发布联系信息初始化
     if (IsLogin)
     {
         ltrCompanyName.ToolTip = SiteUserInfo.CompanyName;
         ltrCompanyName.Text    = Utils.GetText2(SiteUserInfo.CompanyName, 10, false);
         EyouSoft.Model.CompanyStructure.CompanyAttachInfo model = EyouSoft.BLL.CompanyStructure.CompanyAttachInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
         if (model != null)
         {
             string CompanyLogo = ImageServerUrl + "/Images/UserPublicCenter/defaultlogo.jpg";
             if (model.CompanyLogo.ImagePath.Length > 0)
             {
                 CompanyLogo = Domain.FileSystem + model.CompanyLogo.ImagePath;
             }
             ltrCompanyLog.Text = string.Format("<img src=\"{0}\" width=\"142\" height=\"80\" />", CompanyLogo);
         }
         model = null;
         EyouSoft.Model.CompanyStructure.CompanyDetailInfo CompanyModel = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
         if (CompanyModel != null)
         {
             aSupplyInfo1.HRef = Domain.UserBackCenter + "/supplyinformation/allsupplymanage.aspx";
             aSupplyInfo2.HRef = Domain.UserBackCenter + "/supplyinformation/allsupplymanage.aspx";
             aSupplyInfo3.HRef = Domain.UserBackCenter + "/supplyinformation/hassupplyfavorites.aspx";
             aEditUser.HRef    = Domain.UserBackCenter + "/SupplyManage/FreeShop.aspx";
             if (CompanyModel.BusinessProperties != EyouSoft.Model.CompanyStructure.BusinessProperties.旅游社)
             {
                 aEditUser.HRef = Domain.UserBackCenter + "/SupplyManage/MyOwenerShop.aspx";
                 EyouSoft.Model.CompanyStructure.CompanyService ServiceModel = CompanyModel.StateMore.CompanyService;;
                 bool IsOpenHighShop = ServiceModel.IsServiceAvailable(EyouSoft.Model.CompanyStructure.SysService.HighShop);
                 if (IsOpenHighShop)
                 {
                     aEditUser.HRef = Domain.UserBackCenter + "/SupplyManage/Default.aspx";
                 }
                 ServiceModel = null;
             }
             EyouSoft.Model.CompanyStructure.CompanyType?cType = Utils.GetCompanyType(SiteUserInfo.CompanyID);
             if (cType.HasValue)
             {
                 aShop.HRef = Utils.GetCompanyDomain(SiteUserInfo.CompanyID, cType.Value);
             }
             else
             {
                 aShop.Visible = false;
             }
         }
         CompanyModel = null;
     }
 }
コード例 #12
0
 protected void InitCompanyInfo()
 {
     EyouSoft.Model.CompanyStructure.CompanyDetailInfo info = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(Master.CompanyId);
     if (info != null)
     {
         ltr_Address.Text     = info.CompanyAddress;
         ltr_CompanyInfo.Text = info.Remark;
         ltr_CompanyName.Text = info.CompanyName;
         ltr_License.Text     = info.License;
         ltr_Mobile.Text      = info.ContactInfo.Mobile;
         ltr_Person.Text      = info.ContactInfo.ContactName;
         ltr_Phone.Text       = info.ContactInfo.Tel;
     }
     info = null;
 }
コード例 #13
0
        protected override void OnInit(EventArgs e)
        {
            //初始化公司ID
            _companyid = Utils.GetQueryStringValue("cid");
            var detailCompanyInfo = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(_companyid);

            if (detailCompanyInfo == null || detailCompanyInfo.StateMore.IsDelete)
            {
                Utils.ShowError("普通网店不存在!", "Shop");
                return;
            }
            _companyinfo = detailCompanyInfo;
            Companylev   = _companyinfo.CompanyLev;
            base.OnInit(e);
        }
コード例 #14
0
 /// <summary>
 /// 初始化页面
 /// </summary>
 private void InitPage()
 {
     EyouSoft.Model.CompanyStructure.CompanyDetailInfo compDetail = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(CompanyId); //公司详细信息
     if (compDetail != null)
     {
         txtCompanyBrand.Value =Utils.InputText( compDetail.CompanyBrand);                  
         txtOfficeAddress.Value =Utils.InputText(compDetail.CompanyAddress);
         txtContactFax.Value =Utils.InputText(compDetail.ContactInfo.Fax);
         txtContactName.Value =Utils.InputText(compDetail.ContactInfo.ContactName);
         txtContactTel.Value =Utils.InputText(compDetail.ContactInfo.Tel);
         txtContactMobile.Value =Utils.InputText(compDetail.ContactInfo.Mobile);
         txtMQ.Value =Utils.InputText(compDetail.ContactInfo.MQ); 
     }
     compDetail = null;                             
 }
コード例 #15
0
        //初始化信息
        private void InitInfo()
        {
            EyouSoft.Model.CompanyStructure.CompanyDetailInfo deinfo = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(this.SiteUserInfo.CompanyID);
            string strType = Utils.GetQueryStringValue("Type");

            if (string.IsNullOrEmpty(strType))
            {
                InitOldImg(deinfo);
            }
            else if (strType.ToLower() == "t4")
            {
                InitNewImg(deinfo);
            }

            deinfo = null;
        }
コード例 #16
0
        /// <summary>
        /// 初始化模版四的log图片
        /// </summary>
        /// <param name="deinfo">公司信息实体</param>
        private void InitNewImg(EyouSoft.Model.CompanyStructure.CompanyDetailInfo deinfo)
        {
            divOldTemplate.Visible = false;
            divNewTemplate.Visible = true;
            if (deinfo != null)
            {
                switch (deinfo.AttachInfo.CompanyShopBanner.BannerType)
                {
                case EyouSoft.Model.CompanyStructure.ShopBannerType.Default:
                    ckbDefault.Checked = true;
                    MessageBox.ResponseScript(this, "ShowFileUp('d')");
                    break;

                case EyouSoft.Model.CompanyStructure.ShopBannerType.Personalize:
                    ckbCustom.Checked = true;
                    MessageBox.ResponseScript(this, "ShowFileUp('c')");
                    break;

                default:
                    ckbDefault.Checked = true;
                    MessageBox.ResponseScript(this, "ShowFileUp('d')");
                    break;
                }

                //公司log
                string strLogo = deinfo.AttachInfo.CompanyShopBanner.CompanyLogo;
                //背景
                string strBackImg = deinfo.AttachInfo.CompanyShopBanner.BannerBackground;
                //个性化定制图片
                string strCustomImg = deinfo.AttachInfo.CompanyShopBanner.ImagePath;
                hidCompanyLog.Value = strLogo;
                hidBackImg.Value    = strBackImg;
                hidCustomImg.Value  = strCustomImg;
                if (!string.IsNullOrEmpty(strLogo))
                {
                    ltrCompanyLog.Text = string.Format("<a href='{0}'  target='_blank'  title=\"点击查看\" >查看原图</a>", Domain.FileSystem + strLogo);
                }
                if (!string.IsNullOrEmpty(strBackImg))
                {
                    ltrBackImg.Text = string.Format("<a href='{0}'  target='_blank'  title=\"点击查看\" >查看原图</a>", Domain.FileSystem + strBackImg);
                }
                if (!string.IsNullOrEmpty(strCustomImg))
                {
                    ltrCustomImg.Text = string.Format("<a href='{0}'  target='_blank'  title=\"点击查看\" >查看原图</a>", Domain.FileSystem + strCustomImg);
                }
            }
        }
コード例 #17
0
        /// <summary>
        /// Override OnInit
        /// </summary>
        /// <param name="e"></param>
        protected override void OnInit(EventArgs e)
        {
            //初始化公司ID
            string currentUrlPath = HttpContext.Current.Request.ServerVariables["Http_Host"];

            //如果使用独立域名访问网店,则根据域名查询所属公司ID.
            if (Domain.SeniorOnlineShop.IndexOf(currentUrlPath) == -1)
            {
                EyouSoft.Model.SystemStructure.SysCompanyDomain cDomianModel = EyouSoft.BLL.SystemStructure.SysCompanyDomain.CreateInstance().
                                                                               GetSysCompanyDomain(EyouSoft.Model.SystemStructure.DomainType.网店域名, currentUrlPath);
                if (cDomianModel != null)
                {
                    this._companyid  = cDomianModel.CompanyId;
                    this.TABLINKS_SY = "/";
                }
            }

            //如果没有使用独立域名访问网店,则从QueryString集合中查找cid参数,获取公司ID
            if (string.IsNullOrEmpty(this._companyid))
            {
                this._companyid = Utils.GetQueryStringValue("cid");
            }

            //获取高级网店信息和公司信息
            this._companyinfo = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(this._companyid);
            if (this._companyinfo == null)
            {
                Utils.ShowError("高级网店不存在!", "SeniorShop");
                return;
            }

            //判断是否开通高级网店
            if (this._companyinfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.专线) && !Utils.IsOpenHighShop(this._companyid))
            {
                Utils.ShowError("该公司未开通高级网店!", "SeniorShop");
                return;
            }

            this._companyeshopinfo = EyouSoft.BLL.ShopStructure.HighShopCompanyInfo.CreateInstance().GetModel(this._companyid);

            this.ImageServerUrl = ImageManage.GetImagerServerUrl(1);

            Utils.EShopTemplateValidate(this.CompanyId, _companyeshopinfo.TemplateId);

            base.OnInit(e);
        }
コード例 #18
0
 private void InitCompanyInfo()
 {
     compDetail = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(CompanyId); //公司详细信息
     if (compDetail != null)
     {
         ltr_BrandName.Text   = compDetail.CompanyBrand;
         ltr_CompanyName.Text = compDetail.CompanyName;
         ltr_Address.Text     = compDetail.CompanyAddress;
         ltr_LinkPerson.Text  = compDetail.ContactInfo.ContactName;
         ltr_Faxs.Text        = compDetail.ContactInfo.Fax;
         ltr_Mobel.Text       = compDetail.ContactInfo.Mobile;
         ltr_Phone.Text       = compDetail.ContactInfo.Tel;
         if (compDetail.SaleCity != null && compDetail.SaleCity.Count > 0)
         {
             string SaleCity = string.Empty;
             for (int i = 0; i < compDetail.SaleCity.Count; i++)
             {
                 SaleCity += compDetail.SaleCity[i].CityName + " ";
             }
             ltr_SaleArea.Text = SaleCity;
         }
         //公司类型
         EyouSoft.Model.CompanyStructure.CompanyRole roleModel = compDetail.CompanyRole;
         if (roleModel != null)
         {
             StringBuilder strRoleName = new StringBuilder();
             if (roleModel.RoleItems.Length > 0)
             {
                 for (int i = 0; i < roleModel.RoleItems.Length; i++)
                 {
                     strRoleName.Append(roleModel.RoleItems[i].ToString() + " ");
                 }
             }
             ltr_CompanyType.Text = strRoleName.ToString();
         }
         //mq地址
         if (!string.IsNullOrEmpty(compDetail.ContactInfo.MQ))
         {
             MqPath = Utils.GetBigImgMQ(compDetail.ContactInfo.MQ);
         }
         ImagePath = Utils.GetLineShopImgPath(compDetail.AttachInfo.CompanyImg.ImagePath, 6);
         //Logo 地址
         LogoPath = string.Format("<img src=\"{0}\" width=\"140\" height=\"62\" style=\"border:1px solid #E9E9E9;\"/>", Utils.GetLineShopImgPath(compDetail.AttachInfo.CompanyLogo.ImagePath, 2)); //LogoPath
     }
 }
コード例 #19
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;
 }
コード例 #20
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsLogin)
            {
                EyouSoft.Security.Membership.UserProvider.RedirectLoginOpenTopPage();
            }

            if (!IsPostBack)
            {
                //公司详细信息
                _companyinfo =
                    EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);

                InitCompanyInfo();
                InifCompanyInfoSun();
                GetUnionLogo();
            }
        }
コード例 #21
0
        /// <summary>
        /// 审核
        /// </summary>
        protected bool CheckCompany()
        {
            bool   Result    = false;
            string CompanyId = Request.QueryString["CompanyId"];

            if (!string.IsNullOrEmpty(CompanyId))
            {
                Result = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().PassRegister(CompanyId);
            }
            if (Result)
            {
                EyouSoft.Model.CompanyStructure.CompanyDetailInfo _detailCompanyInfo =
                    EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(CompanyId);      //公司信息
                EyouSoft.Model.CompanyStructure.CompanyUser _companyUser =
                    EyouSoft.BLL.CompanyStructure.CompanyUser.CreateInstance().GetAdminModel(CompanyId); //公司管理员信息
                if (_detailCompanyInfo != null)
                {
                    //审核通过发送短信
                    bool isSend = Utils.SendSMSForReminderRegPass(_detailCompanyInfo.ContactInfo.Mobile, _detailCompanyInfo.AdminAccount.UserName, _detailCompanyInfo.ContactInfo.MQ, _detailCompanyInfo.CityId);

                    if (isSend)
                    {
                        //发送短信记录
                        EyouSoft.Model.ToolStructure.MsgTipRecord tipModel = new EyouSoft.Model.ToolStructure.MsgTipRecord();
                        tipModel.Email    = string.Empty;
                        tipModel.FromMQID = _detailCompanyInfo.ContactInfo.MQ;
                        tipModel.ToMQID   = _detailCompanyInfo.ContactInfo.MQ;
                        tipModel.Mobile   = _detailCompanyInfo.ContactInfo.Mobile;
                        tipModel.MsgType  = EyouSoft.Model.ToolStructure.MsgType.RegPass;
                        tipModel.SendWay  = EyouSoft.Model.ToolStructure.MsgSendWay.SMS;
                        EyouSoft.BLL.ToolStructure.MsgTipRecord msgTipBll = new EyouSoft.BLL.ToolStructure.MsgTipRecord();
                        msgTipBll.Add(tipModel);
                    }

                    //审核通过发送邮件
                    EyouSoft.Common.Email.ReminderEmailHelper.SendRegPassEmail(
                        _detailCompanyInfo.AdminAccount.UserName,
                        _detailCompanyInfo.ContactInfo.Email,
                        _companyUser != null ? _companyUser.PassWordInfo.NoEncryptPassword : "");
                    _detailCompanyInfo = null;
                }
            }
            return(Result);
        }
コード例 #22
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsLogin)//是否登录
            {
                EyouSoft.Security.Membership.UserProvider.RedirectLoginOpenTopPage("/Default.aspx");
                return;
            }
            //if (!CheckGrant(TravelPermission.客户管理_管理栏目))
            //{
            //    Utils.ResponseNoPermit();
            //    return;
            //}
            EyouSoft.Model.CompanyStructure.CompanyDetailInfo companyModel1 = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
            //是否开通收费MQ
            //if (!companyModel1.StateMore.CompanyService.IsServiceAvailable(EyouSoft.Model.CompanyStructure.SysService.MQ))
            //{
            //    Server.Transfer("/SystemSet/ApplyMQ.aspx?iscustomer=yes&urltype=tab", false);
            //    return;
            //}
            companyId = Utils.GetQueryStringValue("companyid");//专线商
            EyouSoft.Model.CompanyStructure.CompanyInfo companyModel = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(companyId);
            companyName = companyModel.CompanyName;
            cer         = companyModel.License;
            admin       = companyModel.ContactInfo.ContactName;
            //获取当前页
            pageIndex = Utils.GetInt(Request.QueryString["Page"], 1);
            EyouSoft.IBLL.TourStructure.ITour tourBll = EyouSoft.BLL.TourStructure.Tour.CreateInstance();
            areaBll = EyouSoft.BLL.SystemStructure.SysArea.CreateInstance();
            //绑定产品列表
            IList <EyouSoft.Model.TourStructure.TourBasicInfo> tourInfoList = tourBll.GetNotStartingTours(pageSize, pageIndex, ref recordCount, companyId, null);

            if (tourInfoList != null && tourInfoList.Count > 0)
            {
                tl_rpt_TourList.DataSource = tourInfoList;
                tl_rpt_TourList.DataBind();
                BindPage();
            }
            else
            {
                tl_rpt_TourList.EmptyText    = "暂无团队信息";
                this.ExportPageInfo1.Visible = false;
            }
            tourInfoList = null;
        }
コード例 #23
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.IsLogin)
     {
         EyouSoft.Security.Membership.UserProvider.RedirectLoginOpenTopPage();
     }
     if (!IsPostBack)
     {
         EyouSoft.Model.CompanyStructure.CompanyDetailInfo deinfo = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(this.SiteUserInfo.CompanyID);
         if (deinfo != null)
         {
             if (!string.IsNullOrEmpty(deinfo.AttachInfo.CompanyImg.ImagePath))
             {
                 lbl_showImg.Text = string.Format("<a href='{0}' target='_blank' title='点击查看'>查看原图</a> ", Domain.FileSystem + deinfo.AttachInfo.CompanyImg.ImagePath); //图片路径
             }
         }
         deinfo = null;
     }
 }
コード例 #24
0
 /// <summary>
 /// 根据companyID获取公司信息
 /// </summary>
 /// <param name="companyid">公司ID</param>
 /// <returns></returns>
 protected string GetCgsCompanyInfo(string companyid)
 {
     if (!string.IsNullOrEmpty(companyid))
     {
         EyouSoft.Model.CompanyStructure.CompanyDetailInfo detail = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(companyid);
         if (detail != null)
         {
             return(string.Format("<a href=\"javascript:void(0)\" onmouseover=\"wsug(this, '用户名:{0}<br/>真实名:{1}<br/>固定联系电话:{2}<br/>手机:{3}<br/>公司名称:{4}<br/>地址:{5}<br/>')\" onmouseout=\"wsug(this, 0)\">{6}</a>", detail.AdminAccount.UserName, detail.ContactInfo.ContactName, detail.ContactInfo.Tel, detail.ContactInfo.Mobile, detail.CompanyName, detail.CompanyAddress, detail.AdminAccount.UserName));
         }
         else
         {
             return("");
         }
     }
     else
     {
         return("");
     }
 }
コード例 #25
0
        private void InitBasicData()
        {
            EyouSoft.Model.CompanyStructure.CompanyDetailInfo model = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(CompanyID);
            if (model == null || model.StateMore.IsCheck == false || model.StateMore.IsEnabled == false || model.StateMore.IsDelete)
            {
                Utils.ShowError("该网店不存在!请浏览其他页面。", "Tour");
                return;
            }

            if (model.AttachInfo != null)
            {
                imgLogo.Src = Utils.GetNewImgUrl(model.AttachInfo.CompanyLogo.ImagePath, 3);
            }
            this.ltrCompanyName.Text = model.CompanyName;
            this.ltrLicense.Text     = model.License;
            CompanyRemark            = model.Remark;
            if (model.Remark.Length > 130)
            {
                this.ltrRemark.Text  = "<span id=\"spanRemark\">" + Utils.InputText(Utils.GetText(model.Remark, 130, false)) + "【<a href=\"#\">查看详细</a>】</span>";
                this.ltrRemark1.Text = "<span id=\"spanRemark1\">" + Utils.InputText(model.Remark) + "【<a href=\"#\">隐藏详细</a>】</span>";
            }
            else
            {
                this.ltrRemark.Text = Utils.InputText(model.Remark);
            }
            this.ltrCompanyName1.Text = model.CompanyName;
            this.ltrLicense1.Text     = model.License;
            this.ltrBrandName.Text    = model.CompanyBrand;
            if (model.ContactInfo != null)
            {
                this.ltrContactName.Text = model.ContactInfo.ContactName + Utils.GetMQ(model.ContactInfo.MQ);
                this.ltrMobile.Text      = GetMoible(model.ContactInfo.Mobile);//手机号码中间4位显示*
                this.ltrTel.Text         = model.ContactInfo.Tel;
                this.ltrFax.Text         = model.ContactInfo.Fax;
            }
            this.ltrAddress.Text = model.CompanyAddress;

            //初始化页面标题
            this.Page.Title = string.Format("{0}_旅游线路_联系方式", model.CompanyName);

            model = null;
        }
コード例 #26
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();//初始化单位信息
            }
        }
コード例 #27
0
        /// <summary>
        /// 获取采购用户的详细信息
        /// </summary>
        protected string GetBuyerCompanyInfo(string BuyerCId)
        {
            StringBuilder strCompanyDetail = new StringBuilder();

            EyouSoft.Model.CompanyStructure.CompanyDetailInfo ModelCDetailInfo = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(BuyerCId);
            if (ModelCDetailInfo != null)
            {
                strCompanyDetail.Append(string.Format("用户名:{0}<br/>", ModelCDetailInfo.ContactInfo.ContactName));
                strCompanyDetail.Append(string.Format("固定联系电话:{0}<br/>", ModelCDetailInfo.ContactInfo.Tel));
                strCompanyDetail.Append(string.Format("手机:{0}<br/>", ModelCDetailInfo.ContactInfo.Mobile));
                strCompanyDetail.Append(string.Format("公司名称:{0}<br/>", ModelCDetailInfo.CompanyName));
                strCompanyDetail.Append(string.Format("地址:{0}<br/>", ModelCDetailInfo.CompanyAddress));
            }
            else
            {
                strCompanyDetail.Append("");
            }

            return(strCompanyDetail.ToString());
        }
コード例 #28
0
        /// <summary>
        /// 获的公司证书信息
        /// </summary>
        protected void GetCreditList(string CompanyId)
        {
            EyouSoft.Model.CompanyStructure.CompanyDetailInfo Model = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(CompanyId);
            bool isSetCertif = false;

            if (Model != null)
            {
                EyouSoft.Model.CompanyStructure.CompanyAttachInfo AttchInfo = Model.AttachInfo;
                if (AttchInfo != null)
                {
                    EyouSoft.Model.CompanyStructure.BusinessCertif CertifModel = AttchInfo.BusinessCertif;
                    if (CertifModel != null)
                    {
                        if (CertifModel.BusinessCertImg != "")
                        {
                            isSetCertif       = true;
                            AllCompanyCertif += string.Format("经营许可证:<a href='{0}' target='_blank'><img src='{0}' width='60px' height='30px'/></a><br/>", EyouSoft.Common.Domain.FileSystem + CertifModel.BusinessCertImg);
                        }
                        if (CertifModel.LicenceImg != "")
                        {
                            isSetCertif       = true;
                            AllCompanyCertif += string.Format("营业执照:<a href='{0}' target='_blank'><img src='{0}' width='60px' height='30px'/></a><br/>", EyouSoft.Common.Domain.FileSystem + CertifModel.LicenceImg);
                        }
                        if (CertifModel.TaxRegImg != "")
                        {
                            isSetCertif       = true;
                            AllCompanyCertif += string.Format("税务登记证:<a href='{0}' target='_blank'><img src='{0}' width='60px' height='30px'/></a><br/>", EyouSoft.Common.Domain.FileSystem + CertifModel.TaxRegImg);
                        }
                    }

                    CertifModel = null;
                }

                AttchInfo = null;
            }
            if (!isSetCertif)
            {
                AllCompanyCertif = "该公司暂未上传证书";
            }
            Model = null;
        }
コード例 #29
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.Title = "完善企业信息";
            }
            if (IsLogin)
            {
                EyouSoft.Model.CompanyStructure.CompanyDetailInfo Model = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
                if (Model != null)
                {
                    bool   isRouteAgency = SiteUserInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.专线);
                    string userManageUrl = null;       //用户后台URL
                    if (Model.CompanyRole.Length == 0) //随便逛逛用户
                    {
                        Response.Redirect("~/Default.aspx");
                        return;
                    }
                    else
                    {
                        //进入后台管理的链接

                        if (IsAirTicketSupplyUser)//如果是机票供应商用户
                        {
                            userManageUrl      = EyouSoft.Common.Domain.UserBackCenter + "/TicketsCenter/";
                            trCuperous.Visible = true;
                        }
                        else//如果是旅行社用户
                        {
                            userManageUrl = EyouSoft.Common.Domain.UserBackCenter + "/";
                        }
                    }
                    hfdBackUrl.Value = userManageUrl;
                    Model            = null;
                }
            }
            else
            {
                Response.Redirect("Login.aspx");
            }
        }
コード例 #30
0
 //加载公司信息
 private void InitCompanyInfo()
 {
     EyouSoft.Model.CompanyStructure.CompanyDetailInfo compDetail = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(this.SiteUserInfo.CompanyID); //公司详细信息
     if (compDetail != null)
     {
         ltr_BrandName.Text   = compDetail.CompanyBrand;
         ltr_CompanyName.Text = compDetail.CompanyName;
         ltr_Address.Text     = compDetail.CompanyAddress;
         ltr_LinkPerson.Text  = compDetail.ContactInfo.ContactName;
         ltr_Faxs.Text        = compDetail.ContactInfo.Fax;
         ltr_Mobile.Text      = compDetail.ContactInfo.Mobile;
         ltr_Phone.Text       = compDetail.ContactInfo.Tel;
         if (!string.IsNullOrEmpty(compDetail.ContactInfo.MQ))
         {
             MQHtml = string.Format("<img src=\"{0}/Images/seniorshop/mqonline.gif\" width=\"70\" height=\"18\" />", ImageManage.GetImagerServerUrl(1));
         }
         ImagePath = Utils.GetLineShopImgPath(compDetail.AttachInfo.CompanyImg.ImagePath, 6);  //宣传图片
         LogoPath  = Utils.GetLineShopImgPath(compDetail.AttachInfo.CompanyLogo.ImagePath, 2); //Logo
     }
     compDetail = null;
 }