RtnReasonPopup.jsp 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. if (confirm("반려 하시겠습니까?")){
  39. replace();
  40. var f = document.form1;
  41. submitXmlRequest("/bid/purchase/OrderReqeust_form.screen", "FROM_RETURN_UPDATE", f);
  42. }
  43. }else{
  44. alert("반려사유는 필수 입니다.");
  45. }
  46. }
  47. function replace(){
  48. var content = $("#RTN_REASON").val();
  49. /* content = content.replace(/\r\n/g, '<br>');
  50. content = content.replace(/\n/g, '<br>');
  51. content = content.replace(/\r/g, '<br>'); */
  52. $("#RTNREASON").val(content);
  53. }
  54. function doResult(resultObj) {
  55. try {
  56. if( resultObj.getRequestEvent() == "FROM_RETURN_UPDATE") {
  57. if( resultObj.getSuccess() ) {
  58. alert("반려 되었습니다.");
  59. returnValue = new Array(0,"OK");
  60. parent.RtnReasonClose(returnValue);
  61. }
  62. else {
  63. dlgErrorMsg(resultObj);
  64. }
  65. }
  66. }
  67. catch(errorObject) {
  68. showErrorDlg("doResult()", errorObject);
  69. }
  70. }
  71. document.body.onload = doPageInit;
  72. </SCRIPT>
  73. <modular:search id="form1">
  74. <modular:key id="fevent" />
  75. </modular:search>
  76. <FORM name="form1" method="post" style="width:580px">
  77. <INPUT type="hidden" name="DEMANDED_ID" value="<%=DEMANDED_ID%>">
  78. <INPUT type="hidden" name="DEMANDED_KIND" value="<%=(String)storage.get("DEMANDED_KIND")%>">
  79. <INPUT type="hidden" name="RTNREASON" value="">
  80. <INPUT type="hidden" name="DEMANDED_STATUS" value="5">
  81. <INPUT type="hidden" name="fevent" id="fevent" value="FROM_RETURN_UPDATE">
  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. <th>
  89. </th>
  90. <td align="right">
  91. <span class="btnSearch center" id="btnSearch"><a href="javascript:goRtn();">반려</a></span>
  92. </td>
  93. </tr>
  94. </table>
  95. <TABLE class="form-table">
  96. <colgroup>
  97. <col width="150" />
  98. <col width="85%" />
  99. </colgroup>
  100. <TR height="150">
  101. <TH class="required" style="text-align:center">반려사유</TH>
  102. <TD><textarea name="RTN_REASON" id="RTN_REASON" style="width:99%; height:140px; overflow-y:auto" maxlength="1000" class="input byteChk ctrlTarget"></textarea></TD>
  103. </TR>
  104. </TABLE>
  105. </FORM>