Exemplo n.º 1
0
 /* (non-Javadoc)
  * @see net.cbtltd.client.panel.AbstractPopup#getValue(java.lang.Object)
  */
 private License getValue(License license) {
   license.setState(state);
   license.setId(id);
   license.setOrganizationid(AbstractRoot.getOrganizationid());
   license.setActorid(AbstractRoot.getActorid());
   license.setId(id);
   license.setUpstreamid(AbstractRoot.getOrganizationid());
   license.setDownstreamid(downstreamidField.getValue());
   license.setProductid(productField.getValue()); // TODO: set null for zero???
   license.setType(typeField.getValue());
   license.setWait(waitField.getValue());
   license.setFromdate(fromtodateField.getValue());
   license.setTodate(fromtodateField.getTovalue());
   license.setSubscription(subscriptionField.getValue());
   license.setTransaction(transactionField.getValue());
   license.setUpstream(upstreamField.getValue());
   license.setDownstream(downstreamField.getValue());
   license.setNotes(notesField.getValue());
   Log.debug("getValue " + license);
   return license;
 }
Exemplo n.º 2
0
 /* (non-Javadoc)
  * @see net.cbtltd.client.panel.AbstractPopup#setValue(java.lang.Object)
  */
 public void setValue(License license) {
   Log.debug("setValue " + license);
   if (license != null) {
     setResetting(true);
     onStateChange(license.getState());
     id = license.getId();
     downstreamidField.setValue(license.getDownstreamid());
     productField.setValue(license.getProductid());
     typeField.setValue(license.getType());
     waitField.setValue(license.getWait());
     fromtodateField.setValue(license.getFromdate());
     fromtodateField.setTovalue(license.getTodate());
     subscriptionField.setValue(license.getSubscription());
     transactionField.setValue(license.getTransaction());
     upstreamField.setValue(license.getUpstream());
     downstreamField.setValue(license.getDownstream());
     notesField.setValue(license.getNotes());
     center();
     setResetting(false);
   }
 }
Exemplo n.º 3
0
 /**
  * Shows the panel for the specified license.
  *
  * @param license the specified license.
  * @param parentTable the parent table.
  */
 public void show(License license, TableField<License> parentTable) {
   LicensePopup.parentTable = parentTable;
   LicensePopup.id = license.getId();
   licenseRead.execute(true);
 }