//
        // GET: /BeciPaikeBanji/

        #region 本次排课班级View
        public ActionResult Index()
        {
            Models.All all  = new Models.All();
            var        list = bLL.GetAllData().Where(p => p.ShiFouWanCheng == false).ToList();

            all.PaiKeJih = list;
            return(View(all));
        }
Esempio n. 2
0
 /// <summary>
 /// 弹出班主任选择界面
 /// </summary>
 /// <returns></returns>
 public ActionResult Tan()
 {
     Models.All all = new Models.All
     {
         List2 = yuanGong.GetAllData().Where(p => p.ZhiWeiID == 2).ToList()
     };
     return(View(all));
 }
Esempio n. 3
0
        /// <summary>
        /// 显示分配员工界面
        /// </summary>
        /// <param name="banjiID"></param>
        /// <returns></returns>
        public ActionResult ShowPage(int ID)
        {
            var Bna = ban.GetOneData(ID);

            ViewBag.ClassName = Bna.BanJiMing;
            ViewBag.ClassID   = Bna.ID;
            var Class = BanZhuRen.GetAllData().Where(p => p.BanJiBianHao == ID).ToList();

            ViewBag.BZRName = "";
            //ViewBag.BZR = yuanGong.GetAllData().Where(p => p.ZhiWeiID == 2).ToList();
            if (Class.Count != 0)
            {
                int ID2    = Class.Last().BanZhuRenBianHao.Value;
                var BZRone = yuanGong.GetOneData(ID2);
                ViewBag.BZRName = BZRone.JiaoYuanMingChen;
            }
            var Ban = ban2.GetAllData().Where(p => p.BanJiID == Bna.ID).Count();

            if (Ban == 0)
            {
                return(Json(new { errorNo = "1", errorInfo = "当前此班为分配教学计划" }, JsonRequestBehavior.AllowGet));
            }
            var Ban2 = ban2.GetAllData().Where(p => p.BanJiID == Bna.ID).First();

            BLL.ZM.AnPaiKeChengBLL AP = new BLL.ZM.AnPaiKeChengBLL();
            //var TeacherList = AP.Teacher(banjiID);
            var TeacherList = yuanGong.GetAllData().Where(p => p.ZhiWeiID == 1).ToList();
            //var BZRlist = AP.ygList();
            //var Course = AP.KeCheng(banjiID);
            var Course       = jiaoXue.GetAllData().Where(p => p.SuoShuJiaoXueJiHua == Ban2.CaiYongJiaoXueJiHua).ToList();
            var TeacherList2 = yuanGong.GetAllData().Where(p => p.ZhiWeiID == 2).ToList();

            Models.All all = new Models.All
            {
                List2  = TeacherList2,
                List   = TeacherList,
                Course = Course
            };
            return(View(all));
        }