DisQualPop.jsp 3.2 KB

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