Esempio n. 1
0
 public String commitChange() {
   BindingContainer binding = BindingContext.getCurrent().getCurrentBindingsEntry();
   OperationBinding ob = binding.getOperationBinding("Commit");
   ob.execute();
   refresh();
   return null;
 }
Esempio n. 2
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();
   }
 }
Esempio n. 3
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();
     }
   }
 }
Esempio n. 4
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);
    }
  }
Esempio n. 5
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();
       }
     }
   }
 }
Esempio n. 6
0
 public String getDel_style() {
   DCBindingContainer bd =
       (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry();
   DCIteratorBinding it = bd.findIteratorBinding("KontragOtherView1Iterator");
   Row currRow = it.getCurrentRow();
   Integer Del = (Integer) currRow.getAttribute("Deleted");
   String RetStr = null;
   if (Del == 0) {
     RetStr = "font-size:large; Color : Red;";
   } else {
     RetStr = "font-size:large;";
   }
   return RetStr;
 }
Esempio n. 7
0
 public String getDel_label() {
   DCBindingContainer bd =
       (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry();
   DCIteratorBinding it = bd.findIteratorBinding("KontragOtherView1Iterator");
   Row currRow = it.getCurrentRow();
   Integer Del = (Integer) currRow.getAttribute("Deleted");
   String RetStr = null;
   if (Del == 0) {
     RetStr = "Пометить на удаление";
   } else {
     RetStr = "Снять пометку на удаление";
   }
   return RetStr;
 }
Esempio n. 8
0
  public void refresh() {
    DCBindingContainer binding =
        (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding it = binding.findIteratorBinding("KontragOtherView1Iterator");
    String rks;
    if (it != null) {
      try {
        rks = it.getCurrentRow().getKey().toStringFormat(true);
      } catch (Exception e) {
        rks = null;
      }
      it.executeQuery();
      if (rks != null) {
        try {
          it.setCurrentRowWithKey(rks);
        } catch (Exception e) {
          e.getMessage();
        }
      }
    }

    AdfFacesContext.getCurrentInstance().addPartialTarget(getMainTable());
  }
 public BindingContainer getBindings() {
   return BindingContext.getCurrent().getCurrentBindingsEntry();
 }
  public void loadPersonalDetails() {
    DCBindingContainer bindings =
        (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry();

    JUCtrlAttrsBinding PersonIDUpDt = (JUCtrlAttrsBinding) bindings.findNamedObject("PersonIDUpDt");
    JUCtrlAttrsBinding PersonIDGet = (JUCtrlAttrsBinding) bindings.findNamedObject("PersonID");
    PersonIDUpDt.setAttribute("PersonID", PersonIDGet.getAttribute("PersonID"));

    JUCtrlAttrsBinding PersonNumbereGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PartyNumberGet");
    JUCtrlAttrsBinding PersonNumberUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PartyNumberUpDt");
    PersonNumberUpDt.setAttribute("PartyNumber", PersonNumbereGet.getAttribute("PartyNumber"));

    JUCtrlAttrsBinding PersonTitleGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PersonTitleGet");
    JUCtrlAttrsBinding PersonTitleUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PersonTitleUpDt");
    PersonTitleUpDt.setAttribute("PersonTitle", PersonTitleGet.getAttribute("PersonTitle"));

    JUCtrlAttrsBinding FirstNameGet = (JUCtrlAttrsBinding) bindings.findNamedObject("FirstNameGet");
    JUCtrlAttrsBinding FirstNameUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("FirstNameUpDt");
    FirstNameUpDt.setAttribute("FirstName", FirstNameGet.getAttribute("FirstName"));

    JUCtrlAttrsBinding MiddleNameGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("MiddleNameGet");
    JUCtrlAttrsBinding MiddleNameUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("MiddleNameUpDt");
    MiddleNameUpDt.setAttribute("MiddleName", MiddleNameGet.getAttribute("MiddleName"));

    JUCtrlAttrsBinding LastNameGet = (JUCtrlAttrsBinding) bindings.findNamedObject("LastNameGet");
    JUCtrlAttrsBinding LastNameUpDt = (JUCtrlAttrsBinding) bindings.findNamedObject("LastNameUpDt");
    LastNameUpDt.setAttribute("LastName", LastNameGet.getAttribute("LastName"));

    JUCtrlAttrsBinding NameSuffixGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("NameSuffixGet");
    JUCtrlAttrsBinding NameSuffixUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("NameSuffixUpDt");
    NameSuffixUpDt.setAttribute("NameSuffix", NameSuffixGet.getAttribute("NameSuffix"));

    JUCtrlAttrsBinding emailIDUpDt = (JUCtrlAttrsBinding) bindings.findNamedObject("EmailIDUpDt");
    JUCtrlAttrsBinding emailAddressUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("EmailAddressUpDt");
    JUCtrlAttrsBinding emailIDGet = (JUCtrlAttrsBinding) bindings.findNamedObject("EmailIDGet");
    JUCtrlAttrsBinding emailAddressGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("EmailAddressGet");

    emailIDUpDt.setAttribute("EmailID", emailIDGet.getAttribute("EmailID"));
    emailAddressUpDt.setAttribute("EmailAddress", emailAddressGet.getAttribute("EmailAddress"));

    JUCtrlAttrsBinding DateOfBirthGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("DateOfBirthGet");
    JUCtrlAttrsBinding DateOfBirthUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("DateOfBirthUpDt");
    DateOfBirthUpDt.setAttribute("DateOfBirth", DateOfBirthGet.getAttribute("DateOfBirth"));

    JUCtrlAttrsBinding GenderGet = (JUCtrlAttrsBinding) bindings.findNamedObject("GenderGet");
    JUCtrlAttrsBinding GenderUpDt = (JUCtrlAttrsBinding) bindings.findNamedObject("GenderUpDt");
    GenderUpDt.setAttribute("Gender", GenderGet.getAttribute("Gender"));

    JUCtrlAttrsBinding PTRNumberGet = (JUCtrlAttrsBinding) bindings.findNamedObject("PTRNumberGet");
    JUCtrlAttrsBinding PTRNumberUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PTRNumberUpDt");
    PTRNumberUpDt.setAttribute("PTRNumber", PTRNumberGet.getAttribute("PTRNumber"));

    /*################################################################################################ */
    JUCtrlAttrsBinding attribute11 = (JUCtrlAttrsBinding) bindings.findNamedObject("Attribute11");
    attribute11.setAttribute("Attribute11", "N");

    DCIteratorBinding credIter = bindings.findIteratorBinding("CredentialIterator");
    Row[] credRowsUpDt = credIter.getAllRowsInRange();
    if (credRowsUpDt != null) {
      for (int j = 0; j < credRowsUpDt.length; j++) {
        if (credRowsUpDt[j].getAttribute("Value") != null) {
          credRowsUpDt[j].setAttribute("ID", "");
          credRowsUpDt[j].setAttribute("Value", "");
          credRowsUpDt[j].setAttribute("StatusFlag", "");
        }
      }
    }

    /*################################################################################################ */

  }
public class LoadPersonData {
  DCBindingContainer bindings =
      (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry();

  public LoadPersonData() {
    super();
  }

  public void loadPersonalDetails() {
    DCBindingContainer bindings =
        (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry();

    JUCtrlAttrsBinding PersonIDUpDt = (JUCtrlAttrsBinding) bindings.findNamedObject("PersonIDUpDt");
    JUCtrlAttrsBinding PersonIDGet = (JUCtrlAttrsBinding) bindings.findNamedObject("PersonID");
    PersonIDUpDt.setAttribute("PersonID", PersonIDGet.getAttribute("PersonID"));

    JUCtrlAttrsBinding PersonNumbereGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PartyNumberGet");
    JUCtrlAttrsBinding PersonNumberUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PartyNumberUpDt");
    PersonNumberUpDt.setAttribute("PartyNumber", PersonNumbereGet.getAttribute("PartyNumber"));

    JUCtrlAttrsBinding PersonTitleGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PersonTitleGet");
    JUCtrlAttrsBinding PersonTitleUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PersonTitleUpDt");
    PersonTitleUpDt.setAttribute("PersonTitle", PersonTitleGet.getAttribute("PersonTitle"));

    JUCtrlAttrsBinding FirstNameGet = (JUCtrlAttrsBinding) bindings.findNamedObject("FirstNameGet");
    JUCtrlAttrsBinding FirstNameUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("FirstNameUpDt");
    FirstNameUpDt.setAttribute("FirstName", FirstNameGet.getAttribute("FirstName"));

    JUCtrlAttrsBinding MiddleNameGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("MiddleNameGet");
    JUCtrlAttrsBinding MiddleNameUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("MiddleNameUpDt");
    MiddleNameUpDt.setAttribute("MiddleName", MiddleNameGet.getAttribute("MiddleName"));

    JUCtrlAttrsBinding LastNameGet = (JUCtrlAttrsBinding) bindings.findNamedObject("LastNameGet");
    JUCtrlAttrsBinding LastNameUpDt = (JUCtrlAttrsBinding) bindings.findNamedObject("LastNameUpDt");
    LastNameUpDt.setAttribute("LastName", LastNameGet.getAttribute("LastName"));

    JUCtrlAttrsBinding NameSuffixGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("NameSuffixGet");
    JUCtrlAttrsBinding NameSuffixUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("NameSuffixUpDt");
    NameSuffixUpDt.setAttribute("NameSuffix", NameSuffixGet.getAttribute("NameSuffix"));

    JUCtrlAttrsBinding emailIDUpDt = (JUCtrlAttrsBinding) bindings.findNamedObject("EmailIDUpDt");
    JUCtrlAttrsBinding emailAddressUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("EmailAddressUpDt");
    JUCtrlAttrsBinding emailIDGet = (JUCtrlAttrsBinding) bindings.findNamedObject("EmailIDGet");
    JUCtrlAttrsBinding emailAddressGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("EmailAddressGet");

    emailIDUpDt.setAttribute("EmailID", emailIDGet.getAttribute("EmailID"));
    emailAddressUpDt.setAttribute("EmailAddress", emailAddressGet.getAttribute("EmailAddress"));

    JUCtrlAttrsBinding DateOfBirthGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("DateOfBirthGet");
    JUCtrlAttrsBinding DateOfBirthUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("DateOfBirthUpDt");
    DateOfBirthUpDt.setAttribute("DateOfBirth", DateOfBirthGet.getAttribute("DateOfBirth"));

    JUCtrlAttrsBinding GenderGet = (JUCtrlAttrsBinding) bindings.findNamedObject("GenderGet");
    JUCtrlAttrsBinding GenderUpDt = (JUCtrlAttrsBinding) bindings.findNamedObject("GenderUpDt");
    GenderUpDt.setAttribute("Gender", GenderGet.getAttribute("Gender"));

    JUCtrlAttrsBinding PTRNumberGet = (JUCtrlAttrsBinding) bindings.findNamedObject("PTRNumberGet");
    JUCtrlAttrsBinding PTRNumberUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PTRNumberUpDt");
    PTRNumberUpDt.setAttribute("PTRNumber", PTRNumberGet.getAttribute("PTRNumber"));

    /*################################################################################################ */
    JUCtrlAttrsBinding attribute11 = (JUCtrlAttrsBinding) bindings.findNamedObject("Attribute11");
    attribute11.setAttribute("Attribute11", "N");

    DCIteratorBinding credIter = bindings.findIteratorBinding("CredentialIterator");
    Row[] credRowsUpDt = credIter.getAllRowsInRange();
    if (credRowsUpDt != null) {
      for (int j = 0; j < credRowsUpDt.length; j++) {
        if (credRowsUpDt[j].getAttribute("Value") != null) {
          credRowsUpDt[j].setAttribute("ID", "");
          credRowsUpDt[j].setAttribute("Value", "");
          credRowsUpDt[j].setAttribute("StatusFlag", "");
        }
      }
    }

    /*################################################################################################ */

  }

  public void loadAndUpdatePreferences() {

    JUCtrlAttrsBinding EmailFlagIdGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("EmailFlagIDGet");
    if (EmailFlagIdGet != null && EmailFlagIdGet.getAttribute("EmailFlagID") != null) {
      JUCtrlAttrsBinding EmailFlagIdUpDt =
          (JUCtrlAttrsBinding) bindings.findNamedObject("EmailFlagIDUpDt");
      EmailFlagIdUpDt.setAttribute("EmailFlagID", EmailFlagIdGet.getAttribute("EmailFlagID"));
    }

    JUCtrlAttrsBinding EmailFlagGet = (JUCtrlAttrsBinding) bindings.findNamedObject("EmailFlagGet");
    JUCtrlAttrsBinding EmailFlagUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("EmailFlagUpDt");
    EmailFlagUpDt.setAttribute("EmailFlag", EmailFlagGet.getAttribute("EmailFlag"));

    JUCtrlAttrsBinding FaxFlagIdGet = (JUCtrlAttrsBinding) bindings.findNamedObject("FaxFlagIDGet");
    if (FaxFlagIdGet != null && FaxFlagIdGet.getAttribute("FaxFlagID") != null) {
      JUCtrlAttrsBinding FaxFlagIdUpDt =
          (JUCtrlAttrsBinding) bindings.findNamedObject("FaxFlagIDUpDt");
      FaxFlagIdUpDt.setAttribute("FaxFlagID", FaxFlagIdGet.getAttribute("FaxFlagID"));
    }

    JUCtrlAttrsBinding FaxFlagGet = (JUCtrlAttrsBinding) bindings.findNamedObject("FaxFlagGet");
    JUCtrlAttrsBinding FaxFlagUpDt = (JUCtrlAttrsBinding) bindings.findNamedObject("FaxFlagUpDt");
    FaxFlagUpDt.setAttribute("FaxFlag", FaxFlagGet.getAttribute("FaxFlag"));

    JUCtrlAttrsBinding AddrListDirectoryIdGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("AddrListDirectoryFlagIDGet");
    if (AddrListDirectoryIdGet != null
        && AddrListDirectoryIdGet.getAttribute("AddrListDirectoryFlagID") != null) {
      JUCtrlAttrsBinding AddrListDirectoryIdUpDt =
          (JUCtrlAttrsBinding) bindings.findNamedObject("AddrListDirectoryFlagIDUpDt");
      AddrListDirectoryIdUpDt.setAttribute(
          "AddrListDirectoryFlagID",
          AddrListDirectoryIdGet.getAttribute("AddrListDirectoryFlagID"));
    }

    JUCtrlAttrsBinding AddrListDirectoryFlagGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("AddrListDirectoryFlagGet");
    JUCtrlAttrsBinding AddrListDirectoryFlagUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("AddrListDirectoryFlagUpDt");
    AddrListDirectoryFlagUpDt.setAttribute(
        "AddrListDirectoryFlag", AddrListDirectoryFlagGet.getAttribute("AddrListDirectoryFlag"));

    JUCtrlAttrsBinding ShareMailAddrFlagIdGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("ShareMailAddrFlagIDGet");
    if (ShareMailAddrFlagIdGet != null
        && ShareMailAddrFlagIdGet.getAttribute("ShareMailAddrFlagID") != null) {
      JUCtrlAttrsBinding ShareMailAddrFlagIdUpDt =
          (JUCtrlAttrsBinding) bindings.findNamedObject("ShareMailAddrFlagIDUpDt");
      ShareMailAddrFlagIdUpDt.setAttribute(
          "ShareMailAddrFlagID", ShareMailAddrFlagIdGet.getAttribute("ShareMailAddrFlagID"));
    }

    JUCtrlAttrsBinding ShareMailAddrFlagGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("ShareMailAddrFlagGet");
    JUCtrlAttrsBinding ShareMailAddrFlagUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("ShareMailAddrFlagUpDt");
    ShareMailAddrFlagUpDt.setAttribute(
        "ShareMailAddrFlag", ShareMailAddrFlagGet.getAttribute("ShareMailAddrFlag"));

    JUCtrlAttrsBinding PhoneFlagIdGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PhoneFlagIDGet");
    if (PhoneFlagIdGet != null && PhoneFlagIdGet.getAttribute("PhoneFlagID") != null) {
      JUCtrlAttrsBinding PhoneFlagIdUpDt =
          (JUCtrlAttrsBinding) bindings.findNamedObject("PhoneFlagIDUpDt");
      PhoneFlagIdUpDt.setAttribute("PhoneFlagID", PhoneFlagIdGet.getAttribute("PhoneFlagID"));
    }

    JUCtrlAttrsBinding PhoneFlagGet = (JUCtrlAttrsBinding) bindings.findNamedObject("PhoneFlagGet");
    JUCtrlAttrsBinding PhoneFlagUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PhoneFlagUpDt");
    PhoneFlagUpDt.setAttribute("PhoneFlag", PhoneFlagGet.getAttribute("PhoneFlag"));

    JUCtrlAttrsBinding PromotionFlagIdGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PromotionalMaterialFlagIDGet");
    if (PromotionFlagIdGet != null
        && PromotionFlagIdGet.getAttribute("PromotionalMaterialFlagID") != null) {
      JUCtrlAttrsBinding PromotionFlagIdUpDt =
          (JUCtrlAttrsBinding) bindings.findNamedObject("PromotionalMaterialFlagIDUpDt");
      PromotionFlagIdUpDt.setAttribute(
          "PromotionalMaterialFlagID",
          PromotionFlagIdGet.getAttribute("PromotionalMaterialFlagID"));
    }

    JUCtrlAttrsBinding PromotionFlagGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PromotionalMaterialFlagGet");
    JUCtrlAttrsBinding PromotionFlagUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PromotionalMaterialFlagUpDt");
    PromotionFlagUpDt.setAttribute(
        "PromotionalMaterialFlag", PromotionFlagGet.getAttribute("PromotionalMaterialFlag"));
  }

  public void loadAndUpdateBusinessInfoBindings() {
    /* Business Address,Phone and Fax Bindings  */

    JUCtrlAttrsBinding institutionIDBusUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("InstitutionIDBusUpDt");
    JUCtrlAttrsBinding institutionNameBusUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("InstitutionNameBusUpDt");

    JUCtrlAttrsBinding partySiteIDBusUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PartySiteIDBusUpDt");
    JUCtrlAttrsBinding locationIDBusUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("LocationIDBusUpDt");
    JUCtrlAttrsBinding address1BusUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("Address1BusUpDt");
    JUCtrlAttrsBinding address2BusUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("Address2BusUpDt");
    JUCtrlAttrsBinding address3BusUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("Address3BusUpDt");
    JUCtrlAttrsBinding address4BusUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("Address4BusUpDt");
    JUCtrlAttrsBinding countryBusUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("CountryBusUpDt");
    JUCtrlAttrsBinding stateBusUpDt = (JUCtrlAttrsBinding) bindings.findNamedObject("StateBusUpDt");
    JUCtrlAttrsBinding cityBusUpDt = (JUCtrlAttrsBinding) bindings.findNamedObject("CityBusUpDt");
    JUCtrlAttrsBinding postalCodeBusUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PostalCodeBusUpDt");
    JUCtrlAttrsBinding countyBusUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("CountyBusUpDt");
    JUCtrlAttrsBinding preferredFlagBusUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PreferredFlagBusUpDt");
    JUCtrlAttrsBinding validateAddressFlagBus =
        (JUCtrlAttrsBinding) bindings.findNamedObject("IsBusAddressValidated");
    JUCtrlAttrsBinding phoneIDBusUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PhoneIDBusUpDt");
    JUCtrlAttrsBinding phoneRawNumberBusUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PhoneRawNumberBusUpDt");
    JUCtrlAttrsBinding faxIDBusUpDt = (JUCtrlAttrsBinding) bindings.findNamedObject("FaxIDBusUpDt");
    JUCtrlAttrsBinding faxRawNumberBusUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("FaxRawNumberBusUpDt");

    JUCtrlAttrsBinding institutionIDBusGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("InstitutionIDBusGet");
    JUCtrlAttrsBinding institutionNameBusGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("InstitutionNameBusGet");

    JUCtrlAttrsBinding partySiteIDBusGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PartySiteIDBusGet");
    JUCtrlAttrsBinding locationIDBusGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("LocationIDBusGet");
    JUCtrlAttrsBinding address1BusGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("Address1BusGet");
    JUCtrlAttrsBinding address2BusGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("Address2BusGet");
    JUCtrlAttrsBinding address3BusGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("Address3BusGet");
    JUCtrlAttrsBinding address4BusGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("Address4BusGet");
    JUCtrlAttrsBinding countryBusGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("CountryBusGet");
    JUCtrlAttrsBinding stateBusGet = (JUCtrlAttrsBinding) bindings.findNamedObject("StateBusGet");
    JUCtrlAttrsBinding cityBusGet = (JUCtrlAttrsBinding) bindings.findNamedObject("CityBusGet");
    JUCtrlAttrsBinding postalCodeBusGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PostalCodeBusGet");
    JUCtrlAttrsBinding countyBusGet = (JUCtrlAttrsBinding) bindings.findNamedObject("CountyBusGet");
    JUCtrlAttrsBinding preferredFlagBusGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PreferredFlagBusGet");

    JUCtrlAttrsBinding phoneIDBusGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PhoneIDBusGet");
    JUCtrlAttrsBinding phoneRawNumberBusGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PhoneRawNumberBusGet");
    JUCtrlAttrsBinding faxIDBusGet = (JUCtrlAttrsBinding) bindings.findNamedObject("FaxIDBusGet");
    JUCtrlAttrsBinding faxRawNumberBusGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("FaxRawNumberBusGet");
    if (partySiteIDBusGet != null && partySiteIDBusGet.getAttribute("PartySiteID") != null) {
      institutionIDBusUpDt.setAttribute(
          "InstitutionID", institutionIDBusGet.getAttribute("InstitutionID"));
      institutionNameBusUpDt.setAttribute(
          "InstitutionName", institutionNameBusGet.getAttribute("InstitutionName"));
      partySiteIDBusUpDt.setAttribute("PartySiteID", partySiteIDBusGet.getAttribute("PartySiteID"));
      locationIDBusUpDt.setAttribute("LocationID", locationIDBusGet.getAttribute("LocationID"));
      address1BusUpDt.setAttribute("Address1", address1BusGet.getAttribute("Address1"));
      address2BusUpDt.setAttribute("Address2", address2BusGet.getAttribute("Address2"));
      address3BusUpDt.setAttribute("Address3", address3BusGet.getAttribute("Address3"));
      address4BusUpDt.setAttribute("Address4", address4BusGet.getAttribute("Address4"));
      countryBusUpDt.setAttribute("Country", countryBusGet.getAttribute("Country"));
      stateBusUpDt.setAttribute("State", stateBusGet.getAttribute("State"));
      cityBusUpDt.setAttribute("City", cityBusGet.getAttribute("City"));
      postalCodeBusUpDt.setAttribute("PostalCode", postalCodeBusGet.getAttribute("PostalCode"));
      countyBusUpDt.setAttribute("County", countyBusGet.getAttribute("County"));
      preferredFlagBusUpDt.setAttribute(
          "PreferredFlag", preferredFlagBusGet.getAttribute("PreferredFlag"));
      validateAddressFlagBus.setAttribute("IsAddressValidated", "Y");

      phoneIDBusUpDt.setAttribute("ID", phoneIDBusGet.getAttribute("ID"));
      phoneRawNumberBusUpDt.setAttribute(
          "RawNumber", phoneRawNumberBusGet.getAttribute("RawNumber"));
      faxIDBusUpDt.setAttribute("ID", faxIDBusGet.getAttribute("ID"));
      faxRawNumberBusUpDt.setAttribute("RawNumber", faxRawNumberBusGet.getAttribute("RawNumber"));
    }
  }

  public void loadAndUpdateHomeInfoBindings() {
    /* Home Address,Phone and Fax Bindings  */

    JUCtrlAttrsBinding partySiteIDHomeUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PartySiteIDHomeUpDt");
    JUCtrlAttrsBinding locationIDHomeUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("LocationIDHomeUpDt");
    JUCtrlAttrsBinding address1HomeUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("Address1HomeUpDt");
    JUCtrlAttrsBinding address2HomeUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("Address2HomeUpDt");
    JUCtrlAttrsBinding address3HomeUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("Address3HomeUpDt");
    JUCtrlAttrsBinding address4HomeUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("Address4HomeUpDt");
    JUCtrlAttrsBinding countryHomeUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("CountryHomeUpDt");
    JUCtrlAttrsBinding stateHomeUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("StateHomeUpDt");
    JUCtrlAttrsBinding cityHomeUpDt = (JUCtrlAttrsBinding) bindings.findNamedObject("CityHomeUpDt");
    JUCtrlAttrsBinding postalCodeHomeUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PostalCodeHomeUpDt");
    JUCtrlAttrsBinding countyHomeUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("CountyHomeUpDt");
    JUCtrlAttrsBinding preferredFlagHomeUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PreferredFlagHomeUpDt");
    JUCtrlAttrsBinding validateAddressFlagHome =
        (JUCtrlAttrsBinding) bindings.findNamedObject("IsHomeAddressValidated");
    JUCtrlAttrsBinding phoneIDHomeUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PhoneIDHomeUpDt");
    JUCtrlAttrsBinding phoneRawNumberHomeUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PhoneRawNumberHomeUpDt");
    JUCtrlAttrsBinding faxIDHomeUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("FaxIDHomeUpDt");
    JUCtrlAttrsBinding faxRawNumberHomeUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("FaxRawNumberHomeUpDt");

    JUCtrlAttrsBinding partySiteIDHomeGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PartySiteIDHomeGet");
    JUCtrlAttrsBinding locationIDHomeGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("LocationIDHomeGet");
    JUCtrlAttrsBinding address1HomeGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("Address1HomeGet");
    JUCtrlAttrsBinding address2HomeGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("Address2HomeGet");
    JUCtrlAttrsBinding address3HomeGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("Address3HomeGet");
    JUCtrlAttrsBinding address4HomeGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("Address4HomeGet");
    JUCtrlAttrsBinding countryHomeGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("CountryHomeGet");
    JUCtrlAttrsBinding stateHomeGet = (JUCtrlAttrsBinding) bindings.findNamedObject("StateHomeGet");
    JUCtrlAttrsBinding cityHomeGet = (JUCtrlAttrsBinding) bindings.findNamedObject("CityHomeGet");
    JUCtrlAttrsBinding postalCodeHomeGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PostalCodeHomeGet");
    JUCtrlAttrsBinding countyHomeGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("CountyHomeGet");
    JUCtrlAttrsBinding preferredFlagHomeGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PreferredFlagHomeGet");

    JUCtrlAttrsBinding phoneIDHomeGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PhoneIDHomeGet");
    JUCtrlAttrsBinding phoneRawNumberHomeGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("PhoneRawNumberHomeGet");
    JUCtrlAttrsBinding faxIDHomeGet = (JUCtrlAttrsBinding) bindings.findNamedObject("FaxIDHomeGet");
    JUCtrlAttrsBinding faxRawNumberHomeGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("FaxRawNumberHomeGet");
    if (partySiteIDHomeGet != null && partySiteIDHomeGet.getAttribute("PartySiteID") != null) {
      partySiteIDHomeUpDt.setAttribute(
          "PartySiteID", partySiteIDHomeGet.getAttribute("PartySiteID"));
      locationIDHomeUpDt.setAttribute("LocationID", locationIDHomeGet.getAttribute("LocationID"));
      address1HomeUpDt.setAttribute("Address1", address1HomeGet.getAttribute("Address1"));
      address2HomeUpDt.setAttribute("Address2", address2HomeGet.getAttribute("Address2"));
      address3HomeUpDt.setAttribute("Address3", address3HomeGet.getAttribute("Address3"));
      address4HomeUpDt.setAttribute("Address4", address4HomeGet.getAttribute("Address4"));
      countryHomeUpDt.setAttribute("Country", countryHomeGet.getAttribute("Country"));
      stateHomeUpDt.setAttribute("State", stateHomeGet.getAttribute("State"));
      cityHomeUpDt.setAttribute("City", cityHomeGet.getAttribute("City"));
      postalCodeHomeUpDt.setAttribute("PostalCode", postalCodeHomeGet.getAttribute("PostalCode"));
      countyHomeUpDt.setAttribute("County", countyHomeGet.getAttribute("County"));

      phoneIDHomeUpDt.setAttribute("ID", phoneIDHomeGet.getAttribute("ID"));
      phoneRawNumberHomeUpDt.setAttribute(
          "RawNumber", phoneRawNumberHomeGet.getAttribute("RawNumber"));
      faxIDHomeUpDt.setAttribute("ID", faxIDHomeGet.getAttribute("ID"));
      faxRawNumberHomeUpDt.setAttribute("RawNumber", faxRawNumberHomeGet.getAttribute("RawNumber"));
      preferredFlagHomeUpDt.setAttribute(
          "PreferredFlag", preferredFlagHomeGet.getAttribute("PreferredFlag"));
      validateAddressFlagHome.setAttribute("IsAddressValidated", "Y");
    }
  }

  public void loadAndUpdateFLInfoBindings() {
    JUCtrlAttrsBinding flLicenseGet =
        (JUCtrlAttrsBinding) bindings.findNamedObject("LicenseNumberGet");
    JUCtrlAttrsBinding flLicenseUpDt =
        (JUCtrlAttrsBinding) bindings.findNamedObject("LicenseNumberUpDt");
    flLicenseUpDt.setAttribute("LicenseNumber", flLicenseGet.getAttribute("LicenseNumber"));
  }
}