📄 dateutil.java
字号:
package com.leeman.wkexs.common;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import com.leeman.common.util.EjbGetter;
import com.leeman.common.util.Formatter;
import com.leeman.common.web.ui.ScreenOption;
public class DateUtil{
public static ArrayList getMonthList() throws Exception
{
return getMonthList(false);
}
public static ArrayList getMonthListWithBlank() throws Exception
{
return getMonthList(true);
}
public static ArrayList getMonthList(boolean withblank) throws Exception
{
ArrayList resultList = new ArrayList();
if(withblank)
{
resultList.add(new ScreenOption("",""));
}
for(int i=1; i<=12; i++)
{
resultList.add(new ScreenOption(Formatter.toFormatNumeric(i,Formatter.INT_FORMAT),Formatter.toFormatNumeric(i,Formatter.INT_FORMAT)));
}
return resultList;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -