Ejemplo n.º 1
0
 public virtual void UpdateApplicationCategory(ApplicationCategory category)
 {
     applicationCategoryDao.Update(category);
 }
 public JsonResult EditApplicationCategory(ApplicationCategory category)
 {
     JsonReturnMessages date = new JsonReturnMessages() { IsSuccess = true, Msg = "操作成功" };
     category.UpdateTime = DateTime.Now;
     category.UpdateUid = CurrentUser.UserUId;
     try
     {
         if (string.IsNullOrEmpty(Convert.ToString(category.ID)) || category.ID == 0)
         {//新增
             category.CreateTime = DateTime.Now;
             category.CreateUid = CurrentUser.UserUId;
             BoFactory.GetVersionTrackBo.InsertApplicationCategory(category);
         }
         else
         {//修改
             BoFactory.GetVersionTrackBo.UpdateApplicationCategory(category);
         }
     }
     catch (Exception ex)
     {
         Log4NetHelper.Error(ex);
         date.IsSuccess = false;
         date.Msg = ex.Message;
     }
     return Json(date);
 }
Ejemplo n.º 3
0
 public virtual void InsertApplicationCategory(ApplicationCategory category)
 {
     applicationCategoryDao.Insert(category);
 }
 public ActionResult EditApplicationCategory(string id)
 {
     ApplicationCategory category;
     if (string.IsNullOrEmpty(id))
     {//新增
         category = new ApplicationCategory();
         category.Seq = 1;
     }
     else
     {//修改
         category = BoFactory.GetVersionTrackBo.GetApplicationCategory(id);
     }
     return View(category);
 }