コード例 #1
0
 public ActionResult ReclamationPostmineRevegetationEdit(int PermitKey, int Id)
 {
     PostmineLandUseDO PMLU = PostmineLandUseBLL.GetByID(Id);
     ReclamationPostmineRevegetationVM model = new ReclamationPostmineRevegetationVM(PMLU);
     return PartialView("ReclamationPostmineRevegetationAddEdit", model);
 }
コード例 #2
0
        public ActionResult ReclamationPostmineRevegetationEdit(int PermitKey, ReclamationPostmineRevegetationVM model)
        {
            if (!ModelState.IsValid)
                return PartialView("ReclamationPostmineRevegetationAddEdit", model);

            try
            {
                PostmineLandUseDO data = model.WriteDataToTables();
                PostmineLandUseBLL.Save(data);
                AjaxResult result = new AjaxResult(AjaxResult.AjaxStatus.OK, "Postmine Land Use was saved");
                return Json(result);
            }
            catch (Exception ex)
            {
                AjaxResult result = new AjaxResult(AjaxResult.AjaxStatus.ERROR, ex.Message);
                return Json(result);
            }
        }
コード例 #3
0
 public ActionResult ReclamationPostmineRevegetationAdd(int PermitKey)
 {
     ReclamationPostmineRevegetationVM model = new ReclamationPostmineRevegetationVM();
     model.PermitKey = PermitKey;
     return PartialView("ReclamationPostmineRevegetationAddEdit", model);
 }