123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- <%--
- - FileName : prepayRequestList.jsp
- - Author(s) : chs
- - Date : 2023.04.28
- - Copyright : Copyright (c) 2014 www.udapsoft.co.kr, Inc.
- - Description: 견적입찰 담당자 메일 작성
- --%>
- <%@ page contentType="text/html; charset=utf-8" %>
- <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
- <%@ page import="com.udapsoft.waf.common.ui.*" %>
- <%@ page import="kr.co.hsnc.common.util.*"%>
- <%@ page import="kr.co.hsnc.common.sql.*" %>
- <%@ page import="kr.co.hsnc.common.util.Formatter"%>
- <%@ include file="/jsp/work/taglib.jsp" %>
- <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
- <%
- ctx.init(request, response);
- HandlerStorage storage = ctx.getHandlerStorage();
- ValueObject params = storage.getParams();
- ValueObject user = storage.getUser();
- String event = storage.getEvent();
-
- ValueObject vo = storage.getValueObject("emailVo");
- String pageDiv = params.get("pageDiv"); //1:조달 2:포탈
-
- %>
- <SCRIPT language="JavaScript">
-
- function _onReady(){
- jQuery("#btnSave").click(function(){
- var f = document.form1;
- submitXmlRequest("/supplier/outside/QuotSupplierEmail_form.screen", "FORM_EMAIL_UPDATE", f);
- });
- jQuery("#btnTest").click(function(){
- var f = document.form1;
- submitXmlRequest("/supplier/outside/QuotSupplierEmail_form.screen", "FORM_EMAIL_TEST", f);
- });
-
- jQuery("#btnClose").click(function(){
- parent.SubemailClose();
- });
-
- $("textarea").keydown(function(e) {
- if(e.keyCode === 9) { // tab was pressed
- // get caret position/selection
- var start = this.selectionStart;
- var end = this.selectionEnd;
- var $this = $(this);
- var value = $this.val();
- // set textarea value to: text before caret + tab + text after caret
- $this.val(value.substring(0, start)
- + "\t"
- + value.substring(end));
- // put caret at right position again (add one for the tab)
- this.selectionStart = this.selectionEnd = start + 1;
- // prevent the focus lose
- e.preventDefault();
- }
- });
-
- }
-
- function pageinit(){
- }
-
- function doResult(resultObj) {
- try {
- if( resultObj.getRequestEvent() == "FORM_EMAIL_UPDATE") {
- if( resultObj.getSuccess() ) {
- alert("저장되었습니다.");
- }
- else {
- dlgErrorMsg(resultObj);
- }
- document.form1.isSubmit = false;
- }else if(resultObj.getRequestEvent() == "FORM_EMAIL_TEST"){
- if( resultObj.getSuccess() ) {
- alert("발송되었습니다.");
- }
- else {
- dlgErrorMsg(resultObj);
- }
- document.form1.isSubmit = false;
- }
- }
- catch(errorObject) {
- showErrorDlg("doResult()", errorObject);
- }
- }
-
- </SCRIPT>
- <modular:search id="form1">
- <modular:key id="fevent" />
- </modular:search>
- <BODY>
- <form id="form1" name="form1" method="post" modular:type="search">
- <INPUT type="hidden" name="fevent" id="fevent" value="">
- <INPUT type="hidden" name="pageDiv" id="pageDiv" value="<%=params.get("pageDiv")%>"> <!-- //1:조달 2:포탈 -->
- <INPUT type="hidden" name="userCorpId" id="userCorpId" value="<%=user.get("CORP_ID")%>">
-
- <!-- 검색조건 영역 : 시작 -->
- <table class="search-form-table" style="width: 100%">
- <col width="10%">
- <col width="70%">
- <col width="20%">
- <TR height="25">
- <th>제목</th>
- <TD>
- <input type="text" name="p_title" id="p_title" style="width: 86%;" class="input byteChk ctrlTarget" value="<%=vo.get("title")%>"/>
- </TD>
- <TD class="button" style="text-align: right;">
- <!-- 검색버튼 영역 : 시작 -->
- <span class="btnSearch center"><a href="javascript:void(0);" id="btnSave">저장</a></span>
- <span class="btnSearch center"><a href="javascript:void(0);" id="btnTest">테스트</a></span>
- <span class="btnSearch center"><a href="javascript:void(0);" id="btnClose">닫기</a></span>
-
- </TD>
- </TR>
- <TR height="200">
- <TD colspan="3">
- <textarea name="email" id="email" style="width:98%; height:200px; overflow-y:auto" class="input byteChk ctrlTarget"><%=vo.get("SEND_EMAIL").replace("&","&") %></textarea>
- </TD>
- </TR>
- </TABLE>
- </FORM>
- </body>
|