CancelContChgPop.jsp 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <%--
  2. - Author(s) : Hyung min Son
  3. - Date : 2014.07.28
  4. - Description: 반려 사유 팝업
  5. --%>
  6. <%@page import="monfox.toolkit.snmp.agent.modules.SnmpV2Mib.SysOREntry"%>
  7. <%@page import="monfox.toolkit.snmp.agent.modules.SnmpV2Mib.SysOREntry"%>
  8. <%@ page contentType="text/html; charset=utf-8" %>
  9. <%@ page import="kr.co.udapsoft.common.*" %>
  10. <%@ page import="com.udapsoft.waf.system.*" %>
  11. <%@ page import="com.udapsoft.waf.common.*" %>
  12. <%@ page import="com.udapsoft.waf.common.ui.HTMLMaker" %>
  13. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  14. <%@ page import="kr.co.hsnc.common.util.*"%>
  15. <%@ page import="kr.co.hsnc.common.util.ValueObject" %>
  16. <%@ page import="kr.co.hsnc.common.sql.*" %>
  17. <%@ page import="kr.co.hsnc.common.sql.RowSet" %>
  18. <%@ page import="kr.co.hsnc.common.sql.util.*" %>
  19. <%-- <%@ include file="/jsp/work/taglib.jsp" %> --%>
  20. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  21. <%
  22. ctx.init(request, response);
  23. HandlerStorage storage = ctx.getHandlerStorage();
  24. ValueObject params = storage.getParams();
  25. ValueObject user = ctx.getUser();
  26. /* String DEMANDED_ID = (String) storage.get("DEMANDED_ID");
  27. String BID_NO = (String) storage.get("BID_NO");
  28. String BID_DEG = (String) storage.get("BID_DEG");*/
  29. String pop_win_id = (String) storage.get("pop_win_id");
  30. %>
  31. <%@ page contentType="text/html; charset=utf-8" %>
  32. <SCRIPT language="JavaScript">
  33. function doPageInit() {
  34. }
  35. function doClose()
  36. {
  37. returnValue = null;
  38. parent.PopClose("<%=pop_win_id%>",returnValue);
  39. }
  40. function reject(){
  41. if ( stringByteSize4UTF($("#RJCT_REASON").val()) > 2000 ) {
  42. alert("반려사유는 500자까지 입력하실 수 있습니다.");
  43. jQuery("#RJCT_REASON").focus();
  44. return;
  45. }
  46. if($("#RJCT_REASON").val().length > 0){
  47. if(confirm("반려 하시겠습니까?")){
  48. replace();
  49. var f = document.form1;
  50. //jQuery("#fevent").val("CONT_REJECT");
  51. submitXmlRequest("/cont/purchase/ContChgRcvDetail_form.screen", "CONT_REJECT", f);
  52. //var f = document.form1;
  53. //submitXmlRequest("/bid/outside/CancelBidPop_form.screen", "FORM_CANCEL_UPDATE", f);
  54. }
  55. }else{
  56. alert("반려사유는 필수 입니다.");
  57. }
  58. }
  59. function replace(){
  60. var content = $("#RJCT_REASON").val();
  61. content = content.replace(/\r\n/g, '<br>');
  62. content = content.replace(/\n/g, '<br>');
  63. content = content.replace(/\r/g, '<br>');
  64. $("#RJCTREASON").val(content);
  65. }
  66. function doResult(resultObj) {
  67. try {
  68. if( resultObj.getRequestEvent() == "CONT_REJECT") {
  69. if( resultObj.getSuccess() ) {
  70. returnValue = new Array(0,"반려 처리 되었습니다.");
  71. parent.PopClose("<%=pop_win_id%>",returnValue);
  72. }
  73. else {
  74. dlgErrorMsg(resultObj);
  75. }
  76. // document.form1.isSubmit = false;
  77. }
  78. }
  79. catch(errorObject) {
  80. showErrorDlg("doResult()", errorObject);
  81. }
  82. }
  83. </SCRIPT>
  84. <FORM name="form1" method="post">
  85. <TABLE width="580px">
  86. <INPUT type="hidden" name="DEMANDED_ID" value="<%=params.get("DEMANDED_ID")%>">
  87. <INPUT type="hidden" name="PUR_CONT_MOD_ID" value="<%=params.get("PUR_CONT_MOD_ID")%>">
  88. <INPUT type="hidden" name="fevent" id="fevent" value="">
  89. <INPUT type="hidden" name="RJCTREASON" id="RJCTREASON" value="">
  90. <TR height="2"><TD colspan="2"></TD></TR>
  91. <TR height="25">
  92. <TD>
  93. <table id="t1" width="100%" border="0" cellspacing="0" cellpadding="0" class="ftit_table">
  94. <colgroup>
  95. <col width="*" />
  96. <col width="150" />
  97. </colgroup>
  98. <tr>
  99. <th>
  100. </th>
  101. <td align="right">
  102. <span class="btnSearch center"><a href="javascript:reject();">반려</a></span>
  103. </td>
  104. </tr>
  105. </table>
  106. </TD>
  107. </TR>
  108. </TABLE>
  109. <!-- 버튼 영역 : 시작 -->
  110. <!-- 유찰 사유 -->
  111. <TABLE cellspacing="1" cellpadding="0" class="search_table">
  112. <TR height="100">
  113. <TD width="15%" class="insert_table_title required">반려사유</TD>
  114. <TD width="35%" class="search_table_data" >
  115. &nbsp;&nbsp; <textarea name="RJCT_REASON" id="RJCT_REASON" style="width:95%; height:140px; overflow-y:auto" maxlength="1000" class="input byteChk ctrlTarget"></textarea>
  116. </TD>
  117. </TR>
  118. </TABLE>
  119. </FORM>