RtnReasonPopup.jsp 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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 DEMANDED_ID = (String) storage.get("DEMANDED_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.RtnReasonClose(returnValue);
  35. }
  36. function goRtn(){
  37. if($("#RTN_REASON").val().length > 0){
  38. replace();
  39. var f = document.form1;
  40. submitXmlRequest("/bid/outside/OrderReqeust_form.screen", "FROM_RETURN_UPDATE", f);
  41. }else{
  42. alert("반려사유는 필수 입니다.");
  43. }
  44. }
  45. function replace(){
  46. var content = $("#RTN_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. $("#RTN_REASON").val(content);
  51. }
  52. function doResult(resultObj) {
  53. try {
  54. if( resultObj.getRequestEvent() == "FROM_RETURN_UPDATE") {
  55. if( resultObj.getSuccess() ) {
  56. alert("반려 되었습니다.");
  57. returnValue = new Array(0,"OK");
  58. parent.RtnReasonClose(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. <modular:search id="form1">
  72. <modular:key id="fevent" />
  73. </modular:search>
  74. <FORM name="form1" method="post" style="width:580px">
  75. <INPUT type="hidden" name="DEMANDED_ID" value="<%=DEMANDED_ID%>">
  76. <INPUT type="hidden" name="DEMANDED_STATUS" value="5">
  77. <INPUT type="hidden" name="fevent" id="fevent" value="FROM_RETURN_UPDATE">
  78. <table id="t1" width="100%" border="0" cellspacing="0" cellpadding="0" class="ftit_table">
  79. <colgroup>
  80. <col width="150" />
  81. <col width="*" />
  82. </colgroup>
  83. <tr>
  84. <th>
  85. </th>
  86. <td align="right">
  87. <span class="btnSearch center" id="btnSearch"><a href="javascript:goRtn();">반려</a></span>
  88. </td>
  89. </tr>
  90. </table>
  91. <TABLE cellspacing="1" cellpadding="0" class="search_table">
  92. <colgroup>
  93. <col width="150" />
  94. <col width="85%" />
  95. </colgroup>
  96. <TR height="130">
  97. <TD class="search_table_title" style="text-align:center">반려사유</TD>
  98. <TD class="search_table_data"><textarea name="RTN_REASON" id="RTN_REASON" style="width:99%; height:120px; overflow-y:auto" maxlength="1000" class="input byteChk ctrlTarget"></textarea></TD>
  99. </TR>
  100. </TABLE>
  101. </FORM>