コード例 #1
0
        /// <summary>
        /// 设置公司所有的附件信息(必须保证每个不进行修改的字段,都需要保持原来本身的指)
        /// </summary>
        /// <param name="model">公司所有的附件信息</param>
        /// <returns></returns>
        public virtual bool SetCompanyAttachInfo(EyouSoft.Model.CompanyStructure.CompanyAttachInfo model)
        {
            StringBuilder SQL = new StringBuilder();
            IDictionary <string, string> parameter = new Dictionary <string, string>();

            SQL.Append(this.BuildSQL(0, "CompanyImg", model.CompanyImg.ImagePath, parameter));
            SQL.Append(this.BuildSQL(1, "CompanyImgLink", model.CompanyImg.ImageLink, parameter));
            SQL.Append(this.BuildSQL(1, "CompanyLogo", model.CompanyLogo.ImagePath, parameter));
            SQL.Append(this.BuildSQL(1, "CompanyLogoThumb", model.CompanyLogo.ThumbPath, parameter));
            SQL.Append(this.BuildSQL(1, "LicenceImg", model.BusinessCertif.LicenceImg, parameter));
            SQL.Append(this.BuildSQL(1, "BusinessCertImg", model.BusinessCertif.BusinessCertImg, parameter));
            SQL.Append(this.BuildSQL(1, "TaxRegImg", model.BusinessCertif.TaxRegImg, parameter));
            SQL.Append(this.BuildSQL(1, "CommitmentImg", model.CommitmentImg, parameter));
            SQL.Append(this.BuildSQL(1, "CompanyCard", model.CompanyCard.ImagePath, parameter));
            SQL.Append(this.BuildSQL(1, "CompanyCardLink", model.CompanyCard.ImageLink, parameter));
            SQL.Append(this.BuildSQL(1, "CompanySignet", model.CompanySignet, parameter));
            SQL.Append(this.BuildSQL(1, "CompanyMQAdv", model.CompanyMQAdv.ImagePath, parameter));
            SQL.Append(this.BuildSQL(1, "CompanyMQAdvLink", model.CompanyMQAdv.ImageLink, parameter));
            SQL.Append(this.BuildSQL(1, "CompanyShopBanner", model.CompanyShopBanner.ImagePath, parameter));
            SQL.Append(this.BuildSQL(1, "TradeAward", model.TradeAward, parameter));
            SQL.Append(this.BuildSQL(1, "CSBannerBg", model.CompanyShopBanner.BannerBackground, parameter));
            SQL.Append(this.BuildSQL(2, "CSBannerType", Convert.ToInt32(model.CompanyShopBanner.BannerType).ToString(), parameter));

            DbCommand dc = this._database.GetSqlStringCommand(SQL.ToString());

            this._database.AddInParameter(dc, "CompanyId", DbType.AnsiStringFixedLength, model.CompanyId);
            foreach (string key in parameter.Keys)
            {
                this._database.AddInParameter(dc, key, DbType.String, parameter[key]);
            }

            return(DbHelper.ExecuteSql(dc, this._database) > 0 ? true : false);
        }
コード例 #2
0
 private void InitInfo()
 {
     EyouSoft.Model.CompanyStructure.CompanyAttachInfo model = EyouSoft.BLL.CompanyStructure.CompanyAttachInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
     if (model != null && model.CompanyLogo != null && !string.IsNullOrEmpty(model.CompanyLogo.ImagePath))
     {
         hOldLogoPath.Value = model.CompanyLogo.ImagePath;
         ltOldLogo.Text     = string.Format("<a href=\"{0}\" target=\"_blank\">查看原图</a>", Domain.FileSystem + model.CompanyLogo.ImagePath);
     }
     model = null;
 }
コード例 #3
0
        /// <summary>
        /// 获得公司附件信息集合
        /// </summary>
        /// <param name="companyId">公司ID集合</param>
        /// <returns></returns>
        public IList <EyouSoft.Model.CompanyStructure.CompanyAttachInfo> GetList(params string[] companyId)
        {
            List <EyouSoft.Model.CompanyStructure.CompanyAttachInfo> list = new List <EyouSoft.Model.CompanyStructure.CompanyAttachInfo>();

            foreach (string _companyId in companyId)
            {
                EyouSoft.Model.CompanyStructure.CompanyAttachInfo model = GetModel(_companyId);
                if (model != null)
                {
                    list.Add(model);
                }
            }
            return(list);
        }
コード例 #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //清理过了指定停留时间的在线用户的在线状态为不在线(不含客服人员)
            OlServerUtility.ClearUserOut();


            EyouSoft.Model.OnLineServer.OlServerUserInfo olInfo       = null;
            EyouSoft.Model.OnLineServer.OlServerUserInfo olCookieInfo = OlServerUtility.GetOlCookieInfo(this.IsService);
            EyouSoft.Model.OnLineServer.OlServerConfig   configInfo   = null;
            EyouSoft.BLL.OnLineServer.OLServer           bll          = new EyouSoft.BLL.OnLineServer.OLServer();
            olInfo = bll.ServiceLogin(base.SiteUserInfo, true, base.SiteUserInfo.CompanyID);

            bll = null;

            //获取在线客服配置信息
            configInfo = OlServerUtility.GetOlServerConfig();

            string olserverinfo = "var olserverinfos={{uInfo:{0},configInfo:{1},mInfo:{2},lastTime:\"{3}\",CompanyName:\"{4}\"}};";

            string userInfoJsonString   = JsonConvert.SerializeObject(olInfo);
            string configInfoJsonString = JsonConvert.SerializeObject(configInfo);

            EyouSoft.Model.OnLineServer.OlServerMessageInfo MessageInfo = new EyouSoft.Model.OnLineServer.OlServerMessageInfo();
            MessageInfo.AcceptId   = string.Empty;
            MessageInfo.AcceptName = string.Empty;
            MessageInfo.Message    = string.Empty;
            MessageInfo.MessageId  = string.Empty;
            MessageInfo.SendId     = string.Empty;
            MessageInfo.SendName   = string.Empty;
            MessageInfo.SendTime   = DateTime.Now;
            string messageInfoJsonString = JsonConvert.SerializeObject(MessageInfo);

            //设置cookie
            this.SetOlCookieInfo(this.IsService, userInfoJsonString);

            this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "DEFAULTINFOS", string.Format(olserverinfo, userInfoJsonString, configInfoJsonString, messageInfoJsonString, DateTime.Now.ToString(), SiteUserInfo.CompanyName), true);

            #region 设置企业名称

            lbCompanyName1.Text = SiteUserInfo.CompanyName;
            lbCompanyName.Text  = SiteUserInfo.CompanyName;

            EyouSoft.Model.CompanyStructure.CompanyAttachInfo ImgModel = EyouSoft.BLL.CompanyStructure.CompanyAttachInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
            if (ImgModel != null && ImgModel.CompanyLogo != null && !string.IsNullOrEmpty(ImgModel.CompanyLogo.ImagePath))
            {
                CompanyLogPath = Domain.FileSystem + ImgModel.CompanyLogo.ImagePath;
            }

            #endregion
        }
コード例 #5
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;
     }
 }
コード例 #6
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;
        }
コード例 #7
0
        private void InitCompanyInfo()
        {
            // 公司基本信息
            EyouSoft.Model.CompanyStructure.CompanyDetailInfo model = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
            if (model != null)
            {
                if (model.AttachInfo != null && model.AttachInfo.CompanyShopBanner != null && !String.IsNullOrEmpty(model.AttachInfo.CompanyShopBanner.ImagePath))
                {
                    this.imgBanner.Src = Domain.FileSystem + model.AttachInfo.CompanyShopBanner.ImagePath;
                }
                this.ltrContactName.Text = model.ContactInfo.ContactName;
                this.ltrTel.Text         = model.ContactInfo.Tel;
                this.ltrFax.Text         = model.ContactInfo.Fax;
                this.ltrWebSite.Text     = model.WebSite;
                this.ltrAdress.Text      = model.CompanyAddress;
                this.ltrMQ.Text          = Utils.GetMQ(model.ContactInfo.MQ);
                this.ltrQQ.Text          = Utils.GetQQ(model.ContactInfo.QQ);
            }
            model = null;

            EyouSoft.Model.CompanyStructure.CompanyAttachInfo attachmodel = EyouSoft.BLL.CompanyStructure.CompanyAttachInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
            if (attachmodel != null && attachmodel.CompanyLogo != null && !String.IsNullOrEmpty(attachmodel.CompanyLogo.ImagePath))
            {
                this.imgLogo.Src = Domain.FileSystem + attachmodel.CompanyLogo.ImagePath;
            }
            else
            {
                this.imgLogo.Src = Domain.FileSystem + "/images/shopnoimg/nologo.gif";
            }

            EyouSoft.Model.ShopStructure.HighShopCompanyInfo CompanyInfo = EyouSoft.BLL.ShopStructure.HighShopCompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
            if (CompanyInfo != null && !String.IsNullOrEmpty(CompanyInfo.CompanyInfo))
            {
                // 关于我们
                this.ltrAboutUsTitle.Text = SiteUserInfo.CompanyName;
                this.ltrAboutUs.Text      = Utils.GetText(Utils.InputText(CompanyInfo.CompanyInfo), 150, true) + "<span style=\"background: #FFF6C7; border: 1px solid #FF8624;color: #339933; float: center; text-align:left;height:15px; width:165px; cursor:pointer;\" onclick=\"return boxymethods('/eshop/setaboutus.aspx','景区介绍',730,470);\"><img src=\"" + ImageManage.GetImagerServerUrl(1) + "/Images/seniorshop/gan.gif\" /><strong>【添加景区介绍】</strong></span>";

                this.ltrCopyright.Text = CompanyInfo.ShopCopyRight;   // 版权
            }
            CompanyInfo = null;

            // 广告图片
            EyouSoft.Model.CompanyStructure.SupplierInfo smodel = EyouSoft.BLL.CompanyStructure.SupplierInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
            if (smodel != null && smodel.ProductInfo != null && smodel.ProductInfo.Count > 0)
            {
                this.imgAdv.Src = Domain.FileSystem + smodel.ProductInfo[0].ImagePath.ToString();
            }
            else
            {
                this.imgAdv.Src = ImageManage.GetImagerServerUrl(1) + "/images/shopnoimg/norotapic.gif";
            }
            smodel = null;

            // 友情链接
            IList <EyouSoft.Model.ShopStructure.HighShopFriendLink> FriendLinkList = EyouSoft.BLL.ShopStructure.HighShopFriendLink.CreateInstance().GetList(SiteUserInfo.CompanyID);
            string tmp = "<b><font class=\"C_G\">友情链接:</font></b>";

            if (FriendLinkList != null && FriendLinkList.Count > 0)
            {
                foreach (EyouSoft.Model.ShopStructure.HighShopFriendLink linkModel in FriendLinkList)
                {
                    tmp += linkModel.LinkName + "|";
                }
                if (tmp.EndsWith("|"))
                {
                    tmp = tmp.Substring(0, tmp.Length - 1);
                }
            }
            this.ltrFriendLink.Text = tmp;
            FriendLinkList          = null;
        }
コード例 #8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            SetCompanyId();

            //清理过了指定停留时间的在线用户的在线状态为不在线(不含客服人员)
            OlServerUtility.ClearUserOut();


            EyouSoft.Model.OnLineServer.OlServerUserInfo olInfo       = null;
            EyouSoft.Model.OnLineServer.OlServerUserInfo olCookieInfo = OlServerUtility.GetOlCookieInfo(this.IsService);
            EyouSoft.Model.OnLineServer.OlServerConfig   configInfo   = null;
            EyouSoft.BLL.OnLineServer.OLServer           bll          = new EyouSoft.BLL.OnLineServer.OLServer();
            UserInfo userInfo = null;
            bool     isLogin  = EyouSoft.Security.Membership.UserProvider.IsUserLogin(out userInfo);

            if (!isLogin)
            {
                olInfo = bll.GuestLogin(olCookieInfo, _companyid);
            }
            else
            {
                olInfo = bll.ServiceLogin(userInfo, this.IsService, _companyid);
            }

            bll = null;

            //获取在线客服配置信息
            configInfo = OlServerUtility.GetOlServerConfig();

            string olserverinfo = "var olserverinfos={{uInfo:{0},configInfo:{1},mInfo:{2},lastTime:\"{3}\",CompanyName:\"{4}\"}};";

            string userInfoJsonString   = JsonConvert.SerializeObject(olInfo);
            string configInfoJsonString = JsonConvert.SerializeObject(configInfo);

            EyouSoft.Model.OnLineServer.OlServerMessageInfo MessageInfo = new EyouSoft.Model.OnLineServer.OlServerMessageInfo();
            MessageInfo.AcceptId   = string.Empty;
            MessageInfo.AcceptName = string.Empty;
            MessageInfo.Message    = string.Empty;
            MessageInfo.MessageId  = string.Empty;
            MessageInfo.SendId     = string.Empty;
            MessageInfo.SendName   = string.Empty;
            MessageInfo.SendTime   = DateTime.Now;
            string messageInfoJsonString = JsonConvert.SerializeObject(MessageInfo);

            //设置cookie
            this.SetOlCookieInfo(this.IsService, userInfoJsonString);

            this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "DEFAULTINFOS", string.Format(olserverinfo, userInfoJsonString, configInfoJsonString, messageInfoJsonString, DateTime.Now.ToString(), _companyinfo.CompanyName), true);

            #region 设置企业名称

            lbCompanyName1.Text = _companyinfo.CompanyName;
            lbCompanyName.Text  = _companyinfo.CompanyName;
            ltrCompanyName.Text = _companyinfo.CompanyName;
            EyouSoft.Model.CompanyStructure.CompanyAttachInfo ImgModel = EyouSoft.BLL.CompanyStructure.CompanyAttachInfo.CreateInstance().GetModel(_companyid);
            if (ImgModel != null && ImgModel.CompanyLogo != null && !string.IsNullOrEmpty(ImgModel.CompanyLogo.ImagePath))
            {
                CompanyLogPath = Domain.FileSystem + ImgModel.CompanyLogo.ImagePath;
            }
            ImgModel = null;

            if (_companyinfo != null)
            {
                StringBuilder strCompanyInfo = new StringBuilder();
                if (!string.IsNullOrEmpty(_companyinfo.CompanyBrand))
                {
                    strCompanyInfo.AppendFormat("<strong>品牌名称:</strong>{0}<br />", _companyinfo.CompanyBrand);
                }
                if (_companyinfo.ContactInfo != null && !string.IsNullOrEmpty(_companyinfo.ContactInfo.ContactName))
                {
                    strCompanyInfo.AppendFormat("联系人:{0}<br />", _companyinfo.ContactInfo.ContactName);
                }
                if (_companyinfo.ContactInfo != null && !string.IsNullOrEmpty(_companyinfo.ContactInfo.Mobile))
                {
                    strCompanyInfo.AppendFormat("手机:{0}<br />", _companyinfo.ContactInfo.Mobile);
                }
                if (_companyinfo.ContactInfo != null && !string.IsNullOrEmpty(_companyinfo.ContactInfo.Tel))
                {
                    strCompanyInfo.AppendFormat("电话:{0}<br />", _companyinfo.ContactInfo.Tel);
                }
                if (_companyinfo.ContactInfo != null && !string.IsNullOrEmpty(_companyinfo.ContactInfo.Fax))
                {
                    strCompanyInfo.AppendFormat("传真:{0}<br />", _companyinfo.ContactInfo.Fax);
                }
                if (!string.IsNullOrEmpty(_companyinfo.CompanyAddress))
                {
                    strCompanyInfo.AppendFormat("地址:{0}", _companyinfo.CompanyAddress);
                }
                if (strCompanyInfo.Length > 0)
                {
                    strCompanyInfo.Insert(0, "<li>");
                    strCompanyInfo.Append("</li>");
                }
                ltrCompanyInfo.Text = strCompanyInfo.ToString();
            }
            #endregion
        }
コード例 #9
0
        public void Test()
        {
            return;

            string companyid = "a0e2aceb-4ffe-4f9f-8413-96f9b13cf820";

            EyouSoft.IDAL.CompanyStructure.ICompanyAttachInfo idal5       = EyouSoft.Component.Factory.ComponentFactory.CreateDAL <EyouSoft.IDAL.CompanyStructure.ICompanyAttachInfo>();
            EyouSoft.Model.CompanyStructure.CompanyAttachInfo modelattach = new EyouSoft.Model.CompanyStructure.CompanyAttachInfo();
            modelattach.Bronze = "Bronze";
            modelattach.BusinessCertif.BusinessCertImg = "BusinessCertif.BusinessCertImg";
            modelattach.BusinessCertif.LicenceImg      = "BusinessCertif.LicenceImg";
            modelattach.BusinessCertif.TaxRegImg       = "BusinessCertif.TaxRegImg";
            modelattach.CommitmentImg          = "CommitmentImg";
            modelattach.CompanyCard.ImageLink  = "CompanyCard.ImageLink";
            modelattach.CompanyCard.ImagePath  = "CompanyCard.ImagePath";
            modelattach.CompanyCard.ThumbPath  = "CompanyCard.ThumbPath";
            modelattach.CompanyId              = companyid;
            modelattach.CompanyImg.ImageLink   = "CompanyImg.ImageLink";
            modelattach.CompanyImg.ImagePath   = "CompanyImg.ImagePath";
            modelattach.CompanyImg.ThumbPath   = "CompanyImg.ThumbPath";
            modelattach.CompanyLogo.ImageLink  = "CompanyLogo.ImageLink";
            modelattach.CompanyLogo.ImagePath  = "CompanyLogo.ImagePath";
            modelattach.CompanyLogo.ThumbPath  = "CompanyLogo.ThumbPath";
            modelattach.CompanyMQAdv.ImageLink = "CompanyMQAdv.ImageLink";
            modelattach.CompanyMQAdv.ImagePath = "CompanyMQAdv.ImagePath";
            modelattach.CompanyMQAdv.ThumbPath = "CompanyMQAdv.ThumbPath";
            //modelattach.CompanyShopBanner.ImageLink = "CompanyShopBanner.ImageLink";
            modelattach.CompanyShopBanner.ImagePath = "CompanyShopBanner.ImagePath";
            //modelattach.CompanyShopBanner.ThumbPath = "CompanyShopBanner.ThumbPath";
            modelattach.CompanySignet = "CompanySignet";
            modelattach.TradeAward    = "TradeAward";
            modelattach.CompanyShopBanner.BannerType       = EyouSoft.Model.CompanyStructure.ShopBannerType.Default;
            modelattach.CompanyShopBanner.CompanyLogo      = "CompanyLogo.ImagePath";
            modelattach.CompanyShopBanner.ImagePath        = "CompanyShopBanner.ImagePath";
            modelattach.CompanyShopBanner.BannerBackground = "CompanyShopBanner.BannerBackground";
            bool result = idal5.SetCompanyAttachInfo(modelattach);

            EyouSoft.Model.CompanyStructure.CardInfo card = new EyouSoft.Model.CompanyStructure.CardInfo();
            card.ImageLink = "card.ImageLink";
            card.ImagePath = "card.ImagePath";
            card.ThumbPath = "card.ThumbPath";
            bool result1 = idal5.SetCompanyCard(companyid, card);

            EyouSoft.Model.CompanyStructure.CompanyImg img = new EyouSoft.Model.CompanyStructure.CompanyImg();
            img.ImageLink = "img.ImageLink";
            img.ImagePath = "img.ImagePath";
            img.ThumbPath = "img.ThumbPath";
            bool result2 = idal5.SetCompanyImage(companyid, img);

            EyouSoft.Model.CompanyStructure.CompanyLogo logo = new EyouSoft.Model.CompanyStructure.CompanyLogo();
            logo.ImageLink = "logo.ImageLink";
            logo.ImagePath = "logo.ImagePath";
            logo.ThumbPath = "logo.ThumbPath";
            bool result3 = idal5.SetCompanyLogo(companyid, logo);

            EyouSoft.Model.CompanyStructure.CompanyMQAdv mqadv = new EyouSoft.Model.CompanyStructure.CompanyMQAdv();
            mqadv.ImageLink = "mqadv.ImageLink";
            mqadv.ImagePath = "mqadv.ImagePath";
            mqadv.ThumbPath = "mqadv.ThumbPath";
            bool result4 = idal5.SetCompanyMQAdv(companyid, mqadv);

            EyouSoft.Model.CompanyStructure.CompanyShopBanner shop = new EyouSoft.Model.CompanyStructure.CompanyShopBanner();
            //shop.ImageLink = "shop.ImageLink";
            shop.ImagePath = "shop.ImagePath";
            //shop.ThumbPath = "shop.ThumbPath";
            shop.BannerType       = EyouSoft.Model.CompanyStructure.ShopBannerType.Default;
            shop.CompanyLogo      = "shop.CompanyLogo";
            shop.ImagePath        = "shop.ImagePath";
            shop.BannerBackground = "shop.BannerBackground";
            bool result5 = idal5.SetCompanyShopBanner(companyid, shop);

            EyouSoft.Model.CompanyStructure.CompanyAttachInfo attachmodel = idal5.GetModel(companyid);
            int i = 0;

            return;

            EyouSoft.IDAL.MQStructure.IIMMessage         idal4 = EyouSoft.Component.Factory.ComponentFactory.CreateDAL <EyouSoft.IDAL.MQStructure.IIMMessage>();
            IList <EyouSoft.Model.MQStructure.IMMessage> list4 = idal4.GetTodayLastMessage(0);

            return;

            bool issend = false;

            issend = EyouSoft.BLL.ToolStructure.MsgTipRecord.CreateInstance().IsSendMsgTip(EyouSoft.Model.ToolStructure.MsgType.AddFriend, EyouSoft.Model.ToolStructure.MsgSendWay.SMS, "48075", 362);
            return;

            EyouSoft.IDAL.MQStructure.IIMMember            idal1 = EyouSoft.Component.Factory.ComponentFactory.CreateDAL <EyouSoft.IDAL.MQStructure.IIMMember>();
            IList <Model.CompanyStructure.CompanyUserBase> list1 = idal1.GetLongOffLineList(29, 362);

            EyouSoft.IDAL.CompanyStructure.ICompanyUser idal2  = EyouSoft.Component.Factory.ComponentFactory.CreateDAL <EyouSoft.IDAL.CompanyStructure.ICompanyUser>();
            EyouSoft.Model.CompanyStructure.CompanyUser model2 = idal2.GetAdminModel("40e1a851-6057-4dd9-ae0b-c270566303ac");

            EyouSoft.IDAL.ToolStructure.IMsgTipRecord idal3    = EyouSoft.Component.Factory.ComponentFactory.CreateDAL <EyouSoft.IDAL.ToolStructure.IMsgTipRecord>();
            EyouSoft.Model.ToolStructure.MsgTipRecord msgmodel = new EyouSoft.Model.ToolStructure.MsgTipRecord();
            msgmodel.Email    = "*****@*****.**";
            msgmodel.FromMQID = "35967"; //mqlogin
            msgmodel.ToMQID   = "48075"; //mqlogin_1
            msgmodel.Mobile   = "13777476875";
            msgmodel.MsgType  = EyouSoft.Model.ToolStructure.MsgType.AddFriend;
            msgmodel.SendWay  = EyouSoft.Model.ToolStructure.MsgSendWay.Email;
            bool istrue = idal3.Add(msgmodel);

            int count = idal3.GetTodayCount(EyouSoft.Model.ToolStructure.MsgType.AddFriend, EyouSoft.Model.ToolStructure.MsgSendWay.Email, "48075");
        }
コード例 #10
0
        /// <summary>
        /// 获得公司附件信息
        /// </summary>
        /// <param name="companyId">公司ID</param>
        /// <returns></returns>
        public virtual EyouSoft.Model.CompanyStructure.CompanyAttachInfo GetModel(string companyId)
        {
            var model = new EyouSoft.Model.CompanyStructure.CompanyAttachInfo();

            model.CompanyPublicityPhoto = new List <Model.CompanyStructure.CompanyPublicityPhoto>();
            var photoList = new List <Model.CompanyStructure.CompanyPublicityPhoto>();

            model.CompanyId = companyId;

            DbCommand dc = this._database.GetSqlStringCommand(SQL_CompanyAttachInfo_SELECT);

            this._database.AddInParameter(dc, "CompanyId", DbType.AnsiStringFixedLength, companyId);
            using (IDataReader rdr = DbHelper.ExecuteReader(dc, this._database))
            {
                while (rdr.Read())
                {
                    string FieldName  = rdr.IsDBNull(rdr.GetOrdinal("FieldName")) == true ? "" : rdr.GetString(rdr.GetOrdinal("FieldName"));
                    string FieldValue = rdr.IsDBNull(rdr.GetOrdinal("FieldValue")) == true ? "" : rdr.GetString(rdr.GetOrdinal("FieldValue"));
                    switch (FieldName)
                    {
                    case "CompanyImg":
                        model.CompanyImg.ImagePath = FieldValue;
                        break;

                    case "CompanyImgLink":
                        model.CompanyImg.ImageLink = FieldValue;
                        break;

                    case "CompanyLogo":
                        model.CompanyLogo.ImagePath         = FieldValue;
                        model.CompanyShopBanner.CompanyLogo = FieldValue;
                        break;

                    case "CompanyLogoThumb":
                        model.CompanyLogo.ThumbPath = FieldValue;
                        break;

                    case "LicenceImg":
                        model.BusinessCertif.LicenceImg = FieldValue;
                        break;

                    case "BusinessCertImg":
                        model.BusinessCertif.BusinessCertImg = FieldValue;
                        break;

                    case "TaxRegImg":
                        model.BusinessCertif.TaxRegImg = FieldValue;
                        break;

                    case "CommitmentImg":
                        model.CommitmentImg = FieldValue;
                        break;

                    case "CompanyCard":
                        model.CompanyCard.ImagePath = FieldValue;
                        break;

                    case "CompanyCardLink":
                        model.CompanyCard.ImageLink = FieldValue;
                        break;

                    case "CompanySignet":
                        model.CompanySignet = FieldValue;
                        break;

                    case "CompanyMQAdv":
                        model.CompanyMQAdv.ImagePath = FieldValue;
                        break;

                    case "CompanyMQAdvLink":
                        model.CompanyMQAdv.ImageLink = FieldValue;
                        break;

                    case "CompanyShopBanner":
                        model.CompanyShopBanner.ImagePath = FieldValue;
                        break;

                    case "TradeAward":
                        model.TradeAward = FieldValue;
                        break;

                    case "CSBannerBg":
                        model.CompanyShopBanner.BannerBackground = FieldValue;
                        break;

                    case "CSBannerType":
                        model.CompanyShopBanner.BannerType = (EyouSoft.Model.CompanyStructure.ShopBannerType)Enum.Parse(typeof(EyouSoft.Model.CompanyStructure.ShopBannerType), FieldValue);
                        break;

                        #region 2011-12-20 线路改版新加字段

                    case "WarrantImg":
                        model.BusinessCertif.WarrantImg = FieldValue;
                        break;

                    case "PersonCardImg":
                        model.BusinessCertif.PersonCardImg = FieldValue;
                        break;

                    case "PublicityPhoto1":
                        if (photoList.Any(item => item.PhotoIndex == 1))
                        {
                            photoList.Find(item => item.PhotoIndex == 1).ImagePath = FieldValue;
                        }
                        else
                        {
                            photoList.Add(new Model.CompanyStructure.CompanyPublicityPhoto {
                                PhotoIndex = 1, ImagePath = FieldValue
                            });
                        }
                        break;

                    case "PublicityPhoto1Thumb":
                        if (photoList.Any(item => item.PhotoIndex == 1))
                        {
                            photoList.Find(item => item.PhotoIndex == 1).ThumbPath = FieldValue;
                        }
                        else
                        {
                            photoList.Add(new Model.CompanyStructure.CompanyPublicityPhoto {
                                PhotoIndex = 1, ThumbPath = FieldValue
                            });
                        }
                        break;

                    case "PublicityPhoto2":
                        if (photoList.Any(item => item.PhotoIndex == 2))
                        {
                            photoList.Find(item => item.PhotoIndex == 2).ImagePath = FieldValue;
                        }
                        else
                        {
                            photoList.Add(new Model.CompanyStructure.CompanyPublicityPhoto {
                                PhotoIndex = 2, ImagePath = FieldValue
                            });
                        }
                        break;

                    case "PublicityPhoto2Thumb":
                        if (photoList.Any(item => item.PhotoIndex == 2))
                        {
                            photoList.Find(item => item.PhotoIndex == 2).ThumbPath = FieldValue;
                        }
                        else
                        {
                            photoList.Add(new Model.CompanyStructure.CompanyPublicityPhoto {
                                PhotoIndex = 2, ThumbPath = FieldValue
                            });
                        }
                        break;

                    case "PublicityPhoto3":
                        if (photoList.Any(item => item.PhotoIndex == 3))
                        {
                            photoList.Find(item => item.PhotoIndex == 3).ImagePath = FieldValue;
                        }
                        else
                        {
                            photoList.Add(new Model.CompanyStructure.CompanyPublicityPhoto {
                                PhotoIndex = 3, ImagePath = FieldValue
                            });
                        }
                        break;

                    case "PublicityPhoto3Thumb":
                        if (photoList.Any(item => item.PhotoIndex == 3))
                        {
                            photoList.Find(item => item.PhotoIndex == 3).ThumbPath = FieldValue;
                        }
                        else
                        {
                            photoList.Add(new Model.CompanyStructure.CompanyPublicityPhoto {
                                PhotoIndex = 3, ThumbPath = FieldValue
                            });
                        }
                        break;

                        #endregion
                    }
                }
            }

            model.CompanyPublicityPhoto = photoList;
            return(model);
        }
コード例 #11
0
        /// <summary>
        /// 初始化控件
        /// </summary>
        private void InitData()
        {
            #region 图片新闻

            CommonTopicControl1.PartType  = UserPublicCenter.SupplierInfo.UserControl.CommonTopicControl.PartTypes.资讯;
            CommonTopicControl1.TopicType = UserPublicCenter.SupplierInfo.UserControl.CommonTopicControl.TopicTypes.图文广告列表;

            #endregion

            #region 最多查看资讯绑定

            rptMostArticle.DataSource = EyouSoft.BLL.CommunityStructure.InfoArticle.CreateInstance().GetTopListByReadCount(8, null, null);
            rptMostArticle.DataBind();

            #endregion

            IList <EyouSoft.Model.AdvStructure.AdvInfo> List = EyouSoft.BLL.AdvStructure.Adv.CreateInstance().GetAdvs(CurrCityId, EyouSoft.Model.AdvStructure.AdvPosition.供求信息频道供求信息文章页图片广告1);
            if (List != null && List.Count > 0)
            {
                ltrAdv.Text = string.Format("<a target=\"_blank\" href=\"{0}\" title=\"{1}\"><img alt=\"{2}\" src=\"{3}\" width=\"250\" height=\"170\" /></a>", List[0].RedirectURL, List[0].Title, List[0].Title, Domain.FileSystem + List[0].ImgPath);
                List.Clear();
            }
            List = null;

            if (IsLogin)
            {
                EyouSoft.Security.Membership.UserProvider.IsUserLogin(out SiteUserInfo);
                panIsLogin.Visible     = true;
                ltrContactName.ToolTip = SiteUserInfo.ContactInfo.ContactName;
                ltrContactName.Text    = Utils.GetText2(SiteUserInfo.ContactInfo.ContactName, 5, false);
                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 = ImageManage.GetImagerServerUrl(1) + "/Images/UserPublicCenter/defaultlogo.jpg";
                    if (model.CompanyLogo.ImagePath.Length > 0)
                    {
                        CompanyLogo = Domain.FileSystem + model.CompanyLogo.ImagePath;
                    }
                    ltrLog.Text = string.Format("<img src=\"{0}\" width=\"90\" height=\"56\" />", 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";
                    //if (CompanyModel.BusinessProperties != EyouSoft.Model.CompanyStructure.BusinessProperties.旅游社)
                    //{
                    //    EyouSoft.Model.CompanyStructure.CompanyService ServiceModel = CompanyModel.StateMore.CompanyService; ;
                    //    bool IsOpenHighShop = ServiceModel.IsServiceAvailable(EyouSoft.Model.CompanyStructure.SysService.HighShop);
                    //    if (!IsOpenHighShop)
                    //    {
                    //        aSupplyInfo1.HRef = "javascript:;";
                    //        aSupplyInfo1.Attributes.Add("onclick", "alert('您还没有开通高级网店,无法使用此功能!');return false;");
                    //        aSupplyInfo2.HRef = "javascript:;";
                    //        aSupplyInfo2.Attributes.Add("onclick", "alert('您还没有开通高级网店,无法使用此功能!');return false;");
                    //        aSupplyInfo3.HRef = "javascript:;";
                    //        aSupplyInfo3.Attributes.Add("onclick", "alert('您还没有开通高级网店,无法使用此功能!');return false;");
                    //    }
                    //    ServiceModel = null;
                    //}
                    EyouSoft.Model.CompanyStructure.CompanyType?cType = Utils.GetCompanyType(SiteUserInfo.CompanyID);
                    if (cType.HasValue)
                    {
                        aShop.HRef = Utils.GetCompanyDomain(SiteUserInfo.CompanyID, cType.Value);
                    }
                    else
                    {
                        aShop.HRef   = "javascript:void(0);";
                        aShop.Target = "";
                    }
                }
                CompanyModel = null;
            }
            else
            {
                panLogin.Visible = true;
                panUrl.Visible   = true;
            }
        }
コード例 #12
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;
        }