Esempio n. 1
0
        //保存并跳转
        protected void btnFulInBack_Click(object sender, EventArgs e)
        {
            EyouSoft.Model.CompanyStructure.CompanyDetailInfo model = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);

            EyouSoft.Model.CompanyStructure.CompanyLogo logoModel = new EyouSoft.Model.CompanyStructure.CompanyLogo();
            logoModel.ImagePath = Utils.GetFormValue("ctl00$Main$sfuLogo$hidFileName");
            EyouSoft.Model.CompanyStructure.BusinessCertif busiModel = new EyouSoft.Model.CompanyStructure.BusinessCertif();
            busiModel.LicenceImg = Utils.GetFormValue("ctl00$Main$sfuYyzzImg$hidFileName");

            model.AttachInfo.BusinessCertif = busiModel;
            model.AttachInfo.CompanyLogo    = logoModel;

            model.Remark = Utils.EditInputText(Request.Form["txaCompanyDetail"]);

            if (trCuperous.Visible)
            {
                //机票铜牌
                model.AttachInfo.Bronze = Utils.GetFormValue("ctl00$Main$sfuCupreousImg$hidFileName");
            }

            EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().UpdateSelf(model);
            if (string.IsNullOrEmpty(hfdBackUrl.Value))
            {
                Response.Redirect("Login.aspx");
            }
            else
            {
                Response.Redirect(hfdBackUrl.Value);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 免费版供应商修改
        /// </summary>
        /// <param name="CompanyId">公司编号</param>
        /// <param name="CompanyName">公司名称</param>
        /// <param name="Remark">公司介绍</param>
        /// <param name="ShortRemark">公司业务优势</param>
        /// <param name="CompanyImgThumb">公司LOGO</param>
        /// <returns>true:成功 false:失败</returns>
        public bool Update(string CompanyId, string CompanyName, string Remark, string ShortRemark, string CompanyImgThumb)
        {
            if (string.IsNullOrEmpty(CompanyId) || string.IsNullOrEmpty(CompanyName))
            {
                return(false);
            }

            EyouSoft.Model.CompanyStructure.CompanyLogo logo = new EyouSoft.Model.CompanyStructure.CompanyLogo();
            logo.ImagePath = CompanyImgThumb;
            logo.ImageLink = "";
            logo.ThumbPath = "";

            return(new EyouSoft.BLL.CompanyStructure.CompanyAttachInfo().SetCompanyLogo(CompanyId, logo) &&
                   dal.Update(CompanyId, CompanyName, Remark, ShortRemark));
        }
Esempio n. 3
0
        /// <summary>
        /// 付费版供应商修改
        /// </summary>
        /// <param name="model">供应商实体类</param>
        /// <returns>true:成功 false:失败</returns>
        public bool Update(EyouSoft.Model.CompanyStructure.SupplierInfo model)
        {
            if (model == null)
            {
                return(false);
            }

            EyouSoft.Model.CompanyStructure.CompanyLogo logo = new EyouSoft.Model.CompanyStructure.CompanyLogo();
            logo.ImagePath = model.CompanyImgThumb;
            logo.ImageLink = "";
            logo.ThumbPath = "";

            return(new EyouSoft.BLL.CompanyStructure.CompanyAttachInfo().SetCompanyLogo(model.ID, logo) &&
                   dal.Update(model));
        }
Esempio n. 4
0
        /// <summary>
        /// 保存按钮Click事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSave_Click(object sender, EventArgs e)
        {
            EyouSoft.Model.CompanyStructure.CompanyLogo logoInfo = new EyouSoft.Model.CompanyStructure.CompanyLogo();
            logoInfo.ImagePath = Utils.GetFormValue("FSelfLogo$hidFileName");

            EyouSoft.Model.CompanyStructure.CompanyMQAdv adInfo = new EyouSoft.Model.CompanyStructure.CompanyMQAdv();
            adInfo.ImagePath = Utils.GetFormValue("FSelfAd$hidFileName");
            adInfo.ImageLink = Utils.GetFormValue("txtPayMQSelfAdUrl").Trim();

            EyouSoft.IBLL.CompanyStructure.ICompanyUser ubll  = EyouSoft.BLL.CompanyStructure.CompanyUser.CreateInstance();
            EyouSoft.Model.CompanyStructure.CompanyUser uInfo = ubll.GetModel(this.SiteUserInfo.ID);

            string contactName      = Utils.GetFormValue(this.txtSelfContactName.UniqueID);             //Utils.InputText(this.txtSelfContactName.Text);
            int    contactGender    = Utils.GetInt(Utils.GetFormValue(this.rblSelfGender.UniqueID), 2); //Utils.GetInt(this.rblSelfGender.SelectedValue, 2);
            string contactTelephone = Utils.GetFormValue(this.txtSelfContactTel.UniqueID);              //Utils.InputText(this.txtSelfContactTel.Text);
            string contactMobile    = Utils.GetFormValue(this.txtSelfContactMobile.UniqueID);           //Utils.InputText(this.txtSelfContactMobile.Text);

            uInfo.ContactInfo.ContactName = string.IsNullOrEmpty(contactName) ? uInfo.ContactInfo.ContactName : contactName;
            uInfo.ContactInfo.ContactSex  = (EyouSoft.Model.CompanyStructure.Sex)contactGender;
            uInfo.ContactInfo.Tel         = string.IsNullOrEmpty(contactTelephone) ? uInfo.ContactInfo.Tel : contactTelephone;
            uInfo.ContactInfo.Mobile      = string.IsNullOrEmpty(contactMobile) ? uInfo.ContactInfo.Mobile : contactMobile;

            ubll.UpdatePersonal(uInfo);

            if (!string.IsNullOrEmpty(logoInfo.ImagePath))
            {
                EyouSoft.BLL.CompanyStructure.CompanyAttachInfo.CreateInstance().SetCompanyLogo(uInfo.CompanyID, logoInfo);
            }

            if (!string.IsNullOrEmpty(adInfo.ImagePath) || !string.IsNullOrEmpty(adInfo.ImageLink))
            {
                if (string.IsNullOrEmpty(adInfo.ImagePath))
                {
                    adInfo.ImagePath = this.txtSelfCurrentAdImgPath.Value;
                }

                if (!string.IsNullOrEmpty(adInfo.ImageLink) && !adInfo.ImageLink.StartsWith("http://"))
                {
                    adInfo.ImageLink = "http://" + adInfo.ImageLink;
                }

                EyouSoft.BLL.CompanyStructure.CompanyAttachInfo.CreateInstance().SetCompanyMQAdv(uInfo.CompanyID, adInfo);
            }

            Response.Redirect(Request.ServerVariables["SCRIPT_NAME"] + "?" + Request.QueryString);
        }
Esempio n. 5
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            string ImageLogo = Utils.GetFormValue("sfuLogo$hidFileName");

            if (ImageLogo.Length < 1 && hOldLogoPath.Value.Length == 0)
            {
                MessageBox.ShowAndRedirect(this.Page, "请上传LOGO文件!", Request.RawUrl);
            }
            EyouSoft.Model.CompanyStructure.CompanyLogo model = new EyouSoft.Model.CompanyStructure.CompanyLogo();
            model.ImagePath = ImageLogo.Length == 0 ? hOldLogoPath.Value : ImageLogo;
            bool Result = EyouSoft.BLL.CompanyStructure.CompanyAttachInfo.CreateInstance().SetCompanyLogo(SiteUserInfo.CompanyID, model);

            model = null;
            if (Result)
            {
                MessageBox.ResponseScript(this.Page, "alert(\"操作成功!\");parent.Boxy.getIframeDialog('" + Request.QueryString["iframeId"] + "').hide(function(){window.parent.location.reload();});");
            }
            else
            {
                MessageBox.ShowAndRedirect(this.Page, "alert(\"操作失败!\")", Request.RawUrl);
            }
        }
Esempio n. 6
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");
        }
Esempio n. 7
0
 /// <summary>
 /// 设置公司LOGO
 /// </summary>
 /// <param name="companyId">公司ID</param>
 /// <param name="companyLogo">公司logo实体</param>
 /// <returns></returns>
 public bool SetCompanyLogo(string companyId, EyouSoft.Model.CompanyStructure.CompanyLogo companyLogo)
 {
     return(idal.SetCompanyLogo(companyId, companyLogo));
 }
Esempio n. 8
0
 /// <summary>
 /// 设置公司LOGO
 /// </summary>
 /// <param name="companyId">公司ID</param>
 /// <param name="companyLogo">公司logo实体</param>
 /// <returns></returns>
 public virtual bool SetCompanyLogo(string companyId, EyouSoft.Model.CompanyStructure.CompanyLogo companyLogo)
 {
     return(this.SetCompanyAttachInfo(companyId, "CompanyLogo", companyLogo.ImagePath));
 }