示例#1
0
 public seatAddDialog(Seat seat) {
   this.txtId = seat.getId();
   this.txtStudioId = seat.getStudioId();
   this.txtRow = seat.getRow();
   this.txtColumn = seat.getColumn();
   initContent();
 }
示例#2
0
  protected void btnSaveClicked() {

    SeatSrv seatSrv = new SeatSrv();
    Seat seat = new Seat();
    seat.setId(txtId);
    seat.setStudioId(txtStudioId);
    seat.setRow(txtRow);
    seat.setColumn(txtColumn);
    seat.setSeatStatus(Integer.parseInt(status.getSelectedItem().toString()));
    seatSrv.modify(seat);
    seatStatus = Integer.parseInt(status.getSelectedItem().toString());
    rst = true;
    this.dispose();
  }