<%@ 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("custList");
	RowSet getFileListRowSet = storage.getRowSet("getFileListRowSet");
	
%>
 
<style>
<!--
.list_title {
	FONT-SIZE: 9pt; COLOR: #ffffff; FONT-FAMILY: "굴림", "Verdana"; BACKGROUND-COLOR: #5588BB; TEXT-ALIGN:CENTER;HEIGHT:27PX;
}
.list_title1 {
	FONT-SIZE: 9pt; COLOR: #ffffff; FONT-FAMILY: "굴림", "Verdana"; BACKGROUND-COLOR: #5588BB; TEXT-ALIGN:LEFT;HEIGHT:27PX;
}

.list_title_2 {
	FONT-SIZE: 9pt; COLOR: #ffffff; FONT-FAMILY: "굴림", "Verdana"; BACKGROUND-COLOR: #5588BB; TEXT-ALIGN:CENTER;HEIGHT:27PX;
}

.list_title3 {
	FONT-SIZE: 9pt; COLOR: #ffffff; FONT-FAMILY: "굴림", "Verdana"; BACKGROUND-COLOR: #5588BB; TEXT-ALIGN:CENTER;HEIGHT:27PX;letter-spacing:23px;
}

.list_title4 {
	FONT-SIZE: 9pt; COLOR: #ffffff; FONT-FAMILY: "굴림", "Verdana"; BACKGROUND-COLOR: #5588BB; TEXT-ALIGN:CENTER;HEIGHT:27PX;letter-spacing:11px;
}

.list_title5 {
	FONT-SIZE: 9pt; COLOR: #ffffff; FONT-FAMILY: "굴림", "Verdana"; BACKGROUND-COLOR: #5588BB; TEXT-ALIGN:CENTER;HEIGHT:27PX;letter-spacing:5px;
}

.list_title6 {
	FONT-SIZE: 9pt; COLOR: #ffffff; FONT-FAMILY: "굴림", "Verdana"; BACKGROUND-COLOR: #5588BB; TEXT-ALIGN:CENTER;HEIGHT:27PX;letter-spacing:2px;
}

.list_title_small {
	FONT-SIZE: 8pt; COLOR: #ffffff; FONT-FAMILY: "굴림", "Verdana"; BACKGROUND-COLOR: #5588BB; TEXT-ALIGN:CENTER;HEIGHT:27PX;
}

.list_data {
	FONT-SIZE: 9pt; FONT-FAMILY: "굴림", "Verdana";
}

.list_data_small {
	FONT-SIZE: 8pt; FONT-FAMILY: "굴림", "Verdana";padding-left:3px;
}

/* INPUT TAG Style */
.input_textarea {
    FONT-FAMILY                 : "굴림", "Verdana"                 ;
    FONT-SIZE                   : 9pt                                       ;
    BORDER                      : #6A6A6A                                   ;
    BORDER-STYLE                : solid                                     ;
    BORDER-TOP-WIDTH            : 1px                                       ;
    BORDER-RIGHT-WIDTH          : 1px                                       ;
    BORDER-BOTTOM-WIDTH         : 1px                                       ;
    BORDER-LEFT-WIDTH           : 1px                                       ;
    COLOR                       : #595A5A                                   ;
    PADDING-LEFT                : 3px;
    PADDING-TOP                 : 2px;
}

.input {
    FONT-FAMILY                 : "굴림", "Arial"                          ;
    FONT-SIZE                   : 9pt                                       ;
    BORDER                      : #ffffff                                   ;
    BORDER-STYLE                : solid                                     ;
    BORDER-TOP-WIDTH            : 1px                                       ;
    BORDER-RIGHT-WIDTH          : 1px                                       ;
    BORDER-BOTTOM-WIDTH         : 1px                                       ;
    BORDER-LEFT-WIDTH           : 1px                                       ;
    PADDING-LEFT                : 3px;
    PADDING-RIGHT               : 3px;
    PADDING-TOP                 : 2px;
}
-->
</style>
<br>

<TABLE width="100%" 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="20%">
	            <COL width="20%">
	            <COL width="40%">
	          </COLGROUP>
	          	<tr height="23">
	          		<td class="list_title" nowrap>요청부서</td>
	          		<td class="list_data" nowrap align="left">&nbsp;<%=payVo.get("WRITE_DEPT") %></td>
	          		<td class="list_title" nowrap>작성일자</td>
	          		<td class="list_data" nowrap align="left">&nbsp;<%=payVo.get("REQ_DATE") %></td>
	          	</tr>
	          	<tr height="23" align="center">
	          		<td class="list_title" nowrap>작성자</td>
	          		<td class="list_data" nowrap align="left" colspan="3">&nbsp;<%=payVo.get("CRE_EMP_NM") %></td>
	          	</tr>
	          </TABLE>
	          <TABLE width="100%" cellspacing="0" cellpadding="0"   border="0">
	          <tr><td> 
	          <br>
	          <font color="red" size="2" face="굴림" ><b>※신용평가등급 B- 미만 또는 미발급업체 / 부채비율 250% 이상/ 유동비율 100% 이하 / 영업기간 2년 미만/<br>
	                            &nbsp;&nbsp;건설업면허 미보유 공사업체의 경우, <u>협력업체 등록이 제한</u>될 수 있습니다.</b> </font>
	          </td></tr>
	          </TABLE> 
	          <br>              
	          <TABLE width="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
	          <COLGROUP>
	            <COL width="20%">
	            <COL width="20%">
	            <COL width="20%">
	            <COL width="40%">
	          </COLGROUP>	
	          	<tr height="23" align="center">
	          		<td class="list_title" nowrap>사업자번호</td>
	          		<td class="list_data" nowrap align="left">&nbsp;<%=StringUtils.getBizNo(payVo.get("CORP_REG_NO")) %></td>
	          		<td class="list_title" nowrap>담당자이름</td>
	          		<td class="list_data" nowrap align="left">&nbsp;<%=payVo.get("USER_NAME") %></td>
	          	</tr>
	          	<tr height="23" align="center">
	          		<td class="list_title" nowrap>업체명</td>
	          		<td class="list_data" nowrap align="left" colspan="1">&nbsp;<%=payVo.get("CORP_KOR") %></td>
	          		<td class="list_title" nowrap>담당자eMail</td>
	          		<td class="list_data" nowrap align="left" colspan="1">&nbsp;<%=payVo.get("EMAIL") %></td>
	          	</tr>
	          	<tr height="23" align="center">
	          		<td class="list_title" nowrap>대표자</td>
	          		<td class="list_data" nowrap align="left">&nbsp;<%=payVo.get("REP_NAME") %></td>
	          		<td class="list_title" nowrap>담당자 연락처</td>
	          		<td class="list_data" nowrap align="left" colspan="1">&nbsp;<%=payVo.get("HP1") %>-<%=payVo.get("HP2") %>-<%=payVo.get("HP3") %>&nbsp;</td>	          		
	          	</tr>
	          	<tr height="23" align="center">
	          		<td class="list_title" nowrap>신용평가기관</td>
	          		<td class="list_data" nowrap align="left">&nbsp;<%=payVo.get("CREDIT_CD") %></td>
	          		<td class="list_title" nowrap>신용평가등급 / 현금흐름등급</td>
	          		<td class="list_data" nowrap align="left">&nbsp;<%=payVo.get("CREDIT_VALUE") %>&nbsp;/&nbsp;<%=payVo.get("CASH_GRADE") %></td>
	          	</tr>
	          	<tr height="23" align="center">
	          		<td class="list_title" nowrap align="center">부채비율</td>
	          		<td class="list_data" nowrap align="left">&nbsp;<%=payVo.get("DEBT_RATE") %>&nbsp;%</td>
					<td class="list_title" nowrap align="center">유동비율</td>
	          		<td class="list_data" nowrap align="left">&nbsp;<%=payVo.get("LIQUID_RATE") %>&nbsp;%</td>
	          	</tr>
	          	<tr height="23" align="center">
	          		<td class="list_title" nowrap align="center">설립년도</td>
	          		<td class="list_data" nowrap align="left">&nbsp;<%=payVo.get("SYEAR") %>&nbsp;</td>
	          		<td class="list_title" nowrap align="center">건설업면허</td>
	          		<td class="list_data" nowrap align="left">&nbsp;<%=payVo.get("LICENCE_YN") %></td> 
	          	</tr>	          	
	          	<tr height="23" align="center">
	          	    <td class="list_title" nowrap align="center">추천부서</td>
	          		<td class="list_data" nowrap align="left">&nbsp;<%=payVo.get("DEPT_NM") %></td> 
	          		<td class="list_title" nowrap align="center">추천인</td>
	          		<td class="list_data" nowrap align="left" >&nbsp;<%=payVo.get("REQ_EMP") %>&nbsp;</td>
	          	</tr>
	          	<tr align="center">
	          		<td class="list_title" nowrap align="center">등록요청사유</td>
	          		<td class="list_data" nowrap align="left" colspan="3" width="490"><br>
	          		<textarea name="REQ_REMARK" id="REQ_REMARK" style="width:95%;height:80px;overflow:scroll;" rows="1" > <%=payVo.get("REQ_REMARK")%></textarea>
	          		<%-- &nbsp;<%=StringUtils.cvtHTML(payVo.get("REQ_REMARK"))%> --%>
	          		<br>
	          		<br>
	          		</td>
	          	</tr>
	          	<tr height="23" align="center">
	          		<td class="list_title" nowrap align="center">첨부파일</td>
	          		<td class="list_data" nowrap align="left" colspan="3">
	          		<table style="height: 100%" width="99%" height="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
					<%
							if(getFileListRowSet.size() > 0){
								int i_mod = 0;
								for(int i = 0; getFileListRowSet.size() > i; i++){
									i_mod = i%2;
									if(i_mod == 0){ %>
										<TR>
								<%	} %>
											<td width="2%">
											<input type="checkbox" name="<%=getFileListRowSet.getRow(i).get("DETAILNM") %>" value="<%=getFileListRowSet.getRow(i).get("DETAILCD") %>" style="cursor:pointer;" onClick="fileCheck(this,'<%=getFileListRowSet.getRow(i).get("DETAILCD") %>')" <%if(!getFileListRowSet.getRow(i).get("DOC_CD").equals("")){out.print("checked");} %> disabled="disabled">
											</td>
											<td class="list_data" width="50%">
											<%=getFileListRowSet.getRow(i).get("DETAILNM") %>
											</td>
											<td width="5%" height="24">
											<IMG src="<%=link %>/img/buyer/button/bt_attach_file.gif" id="<%=getFileListRowSet.getRow(i).get("DETAILCD") %>" alt="첨부파일 관리" align="top" style="display:<%if(!getFileListRowSet.getRow(i).get("DOC_CD").equals("")){out.print("inline");}else{out.print("none");} %>" onClick="open_apppend_file('SUPP_DEPT_REQ_' + '<%=payVo.get("CORP_ID")%>', '<%=getFileListRowSet.getRow(i).get("DETAILCD") %>');" class="button">
											</td>
								
							<%	if( i_mod == 1){ %>
									</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>
