Esempio 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);
        }
Esempio n. 2
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;
            }
        }
Esempio n. 3
0
 /// <summary>
 /// 获取意见反馈信息集合
 /// </summary>
 /// <param name="pageSize">每页显示记录数</param>
 /// <param name="pageIndex">当前页索引</param>
 /// <param name="recordCount">总记录数</param>
 /// <param name="companyName">公司名称 为null时不做为查询条件</param>
 /// <param name="contactName">联系人 为null时不做为查询条件</param>
 /// <param name="content">内容 为null时不做为查询条件</param>
 /// <param name="suggestionType">意见反馈类别 为null时不做为查询条件</param>
 /// <returns></returns>
 public IList <EyouSoft.Model.SystemStructure.ProductSuggestionInfo> GetSuggestions(int pageSize, int pageIndex, ref int recordCount
                                                                                    , string companyName, string contactName, string content, EyouSoft.Model.SystemStructure.ProductSuggestionType suggestionType)
 {
     return(dal.GetSuggestions(pageSize, pageIndex, ref recordCount, companyName, contactName, content, suggestionType));
 }