OutSupplierEmail.jsp 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <%--
  2. - FileName : prepayRequestList.jsp
  3. - Author(s) : chj
  4. - Date : 2014.07.28
  5. - Copyright : Copyright (c) 2014 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 user = storage.getUser();
  21. String event = storage.getEvent();
  22. ValueObject vo = storage.getValueObject("emailVo");
  23. String pageDiv = params.get("pageDiv"); //1:조달 2:포탈
  24. %>
  25. <SCRIPT language="JavaScript">
  26. function _onReady(){
  27. jQuery("#btnSave").click(function(){
  28. var f = document.form1;
  29. submitXmlRequest("/supplier/outside/OutSupplierEmail_form.screen", "FORM_UPDATE", f);
  30. });
  31. jQuery("#btnTest").click(function(){
  32. var f = document.form1;
  33. submitXmlRequest("/supplier/outside/OutSupplierEmail_form.screen", "FORM_TEST", f);
  34. });
  35. jQuery("#btnClose").click(function(){
  36. parent.SubemailClose();
  37. });
  38. $("textarea").keydown(function(e) {
  39. if(e.keyCode === 9) { // tab was pressed
  40. // get caret position/selection
  41. var start = this.selectionStart;
  42. var end = this.selectionEnd;
  43. var $this = $(this);
  44. var value = $this.val();
  45. // set textarea value to: text before caret + tab + text after caret
  46. $this.val(value.substring(0, start)
  47. + "\t"
  48. + value.substring(end));
  49. // put caret at right position again (add one for the tab)
  50. this.selectionStart = this.selectionEnd = start + 1;
  51. // prevent the focus lose
  52. e.preventDefault();
  53. }
  54. });
  55. }
  56. function pageinit(){
  57. }
  58. function doResult(resultObj) {
  59. try {
  60. if( resultObj.getRequestEvent() == "FORM_UPDATE") {
  61. if( resultObj.getSuccess() ) {
  62. alert("저장되었습니다.");
  63. }
  64. else {
  65. dlgErrorMsg(resultObj);
  66. }
  67. document.form1.isSubmit = false;
  68. }else if(resultObj.getRequestEvent() == "FORM_TEST"){
  69. if( resultObj.getSuccess() ) {
  70. alert("발송되었습니다.");
  71. }
  72. else {
  73. dlgErrorMsg(resultObj);
  74. }
  75. document.form1.isSubmit = false;
  76. }
  77. }
  78. catch(errorObject) {
  79. showErrorDlg("doResult()", errorObject);
  80. }
  81. }
  82. </SCRIPT>
  83. <modular:search id="form1">
  84. <modular:key id="fevent" />
  85. </modular:search>
  86. <BODY>
  87. <form id="form1" name="form1" method="post" modular:type="search">
  88. <INPUT type="hidden" name="fevent" id="fevent" value="">
  89. <INPUT type="hidden" name="pageDiv" id="pageDiv" value="<%=params.get("pageDiv")%>"> <!-- //1:조달 2:포탈 -->
  90. <INPUT type="hidden" name="userCorpId" id="userCorpId" value="<%=user.get("CORP_ID")%>">
  91. <!-- 검색조건 영역 : 시작 -->
  92. <table class="search-form-table" style="width: 100%">
  93. <col width="10%">
  94. <col width="70%">
  95. <col width="20%">
  96. <TR height="25">
  97. <th>제목</th>
  98. <TD>
  99. <input type="text" name="p_title" id="p_title" style="width: 86%;" class="input byteChk ctrlTarget" value="<%=vo.get("title")%>"/>
  100. </TD>
  101. <TD class="button" style="text-align: right;">
  102. <!-- 검색버튼 영역 : 시작 -->
  103. <span class="btnSearch center"><a href="javascript:void(0);" id="btnSave">저장</a></span>
  104. <span class="btnSearch center"><a href="javascript:void(0);" id="btnTest">테스트</a></span>
  105. <span class="btnSearch center"><a href="javascript:void(0);" id="btnClose">닫기</a></span>
  106. &nbsp;&nbsp;&nbsp;
  107. </TD>
  108. </TR>
  109. <TR height="200">
  110. <TD colspan="3">
  111. <textarea name="email" id="email" style="width:98%; height:200px; overflow-y:auto" class="input byteChk ctrlTarget"><%=vo.get("SEND_EMAIL").replace("&","&amp;") %></textarea>
  112. </TD>
  113. </TR>
  114. </TABLE>
  115. </FORM>
  116. </body>