TBECheckPop.jsp 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <%--
  2. - Author(s) : Hyung min Son
  3. - Date : 2014.07.25
  4. - Description: 기술검토서팝업
  5. --%>
  6. <%@page import="monfox.toolkit.snmp.agent.modules.SnmpV2Mib.SysOREntry"%>
  7. <%@page import="monfox.toolkit.snmp.agent.modules.SnmpV2Mib.SysOREntry"%>
  8. <%@ page contentType="text/html; charset=utf-8" %>
  9. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  10. <%@ page import="com.udapsoft.waf.system.*" %>
  11. <%@ page import="com.udapsoft.waf.common.*" %>
  12. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  13. <%@ page import="com.udapsoft.waf.common.util.StringUtils"%>
  14. <%@ page import="kr.co.hsnc.common.util.*"%>
  15. <%@ page import="kr.co.hsnc.common.sql.*" %>
  16. <%@ page import="kr.co.udapsoft.common.*" %>
  17. <%@ page import="kr.co.udapsoft.ebid.buyer.common.file.FileManager"%>
  18. <%@ include file="/jsp/work/taglib.jsp" %>
  19. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  20. <%
  21. ctx.init(request, response);
  22. HandlerStorage storage = ctx.getHandlerStorage();
  23. ValueObject user = ctx.getUser();
  24. ValueObject params = storage.getParams();
  25. String event = storage.getEvent();
  26. String BID_NO = (String) storage.get("BID_NO");
  27. String BID_DEG = (String) storage.get("BID_DEG");
  28. String RTN_YN = (String) storage.get("RTN_YN");
  29. String pop_win_id = (String) storage.get("pop_win_id");
  30. ValueObject Order = storage.getValueObject("Order");
  31. ValueObject filetot = storage.getValueObject(Order.get("TOT_FILE_GB"));
  32. RowSet Tbe_info = storage.getRowSet("TBE_INFO");
  33. %>
  34. <SCRIPT language="JavaScript">
  35. document.onkeydown = closePopupWindow;
  36. document.body.onload = _onReady;
  37. var act_rtn = false;
  38. function _onReady(){
  39. $("#table_rtn").hide();
  40. $("#btn_cancel").hide();
  41. $("#t1").hide();
  42. if("<%=RTN_YN%>" == "Y"){
  43. $("#t1").show();
  44. }
  45. }
  46. function rtn_calcel(){
  47. $("#table_rtn").hide();
  48. $("#btn_cancel").hide();
  49. act_rtn = false;
  50. }
  51. function rtn_table(){
  52. if(act_rtn){//반려
  53. rtn_save();
  54. return;
  55. }else{
  56. $("#table_rtn").show();
  57. $("#btn_cancel").show();
  58. act_rtn = true;
  59. return;
  60. }
  61. }
  62. function rtn_save(){
  63. if($("#RTN_REASON").val().length > 0){
  64. if(confirm("반려 하시겠습니까?")){
  65. var f = document.form1;
  66. submitXmlRequest("/bid/outside/TBECheckPop_from.screen", "RTN_UPDATE", f);
  67. }
  68. }else{
  69. alert("반려사유는 필수 입니다.");
  70. $("#RTN_REASON").focus();
  71. }
  72. }
  73. function doAttachFileListSet(){
  74. }
  75. //첨부파일
  76. function doAttachFile(obj,No) {
  77. var file_div = "bid/outside/<%=BID_NO%>/TBE";
  78. if(obj==''){
  79. alert("After you have saved, you can attach a file.");
  80. }
  81. else if(obj != ''){
  82. viewFileListNew('<%=Order.get("TOT_FILE_GB")%>', obj.value, document.form1.p_AttachFile1, "N", file_div);
  83. //viewFileList('<%=Order.get("TOT_FILE_GB")%>', obj.value, document.form1.p_AttachFile1, "N", file_div,'_viewFileList');
  84. }
  85. }
  86. function doResult(resultObj) {
  87. try {
  88. if( resultObj.getRequestEvent() == "RTN_UPDATE") {
  89. document.form1.isSubmit = false;
  90. returnValue = new Array(1,"반려 되었습니다.");
  91. parent.PopClose("<%=pop_win_id%>",returnValue);
  92. }
  93. } catch(errorObject) {
  94. showErrorDlg("doResult()", errorObject);
  95. }
  96. }
  97. </SCRIPT>
  98. <modular:search id="form1">
  99. <modular:key id="fevent" />
  100. </modular:search>
  101. <form id="form1" name="form1" method="post" modular:type="search">
  102. <INPUT type='hidden' name="fevent" id="fevent" value="">
  103. <INPUT type='hidden' name="BID_NO" value="<%=BID_NO%>">
  104. <INPUT type='hidden' name="BID_DEG" value="<%=BID_DEG%>">
  105. <INPUT type='hidden' name="STATUS_CD" value="<%=Order.get("STATUS_CD")%>">
  106. <INPUT type='hidden' name="TOT_FILE_ID" value="<%=Order.get("TOT_FILE_ID")%>">
  107. <INPUT type='hidden' name="TBE_FILE_GB" value="<%=Order.get("TOT_FILE_GB")%>">
  108. <TABLE class="screen_title_table">
  109. <TR height="2"><TD colspan="2"></TD>
  110. </TR>
  111. <TR height="25"><TD>
  112. <!-- 제목 및 버튼 -->
  113. <table id="t1" width="100%" class="ftit_table">
  114. <colgroup>
  115. <col width="*" />
  116. <col width="150" />
  117. </colgroup>
  118. <tr>
  119. <th>
  120. </th>
  121. <td align="right">
  122. <span class="btnSearch center" id="btn_cancel"><a href="javascript:rtn_calcel();">반려취소</a></span>
  123. <%if (Order.get("STATUS_CD").equals("10")) { %>
  124. <span class="btnSearch center" id="btn_rtn"><a href="javascript:rtn_table();">반려</a></span>
  125. <%} %>
  126. </td>
  127. </tr>
  128. </table>
  129. </TD>
  130. </TR>
  131. </TABLE>
  132. <!-- 발주의뢰정보 : 시작 -->
  133. <TABLE class="form-table" id="table_rtn" style="margin-bottom:15px" >
  134. <colgroup>
  135. <col width="145"/>
  136. <col />
  137. </colgroup>
  138. <TR height="50">
  139. <TH class="required">반려사유</TH>
  140. <TD>
  141. <textarea name="RTN_REASON" id="RTN_REASON" style="width:98%; height:50px; overflow-y:auto" maxlength="100" class="input byteChk ctrlTarget"></textarea>
  142. </TD>
  143. </TR>
  144. </TABLE>
  145. <TABLE class="list-form-table">
  146. <colgroup>
  147. <col width="145"/>
  148. <col width="145"/>
  149. <col width="200"/>
  150. <col />
  151. </colgroup>
  152. <TR height="25">
  153. <th>사업자번호</TD>
  154. <th>업체명</TD>
  155. <th>평과결과</TD>
  156. <th>평가의견</TD>
  157. </TR>
  158. <%
  159. if(Tbe_info.size() > 0){
  160. for(int i=0;i < Tbe_info.size();i++){
  161. %>
  162. <TR height="25">
  163. <TD class="search_table_data" style="text-align:center"><%=StringUtils.getBizNo(Tbe_info.getRow(i).get("VENDOR_NO"))%><INPUT type="hidden" id="VENDOR_CD" name="VENDOR_CD" value="<%=Tbe_info.getRow(i).get("VENDOR_CD")%>"></TD>
  164. <TD class="search_table_data" style="text-align:center"><%=Tbe_info.getRow(i).get("VENDOR_NAME")%></TD>
  165. <TD class="search_table_data" style="text-align:center"><%if (Order.get("STATUS_CD").equals("10")) { %><%=Tbe_info.getRow(i).get("EVAL_RESULT_NM") %><%} %></TD>
  166. <TD class="search_table_data" style="vertical-align: top"><%=StringUtils.cvtHTML(Tbe_info.getRow(i).get("EVAL_OPIN"))%></TD>
  167. </TR>
  168. <% } %>
  169. <TR height="30">
  170. <th>종합의견</TH>
  171. <TD class="search_table_data" colspan="2"><TEXTAREA name="p_AttachFile1" id="p_AttachFile1" style="width:85%;height:40px" rows="1" class="input" readOnly><%=filetot.get(Order.get("TOT_FILE_GB")) %></TEXTAREA>
  172. <IMG id='search_spot_button' onClick="doAttachFile(document.form1.TOT_FILE_ID,3);" src='/img/buyer/button/bt_change.gif' border='0' align="top" align='absmiddle' alt='[Attach File]' style='cursor:pointer;'></TD>
  173. <TD class="search_table_data" style="vertical-align: top"><%=StringUtils.cvtHTML(Order.get("TOT_OPIN"))%></TD>
  174. <% }else{%>
  175. <TR height="25">
  176. <TD class="search_table_data" colspan="4" style="text-align:center">기술 검토 대상 업체가 없습니다.</TD>
  177. </TR>
  178. <%}%>
  179. </TABLE>
  180. </form>