예제 #1
0
 public void deleteProjectPayment() {
   EzeeProjectPayment payment = projectPaymentGrid.getSelected();
   if (payment != null) {
     new EzeeCreateUpdateDeleteProjectItemPayment(
             cache, projectPaymentHandler, payment, delete, PROJECT_PAYMENT_CRUD_HEADERS)
         .show();
   }
 }
예제 #2
0
 private void reloadUi() {
   int itemIndex = projectItemGrid.getIndex(projectItemGrid.getSelected());
   int detailIndex = projectItemDetailGrid.getIndex(projectItemDetailGrid.getSelected());
   int paymentIndex = projectPaymentGrid.getIndex(projectPaymentGrid.getSelected());
   projectItemGrid.reloadEntities();
   projectItemGrid.setSelected(itemIndex);
   projectItemDetailGrid.itemSelected(projectItemGrid.getSelected(), detailIndex);
   projectPaymentGrid.itemSelected(projectItemGrid.getSelected(), paymentIndex);
 }