123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- <%--
- - FileName : SuppNotiDetail.jsp
- - Author : gyeongmo an
- - Date : 2014.07.18
- - Copyright : Copyright (c) 2014 www.udapsoft.co.kr, Inc.
- - All rights reserved.
- - 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.sql.*" %>
- <%@ page import="kr.co.udapsoft.ebid.buyer.common.file.FileManager" %>
- <%@ include file="/jsp/work/taglib.jsp" %>
- <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
- <%
- ctx.init(request, response);
- String fevent = ctx.get("fevent");
- HandlerStorage storage = ctx.getHandlerStorage();
- ValueObject params = storage.getParams();
- ValueObject user = storage.getUser();
-
- String acct_id = "";
- if(user != null) {
- acct_id = user.get("acct_id");
- }
-
- ValueObject vo = storage.getValueObject("suppNotiDetailRowSet");
- String notiDy = vo.get("noti_dy").substring(0, 4) + "-" + vo.get("noti_dy").substring(4, 6) + "-" +
- vo.get("noti_dy").substring(6, 8);
-
- // 레이어로 띄웠는지 체크
- String layerYn = params.get("layerYn");
- String tempWidth= "";
- if(layerYn.equals("Y")) {
- tempWidth="770px";
- } else {
- tempWidth="100%";
- }
-
- String pop_win_id = "";
- if(!"".equals(params.get("pop_win_id"))) {
- pop_win_id = params.get("pop_win_id");
- }
- %>
- <SCRIPT language="JavaScript">
- function _onReady(){
- var f = document.form1;
-
- jQuery("#btnList").click(function() {
- var f = document.form1;
-
- f.fevent.value ="";
- f.layerYn.value = '<%=layerYn%>';
- f.pop_win_id.value = '<%=pop_win_id%>';
- f.action = "/supplier/portal/center/SuppNotiListPopup.screen";
- f.target = "_self";
- f.submit();
- });
-
- jQuery("#btnClose").click(function() {
- setTimeout(function(){parent.searchNoticeClose(null);},100);
- });
- }
-
- //첨부파일
- function doAttachFile(obj) {
- if(obj.value==''){
- alert("저장을 한 후 파일을 첨부할 수 있습니다.");
- }
- else if(obj.value != ''){
- viewFileListNew('NOTI_DETAIL', obj.value, document.form1.p_AttachFile, "N", "");
- }
- }
-
- function doAttachFileDiv(obj) {
- if(obj==''){
- alert("저장을 한 후 파일을 첨부할 수 있습니다.");
- }
- else if(obj != ''){
- viewFileListNew('NOTI_DETAIL', obj.value, document.getElementById("attach_file_view"), "N", "");
- }
- }
-
- function doDownFile(fileId){
- var url="/common/file/FileDownloadServlet";
- url += "?file_id=" + fileId;
-
- window.open(url, "_fileDown", "toolbar=no, width=400, height=100, top=500, left=400, toolbar=no,directories=no,status=no,scrollbars=yes,resize=no,menubar=no,target=new")
- }
-
- /**
- * 첨부파일 예약 함수
- */
- function fileDown(file_id){
- var url="/common/file/FileDownloadServlet";
- url += "?file_id=" + file_id;
-
- //window.open(url, "_fileDown", "toolbar=no, width=400, height=100, top=500, left=400, toolbar=no,directories=no,status=no,scrollbars=yes,resize=no,menubar=no,target=new")
-
- window.open("", "_fileDown", "toolbar=no, width=400, height=100, top=500, left=400, toolbar=no,directories=no,status=no,scrollbars=yes,resize=no,menubar=no,target=new")
-
- var fd = document.getElementById("form_filedown");
- fd.target = "_fileDown";
- fd.file_id.value = file_id;
- fd.submit();
- }
-
-
- </script>
- <form id="form1" name="form1" method="post" modular:type="search">
- <STYLE>
- BODY {
- OVERFLOW-X : HIDDEN ;
- }
- </STYLE>
- <INPUT type="hidden" name="fevent" value="<%= params.get("fevent") %>">
- <INPUT type="hidden" name="write_id" value="<%=acct_id%>">
- <INPUT type="hidden" name="seq" value="<%=vo.get("seq")%>">
- <INPUT type="hidden" name="supp_open_yn_value">
- <INPUT type="hidden" name="layerYn">
- <INPUT type="hidden" name="pop_win_id">
- <!-- 제목 및 버튼 -->
- <table width="100%">
- <colgroup>
- <col width="500" />
- <col width="*" />
- </colgroup>
- <tr>
- <td align="right">
- <span class="btnSearch center"><a href="javascript:void(0);" id="btnList">목록</a></span>
- <%if(layerYn.equals("Y")) { %>
- <span class="btnSearch center"><a href="javascript:void(0);" id="btnClose">닫기</a></span>
- <%} %>
- </td>
- </tr>
- </table>
-
- <TABLE class="form-table">
- <col width="18%">
- <col width="44%">
- <col width="18%">
- <col width="20%">
- <tr>
- <th style="text-align: left;">
- 제목
- </th>
- <td>
- <%= InputText.get("supp_noti_title", vo.get("title"), 45, 30, "class=input_blank, readOnly=white, string, left, tabIndex=-1", "string") %>
- </td>
- <th style="text-align: left;">
- 공지일자
- </th>
- <td>
- <%= InputText.get("notiDy", notiDy, 45, 30, "class=input_blank, readOnly=white, string, left, tabIndex=-1", "string") %>
- </td>
- </tr>
- <tr>
- <th style="text-align: left;">
- 작성자
- </th>
- <td colspan="3">
- <%= InputText.get("write_nm", vo.get("write_nm"), 45, 30, "class=input_blank, readOnly=white, string, left, tabIndex=-1", "string") %>
- </td>
- </tr>
- <tr>
- <th style="text-align: left;">
- 내용
- </th>
- <td colspan="3" >
- <div id="content" style="overflow:auto;width:100%;height:220px;min-height:200px;">
- <%=HTMLCvt.cvtHTML(vo.get("content")) %>
- </div>
- </td>
- </tr>
- <tr>
- <th style="text-align: left;">
- 첨부파일
- </th>
- <td colspan="3">
- <div id="attach_file_view" class="attach_file_view" style="overflow:auto;width:100%;height:60px;min-height:60px;">
- <!-- 첨부 파일 화면에 바로보일때 사용 -->
- <%=FileManager.getFileListForDiv("NOTI_DETAIL", vo.get("seq")) %>
- </div>
- </td>
- </tr>
- </table>
- </form>
- <FORM id="form_filedown" name="form_filedown" method="get" action="/common/file/FileDownloadServlet" style="display:none">
- <input type="hidden" id="file_id" name="file_id"/>
- </FORM>
|