Beispiel #1
0
        /// <summary>
        /// 报名记录
        /// </summary>
        /// <returns></returns>
        public ActionResult EnrollList(EnrollListSearchModel search)
        {
            EnrollListViewModel model = new EnrollListViewModel();                                                             //页面模型

            model.search             = search;                                                                                 //页面的搜索模型
            model.search.PageSize    = 15;                                                                                     //每页显示
            model.search.CurrentPage = Convert.ToInt32(Request["pageindex"]) <= 0 ? 1 : Convert.ToInt32(Request["pageindex"]); //当前页
            //根据方式拉项
            List <CommonEntity> FollowTypeList = CommonData.GetDictionaryList(13);                                             //13跟进方式

            model.FollowTypeIL = CommonData.Instance.GetBropDownListData(FollowTypeList);

            //根据方式拉项
            List <CommonEntity> IntentTypeList = CommonData.GetDictionaryList(14);//13跟进方式

            model.IntentTypeIL = CommonData.Instance.GetBropDownListData(IntentTypeList);

            List <CommonEntity> SourceIL = CommonData.GetDictionaryList(2);//1是字典类型值,仅供测试参考

            model.SourceIL = CommonData.Instance.GetBropDownListData(SourceIL);

            //分校下拉项
            List <CommonEntity> ComCodeIL = CommonData.Get_SYS_Company_COMP_Code(UserSession.comcode);//分校

            model.ComCodeIL        = CommonData.Instance.GetBropDownListData_Choice(ComCodeIL);
            model.search.ComCodeIL = CommonData.Instance.GetBropDownListData_Choice(ComCodeIL);

            //资源表状态
            List <CommonEntity> ApStateIL = CommonData.GetDictionaryList(12);//状态

            model.search.ApStateIL = CommonData.Instance.GetBropDownListData(ApStateIL);

            if (UserSession.comcode != null && UserSession.comcode != "1")
            {
                search.ComCode = UserSession.comcode;//默认查询当前分校的人员
            }

            model.AppointmentList = AppointmentData.GetAPList(search); //填充页面模型数据
            return(View(model));                                       //返回页面模型
        }