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

            return(Json(ListBiodata, JsonRequestBehavior.AllowGet));
        }
示例#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()));
 }
示例#3
0
        public ActionResult Search(string search)
        {
            BiodataRepo      biodataRepo   = new BiodataRepo();
            List <x_biodata> SearchBiodata = biodataRepo.Search(search);

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

            return(Json(OrderBiodata, JsonRequestBehavior.AllowGet));
        }
示例#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));
        }
示例#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));
        }
示例#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));
     }
 }
示例#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)));
 }
示例#10
0
 public ActionResult Search(string search = "")
 {
     return(PartialView("_Search", BiodataRepo.GetBySearch(search)));
 }
示例#11
0
 public ActionResult SelectMaritalStatus()
 {
     return(Json(BiodataRepo.GetSelectMaritalStatus(), JsonRequestBehavior.AllowGet));
 }
示例#12
0
 public ActionResult SelectIdentityType()
 {
     return(Json(BiodataRepo.GetSelectIdentityType(), JsonRequestBehavior.AllowGet));
 }
示例#13
0
 public ActionResult Create()
 {
     ViewBag.Biodatalist = new SelectList(BiodataRepo.All(""), "id", "name");
     return(PartialView("_Create"));
 }
示例#14
0
 public ActionResult Tampil()
 {
     return(Json(BiodataRepo.GetAll(), JsonRequestBehavior.AllowGet));
 }
示例#15
0
 public ActionResult Edit(int id)
 {
     return(PartialView("_Edit", BiodataRepo.GetBiodata(id)));
 }
示例#16
0
 public ActionResult Deactivate(int id)
 {
     return(PartialView("_Deactivate", BiodataRepo.GetBiodata(id)));
 }
示例#17
0
 public ActionResult Edit(int id)
 {
     ViewBag.Biodatalist = new SelectList(BiodataRepo.All(""), "id", "name");
     return(PartialView("_Edit", AssignmentRepo.GetAssignment(id)));
 }
示例#18
0
 public ActionResult List(string search)
 {
     return(PartialView("_List", BiodataRepo.All(search)));
 }
示例#19
0
 public ActionResult Edit(int id)
 {
     ViewBag.Biodatalist = new SelectList(BiodataRepo.All(""), "id", "name");
     return(PartialView("_Edit", MonitoringRepo.GetMonitoring(id)));
 }
示例#20
0
 public ActionResult Delete(long id)
 {
     return(PartialView("_Delete", BiodataRepo.ById(id)));
 }
示例#21
0
 public ActionResult SelectReligion()
 {
     return(Json(BiodataRepo.GetSelectReligion(), JsonRequestBehavior.AllowGet));
 }
示例#22
0
 public ActionResult List()
 {
     return(PartialView("_List", BiodataRepo.All()));
 }
示例#23
0
 public ActionResult AmbilData(int ID)
 {
     return(Json(BiodataRepo.GetByID(ID), JsonRequestBehavior.AllowGet));
 }