123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374 |
- <%@ page contentType="text/html; charset=utf-8" %>
- <%@ page import="com.udapsoft.waf.system.*"%>
- <%@ page import="com.udapsoft.waf.common.ui.*" %>
- <%@ page import="com.udapsoft.waf.common.web.*" %>
- <%@ page import="kr.co.hsnc.common.sql.*"%>
- <%@ page import="kr.co.hsnc.common.util.*"%>
- <%@ page import="kr.co.hsnc.common.sql.util.*"%>
- <%@ page import="com.udapsoft.waf.system.HandlerStorage"%>
- <%@ page import="kr.co.hsnc.common.util.ValueObject"%>
- <%@ page import="kr.co.hsnc.common.message.WAFMessage"%>
- <%@ page import="kr.co.udapsoft.ebid.buyer.common.file.FileManager"%>
- <%@ page import="com.udapsoft.waf.common.util.StringUtils" %>
- <%@ page import="kr.co.udapsoft.common.util.PCMSUtil" %>
- <%@ page import="kr.co.hsnc.common.util.Formatter"%>
- <%@ page import="com.udapsoft.waf.common.util.Formatter2"%>
- <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
- <%
- ctx.init(request, response);
- String link = ctx.getServerDomain();
- HandlerStorage storage = ctx.getHandlerStorage();
- ValueObject params = storage.getParams();
- WAFMessage wafMessage = WAFMessage.getInstance();
-
- ValueObject payVo = storage.getValueObject("payList");
-
- RowSet listRowSet = null;
- listRowSet = storage.getRowSet("listRowSet");
- RowSet purchaseFileRow = null;
- purchaseFileRow = storage.getRowSet("purchaseFileRow");
-
- //지급구분
- String prepay_chk = "checked";
- String mid_chk = "";
- String rmdr_chk = "";
-
- /* if(payVo.get("deposit_cd").equals("1")){
- prepay_chk = "checked";
- }else if(payVo.get("deposit_cd").equals("2")){
- mid_chk = "checked";
- }else if(payVo.get("deposit_cd").equals("3")){
- rmdr_chk = "checked";
- } */
-
- RowSet rowSet = FileManager.getFileList("SUPP_PREPAYMENTS_GIVEUP", payVo.get("PREPAY_ID")); //외주 선급금 - 선급금 포기각서
-
- RowSet rowSet2 = FileManager.getFileList("SUPP_TAX_BILL", payVo.get("PREPAY_ID")); //세금계산서
- RowSet rowSet3 = FileManager.getFileList("INVOICE", payVo.get("PREPAY_ID")); //invoice
-
- RowSet rowSet1 = FileManager.getFileList("SUPP_PREPAYMENTS_BILLING", payVo.get("PREPAY_ID")); //대금청구
-
-
- String success_text = "";
-
- // if(payVo.get("CUR_PAYED_AMT").replaceAll(",", "").equals(payVo.get("ORD_AMT").replaceAll(",", ""))){
- // success_text = "-<font color='red'>완료</font>";
- //success_text = "-<font color='red'>최종</font>";
- // }
-
- //if(payVo.get("REMAINDER_AMT").replaceAll(",", "").equals("0")){
- // success_text = "-<font color='red'>완료</font>";
- //success_text = "-<font color='red'>최종</font>";
- //}
-
- //int intDigit = 0;
- %>
- <br>
- <TABLE width="700" border="0" cellspacing="0" cellpadding="0">
- <tbody>
- <TR>
- <TD align="center">
- <TABLE width="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
- <COLGROUP>
- <COL width="20%">
- <COL width="30%">
- <COL width="20%">
- <COL width="30%">
- </COLGROUP>
- <tr height="23">
- <td class="list_title3" nowrap>현장명</td>
- <td class="list_data" nowrap align="left"><input type="text" class="input" id="DEPT_NAME" style="width:95%;" value='<%=payVo.get("DEPT_NAME") %>(<%=payVo.get("DEPT_CD") %>)'></td>
- <td class="list_title4" nowrap>작성일자</td>
- <td class="list_data" nowrap align="left"> <%=payVo.get("TAX_DY") %></td>
- </tr>
- <tr height="23" align="center">
- <td class="list_title4" nowrap>계약번호</td>
- <td class="list_data" nowrap align="left" colspan="1"> <%=payVo.get("CON_DOC_NO") %></td>
- <td class="list_title3" nowrap>작성자</td>
- <td class="list_data" nowrap align="left"> <%=payVo.get("USER_NAME") %></td>
- </tr>
- <tr height="23" align="center">
- <td class="list_title3" nowrap>계약명</td>
- <td class="list_data" nowrap align="left"><input type="text" class="input" id="BUILD_NAME" style="width:95%;" value="<%=payVo.get("BUILD_NAME") %>"></td>
- <td class="list_title_2" nowrap>통 화</td>
- <td class="list_data" nowrap align="left"> <%= payVo.get("CON_CUR_CD")%></td>
- </tr>
- <tr height="23" align="center">
- <td class="list_title5" nowrap>계약업체명</td>
- <td class="list_data" nowrap align="left" colspan="1"> <%=payVo.get("CORP_KOR") %> </td>
- <td class="list_title4" nowrap>대표이사</td>
- <td class="list_data" nowrap align="left" colspan="1"> <%= StringUtils.cvtHTML3(payVo.get("BOSS_NAME"))%></td>
- </tr>
- <tr height="23" align="center">
- <td class="list_title4" nowrap>지급구분</td>
- <td class="list_data" nowrap align="left"><input type="checkbox" name="prepay" checked>선급금<input type="checkbox" name="mid">중도금( 차)<input type="checkbox" name="mid1">잔금( 차)
- </td>
- <td class="list_title4" nowrap>신청구분</td>
- <td class="list_data" nowrap align="left" colspan="1"> <%=payVo.get("REQ_DIV_CD") %> </td>
- </tr>
- <tr height="23" align="center">
- <td class="list_title5" nowrap>총계약금액</td>
- <td class="list_data" nowrap align="right"><%=payVo.get("CON_AMT") %> (100.0) </td>
- <td class="list_title5" nowrap>계약선급금</td>
- <td class="list_data" nowrap align="right"><%=payVo.get("PREPAY_AMT") %> (<%=payVo.get("PREPAY_AMT_PERCENT") %>%) </td>
- </tr>
- <tr height="23" align="center">
- <td class="list_title" nowrap align="center">계약 공급가 과세</td>
- <td class="list_data" nowrap align="right"><%=payVo.get("CON_SUPPLY_TAMT") %> </td>
- <td class="list_title" nowrap align="center">계약 선급금 과세</td>
- <td class="list_data" nowrap align="right"><%=payVo.get("SUB_PREPAY_SUPPLY_TAMT") %> </td>
- </tr>
- <tr height="23" align="center">
- <td class="list_title" nowrap align="center">계약 공급가 면세</td>
- <td class="list_data" nowrap align="right"> <%=payVo.get("CON_SUPPLY_NAMT") %> </td>
- <td class="list_title" nowrap align="center">계약 선급금 면세</td>
- <td class="list_data" nowrap align="right"><%=payVo.get("SUB_PREPAY_SUPPLY_NAMT") %> </td>
- </tr>
- <tr height="23" align="center">
- <td class="list_title" nowrap align="center">계약 부가세 </td>
- <td class="list_data" nowrap align="right"><%=payVo.get("CON_SURTAX_AMT") %> </td>
- <td class="list_title" nowrap align="center">선급 부가세</td>
- <td class="list_data" nowrap align="right"><%=payVo.get("SUB_PREPAY_SURTAX_AMT") %> </td>
- </tr>
- <tr height="23" align="center">
- <td class="list_title" nowrap align="center">외국환거래 신고대상</td>
- <td class="list_data" nowrap align="left" colspan="3"> <%=payVo.get("FOREIGN_NM")%>
- <%if(!payVo.get("FOREIGN_CHK").equals("A")){%>
- <IMG src="<%=link %>/img/buyer/button/bt_attach_file.gif" id="bt_foreign" alt="외국환거래" align="top" valign="top" onClick="open_foreign('<%=payVo.get("SUB_CONT_ID")%>', '<%=payVo.get("PREPAY_ID") %>', '<%=payVo.get("CON_CORP_ID") %>');" class="button">
- <%} %></td>
- </tr>
- </table>
- <BR/>
- <TABLE width="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
- <COLGROUP>
- <COL width="20%">
- <COL width="30%">
- <COL width="20%">
- <COL width="30%">
- </COLGROUP>
- <tr height="23" align="center">
- <td class="list_title" nowrap align="center">신청 선급금 합계</td>
- <td class="list_data" nowrap align="right"><%=payVo.get("REQ_PREPAY_AMT") %> (<%=payVo.get("REQ_PREPAY_PERCENT") %>%) </td>
- <td class="list_title" nowrap align="center">포기 선급금 합계</td>
- <td class="list_data" nowrap align="right"><%=payVo.get("GIVE_AMT") %> (<%=payVo.get("GIVE_PERCENT") %>%) </td>
- </tr>
- <tr height="23" align="center">
- <td class="list_title" nowrap align="center">신청 선급금 과세</td>
- <td class="list_data" nowrap align="right"><%=payVo.get("REQ_PREPAY_SUPPLY_TAMT") %> </td>
- <td class="list_title" nowrap align="center">포기 선급금 과세</td>
- <td class="list_data" nowrap align="right"><%=payVo.get("GIVE_SUPPLY_TAMT") %> </td>
- </tr>
- <tr height="23" align="center">
- <td class="list_title" nowrap align="center">신청 선급금 면세</td>
- <td class="list_data" nowrap align="right"><%=payVo.get("REQ_PREPAY_SUPPLY_NAMT") %> </td>
- <td class="list_title" nowrap align="center">포기 선급금 면세</td>
- <td class="list_data" nowrap align="right"><%=payVo.get("GIVE_SUPPLY_NAMT") %> </td>
- </tr>
- <tr height="23" align="center">
- <td class="list_title" nowrap align="center">신청 선급금 부가세</td>
- <td class="list_data" nowrap align="right"><%=payVo.get("REQ_PREPAY_SURTAX_AMT") %> </td>
- <td class="list_title" nowrap align="center">포기 선급금 부가세</td>
- <td class="list_data" nowrap align="right"><%=payVo.get("GIVE_SURTAX_AMT") %> </td>
- </tr>
- </TABLE>
- <BR/>
- <TABLE width="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
- <COLGROUP>
- <COL width="20%">
- <COL width="30%">
- <COL width="20%">
- <COL width="30%">
- </COLGROUP>
- <tr height="23" align="center">
- <td class="list_title" nowrap align="center" colspan="4">첨부파일</td>
- </tr>
- <tr height="30" align="center">
- <%
- if(rowSet.size() > 0){
- %>
- <td class="list_title1" nowrap align="center"> 선급금포기각서</td>
- <%
- }else{
- %>
- <td class="list_title1" nowrap align="center"> 선급금포기각서(해당없음)</td>
- <%
- }
- %>
- <td class="list_data" nowrap align="left" colspan="3">
- <table width="100%" height="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
- <tr>
- <td class="list_data" width="470px" align="top" valign="top" nowrap>
- <%
- if(rowSet.size() > 0){
- for(int i = 0; rowSet.size() > i; i++){
- if(rowSet.getRow(i).get("FILE_NAME").length() > 35){
- %>
- <%= rowSet.getRow(i).get("FILE_NAME").substring(0, 35)+"..."%>
- <%= rowSet.getRow(i).get("FILE_EXT")%>
- <%
-
- }else{
- %>
- <%= rowSet.getRow(i).get("FILE_NAME")%>
- <%
- }
- %>
- ( <%=rowSet.getRow(i).get("FILE_SIZE") %> )
- <br>
- <%
- }
- }
- %>
- </td>
- <td class="list_data" nowrap>
- <IMG src="<%=link %>/img/buyer/button/bt_change.gif" id="bt_attach_file" alt="첨부파일 관리" align="top" valign="top" onClick="open_apppend_file('SUPP_PREPAYMENTS_GIVEUP', '<%=payVo.get("PREPAY_ID") %>');" class="button">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <%
- if(rowSet2.size() > 0){
- %>
- <tr height="30" align="center">
- <td class="list_title1" nowrap align="left"> 세금계산서</td>
- <td class="list_data" nowrap align="left" colspan="3">
- <table width="100%" height="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
- <tr>
- <td class="list_data" width="470px" align="top" valign="top" nowrap>
- <%
- if(rowSet2.size() > 0){
- for(int i = 0; rowSet2.size() > i; i++){
- if(rowSet2.getRow(i).get("FILE_NAME").length() > 35){
- %>
- <%= rowSet2.getRow(i).get("FILE_NAME").substring(0, 35)+"..."%>
- <%= rowSet2.getRow(i).get("FILE_EXT")%>
- <%
-
- }else{
- %>
- <%= rowSet2.getRow(i).get("FILE_NAME")%>
- <%
- }
- %>
- ( <%=rowSet2.getRow(i).get("FILE_SIZE") %> )
- <br>
- <%
- }
- }
- %>
- </td>
- <td class="list_data" nowrap>
- <IMG src="<%=link %>/img/buyer/button/bt_change.gif" id="bt_attach_file" alt="첨부파일 관리" align="top" valign="top" onClick="open_apppend_file('SUPP_TAX_BILL', '<%=payVo.get("PREPAY_ID") %>');" class="button">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <%
- }
- %>
- <%
- if(rowSet3.size() > 0){
- %>
- <tr height="30" align="center">
- <td class="list_title1" nowrap align="left"> Invoice</td>
- <td class="list_data" nowrap align="left" colspan="3">
- <table width="100%" height="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
- <tr>
- <td class="list_data" width="470px" align="top" valign="top" nowrap>
- <%
- if(rowSet3.size() > 0){
- for(int i = 0; rowSet3.size() > i; i++){
- if(rowSet3.getRow(i).get("FILE_NAME").length() > 35){
- %>
- <%= rowSet3.getRow(i).get("FILE_NAME").substring(0, 35)+"..."%>
- <%= rowSet3.getRow(i).get("FILE_EXT")%>
- <%
-
- }else{
- %>
- <%= rowSet3.getRow(i).get("FILE_NAME")%>
- <%
- }
- %>
- ( <%=rowSet3.getRow(i).get("FILE_SIZE") %> )
- <br>
- <%
- }
- }
- %>
- </td>
- <td class="list_data" nowrap>
- <IMG src="<%=link %>/img/buyer/button/bt_change.gif" id="bt_attach_file" alt="첨부파일 관리" align="top" valign="top" onClick="open_apppend_file('INVOICE', '<%=payVo.get("PREPAY_ID") %>');" class="button">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <%
- }
- %>
- <tr height="30" align="center">
- <td class="list_title1" nowrap align="left"> 대금청구</td>
- <td class="list_data" nowrap align="left" colspan="3">
- <table width="100%" height="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
- <tr>
- <td class="list_data" width="470px" align="top" valign="top" nowrap>
- <%
- if(rowSet1.size() > 0){
- for(int i = 0; rowSet1.size() > i; i++){
- if(rowSet1.getRow(i).get("FILE_NAME").length() > 35){
- %>
- <%= rowSet1.getRow(i).get("FILE_NAME").substring(0, 35)+"..."%>
- <%= rowSet1.getRow(i).get("FILE_EXT")%>
- <%
-
- }else{
- %>
- <%= rowSet1.getRow(i).get("FILE_NAME")%>
- <%
- }
- %>
- ( <%=rowSet1.getRow(i).get("FILE_SIZE") %> )
- <br>
- <%
- }
- }
- %>
- </td>
- <td class="list_data" nowrap>
- <IMG src="<%=link %>/img/buyer/button/bt_change.gif" id="bt_attach_file" alt="첨부파일 관리" align="top" valign="top" onClick="open_apppend_file('SUPP_PREPAYMENTS_BILLING', '<%=payVo.get("PREPAY_ID") %>');" class="button">
- </td>
- </tr>
- </table>
- </td>
- </tr>
-
- <tr height="30" align="center">
- <td class="list_title1" nowrap align="left"> 보증정보</td>
- <td class="list_data" nowrap align="left" colspan="3">
- <table width="100%" height="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
- <tr>
- <td class="list_data" width="470px" align="top" valign="top" nowrap>
- </td>
- <td class="list_data" nowrap >
- <IMG src="<%=link %>/img/buyer/button/bt_change.gif" id="bt_attach_file" alt="보증정보" align="top" valign="top" onClick="open_apppend_file1('<%=payVo.get("SUB_CONT_ID")%>');" class="button">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </TABLE>
- </TD>
- </TR>
- </tbody>
- </TABLE>
- <table><tr><td style="display:none;" id=doctitle_1 class=FIELD><%=params.get("docTitle") %></td></tr></table>
- <br>
|