⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 archiveform.java

📁 一套完整的档案管理系统
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
    /**
     * Set the copys.
     *
     * @param copys The new copys
     */
    public void setCopys(String copys) {
        this.copys = copys;
    }

    /**
     * Return the lendnum.
     */
    public String getLendnum() {
	return (this.lendnum);
    }

    /**
     * Set the lendnum.
     *
     * @param lendnum The new lendnum
     */
    public void setLendnum(String lendnum) {
        this.lendnum = lendnum;
    }

    /**
     * Return the securityclass.
     */
    public String getSecurityclass() {
		return (this.securityclass);
    }

    /**
     * Set the securityclass.
     *
     * @param securityclass The new securityclass
     */
    public void setSecurityclass(String securityclass) {
        this.securityclass = securityclass;
    }

    /**
     * Return the securityterm.
     */
    public String getSecurityterm() {
		return (this.securityterm);
    }

    /**
     * Set the securityterm.
     *
     * @param securityterm The new securityterm
     */
    public void setSecurityterm(String securityterm) {
        this.securityterm = securityterm;
    }

    /**
     * Return the decryptiondate.
     */
    public String getDecryptiondate() {
		return (this.decryptiondate);
    }

    /**
     * Set the decryptiondate.
     *
     * @param decryptiondate The new decryptiondate
     */
    public void setDecryptiondate(String decryptiondate) {
        this.decryptiondate = decryptiondate;
    }

    /**
     * Set the decryptiondate.
     *
     * @param decryptiondate The new decryptiondate
     */
    public void setDecryptiondate(Date decryptiondate) {
        java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(Constants.DATEFORMAT);
		this.decryptiondate = (decryptiondate==null)?null:sdf.format(decryptiondate);
    }

    /**
     * Return the retentionperiod.
     */
    public String getRetentionperiod() {
		return (this.retentionperiod);
    }

    /**
     * Set the retentionperiod.
     *
     * @param retentionperiod The new retentionperiod
     */
    public void setRetentionperiod(String retentionperiod) {
        this.retentionperiod = retentionperiod;
    }

    /**
     * Return the archivedate.
     */
    public String getArchivedate() {
		return (this.archivedate);
    }

    /**
     * Set the archivedate.
     *
     * @param archivedate The new archivedate
     */
    public void setArchivedate(String archivedate) {
        this.archivedate = archivedate;
    }

    /**
     * Set the archivedate.
     *
     * @param archivedate The new archivedate
     */
    public void setArchivedate(Date archivedate) {
        java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(Constants.DATEFORMAT);
		this.archivedate = (archivedate==null)?null:sdf.format(archivedate);
    }

    /**
     * Return the destroydate.
     */
    public String getDestroydate() {
	return (this.destroydate);
    }

    /**
     * Set the destroydate.
     *
     * @param destroydate The new destroydate
     */
    public void setDestroydate(String destroydate) {
        this.destroydate = destroydate;
    }

    /**
     * Set the destroydate.
     *
     * @param destroydate The new destroydate
     */
    public void setDestroydate(Date destroydate) {
        java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(Constants.DATEFORMAT);
		this.destroydate = (destroydate==null)?null:sdf.format(destroydate);
    }


    /**
     * Return the archivalcode.
     */
    public String getArchivalcode() {
		return (this.archivalcode);
    }

    /**
     * Set the archivalcode.
     *
     * @param archivalcode The new archivalcode
     */
    public void setArchivalcode(String archivalcode) {
        this.archivalcode = archivalcode;
    }

	/**
     * Return the archiveno.
     */
    public String getArchiveno() {
		return (this.archiveno);
    }

    /**
     * Set the archiveno.
     *
     * @param archiveno The new archiveno
     */
    public void setArchiveno(String archiveno) {
        this.archiveno = archiveno;
    }

    /**
     * Return the handover.
     */
    public String getHandover() {
		return (this.handover);
    }

    /**
     * Set the handover.
     *
     * @param handover The new handover
     */
    public void setHandover(String handover) {
        this.handover = handover;
    }

    /**
     * Return the suggest.
     */
    public String getSuggest() {
		return (this.suggest);
    }

    /**
     * Set the suggest.
     *
     * @param suggest The new suggest
     */
    public void setSuggest(String suggest) {
        this.suggest = suggest;
    }

    /**
     * Return the recordtransfer.
     */
    public String getRecordtransfer() {
		return (this.recordtransfer);
    }

    /**
     * Set the recordtransfer.
     *
     * @param recordtransfer The new recordtransfer
     */
    public void setRecordtransfer(String recordtransfer) {
        this.recordtransfer = recordtransfer;
    }

    /**
     * Return the filingtrace.
     */
    public String getFilingtrace() {
		return (this.filingtrace);
    }

    /**
     * Set the filingtrace.
     *
     * @param filingtrace The new filingtrace
     */
    public void setFilingtrace(String filingtrace) {
        this.filingtrace = filingtrace;
    }

    /**
     * Return the filingscripts.
     */
    public String getFilingscripts() {
		return (this.filingscripts);
    }

    /**
     * Set the filingscripts.
     *
     * @param filingscripts The new filingscripts
     */
    public void setFilingscripts(String filingscripts) {
        this.filingscripts = filingscripts;
    }

    /**
     * Return the reappraisedates.
     */
    public String getreappraisedates() {
		return (this.reappraisedates);
    }

    /**
     * Set the reappraisedates.
     *
     * @param reappraisedates The new reappraisedates
     */
    public void setReappraisedates(String reappraisedates) {
        this.reappraisedates = reappraisedates;
    }
    /**
     * Set the reappraisedates.
     *
     * @param reappraisedates The new reappraisedates
     */
    public void setReappraisedates(Date reappraisedates) {
        java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(Constants.DATEFORMAT);
		this.reappraisedates = (reappraisedates==null)?null:sdf.format(reappraisedates);
    }

    // --------------------------------------------------------- Public Methods
	//2003-05-16 add by liqf,
	

    /**
     * The file that the user has uploaded
     */
    protected FormFile theFile;

    /**
     * The file path to write to
     */
    protected String filePath;



  
  

    /**
     * Retrieve a representation of the file the user has uploaded
     */
    public FormFile getTheFile() {
        return theFile;
    }

    /**
     * Set a representation of the file the user has uploaded
     */
    public void setTheFile(FormFile theFile) {
        this.theFile = theFile;
    }

   

    /**
     * Set the path to write a file to
     */
    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    /**
     * Get the path to write a file to
     */
    public String getFilePath() {
        return filePath;
    }

   //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;
    }

	
    /**
     * Reset all properties to their default values.
     *
     * @param mapping The mapping used to select this instance
     * @param request The servlet request we are processing
     */
    public void reset(ActionMapping mapping, HttpServletRequest request) {

    this.serialno			= null; 
	this.status			= null;
    this.archivetype		= null;
    this.code				= null;
    this.category			= null;
    this.filetype			= null;
	this.title				= null;
    this.titleremark		= null;
    this.fileno				= null;
	this.literaturetype		= null;
	this.filedate			= null;
    this.pagenumber			= null;
	this.duty				= null;
	this.otherduty			= null;
	this.electronicfilename = null;
	this.attachmenttitle	= null;
	this.keyword			= null;
	this.memo				= null;
	this.annotation			= null;
	this.abstractmsg		= null;
	this.copys				= null;
	this.lendnum			= null;
	this.securityclass		= null;
	this.securityterm		= null;
	this.decryptiondate		= null;
	this.retentionperiod	= null;
	this.archivedate		= null;
	this.destroydate		= null;
    this.archivalcode		= null;
	this.archiveno			= null;
    this.handover			= null;
	this.suggest			= null;
	this.recordtransfer		= null;
	this.filingtrace		= null;
	this.filingscripts		= null;
	this.reappraisedates	= null;
	this.volumnno	= "";

    }


    /**
     * Validate the properties that have been set from this HTTP request,
     * and return an <code>ActionErrors</code> object that encapsulates any
     * validation errors that have been found.  If no errors are found, return
     * <code>null</code> or an <code>ActionErrors</code> object with no
     * recorded error messages.
     *
     * @param mapping The mapping used to select this instance
     * @param request The servlet request we are processing
     */
    public ActionErrors validate(ActionMapping mapping,
                                 HttpServletRequest request) {

        ActionErrors errors = new ActionErrors();
    /*    if ((archiveno == null) || (archiveno.length() < 1))
            errors.add("archiveno", new ActionError("error.archiveno.required"));
        if ((archivetype == null) || (archivetype.length() < 1))
            errors.add("archivetype", new ActionError("error.archivetype.required"));

		try{
			int a = Integer.parseInt(request.getParameter("pagenumber"));
		} catch(NumberFormatException pe){
			errors.add("pagenumber", new ActionError("error.pagenumber.formaterror"));
		}

		try{
			int a = Integer.parseInt(request.getParameter("copys"));
		} catch(NumberFormatException pe){
			errors.add("copys", new ActionError("error.copys.formaterror"));
		}

		try{
			int a = Integer.parseInt(request.getParameter("lendnum"));
		} catch(NumberFormatException pe){
			errors.add("lendnum", new ActionError("error.lendnum.formaterror"));
		}

		try{
			int a = Integer.parseInt(request.getParameter("securityterm"));
		} catch(NumberFormatException pe){
			errors.add("securityterm", new ActionError("error.securityterm.formaterror"));
		}

		try{
			int a = Integer.parseInt(request.getParameter("retentionperiod"));
		} catch(NumberFormatException pe){
			errors.add("retentionperiod", new ActionError("error.retentionperiod.formaterror"));
		}

        java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(Constants.DATEFORMAT);
        try {
            java.util.Date adate = sdf.parse(request.getParameter("filedate"));
        } catch(ParseException pe) {
            errors.add("filedate", new ActionError("error.filedate.formaterror"));
        }
		
        try {
            java.util.Date adate = sdf.parse(request.getParameter("decryptiondate"));
        } catch(ParseException pe) {
            errors.add("decryptiondate", new ActionError("error.decryptiondate.formaterror"));
        }
  
        try {
            java.util.Date adate = sdf.parse(request.getParameter("archivedate"));
        } catch(ParseException pe) {
            errors.add("archivedate", new ActionError("error.archivedate.formaterror"));
        }
  
        try {
            java.util.Date adate = sdf.parse(request.getParameter("destroydate"));
        } catch(ParseException pe) {
            errors.add("destroydate", new ActionError("error.destroydate.formaterror"));
        }
        try {
            java.util.Date adate = sdf.parse(request.getParameter("reappraisedates"));
        } catch(ParseException pe) {
            errors.add("reappraisedates", new ActionError("error.reappraisedates.formaterror"));
        }*/
		// errors = null;
        //has the maximum length been exceeded?
        //Boolean maxLengthExceeded = (Boolean)
         //       request.getAttribute(MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED);
        //if ((maxLengthExceeded != null) && (maxLengthExceeded.booleanValue()))
        //{
        //    errors = new ActionErrors();
        //    errors.add(ERROR_PROPERTY_MAX_LENGTH_EXCEEDED, new ActionError("maxLengthExceeded"));
        //}
       // return errors;

        return errors;

    }


}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -