DisQualPop.jsp 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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 contentType="text/html; charset=utf-8" %>
  8. <%@ page import="kr.co.udapsoft.common.*" %>
  9. <%@ page import="com.udapsoft.waf.system.*" %>
  10. <%@ page import="com.udapsoft.waf.common.*" %>
  11. <%@ page import="com.udapsoft.waf.common.ui.HTMLMaker" %>
  12. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  13. <%@ page import="kr.co.hsnc.common.util.*"%>
  14. <%@ page import="kr.co.hsnc.common.util.ValueObject" %>
  15. <%@ page import="kr.co.hsnc.common.sql.*" %>
  16. <%@ page import="kr.co.hsnc.common.sql.RowSet" %>
  17. <%@ page import="kr.co.hsnc.common.sql.util.*" %>
  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 params = storage.getParams();
  24. ValueObject user = ctx.getUser();
  25. String ROW = (String) storage.get("ROW");
  26. String DISQ_REASON = (String) storage.get("DISQ_REASON");
  27. //String DISQ_REASON = new String(URLDecoder.decode(storage.get("DISQ_REASON"),"UTF-8"));
  28. %>
  29. <%@ page contentType="text/html; charset=utf-8" %>
  30. <SCRIPT language="JavaScript">
  31. function doPageInit() {
  32. replace2();
  33. }
  34. function doClose()
  35. {
  36. returnValue = null;
  37. parent.DisqReasonClose(returnValue);
  38. }
  39. function goSave(){
  40. if($("#DISQ_REASON").val().length > 0){
  41. replace();
  42. var returnValue = new Array();
  43. returnValue[0] = "<%=ROW%>";
  44. returnValue[1] = $("#DISQREASON").val();
  45. parent.DisqReasonClose(returnValue);
  46. }else{
  47. var returnValue = new Array();
  48. returnValue[0] = "<%=ROW%>";
  49. returnValue[1] = $("#DISQ_REASON").val();
  50. parent.DisqReasonClose(returnValue);
  51. }
  52. }
  53. function replace(){
  54. var content = $("#DISQ_REASON").val();
  55. /* content = content.replace(/\r\n/g, '<br>');
  56. content = content.replace(/\n/g, '<br>');
  57. content = content.replace(/\r/g, '<br>'); */
  58. $("#DISQREASON").val(content);
  59. }
  60. function replace2(){
  61. var content = unescape($("#DISQREASON").val());
  62. /* content = content.replace('<br>',"\n");
  63. content = content.replace('<br>',"\n");
  64. content = content.replace('<br>',"\r"); */
  65. $("#DISQ_REASON").val(content);
  66. }
  67. document.body.onload = doPageInit;
  68. </SCRIPT>
  69. <modular:search id="form1">
  70. <modular:key id="fevent" />
  71. </modular:search>
  72. <FORM name="form1" method="post" style="width:580px">
  73. <INPUT type="hidden" name="ROW" value="<%=ROW%>">
  74. <INPUT type="hidden" name="DISQREASON" value="<%=DISQ_REASON%>">
  75. <table id="t1" width="100%" border="0" cellspacing="0" cellpadding="0" class="ftit_table">
  76. <colgroup>
  77. <col width="150" />
  78. <col width="*" />
  79. </colgroup>
  80. <tr>
  81. <th>
  82. </th>
  83. <td align="right">
  84. <span class="btnSearch center" id="btnSearch"><a href="javascript:goSave();">저장</a></span>
  85. </td>
  86. </tr>
  87. </table>
  88. <TABLE cellspacing="1" cellpadding="0" class="search_table">
  89. <colgroup>
  90. <col width="150" />
  91. <col width="85%" />
  92. </colgroup>
  93. <TR height="150">
  94. <TD class="search_table_title" style="text-align:center">결격사유</TD>
  95. <TD class="search_table_data"><textarea name="DISQ_REASON" id="DISQ_REASON" style="width:99%; height:140px; overflow-y:auto" maxlength="1000" class="input byteChk ctrlTarget"></textarea></TD>
  96. </TR>
  97. </TABLE>
  98. </FORM>