【Java开源代码栏目提醒】:网学会员为广大网友收集整理了,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 key
word = 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:s