예제 #1
0
 /**
  * 保存到数据
  *
  * @throws ActionException
  */
 public String save() throws Exception {
   OperateResult or = null;
   or = jxUnitService.save(jxUnitModel);
   this.setJxUnitModel(null);
   this.setParameters(or.getMessage(), action_forward_managers_jxUnit);
   return SUCCESS;
 }
예제 #2
0
 /**
  * 删除数据
  *
  * @throws ActionException
  */
 public String remove() throws Exception {
   OperateResult or = null;
   if (AppUtils.isNullOrEmptyString(this.getSelectedIds())) {
     throw new ActionException("将要删除的对象编号不可为空!");
   }
   or = jxUnitService.remove(this.getSelectedIds());
   this.setParameters(or.getMessage(), action_forward_managers_jxUnit);
   return SUCCESS;
 }
 /**
  * 保存到数据
  *
  * @throws ActionException
  */
 public String save() throws Exception {
   OperateResult or = null;
   if (StringUtils.isNotEmpty(jsonData)) {
     JSONArray array = new JSONArray(jsonData);
     or = jxInInventoryService.save(jxInInventoryModel, array);
     this.setJxInInventoryModel(null);
     this.setParameters(or.getMessage(), action_forward_insert_jxInInventory);
   }
   return SUCCESS;
 }