Exemple #1
0
        //基础一般服务

        /// <summary>
        /// 获取所有沟通状态
        /// </summary>
        /// <returns></returns>
        public List <ListItem> GetAllState()
        {
            CustomerState cusState  = CustomerState.NoInvite;
            var           stateList = cusState.GetSelectList("所有状态");

            return(stateList);
        }
Exemple #2
0
        public ddlState()
        {
            //获取所有状态
            CustomerState cusState  = CustomerState.NoInvite;
            var           stateList = cusState.GetSelectList("所有状态");

            this.DataSource     = stateList;
            this.DataTextField  = "Text";
            this.DataValueField = "Value";
            this.DataBind();
            this.CssClass = "form-control chosen-selects";
        }
Exemple #3
0
        public AjaxMessage GetCustomerState()
        {
            AjaxMessage ajax = new AjaxMessage();

            ajax.IsSuccess = false;
            try
            {
                CustomerState cusState  = CustomerState.NoInvite;
                var           stateList = cusState.GetSelectList("所有状态");
                if (stateList.Count > 0)
                {
                    ajax.Data      = stateList.Where(c => ("1,2,3,5").Contains(c.Value));
                    ajax.IsSuccess = true;
                }
            }
            catch (Exception e)
            {
                ajax.Message = e.Message;
            }
            return(ajax);
        }