示例#1
0
        /// <summary>
        /// 获取没有分配考勤组的人员信息
        /// </summary>
        /// <param name="UnitID"></param>
        /// <returns></returns>
        public ActionResult GetNotCheck(string UnitID, string PersonName)
        {
            List <A01>        user    = operateContext.bllSession.T_CheckGroup.GetUserByUnitNotCheck(UnitID, PersonName);
            List <SearchUser> seaList = new List <SearchUser>();

            foreach (var item in user)
            {
                SearchUser se = new SearchUser();
                se.A0101    = item.A0101;
                se.A0177    = item.A0177;
                se.PersonID = item.PersonID;
                se.UnitID   = item.UnitID;
                seaList.Add(se);
            }
            return(Json(seaList, JsonRequestBehavior.AllowGet));
        }
示例#2
0
        /// <summary>
        /// 为分配考勤组的数据信息
        /// </summary>
        /// <returns></returns>
        public ActionResult GetNotCheckPageModel(FormCollection form)
        {
            string            UnitID     = form["UnitID"];
            string            PersonName = form["PersonName"];
            List <A01>        user       = operateContext.bllSession.T_CheckGroup.GetUserByUnitNotCheck(UnitID, PersonName);
            List <SearchUser> seaList    = new List <SearchUser>();

            foreach (var item in user)
            {
                SearchUser se = new SearchUser();
                se.A0101    = item.A0101;
                se.A0177    = item.A0177;
                se.PersonID = item.PersonID;
                se.UnitID   = item.UnitID;
                seaList.Add(se);
            }
            TableModel model = new TableModel();

            model.total = seaList.Count();
            model.rows  = seaList;
            return(Json(model, JsonRequestBehavior.AllowGet));
        }