public void PageRefresh(PopupFetchEvent popupFetchEvent) {
   // Add event code here...
   System.out.println("poup listener*****");
   BindingContainer bindings = getBindings();
   OperationBinding operationBinding = bindings.getOperationBinding("getNonMandatoryList");
   Object result = operationBinding.execute();
 }
 public String cb2_action() {
   System.out.println("cb2_action*****");
   BindingContainer bindings = getBindings();
   OperationBinding operationBinding = bindings.getOperationBinding("getTainingCategorybyList");
   Object result = operationBinding.execute();
   return null;
 }
 public String cb4_action2() {
   System.out.println("cb4_action*****");
   BindingContainer bindings = getBindings();
   OperationBinding operationBinding = bindings.getOperationBinding("getNonMandatoryList");
   Object result = operationBinding.execute();
   return null;
 }
示例#4
0
 public String commitChange() {
   BindingContainer binding = BindingContext.getCurrent().getCurrentBindingsEntry();
   OperationBinding ob = binding.getOperationBinding("Commit");
   ob.execute();
   refresh();
   return null;
 }
示例#5
0
 public void onCancel(PopupCanceledEvent popupCanceledEvent) {
   BindingContainer binding = BindingContext.getCurrent().getCurrentBindingsEntry();
   OperationBinding ob = binding.getOperationBinding("Rollback");
   if (ob != null) {
     if (ob.isOperationEnabled()) {
       ob.execute();
       refresh();
     }
   }
 }
示例#6
0
 public void onDialog(DialogEvent dialogEvent) {
   if (dialogEvent.getOutcome().name().equals("ok")) {
     BindingContainer binding = BindingContext.getCurrent().getCurrentBindingsEntry();
     OperationBinding ob = binding.getOperationBinding("Commit");
     if (ob != null) {
       if (ob.isOperationEnabled()) {
         ob.execute();
         refresh();
       }
     }
   } else {
     BindingContainer binding = BindingContext.getCurrent().getCurrentBindingsEntry();
     OperationBinding ob = binding.getOperationBinding("Rollback");
     if (ob != null) {
       if (ob.isOperationEnabled()) {
         ob.execute();
         refresh();
       }
     }
   }
 }
示例#7
0
 public void onDeleteDialog(DialogEvent dialogEvent) {
   if (dialogEvent.getOutcome().name().equals("ok")) {
     DCBindingContainer bd =
         (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry();
     DCIteratorBinding it = bd.findIteratorBinding("KontragOtherView1Iterator");
     Row currRow = it.getCurrentRow();
     Integer Del = (Integer) currRow.getAttribute("Deleted");
     if (Del == 0) {
       BindingContainer binding = BindingContext.getCurrent().getCurrentBindingsEntry();
       OperationBinding ob = binding.getOperationBinding("Delete1");
       ob.execute();
     } else {
       currRow.setAttribute("Deleted", 0);
     }
     commitChange();
   }
 }
示例#8
0
  public void onPaySettChange(ValueChangeEvent valueChangeEvent) {
    valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
    // System.out.println(vce.getNewValue());
    String pId = getValueFrmExpression("#{row.bindings.PayId.attributeValue}");
    System.out.println(pId);
    DCBindingContainer bd =
        (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding it = bd.findIteratorBinding("KontragSettingsView1Iterator");
    Row currRow = it.getCurrentRow();
    currRow.setAttribute("Summa", null);

    BindingContainer binding = BindingContext.getCurrent().getCurrentBindingsEntry();
    OperationBinding ob = binding.getOperationBinding("retrieveSumm");

    if (ob != null) {
      ob.getParamsMap().put("pId", pId);
      BigDecimal summa = (BigDecimal) ob.execute();
      System.out.println(summa);
      currRow.setAttribute("Summa", summa);
    }
  }
 public void initializeMethod() {
   //   AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
   BindingContainer bindings = getBindings();
   OperationBinding operationBinding = bindings.getOperationBinding("getNonMandatoryList");
   Object result = operationBinding.execute();
 }