📄 archive.java
字号:
package com.stsc.archive.backup;
/*
文件录入主类,
*/
import java.io.IOException;
import java.util.Hashtable;
import java.util.Locale;
import java.util.Properties;
import java.util.Date;
import java.text.SimpleDateFormat;
import com.stsc.util.STPoolDataSet;
import com.stsc.util.STResultSet;
import org.apache.struts.upload.FormFile;
import org.apache.struts.upload.MultipartRequestHandler;
import com.stsc.archive.file.Constants;
public class Archive {
// --------------------------------------------------- Instance Variables
//定义时间类型,取出当前系统时间
//SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
//String todayStr = sdf.format(new java.util.Date());
private int serialno = 0;
private String flowno = "";
private String archivetype = null;
private String code = null;
private String category = null;
private String filetype = null;
private String title = null;
private String titleremark = null;
private String fileno = null;
private String literaturetype = null;
private Date filedate = null;
private int pagenumber = 0;
private String duty = null;
private String otherduty = null;
private String electronicfilename = null;
private String attachmenttitle = null;
private String keyword = null;
private String memo = null;
private String annotation = null;
private String abstractmsg = null;
private int copys = 0;
private int lendnum = 0;
private String securityclass = null;
private int securityterm = 0;
private Date decryptiondate = null;
private String retentionperiod = null;
private Date archivedate = null;
private Date destroydate = null;
private String archivalcode = null;
private String status = null;
private String archiveno = null;
private String handover = null;
private String suggest = null;
private String recordtransfer = null;
private String filingtrace = null;
private String filingscripts = null;
private String reappraisedates = null;
private String attachmentpath = null;
private String volumnno="";
private String unitno="";
//2003-05-26 add by liqf
//write handlelog
private String entername="";
private String username="";
private Date handletime=null;
private String handlecontent="";
private int handleid = 0;
//2003-05-26 add by liqf
//write handlelog
private String deleted="";
//2003-06-04 add by liqf
//write handlelog
// ----------------------------------------------------------- Properties
public String getUnitno() {
return (this.unitno);
}
/**
* Set the serialno.
*
* @param serialno The new serialno
*/
public void setUnitno(String unitno) {
this.unitno = unitno;
}
//2003-06-03 add by liqf
//write handlelog
// ----------------------------------------------------------- Properties
public String getFlowno() {
return (this.flowno);
}
/**
* Set the serialno.
*
* @param serialno The new serialno
*/
public void setFlowno(String flowno) {
this.flowno = flowno;
}
// ----------------------------------------------------------- Properties
public String getDeleted() {
return (this.deleted);
}
/**
* Set the serialno.
*
* @param serialno The new serialno
*/
public void setDeleted(String deleted) {
this.deleted = deleted;
}
//2003-05-26 add by liqf
public int getHandleid() {
return (this.handleid);
}
/**
* Set the serialno.
*
* @param serialno The new serialno
*/
public void setHandleid(int handleid) {
this.handleid = handleid;
}
/**
* Return the serialno.
*/
public String getEntername() {
return (this.entername);
}
/**
* Set the serialno.
*
* @param serialno The new serialno
*/
public void setEntername(String entername) {
this.entername = entername;
}
//2003-05-26 add by liqf
/**
* Return the serialno.
*/
public String getUsername() {
return (this.username);
}
/**
* Set the serialno.
*
* @param serialno The new serialno
*/
public void setUsername(String username) {
this.username = username;
}
//2003-05-26 add by liqf
/**
* Return the serialno.
*/
public Date getHandletime() {
return (this.handletime);
}
/**
* Set the serialno.
*
* @param serialno The new serialno
*/
public void setHandletime(Date handletime) {
this.handletime = handletime;
}
/**
* Set the reappraisedates.
*
* @param reappraisedates The new reappraisedates
*/
public void setHandletime(String handletime) {
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
try {
this.handletime = sdf.parse(handletime);
}catch(Exception e) {
}
}
//2003-05-26 add by liqf
/**
* Return the serialno.
*/
public String getHandlecontent() {
return (this.handlecontent);
}
/**
* Set the serialno.
*
* @param serialno The new serialno
*/
public void setHandlecontent(String handlecontent) {
this.handlecontent = handlecontent;
}
//2003-05-22 add by liqf
/**
* Return the serialno.
*/
public String getStatus() {
return (this.status);
}
/**
* Set the serialno.
*
* @param serialno The new serialno
*/
public void setStatus(String status) {
this.status = status;
}
//2003-05-22 add by liqf
/**
* Return the serialno.
*/
public String getVolumnno() {
return (this.volumnno);
}
/**
* Set the serialno.
*
* @param serialno The new serialno
*/
public void setVolumnno(String volumnno) {
this.volumnno = volumnno;
}
/**
* Return the serialno.
*/
public int getSerialno() {
return (this.serialno);
}
/**
* Set the serialno.
*
* @param serialno The new serialno
*/
public void setSerialno(int serialno) {
this.serialno = serialno;
}
//2003-05-18 add by liqf
//设置文件保存相对路径
/**
* Return the attachmentpath.
*/
public String getAttachmentpath() {
return (this.attachmentpath);
}
/**
* Set the attachmentpath.
*
* @param attachmentpath The new attachmentpath
*/
public void setAttachmentpath(String attachmentpath) {
this.attachmentpath = attachmentpath;
}
/**
* Return the archivetype.
*/
public String getArchivetype() {
return (this.archivetype);
}
/**
* Set the archivetype.
*
* @param archivetype The new archivetype
*/
public void setArchivetype(String archivetype) {
this.archivetype = (archivetype==null)?"":archivetype;
}
/**
* Return the code.
*/
public String getCode() {
return (this.code);
}
/**
* Set the code.
*
* @param code The new code
*/
public void setCode(String code) {
this.code = (code==null)?"":code;
}
/**
* Return the category.
*/
public String getCategory() {
return (this.category);
}
/**
* Set the category.
*
* @param category The new category
*/
public void setCategory(String category) {
this.category = (category==null)?"":category;
}
/**
* Return the filetype.
*/
public String getFiletype() {
return (this.filetype);
}
/**
* Set the filetype.
*
* @param filetype The new filetype
*/
public void setFiletype(String filetype) {
this.filetype = (filetype==null)?"":filetype;
}
/**
* Return the title.
*/
public String getTitle() {
return (this.title);
}
/**
* Set the title.
*
* @param title The new title
*/
public void setTitle(String title) {
this.title = (title==null)?"":title;
}
/**
* Return the titleremark.
*/
public String getTitleremark() {
return (this.titleremark);
}
/**
* Set the titleremark.
*
* @param titleremark The new titleremark
*/
public void setTitleremark(String titleremark) {
this.titleremark = (titleremark==null)?"":titleremark;
}
/**
* Return the fileno.
*/
public String getFileno() {
return (this.fileno);
}
/**
* Set the fileno.
*
* @param fileno The new fileno
*/
public void setFileno(String fileno) {
this.fileno = (fileno==null)?"":fileno;
}
/**
* Return the literaturetype.
*/
public String getLiteraturetype() {
return (this.literaturetype);
}
/**
* Set the literaturetype.
*
* @param literaturetype The new literaturetype
*/
public void setLiteraturetype(String literaturetype) {
this.literaturetype = (literaturetype==null)?"":literaturetype;
}
/**
* Return the filedate.
*/
public Date getFiledate() {
return (this.filedate);
}
/**
* Set the filedate.
*
* @param filedate The new filedate
*/
public void setFiledate(Date filedate) {
this.filedate = filedate;
}
/**
* Set the filedate.
*
* @param filedate The new filedate
*/
public void setFiledate(String filedate) {
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(Constants.DATEFORMAT);
try {
this.filedate = sdf.parse(filedate);
}catch(Exception e) {
}
}
/**
* Return the pagenumber.
*/
public int getPagenumber() {
return (this.pagenumber);
}
/**
* Set the pagenumber.
*
* @param pagenumber The new pagenumber
*/
public void setPagenumber(int pagenumber) {
this.pagenumber = pagenumber;
}
/**
* Return the duty.
*/
public String getDuty() {
return (this.duty);
}
/**
* Set the duty.
*
* @param duty The new duty
*/
public void setDuty(String duty) {
this.duty = (duty==null)?"":duty;
}
/**
* Return the otherduty.
*/
public String getOtherduty() {
return (this.otherduty);
}
/**
* Set the otherduty.
*
* @param otherduty The new otherduty
*/
public void setOtherduty(String otherduty) {
this.otherduty = (otherduty==null)?"":otherduty;
}
/**
* Return the electronicfilename.
*/
public String getElectronicfilename() {
return (this.electronicfilename);
}
/**
* Set the electronicfilename.
*
* @param electronicfilename The new electronicfilename
*/
public void setElectronicfilename(String electronicfilename) {
this.electronicfilename = (electronicfilename==null)?"":electronicfilename;
}
/**
* Return the attachmenttitle.
*/
public String getAttachmenttitle() {
return (this.attachmenttitle);
}
/**
* Set the attachmenttitle.
*
* @param attachmenttitle The new attachmenttitle
*/
public void setAttachmenttitle(String attachmenttitle) {
this.attachmenttitle = (attachmenttitle==null)?"":attachmenttitle;
}
/**
* Return the keyword.
*/
public String getKeyword() {
return (this.keyword);
}
/**
* Set the keyword.
*
* @param keyword The new keyword
*/
public void setKeyword(String keyword) {
this.keyword = (keyword==null)?"":keyword;
}
/**
* Return the memo.
*/
public String getMemo() {
return (this.memo);
}
/**
* Set the memo.
*
* @param memo The new memo
*/
public void setMemo(String memo) {
this.memo = (memo==null)?"":memo;
}
/**
* Return the annotation.
*/
public String getAnnotation() {
return (this.annotation);
}
/**
* Set the annotation.
*
* @param annotation The new annotation
*/
public void setAnnotation(String annotation) {
this.annotation = (annotation==null)?"":annotation;
}
/**
* Return the abstractmsg.
*/
public String getAbstractmsg() {
return (this.abstractmsg);
}
/**
* Set the Abstract.
*
* @param Abstract The new Abstract
*/
public void setAbstractmsg(String abstractmsg) {
this.abstractmsg = (abstractmsg==null)?"":abstractmsg;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -