selectuploadmmsaction.java
来自「移动彩信管理平台」· Java 代码 · 共 176 行
JAVA
176 行
package com.my7g.zj.mobile.mms.web.action;
import java.util.Date;
import java.util.List;
import com.my7g.zj.mobile.mms.bean.UploadMmsBean;
import com.my7g.zj.mobile.mms.business.IMmsUploadService;
import com.my7g.zj.mobile.mms.mapping.TbMmsType;
import com.my7g.zj.mobile.mms.sys.Constant;
import com.my7g.zj.mobile.mms.util.PageBean;
import com.opensymphony.xwork2.ActionSupport;
public class SelectUploadMmsAction extends ActionSupport {
/**
****************execute()方法获取(版权短信)************************************
*/
public String execute() throws Exception{
int currentPage = 1;
if(page==null || page.equalsIgnoreCase("null")){
page = "1";
}
currentPage = Integer.parseInt(page);
String dohref = Constant.WEB_CTX + "selectUpload.do?";
PageBean bean = up_Mms.getAllUploadMms(currentPage, 20, dohref, "0", "desc", typeChoose, startDate, endDate);
upMmsList = bean.getList();
UploadMmsBean umbean = null;
for (int i = 0; i < upMmsList.size(); i++) {
Object[] obj = (Object[]) upMmsList.get(i);
umbean = new UploadMmsBean();
umbean.setUid((String)obj[0]);
umbean.setType((String)obj[1]);
umbean.setProvider((String)obj[2]);
umbean.setTitle((String)obj[3]);
umbean.setSendTime((Date) obj[4]);
upMmsList.add(umbean);
}
href = bean.getHref();
mmsTypeList = up_Mms.getMmsTypeIndex();
return SUCCESS;
}
/**
* *****************业务接口(短信上传)属性及方法**************************************
*/
private IMmsUploadService up_Mms;
/**
* @return the up_Mms
*/
public IMmsUploadService getUp_Mms() {
return up_Mms;
}
/**
* @param up_Mms the up_Mms to set
*/
public void setUp_Mms(IMmsUploadService up_Mms) {
this.up_Mms = up_Mms;
}
/**
*******************页面数据(短信上传)属性及方法********************************
*/
private List upMmsList;
private List<TbMmsType> mmsTypeList;
private String page;
private String href;
private String typeChoose;
private String startDate;
private String endDate;
/**
* @return the upMmsList
*/
public List getUpMmsList() {
return upMmsList;
}
/**
* @param upMmsList the upMmsList to set
*/
public void setUpMmsList(List upMmsList) {
this.upMmsList = upMmsList;
}
/**
* @return the page
*/
public String getPage() {
return page;
}
/**
* @param page the page to set
*/
public void setPage(String page) {
this.page = page;
}
/**
* @return the href
*/
public String getHref() {
return href;
}
/**
* @param href the href to set
*/
public void setHref(String href) {
this.href = href;
}
/**
* @return the typeChoose
*/
public String getTypeChoose() {
return typeChoose;
}
/**
* @param typeChoose the typeChoose to set
*/
public void setTypeChoose(String typeChoose) {
this.typeChoose = typeChoose;
}
/**
* @return the startDate
*/
public String getStartDate() {
return startDate;
}
/**
* @param startDate the startDate to set
*/
public void setStartDate(String startDate) {
this.startDate = startDate;
}
/**
* @return the endDate
*/
public String getEndDate() {
return endDate;
}
/**
* @param endDate the endDate to set
*/
public void setEndDate(String endDate) {
this.endDate = endDate;
}
/**
* @return the mmsTypeList
*/
public List<TbMmsType> getMmsTypeList() {
return mmsTypeList;
}
/**
* @param mmsTypeList the mmsTypeList to set
*/
public void setMmsTypeList(List<TbMmsType> mmsTypeList) {
this.mmsTypeList = mmsTypeList;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?