12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <%
- if((params.get("TEMPLATE_CD").equals("6"))){
- if(chgItemList.size()>0){
- %>
- <textarea id="chgItemList" 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="50">
- <col width="50">
- <col width="50">
- <col width="50">
- <col width="100">
- <col width="100">
- <col width="50">
- <col width="100">
- <col width="100">
- <col width="50">
- <col width="100">
- </colgroup>
- <tr>
- <td rowspan="2" align="center" style="border-bottom:1px solid black; padding:2px 0px 5px 0px">품명</td>
- <td rowspan="2" align="center" style="border-bottom:1px solid black; padding:2px 0px 5px 0px">규격</td>
- <td rowspan="2" align="center" style="border-bottom:1px solid black; padding:2px 0px 5px 0px">단위</td>
- <td colspan="3" align="center" style="border-bottom:1px solid black; padding:2px 0px 5px 0px">변경전</td>
- <td colspan="3" align="center" style="border-bottom:1px solid black; padding:2px 0px 5px 0px">변경후</td>
- <td colspan="2" align="center" style="border-bottom:1px solid black; padding:2px 0px 5px 0px">증감금액</td>
- </tr>
- <tr>
- <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>
- <td align="center" style="border-bottom:1px solid black; padding:2px 0px 5px 0px">금액(<%=ContInfo.get("CURR_STD_NM")%>)</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>
- <td align="center" style="border-bottom:1px solid black; padding:2px 0px 5px 0px">금액(<%=ContInfo.get("CURR_STD_NM")%>)</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>
- </tr>
- <%
- double sum_qty=0;
- double sum_amt=0;
- double sum_con_qty=0;
- double sum_con_amt=0;
- for(int i=0;i<chgItemList.size();i++){
- sum_qty = sum_qty + chgItemList.getRow(i).getDouble("ITEM_QTY");
- sum_amt = sum_amt + chgItemList.getRow(i).getDouble("ITEM_AMT");
- sum_con_qty = sum_con_qty + chgItemList.getRow(i).getDouble("CONT_QTY");
- sum_con_amt = sum_con_amt + chgItemList.getRow(i).getDouble("CONT_AMT");
- %>
- <tr>
- <td style="padding:2px 0px 2px 0px"> <%=chgItemList.getRow(i).get("ITEM_NAME")%></td>
- <td align="center" style="padding:2px 0px 2px 0px"> <%=chgItemList.getRow(i).get("ITEM_SPEC")%></td>
- <td align="center" style="padding:2px 0px 2px 0px"> <%=chgItemList.getRow(i).get("ITEM_UNIT_NM")%></td>
- <td align="right" style="padding:2px 0px 2px 0px"><%=Formatter2.currency(chgItemList.getRow(i).getDouble("ITEM_QTY"),2)%> </td>
- <td align="right" style="padding:2px 0px 2px 0px"><%=Formatter2.currency(chgItemList.getRow(i).getDouble("ITEM_PRICE"), ContInfo.getInt("SOSUNUM"))%> </td>
- <td align="right" style="padding:2px 0px 2px 0px"><%=Formatter2.currency(chgItemList.getRow(i).getDouble("ITEM_AMT"), ContInfo.getInt("SOSUNUM"))%> </td>
- <td align="right" style="padding:2px 0px 2px 0px"><%=Formatter2.currency(chgItemList.getRow(i).getDouble("CONT_QTY"),2)%> </td>
- <td align="right" style="padding:2px 0px 2px 0px"><%=Formatter2.currency(chgItemList.getRow(i).getDouble("CONT_PRICE"), ContInfo.getInt("SOSUNUM"))%> </td>
- <td align="right" style="padding:2px 0px 2px 0px"><%=Formatter2.currency(chgItemList.getRow(i).getDouble("CONT_AMT"), ContInfo.getInt("SOSUNUM"))%> </td>
- <td align="right" style="padding:2px 0px 2px 0px"><%=Formatter2.currency((chgItemList.getRow(i).getDouble("CONT_QTY") - chgItemList.getRow(i).getDouble("ITEM_QTY")),2)%> </td>
- <td align="right" style="padding:2px 0px 2px 0px"><%=Formatter2.currency((chgItemList.getRow(i).getDouble("CONT_AMT") - chgItemList.getRow(i).getDouble("ITEM_AMT")), ContInfo.getInt("SOSUNUM"))%> </td>
- </tr>
- <%
- }
- %>
- <tr>
- <td colspan="3" 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>
- <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_con_amt, ContInfo.getInt("SOSUNUM"))%> </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_con_amt - sum_amt), ContInfo.getInt("SOSUNUM"))%> </td>
- </tr>
- </table>
- </textarea>
- <script>
- if ( document.getElementById("div_chg_con_item") != null ) {
- <%
- //아이템 팝업 창에서 할때는 오프너로 연다.
- if(params.get("pop_win_id").equals("ItemPop")){
- %>
- parent.document.getElementById("div_chg_con_item").innerHTML=document.getElementById("chgItemList").value;
- <%
- }else{
- %>
- document.getElementById("div_chg_con_item").innerHTML=document.getElementById("chgItemList").value;
- <%
- }
- %>
- }
- </script>
- <%
- }
- }
- %>
|