Exemple #1
0
        /// <summary>
        /// 返回工会教职工信息视图
        /// </summary>
        /// <returns></returns>
        public ActionResult ScanUnionMembersIndex()
        {
            UnionMembersDal ScanUnionMembers = new UnionMembersDal();
            var             queryResult      = ScanUnionMembers.Query_KeHu();

            ViewBag.List = queryResult;
            return(View());
        }
Exemple #2
0
        /// <summary>
        /// 从控制器返回数据到视图
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public ActionResult EditUnionMembersIndex(int Id = 0)
        {
            UnionMembersDal unionmemberDal = new UnionMembersDal();
            var             queryResult    = unionmemberDal.QueryEmployee(Id);

            //queryResult.ID = Id;
            ViewData.Model = queryResult;
            return(View(ViewData.Model));
        }