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);
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// 创建意见反馈业务逻辑接口的实例
 /// </summary>
 /// <returns></returns>
 public static EyouSoft.IBLL.SystemStructure.IProductSuggestion CreateInstance()
 {
     EyouSoft.IBLL.SystemStructure.IProductSuggestion op = null;
     if (op == null)
     {
         op = ComponentFactory.Create <EyouSoft.IBLL.SystemStructure.IProductSuggestion>();
     }
     return(op);
 }
Exemplo n.º 4
0
        protected void DataListInit()
        {
            EyouSoft.Model.SystemStructure.ProductSuggestionType pst = EyouSoft.Model.SystemStructure.ProductSuggestionType.商铺;
            switch (this.hiddenType.Value)
            {
            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":
                this.ddlType.Visible = true;
                if (ddlType.SelectedValue == "1")
                {
                    pst = EyouSoft.Model.SystemStructure.ProductSuggestionType.个人中心;
                }
                else
                {
                    pst = EyouSoft.Model.SystemStructure.ProductSuggestionType.个人中心报价标准; break;
                }
                break;

            default: pst = EyouSoft.Model.SystemStructure.ProductSuggestionType.商铺; break;
            }
            //嘉宾申请反馈列表
            if (this.hiddenType.Value == "5")
            {
                this.divListSecond.Visible = true;
                this.divList.Visible       = false;
                this.lblMsgSecond.Visible  = false;
                EyouSoft.IBLL.CommunityStructure.ICommunityAdvisor         IBLL = EyouSoft.BLL.CommunityStructure.CommunityAdvisor.CreateInstance();
                IList <EyouSoft.Model.CommunityStructure.CommunityAdvisor> list = IBLL.GetCommunityAdvisorList(pageSize, pageIndex, ref recordCount, false);
                if (list != null && list.Count > 0)
                {
                    this.rptListScond.DataSource = list;
                    this.rptListScond.DataBind();
                    BindPage();
                    list = null;
                }
                else
                {
                    this.rptListScond.DataSource = null;
                    this.rptListScond.DataBind();
                    this.lblMsgSecond.Visible = true;
                }
                IBLL = null;
            }
            else
            {
                this.divListSecond.Visible = false;
                this.divList.Visible       = true;
                this.lblFristMsg.Visible   = false;
                EyouSoft.IBLL.SystemStructure.IProductSuggestion             IBll = EyouSoft.BLL.SystemStructure.ProductSuggestion.CreateInstance();
                IList <EyouSoft.Model.SystemStructure.ProductSuggestionInfo> list = IBll.GetSuggestions(pageSize, pageIndex, ref recordCount, Utils.EditInputText(this.cName.Value), Utils.EditInputText(this.uName.Value), Utils.EditInputText(this.searchVal.Value), pst);
                if (list != null && list.Count > 0)
                {
                    this.rptList.DataSource = list;
                    this.rptList.DataBind();
                    BindPage();
                }
                else
                {
                    this.rptList.DataSource = null;
                    this.rptList.DataBind();
                    this.lblFristMsg.Visible = true;
                }
                list = null;
                IBll = null;
            }
        }