- Add Docker Compose configurations for dev, prod, and standalone environments - Add database initialization scripts (init-db.sh, init-db-docker.sh) - Add enhanced start-docker-linux.sh with DB init support - Add comprehensive database initialization guide - Support for automatic dbexport.pgsql import on first run - Include safety checks for production environment
119 lines
4.2 KiB
Plaintext
119 lines
4.2 KiB
Plaintext
<%@ page import="com.pms.common.utils.*"%>
|
|
<%@ page import="java.util.*" %>
|
|
|
|
<%@ page isThreadSafe = "true" %>
|
|
<%@ page buffer="256kb" %>
|
|
<%@ page autoFlush = "true" %>
|
|
<%@ page contentType="application/vnd.ms-excel;charset=UTF-8" %>
|
|
|
|
<%
|
|
java.text.SimpleDateFormat frm= new java.text.SimpleDateFormat ("yyyy_MM_dd_HH_mm");
|
|
Calendar cal = Calendar.getInstance();
|
|
String todayKor = frm.format(cal.getTime());
|
|
|
|
String excelName = "BOM_EXCEL_DOWNLOAD";
|
|
String encodeName = excelName+todayKor+".xls";
|
|
String fileName = java.net.URLEncoder.encode(encodeName,"UTF-8");
|
|
|
|
response.setHeader("Content-Disposition", "attachment;filename="+fileName+"");
|
|
response.setHeader("Content-Description", "JSP Generated Data");
|
|
response.setContentType("application/vnd.ms-excel");
|
|
|
|
ArrayList TREE_LIST = new ArrayList();
|
|
TREE_LIST = (ArrayList)request.getAttribute("partList");
|
|
%>
|
|
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
|
|
<head>
|
|
<meta name=ProgId content=Excel.Sheet>
|
|
<meta name=Generator content="Microsoft Excel 11">
|
|
<style type="text/css">
|
|
.plm_menu_name {width:100%; background: #e7eaee; border-bottom: 1px solid #d4d4d4;}
|
|
.plm_menu_name h2 {width:97.5%; margin: 0 auto; height:35px; color:000; font-size: 13px; line-height: 35px;}
|
|
.plm_menu_name h2 span {height: 35px; padding-left: 23px; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<form name="carOptionListForm" method="POST">
|
|
<h2>구매 BOM Excel Download</h2><br>
|
|
<table border="1">
|
|
<tr id="thead">
|
|
<td>Level</td>
|
|
<td>품번</td>
|
|
<td>품명</td>
|
|
<td>수량</td>
|
|
<td>사양</td>
|
|
<td>후처리</td>
|
|
<td>MAKER</td>
|
|
<td>PART 구분</td>
|
|
<td>공급업체</td>
|
|
<td>단가</td>
|
|
<td>레이져업체</td>
|
|
<td>단가</td>
|
|
<td>용접업체</td>
|
|
<td>단가</td>
|
|
<td>가공업체</td>
|
|
<td>단가</td>
|
|
<td>후처리</td>
|
|
<td>단가</td>
|
|
<td>단가합</td>
|
|
<td>REMARK</td>
|
|
</tr>
|
|
<%
|
|
for(int i=0; i< TREE_LIST.size(); i++){
|
|
Map treeMap = new HashMap();
|
|
treeMap = (Map)TREE_LIST.get(i);
|
|
System.out.println("treeMap:"+treeMap);
|
|
|
|
String level = CommonUtils.checkNull(treeMap.get("LEV"));
|
|
String partNo = CommonUtils.checkNull(treeMap.get("PART_NO"));
|
|
String partName = CommonUtils.checkNull(treeMap.get("PART_NAME"));
|
|
String qty = CommonUtils.checkNull(treeMap.get("QTY"));
|
|
String spec = CommonUtils.checkNull(treeMap.get("SPEC"));
|
|
String postProcessing = CommonUtils.checkNull(treeMap.get("POST_PROCESSING"));
|
|
String maker = CommonUtils.checkNull(treeMap.get("MAKER"));
|
|
String partType = CommonUtils.checkNull(treeMap.get("PART_TYPE_NAME"));
|
|
|
|
String supplyName = CommonUtils.checkNull(treeMap.get("SUPPLY_NAME"));
|
|
String supplyPrice = CommonUtils.checkNull(treeMap.get("PRICE"));
|
|
|
|
String supply1Name = CommonUtils.checkNull(treeMap.get("SUPPLY_NAME1"));
|
|
String supply1Price = CommonUtils.checkNull(treeMap.get("PRICE1"));
|
|
String supply2Name = CommonUtils.checkNull(treeMap.get("SUPPLY_NAME2"));
|
|
String supply2Price = CommonUtils.checkNull(treeMap.get("PRICE2"));
|
|
String supply3Name = CommonUtils.checkNull(treeMap.get("SUPPLY_NAME3"));
|
|
String supply3Price = CommonUtils.checkNull(treeMap.get("PRICE3"));
|
|
String supply4Name = CommonUtils.checkNull(treeMap.get("SUPPLY_NAME4"));
|
|
String supply4Price = CommonUtils.checkNull(treeMap.get("PRICE4"));
|
|
|
|
String PRICE_SUM = CommonUtils.checkNull(treeMap.get("PRICE_SUM"));
|
|
String remark = CommonUtils.checkNull(treeMap.get("REMARK"));
|
|
%>
|
|
<tr>
|
|
<td><%=level %></td>
|
|
<td><%=partNo %></td>
|
|
<td><%=partName %></td>
|
|
<td><%=qty %></td>
|
|
<td><%=spec %></td>
|
|
<td><%=postProcessing%></td>
|
|
<td><%=maker %></td>
|
|
<td><%=partType %></td>
|
|
<td><%=supplyName %></td>
|
|
<td><%=supplyPrice%></td>
|
|
<td><%=supply1Name %></td>
|
|
<td><%=supply1Price%></td>
|
|
<td><%=supply2Name %></td>
|
|
<td><%=supply2Price%></td>
|
|
<td><%=supply3Name %></td>
|
|
<td><%=supply3Price%></td>
|
|
<td><%=supply4Name %></td>
|
|
<td><%=supply4Price%></td>
|
|
<td><%=PRICE_SUM%></td>
|
|
<td><%=remark%></td>
|
|
</tr>
|
|
<%
|
|
}
|
|
%>
|
|
</table>
|
|
</form>
|
|
</body>
|
|
</html> |