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