tidy up ui for loanproducts and offices after json changes.

This commit is contained in:
Keith Woodlock
2012-05-25 14:04:16 +01:00
parent 5ac62588f6
commit 63a1f6cd63
8 changed files with 74 additions and 251 deletions
@@ -1,8 +1,6 @@
package org.mifosng.data.command;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
@@ -10,30 +8,30 @@ import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class OrganisationCurrencyCommand implements Serializable {
private Collection<String> notSelectedItems = new ArrayList<String>();
private Collection<String> selectedItems = new ArrayList<String>();
private String[] notSelectedCurrencies;
private String[] currencies;
public OrganisationCurrencyCommand() {
//
}
public OrganisationCurrencyCommand(final List<String> selectedCurrencyCodes) {
this.selectedItems = selectedCurrencyCodes;
this.currencies = selectedCurrencyCodes.toArray(new String[selectedCurrencyCodes.size()]);
}
public Collection<String> getSelectedItems() {
return selectedItems;
public String[] getNotSelectedCurrencies() {
return notSelectedCurrencies;
}
public void setSelectedItems(Collection<String> selectedItems) {
this.selectedItems = selectedItems;
public void setNotSelectedCurrencies(String... notSelectedCurrencies) {
this.notSelectedCurrencies = notSelectedCurrencies;
}
public Collection<String> getNotSelectedItems() {
return notSelectedItems;
public String[] getCurrencies() {
return currencies;
}
public void setNotSelectedItems(Collection<String> notSelectedItems) {
this.notSelectedItems = notSelectedItems;
public void setCurrencies(String... currencies) {
this.currencies = currencies;
}
}