Example #1
0
        public ActionResult GetAll()
        {
            BiodataRepo      biodataRepo = new BiodataRepo();
            List <x_biodata> ListBiodata = biodataRepo.GetAll();

            return(Json(ListBiodata, JsonRequestBehavior.AllowGet));
        }
Example #2
0
 public ActionResult Create()
 {
     ViewBag.BiodataList  = new SelectList(BiodataRepo.All(), "Id", "NPM");
     ViewBag.CategoryList = new SelectList(CategoryRepo.All(), "Id", "Name");
     ViewBag.BookList     = new SelectList(BookRepo.ByCategory(0), "Id", "Judul");
     return(PartialView("_Create", new PeminjamanViewModel()));
 }
Example #3
0
        public ActionResult Search(string search)
        {
            BiodataRepo      biodataRepo   = new BiodataRepo();
            List <x_biodata> SearchBiodata = biodataRepo.Search(search);

            return(Json(SearchBiodata, JsonRequestBehavior.AllowGet));
        }
Example #4
0
        public ActionResult OrderBy(string orderBy)
        {
            BiodataRepo      biodataRepo  = new BiodataRepo();
            List <x_biodata> OrderBiodata = biodataRepo.OrderBy(orderBy);

            return(Json(OrderBiodata, JsonRequestBehavior.AllowGet));
        }
Example #5
0
        public ActionResult CreatePart(int id)
        {
            //id=>Batch ID
            ClassViewModel model = new ClassViewModel()
            {
                batch_id = id
            };

            ViewBag.BioName = new SelectList(BiodataRepo.All(null), "id", "name");
            return(PartialView("_CreatePart", model));
        }
Example #6
0
        public ActionResult Delete(BiodataViewModel model)
        {
            ResponseResult result = BiodataRepo.Delete(model);

            return(Json(new
            {
                success = result.Success,
                message = result.ErrorMessage,
                entity = result.Entity
            }, JsonRequestBehavior.AllowGet));
        }
Example #7
0
        public ActionResult Deactivate(BiodataViewModel model)
        {
            ResponResultViewModel result = BiodataRepo.Update2(model);

            return(Json(new
            {
                success = result.Success,
                message = result.Message,
                entity = result.Entity
            }, JsonRequestBehavior.AllowGet));
        }
 public ActionResult EditSimpan(Biodata biodata)
 {
     biodata.modified_by = Convert.ToInt64(Session["foo"]);
     if (BiodataRepo.Editbiodata(biodata))
     {
         return(Json(new { EditSimpan = "Berhasil" }, JsonRequestBehavior.AllowGet)); //return json digunakan untuk memunculkan alert
     }
     else
     {
         return(Json(new { EditSimpan = "Gagal" }, JsonRequestBehavior.AllowGet));
     }
 }
Example #9
0
 public ActionResult Edit(long id)
 {
     ViewBag.rdyes = null;
     ViewBag.rdno  = null;
     if (BiodataRepo.GetGender(id).Equals("M"))
     {
         ViewBag.rdyes = "checked";
     }
     else if (BiodataRepo.GetGender(id).Equals("F"))
     {
         ViewBag.rdno = "checked";
     }
     ViewBag.BootcampTestTypeList = new SelectList(BiodataRepo.ByBtt(), "id", "name");
     return(PartialView("_Edit", BiodataRepo.ById(id)));
 }
Example #10
0
 public ActionResult Search(string search = "")
 {
     return(PartialView("_Search", BiodataRepo.GetBySearch(search)));
 }
 public ActionResult SelectMaritalStatus()
 {
     return(Json(BiodataRepo.GetSelectMaritalStatus(), JsonRequestBehavior.AllowGet));
 }
 public ActionResult SelectIdentityType()
 {
     return(Json(BiodataRepo.GetSelectIdentityType(), JsonRequestBehavior.AllowGet));
 }
Example #13
0
 public ActionResult Create()
 {
     ViewBag.Biodatalist = new SelectList(BiodataRepo.All(""), "id", "name");
     return(PartialView("_Create"));
 }
Example #14
0
 public ActionResult Tampil()
 {
     return(Json(BiodataRepo.GetAll(), JsonRequestBehavior.AllowGet));
 }
Example #15
0
 public ActionResult Edit(int id)
 {
     return(PartialView("_Edit", BiodataRepo.GetBiodata(id)));
 }
Example #16
0
 public ActionResult Deactivate(int id)
 {
     return(PartialView("_Deactivate", BiodataRepo.GetBiodata(id)));
 }
Example #17
0
 public ActionResult Edit(int id)
 {
     ViewBag.Biodatalist = new SelectList(BiodataRepo.All(""), "id", "name");
     return(PartialView("_Edit", AssignmentRepo.GetAssignment(id)));
 }
Example #18
0
 public ActionResult List(string search)
 {
     return(PartialView("_List", BiodataRepo.All(search)));
 }
Example #19
0
 public ActionResult Edit(int id)
 {
     ViewBag.Biodatalist = new SelectList(BiodataRepo.All(""), "id", "name");
     return(PartialView("_Edit", MonitoringRepo.GetMonitoring(id)));
 }
Example #20
0
 public ActionResult Delete(long id)
 {
     return(PartialView("_Delete", BiodataRepo.ById(id)));
 }
 public ActionResult SelectReligion()
 {
     return(Json(BiodataRepo.GetSelectReligion(), JsonRequestBehavior.AllowGet));
 }
Example #22
0
 public ActionResult List()
 {
     return(PartialView("_List", BiodataRepo.All()));
 }
 public ActionResult AmbilData(int ID)
 {
     return(Json(BiodataRepo.GetByID(ID), JsonRequestBehavior.AllowGet));
 }