コード例 #1
0
        /// <summary>
        /// 添加图片广告
        /// </summary>
        /// <param name="companyType">公司类型</param>
        /// <param name="ImgPath">图片路径</param>
        /// <param name="AdvLink">链接地址</param>
        /// <returns>false:失败 true:成功</returns>
        public virtual bool AddPicAdv(EyouSoft.Model.CompanyStructure.CompanyType companyType, string ImgPath, string AdvLink)
        {
            string    strSql = string.Format(SQL_CompanyAdv_ADDPICADV, (int)companyType, ImgPath, AdvLink);
            DbCommand dc     = this._database.GetSqlStringCommand(strSql);

            return(DbHelper.ExecuteSqlTrans(dc, this._database) > 0?true:false);
        }
コード例 #2
0
        /// <summary>
        /// 添加图片广告
        /// </summary>
        /// <param name="companyType">公司类型</param>
        /// <param name="ImgPath">图片路径</param>
        /// <param name="AdvLink">链接地址</param>
        /// <returns>false:失败 true:成功</returns>
        public bool AddPicAdv(EyouSoft.Model.CompanyStructure.CompanyType companyType, string ImgPath, string AdvLink)
        {
            bool flag = dal.AddPicAdv(companyType, ImgPath, AdvLink);

            if (flag)
            {
                //清除缓存
                EyouSoft.Cache.Facade.EyouSoftCache.Remove(EyouSoft.CacheTag.System.CategoryAdv + string.Format(CacheGetList, (int)companyType));
                EyouSoft.Cache.Facade.EyouSoftCache.Remove(EyouSoft.CacheTag.System.CategoryAdv + string.Format(CacheIndexPicAdv, (int)companyType));
            }
            return(flag);
        }
コード例 #3
0
        /// <summary>
        /// 获取高级网店模板地址
        /// </summary>
        /// <param name="cType">单位类型</param>
        /// <returns></returns>
        private string GetEShopTemplatePath(EyouSoft.Model.CompanyStructure.CompanyType cType)
        {
            string s = string.Empty;

            switch (cType)
            {
            case EyouSoft.Model.CompanyStructure.CompanyType.景区: s = "/scenicspots/t1/default.aspx"; break;

            case EyouSoft.Model.CompanyStructure.CompanyType.专线: s = "/seniorshop/default.aspx"; break;
            }

            return(s);
        }
コード例 #4
0
 /// <summary>
 /// 获取指定公司类型的后台首页图片广告
 /// </summary>
 /// <param name="companyType">公司类型</param>
 /// <returns></returns>
 public EyouSoft.Model.SystemStructure.CompanyAdv GetIndexPicAdv(EyouSoft.Model.CompanyStructure.CompanyType companyType)
 {
     EyouSoft.Model.SystemStructure.CompanyAdv model = null;
     model = (EyouSoft.Model.SystemStructure.CompanyAdv)EyouSoft.Cache.Facade.EyouSoftCache.GetCache(EyouSoft.CacheTag.System.CategoryAdv + string.Format(CacheIndexPicAdv, (int)companyType));
     if (model == null)
     {
         model = dal.GetIndexPicAdv(companyType);
         if (model != null)
         {
             EyouSoft.Cache.Facade.EyouSoftCache.Add(EyouSoft.CacheTag.System.CategoryAdv + string.Format(CacheIndexPicAdv, (int)companyType), model);
         }
     }
     return(model);
 }
コード例 #5
0
        /// <summary>
        /// 获取指定公司类型的后台首页图片广告
        /// </summary>
        /// <param name="companyType">公司类型</param>
        /// <returns></returns>
        public virtual EyouSoft.Model.SystemStructure.CompanyAdv GetIndexPicAdv(EyouSoft.Model.CompanyStructure.CompanyType companyType)
        {
            EyouSoft.Model.SystemStructure.CompanyAdv model = null;
            DbCommand dc = this._database.GetSqlStringCommand(string.Format(SQL_CompanyAdv_GETINDEXPICADV, (int)companyType));

            using (IDataReader dr = DbHelper.ExecuteReader(dc, this._database))
            {
                if (dr.Read())
                {
                    model.ID      = dr.GetInt32(0);
                    model.ImgPath = dr.GetString(1);
                    model.AdvLink = dr.GetString(2);
                }
            }
            return(model);
        }
コード例 #6
0
        /// <summary>
        /// 获取公司类型
        /// </summary>
        /// <param name="types"></param>
        /// <returns></returns>
        private EyouSoft.Model.CompanyStructure.CompanyType GetCompanyType(EyouSoft.Model.CompanyStructure.CompanyType[] types)
        {
            EyouSoft.Model.CompanyStructure.CompanyType cType = EyouSoft.Model.CompanyStructure.CompanyType.全部;

            if (types.Length == 1)
            {
                cType = types[0];
            }
            else if (types.Contains(EyouSoft.Model.CompanyStructure.CompanyType.专线))
            {
                cType = EyouSoft.Model.CompanyStructure.CompanyType.专线;
            }
            else if (types.Contains(EyouSoft.Model.CompanyStructure.CompanyType.地接))
            {
                cType = EyouSoft.Model.CompanyStructure.CompanyType.地接;
            }

            return(cType);
        }
コード例 #7
0
        /// <summary>
        /// 获的发布单位的网店链接
        /// </summary>
        /// <param name="CompanyId"></param>
        /// <param name="CompanyName"></param>
        /// <returns></returns>
        protected string GetCompanyUrl(string CompanyId, string CompanyName)
        {
            string goToUrl   = "";
            string returnUrl = "";

            if (!string.IsNullOrEmpty(CompanyId))
            {
                EyouSoft.Model.CompanyStructure.CompanyDetailInfo Model = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(CompanyId);
                if (Model != null)
                {
                    EyouSoft.Model.CompanyStructure.CompanyType[] CompanyTypeItems = Model.CompanyRole.RoleItems;
                    bool isRouteAgency = false;
                    if (CompanyTypeItems != null && CompanyTypeItems.Length > 0)
                    {
                        for (int i = 0; i < CompanyTypeItems.Length; i++)
                        {
                            if (CompanyTypeItems[i] == EyouSoft.Model.CompanyStructure.CompanyType.专线)
                            {
                                isRouteAgency = true;
                                break;
                            }
                        }
                    }
                    EyouSoft.Model.CompanyStructure.CompanyType Type = Model.CompanyRole.RoleItems[0];
                    if (isRouteAgency)
                    {
                        Type = EyouSoft.Model.CompanyStructure.CompanyType.专线;
                    }

                    goToUrl = EyouSoft.Common.Utils.GetCompanyDomain(CompanyId, Type, CityId);
                    if (goToUrl != "" && goToUrl != EyouSoft.Common.Utils.EmptyLinkCode)
                    {
                        returnUrl = string.Format(" <a class=\"linecom\"  href=\"{0}\" target=\"_blank\" title='{2}'>{1}</a>", EyouSoft.Common.Utils.SiteAdvUrl(goToUrl), EyouSoft.Common.Utils.GetText(CompanyName, 17), CompanyName);
                    }
                }
                Model = null;
            }
            return(returnUrl);
        }
コード例 #8
0
        /// <summary>
        /// 初始化对方的名片信息
        /// </summary>
        private void InitOtherSideCard()
        {
            EyouSoft.Model.CompanyStructure.CompanyAndUserInfo model = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(this.OtherSideMQ);

            if (model == null || model.Company == null || model.User == null)
            {
                return;
            }

            EyouSoft.Model.CompanyStructure.CompanyDetailInfo cInfo = model.Company;
            EyouSoft.Model.CompanyStructure.CompanyUser       uInfo = model.User;

            bool isHighShop = cInfo.StateMore.CompanyService.IsServiceAvailable(EyouSoft.Model.CompanyStructure.SysService.HighShop);
            bool isPayMQ    = cInfo.StateMore.CompanyService.IsServiceAvailable(EyouSoft.Model.CompanyStructure.SysService.MQ);

            #region 网店链接
            string otherSideEShop = "<div class=\"{0}\"><a href=\"{1}\" target=\"_blank\"></a></div>";
            EyouSoft.Model.CompanyStructure.CompanyType cType = this.GetCompanyType(cInfo.CompanyRole.RoleItems);

            switch (cType)
            {
            case EyouSoft.Model.CompanyStructure.CompanyType.全部:
            //case EyouSoft.Model.CompanyStructure.CompanyType.地接:
            case EyouSoft.Model.CompanyStructure.CompanyType.组团:
                otherSideEShop = string.Empty;
                break;

            default:
                otherSideEShop = string.Format(otherSideEShop, isHighShop ? "cardshopgj" : "cardshop", Utils.GetCompanyDomain(cInfo.ID, cType));
                break;
            }

            this.ltrOtherSideEShop.Text = otherSideEShop;
            #endregion

            #region 企业LOGO、主营、MQ广告
            if (isPayMQ)
            {
                string otherSideLogo = string.Empty;
                string otherSideArea = string.Empty;
                string otherSideAd   = string.Empty;

                if (cInfo.AttachInfo.CompanyLogo != null && !string.IsNullOrEmpty(cInfo.AttachInfo.CompanyLogo.ImagePath))
                {
                    otherSideLogo = string.Format("<img src=\"{0}\" width=\"140\" height=\"62\" />", Domain.FileSystem + cInfo.AttachInfo.CompanyLogo.ImagePath);
                }

                if (cInfo.AttachInfo.CompanyMQAdv != null && !string.IsNullOrEmpty(cInfo.AttachInfo.CompanyMQAdv.ImagePath))
                {
                    string s1 = @"<a href=""{0}"" target=""_blank"" id=""otherAdvLink_a""><img src=""{1}""  style=""width:140px; height:140px;""  border=""0"" /></a>";
                    string s2 = @"<img src=""{0}""  style=""width:140px; height:140px;""  border=""0"" />";
                    string s  = string.Empty;
                    if (string.IsNullOrEmpty(cInfo.AttachInfo.CompanyMQAdv.ImageLink))
                    {
                        s = string.Format(s2, Domain.FileSystem + cInfo.AttachInfo.CompanyMQAdv.ImagePath);
                    }
                    else
                    {
                        s = string.Format(s1, cInfo.AttachInfo.CompanyMQAdv.ImageLink, Domain.FileSystem + cInfo.AttachInfo.CompanyMQAdv.ImagePath);
                    }
                    otherSideAd = string.Format(@"<tr id=""other_advtr"" ><td style=""padding-top: 5px;"" align=""center"">{0}</td></tr>", s);

                    string areas = this.GetAreaNames(uInfo.Area);
                    otherSideArea = string.Format("<span title=\"{0}\">{1}</span>", areas, Utils.GetText(areas, 30, true));
                }
                else
                {
                    string areas = this.GetAreaNames(uInfo.Area);
                    otherSideArea = string.Format("<span title=\"{0}\">{1}</span>", areas, Utils.GetText(areas, 60, true));
                }

                this.ltrOtherSideLogo.Text = otherSideLogo;
                this.ltrOtherSideArea.Text = otherSideArea;
                this.ltrOtherSideAd.Text   = otherSideAd;

                this.phOtherSideAreas.Visible = this.phOtherSideLogo.Visible = true;
            }
            else
            {
                this.phOtherSideAreas.Visible = this.phOtherSideLogo.Visible = this.ltrOtherSideAd.Visible = false;
            }
            #endregion

            #region 基本信息
            this.lblOtherSideContactName.Text = uInfo.ContactInfo.ContactName;
            string gender = "";
            switch (uInfo.ContactInfo.ContactSex)
            {
            case EyouSoft.Model.CompanyStructure.Sex.男: gender = "先生"; break;

            case EyouSoft.Model.CompanyStructure.Sex.女: gender = "女士"; break;
            }
            this.lblOtherSideContactGender.Text = gender;
            this.txtOtherSideCompanyName.Value  = cInfo.CompanyName;
            this.ltrOtherSideTelephone.Text     = uInfo.ContactInfo.Tel;
            this.ltrOtherSideMobile.Text        = uInfo.ContactInfo.Mobile;
            #endregion
        }
コード例 #9
0
        /// <summary>
        /// 初始化旅行社列表
        /// </summary>
        protected void BindCompanyList()
        {
            int recordCount = 0;
            int ProvinceId  = EyouSoft.Common.Function.StringValidate.GetIntValue(Request.QueryString["ProvinceId"]);
            int CityId      = EyouSoft.Common.Function.StringValidate.GetIntValue(Request.QueryString["CityId"]);

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

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

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

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

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

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

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

            if (CompanyList != null && CompanyList.Count > 0)
            {
                this.ExporPageInfoSelect1.intPageSize    = PageSize;
                this.ExporPageInfoSelect1.intRecordCount = recordCount;
                this.ExporPageInfoSelect1.CurrencyPage   = PageIndex;
                this.ExporPageInfoSelect1.HrefType       = Adpost.Common.ExporPage.HrefTypeEnum.JsHref;
                this.ExporPageInfoSelect1.AttributesEventAdd("onclick", "CompanyManage.LoadData(this);", 1);
                this.ExporPageInfoSelect1.AttributesEventAdd("onchange", "CompanyManage.LoadData(this);", 0);
                this.repCompanyList.DataSource = CompanyList;
                this.repCompanyList.DataBind();
            }
            else
            {
                StringBuilder strEmptyText = new StringBuilder();
                strEmptyText.Append("<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"1\" class=\"kuang\">");
                strEmptyText.Append("<tr background=\"" + ImageServerUrl + "/images/yunying/hangbg.gif\" class=\"white\" height=\"23\">");
                strEmptyText.AppendFormat("<td width=\"5%\" height=\"23\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>序号</strong> </td> <td width=\"7%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>经营范围</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"18%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>经营范围</strong></td><td width=\"10%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>产品销售城市</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"12%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"><strong>产品区域</strong></td><td width=\"13%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\">  <strong>联系方式</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>证书</strong></td><td width=\"11%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>收费项目</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"4%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>登录</strong> </td><td width=\"8%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>加入时间</strong></td>", ImageServerUrl);
                strEmptyText.Append("<tr class=\"huanghui\" ><td  align='center' colspan='10' height='100px'>暂无旅行社信息</td></tr>");
                strEmptyText.Append("</tr>");
                strEmptyText.Append("<tr background=\"" + ImageServerUrl + "/images/yunying/hangbg.gif\" class=\"white\" height=\"23\">");
                strEmptyText.AppendFormat("<td width=\"5%\" height=\"23\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>序号</strong> </td> <td width=\"7%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>经营范围</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"18%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>单位名称</strong></td><td width=\"10%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>产品销售城市</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"12%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"><strong>产品区域</strong></td><td width=\"13%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\">  <strong>联系方式</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>证书</strong></td><td width=\"11%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>收费项目</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"4%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>登录</strong> </td><td width=\"8%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>加入时间</strong></td>", ImageServerUrl);
                strEmptyText.Append("</tr>");
                strEmptyText.Append("</table>");
                this.repCompanyList.EmptyText = strEmptyText.ToString();
            }
            SearchModel = null;
            CompanyList = null;
        }
コード例 #10
0
        /// <summary>
        /// 获取指定条数的后台登陆广告
        /// </summary>
        /// <param name="topNumber">要返回的记录数 =false时返回全部 >false时返回指定条数的记录</param>
        /// <param name="companyType">公司类型</param>
        /// <returns></returns>
        public IList <EyouSoft.Model.SystemStructure.CompanyAdv> GetTopNumList(int topNumber, EyouSoft.Model.CompanyStructure.CompanyType companyType)
        {
            IList <EyouSoft.Model.SystemStructure.CompanyAdv> list = null;

            list = (IList <EyouSoft.Model.SystemStructure.CompanyAdv>)EyouSoft.Cache.Facade.EyouSoftCache.GetCache(EyouSoft.CacheTag.System.CategoryAdv + string.Format(CacheGetTopNumberList, (int)companyType));
            if (list == null)
            {
                list = dal.GetTopNumList(topNumber, companyType);
                if (list != null && list.Count > 0)
                {
                    EyouSoft.Cache.Facade.EyouSoftCache.Add(EyouSoft.CacheTag.System.CategoryAdv + string.Format(CacheGetTopNumberList, (int)companyType), list);
                }
            }
            return(list);
        }
コード例 #11
0
        /// <summary>
        /// 运营后台分页获取列表
        /// </summary>
        /// <param name="pageSize">每页显示条数</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="recordCount">总记录数</param>
        /// <param name="companyType">公司类型</param>
        /// <returns></returns>
        public IList <EyouSoft.Model.SystemStructure.CompanyAdv> GetList(int pageSize, int pageIndex, ref int recordCount, EyouSoft.Model.CompanyStructure.CompanyType companyType)
        {
            IList <EyouSoft.Model.SystemStructure.CompanyAdv> list = null;

            list = (IList <EyouSoft.Model.SystemStructure.CompanyAdv>)EyouSoft.Cache.Facade.EyouSoftCache.GetCache(EyouSoft.CacheTag.System.CategoryAdv + string.Format(CacheGetList, (int)companyType));
            if (list == null)
            {
                list = dal.GetList(pageSize, pageIndex, ref recordCount, companyType);
                if (list != null && list.Count > 0)
                {
                    EyouSoft.Cache.Facade.EyouSoftCache.Add(EyouSoft.CacheTag.System.CategoryAdv + string.Format(CacheGetList, (int)companyType), list);
                }
            }
            return(list);
        }
コード例 #12
0
        /// <summary>
        /// 绑定公司列表
        /// </summary>
        protected void BindList()
        {
            int recordCount = 0;
            int ProvinceId  = Utils.GetInt(Request.QueryString["ProvinceId"]);
            int CityId      = Utils.GetInt(Request.QueryString["CityId"]);

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

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

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

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

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

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

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

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

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

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

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

            if (model == null || model.Company == null || model.User == null)
            {
                return;
            }

            EyouSoft.Model.CompanyStructure.CompanyDetailInfo cInfo = model.Company;
            EyouSoft.Model.CompanyStructure.CompanyUser       uInfo = model.User;

            bool isHighShop = cInfo.StateMore.CompanyService.IsServiceAvailable(EyouSoft.Model.CompanyStructure.SysService.HighShop);
            bool isPayMQ    = cInfo.StateMore.CompanyService.IsServiceAvailable(EyouSoft.Model.CompanyStructure.SysService.MQ);

            #region 网店链接
            string selfSideEShop = "<div class=\"{0}\"><a href=\"{1}\" target=\"_blank\"></a></div>";
            EyouSoft.Model.CompanyStructure.CompanyType cType = this.GetCompanyType(cInfo.CompanyRole.RoleItems);

            switch (cType)
            {
            case EyouSoft.Model.CompanyStructure.CompanyType.全部:
            //case EyouSoft.Model.CompanyStructure.CompanyType.地接:
            case EyouSoft.Model.CompanyStructure.CompanyType.组团:
                selfSideEShop = string.Empty;
                break;

            default:
                if (isHighShop)
                {
                    selfSideEShop = string.Format(selfSideEShop, "cardshopgj", Utils.GetCompanyDomain(cInfo.ID, cType));
                }
                else
                {
                    selfSideEShop = string.Format(selfSideEShop, "cardshop", Utils.GetCompanyDomain(cInfo.ID, cType));
                }
                break;
            }

            this.ltrSelfEshop.Text = selfSideEShop;
            #endregion

            #region 企业LOGO、MQ广告
            if (isPayMQ)
            {
                if (this.CheckGrant(TravelPermission.系统设置_单位信息))
                {
                    this.FSelfLogo.FType = IMFrame.WebControls.FType.Logo;

                    if (cInfo.AttachInfo.CompanyLogo != null && !string.IsNullOrEmpty(cInfo.AttachInfo.CompanyLogo.ImagePath))
                    {
                        this.FSelfLogo.HavingImg = true;
                        this.FLogoHeight         = 20;
                    }
                    else
                    {
                        this.FSelfLogo.FHeight   = 60;
                        this.FSelfLogo.HavingImg = false;
                        this.FLogoHeight         = 60;
                    }

                    this.FSelfAd.FType = IMFrame.WebControls.FType.Ad;

                    if (cInfo.AttachInfo.CompanyMQAdv != null && !string.IsNullOrEmpty(cInfo.AttachInfo.CompanyMQAdv.ImagePath))
                    {
                        this.FSelfAd.HavingImg = true;
                        this.FAdHeight         = 20;
                    }
                    else
                    {
                        this.FSelfAd.FHeight   = 105;
                        this.FSelfAd.HavingImg = false;
                        this.FAdHeight         = 105;
                    }
                    if (cInfo.AttachInfo.CompanyMQAdv != null)
                    {
                        this.txtPayMQSelfAdUrl.Text = cInfo.AttachInfo.CompanyMQAdv.ImageLink;
                    }

                    this.phNotPayMQSelfAd.Visible = this.phNotPayMQSelfLogo.Visible = false;
                    this.phPayMQSelfAd.Visible    = this.phPayMQSelfLogo.Visible = this.phFScript.Visible = true;
                }
                else
                {
                    this.phNotPayMQSelfAd.Visible = this.phNotPayMQSelfLogo.Visible = false;
                    this.phPayMQSelfAd.Visible    = this.phPayMQSelfLogo.Visible = this.phFScript.Visible = false;
                }

                if (cInfo.AttachInfo.CompanyLogo != null && !string.IsNullOrEmpty(cInfo.AttachInfo.CompanyLogo.ImagePath))
                {
                    this.ltrSelfLogo.Text = string.Format("<img src=\"{0}\" alt=\"\" width=\"140\" height=\"60\" />", Domain.FileSystem + cInfo.AttachInfo.CompanyLogo.ImagePath);
                }

                if (cInfo.AttachInfo.CompanyMQAdv != null && !string.IsNullOrEmpty(cInfo.AttachInfo.CompanyMQAdv.ImagePath))
                {
                    this.txtSelfCurrentAdImgPath.Value = cInfo.AttachInfo.CompanyMQAdv.ImagePath;
                    this.ltrSelfAd.Text = string.Format("<img src=\"{0}\" alt=\"\" width=\"140\" height=\"85\" />", Domain.FileSystem + cInfo.AttachInfo.CompanyMQAdv.ImagePath);
                }
            }
            else
            {
                if (cInfo.BusinessProperties == EyouSoft.Model.CompanyStructure.BusinessProperties.旅游社)
                {
                    this.IntroductionURL = GetDesPlatformUrl(Domain.UserBackCenter + "/SystemSet/SonUserManage.aspx");

                    // this.phNotPayMQSelfAd.Visible = this.phNotPayMQSelfLogo.Visible = true;
                    this.phNotPayMQSelfAd.Visible = this.phNotPayMQSelfLogo.Visible = false;
                    this.phPayMQSelfAd.Visible    = this.phPayMQSelfLogo.Visible = this.phFScript.Visible = false;
                    this.ltrSelfLogo.Visible      = this.ltrSelfAd.Visible = false;
                }
                else
                {
                    this.FSelfLogo.FType = IMFrame.WebControls.FType.Logo;

                    if (cInfo.AttachInfo.CompanyLogo != null && !string.IsNullOrEmpty(cInfo.AttachInfo.CompanyLogo.ImagePath))
                    {
                        this.FSelfLogo.HavingImg = true;
                        this.FLogoHeight         = 20;
                    }
                    else
                    {
                        this.FSelfLogo.FHeight   = 60;
                        this.FSelfLogo.HavingImg = false;
                        this.FLogoHeight         = 60;
                    }

                    if (cInfo.AttachInfo.CompanyLogo != null && !string.IsNullOrEmpty(cInfo.AttachInfo.CompanyLogo.ImagePath))
                    {
                        this.ltrSelfLogo.Text = string.Format("<img src=\"{0}\" alt=\"\" width=\"140\" height=\"60\" />", Domain.FileSystem + cInfo.AttachInfo.CompanyLogo.ImagePath);
                    }

                    this.phNotPayMQSelfAd.Visible = this.phNotPayMQSelfLogo.Visible = false;
                    this.phPayMQSelfLogo.Visible  = true;
                    this.ltrSelfLogo.Visible      = true;
                    this.phGYSFScript.Visible     = true;

                    this.phFScript.Visible     = false;
                    this.ltrSelfAd.Visible     = false;
                    this.phPayMQSelfAd.Visible = false;
                }
            }
            #endregion

            #region 基本信息
            this.txtSelfCompanyName.Value    = cInfo.CompanyName;
            this.txtSelfContactMobile.Text   = uInfo.ContactInfo.Mobile;
            this.txtSelfContactName.Text     = uInfo.ContactInfo.ContactName;
            this.txtSelfContactTel.Text      = uInfo.ContactInfo.Tel;
            this.rblSelfGender.SelectedIndex = this.rblSelfGender.Items.IndexOf(this.rblSelfGender.Items.FindByValue(((int)uInfo.ContactInfo.ContactSex).ToString()));
            #endregion
        }
コード例 #14
0
        /// <summary>
        /// 修改公司信息
        /// </summary>
        protected void btnSave_Click(object sender, EventArgs e)
        {
            //省份ID
            int ProvinceId = EyouSoft.Common.Utils.GetInt(Request.Form["dropProvinceId"]);
            //城市ID
            int CityId = EyouSoft.Common.Utils.GetInt(Request.Form["dropCityId"]);
            //县区ID
            int CountyId = EyouSoft.Common.Utils.GetInt(Request.Form["dropCountyId"]);
            //公司名称
            string txtCompanyName = Utils.InputText(this.txtCompanyName.Value.Trim());
            //许可证号
            string txtLicenseNumber = Utils.InputText(this.txtLicenseNumber.Value.Trim());
            //名牌名称
            string txtBrandName = Utils.InputText(this.txtBrandName.Value.Trim());
            //用户名
            string txtUserName = Utils.InputText(this.txtUserName.Value.Trim());
            //密码
            string NewPassWord = "";

            if (!string.IsNullOrEmpty(this.txtPassWord.Value.Trim()))
            {
                NewPassWord = Utils.InputText(this.txtPassWord.Value.Trim());
            }
            //联系人名称
            string txtContactName = Utils.InputText(this.txtContactName.Value.Trim());

            //联系电话
            string txtContactTel = Utils.InputText(this.txtContactTel.Value.Trim());
            //联系手机
            string txtContactMobile = Utils.InputText(this.txtContactMobile.Value.Trim());
            //传真
            string txtContactFax = Utils.InputText(this.txtContactFax.Value.Trim());
            //办公地点
            string txtOfficeAddress = Utils.InputText(this.txtOfficeAddress.Value.Trim());
            //MQ
            string txtContactQQ = Utils.InputText(this.txtContactQQ.Value.Trim(), 100);
            //MSN
            string txtContactMSN = Utils.InputText(this.txtContactMSN.Value.Trim());
            //Email
            string txtContactEmail = Utils.InputText(this.txtContactEmail.Value.Trim());
            //经营范围
            string CompanyType = Utils.InputText(Request.Form["radManageArea"]);

            if (CompanyType == "")
            {
                //旅行社
                CompanyType = Utils.InputText(Request.Form["ckCompanyType"]);

                //专线商时有销售城市及经营线路区域
            }
            //公司介绍
            string txtCompanyInfo = Utils.EditInputText(this.txtCompanyInfo.Value.Trim());
            //业务优势
            string txtBusinessSuperior = Utils.InputText(this.txtBusinessSuperior.Value.Trim());

            #region  公司银行账户
            string txtCompanyBackName   = Utils.InputText(this.txtCompanyBackName.Value.Trim());
            string txtCompanyBack       = Utils.InputText(this.txtCompanyBack.Value.Trim());
            string txtCompanyBackNumber = Utils.InputText(this.txtCompanyBackNumber.Value.Trim());
            #endregion

            #region 个人银行账户
            string[] txtBankAccountName = Request.Form.GetValues("txtBankAccountName");
            string[] txtBankName        = Request.Form.GetValues("txtBankName");
            string[] txtAccountNumber   = Request.Form.GetValues("txtAccountNumber");
            #endregion

            EyouSoft.Model.CompanyStructure.CompanyArchiveInfo model = new EyouSoft.Model.CompanyStructure.CompanyArchiveInfo();

            /*公司信息*/
            model.ID             = EditId;
            model.CompanyName    = txtCompanyName;
            model.ProvinceId     = ProvinceId;
            model.CityId         = CityId;
            model.CountyId       = CountyId;
            model.CompanyAddress = txtOfficeAddress;
            model.CompanyBrand   = txtBrandName;
            model.License        = txtLicenseNumber;
            model.Remark         = txtCompanyInfo;
            model.ShortRemark    = txtBusinessSuperior;

            /*证书管理 */

            EyouSoft.Model.CompanyStructure.CompanyAttachInfo AttachInfo = new EyouSoft.Model.CompanyStructure.CompanyAttachInfo();
            EyouSoft.Model.CompanyStructure.BusinessCertif    Buiness    = new EyouSoft.Model.CompanyStructure.BusinessCertif();
            string LicenceImg = Request.Form["SingleFilelLicence$hidFileName"];
            if (string.IsNullOrEmpty(LicenceImg) && this.hidOldLicenceImg.Value != "")
            {
                LicenceImg = this.hidOldLicenceImg.Value;
            }
            string BusinessCertImg = Request.Form["SingleFileBusinessCertImg$hidFileName"];
            if (string.IsNullOrEmpty(BusinessCertImg) && this.hidOldBusinessCertImg.Value != "")
            {
                BusinessCertImg = this.hidOldBusinessCertImg.Value;
            }
            string TaxRegImg = Request.Form["SingleFileTaxRegImg$hidFileName"];
            if (string.IsNullOrEmpty(TaxRegImg) && this.hidOldTaxRegImg.Value != "")
            {
                TaxRegImg = this.hidOldTaxRegImg.Value;
            }
            Buiness.LicenceImg      = LicenceImg;
            Buiness.BusinessCertImg = BusinessCertImg;
            Buiness.TaxRegImg       = TaxRegImg;

            AttachInfo.BusinessCertif = Buiness;
            Buiness = null;

            model.AttachInfo = AttachInfo;
            AttachInfo       = null;


            EyouSoft.Model.CompanyStructure.UserAccount UserModel = new EyouSoft.Model.CompanyStructure.UserAccount();
            #region 用户信息
            /*用户信息*/
            UserModel.UserName = txtUserName;
            UserModel.PassWordInfo.NoEncryptPassword = NewPassWord;
            #endregion
            model.AdminAccount = UserModel;
            UserModel          = null;

            EyouSoft.Model.CompanyStructure.ContactPersonInfo ContactModel = new EyouSoft.Model.CompanyStructure.ContactPersonInfo();
            #region 公司联系人信息
            /* 公司联系人信息 */
            ContactModel.ContactName = txtContactName;
            ContactModel.Tel         = txtContactTel;
            ContactModel.Mobile      = txtContactMobile;
            ContactModel.Fax         = txtContactFax;
            ContactModel.QQ          = txtContactQQ;
            ContactModel.MSN         = txtContactMSN;
            ContactModel.Email       = txtContactEmail;
            #endregion
            model.ContactInfo = ContactModel;
            ContactModel      = null;

            #region 公司身份
            /* 公司身份 */
            EyouSoft.Model.CompanyStructure.CompanyRole RoleMode = new EyouSoft.Model.CompanyStructure.CompanyRole();
            EyouSoft.Model.CompanyStructure.CompanyType TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.全部;
            //旅行社
            if (CompanyType == "0")
            {
                string[] strType = Request.Form.GetValues("ckCompanyType");
                for (int i = 0; i < strType.Length; i++)
                {
                    if (strType[i] == "1")
                    {
                        TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.专线;

                        string[] strSalelist = Request.Form.GetValues("ckSellCity");
                        if (strSalelist != null)
                        {
                            //设置销售城市
                            List <EyouSoft.Model.SystemStructure.CityBase> SaleCity = new List <EyouSoft.Model.SystemStructure.CityBase>();
                            for (int j = 0; j < strSalelist.Length; j++)
                            {
                                EyouSoft.Model.SystemStructure.CityBase item = new EyouSoft.Model.SystemStructure.CityBase();
                                item.ProvinceId = ProvinceId;
                                item.CityId     = EyouSoft.Common.Function.StringValidate.GetIntValue(strSalelist[j]);
                                SaleCity.Add(item);
                                item = null;
                            }
                            model.SaleCity = SaleCity;
                            SaleCity       = null;
                        }
                        //设置经营线路区域
                        string[] strAreaList = Request.Form.GetValues("checkbox_Area");

                        if (strAreaList != null)
                        {
                            List <EyouSoft.Model.SystemStructure.AreaBase> AreaList = new List <EyouSoft.Model.SystemStructure.AreaBase>();
                            for (int j = 0; j < strAreaList.Length; j++)
                            {
                                EyouSoft.Model.SystemStructure.AreaBase item = new EyouSoft.Model.SystemStructure.AreaBase();
                                item.AreaId = Convert.ToInt32(strAreaList[j]);
                                AreaList.Add(item);
                                item = null;
                            }
                            model.Area = AreaList;
                            AreaList   = null;
                        }
                    }
                    if (strType[i] == "2")
                    {
                        TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.组团;
                    }
                    if (strType[i] == "3")
                    {
                        TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.地接;
                    }
                    RoleMode.SetRole(TypeEmnu);
                }
            }
            else
            {
                switch (CompanyType)
                {
                case "4":
                    TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.景区;
                    break;

                case "5":
                    TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.酒店;
                    break;

                case "6":
                    TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.车队;
                    break;

                case "7":
                    TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.旅游用品店;
                    break;

                case "8":
                    TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.购物店;
                    break;

                case "9":
                    TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.机票供应商;
                    break;

                case "10":
                    TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.其他采购商;
                    break;

                case "11":
                    TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.随便逛逛;
                    break;
                }
                RoleMode.SetRole(TypeEmnu);
            }
            #endregion
            model.CompanyRole = RoleMode;
            RoleMode          = null;

            List <EyouSoft.Model.CompanyStructure.BankAccount> BankList = new List <EyouSoft.Model.CompanyStructure.BankAccount>();
            #region 银行账号
            /* 公司银行账户信息 */
            EyouSoft.Model.CompanyStructure.BankAccount BankCompanyModel = new EyouSoft.Model.CompanyStructure.BankAccount();
            BankCompanyModel.AccountType     = EyouSoft.Model.CompanyStructure.BankAccountType.公司;
            BankCompanyModel.BankAccountName = txtCompanyBackName;
            BankCompanyModel.BankName        = txtCompanyBack;
            BankCompanyModel.AccountNumber   = txtCompanyBackNumber;
            BankCompanyModel.CompanyID       = EditId;
            BankList.Add(BankCompanyModel);
            BankCompanyModel = null;
            if (!string.IsNullOrEmpty(txtBankAccountName.ToString()))
            {
                /* 个人银行帐户信息 */
                for (int i = 0; i < txtBankAccountName.Length; i++)
                {
                    if (!string.IsNullOrEmpty(txtBankAccountName[i]))
                    {
                        EyouSoft.Model.CompanyStructure.BankAccount BankModel = new EyouSoft.Model.CompanyStructure.BankAccount();
                        BankModel.AccountType     = EyouSoft.Model.CompanyStructure.BankAccountType.个人;
                        BankModel.BankAccountName = txtBankAccountName[i];
                        BankModel.BankName        = txtBankName[i];
                        BankModel.AccountNumber   = txtAccountNumber[i];
                        BankModel.CompanyID       = EditId;
                        BankList.Add(BankModel);
                        BankModel = null;
                    }
                }
            }
            #endregion
            model.BankAccounts = BankList;
            BankList           = null;

            bool Result = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().Update(model);
            if (Result)
            {
                if (EyouSoft.Common.Utils.GetQueryStringValue("type") == "list")
                {
                    Response.Write("<script language='javascript'>alert('修改成功!');parent.Boxy.getIframeDialog('" + Request.QueryString["iframeid"] + "').hide();</script>");
                }
                else
                {
                    EyouSoft.Common.Function.MessageBox.ShowAndRedirect(this.Page, "修改成功!", returnUrl);
                }
            }
            else
            {
                EyouSoft.Common.Function.MessageBox.Show(this.Page, "修改失败!");
            }
            model = null;
        }
コード例 #15
0
        /// <summary>
        /// 注册新用户
        /// </summary>
        protected int RegisterCompany(string companyId)
        {
            int AddisTrue = 0;

            if (EyouSoft.Cache.Facade.EyouSoftCache.GetCache("REG_" + Request.UserHostAddress) != null)
            {
                AddisTrue = 5; //注册太频繁
                return(AddisTrue);
            }



            string CompanyName   = Utils.InputText(Request.Form["txtCompanyName"]);   //公司名
            string UserName      = Utils.InputText(Request.Form["txtUserName"]);      //用户名
            string PassWord      = Utils.InputText(Request.Form["txtFristPassWord"]); //密码
            string LicenseNumber = Utils.InputText(Request.Form["txtLicenseNumber"]); //许可证号
            string BrandName     = Utils.InputText(Request.Form["txtBrandName"]);     //品牌名称
            //int ProvinceId = 0;//省份
            //if (Request.Form["ctl00$Main$ProvinceAndCityList1$ddl_ProvinceList"] != null)
            //    ProvinceId = Convert.ToInt32(Request.Form["ctl00$Main$ProvinceAndCityList1$ddl_ProvinceList"]);
            //else if (Request.Form["ProvinceAndCityList1$ddl_ProvinceList"] != null)
            //    ProvinceId = Convert.ToInt32(Request.Form["ProvinceAndCityList1$ddl_ProvinceList"]);

            //int CityId = 0;//城市
            //if (Request.Form["ctl00$Main$ProvinceAndCityList1$ddl_CityList"] != null)
            //    CityId = Convert.ToInt32(Request.Form["ctl00$Main$ProvinceAndCityList1$ddl_CityList"]);
            //else if (Request.Form["ProvinceAndCityList1$ddl_CityList"] != null)
            //    CityId = Convert.ToInt32(Request.Form["ProvinceAndCityList1$ddl_CityList"]); //城市

            //int CountyId = 0;//地区(县)
            //if (Request.Form["ctl00$Main$ProvinceAndCityList1$ddl_CountyList"] != null)
            //    CountyId = Convert.ToInt32(Request.Form["ctl00$Main$ProvinceAndCityList1$ddl_CountyList"]);
            //else if (Request.Form["ProvinceAndCityList1$ddl_CityList"] != null)
            //    CountyId = Convert.ToInt32(Request.Form["ProvinceAndCityList1$ddl_CountyList"]); //城市
            int ProvinceId = 0;//省份

            if (Utils.GetFormValue(ddl_ProvinceList.UniqueID) != null)
            {
                ProvinceId = Convert.ToInt32(Utils.GetFormValue(ddl_ProvinceList.UniqueID));
            }

            int CityId = 0;//城市

            if (Utils.GetFormValue(ddl_CityList.UniqueID) != null)
            {
                CityId = Convert.ToInt32(Utils.GetFormValue(ddl_CityList.UniqueID));
            }
            int CountyId = 0;//地区(县)

            if (Utils.GetFormValue(ddl_CountyList.UniqueID) != null)
            {
                CountyId = Convert.ToInt32(Utils.GetFormValue(ddl_CountyList.UniqueID));
            }
            string OfficeAddress = Utils.InputText(Request.Form["txtOfficeAddress"]);       //办公地点
            //string CommendCompany = Utils.InputText(Request.Form["txtCommendCompany"]); 引荐单位
            string CompanyType       = Utils.InputText(Request.QueryString["companytype"]); //公司类型
            string ContactName       = Utils.InputText(Request.Form["txtContactName"]);
            string ContactTel        = Utils.InputText(Request.Form["txtContactTel"]);
            string ContactMobile     = Utils.InputText(Request.Form["txtContactMobile"]);
            string ContactFax        = Utils.InputText(Request.Form["txtContactFax"]);
            string ContactEmail      = Utils.InputText(Request.Form["txtContactEmail"]);
            string ContactQQ         = Utils.GetFormValue("qq", 100); //QQ,注意可能多个用半角逗号分割的
            string ContactMSN        = Utils.InputText(Request.Form["txtMsn"]);
            string CompanyInfo       = Utils.InputText(Request.Form["txtCompanyInfo"]);
            string CompanyMainpro    = Utils.InputText(Request.Form["txtMainProduct"]);
            string CompanySimpleName = Utils.InputText(Request.Form["txtCompanySimpleName"]);

            /*公司信息*/
            EyouSoft.Model.CompanyStructure.CompanyArchiveInfo model = new EyouSoft.Model.CompanyStructure.CompanyArchiveInfo();
            /*用户信息*/
            EyouSoft.Model.CompanyStructure.UserAccount UserModel = new EyouSoft.Model.CompanyStructure.UserAccount();
            /* 公司联系人信息 */
            EyouSoft.Model.CompanyStructure.ContactPersonInfo ContactModel = new EyouSoft.Model.CompanyStructure.ContactPersonInfo();
            string OtherSaleCity = "";

            if (string.IsNullOrEmpty(CompanyType))
            {
                AddisTrue = 0;
            }
            else
            {
                if (string.IsNullOrEmpty(companyId)) //随便逛逛申请,修改
                {
                    UserModel.UserName = UserName;   /*用户信息*/
                }
                UserModel.PassWordInfo.NoEncryptPassword = PassWord;
                ContactModel.ContactName = ContactName;
                ContactModel.Mobile      = ContactMobile;
                ContactModel.Email       = ContactEmail;
                ContactModel.QQ          = ContactQQ;
                ContactModel.Fax         = ContactFax;
                ContactModel.MSN         = ContactMSN;
                ContactModel.Tel         = ContactTel;
                if (CompanyType != "-1")  //游客
                {
                    #region 非随便看看用户
                    /*公司信息*/
                    model.CompanyName    = CompanyName;
                    model.ProvinceId     = ProvinceId;
                    model.CityId         = CityId;
                    model.CountyId       = CountyId;
                    model.CompanyAddress = OfficeAddress;
                    model.CompanyBrand   = BrandName;
                    model.License        = LicenseNumber;
                    model.Introduction   = CompanySimpleName;
                    model.Remark         = CompanyInfo;
                    model.Scale          = (EyouSoft.Model.CompanyStructure.CompanyScale)Utils.GetInt(this.sltCompanySize.Value);
                    model.ProvinceId     = Utils.GetInt(Utils.GetFormValue(this.ddl_ProvinceList.UniqueID));
                    model.CityId         = Utils.GetInt(Utils.GetFormValue(this.ddl_CityList.UniqueID));
                    model.CountyId       = Utils.GetInt(Utils.GetFormValue(this.ddl_CountyList.UniqueID));
                    model.CompanyBrand   = BrandName;
                    //model.Qualification
                    //model.AdminAccount = UserModel;

                    ContactModel.Tel = ContactTel;
                    ContactModel.Fax = ContactFax;
                    //model.ContactInfo = ContactModel;
                    // model.CommendPeople = CommendCompany;
                    //旅行社资质
                    string[] lxszz = Utils.Split(Utils.GetFormValue("chxzz"), ",");
                    if (lxszz != null && lxszz.Length > 0)
                    {
                        List <EyouSoft.Model.CompanyStructure.CompanyQualification> zizi = new List <EyouSoft.Model.CompanyStructure.CompanyQualification>();
                        for (int i = 0; i < lxszz.Length; i++)
                        {
                            if (lxszz[i] == "1")
                            {
                                zizi.Add(EyouSoft.Model.CompanyStructure.CompanyQualification.出境旅游);
                            }
                            if (lxszz[i] == "2")
                            {
                                zizi.Add(EyouSoft.Model.CompanyStructure.CompanyQualification.入境旅游);
                            }
                            if (lxszz[i] == "3")
                            {
                                zizi.Add(EyouSoft.Model.CompanyStructure.CompanyQualification.台湾旅游);
                            }
                        }
                        model.Qualification = zizi;
                    }
                    /* 公司身份 */
                    EyouSoft.Model.CompanyStructure.CompanyRole RoleMode = new EyouSoft.Model.CompanyStructure.CompanyRole();
                    EyouSoft.Model.CompanyStructure.CompanyType TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.全部;

                    if (CompanyType == "0") //线路供应商(专线,地接)
                    {
                        string[] strType = Utils.Split(Utils.GetFormValue("hdfZXandDj"), ",");
                        for (int i = 0; i < strType.Length; i++)
                        {
                            //设置经营线路区域
                            string[] strAreaList = Utils.Split(Utils.GetFormValue("checkbox_Area"), ",");
                            if (strAreaList != null)
                            {
                                List <EyouSoft.Model.SystemStructure.AreaBase> AreaList = new List <EyouSoft.Model.SystemStructure.AreaBase>();
                                for (int j = 0; j < strAreaList.Length; j++)
                                {
                                    EyouSoft.Model.SystemStructure.AreaBase item = new EyouSoft.Model.SystemStructure.AreaBase();
                                    item.AreaId = Convert.ToInt32(strAreaList[j]);
                                    AreaList.Add(item);
                                    item = null;
                                }
                                model.Area = AreaList;
                                AreaList   = null;
                            }
                            if (strType[i] == "1")
                            {
                                TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.专线;
                                string[] strSalelist = Request.Form.GetValues("ckSellCity");
                                if (strSalelist != null)
                                {
                                    //设置销售城市
                                    List <EyouSoft.Model.SystemStructure.CityBase> SaleCity = new List <EyouSoft.Model.SystemStructure.CityBase>();
                                    for (int j = 0; j < strSalelist.Length; j++)
                                    {
                                        EyouSoft.Model.SystemStructure.CityBase item = new EyouSoft.Model.SystemStructure.CityBase();
                                        item.CityId = Convert.ToInt32(strSalelist[j]);
                                        SaleCity.Add(item);
                                        item = null;
                                    }
                                    model.SaleCity = SaleCity;
                                    SaleCity       = null;
                                }
                                OtherSaleCity = Utils.InputText(Request.Form["inputOtherSaleCity"]);
                            }
                            if (strType[i] == "3")
                            {
                                TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.地接;
                            }
                            RoleMode.SetRole(TypeEmnu);
                            model.CompanyRole = RoleMode;
                        }
                    }
                    else
                    {
                        switch (CompanyType)
                        {
                        case "2":
                            TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.组团;
                            break;

                        case "4":
                            TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.景区;
                            break;

                        case "5":
                            TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.酒店;
                            break;

                        case "6":
                            TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.车队;
                            break;

                        case "7":
                            TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.旅游用品店;
                            break;

                        case "8":
                            TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.购物店;
                            break;

                        case "9":
                            TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.机票供应商;
                            //机票
                            ContactModel.QQ  = Utils.InputText(Request.Form["txtContactQQ"]);
                            ContactModel.MSN = Utils.InputText(Request.Form["txtContactMSN"]);
                            EyouSoft.Model.TicketStructure.TicketWholesalersInfo ticketinfo = new EyouSoft.Model.TicketStructure.TicketWholesalersInfo();
                            ticketinfo.ProxyLev      = Utils.InputText(Request.Form["txtDlNumber"]);
                            ticketinfo.WorkStartTime = Utils.InputText(Request.Form["WorkStartTime"]);     //上下班时间
                            ticketinfo.WorkEndTime   = Utils.InputText(Request.Form["WorkEndTime"]);
                            ticketinfo.OfficeNumber  = Utils.InputText(Request.Form["txtOffice"]);
                            if (!string.IsNullOrEmpty(companyId))     //随便逛逛申请,修改
                            {
                                ticketinfo.CompanyId = companyId;
                            }
                            model.TicketSupplierInfo = ticketinfo;
                            // model.License
                            break;

                        case "10":
                            TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.其他采购商;
                            break;

                        case "11":
                            TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.随便逛逛;
                            break;
                        }
                        RoleMode.SetRole(TypeEmnu);
                        model.CompanyRole = RoleMode;
                    }
                    #endregion
                }
                model.AdminAccount = UserModel;
                model.ContactInfo  = ContactModel;
                if (!string.IsNullOrEmpty(companyId)) //随便逛逛申请,修改
                {
                    model.ID  = companyId;
                    AddisTrue = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().ToCompany(model, OtherSaleCity) == true ? 1 : 0;
                }
                else    //注册添加
                {
                    EyouSoft.Model.ResultStructure.UserResultInfo Result = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().Add(model, OtherSaleCity);
                    switch (Result)
                    {
                    case EyouSoft.Model.ResultStructure.UserResultInfo.Succeed:
                        AddisTrue = 1;
                        EyouSoft.Cache.Facade.EyouSoftCache.Add("REG_" + Request.UserHostAddress, DateTime.Now, DateTime.Now.AddMinutes(5));
                        break;

                    case EyouSoft.Model.ResultStructure.UserResultInfo.ExistsEmail:
                        AddisTrue = 2;
                        break;

                    case EyouSoft.Model.ResultStructure.UserResultInfo.ExistsUserName:
                        AddisTrue = 3;
                        break;

                    case EyouSoft.Model.ResultStructure.UserResultInfo.Error:
                        AddisTrue = 0;
                        break;
                    }
                }
            }
            return(AddisTrue);
        }
コード例 #16
0
        /// <summary>
        /// 获取指定条数的后台登陆广告
        /// </summary>
        /// <param name="topNumber">要返回的记录数</param>
        /// <param name="companyType">公司类型</param>
        /// <returns></returns>
        public virtual IList <EyouSoft.Model.SystemStructure.CompanyAdv> GetTopNumList(int topNumber, EyouSoft.Model.CompanyStructure.CompanyType companyType)
        {
            IList <EyouSoft.Model.SystemStructure.CompanyAdv> list = new List <EyouSoft.Model.SystemStructure.CompanyAdv>();
            DbCommand dc = null;

            if (topNumber > 0)
            {
                dc = this._database.GetSqlStringCommand(string.Format(SQL_CompanyAdv_SELECTTOPINFO, topNumber, (int)companyType));
            }
            else
            {
                dc = this._database.GetSqlStringCommand(SQL_CompanyAdv_SELECT + string.Format(" where AdvCompanyType={1} and AdvType=0 Order by sortId desc,issuetime desc", (int)companyType));
            }
            if (dc == null)
            {
                return(null);
            }
            using (IDataReader dr = DbHelper.ExecuteReader(dc, this._database))
            {
                while (dr.Read())
                {
                    EyouSoft.Model.SystemStructure.CompanyAdv model = new EyouSoft.Model.SystemStructure.CompanyAdv();
                    model.ID        = dr.GetInt32(dr.GetOrdinal("ID"));
                    model.AdvTitle  = dr.GetString(dr.GetOrdinal("AdvTitle"));
                    model.AdvLink   = dr.GetString(dr.GetOrdinal("AdvLink"));
                    model.IsNewOpen = dr.GetString(dr.GetOrdinal("IsNewOpen")) == "1"?true:false;
                    list.Add(model);
                    model = null;
                }
            }
            return(list);
        }
コード例 #17
0
        /// <summary>
        /// 运营后台分页获取列表
        /// </summary>
        /// <param name="pageSize">每页显示条数</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="recordCount">总记录数</param>
        /// <param name="companyType">公司类型</param>
        /// <returns></returns>
        public virtual IList <EyouSoft.Model.SystemStructure.CompanyAdv> GetList(int pageSize, int pageIndex, ref int recordCount, EyouSoft.Model.CompanyStructure.CompanyType companyType)
        {
            IList <EyouSoft.Model.SystemStructure.CompanyAdv> list = new List <EyouSoft.Model.SystemStructure.CompanyAdv>();

            EyouSoft.Model.SystemStructure.CompanyAdv model = null;
            string tableName     = "tbl_CompanyAdv";
            string fields        = "ID,AdvTitle,AdvLink,IssueTime,OperatorName,SortId";
            string orderByString = "SortId DESC,IssueTime DESC";
            string primaryKey    = "ID";
            string strWhere      = string.Format(" AdvCompanyType={0} and AdvType=0 ", (int)companyType);

            using (IDataReader dr = DbHelper.ExecuteReader(this._database, pageSize, pageIndex, ref recordCount, tableName, primaryKey, fields, strWhere, orderByString))
            {
                while (dr.Read())
                {
                    model              = new EyouSoft.Model.SystemStructure.CompanyAdv();
                    model.AdvLink      = dr.GetString(dr.GetOrdinal("AdvLink"));
                    model.AdvTitle     = dr.GetString(dr.GetOrdinal("AdvTitle"));
                    model.ID           = dr.GetInt32(dr.GetOrdinal("ID"));
                    model.IssueTime    = dr.GetDateTime(dr.GetOrdinal("IssueTime"));
                    model.OperatorName = dr.GetString(dr.GetOrdinal("OperatorName"));
                    model.SortId       = dr.GetInt32(dr.GetOrdinal("SortId"));
                    list.Add(model);
                    model = null;
                }
            }
            return(list);
        }
コード例 #18
0
        private void BindTravelagencyList()
        {
            int recordCount = 0;

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

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

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

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

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

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


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

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

            if (CompanyList != null && CompanyList.Count > 0)
            {
                this.ExporPageInfoSelect1.intPageSize    = PageSize;
                this.ExporPageInfoSelect1.intRecordCount = recordCount;
                this.ExporPageInfoSelect1.CurrencyPage   = PageIndex;
                this.ExporPageInfoSelect1.HrefType       = Adpost.Common.ExporPage.HrefTypeEnum.JsHref;
                this.ExporPageInfoSelect1.AttributesEventAdd("onclick", "CompanyManage.LoadData(this);", 1);
                this.ExporPageInfoSelect1.AttributesEventAdd("onchange", "CompanyManage.LoadData(this);", 0);
                this.repCompanyList.DataSource = CompanyList;
                this.repCompanyList.DataBind();
            }
            else
            {
                StringBuilder strEmptyText = new StringBuilder();
                strEmptyText.Append("<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"1\" class=\"kuang\">");
                strEmptyText.Append("<tr background=\"" + ImageServerUrl + "/images/yunying/hangbg.gif\" class=\"white\" height=\"23\">");
                strEmptyText.AppendFormat("<td width=\"5%\" height=\"23\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>序号</strong> </td> <td width=\"7%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>单位名称</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"18%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>联系人</strong></td><td width=\"10%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>手机</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"12%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"><strong>电话</strong></td><td width=\"13%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\">  <strong>QQ/MSN</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>最后登录时间</strong></td><td width=\"11%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>登录次数</strong></td>", ImageServerUrl);
                strEmptyText.Append("<tr class=\"huanghui\" ><td  align='center' colspan='10' height='100px'>暂无零售商历史登录记录信息</td></tr>");
                strEmptyText.Append("</tr>");
                strEmptyText.Append("<tr background=\"" + ImageServerUrl + "/images/yunying/hangbg.gif\" class=\"white\" height=\"23\">");
                strEmptyText.AppendFormat("<td width=\"5%\" height=\"23\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>序号</strong> </td> <td width=\"7%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>单位名称</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"18%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>联系人</strong></td><td width=\"10%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>手机</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td width=\"12%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"><strong>电话</strong></td><td width=\"13%\" align=\"center\" background=\"{0}/images/yunying/hangbg.gif\">  <strong>QQ/MSN</strong></td>", ImageServerUrl);
                strEmptyText.AppendFormat("<td align=\"center\" background=\"{0}/images/yunying/hangbg.gif\"> <strong>最后登录时间</strong></td><td width=\"11%\" align=\"center\" valign=\"middle\" background=\"{0}/images/yunying/hangbg.gif\"><strong>登录次数</strong></td>", ImageServerUrl);
                strEmptyText.Append("</tr>");
                strEmptyText.Append("</table>");
                this.repCompanyList.EmptyText = strEmptyText.ToString();
            }
            SearchModel = null;
            CompanyList = null;
        }
コード例 #19
0
        protected string FormSubmit()
        {
            //获得表单值
            //公司名称
            string companyName = Utils.GetFormValue("txtCompanyName");
            //用户名
            string userName = Utils.GetFormValue("u");
            //用户密码
            string userPwd = Utils.GetFormValue("p");
            //确认密码
            string userPwdTwo = Utils.GetFormValue("txtPwdTwo");
            //真实姓名
            string trueName = Utils.GetFormValue("txtTrueName");
            //手机号码
            string userMobile = Utils.GetFormValue("txtPhone");
            //邮箱
            string userEmail = Utils.GetFormValue("txtEmail");
            //用户QQ
            string userQQ = Utils.GetFormValue("txtQQ");
            //省份ID
            int provinceID = Utils.GetInt(Utils.GetFormValue("ProvinceAndCityList1$ddl_ProvinceList"));
            //城市ID
            int cityID = Utils.GetInt(Utils.GetFormValue("ProvinceAndCityList1$ddl_CityList"));

            #region 验证
            if (companyName.Trim() == "")
            {
                return("用户名不能为空");
            }

            if (userPwd.Trim() == "")
            {
                return("密码不能为空");
            }
            if (userPwd.Trim() != userPwdTwo.Trim())
            {
                return("两次密码不一致");
            }
            if (trueName.Trim() == "")
            {
                return("真实姓名不能为空");
            }
            if (userMobile.Trim() == "")
            {
                return("手机号码不能为空");
            }
            if (userEmail.Trim() == "")
            {
                return("不能为空");
            }

            if (userQQ.Trim() == "")
            {
                return("QQ不能为空");
            }
            if (provinceID <= 0)
            {
                return("请选择一个省份");
            }
            if (cityID <= 0)
            {
                return("请选择一个城市");
            }
            #endregion


            /*公司信息*/
            EyouSoft.Model.CompanyStructure.CompanyArchiveInfo model = new EyouSoft.Model.CompanyStructure.CompanyArchiveInfo();
            /*用户信息*/
            EyouSoft.Model.CompanyStructure.UserAccount UserModel = new EyouSoft.Model.CompanyStructure.UserAccount();
            /* 公司联系人信息 */
            EyouSoft.Model.CompanyStructure.ContactPersonInfo ContactModel = new EyouSoft.Model.CompanyStructure.ContactPersonInfo();
            string OtherSaleCity = "";



            UserModel.UserName = userName; /*用户信息*/

            UserModel.PassWordInfo.NoEncryptPassword = userPwd;
            ContactModel.ContactName = trueName;
            ContactModel.Mobile      = userMobile;
            ContactModel.Email       = userEmail;

            /*公司信息*/
            model.CompanyName = companyName;
            model.ProvinceId  = provinceID;
            model.CityId      = CityId;

            /* 公司身份 */
            EyouSoft.Model.CompanyStructure.CompanyRole RoleMode = new EyouSoft.Model.CompanyStructure.CompanyRole();
            EyouSoft.Model.CompanyStructure.CompanyType TypeEmnu = EyouSoft.Model.CompanyStructure.CompanyType.组团;


            RoleMode.SetRole(TypeEmnu);
            model.CompanyRole = RoleMode;


            model.AdminAccount = UserModel;
            model.ContactInfo  = ContactModel;


            EyouSoft.Model.ResultStructure.UserResultInfo Result = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().Add(model, OtherSaleCity);

            if (Result == EyouSoft.Model.ResultStructure.UserResultInfo.Succeed)
            {
                return("OK");
            }
            else
            {
                return("Error");
            }
        }