/**
   * 更新餐桌
   *
   * @return
   */
  @Action(
      value = "updateTableT",
      results = {@Result(name = "json", type = "json")})
  public String updateTableT() {
    if (Validate.StrisNull(this.getTableid())
        && Validate.StrisNull(this.getTableNumber())
        && Validate.StrisNull(this.getRoomName())) {
      this.setSucflag(false);
      return "json";
    }
    if (this.getTableTService().findTableBytableid(this.getTableid()) != null) {
      TableT tt = new TableT();
      tt.setTableid(this.getTableid());
      tt.setTableNumber(this.getTableNumber());
      tt.setRoomName(this.getRoomName());
      tt.setFloor(this.getFloor());
      tt.setNop(this.getNop());
      tt.setNote(this.getNote());
      tt.setCreatetime(BaseTools.systemtime());
      tt.setCreatorid(BaseTools.adminCreateId());
      tt.setTablestate(this.getTablestate());

      this.getTableTService().updateTableT(tt);
      this.setSucflag(true);
      return "json";
    } else {
      this.setSucflag(false);
      return "json";
    }
  }
  /** 增加餐桌 */
  @Action(
      value = "addTableT",
      results = {@Result(name = "json", type = "json")})
  public String addTableT() {

    if (Validate.StrisNull(this.getTableNumber()) && Validate.StrisNull(this.getRoomName())) {
      this.setSucflag(false);
      return "json";
    }
    TableT tt = new TableT();
    tt.setTableid(this.getSerial().Serialid(Serial.ELECTABLE));
    tt.setTableNumber(this.getTableNumber().trim());
    tt.setRoomName(this.getRoomName().trim());
    tt.setFloor(this.getFloor());
    tt.setNop(this.getNop());
    tt.setCreatetime(BaseTools.systemtime());
    tt.setCreatorid(BaseTools.adminCreateId());
    tt.setTablestate("0");

    if (this.getTableTService().addTableT(tt) > 0) {
      this.setSucflag(true);
      return "json";
    } else {
      this.setSucflag(false);
      return "json";
    }
  }
 /**
  * 查询系统邮件
  *
  * @return
  */
 @Action(
     value = "findAllSystemMail",
     results = {@Result(name = "json", type = "json")})
 public String findAllSystemMail() {
   if (StaticString.SC.equals(this.getQtype())) {
     this.findDefaultAllSystemMail();
   } else {
     if (Validate.StrisNull(this.getQuery())) {
       return "json";
     } else {
       return "json";
     }
   }
   return "json";
 }
 /** 获取所有餐桌 */
 @Action(
     value = "findAllTableT",
     results = {@Result(name = "json", type = "json")})
 public String findAllTableT() {
   if (this.getQtype().equals("sc")) {
     this.setTotal(0);
     rows.clear();
     this.findDefaultAllTableT();
   } else {
     if (Validate.StrisNull(this.getQuery())) {
       return "json";
     } else {
       return "json";
     }
   }
   return "json";
 }