BidCancelPop.jsp 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <%--
  2. - Author(s) : Hyung min Son
  3. - Date : 2014.07.07
  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. String BID_NO = (String) storage.get("BID_NO");
  27. String BID_DEG = (String) storage.get("BID_DEG");
  28. String pop_win_id = (String) storage.get("pop_win_id");
  29. %>
  30. <%@ page contentType="text/html; charset=utf-8" %>
  31. <SCRIPT language="JavaScript">
  32. function doPageInit() {
  33. }
  34. function doClose()
  35. {
  36. returnValue = null;
  37. parent.PopClose("<%=pop_win_id%>",returnValue);
  38. }
  39. function postpone(){
  40. if($("#CANCEL_REASON").val().length > 0){
  41. if(confirm("취소 하시겠습니까?")){
  42. replace();
  43. var f = document.form1;
  44. submitXmlRequest("/bid/outside/BidCancelPop_form.screen", "FORM_CANCEL_UPDATE", f);
  45. }
  46. }else{
  47. alert("취소사유는 필수 입니다.");
  48. }
  49. }
  50. function replace(){
  51. var content = $("#CANCEL_REASON").val();
  52. $("#cancelreason").val(content);
  53. }
  54. function doResult(resultObj) {
  55. try {
  56. if( resultObj.getRequestEvent() == "FORM_CANCEL_UPDATE") {
  57. if( resultObj.getSuccess() ) {
  58. returnValue = new Array(0,"취소 되었습니다.");
  59. parent.PopClose("<%=pop_win_id%>",returnValue);
  60. }
  61. else {
  62. dlgErrorMsg(resultObj);
  63. }
  64. // document.form1.isSubmit = false;
  65. }
  66. }
  67. catch(errorObject) {
  68. showErrorDlg("doResult()", errorObject);
  69. }
  70. }
  71. </SCRIPT>
  72. <FORM name="form1" method="post">
  73. <TABLE width="580px">
  74. <INPUT type="hidden" name="DEMANDED_ID" value="<%=DEMANDED_ID%>">
  75. <INPUT type="hidden" name="BID_NO" value="<%=BID_NO%>">
  76. <INPUT type="hidden" name="BID_DEG" value="<%=BID_DEG%>">
  77. <INPUT type="hidden" name="STATUS_CD" value="92">
  78. <INPUT type="hidden" name="fevent" id="fevent" value="FROM_CANCEL_UPDATE">
  79. <INPUT type="hidden" name="cancelreason" id="cancelreason" value="">
  80. <TR height="2"><TD colspan="2"></TD></TR>
  81. <TR height="25">
  82. <TD>
  83. <table id="t1" width="100%" border="0" cellspacing="0" cellpadding="0" class="ftit_table">
  84. <colgroup>
  85. <col width="*" />
  86. <col width="150" />
  87. </colgroup>
  88. <tr>
  89. <th>
  90. </th>
  91. <td align="right">
  92. <span class="btnSearch center"><a href="javascript:postpone();">취소</a></span>
  93. </td>
  94. </tr>
  95. </table>
  96. </TD>
  97. </TR>
  98. </TABLE>
  99. <!-- 버튼 영역 : 시작 -->
  100. <!-- 발주의뢰정보 : 시작 -->
  101. <TABLE class="form-table">
  102. <TR height="100">
  103. <TH width="15%" class="required">취소사유</TH>
  104. <TD width="35%">
  105. <textarea name="CANCEL_REASON" id="CANCEL_REASON" style="width:98%; height:140px; overflow-y:auto" maxlength="100" class="input byteChk ctrlTarget"></textarea>
  106. </TD>
  107. </TR>
  108. </TABLE>
  109. </FORM>