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

📄 logbean.java

📁 一套完整的档案管理系统
💻 JAVA
字号:
//package com.stsc.archive.xml;
package com.stsc.archive.backup;

import java.util.Date;
import java.text.SimpleDateFormat;

/**
日志信息
*/

public class LogBean
{
	private String username = "";	//用户名
	private String action = "";		//操作:备份恢复文件表案卷表
	private String content = "";	//操作内容:案卷号 流水号
	private String curdate = "";	//操作日期
	private String curtime = "";	//操作时间

	private Date curdatetime = new Date();
	SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd");
	SimpleDateFormat sdf2 = new SimpleDateFormat("HH:mm:ss");
	
	public LogBean()
	{
		this.curdate =  sdf1.format(curdatetime);	//如果不设置,则为当前日期时间
		this.curtime = sdf2.format(curdatetime);
	}
	
	
	public String getUsername()
	{
		return this.username;
	}
	public void setUsername(String username)
	{
		this.username = (username == null)?"":username;
	}

	public String getAction()
	{
		return this.action;
	}
	public void setAction(String action)
	{
		this.action = (action == null)?"":action;
	}

	public String getContent()
	{
		return this.content;
	}
	public void setContent(String content)
	{
		this.content = (content == null)?"":content;
	}

	public String getDate()
	{
		return this.curdate;
	}
	public void setDate(String olddate)
	{
		this.curdate = (olddate == null)?"":olddate;
	}

	public String getTime()
	{
		return this.curtime;
	}
	public void setTmie(String oldtime)
	{
		this.curtime = (oldtime == null)?"":oldtime;
	}

/**	public Date getCurdate() 
	{
		return (this.curdate);
    }
	public void setCurdate()
	{
		curdate = new Date();
//		long dateInMilliSeconds = System.currentTimeMillis();
//		curdate = new Date(dateInMilliSeconds);
	}
    public void setCurdate(Date curdate) 
	{
        this.curdate = curdate;
    }
    public void setCurdate(String curdate)
	{
        java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(Constants.DATEFORMAT);
        try 
		{
            this.curdate =sdf.parse(curdate);
        }catch(Exception e) 
		{
        }
    }*/
}

⌨️ 快捷键说明

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