BidGiveup.jsp 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <%--
  2. - Author(s) : Hyung min Son
  3. - Date : 2014.07.29
  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. <%@ page import="java.text.SimpleDateFormat"%>
  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 VENDOR_CD = (String) storage.get("VENDOR_CD");
  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. SimpleDateFormat sd = new SimpleDateFormat("yyyyMMdd");
  31. String nowTime = sd.format(new Date());
  32. %>
  33. <%@ page contentType="text/html; charset=utf-8" %>
  34. <SCRIPT language="JavaScript">
  35. function doPageInit() {
  36. }
  37. function doClose()
  38. {
  39. returnValue = null;
  40. parent.PopClose("<%=pop_win_id%>",returnValue);
  41. }
  42. function giveup(){
  43. if($("#RNNC_REASON").val().length > 0){
  44. if(confirm("입찰을 포기 하시겠습니까?")){
  45. replace();
  46. SignData();
  47. // if(SignData()){
  48. // var f = document.form1;
  49. // submitXmlRequest("/portal/bid/BidGiveupPop_form.screen", "BIDGIVEUP_SAVE", f);
  50. // }
  51. }
  52. }else{
  53. alert("포기사유는 필수 입니다.");
  54. }
  55. }
  56. function replace(){
  57. var content = $("#RNNC_REASON").val();
  58. content = content.replace(/\r\n/g, '<br>');
  59. content = content.replace(/\n/g, '<br>');
  60. content = content.replace(/\r/g, '<br>');
  61. $("#RNNCREASON").val(content);
  62. }
  63. function doResult(resultObj) {
  64. try {
  65. if( resultObj.getRequestEvent() == "BIDGIVEUP_SAVE") {
  66. if( resultObj.getSuccess() ) {
  67. returnValue = new Array(0,"포기 되었습니다.");
  68. parent.PopClose("<%=pop_win_id%>",returnValue);
  69. }
  70. else {
  71. dlgErrorMsg(resultObj);
  72. }
  73. // document.form1.isSubmit = false;
  74. }
  75. }
  76. catch(errorObject) {
  77. showErrorDlg("doResult()", errorObject);
  78. }
  79. }
  80. </SCRIPT>
  81. <SCRIPT LANGUAGE="JavaScript">
  82. <!--
  83. function doSetPop(signeddata){
  84. $("#signeddata").val(signeddata);
  85. var f = document.form1;
  86. submitXmlRequest("/portal/bid/BidGiveupPop_form.screen", "BIDGIVEUP_SAVE", f);
  87. }
  88. function SignData()
  89. {
  90. var VendorCd = "<%=user.get("CORP_REG_NO")%>";
  91. var sColumDelimiter = "┃";
  92. var sContHash= $('#BID_NO').val() +sColumDelimiter
  93. + $('#BID_DEG').val() +sColumDelimiter
  94. + VendorCd +sColumDelimiter;
  95. window.parent.doSignData(VendorCd, sContHash);
  96. /* unisign.SignDataNVerifyVID( sContHash, null, VendorCd, function( resultObject ) {
  97. if( !resultObject || resultObject.resultCode != 0 ){
  98. if( resultObject.resultCode == '14208'){
  99. alert("주민번호/사업자번호를 확인할 수 없는 인증서입니다.");
  100. } else if( resultObject.resultCode == '999'){
  101. alert("사용자 DN 선택이 취소 되었습니다.");
  102. } else {
  103. alert( resultObject.resultMessage);
  104. }
  105. return false;
  106. }
  107. var signeddata = resultObject.signedData;
  108. // var userdn = resultObject.certAttrs.subjectName;
  109. $("#signeddata").val(signeddata);
  110. return true;
  111. }); */
  112. }
  113. //-->
  114. </SCRIPT>
  115. <FORM name="form1" method="post">
  116. <TABLE width="580px">
  117. <INPUT type="hidden" name="BID_NO" value="<%=BID_NO%>">
  118. <INPUT type="hidden" name="BID_DEG" value="<%=BID_DEG%>">
  119. <INPUT type="hidden" name="fevent" id="fevent" value="">
  120. <INPUT type="hidden" name="RNNCREASON" id="RNNCREASON" value="">
  121. <INPUT type="hidden" name="signeddata" id="signeddata" value="">
  122. <input type="hidden" name="hdn_cur_ymd" value="<%=nowTime%>">
  123. <TR height="2"><TD colspan="2"></TD></TR>
  124. <TR height="25">
  125. <TD>
  126. <table id="t1" width="100%" border="0" cellspacing="0" cellpadding="0" class="ftit_table">
  127. <colgroup>
  128. <col width="*" />
  129. <col width="150" />
  130. </colgroup>
  131. <tr>
  132. <th>
  133. </th>
  134. <td align="right">
  135. <span class="btnSearch center"><a href="javascript:giveup();">입찰포기</a></span>
  136. </td>
  137. </tr>
  138. </table>
  139. </TD>
  140. </TR>
  141. </TABLE>
  142. <!-- 버튼 영역 : 시작 -->
  143. <TABLE class="form-table">
  144. <TR height="100">
  145. <TH width="15%" class="required">포기사유</TH>
  146. <TD width="35%" class="search_table_data" >
  147. <textarea name="RNNC_REASON" id="RNNC_REASON" style="width:98%; height:140px; overflow-y:auto" maxlength="1000" class="input byteChk ctrlTarget"></textarea>
  148. </TD>
  149. </TR>
  150. </TABLE>
  151. </FORM>