コード例 #1
0
 public ActionResult SoilHandlingPlanProposedSoilSalvageDepthEdit(int PermitKey, int Id)
 {
     ProposedSoilSalvageDepthDO PSSD = SoilHandlingPlanBLL.GetProposedSoilSalvageDepth(Id);
     ProposedSoilSalvageDepthVM model = new ProposedSoilSalvageDepthVM(PSSD);
     return PartialView("SoilHandlingPlanProposedSoilSalvageDepthAddEdit", model);
 }
コード例 #2
0
        public ActionResult SoilHandlingPlanProposedSoilSalvageDepthEdit(int PermitKey, ProposedSoilSalvageDepthVM model)
        {
            if (!ModelState.IsValid)
                return PartialView("SoilHandlingPlanProposedSoilSalvageDepthAddEdit", model);

            try
            {
                ProposedSoilSalvageDepthDO data = model.WriteSoilSalvageDepth();
                SoilHandlingPlanBLL.SaveProposedSoilSalvageDepth(data);
                AjaxResult result = new AjaxResult(AjaxResult.AjaxStatus.OK, "Soil Salvage Depth was saved");
                return Json(result);
            }
            catch (Exception ex)
            {
                AjaxResult result = new AjaxResult(AjaxResult.AjaxStatus.ERROR, ex.Message);
                return Json(result);
            }
        }
コード例 #3
0
 public ActionResult SoilHandlingPlanProposedSoilSalvageDepthAdd(int PermitKey)
 {
     ProposedSoilSalvageDepthVM model = new ProposedSoilSalvageDepthVM();
     model.PermitKey = PermitKey;
     return PartialView("SoilHandlingPlanProposedSoilSalvageDepthAddEdit", model);
 }