Ejemplo n.º 1
0
 public JsonResult DeleteConsumeItem(int id)
 {
     IConsumeItemMgm conMgm = new ConsumeItemMgm();
     ReturnedData data = new ReturnedData();
     try
     {
         conMgm.DelConsumeItem(id);
         data.Success = true;
         data.Message = "消费项目删除成功";
         LogHandler.Info("员工"+Emp.UserName+"删除一条消费项目,项目id:"+id);
     }
     catch(Exception ex)
     {
         data.Success = false;
         data.Message = "消费项目删除失败";
         LogHandler.Error("删除消费项目出现错误:" + (ex.Message.ToString()));
         data.Error = ex.ToString();
     }
     return Json(data,JsonRequestBehavior.AllowGet);
 }