예제 #1
0
        public ActionResult GetESP(int teamId)
        {
            var blTeam = new BLTeam();

            var teamFullInfoList = blTeam.GetTeamFullInfoByFilter(new VmTeamFullInfo()).ToList();

            var teamName       = teamFullInfoList.Where(t => t.Id == teamId).Select(t => t.Name).First();
            var taskName       = teamFullInfoList.Where(t => t.Id == teamId).Select(t => t.TaskName).First();
            var facultyAdvisor = teamFullInfoList.Where(t => t.Id == teamId).Select(t => t.Advisor).First();
            var university     = teamFullInfoList.Where(t => t.Id == teamId).Select(t => t.University).First();

            var blReference = new BLReference();

            var blTeamSafetyItem     = new BLTeamSafetyItem();
            var vmTeamSafetyItemList = blTeamSafetyItem.GetSafetyAdminTeamSafetyItemByTeamId(teamId);

            return(View("SafetyAdminExperimentalSafetyPlan",
                        new VmTeamSafetyItemCollection
            {
                TeamSafetyItemList = vmTeamSafetyItemList,
                ReferenceFiles = blReference.GetAllReference(),
                TeamName = teamName,
                TaskName = taskName,
                Advisor = facultyAdvisor,
                University = university,
            }));
        }
예제 #2
0
        public JsonResult GetTeamEmailByFilter(VmTeamFullInfo filter = null)
        {
            var blTeam = new BLTeam();

            var teamFullInfoList = blTeam.GetTeamFullInfoByFilter(filter).ToList();

            teamFullInfoList.First().LabResultUrl = "/Resources/Uploaded/Teams/97fda227f835461d8b39a4f3bf1fa9fc/20180816004448favicon.png?CT=application_vnd.oasis.opendocument.spreadsheet.png," +
                                                    "/Resources/Uploaded/Teams/6a1436ffcab9434aad8fed02f32f2411/20180810151905favicon.png?CT=application_pdf.png," +
                                                    "/Resources/Uploaded/Teams/97fda227f835461d8b39a4f3bf1fa9fc/20180816005047favicon.png?CT=application_pkcs7_mime.png";
            return(Json(teamFullInfoList, JsonRequestBehavior.AllowGet));
        }
예제 #3
0
        public ActionResult GetESPReportPage(int teamId)
        {
            var blTeam = new BLTeam();

            var teamFullInfoList = blTeam.GetTeamFullInfoByFilter(new VmTeamFullInfo()).ToList();

            var teamName       = teamFullInfoList.Where(t => t.Id == teamId).Select(t => t.Name).First();
            var taskName       = teamFullInfoList.Where(t => t.Id == teamId).Select(t => t.TaskName).First();
            var facultyAdvisor = teamFullInfoList.Where(t => t.Id == teamId).Select(t => t.Advisor).First();
            var university     = teamFullInfoList.Where(t => t.Id == teamId).Select(t => t.University).First();

            var blTeamMember   = new BLTeamMember();
            var teamMemberList = blTeamMember.GetTeamMembers(teamId);

            return(View("SafetyAdminESPReportPage",
                        new VmTeamSafetyItemCollection
            {
                TeamMemberList = teamMemberList,
                TeamName = teamName,
                TaskName = taskName,
                Advisor = facultyAdvisor,
                University = university,
            }));
        }