public seatAddDialog(Seat seat) { this.txtId = seat.getId(); this.txtStudioId = seat.getStudioId(); this.txtRow = seat.getRow(); this.txtColumn = seat.getColumn(); initContent(); }
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(); }