예제 #1
0
        public ActionResult Placement(long id)
        {
            MonitoringViewModel model = new MonitoringViewModel();

            model = MonitoringRepo.ById(id);

            ViewBag.placement_date = model.placement_date?.ToString("yyyy'-'MM'-'dd");
            return(PartialView("_Placement", MonitoringRepo.ById(id)));
        }
예제 #2
0
        public ActionResult Edit(long id)
        {
            MonitoringViewModel model = new MonitoringViewModel();            //.

            model = MonitoringRepo.ById(id);                                  //.

            ViewBag.idle_date   = model.idle_date.ToString("yyyy'-'MM'-'dd"); //.(BIAR PAS NGEDIT ADA TANGGAL LAMANYA)
            ViewBag.BiodataList = new SelectList(MonitoringRepo.ByNameBiodataforEdit(model.biodata_id), "id", "name");
            return(PartialView("_Edit", model));
        }
예제 #3
0
        public ActionResult Edit(long id)
        {
            AssignmentViewModel assignment = new AssignmentViewModel();

            assignment             = AssignmentRepo.ById(id);
            ViewBag.tanggalmulai   = assignment.start_date.ToString("yyyy'-'MM'-'dd");
            ViewBag.tanggalselesai = assignment.end_date.ToString("yyyy'-'MM'-'dd");
            ViewBag.BiodataList    = new SelectList(MonitoringRepo.ByNameBiodataforEdit(assignment.biodata_id), "id", "name");
            return(PartialView("_Edit", assignment));
        }
예제 #4
0
        public ActionResult Delete(MonitoringViewModel model)
        {
            ResponResultViewModel result = MonitoringRepo.Is_Delete(model);

            return(Json(new
            {
                success = result.Success,
                message = result.Message,
                entity = result.Entity
            }, JsonRequestBehavior.AllowGet));
        }
예제 #5
0
        public ActionResult Edit(MonitoringViewModel model)
        {
            ResponseResult result = MonitoringRepo.Update(model);

            return(Json(new
            {
                success = result.Success,
                message = result.ErrorMessage,
                entity = result.Entity
            }, JsonRequestBehavior.AllowGet));
        }
예제 #6
0
        public ActionResult List()
        {
            List <MonitoringViewModel> model = new List <MonitoringViewModel>(); //.

            model = MonitoringRepo.All();                                        //.
            foreach (var item in model)
            {
                item.date_placement = item.placement_date?.ToString("yyyy'-'MM'-'dd");
                item.date_idle      = item.idle_date.ToString("yyyy'-'MM'-'dd");
            }
            //ViewBag.idle_date = model.idle_date.ToString("yyyy'-'MM'-'dd"); //.(BIAR DI LIST IDLE_DATE CUMA MUNCUL TANGGAL)
            //ViewBag.placement_date = model.placement_date?.ToString("yyyy'-'MM'-'dd"); //.(BIAR DI LIST PLACEMENT_DATE CUMA MUNCUL TANGGAL)
            return(PartialView("_List", model));
        }
예제 #7
0
        public MonProjectDTO getMonProjectById(string project, int id)
        {
            MonitoringRepo repo = new MonitoringRepo(project);

            return(repo.getMonProjectById(id));
        }
예제 #8
0
        public List <MonPointDataDTO> getMonPointDataById(string project, int id)
        {
            MonitoringRepo repo = new MonitoringRepo(project);

            return(repo.getMonPointDataById(id));
        }
예제 #9
0
 public ActionResult Delete(int id)
 {
     return(PartialView("_IsDelete", MonitoringRepo.GetMonitoring(id)));
 }
예제 #10
0
 public ActionResult Placement(int id)
 {
     return(PartialView("_Placement", MonitoringRepo.GetPlacement(id)));
 }
예제 #11
0
 public ActionResult Edit(int id)
 {
     ViewBag.Biodatalist = new SelectList(BiodataRepo.All(""), "id", "name");
     return(PartialView("_Edit", MonitoringRepo.GetMonitoring(id)));
 }
예제 #12
0
 public ActionResult List(string search)
 {
     return(PartialView("_List", MonitoringRepo.All(search)));
 }
예제 #13
0
        public List <MonPointDTO> getMonPointByObjs(string project, string filter)
        {
            MonitoringRepo repo = new MonitoringRepo(project);

            return(repo.getMonPointByObjs(filter));
        }
예제 #14
0
 public ActionResult Search(string search = "")
 {
     return(PartialView("_Search", MonitoringRepo.GetBySearch(search)));
 }
예제 #15
0
 public ActionResult Delete(long id)
 {
     return(PartialView("_Delete", MonitoringRepo.ById(id)));
 }
예제 #16
0
 public ActionResult Create()
 {
     ViewBag.BiodataList = new SelectList(MonitoringRepo.ByNameBiodata(), "id", "name");
     return(PartialView("_Create"));
 }