return user;
}
public void objToView(Object obj) {
UserForm var = (UserForm) obj;
Combobox orgCB = (Combobox) getFellow("OrgId");
Textbox userNameTB = (Textbox) getFellow("UserDutyWinUserName");
Textbox accountTB = (Textbox) getFellow("Account");
Textbox passwdTB = (Textbox) getFellow("Passwd");
Iterator orgCbIt = orgCB.getItems().iterator();
while (orgCbIt.hasNext()) {
Comboitem orgCbItem = (Comboitem) orgCbIt.next();
Org org = (Org) orgCbItem.getValue();
logger.debug("" + var.getOrgId() + ", " + org.getOrgId());
if (var.getOrgId() != null && var.getOrgId() == org.getOrgId()) {
orgCB.setSelectedItem(orgCbItem);
}
}
userNameTB.setText(var.getUserName());
accountTB.setText(var.getAccount());
// B/C we only save md5 value, therefore , no need to show md5
passwdTB.setText("");
}