資源簡介
數據庫Q我714140539
代碼片段和文件信息
package?org.agent.action;
import?java.math.BigDecimal;
import?java.text.DateFormat;
import?java.text.ParseException;
import?java.text.SimpleDateFormat;
import?java.util.ArrayList;
import?java.util.Date;
import?java.util.List;
import?net.sf.json.JSONArray;
import?org.agent.common.Constants;
import?org.agent.common.PageSupport;
import?org.agent.pojo.Account;
import?org.agent.pojo.AccountDetail;
import?org.agent.pojo.Logs;
import?org.agent.pojo.SystemConfig;
import?org.agent.pojo.User;
import?org.agent.service.account.AccountService;
import?org.agent.service.accountdetail.AccountDetailService;
import?com.opensymphony.xwork2.Action;
public?class?AcountAction?extends?baseAction?{
private?Account?account;
private?AccountDetail?accountDetail;
//IoC注入
private?AccountService?accountService;
private?AccountDetailService?accountDetailService;
private?User?user;
private?List?userList;
private?List?accountConfigList;
public?Account?getAccount()?{
return?account;
}
public?void?setAccount(Account?account)?{
this.account?=?account;
}
public?AccountDetail?getAccountDetail()?{
return?accountDetail;
}
public?void?setAccountDetail(AccountDetail?accountDetail)?{
this.accountDetail?=?accountDetail;
}
public?AccountService?getAccountService()?{
return?accountService;
}
public?void?setAccountService(AccountService?accountService)?{
this.accountService?=?accountService;
}
public?AccountDetailService?getAccountDetailService()?{
return?accountDetailService;
}
public?void?setAccountDetailService(AccountDetailService?accountDetailService)?{
this.accountDetailService?=?accountDetailService;
}
public?List?getAccountConfigList()?{
return?accountConfigList;
}
public?void?setAccountConfigList(List?accountConfigList)?{
this.accountConfigList?=?accountConfigList;
}
public?List?getUserList()?{
return?userList;
}
public?void?setUserList(List?userList)?{
this.userList?=?userList;
}
public?User?getUser()?{
return?user;
}
public?void?setUser(User?user)?{
this.user?=?user;
}
public?String?caiwu(){
accountConfigList=Constants.accountConfigList;
return?SUCCESS;
}
/**
?*?輸出List?json對象
?*?@return
?*/
public?void?searchUser(){
if(user==null)
user=new?User();
user.setIsStart(1);
userList=this.getUserService().getUserList(user);
if(userList==null){
userList=new?ArrayList();
}
//?java轉json字符串
String?jsonStr?=?JSONArray.fromobject(userList).toString();
//System.out.println(jsonStr);
this.getOut().write(jsonStr);
}
public?void?operateAccount(){
try?{
System.out.println(account);
Account?dbAccount=accountService.getAccount(account);
if(dbAccount!=null){
Account?oldAccount=dbAccount;
Account?newAccount=account;
System.out.println(account.getMoney());
//newAccount.setMoneyBak(account.getMoney
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????698??2016-08-10?05:44??agentsystem\.classpath
?????文件????????295??2016-08-23?00:55??agentsystem\.myme
?????文件???????1754??2016-08-09?16:38??agentsystem\.project
?????文件????????500??2016-08-09?04:46??agentsystem\.settings\.jsdtscope
?????文件????????142??2016-08-25?09:43??agentsystem\.settings\com.genuitec.eclipse.core.prefs
?????文件???????1009??2016-08-09?20:30??agentsystem\.settings\com.genuitec.eclipse.j2eedt.core.prefs
?????文件?????????99??2012-01-26?00:39??agentsystem\.settings\com.genuitec.eclipse.j2eedt.core.xm
?????文件????????118??2016-08-11?14:53??agentsystem\.settings\org.eclipse.core.resources.prefs
?????文件????????364??2016-08-09?04:46??agentsystem\.settings\org.eclipse.jdt.core.prefs
?????文件????????615??2016-08-10?05:44??agentsystem\.settings\org.eclipse.wst.common.component
?????文件????????126??2016-08-23?00:55??agentsystem\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件?????????49??2016-08-09?04:46??agentsystem\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件??????????6??2016-08-09?04:46??agentsystem\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件???????2652??2016-08-21?09:02??agentsystem\resources\applicationContext-default.xm
?????文件???????1574??2016-08-09?15:34??agentsystem\resources\dtd\mybatis-3-config.dtd
?????文件???????5737??2016-08-09?15:34??agentsystem\resources\dtd\mybatis-3-mapper.dtd
?????文件???????3765??2016-08-09?13:45??agentsystem\resources\dtd\struts-2.1.dtd
?????文件????????204??2016-08-10?05:03??agentsystem\resources\jdbc.properties
?????文件???????1969??2016-08-25?04:11??agentsystem\resources\log4j.properties
?????文件????????407??2016-08-11?04:26??agentsystem\resources\mybatis-config.xm
?????文件??????14032??2016-08-09?14:45??agentsystem\resources\schema\spring-aop-3.0.xsd
?????文件??????41645??2016-08-09?14:45??agentsystem\resources\schema\spring-beans-3.0.xsd
?????文件??????19651??2016-08-09?14:46??agentsystem\resources\schema\spring-context-3.0.xsd
?????文件???????9935??2016-08-09?14:47??agentsystem\resources\schema\spring-tx-3.0.xsd
?????文件???????1044??2016-09-02?09:13??agentsystem\resources\struts\struts-account.xm
?????文件???????1882??2016-08-25?05:29??agentsystem\resources\struts\struts-custom.xm
?????文件????????685??2016-08-17?04:28??agentsystem\resources\struts\struts-function.xm
?????文件???????1950??2016-09-02?06:47??agentsystem\resources\struts\struts-keywords.xm
?????文件???????1065??2016-08-22?01:55??agentsystem\resources\struts\struts-login.xm
?????文件????????419??2016-08-19?05:39??agentsystem\resources\struts\struts-logs.xm
............此處省略922個文件信息
評論
共有 條評論