Exemplo n.º 1
0
        public ActionResult LeaveVM(int _ID)
        {
            HCmultiViewModel LeaveVM = _IP.GetProveByID(_ID);

            //var resultVM = from c in _db.CertificateContents
            //               join h in _db.Hrs on c.MemberID equals h.MemberID
            //               where c.ContentID == _ID
            //               select new HCmultiViewModel { CermuVM = c, HrmuVM = h };
            return(View(LeaveVM));
        }
Exemplo n.º 2
0
        public ActionResult InserviceVM(int _ID)
        {
            //HCmultiViewModel resultVM = new HCmultiViewModel
            //{
            //    HrmuVM = _db.Hrs.ToList(),
            //    CermuVM = _db.CertificateContents.Where(c => c.ContentID ==_ID).ToList()
            //};
            HCmultiViewModel Inservice = _IP.GetProveByID(_ID);



            return(View(Inservice));
        }
Exemplo n.º 3
0
        public HCmultiViewModel GetProveByID(int _ID)
        {
            //var resultVM = from c in _db.CertificateContents
            //                       join h in _db.Hrs on c.MemberID equals h.MemberID
            //                       where c.ContentID == _ID
            //                       select new HCmultiViewModel{CermuVM = c , HrmuVM = h};

            HCmultiViewModel resultVM = new HCmultiViewModel
            {
                HrmuVM  = _db.Hrs.ToList(),
                CermuVM = _db.CertificateContents.Where(c => c.ContentID == _ID).ToList()
            };


            return(resultVM);
        }
Exemplo n.º 4
0
        public ActionResult BabyCareVM(int _ID)
        {
            HCmultiViewModel BabyCareVM = _IP.GetProveByID(_ID);

            return(View(BabyCareVM));
        }