userList = null;
}
public Object viewToObj(Object obj) {
User user = new User();
if (obj != null) {
try {
BeanUtils.copyProperties(user, obj);
} catch (Exception iae) {
iae.printStackTrace();
}
}
user.setOperateBy(operateBy);
Combobox orgIdCB = (Combobox) getFellow("OrgId");
Textbox userNameTB = (Textbox) getFellow("UserDutyWinUserName");
Textbox accountTB = (Textbox) getFellow("Account");
Textbox passwdTB = (Textbox) getFellow("Passwd");
user.setOrg((Org) orgIdCB.getSelectedItem().getValue());
user.setUserName(userNameTB.getValue());
user.setAccount(accountTB.getValue());
user.setPasswd(passwdTB.getValue());
return user;
}