rejectionPopup.jsp 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <%--
  2. - FileName : rejectionPopup.jsp
  3. - Author(s) : ok
  4. - Date : 2014.06.26
  5. - Copyright : Copyright (c) 2013 www.udapsoft.co.kr, Inc.
  6. - Description: 서급 반려등록 팝업
  7. --%>
  8. <%@ page contentType="text/html; charset=utf-8" %>
  9. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  10. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  11. <%@ page import="kr.co.hsnc.common.util.*"%>
  12. <%@ page import="kr.co.hsnc.common.sql.*" %>
  13. <%@ page import="kr.co.hsnc.common.util.Formatter"%>
  14. <%@ include file="/jsp/work/taglib.jsp" %>
  15. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  16. <%
  17. ctx.init(request, response);
  18. HandlerStorage storage = ctx.getHandlerStorage();
  19. ValueObject params = storage.getParams();
  20. ValueObject rejectionData = storage.getValueObject("rejectionData"); //반려사유
  21. %>
  22. <SCRIPT language="JavaScript">
  23. //document.body.onresize = addEvent( document.body.onresize, "doResizeSheet(document.all.sheet1 )");
  24. document.body.onload = doPageInit;
  25. //키처리
  26. document.onkeydown = function(){
  27. //ESC 창닫기
  28. if(event.keyCode == "27"){
  29. window.close();
  30. }
  31. };
  32. /*****************************************************************************************************************************************************/
  33. // Global Variable 선언
  34. /*****************************************************************************************************************************************************/
  35. //var argObj = window.dialogArguments;
  36. //var title = argObj.title;
  37. //var acmp_id = argObj.acmp_id;
  38. //var buildName = argObj.buildName ;
  39. function doResult(resultObj) {
  40. try {
  41. document.form01.isSubmit = false;
  42. if( resultObj.getRequestEvent() == "SAVE_DATA" ) {
  43. alert("반려 되었습니다.");
  44. document.form01.resultFlg.value = "1";
  45. doClose();
  46. }
  47. } catch(errorObject) {
  48. showErrorDlg("doResult()", errorObject);
  49. }
  50. }
  51. function doPageInit() {
  52. //반려일 설정
  53. //setDate();
  54. }
  55. function setDate(){
  56. //var newDay = new Date( get_year(), get_month(), get_day());
  57. //var lastDay = newDay.getDate();
  58. var rejecDate = get_year() +'-'+ get_month() +'-'+ get_day();
  59. var f = document.form01;
  60. if(f.rtnDate.value == ""){
  61. f.rtnDate.value = rejecDate;
  62. }
  63. }
  64. function doSave() {
  65. var f = document.form01;
  66. var rtnReason = f.rtnReason.value.replace(/(^\s*)|(\s*$)/gi, "");
  67. if(rtnReason.length == 0){
  68. alert("반려사유를 입력해주세요.");
  69. f.rtnReason.focus();
  70. return;
  71. }
  72. //반려사유 check maxlength 1000으로 제한
  73. /* if(f.rtnReason.value.length > 10){
  74. alert("반려사유는 1000자 이내로 제한됩니다.");
  75. f.rtnReason.focus();
  76. return;
  77. } */
  78. f.rtnReason1.value = f.rtnReason.value.replace( /\n/gi, '<br//>');
  79. if(confirm("반려사유를 등록 하시겠습니까?")){
  80. submitXmlRequest("/payment/outside/RejectionPopup_form.screen", "SAVE_DATA", f, "SUCCESS");
  81. }
  82. }
  83. function doClose(){
  84. /* var retArray = new Array();
  85. retArray[0] = document.form01.resultFlg.value; //저장차리 여부
  86. window.returnValue = retArray;
  87. self.close(); */
  88. parent.RejectionPopupClose();
  89. }
  90. </SCRIPT>
  91. <modular:search id="form01">
  92. <modular:key id="fevent" />
  93. </modular:search>
  94. <FORM name="form01" method="post" style="width:580px">
  95. <INPUT type="hidden" name="fevent" id="fevent" value="">
  96. <INPUT type="hidden" name="prepayId" value="<%=rejectionData.get("PREPAY_ID") %>">
  97. <INPUT type="hidden" name="resultFlg" value="0">
  98. <INPUT type="hidden" name="pageDiv" id="pageDiv" value="<%=params.get("pageDiv") %>">
  99. <INPUT type="hidden" name="rtnReason1" id="rtnReason1" value="">
  100. <!-- SMS처리용 -->
  101. <INPUT type='hidden' id="resUserName" name="resUserName" value="<%=rejectionData.get("RES_USER_NAME") %>"> <!-- 계약담당자 -->
  102. <INPUT type='hidden' id="resHp" name="resHp" value="<%=rejectionData.get("RES_HP") %>"> <!-- 계약담당자 핸드폰번호 -->
  103. <INPUT type='hidden' id="resEmail" name="resEmail" value="<%=rejectionData.get("RES_EMAIL") %>"> <!-- 계약담당자 이메일 -->
  104. <INPUT type='hidden' id="resDivision" name="resDivision" value="<%=rejectionData.get("RES_DIVISION") %>">
  105. <INPUT type='hidden' id="conDocNo" name="conDocNo" value="<%=rejectionData.get("CON_DOC_NO") %>"> <!-- 발주계약번호 -->
  106. <INPUT type='hidden' id="deptName" name="deptName" value="<%=rejectionData.get("DEPT_NAME") %>"> <!-- 현장명 -->
  107. <INPUT type='hidden' id="buildName" name="buildName" value="<%=rejectionData.get("BUILD_NAME") %>"> <!-- 계약명 -->
  108. <INPUT type='hidden' id="memberName" name="memberName" value="<%=rejectionData.get("CORP_KOR") %>"> <!-- 계약업체명 -->
  109. <INPUT type='hidden' id="userName" name="userName" value="<%=rejectionData.get("USER_NAME") %>"> <!-- 업체담당자명 -->
  110. <INPUT type='hidden' id="hp" name="hp" value="<%=rejectionData.get("HP") %>"> <!-- 업체담당자 핸드폰번호 -->
  111. <INPUT type='hidden' id="eMail" name="eMail" value="<%=rejectionData.get("EMAIL") %>"> <!-- 업체담당자 이메일 -->
  112. <!-- 제목 및 버튼 -->
  113. <table width="100%">
  114. <colgroup>
  115. <col width="150" />
  116. <col width="*" />
  117. </colgroup>
  118. <tr>
  119. <th>
  120. <div align="left" id="title">
  121. <ul>
  122. <li></li>
  123. </ul>
  124. </div>
  125. </th>
  126. <td align="right">
  127. <span class="btnSearch center"><a href="javascript:doSave();" id="btnSearch">반려</a></span>
  128. <!-- <span class="btnSearch center"><a href="javascript:doClose();" id="btnClose">닫기</a></span> -->
  129. </td>
  130. </tr>
  131. </table>
  132. <TABLE class="form-table">
  133. <colgroup>
  134. <col width="150" />
  135. <col width="85%" />
  136. </colgroup>
  137. <tr height="150">
  138. <th>반려사유</th>
  139. <TD>
  140. <textarea name="rtnReason" id="rtnReason" style="width:98%; height:140px; overflow-y:auto" maxlength="1000" class="input byteChk ctrlTarget"><%=rejectionData.get("RTN_REASON") %></textarea>
  141. </TD>
  142. </TR>
  143. </TABLE>
  144. </FORM>