📄 agentinfo.java
字号:
package com.je.ims.controller.c87;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
public class AgentInfo {
private String agentid;
private String agentname;
private String agentunit;
private String start;
private String end;
private String current;
public AgentInfo()
{
Date date=new Date();
DateFormat format=new SimpleDateFormat("yyyy-MM-dd");
String temp1=format.format(date);
String temp=temp1.substring(0,4);
int temp2=Integer.parseInt(temp);
temp2=temp2-1911;
if(temp2<100)
temp="0"+temp2;
temp=temp+temp1.substring(4);
this.current=temp;
}
public String getCurrent()
{
return this.current;
}
public void setAgentid(String agentid){
this.agentid=agentid;
}
public String getAgentid(){
return this.agentid;
}
public void setAgentname(String agentname){
this.agentname=agentname;
}
public String getAgentname()
{
return this.agentname;
}
public void setAgentunit(String agentunit){
this.agentunit=agentunit;
}
public String getAgentunit()
{
return this.agentunit;
}
public void setStart(Date start)
{
DateFormat d=new SimpleDateFormat("yyyy-MM-dd");
this.start=d.format(start);
String temp=this.start.substring(0,4);
int temp1=Integer.parseInt(temp);
temp1=temp1-1911;
if(temp1<100)
temp="0"+temp1;
temp=temp+this.start.substring(4);
this.start=temp;
}
public String getStart()
{
return this.start;
}
public void setEnd(Date end)
{
DateFormat d=new SimpleDateFormat("yyyy-MM-dd");
this.end=d.format(end);
String temp=this.end.substring(0,4);
int temp1=Integer.parseInt(temp);
temp1=temp1-1911;
if(temp1<100)
temp="0"+temp1;
temp=temp+this.end.substring(4);
this.end=temp;
}
public String getEnd()
{
return this.end;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -