12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <%
- if(!((params.get("TEMPLATE_CD").equals("6")) || (params.get("TEMPLATE_CD").equals("9")) || (params.get("TEMPLATE_CD").equals("10")))){ //자유서식일경우 상품 목록 없음
- if(itemList.size()>0){
- %>
- <textarea id="testItemList" style="display:none;">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-top:2px solid black; padding:5px 0px 5px 0px">
- <colgroup><col width="30"><col width="*"><col width="*"><col width="50"><col width="100"><%if(!ContInfo.get("DIV_PO_YN").equals("Y")){%><col width="100"><col width="100"><%} %></colgroup>
- <tr>
- <td align="center" style="border-bottom:1px solid black; padding:2px 0px 5px 0px">NO</td>
- <td align="center" style="border-bottom:1px solid black; padding:2px 0px 5px 0px">품명</td>
- <td align="center" style="border-bottom:1px solid black; padding:2px 0px 5px 0px">규격</td>
- <td align="center" style="border-bottom:1px solid black; padding:2px 0px 5px 0px">단위</td>
- <td align="center" style="border-bottom:1px solid black; padding:2px 0px 5px 0px">수량</td>
- <td align="center" style="border-bottom:1px solid black; padding:2px 0px 5px 0px">단가(<%=ContInfo.get("CURR_STD_NM")%>)</td>
- <%if(!ContInfo.get("DIV_PO_YN").equals("Y")){%>
- <td align="center" style="border-bottom:1px solid black; padding:2px 0px 5px 0px">금액(<%=ContInfo.get("CURR_STD_NM")%>)</td>
- <%} %>
- </tr>
- <%
- double sum_qty=0;
- double sum_amt=0;
- for(int i=0;i<itemList.size();i++){
- sum_qty = sum_qty + itemList.getRow(i).getDouble("ITEM_QTY");
- sum_amt = sum_amt + itemList.getRow(i).getDouble("SUM_AMT");
-
- System.out.println("ITEM_QTY : " + itemList.getRow(i).getDouble("ITEM_QTY"));
- System.out.println("ITEM_PRICE : " + itemList.getRow(i).getDouble("ITEM_PRICE"));
- System.out.println("SUM_AMT : " + itemList.getRow(i).getDouble("SUM_AMT"));
-
- System.out.println("SUM_AMT : " + itemList.getRow(i).get("SUM_AMT"));
- System.out.println("SUM_AMT2 : " + Float.parseFloat(itemList.getRow(i).get("SUM_AMT")));
-
- System.out.println("item_price : "+ Float.parseFloat(itemList.getRow(i).get("ITEM_PRICE")));
- System.out.println("item_price2 : "+ Formatter2.currency(Float.parseFloat(itemList.getRow(i).get("ITEM_PRICE")), ContInfo.getInt("SOSUNUM")));
- System.out.println("item_price3 : "+ Formatter2.currency(itemList.getRow(i).getDouble("ITEM_PRICE"), ContInfo.getInt("SOSUNUM")));
- %>
- <tr>
- <td align="center" style="padding:2px 0px 2px 0px"><%=i+1%>.</td>
- <td style="padding:2px 0px 2px 0px"> <%=itemList.getRow(i).get("ITEM_NAME")%></td>
- <td align="center" style="padding:2px 0px 2px 0px"> <%=itemList.getRow(i).get("ITEM_SPEC")%></td>
- <td align="center" style="padding:2px 0px 2px 0px"> <%=itemList.getRow(i).get("ITEM_UNIT_NM")%></td>
- <td align="right" style="padding:2px 0px 2px 0px"><%= ContInfo.get("DIV_PO_YN").equals("Y") ? "1":Formatter2.currency(itemList.getRow(i).getDouble("ITEM_QTY"),2)%> </td>
- <td align="right" style="padding:2px 0px 2px 0px"><%=Formatter2.currency(itemList.getRow(i).getDouble("ITEM_PRICE"), ContInfo.getInt("SOSUNUM"))%> </td>
- <%if(!ContInfo.get("DIV_PO_YN").equals("Y")){%>
- <td align="right" style="padding:2px 0px 2px 0px"><%=Formatter2.currency(itemList.getRow(i).getDouble("SUM_AMT"), ContInfo.getInt("SOSUNUM"))%> </td>
- <%} %>
- </tr>
- <%
- }
- %>
- <%if(!ContInfo.get("DIV_PO_YN").equals("Y")){%>
- <tr>
- <td colspan="4" align="center" style="border-top:1px solid black;border-bottom:1px solid black; padding:2px 0px 2px 0px"><b>합계</b></td>
- <td align="right" style="border-top:1px solid black;border-bottom:1px solid black; padding:2px 0px 2px 0px"><%=Formatter2.currency(sum_qty, 2)%> </td>
- <td colspan="2" align="right" style="border-top:1px solid black;border-bottom:1px solid black; padding:2px 0px 2px 0px"><%=Formatter2.currency(sum_amt, ContInfo.getInt("SOSUNUM"))%> </td>
- </tr>
- <%}else{%>
- <tr>
- <td colspan="6" align="center" style="border-top:1px solid black;border-bottom:1px solid black; padding:2px 0px 2px 0px"></td>
- </tr>
- <%} %>
- </table>
- </textarea>
- <script>
- <%
- //아이템 팝업 창에서 할때는 오프너로 연다.
- if(params.get("pop_win_id").equals("ItemPop")){
- %>
- parent.document.getElementById("div_con_item").innerHTML=document.getElementById("testItemList").value;
- parent.document.getElementById("ITEM_AMT_SUM").value="<%=sum_amt%>";
- <%
- }else{
- %>
- document.getElementById("div_con_item").innerHTML=document.getElementById("testItemList").value;
- <%
- }
- %>
- </script>
- <%
- }
- }
- %>
|