Exemplo n.º 1
0
        protected void AddNewMessage(string type)
        {
            EyouSoft.IBLL.SystemStructure.IProductSuggestion     IBll = EyouSoft.BLL.SystemStructure.ProductSuggestion.CreateInstance();
            EyouSoft.Model.SystemStructure.ProductSuggestionType pst  = EyouSoft.Model.SystemStructure.ProductSuggestionType.商铺;
            switch (type)
            {
            case "1": pst = EyouSoft.Model.SystemStructure.ProductSuggestionType.商铺; break;

            case "2": pst = EyouSoft.Model.SystemStructure.ProductSuggestionType.MQ; break;

            case "3": pst = EyouSoft.Model.SystemStructure.ProductSuggestionType.平台; break;

            case "4": pst = EyouSoft.Model.SystemStructure.ProductSuggestionType.个人中心; break;

            default: pst = EyouSoft.Model.SystemStructure.ProductSuggestionType.平台; break;
            }

            EyouSoft.Model.SystemStructure.ProductSuggestionInfo model = new EyouSoft.Model.SystemStructure.ProductSuggestionInfo();

            model.CompanyName    = Utils.InputText(this.txtCompany.Value);
            model.ContactName    = Utils.InputText(this.txtComtact.Value);
            model.ContactTel     = Utils.InputText(this.txtTelPhone.Value);
            model.ContentText    = Utils.InputText(this.txtContentText.Value);
            model.IssueTime      = DateTime.Now;
            model.ContactMobile  = this.hideMobile.Value;
            model.MQ             = this.hideMQ.Value;
            model.QQ             = this.hideQQ.Value;
            model.SuggestionType = pst;
            //新增
            IBll.InsertSuggestionInfo(model);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 添加新的价格等级
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected bool InsertPrice()
        {
            string PriceName = Request.QueryString["PriceName"];

            if (string.IsNullOrEmpty(PriceName))
            {
                MessageBox.Show(this, "请输入价格等级名称!!");
                return(false);
            }
            else
            {
                EyouSoft.IBLL.SystemStructure.IProductSuggestion     bll   = EyouSoft.BLL.SystemStructure.ProductSuggestion.CreateInstance();
                EyouSoft.Model.SystemStructure.ProductSuggestionInfo model = new EyouSoft.Model.SystemStructure.ProductSuggestionInfo();
                model.CompanyId   = CompanyId;
                model.CompanyName = UserInfoModel.CompanyName;
                if (UserInfoModel.ContactInfo != null)
                {
                    model.ContactMobile = UserInfoModel.ContactInfo.Mobile;
                    model.ContactName   = UserInfoModel.ContactInfo.ContactName;
                    model.ContactTel    = UserInfoModel.ContactInfo.Tel;
                    model.MQ            = UserInfoModel.ContactInfo.MQ;
                    model.QQ            = UserInfoModel.ContactInfo.QQ;
                }
                model.ContentText    = PriceName;
                model.SuggestionId   = Guid.NewGuid().ToString();
                model.SuggestionType = EyouSoft.Model.SystemStructure.ProductSuggestionType.个人中心报价标准;
                bool Result = bll.InsertSuggestionInfo(model);
                model = null;
                bll   = null;
                return(Result);
            }
        }