미사용 코드 삭제

main
이범준 11 months ago
parent ff5bd992bd
commit daa5e28ac3

@ -12,11 +12,9 @@ import java.text.SimpleDateFormat;
import java.time.DayOfWeek;
import java.time.LocalDate;
import java.time.format.TextStyle;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
@ -33,7 +31,6 @@ import org.apache.poi.ss.usermodel.Font;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import cokr.xit.base.file.xls.XLSWriter;
import cokr.xit.base.file.xls.XLSWriter.Styler;
import cokr.xit.fims.sndb.service.bean.SndngBean;
import cokr.xit.foundation.data.DataObject;
@ -429,54 +426,6 @@ public class CmmnUtil {
return band6;
}
/** 2 .<br/>
* 1 , 2 .
* @param list1, list2
* @return list3
*/
public static List<?> mergeListByIndex(List<?> list1, List<?> list2) {
List list3 = new ArrayList<>();
for(int i=0; i < list1.size(); i++) {
list3.add(list1.get(i));
list3.add(list2.get(i));
}
return list3;
}
/** .<br/>
* @param widths , xlsxWriter
* @return
*/
public static List<Styler> makeHeadersByDiffrentWidths(List<Integer> widths, XLSWriter xlsxWriter){
List<Styler> result = new ArrayList<Styler>();
Map<Integer, Styler> headerWidthMap = new HashMap<>();
for(int i=0; i < widths.size(); i++) {
if(headerWidthMap.get(widths.get(i)) == null) {
headerWidthMap.put(
widths.get(i),
new XLSWriter.Styler()
.width(widths.get(i))
.foregroundColor(HSSFColor.HSSFColorPredefined.GREY_25_PERCENT.getIndex())
.configure(styler -> {
Font font = xlsxWriter.workbook().createFont();
font.setColor(HSSFColor.HSSFColorPredefined.BLACK.getIndex());
styler.font(font);
styler.alignment(HorizontalAlignment.CENTER);
})
);
}
result.add(headerWidthMap.get(widths.get(i)));
}
return result;
}
public static XLSWriter.Styler headerStyle(XLSWriter xlsx) {
return new XLSWriter.Styler()
.foregroundColor(HSSFColor.HSSFColorPredefined.GREY_25_PERCENT.getIndex())

Loading…
Cancel
Save