91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

使用SSH框架實現(xiàn)的物流管理系統(tǒng)。數(shù)據(jù)庫使用MySQL. Struts2+Spring2.5+Hibernate3.0

資源截圖

代碼片段和文件信息

package?action;

import?java.util.List;
import?java.util.Locale;

import?org.springframework.context.i18n.LocaleContext;

import?net.sf.cglib.core.Local;

import?pojos.Customer;

import?service.CustomerService;
import?sun.util.resources.LocaleData;

import?com.opensymphony.xwork2.ActionContext;
import?com.opensymphony.xwork2.ActionSupport;

public?class?CustomerAction?extends?ActionSupport{
?/**
*屬性名:serialVersionUID、類型:long、作成日:2012-12-30.

*含義:
*/
private?static?final?long?serialVersionUID?=?-910456589191114077L;
private?CustomerService?customerService;
private?List?customers;
private?Customer?customer;
private?int?flag=0;

????public?String?list(){
???? customers=customerService.getCustomerList();
???? return?SUCCESS;
????}
????public?String?update(){
???? if(customer!=null){
???? customer=customerService.getCustomerById(customer.getCusId());
???? customer.setCusStatus(1);
???? customerService.updateCustomer(customer);
???? }
???? return?SUCCESS;
????}
????public?String?delete()
????{
???? if(customer!=null){
???? customerService.deleteCustomer(customer);
???? }
???? return?SUCCESS;
????}
????@SuppressWarnings(“unchecked“)
public?String?login(){
???? String?password=customer.getCusPassword();
???? customer=customerService.getCustomerByNumber(customer.getCusNumber().trim());
???? if(customer!=null&&customer.getCusPassword().equals(password)){
???? ActionContext.getContext().getSession().put(“user“?customer);
???? return?SUCCESS;
???? }
???? setFlag(1);
???? return?INPUT;
????}
????@SuppressWarnings(“unchecked“)
public?String?toChinese(){
???? Locale?local=new?Locale(“zh_CN“);
???? ActionContext.getContext().setLocale(local);
???? ActionContext.getContext().getSession().put(“WW_TRANS_I18N_LOCALE“?“SESSION_LOCALE“);
???? return?SUCCESS;
????}
????@SuppressWarnings(“unchecked“)
public?String?toEnglish(){
???? Locale?local=new?Locale(“en_US“);
???? ActionContext.getContext().setLocale(local);
???? ActionContext.getContext().getSession().put(“WW_TRANS_I18N_LOCALE“?“en_US“);
???? return?SUCCESS;
????}

????
????public?int?getFlag()?{
return?flag;
}
public?void?setFlag(int?flag)?{
this.flag?=?flag;
}
public?Customer?getCustomer()?{
return?customer;
}
public?void?setCustomer(Customer?customer)?{
this.customer?=?customer;
}
public?CustomerService?getCustomerService()?{
return?customerService;
}

public?void?setCustomerService(CustomerService?customerService)?{
this.customerService?=?customerService;
}

public?List?getCustomers()?{
return?customers;
}

public?void?setCustomers(List?customers)?{
this.customers?=?customers;
}
????
????
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-05-17?16:09??S2SH\
?????文件?????????523??2012-12-30?13:25??S2SH\.classpath
?????文件????????1096??2012-11-28?22:28??S2SH\.project
?????目錄???????????0??2013-05-17?16:09??S2SH\.settings\
?????文件?????????454??2012-11-10?17:32??S2SH\.settings\.jsdtscope
?????文件??????????73??2012-12-30?13:54??S2SH\.settings\org.eclipse.core.resources.prefs
?????文件?????????330??2012-11-10?17:32??S2SH\.settings\org.eclipse.jdt.core.prefs
?????文件?????????446??2012-11-28?22:28??S2SH\.settings\org.eclipse.wst.common.component
?????文件?????????280??2012-11-14?10:01??S2SH\.settings\org.eclipse.wst.common.project.facet.core.xml
?????文件??????????49??2012-11-10?17:32??S2SH\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2012-11-10?17:32??S2SH\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件?????????349??2012-11-11?18:28??S2SH\.tomcatplugin
?????目錄???????????0??2013-05-17?16:09??S2SH\build\
?????目錄???????????0??2013-05-17?16:09??S2SH\build\classes\
?????目錄???????????0??2013-05-17?16:09??S2SH\build\classes\action\
?????文件????????3359??2013-04-10?21:26??S2SH\build\classes\action\CustomerAction.class
?????文件???????11173??2013-04-10?21:26??S2SH\build\classes\action\OrderFormAction.class
?????文件????????4808??2013-01-02?02:00??S2SH\build\classes\applicationContext.xml
?????目錄???????????0??2013-05-17?16:09??S2SH\build\classes\dao\
?????文件?????????230??2013-04-10?21:26??S2SH\build\classes\dao\CityDao.class
?????文件?????????402??2013-04-10?21:26??S2SH\build\classes\dao\CustomerDao.class
?????目錄???????????0??2013-05-17?16:09??S2SH\build\classes\dao\impl\
?????文件?????????985??2013-04-10?21:26??S2SH\build\classes\dao\impl\CityDaoImpl.class
?????文件????????2104??2013-04-10?21:26??S2SH\build\classes\dao\impl\CustomerDaoImpl.class
?????文件????????3499??2013-04-10?21:26??S2SH\build\classes\dao\impl\OrderCenterDaoImpl.class
?????文件????????3273??2013-04-10?21:26??S2SH\build\classes\dao\impl\OrderFormDaoImpl.class
?????文件????????3019??2013-04-10?21:26??S2SH\build\classes\dao\impl\SchemeDaoImpl.class
?????文件????????1020??2013-04-10?21:26??S2SH\build\classes\dao\impl\UserDaoImpl$1.class
?????文件????????1182??2013-04-10?21:26??S2SH\build\classes\dao\impl\UserDaoImpl.class
?????文件?????????390??2013-04-10?21:26??S2SH\build\classes\dao\OrderCenterDao.class
?????文件?????????357??2013-04-10?21:26??S2SH\build\classes\dao\OrderFormDao.class
............此處省略319個文件信息

評論

共有 條評論