EditCallReasonPurPopup.jsp 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <%--
  2. - Author(s) : Hyung min Son
  3. - Date : 2014.06.18
  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 PUR_CONT_MOD_ID = (String) storage.get("PUR_CONT_MOD_ID");
  26. %>
  27. <%@ page contentType="text/html; charset=utf-8" %>
  28. <SCRIPT language="JavaScript">
  29. function doPageInit() {
  30. }
  31. function doClose()
  32. {
  33. returnValue = null;
  34. parent.EditCallReasonClose(returnValue);
  35. }
  36. function goRtn(){
  37. if($("#MODI_REQ_REASON").val().length > 0){
  38. replace();
  39. var f = document.form1;
  40. submitXmlRequest("/portal/cont/PurContDetail_form.screen", "EDIT_CALL", f);
  41. }else{
  42. alert("수정요청 사유는 필수 입니다.");
  43. }
  44. }
  45. function replace(){
  46. var content = $("#MODI_REQ_REASON").val();
  47. content = content.replace(/\r\n/g, '<br>');
  48. content = content.replace(/\n/g, '<br>');
  49. content = content.replace(/\r/g, '<br>');
  50. $("#MODI_REQ_REASON").val(content);
  51. }
  52. function doResult(resultObj) {
  53. try {
  54. if( resultObj.getRequestEvent() == "EDIT_CALL") {
  55. if( resultObj.getSuccess() ) {
  56. alert("수정요청 되었습니다.");
  57. returnValue = new Array(0,"OK");
  58. parent.EditCallReasonClose(returnValue);
  59. }
  60. else {
  61. dlgErrorMsg(resultObj);
  62. }
  63. }
  64. }
  65. catch(errorObject) {
  66. showErrorDlg("doResult()", errorObject);
  67. }
  68. }
  69. document.body.onload = doPageInit;
  70. </SCRIPT>
  71. <STYLE>
  72. BODY {
  73. padding : 0 0 0 0;
  74. }
  75. </STYLE>
  76. <modular:search id="form1">
  77. <modular:key id="fevent" />
  78. </modular:search>
  79. <FORM name="form1" method="post" style="width:580px">
  80. <INPUT type="hidden" name="PUR_CONT_MOD_ID" value="<%=PUR_CONT_MOD_ID%>">
  81. <INPUT type="hidden" name="fevent" id="fevent" value="EDIT_CALL">
  82. <table id="t1" width="100%" border="0" cellspacing="0" cellpadding="0" class="ftit_table">
  83. <colgroup>
  84. <col width="150" />
  85. <col width="*" />
  86. </colgroup>
  87. <tr>
  88. <td align="right">
  89. <span class="btnSearch center" id="btnSearch"><a href="javascript:goRtn();">수정요청</a></span>
  90. <span class="btnSearch center" id="btnSearch"><a href="javascript:doClose();">닫기</a></span>
  91. </td>
  92. </tr>
  93. </table>
  94. <TABLE cellspacing="1" cellpadding="0" class="search_table">
  95. <colgroup>
  96. <col width="150" />
  97. <col width="85%" />
  98. </colgroup>
  99. <TR height="150">
  100. <TD class="search_table_title" style="text-align:center">수정요청 사유</TD>
  101. <TD class="search_table_data"><textarea name="MODI_REQ_REASON" id="MODI_REQ_REASON" style="width:99%; height:140px; overflow-y:auto" maxlength="1000" class="input byteChk ctrlTarget"></textarea></TD>
  102. </TR>
  103. </TABLE>
  104. </FORM>