CancelBidPop.jsp 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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 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 ONBID_YN = (String) storage.get("ONBID_YN");
  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 postpone(){
  41. if($("#FIB_REASON").val().length > 0){
  42. if(stringByteSize4UTF($("#FIB_REASON").val())>3000){
  43. alert("유찰 사유는 한글 1000자,영문 3000자를 넘길 수 없습니다.");
  44. return;
  45. }else{
  46. if(confirm("유찰 하시겠습니까?")){
  47. $("#FIBREASON").val($("#FIB_REASON").val());
  48. var f = document.form1;
  49. submitXmlRequest("/bid/purchase/CancelBidPop_form.screen", "FORM_CANCEL_UPDATE", f);
  50. }
  51. }
  52. }else{
  53. alert("유찰사유는 필수 입니다.");
  54. }
  55. }
  56. /*
  57. function replace(){
  58. var content = $("#FIB_REASON").val();
  59. content = content.replace(/\r\n/g, '<br>');
  60. content = content.replace(/\n/g, '<br>');
  61. content = content.replace(/\r/g, '<br>');
  62. $("#FIBREASON").val(content);
  63. } */
  64. function doResult(resultObj) {
  65. try {
  66. if( resultObj.getRequestEvent() == "FORM_CANCEL_UPDATE") {
  67. if( resultObj.getSuccess() ) {
  68. returnValue = new Array(0,"유찰 되었습니다.");
  69. parent.PopClose("<%=pop_win_id%>",returnValue);
  70. }
  71. else {
  72. dlgErrorMsg(resultObj);
  73. }
  74. // document.form1.isSubmit = false;
  75. }
  76. }
  77. catch(errorObject) {
  78. showErrorDlg("doResult()", errorObject);
  79. }
  80. }
  81. </SCRIPT>
  82. <FORM name="form1" method="post">
  83. <TABLE width="580px">
  84. <INPUT type="hidden" name="DEMANDED_ID" value="<%=DEMANDED_ID%>">
  85. <INPUT type="hidden" name="BID_NO" value="<%=BID_NO%>">
  86. <INPUT type="hidden" name="BID_DEG" value="<%=BID_DEG%>">
  87. <INPUT type="hidden" name="ONBID_YN" value="<%=ONBID_YN%>">
  88. <INPUT type="hidden" name="STATUS_CD" value="92">
  89. <INPUT type="hidden" name="fevent" id="fevent" value="FROM_CANCEL_UPDATE">
  90. <INPUT type="hidden" name="FIBREASON" id="FIBREASON" value="">
  91. <TR height="2"><TD colspan="2"></TD></TR>
  92. <TR height="25">
  93. <TD>
  94. <table id="t1" width="100%" border="0" cellspacing="0" cellpadding="0" class="ftit_table">
  95. <colgroup>
  96. <col width="*" />
  97. <col width="150" />
  98. </colgroup>
  99. <tr>
  100. <th>
  101. </th>
  102. <td align="right">
  103. <span class="btnSearch center"><a href="javascript:postpone();">유찰</a></span>
  104. </td>
  105. </tr>
  106. </table>
  107. </TD>
  108. </TR>
  109. </TABLE>
  110. <!-- 버튼 영역 : 시작 -->
  111. <!-- 유찰 사유 -->
  112. <TABLE class="form-table">
  113. <TR height="100">
  114. <TH width="15%" class="required">유찰사유</TH>
  115. <TD width="35%">
  116. <textarea name="FIB_REASON" id="FIB_REASON" style="width:98%; height:140px; overflow-y:auto" maxlength="1000" class="input byteChk ctrlTarget"></textarea>
  117. </TD>
  118. </TR>
  119. </TABLE>
  120. </FORM>