Ejemplo n.º 1
0
 // 修改设备
 public void modiDetail() throws IOException {
   this.equipmentService.update(this.equipment);
   if (this.equipment.getStates() == 1) {
     this.equipmentreject = this.equipmentrejectService.findbyEquipmentId(this.equipment.getId());
     if (this.equipmentreject != null) {
       this.equipmentrejectService.delete(this.equipmentreject);
     }
   }
   String str = "设备:" + equipment.getName().toString() + "修改成功!";
   ActionRedirect.redirect("equipment/getEquipmentBycondition", str);
 }
Ejemplo n.º 2
0
 // 添加设备
 public void saveEquipment() throws IOException {
   this.equipmentService.save(equipment);
   String str = "设备:" + equipment.getName().toString() + "添加成功!";
   ActionRedirect.redirect("equipment/getEquipmentBycondition", str);
 }