Ejemplo n.º 1
0
 public ActionResult Create(ProfitLossBillMaster profitLossBillMaster)
 {
     string strResult = string.Empty;
     bool bResult = ProfitLossBillMasterService.Add(profitLossBillMaster, this.User.Identity.Name.ToString(), out strResult);
     string msg = bResult ? "新增成功" : "新增失败";
     return Json(JsonMessageHelper.getJsonMessage(bResult, msg, strResult), "text", JsonRequestBehavior.AllowGet);
 }
 public ActionResult Edit(ProfitLossBillMaster profitLossBillMaster)
 {
     string strResult = string.Empty;
     bool bResult = ProfitLossBillMasterService.Save(profitLossBillMaster, out strResult);
     string msg = bResult ? "修改成功" : "修改失败";
     return Json(JsonMessageHelper.getJsonMessage(bResult, msg, strResult), "text", JsonRequestBehavior.AllowGet);
 }