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))); }
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)); }
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)); }
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)); }
public ActionResult Edit(MonitoringViewModel model) { ResponseResult result = MonitoringRepo.Update(model); return(Json(new { success = result.Success, message = result.ErrorMessage, entity = result.Entity }, JsonRequestBehavior.AllowGet)); }
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)); }
public MonProjectDTO getMonProjectById(string project, int id) { MonitoringRepo repo = new MonitoringRepo(project); return(repo.getMonProjectById(id)); }
public List <MonPointDataDTO> getMonPointDataById(string project, int id) { MonitoringRepo repo = new MonitoringRepo(project); return(repo.getMonPointDataById(id)); }
public ActionResult Delete(int id) { return(PartialView("_IsDelete", MonitoringRepo.GetMonitoring(id))); }
public ActionResult Placement(int id) { return(PartialView("_Placement", MonitoringRepo.GetPlacement(id))); }
public ActionResult Edit(int id) { ViewBag.Biodatalist = new SelectList(BiodataRepo.All(""), "id", "name"); return(PartialView("_Edit", MonitoringRepo.GetMonitoring(id))); }
public ActionResult List(string search) { return(PartialView("_List", MonitoringRepo.All(search))); }
public List <MonPointDTO> getMonPointByObjs(string project, string filter) { MonitoringRepo repo = new MonitoringRepo(project); return(repo.getMonPointByObjs(filter)); }
public ActionResult Search(string search = "") { return(PartialView("_Search", MonitoringRepo.GetBySearch(search))); }
public ActionResult Delete(long id) { return(PartialView("_Delete", MonitoringRepo.ById(id))); }
public ActionResult Create() { ViewBag.BiodataList = new SelectList(MonitoringRepo.ByNameBiodata(), "id", "name"); return(PartialView("_Create")); }