FileListView.jsp 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ page import="kr.co.hsnc.common.sql.*" %>
  3. <%@ page import="kr.co.hsnc.common.util.*"%>
  4. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  5. <%@ page import="kr.co.hsnc.common.sql.util.RowSetUtility" %>
  6. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  7. <%
  8. ctx.init(request, response);
  9. ValueObject params = null;
  10. HandlerStorage storage = ctx.getHandlerStorage();
  11. params = storage.getParams();
  12. RowSet fileListRowSet = storage.getRowSet("FileListRowSet");
  13. int size = (fileListRowSet != null ? fileListRowSet.size() : 0);
  14. %>
  15. <HTML>
  16. <STYLE>
  17. BODY {
  18. padding : 0 0 0 0;
  19. SCROLLBAR-3DLIGHT-COLOR : #595959;
  20. SCROLLBAR-ARROW-COLOR : #FFFFFF;
  21. SCROLLBAR-BASE-COLOR : #CFCFCF;
  22. SCROLLBAR-DARKSHADOW-COLOR : #FFFFFF;
  23. SCROLLBAR-FACE-COLOR : #CFCFCF;
  24. SCROLLBAR-HIGHLIGHT-COLOR : #FFFFFF;
  25. SCROLLBAR-SHADOW-COLOR : #595959;
  26. background-color : #ffffff;
  27. }
  28. .view_title {
  29. BACKGROUND-COLOR : #cccccc ;
  30. FONT-FAMILY : "굴림", "Arial" ;
  31. FONT-SIZE : 10pt ;
  32. COLOR : #000000 ;
  33. }
  34. .view_data {
  35. BACKGROUND-COLOR : #ffffff ;
  36. FONT-FAMILY : "굴림", "Arial" ;
  37. FONT-SIZE : 9pt ;
  38. COLOR : #585860 ;
  39. }
  40. </style>
  41. <BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="overflow:auto">
  42. <FORM name="form2" id="form2">
  43. <INPUT type="hidden" name="fevent" value="">
  44. <INPUT type="hidden" name="file_gb" value="<%= params.get("file_gb") %>">
  45. <INPUT type="hidden" name="id" value="<%= params.get("id") %>">
  46. <INPUT type="hidden" name="change_file_map_id" value="">
  47. <INPUT type="hidden" name="change_open_corp_yn" value="">
  48. <INPUT type="hidden" name="change_use_con_yn" value="">
  49. <INPUT type="hidden" name="change_techreq_open_yn" value="">
  50. <INPUT type="hidden" name="size" value="<%= size %>">
  51. <TABLE border="0" cellspacing="0" cellpadding="0" width="100%">
  52. <TR>
  53. <TD>
  54. <!-- 리스트 시작 -->
  55. <TABLE width="725" cellspacing="0" cellpadding="0" bordercolordark="#FFFFF" bordercolorlight="#d2d2d2" border="1">
  56. <TR height="28" align="center">
  57. <TD class="view_title" nowrap width="30"><IMG src="/img/buyer/temp/check.gif" border="0" ></TD>
  58. <TD class="view_title" width="35" align="center">NO.</TD>
  59. <TD class="view_title" align="center">파일명</TD>
  60. <TD class="view_title" width="100" align="center">파일 크기</TD>
  61. <% if( params.get("IS_CORP").equals("Y") ) { %>
  62. <TD class="view_title" width="60" align="center">Vendor Open</TD>
  63. <% } %>
  64. <% if( params.get("IS_CON").equals("Y") ) { %>
  65. <TD class="view_title" width="60" align="center">Contract</TD>
  66. <% } %>
  67. <% if( params.get("IS_TECHREQ").equals("Y") ) { %>
  68. <TD class="view_title" width="80" align="center">TBE</TD>
  69. <% } %>
  70. <TD class="view_title" width="150" align="center">생성일시</TD>
  71. </TR>
  72. <%
  73. ValueObject row = null;
  74. for( int i = 0 ; i < size ; i++ ) {
  75. row = RowSetUtility.getValueObject(fileListRowSet.getRow(i));
  76. %>
  77. <TR height="25" >
  78. <INPUT type="hidden" name="no" value="<%= i + 1 %>">
  79. <INPUT type="hidden" name="file_id" value="<%= row.get("FILE_ID") %>">
  80. <INPUT type="hidden" name="file_map_id" value="<%= row.get("FILE_MAP_ID") %>">
  81. <INPUT type="hidden" name="file_name" value="<%= row.get("FILE_NAME") %>">
  82. <INPUT type="hidden" name="file_size" value="<%= row.get("FILE_SIZE").trim() %>">
  83. <% //if( row.get("FILE_GB").equals(row.get("O_FILE_GB")) && row.get("ID").equals(row.get("O_ID")) ) { %>
  84. <% if( row.get("ID").equals(row.get("O_ID")) || params.get("file_gb").equals("SUB_RFQ") || params.get("file_gb").equals("PUR_G_CST")) { %>
  85. <TD align="center" nowrap class="view_data"><INPUT type="checkbox" name="chk_file_map_id" value="<%= row.get("FILE_MAP_ID") %>"></TD>
  86. <% }
  87. else { %>
  88. <TD align="center" nowrap class="view_data"><INPUT type="checkbox" name="chk_file_map_id" value="<%= row.get("FILE_MAP_ID") %>" disabled></TD>
  89. <% } %>
  90. <TD align="center" nowrap class="view_data"><%= i + 1 %></TD>
  91. <TD class="LeftSpace" nowrap class="view_data"><A class="view_data" href="/common/file/FileDownloadServlet?file_id=<%= row.get("FILE_ID") %>" target="download"><%= row.get("FILE_NAME") %></A></TD>
  92. <TD align="center" nowrap class="view_data"><%= row.get("FILE_SIZE") %></TD>
  93. <% if( params.get("IS_CORP").equals("Y") ) { %>
  94. <% if( row.get("OPEN_CORP_YN").equals("Y") ) { %>
  95. <TD align="center" nowrap class="view_data"><INPUT type="checkbox" name="open_corp_yn" value="<%= row.get("FILE_MAP_ID") %>" checked onClick="parent.changeOpenCorpYNProc(this);"></TD>
  96. <% }
  97. else { %>
  98. <TD align="center" nowrap class="view_data"><INPUT type="checkbox" name="open_corp_yn" value="<%= row.get("FILE_MAP_ID") %>" onClick="parent.changeOpenCorpYNProc(this);"></TD>
  99. <% } %>
  100. <% }
  101. else { %>
  102. <INPUT type="hidden" name="open_corp_yn_value" value="<%= row.get("OPEN_CORP_YN") %>">
  103. <% } %>
  104. <% if( params.get("IS_CON").equals("Y") ) { %>
  105. <% if( row.get("USE_CON_YN").equals("Y") ) { %>
  106. <TD align="center" nowrap class="view_data"><INPUT type="checkbox" name="use_con_yn" value="<%= row.get("FILE_MAP_ID") %>" checked onClick="parent.changeUseConYNProc(this);"></TD>
  107. <% }
  108. else { %>
  109. <TD align="center" nowrap class="view_data"><INPUT type="checkbox" name="use_con_yn" value="<%= row.get("FILE_MAP_ID") %>" onClick="parent.changeUseConYNProc(this);"></TD>
  110. <% } %>
  111. <% }
  112. else { %>
  113. <INPUT type="hidden" name="use_con_yn_value" value="<%= row.get("USE_CON_YN") %>">
  114. <% } %>
  115. <% if( params.get("IS_TECHREQ").equals("Y") ) { %>
  116. <% if( row.get("TECHREQ_OPEN_YN").equals("Y") ) { %>
  117. <TD align="center" nowrap class="view_data"><INPUT type="checkbox" name="techreq_open_yn" value="<%= row.get("FILE_MAP_ID") %>" checked onClick="parent.changeTechreqOpenYNProc(this);"></TD>
  118. <% }
  119. else { %>
  120. <TD align="center" nowrap class="view_data"><INPUT type="checkbox" name="techreq_open_yn" value="<%= row.get("FILE_MAP_ID") %>" onClick="parent.changeTechreqOpenYNProc(this);"></TD>
  121. <% } %>
  122. <% }
  123. else { %>
  124. <INPUT type="hidden" name="techreq_open_yn_value" value="<%= row.get("TECHREQ_OPEN_YN") %>">
  125. <% } %>
  126. <TD align="center" nowrap class="view_data"><%= DateUtil.formatDateTime(row.get("CRE_DATE"), "yyyyMMddHHmmss", "yyyy-MM-dd HH:mm") %></TD>
  127. </TR>
  128. <%
  129. }
  130. %>
  131. </TABLE>
  132. </TD>
  133. </TR>
  134. </TABLE>
  135. <IFRAME width="0" height="0" name="download" src="" topmargin="0" leftmargin="0"></IFRAME>
  136. </FORM>
  137. </BODY>
  138. </HTML>