You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1212 lines
56 KiB
1212 lines
56 KiB
|
|
<%@page import="java.util.Map"%> |
|
<% |
|
/************************************************************@@ |
|
* Program Name : report_regist.jsp |
|
* Description : /보고자/내문서함/임시보고함/보고자료 변경 |
|
* Author : 기현테크 |
|
* Create Date : 2010-11-27 |
|
* History : |
|
@@************************************************************/ |
|
%> |
|
|
|
<%@ page contentType="text/html; charset=euc-kr" |
|
import="java.net.URLEncoder" |
|
import="kr.co.kihyun.beans.user.HttpSSOLogin" |
|
import="java.net.*" |
|
import="kr.co.kihyun.util.MUtil" |
|
import="kr.co.kihyun.lang.MString" |
|
import="kr.co.kihyun.lang.Encoder" |
|
import="kr.co.kihyun.lang.MInteger" |
|
import="kr.co.kihyun.lang.MLong" |
|
import="kr.co.kihyun.text.html.ServletUtil" |
|
import="kr.co.kihyun.moumi.MoumiConfig" |
|
import="kr.co.kihyun.moumi.report.MReport" |
|
import="kr.co.kihyun.moumi.report.MReportData" |
|
import="kr.co.kihyun.moumi.report.stat.StaticMReport" |
|
import="kr.co.kihyun.moumi.doc.table.MTable" |
|
import="kr.co.kihyun.moumi.doc.table.item.MItem" |
|
import="kr.co.kihyun.moumi.report.MReportData" |
|
import="kr.co.kihyun.beans.totsys.report.ReportModifyManager" |
|
import="kr.co.kihyun.beans.totsys.report.ReportDataSet" |
|
import="kr.co.kihyun.text.javascript.JavaScriptUtil" |
|
import="kr.co.kihyun.beans.totsys.doc.table.item.ItemList" |
|
import="kr.co.kihyun.beans.totsys.menu.MenuBean" |
|
import="kr.co.kihyun.beans.user.User" |
|
import="kr.co.kihyun.text.html.TagFilter" |
|
import="kr.co.kihyun.lang.MLong" |
|
import="javax.jdo.PersistenceManager" |
|
import="javax.jdo.Transaction" |
|
import="kr.co.kihyun.beans.entity.util.*" |
|
import="kr.co.kihyun.service.*" import="kr.co.kihyun.service.vo.*" |
|
import="kr.co.kihyun.beans.entity.*"%> |
|
<%@ page import="java.util.Map.Entry"%> |
|
<%@ page import="java.util.List"%> |
|
|
|
<%@ include file="/totsys/common/inc/sec/secure.inc.jsp"%> |
|
|
|
<% |
|
PersistenceManager pm = new MPersistenceManager(PMF.get().getPersistenceManager()); |
|
Transaction tx = pm.currentTransaction(); |
|
try{ |
|
/********** session내의 userId **********/ |
|
String usID = HttpSSOLogin.getLoginID(request); |
|
String dtID = HttpSSOLogin.getDeptID(request); |
|
String dpName = HttpSSOLogin.getDeptName(request); |
|
String type = MString.checkNull(request.getParameter("type")); |
|
String reportType =MString.checkNull(request.getParameter("reportType")); |
|
String totperInfo = clearXSS(MString.checkNull(request.getParameter("totperInfo")),""); |
|
String tmpStrMagam = clearXSS(MString.checkNull(request.getParameter("tmpStrMagam")),""); |
|
String doctName=MString.checkNull(request.getParameter("doctName")); |
|
String tempYymmddhh = tmpStrMagam; |
|
tempYymmddhh = tempYymmddhh.replaceAll("-", ""); |
|
tempYymmddhh = tempYymmddhh.replaceAll(" ", ""); |
|
tempYymmddhh = tempYymmddhh.replaceAll(":", ""); |
|
//tempYymmddhh = tempYymmddhh.substring(0, 10); |
|
|
|
/********* Parameter *********/ |
|
Long reportID = MLong.parseLong(request.getParameter("reportID"),null); |
|
int rowCount = MInteger.parseInt(request.getParameter("rowCount"), -1); |
|
int delRowNum = MInteger.parseInt(request.getParameter("delRowNum"), 1); |
|
String modifyMode = clearXSS(request.getParameter("modifyMode"),""); |
|
//String copyForm = MString.checkNull( Encoder.toJava(request.getParameter("copyForm")) ); |
|
String copyForm = URLDecoder.decode(MString.checkNull(request.getParameter("copyForm")), "UTF-8"); |
|
String tableRows = MString.checkNull( Encoder.toJava(request.getParameter("tableRows")) ); |
|
String tables = MString.checkNull( Encoder.toJava(request.getParameter("tables")) ); |
|
|
|
String strPage = clearXSS(request.getParameter("strPage"),""); |
|
String findOption = clearXSS(request.getParameter("findOption"),null); |
|
String findWord = clearXSS(Encoder.toJava(request.getParameter("findWord")),null); |
|
String procMode = MString.checkNull(request.getParameter("proc_mode")); |
|
|
|
if( MString.isNull(procMode) ) { |
|
TotReport totReport = pm.getObjectById(TotReport.class, reportID); |
|
rowCount = rowCount <= 0 ? totReport.getRowCount()+1 : rowCount; |
|
if(tableRows.equals("") || tableRows==null){ |
|
String datas = JavaScriptUtil.toCRLF(totReport.getData()); |
|
|
|
int[] tableRowList = MReportData.getRowNumList(datas); |
|
|
|
for(int r=0; r<tableRowList.length; r++){ |
|
if(r==0) |
|
tableRows=Integer.toString(tableRowList[r]); |
|
else |
|
tableRows=tableRows+","+Integer.toString(tableRowList[r]); |
|
} |
|
} |
|
|
|
// ReportModifyManager reportModifyManager = new ReportModifyManager(request, totReport.getTotDoc(), dtID, usID, rowCount, tableRows); |
|
ReportModifyManager reportModifyManager = new ReportModifyManager(request, totReport, totReport.getTotDoc(), dtID, usID, rowCount, tableRows); |
|
|
|
|
|
int tableType = reportModifyManager.getTableType(); |
|
String tableTypes = reportModifyManager.getTableTypes(); |
|
rowCount = reportModifyManager.getRowCount(); |
|
String insertForm = reportModifyManager.getInsertForm(); |
|
String baseInsertForm = reportModifyManager.getInsertForm(); |
|
String putValScript = reportModifyManager.getPutValScript(); |
|
String changeAllScript = reportModifyManager.getChangeAllScript(); |
|
String inDataJavaScript = reportModifyManager.getInDataJavaScript(); |
|
|
|
if(tableTypes.indexOf("1")==-1){ |
|
tableType = MTable.STATIC; |
|
}else{ |
|
tableType = MTable.DYNA; |
|
} |
|
|
|
/********** report view ***********/ |
|
Long repDocID = totReport.getRepTotDoc() == null ? null : totReport.getRepTotDoc().getId(); |
|
Long downDocID = totReport.getSlaveTotDoc() == null ? null : totReport.getSlaveTotDoc().getId(); |
|
|
|
String realFileName = ""; |
|
String viewFileName = ""; |
|
String attachFileSize = ""; |
|
for (String fileName : totReport.getAttachments().keySet()) { |
|
viewFileName += fileName + ";"; |
|
realFileName += fileName + ";"; |
|
|
|
// 각 첨부파일의 크기(byte). 2014.09.03 by youngjun cho. |
|
// 전체 첨부파일의 허용 크기를 체크할때 사용한다. |
|
attachFileSize += Integer.toString(totReport.getAttachments().get(fileName).size()) + ";"; |
|
} |
|
|
|
String comment = MString.checkNull(totReport.getNote()); |
|
|
|
////////////////////////////////// 동적표에서만 사용 ////////////////////////////////// |
|
String addJavaScript = ""; |
|
String hiddenData = ""; |
|
String insertInputCellName = ""; |
|
|
|
if(tableType == MTable.DYNA){ |
|
addJavaScript = reportModifyManager.getAddJavaScript(); |
|
hiddenData = reportModifyManager.getHiddenData(); |
|
insertInputCellName = reportModifyManager.getInsertInputCellName(); |
|
} |
|
|
|
//======================================서식정합성 체크 시 사용======================================= |
|
if( modifyMode.equals("addRow") || modifyMode.equals("delRow") ) { |
|
session.setAttribute("insertInputCellName", insertInputCellName); |
|
} |
|
|
|
String insertInputCellNameFromSession = (String)session.getAttribute("insertInputCellName"); |
|
if( insertInputCellNameFromSession == null ) insertInputCellNameFromSession = insertInputCellName; |
|
//================================================================================================== |
|
|
|
reportModifyManager=null; |
|
session.setAttribute("modifySuccTargetURI", "/totsys/repoper/mydocbox/tempbox/report_list.jsp?reportType="+reportType); |
|
//System.out.println("/totsys/repoper/mydocbox/tempbox/report_list.jsp?reportType="+reportType); |
|
if(!copyForm.equals("")){ |
|
ReportDataSet reportDataSet = new ReportDataSet(); |
|
insertForm = reportDataSet.setForm(insertForm,copyForm); |
|
if(reportDataSet.getChange()==0){ |
|
%> |
|
<script>alert('<%=MoumiConfig.getMessageBundle().getString("moumi.message.popup.formError")%>')</script> |
|
<% |
|
}else{ |
|
inDataJavaScript=""; |
|
} |
|
} |
|
|
|
/*********** append file name vlaues ***********/ |
|
String[] realFileNameList = realFileName.split(";"); |
|
String[] viewFileNameList = viewFileName.split(";"); |
|
|
|
String boardGroupID = Category.ID_TOT_DOC_COMMENT; |
|
String url = clearXSS(request.getParameter("url"),""); |
|
|
|
if(url == null){ url = ""; } |
|
|
|
String boardContents = ""; |
|
String svrFilenames = ""; |
|
int visit = 0; |
|
|
|
Board totperComment = totReport.getTotDoc().getBoard(); |
|
|
|
if(totperComment != null){ |
|
// tx.begin(); |
|
boardContents=TagFilter.convertSpace(totperComment.getContents()); |
|
for (Entry<String, List<Byte>> entry : totperComment.getAttachments().entrySet()) { |
|
svrFilenames += entry.getKey() + ";"; |
|
} |
|
// visit = totperComment.getVisit(); |
|
// totperComment.setVisit(visit+1); |
|
// pm.makePersistent(totperComment); |
|
// tx.commit(); |
|
} |
|
|
|
// 연계수정 |
|
String memo = MString.checkNull(totReport.getRecentHistory() == null ? null : totReport.getRecentHistory().getMemo()); |
|
|
|
|
|
|
|
Long docId=totReport.getTotDoc().getId(); |
|
%> |
|
|
|
<HTML> |
|
<HEAD> |
|
<TITLE><%=MoumiConfig.getTitle()%></TITLE> |
|
<link rel="stylesheet" href="/totsys/common/css/text.css" type="text/css"> |
|
<link rel="stylesheet" href="/totsys/common/css/tabs.css" type="text/css"> |
|
<script src="/totsys/common/js/rollover.js"></script> |
|
<script src="/totsys/common/js/util.js"></script> |
|
<script src="/totsys/common/js/calendar.js"></script> |
|
<script src="/totsys/common/js/drag.js"></script> |
|
<script src="/totsys/common/js/popup.js"></script> |
|
<script type="text/javascript" src="/test/jquery-1.6.4.js"></script> |
|
<script type="text/javascript" src="/totsys/common/js/jquery.fixFormTable.js"></script> |
|
<link rel="stylesheet" href="/totsys/common/css/kecttep.css" type="text/css"> |
|
<link rel="stylesheet" href="/totsys/common/css/SquareButtons.css" type="text/css"> |
|
<script language="javascript"> |
|
num = <%= viewFileNameList.length %>; |
|
usrFilenames = "<%= viewFileName %>"; |
|
svrFilenames = "<%= realFileName %>"; |
|
fileInfos = ""; |
|
userFilePath = ""; |
|
//======================================서식정합성체크 시 사용======================================= |
|
var cellNames = "<%=insertInputCellNameFromSession%>"; |
|
var validDate = /^(19|20)\d{2}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[0-1])$/; |
|
var validNum = /^[-]?\d+(?:[.]\d+)?$/; |
|
//================================================================================================== |
|
function nextblur(type) { |
|
var items = "<%=insertInputCellName%>"; |
|
var count = 0; |
|
splitItems = items.split(","); |
|
|
|
for(i=0; i<splitItems.length; i++){ |
|
if(splitItems[i] == type) |
|
break; |
|
count++; |
|
} |
|
if(splitItems.length <= count+1) |
|
dform[type].blur(); |
|
else |
|
dform[splitItems[count+1]].focus(); |
|
} |
|
|
|
function checkFile(Filename, Filename2){ |
|
mkFileList(Filename, Filename2, 'add'); |
|
num++; |
|
} |
|
|
|
function mkFileList(Filename, Filename2, size, mode) { |
|
var tmpSvrFilenames = ""; |
|
var tmpUsrFilenames = ""; |
|
var tmpFileInfos = ""; |
|
//var nList4 = ""; |
|
|
|
if (!mode){ |
|
mode = "add"; |
|
} |
|
|
|
subFilename = Filename; |
|
subFilename2 = cut_str( 1, Filename2, "/"); |
|
subinfo = size; |
|
|
|
usrFilenameList = usrFilenames.split(";", num); |
|
svrFilenameList = svrFilenames.split(";", num); |
|
fileInfoList = fileInfos.split(";", num); |
|
|
|
if (mode == "add") { |
|
if (svrFilenames && usrFilenames) { |
|
for (i=0; i<num; i++) { |
|
tmpSvrFilenames += svrFilenameList[i] + ";"; |
|
tmpUsrFilenames += usrFilenameList[i] + ";"; |
|
tmpFileInfos += fileInfoList[i] + ";"; |
|
} |
|
tmpSvrFilenames += subFilename; |
|
tmpUsrFilenames += subFilename2; |
|
tmpFileInfos += subinfo; |
|
} else { |
|
tmpSvrFilenames = subFilename; |
|
tmpUsrFilenames = subFilename2; |
|
tmpFileInfos = subinfo; |
|
} |
|
} else { |
|
for (i=0; i<num; i++) { |
|
if (subFilename == svrFilenameList[i]) |
|
continue; |
|
else { |
|
tmpSvrFilenames += svrFilenameList[i] + ";"; |
|
tmpUsrFilenames += usrFilenameList[i] + ";"; |
|
tmpFileInfos += fileInfoList[i] + ";"; |
|
} |
|
} |
|
} |
|
|
|
usrFilenames = tmpUsrFilenames; |
|
svrFilenames = tmpSvrFilenames; |
|
fileInfos = tmpFileInfos; |
|
} |
|
|
|
function cut_str( state, value, separator ) { |
|
if (!separator){ |
|
separator = "."; |
|
} |
|
|
|
if ( state == 0 ){ |
|
return value.substring(0, value.lastIndexOf(separator)); |
|
} |
|
|
|
if ( state == 1 ){ |
|
return value.substring(value.lastIndexOf(separator)+1, value.length ); |
|
} |
|
} |
|
|
|
function delFrm() { |
|
var list = document.subUpload.delFrm.fileList; |
|
var a = list.options[list.selectedIndex].value; |
|
var no = -1; |
|
|
|
usrFilenameList = usrFilenames.split(";", num); |
|
svrFilenameList = svrFilenames.split(";", num); |
|
|
|
for(i=0; i<num; i++) { |
|
if (a == svrFilenameList[i]) { |
|
no = i; |
|
mkFileList(svrFilenameList[i], usrFilenameList[i], 0,"delete"); |
|
} |
|
} |
|
|
|
if (no != -1) { |
|
if (num > 0){ |
|
num--; |
|
} |
|
|
|
document.subUpload.delFrm.submit(); |
|
} |
|
} |
|
<%= putValScript %> |
|
function changeAll(){ |
|
<%= changeAllScript %> |
|
} |
|
|
|
// function insertData(){ |
|
// <%--= inDataJavaScript.toString() --%> |
|
// } |
|
|
|
/********** userfile list와 serverfile list를 배열로 저장 **********/ |
|
function viewFrm(num) { |
|
name = "fileUp"+num; |
|
eval(name + ".style.visibility = \"visible\";" ); |
|
eval(name + ".style.display = \"block\";" ); |
|
//dform.upFile.focus(); |
|
} |
|
|
|
function deptCheck(){ |
|
|
|
if( !fn_CellValueCheck() ) { |
|
return false; |
|
} |
|
|
|
var url = '/totsys/common/web/dept_check/popup_reportsend.jsp?deptID=<%= dtID %>&deptName=<%= dpName %>&repDocID=<%= repDocID %>'; |
|
var target = 'deptCheck'; |
|
var width = 385; |
|
//var height = 221; |
|
var height = 271; |
|
var align = 'center'; |
|
var valign = 'middle'; |
|
var scroll = 'no'; |
|
var resize = 'no'; |
|
<%if (changeAllScript.length() > 0) {%> |
|
changeAll(); |
|
<%}%> |
|
|
|
changeAll(); |
|
|
|
/*document.dform.usrFilenames.value = usrFilenames; |
|
document.dform.svrFilenames.value = svrFilenames;*/ |
|
|
|
if(document.dform.svrFilenames.value.length != 0) |
|
dform.upFile.value = "1"; |
|
|
|
<% if(totReport.getTotDoc().getAppendType() == TotDocAppendType.FILE) { %> |
|
if(subUpload.num <= 0) { |
|
if(!confirm("<%=MoumiConfig.getMessageBundle().getString("moumi.message.popup.notRelationDocAdd")%>")) |
|
return; |
|
} |
|
<% } %> |
|
|
|
// 접수번호가 저장되도록 수정. 2014.12.01 by YOUNGJUN,CHO |
|
// dform.acptNum.value = document.getElementById("acptNumForUI").value; |
|
|
|
dform.target = "hiddenFrame"; |
|
dform.submit(); |
|
//var farwindow = null; |
|
//farwindow = getOpener(url, target, width, height, align, valign, scroll, resize); |
|
//farwindow.focus(); |
|
|
|
} |
|
|
|
function totApply(){ |
|
totApplyForm.submit(); |
|
} |
|
|
|
function ShowCopy(){ |
|
window.open('../tempbox/popup_copy_form.jsp?reportType=<%=reportType%>','makecopy','width=950,height=645,scrollbars=no,resizable=no'); |
|
} |
|
|
|
|
|
/* |
|
* 담당변경을 처리하는 함수 |
|
*/ |
|
function fn_changeDamDang(p_reportID) { |
|
//alert("p_reportID = " + p_reportID); |
|
|
|
try { |
|
$.ajax({ |
|
url:"/servlet/kr.co.kihyun.service.servlet.AjaxProcessServlet", |
|
type:"POST", |
|
dataType:"json", |
|
async: true, |
|
data:{ |
|
proc_type:"send_neis_recog", |
|
report_id:p_reportID |
|
}, |
|
success:function(data) { |
|
fn_callBackForSuccessDamDang(data); |
|
}, |
|
error:function(e) { |
|
alert("error=" + e); |
|
} |
|
//, |
|
//beforeSend:function() { |
|
// $.customIndicator.show(window.self); |
|
//}, |
|
//complete:function() { |
|
// $.customIndicator.hide(window.self); |
|
//} |
|
}); |
|
} catch (e) { |
|
alert(e.message); |
|
} |
|
} |
|
|
|
function fn_callBackForSuccessDamDang(data) { |
|
var unModifiableCount = 0 |
|
|
|
if( data != null ) { |
|
for(var i = 0; i < data.length; i++ ) { |
|
unModifiableCount = data[i].unModifiableCount; |
|
} |
|
} |
|
|
|
if(unModifiableCount > 0) { |
|
alert('제출자료의 정보를 수정할 수 없습니다. 제출된 자료가 결재대기중 또는 결재완료된 상태에 있습니다.'); |
|
return false; |
|
} |
|
|
|
var height = screen.height; |
|
var width = screen.width; |
|
var leftpos = width / 2 - 350; |
|
var toppos = height / 2 - 350; |
|
frm = document.damdangForm; |
|
frm.rptDocID.value=""; |
|
frm.reportID.value =<%=reportID%>; |
|
// frm.reportID.value =<%=reportID%>; |
|
frm.reportType.value = "<%=reportType%>"; |
|
frm.action = "/totsys/repoper/mydocbox/returnbox/popup_rep_transfer11.jsp"; |
|
frm.target = 'damdangForm'; |
|
frm.method = 'post'; |
|
win = window.open('', "damdangForm", "width=572, height=725, toolbar=no, directories=no, status=no, menubar=no, resizable=no,left=" + leftpos + ",top=" + toppos); |
|
win.focus(); |
|
frm.submit(); |
|
} |
|
|
|
|
|
//초기화 : 동적 표에서만 사용 |
|
function prssForm(p_reportID){ |
|
try { |
|
$.ajax({ |
|
url:"/servlet/kr.co.kihyun.service.servlet.AjaxProcessServlet", |
|
type:"POST", |
|
dataType:"json", |
|
async: true, |
|
data:{ |
|
proc_type:"send_neis_recog", |
|
report_id:p_reportID |
|
}, |
|
success:function(data) { |
|
fn_callBackForSuccess(data); |
|
}, |
|
error:function(e) { |
|
alert("error=" + e); |
|
} |
|
//, |
|
//beforeSend:function() { |
|
// $.customIndicator.show(window.self); |
|
//}, |
|
//complete:function() { |
|
// $.customIndicator.hide(window.self); |
|
//} |
|
}); |
|
} catch (e) { |
|
alert(e.message); |
|
} |
|
} |
|
|
|
function fn_callBackForSuccess(data) { |
|
var unModifiableCount = 0 |
|
|
|
if( data != null ) { |
|
for(var i = 0; i < data.length; i++ ) { |
|
unModifiableCount = data[i].unModifiableCount; |
|
} |
|
} |
|
|
|
if(unModifiableCount > 0) { |
|
alert('제출자료의 정보를 수정할 수 없습니다. 제출된 자료가 결재대기중 또는 결재완료된 상태에 있습니다.'); |
|
return false; |
|
} |
|
|
|
if(confirm("<%= MoumiConfig.getMessageBundle().getString("moumi.message.popup.collectInit") %>")){ |
|
prssChange.submit(); |
|
} |
|
} |
|
|
|
|
|
function insertData(){ |
|
<%= inDataJavaScript %> |
|
//SelectBox에 표복사입력 시 등록된 값을 설정 |
|
$("select").each(function(){ |
|
var selected_val = $(this).attr("selected_val"); |
|
if( selected_val != null ) { |
|
$(this).val(selected_val); |
|
} |
|
}); |
|
fn_CellValueCheck(); |
|
} |
|
|
|
//================================서식정합성체크 시 사용==============================================// |
|
var $formCells = new Array(); |
|
$(document).ready(function(){ |
|
var arrCells = cellNames.split(","); |
|
|
|
for(var i = 0; i < arrCells.length; i++ ) { |
|
$formCells[i] = $('input[type="text"][name="' + arrCells[i] + '"]'); |
|
} |
|
}); |
|
|
|
function fn_CellValueCheck() { |
|
var v_html = ""; |
|
var arrCells = cellNames.split(","); |
|
for(var i = 0; i < arrCells.length; i++ ) { |
|
if ($formCells[i].attr("value") != null || $formCells[i].attr("itemType") != null){ |
|
var val = $formCells[i].attr("value"); |
|
// if( $.trim(val) != "") { |
|
var v_itemType = $formCells[i].attr("itemType"); |
|
}else{ |
|
var val = ""; |
|
var v_itemType = ""; |
|
} |
|
if(v_itemType.search("2") != -1) { |
|
if( isNaN(val) || !validNum.test(val)) { |
|
|
|
//if( v_html != "" ) v_html += "<br>"; |
|
//v_html += "<a href='#' id='cell_"+arrCells[i]+"' onclick='document.dform."+arrCells[i]+".focus();document.dform."+arrCells[i]+".select(); return false;'>" + arrCells[i] + "은 숫자이어야 합니다.</a>"; |
|
v_html += "<li id='cell_"+arrCells[i]+"'><a href='javascript:void(0);' onclick='document.dform."+arrCells[i]+".focus();document.dform."+arrCells[i]+".select(); return false;'>" + arrCells[i] + "은 숫자이어야 합니다.</a></li>"; |
|
} |
|
} |
|
else if(v_itemType.search("3") != -1) { |
|
if( $.trim(val) != "") { |
|
if( !validDate.test(val) ) { |
|
|
|
//if( v_html != "" ) v_html += "<br>"; |
|
//v_html += "<a href='#' id='cell_"+arrCells[i]+"' onclick='document.dform."+arrCells[i]+".focus();document.dform."+arrCells[i]+".select(); return false;'>" + arrCells[i] + "은 날짜형식(YYYY-MM-DD)이어야 합니다.</a>"; |
|
v_html += "<li id='cell_"+arrCells[i]+"'><a href='javascript:void(0);' onclick='document.dform."+arrCells[i]+".focus();document.dform."+arrCells[i]+".select(); return false;'>" + arrCells[i] + "은 날짜형식(YYYY-MM-DD)이어야 합니다.</a></li>"; |
|
} |
|
// }else{ |
|
} |
|
} |
|
} |
|
$('#div_error').html(""); |
|
if( v_html != "" ) { |
|
//v_html = "*************에 러 목 록*************<br>" + v_html; |
|
v_html = "<div class='div_error_title'>에 러 목 록</div><ul class='ul_error_list'>" + v_html + "</ul>"; |
|
$('#div_error').html(v_html); |
|
$('#div_error').fadeIn(); |
|
return false; |
|
}else{ |
|
return true; |
|
} |
|
} |
|
|
|
function fn_checkValue(obj, valueType) { |
|
if( valueType == '2') { |
|
$selectedCell = $('#cell_'+obj.name); |
|
if( $selectedCell ) { |
|
var val = obj.value; |
|
if( !isNaN(val) ) { |
|
//$selectedCell.next().remove(); |
|
//$selectedCell.remove(); |
|
$selectedCell.animate({"margin-left":"-=100%"}, 600, function () {$(this).remove()}); |
|
} |
|
} |
|
} |
|
} |
|
|
|
function fn_CalSetValue(obj, value) { |
|
$selectedCell = $('#cell_'+obj.name); |
|
if( $selectedCell ) { |
|
var val = obj.value; |
|
if( validDate.test(val) ) { |
|
//$selectedCell.next().remove(); |
|
//$selectedCell.remove(); |
|
$selectedCell.animate({"margin-left":"-=100%"}, 600, function () {$(this).remove()}); |
|
} |
|
} |
|
} |
|
|
|
// function fn_showDiv() { |
|
// alert($('#div_error').html()); |
|
// } |
|
|
|
//================================================================================================// |
|
|
|
function lineAdd(){ |
|
<%= addJavaScript %> |
|
modifyForm.rowCount.value='<%= (rowCount+2) %>'; |
|
modifyForm.modifyMode.value='addRow'; |
|
modifyForm.submit(); |
|
} |
|
|
|
function lineAddNum(){ |
|
var tmp = document.modifyForm.addRowNum.value; |
|
var tr = document.modifyForm.tableRows.value; |
|
var st = document.modifyForm.tables.value; |
|
if(tmp == ''){ |
|
alert('<%=MoumiConfig.getMessageBundle().getString("moumi.message.popup.addLine")%>'); |
|
modifyForm.addRowNum.focus(); |
|
return; |
|
}else if(isNaN(tmp)){ |
|
alert('<%=MoumiConfig.getMessageBundle().getString("moumi.message.popup.inputNumber")%>'); |
|
document.modifyForm.addRowNum.value = ''; |
|
modifyForm.delRowNum.focus(); |
|
return; |
|
}else if(1 > parseInt(tmp)){ |
|
alert('<%=MoumiConfig.getMessageBundle().getString("moumi.message.popup.oneMore")%>'); |
|
document.modifyForm.addRowNum.value = ''; |
|
modifyForm.delRowNum.focus(); |
|
return; |
|
} |
|
|
|
var trlist = tr.split(","); |
|
trlist[parseInt(st)-1] = parseInt(tmp)+parseInt(trlist[parseInt(st)-1]); |
|
|
|
for(i=0; i<trlist.length; i++){ |
|
if(i==0) tr=trlist[i]; |
|
else tr=tr+","+trlist[i]; |
|
} |
|
|
|
var num = parseInt(tmp)+parseInt('<%= (rowCount) %>'); |
|
|
|
<%= addJavaScript %> |
|
modifyForm.rowCount.value=num; |
|
modifyForm.modifyMode.value='addRow'; |
|
modifyForm.tableRows.value=tr; |
|
modifyForm.tmpStrMagam.value="<%=tmpStrMagam%>"; |
|
modifyForm.submit(); |
|
} |
|
|
|
function lineDel(){ |
|
var tmp = document.modifyForm.delRowNum.value; |
|
var tr = document.modifyForm.tableRows.value; |
|
var st = document.modifyForm.tables.value; |
|
var trlist = tr.split(","); |
|
|
|
if(tmp == ''){ |
|
alert('<%=MoumiConfig.getMessageBundle().getString("moumi.message.popup.deleteLine")%>'); |
|
modifyForm.delRowNum.focus(); |
|
return; |
|
}else if(isNaN(tmp)){ |
|
alert('<%=MoumiConfig.getMessageBundle().getString("moumi.message.popup.inputNumber")%>'); |
|
document.modifyForm.delRowNum.value = ''; |
|
modifyForm.delRowNum.focus(); |
|
return; |
|
}else if(1 > parseInt(tmp)){ |
|
alert('<%=MoumiConfig.getMessageBundle().getString("moumi.message.popup.oneMore")%>'); |
|
document.modifyForm.delRowNum.value = ''; |
|
modifyForm.delRowNum.focus(); |
|
return; |
|
}else if(parseInt(tmp) > parseInt(trlist[parseInt(st)-1])){ |
|
alert('<%=MoumiConfig.getMessageBundle().getString("moumi.message.popup.lessLine")%>'); |
|
document.modifyForm.delRowNum.value = ''; |
|
modifyForm.delRowNum.focus(); |
|
return; |
|
}else if("<%=rowCount%>" <= 1){ |
|
alert('<%=MoumiConfig.getMessageBundle().getString("moumi.message.popup.notDeleteLine")%>'); |
|
document.modifyForm.delRowNum.value = ''; |
|
modifyForm.delRowNum.focus(); |
|
return; |
|
} |
|
|
|
trlist[parseInt(st)-1] = parseInt(trlist[parseInt(st)-1])-1; |
|
|
|
for(i=0; i<trlist.length; i++){ |
|
if(i==0) tr=trlist[i]; |
|
else tr=tr+","+trlist[i]; |
|
} |
|
|
|
<%= addJavaScript %> |
|
modifyForm.rowCount.value='<%= (rowCount-1) %>'; |
|
modifyForm.modifyMode.value='delRow'; |
|
modifyForm.tableRows.value=tr; |
|
modifyForm.submit(); |
|
} |
|
|
|
function checkReport(){ |
|
if(1 > dform.rowCount.value){ |
|
alert('<%= MoumiConfig.getMessageBundle().getString("moumi.message.popup.notSubmitDoc") %>'); |
|
return; |
|
} |
|
openPopup('./popup_dept_check.jsp?deptID=<%= dtID %>&deptName=<%= dpName %>', '350', '290', 'no'); |
|
} |
|
|
|
function NotDocGO(){ |
|
var bool = confirm("<%=MoumiConfig.getMessageBundle().getString("moumi.message.popup.notTrans")%>"); |
|
if(bool){ |
|
NotDoc.submit(); |
|
}else return; |
|
} |
|
|
|
/* |
|
* 자료입력 테이블 input element 뒤에 font, span 등의 불필요한 element 를 삭제처리. 시작 |
|
* 2014.08.21 by YoungJun Cho. |
|
*/ |
|
$(document).ready(function() { |
|
$.fixRegistFormTable( $("#formDiv").find("table"), {}); |
|
}); |
|
/* 자료입력 테이블 input element 뒤에 font, span 등의 불필요한 element 를 삭제처리. 끝 */ |
|
|
|
/* |
|
* 목록페이지로 이동처리하는 함수 |
|
*/ |
|
function fn_goToList() { |
|
document.listForm.submit(); |
|
} |
|
|
|
/* |
|
* 자료수정Tab으로 이동처리하는 함수 |
|
*/ |
|
function fn_goToViewTab() { |
|
document.viewForm.submit(); |
|
} |
|
|
|
</script> |
|
</HEAD> |
|
|
|
<body style="padding: 0; margin: 0;" onload="insertData();"> |
|
<div id="header"> |
|
<!-- 레이아웃 틀어짐 수정 --> |
|
<ul id="primary" style="top: -10px; height: 27px; overflow: hidden;"> |
|
<!-- ie10,11 에서 호환성 보기 문제 수정 a,span 태그에 스타일 추가 --> |
|
<%if(!"returndoc".equals(type)){%> |
|
<li> |
|
<a style="padding: 0px; line-height: 25px;" href="javascript:fn_goToViewTab();"> |
|
<%= MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.doc") %><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_report.submit")%> |
|
</a> |
|
</li> |
|
<%}else{%> |
|
<!-- <li><a |
|
href="/totsys/repoper/mydocbox/returnbox/report_view.jsp?reportID=<%=reportID%>"><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.information")%></a></li>--> |
|
<%}%> |
|
<li><span style="padding: 0px; line-height: 25px;" class="kecttep_menu_focous"><%= MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.doc")%><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.modify")%></span></li> |
|
</ul> |
|
<%-- |
|
<form name="inputExcel" method="post" action="./report_modify.jsp"> |
|
<input |
|
type="hidden" name="comment" value="<%= comment %>"> <input |
|
type="hidden" name="reportID" value="<%= reportID %>"> <input |
|
type="hidden" name="rowCount" value="<%= rowCount %>"> <input |
|
type="hidden" name="modifyMode" value="addRow"> <input |
|
type="hidden" name="copyForm" value=""> <%= hiddenData %> |
|
</form> |
|
--%> |
|
<form name="listForm" method="post" action="/totsys/repoper/mydocbox/tempbox/report_list.jsp"> |
|
<input type="hidden" name="strPage" value="<%= strPage %>"> |
|
<input type="hidden" name="findOption" value="<%=MString.checkNull(findOption)%>"> |
|
<input type="hidden" name="findWord" value="<%=MString.checkNull(findWord)%>"> |
|
<input type="hidden" name="reportType" value="<%=reportType%>"> |
|
</form> |
|
<form name="viewForm" method="post" action="./report_view.jsp"> |
|
<input type="hidden" name="strPage" value="<%= strPage %>"> |
|
<input type="hidden" name="findOption" value="<%=MString.checkNull(findOption)%>"> |
|
<input type="hidden" name="findWord" value="<%=MString.checkNull(findWord)%>"> |
|
<input type="hidden" name="reportType" value="<%=reportType%>"> |
|
<input type="hidden" name="reportID" value="<%= reportID %>"> |
|
<input type="hidden" name="reportType" value="<%= reportType %>"> |
|
<input type="hidden" name="totperInfo" value="<%= totperInfo %>"> |
|
<input type="hidden" name="tmpStrMagam" value="<%= tmpStrMagam %>"> |
|
</form> |
|
<form name="inputExcel" method="post" action="./temp_report_modify.jsp"> |
|
<%-- <form name="inputExcel" method="post" action="../tempbox/report_regist.jsp"> --%> |
|
<input type="hidden" name="strPage" value="<%= strPage %>"> |
|
<input type="hidden" name="findOption" value="<%=MString.checkNull(findOption)%>"> |
|
<input type="hidden" name="findWord" value="<%=MString.checkNull(findWord)%>"> |
|
<input type="hidden" name="comment" value="<%= comment %>"> |
|
<input type="hidden" name="reportID" value="<%= reportID %>"> |
|
<input type="hidden" name="rowCount" value="<%= rowCount %>"> |
|
<input type="hidden" name="reportType" value="<%= reportType %>"> |
|
<input type="hidden" name="copyForm" value=""> |
|
<input type="hidden" name="tables" value="1"> |
|
<input type="hidden" name="doctName" value="<%= doctName %>"> |
|
<input type="hidden" name="tableRows" value="<%= tableRows %>"> <%= hiddenData %> |
|
</form> |
|
<form name="damdangForm" method="post" > |
|
<input type="hidden" name="docReportType" value="R"> |
|
<input type="hidden" name="exeFlag" value="form"> |
|
<input type="hidden" name="docID" value=""> |
|
<input type="hidden" name="rptDocID" value=""> |
|
<input type="hidden" name="reportID" value="<%=reportID%>"> |
|
<input type="hidden" name="rptReportID" value=""> |
|
<input type="hidden" name="reportType" value="<%=reportType%>"> |
|
<input type="hidden" name="boxName" value="tempbox"> |
|
<input type="hidden" name="hideUser" value="false"> |
|
<input type="hidden" name="callbackFunc" value="fn_goToList();"> |
|
</form> |
|
<form name="prssChange" method="post"> |
|
<input type="hidden" name="proc_mode" value="initial"> |
|
<input type="hidden" name="reportID" value="<%=reportID%>"> |
|
<input type="hidden" name="prss" value="<%=MReport.ACCEPT_LIST%>"> |
|
<input type="hidden" name="totRange" value="<%=totReport.getTotDoc().getTotRange().ordinal()%>"> |
|
<input type="hidden" name="repDocID" value=""> |
|
<input type="hidden" name="userID" value=""> |
|
<input type="hidden" name="strPage" value="<%= strPage %>"> |
|
<input type="hidden" name="findOption" value="<%=MString.checkNull(findOption)%>"> |
|
<input type="hidden" name="findWord" value="<%=MString.checkNull(findWord)%>"> |
|
<input type="hidden" name="reportType" value="<%=reportType%>"> |
|
</form> |
|
</div> |
|
<!---- topbar 버튼 끝----> |
|
<div id="main"> |
|
<div id="contents"> |
|
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
<tr valign="middle" class="toolbar"> |
|
<td align="left"> |
|
<table border="0" cellpadding="0" cellspacing="0"> |
|
<tr> |
|
<!-- |
|
<td><a class="simplebutton" href="#" onclick="NotDocGO();"><span |
|
class="no"><%= MoumiConfig.getMessageBundle().getString("moumi.message.button_small.not") %></span></a> |
|
</td> --> |
|
<td class="kecttep_button_td"> |
|
<!-- 담당변경 --> |
|
<%-- |
|
<a href="javascript:void(0)" onclick="window.open('../returnbox/popup_rep_transfer11.jsp?reportID=<%=reportID%>&boxName=returnbox&hideUser=false&reportType=<%=reportType%>&callbackFunc=fn_goToList()','','width=572, height=725,toolbar=no, directories=no, status=no, menubar=no, resizable=no');"> |
|
--%> |
|
<a href="javascript:void(0);" onclick="fn_changeDamDang('<%=reportID%>');"> |
|
<img src="/totsys/common/images/bt_damdang.gif" alt="<%= MoumiConfig.getMessageBundle().getString("moumi.message.button_small.trans") %>" /> |
|
</a> |
|
<!-- 초기화 --> |
|
<%if(!"returndoc".equals(type)){%> |
|
<a href="javascript:void(0)" onclick="javascript:prssForm('<%=reportID%>');"> |
|
<img src="/totsys/common/images/bt_remove.gif" alt="<%= MoumiConfig.getMessageBundle().getString("moumi.message.button_small.initialization") %>" /> |
|
</a> |
|
<%}%> |
|
<%if(!MString.isNull(boardContents) || !MString.isNull(svrFilenames)){%> |
|
<a href="javascript:void(0)" onclick="totperInfo('<%=totReport.getTotDoc().getId() %>','<%= boardGroupID%>');"> |
|
<img src="/totsys/common/images/bt_info_modify.gif" alt="<%= MoumiConfig.getMessageBundle().getString("moumi.message.button_small.totperInfo") %>" /> |
|
</a> |
|
<%}%> |
|
<a href="#" onclick="fn_goToList();"> |
|
<img src="/totsys/common/images/bt_doc_list.gif" alt="<%= MoumiConfig.getMessageBundle().getString("moumi.message.doc")%><%= MoumiConfig.getMessageBundle().getString("moumi.message.button.boardList")%>" /> |
|
</a> |
|
</td> |
|
</tr> |
|
</table> |
|
</td> |
|
</tr> |
|
<tr> |
|
<td height="10"></td> |
|
</tr> |
|
<!--tr> |
|
<td height="10"><font color="red">※ <%= MoumiConfig.getMessageBundle().getString("moumi.message.popup.timeOut") %></font></td> |
|
</tr--> |
|
<!------------------------------- 집계자 정보 시작 -------------------------------> |
|
<jsp:include page="/totsys/common/inc/totper/totper.jsp" flush="true"> |
|
<jsp:param name="docID" value='<%= totReport.getTotDoc().getId() %>' /> |
|
<jsp:param name="tmpMagam" value='<%= tmpStrMagam%>' /> |
|
</jsp:include> |
|
<!------------------------------- 집계자 정보 끝 ---------------------------------> |
|
<tr nowrap height="10"> |
|
<td nowrap width="149" height="10"></td> |
|
<td height="10"></td> |
|
<td nowrap width="149" height="10"></td> |
|
<td height="10"></td> |
|
</tr> |
|
<!-- <tr> |
|
<td> |
|
<table border=0 cellpadding="0" cellspacing="0"> |
|
<tr> |
|
<td class="kecttep_tdmenu" width="147" nowrap style="padding-left: 20px;"> |
|
<%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.executionCode")%> |
|
</td> |
|
<td class="kecttep_top2_graytd" style="padding-left: 15;"> |
|
<%= totReport.getTotDoc().getExecutionCode() %> |
|
</td> |
|
</tr> |
|
</table> |
|
<table border="0" cellspacing="0" cellpadding="0" style="margin-top: 3px;"> |
|
<tr> |
|
<td class="kecttep_tdmenu" width="147" nowrap style="padding-left: 20px"> |
|
<%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_report.acceptanceCode")%> |
|
</td> |
|
<td class="kecttep_top2_graytd" style="padding-left: 15;"> |
|
<%= HttpSSOLogin.getDeptName(request) %>_ |
|
<input id="acptNumForUI" name="acptNumForUI" type="text" class="inputtxt" style="width: 70px" value="<%= totReport.getAcceptanceCode() == null || totReport.getAcceptanceCode().getNumber() == null ? "" : MString.checkNull(totReport.getAcceptanceCode().getNumber().toString()) %>"> |
|
<br> |
|
<%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_report.acceptexplanation")%><br><font color="red"><%="(필수입력항목은 아닙니다)"%></font> |
|
</td> |
|
</tr> |
|
</table> |
|
</td> |
|
</tr>--> |
|
|
|
<% if(totReport.getTotDoc().getAppendType() != TotDocAppendType.FILE) { %> |
|
<tr> |
|
<td valign="top" style="padding-top: 10;"> |
|
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
|
<%if(tableType == MTable.DYNA){%> |
|
<form name="modifyForm" method="post" action="/totsys/repoper/mydocbox/tempbox/temp_report_modify.jsp"> |
|
<input type="hidden" name="strPage" value="<%= strPage %>"> |
|
<input type="hidden" name="findOption" value="<%=MString.checkNull(findOption)%>"> |
|
<input type="hidden" name="findWord" value="<%=MString.checkNull(findWord)%>"> |
|
<input type="hidden" name="reportType" value="<%= reportType %>"> |
|
<input type="hidden" name="type" value="<%= type %>"> |
|
<input type="hidden" name="comment" value="<%= comment %>"> |
|
<input type="hidden" name="reportID" value="<%= reportID %>"> |
|
<input type="hidden" name="rowCount" value="<%= rowCount %>"> |
|
<input type="hidden" name="reportType" value="<%= reportType %>"> |
|
<input type="hidden" name="inForm" value='<%= URLEncoder.encode(baseInsertForm, "UTF-8") %>'> |
|
<input type="hidden" name="tableType" value="<%= tableType %>"> |
|
<input type="hidden" name="modifyMode" value="addRow"> |
|
<input type="hidden" name="tableRows" value="<%= tableRows%>"> <%= hiddenData %> |
|
<input type="hidden" name="tmpStrMagam" value="<%= tmpStrMagam %>"> |
|
<input type="hidden" name="doctName" value="<%= doctName %>"> |
|
<tr> |
|
<td width="80" align="right" valign="middle"> |
|
<select name="tables"> |
|
<% |
|
String[] tableDiv = tableTypes.split(","); |
|
for(int i=0; i<tableDiv.length; i++){ |
|
if(tableDiv[i].equals("1")){ |
|
%> |
|
<option value="<%=i+1%>"><%=i+1%></option> |
|
<%} |
|
} |
|
%> |
|
</select><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.numTable")%> |
|
</td> |
|
<td width="5"> </td> |
|
<td width="62" align="right" valign="middle" style="background:url('/totsys/common/images/bt_line_addbg.png') 0 2px no-repeat"> |
|
<input name="addRowNum" type="text" size="3" maxlength="3" class="inputtxt" > |
|
</td> |
|
<td width="5"> </td> |
|
<td width="56" valign="middle"> |
|
<img onclick="lineAddNum();" style="cursor: pointer;" src="/totsys/common/images/bt_line_add_out.gif" width="56" height="24" border="0" /> |
|
</td> |
|
<td width="5"> </td> |
|
<td width="62" align="right" valign="middle" style="background:url('/totsys/common/images/bt_line_delbg.png') 0 2px no-repeat;"> |
|
<input name="delRowNum" type="text" size="3" maxlength="3" class="inputtxt" /> |
|
</td> |
|
<td width="5"> </td> |
|
<td width="85" valign="middle"> |
|
<img onclick="lineDel();" style="cursor: pointer;" src="/totsys/common/images/bt_line_del_out.gif" width="85" height="24" border="0"> |
|
</td> |
|
<td width="5"> </td> |
|
<td width="93"> |
|
<a href="/totsys/common/inc/documents/report/report_view_excel2.jsp?reportID=<%=reportID%>&docId=<%=docId%>" target="_parent"> |
|
<img src="/totsys/common/images/bt_excel.gif" alt="액셀다운(원본)" /> |
|
</a> |
|
</td> |
|
<td width="5"> </td> |
|
<td width="93"> |
|
<a href="#" onClick='ShowCopy();'> |
|
<img src="/totsys/common/images/bt_copytable.gif" alt="표복사입력" /> |
|
</a> |
|
</td> |
|
<td width="5"> </td> |
|
<td> |
|
<a href="#" |
|
onClick="changeAll();changeAll();changeAll();changeAll();return deptCheck(0);"> |
|
<img src="/totsys/common/images/bt_reportsend2.gif" border="0"> |
|
</a> |
|
</td> |
|
</tr> |
|
</form> |
|
</table> |
|
</td> |
|
</tr> |
|
<%}%> |
|
<tr> |
|
<td nowrap height="2"></td> |
|
</tr> |
|
<%}%> |
|
<jsp:include page="/totsys/common/inc/memo/reReport_Contents.jsp" flush="true"> |
|
<jsp:param name="reportID" value="<%= reportID %>" /> |
|
<jsp:param name="groupID" value="555" /> |
|
<jsp:param name="prss" value="<%=MReport.RETURN%>" /> |
|
</jsp:include> |
|
<tr> |
|
<td valign="top" style="padding-top: 5; padding-bottom: 25;"> |
|
<div id="formDiv" style="padding-top:17; width: <%=session.getAttribute("formWidth") %>;overflow-x: auto;"> |
|
<form name="dform" method="post" action="/servlet/kr.co.kihyun.beans.totsys.report.HttpReportModifyer" enctype="multipart/form-data"> |
|
<input type="hidden" name="reportID" value="<%= reportID%>"> |
|
<input type="hidden" name="rowCount" value="<%= rowCount%>"> |
|
<input type="hidden" name="inForm" value='<%= URLEncoder.encode(baseInsertForm, "UTF-8")%>'> |
|
<input type="hidden" name="tableType" value="<%= tableType%>"> |
|
<input type="hidden" name="oldRealFileName" value="<%=realFileName%>"> |
|
<input type="hidden" name="oldViewFileName" value="<%=viewFileName%>"> |
|
<input type="hidden" name="repDocID" value="repDocID"> |
|
<input type="hidden" name="tableTypes" value="<%= tableTypes %>"> |
|
<input type="hidden" name="tableRows" value="<%= tableRows%>"> |
|
<input type="hidden" name="downDocID" value="<%=downDocID %>"> |
|
<input type="hidden" name="modify" value="modify"> |
|
<input type="hidden" name="name" value=""> |
|
<input type="hidden" name="tel" value=""> |
|
<INPUT type="hidden" name="usrFilenames" value="<%= viewFileName %>"> |
|
<INPUT type="hidden" name="svrFilenames" value="<%= realFileName %>"> |
|
<input type="hidden" name="callbackFunc" value="parent.fn_goToList();"> |
|
<input type="hidden" name="acptNum" value=""> |
|
<input type="hidden" name="docId" value="<%= docId %>"> |
|
<%-- |
|
* Element Name : fileSizes |
|
* Type : hidden |
|
* Author : 2014.09.03 by youngjun cho. |
|
* Description |
|
- 자료에 첨부할 수 있는 파일들의 크기(byte)를 저장하는 hidden value. |
|
- DB 에는 저장하지 않는다. |
|
- filename 과 같은 형식으로 ";" 으로 구분한다. |
|
- 파일을 삭제하면 0 byte 로 저장한다. |
|
- 첨부파일 업로드를 핸들링하는 iframe(write_file_upload_1.jsp) 페이지에서 참조하여 첨부파일들의 파일크기를 합계한다. |
|
- 자료에 저장할 수 있는 첨부파일들의 허용크기를 넘지않도록 validation check를 하기 위해 사용한다. |
|
- 자료입력 페이지에서 hidden element가 없다면, iframe 에서 동적(dhtml with jquery)으로 element 를 생성한다. |
|
(단, 수정페이지에서는 아래처럼 hidden element 가 미리 존재해야 한다.) |
|
--%> |
|
<INPUT type="hidden" name="fileSizes" value="<%= attachFileSize %>"> |
|
|
|
<INPUT type="hidden" name="fileCount" value="<%=MString.isNull(realFileNameList[0]) == true? 0: realFileNameList.length%>"> |
|
<INPUT type="hidden" name="fileInfos"> |
|
<input type="hidden" name="isRecog" value="temp"> |
|
<!-------------------------------------------- 보고 폼 시작 --------------------------------------------> |
|
<% out.println(insertForm); %> |
|
<!-------------------------------------------- 보고 폼 끝 --------------------------------------------> |
|
<hr/> |
|
|
|
<%if(totReport.getSlaveTotDoc() != null){%> |
|
<div> |
|
<span id="downDocComment" style="display: none;"> |
|
<textarea name="memo" style="width: 100%; height: 30px;"><%= memo.trim() %></textarea> |
|
</span> |
|
</div> |
|
<%}%> |
|
<input type=hidden name="upFile"> |
|
</form> |
|
</div> |
|
<div id="div_error"> |
|
</div> |
|
</td> |
|
</tr> |
|
|
|
<tr> |
|
<td> |
|
<table border="0" cellpadding="0" cellspacing="0"> |
|
<tr> |
|
<%if(totReport.getSlaveTotDoc() != null){%> |
|
<td style="width: 14"><img |
|
src="/totsys/common/images/ico_1.gif"></td> |
|
<td class="kecttep_title" style="padding-left: 5" align="left">[<%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.subDoc")%> |
|
<%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.modify")%><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.reason")%>]</td> |
|
<td class="kecttep_div_show"><span id="downDocCommentShow"> |
|
<a href="#" class="textbutton" |
|
onclick="listView('downDocComment','downDocCommentShow','downDocCommentNone');"><%= MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.input") %></a></span><span |
|
id="downDocCommentNone" style="display: none;"> |
|
<a href="#" class="textbutton" |
|
onclick="listView('downDocComment','downDocCommentShow','downDocCommentNone');"><%= MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.hidden") %></a></span></td> |
|
<%}%> |
|
</tr> |
|
</table> |
|
</td> |
|
</tr> |
|
<% if( TotDocAppendType.SYSTEM != totReport.getTotDoc().getAppendType() ) { %> |
|
<tr> |
|
<td> |
|
<table border="0" cellpadding="0" cellspacing="0"> |
|
<tr> |
|
<td style="width: 14"> |
|
<img src="/totsys/common/images/ico_1.gif"></td> |
|
<td class="kecttep_list_title" style="padding-left: 5" align="left">[<%= MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.add") %><%= MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.file") %>]</td> |
|
<!--td class="kecttep_div_show"><span id="memoShow"><a href="#" class="textbutton" onclick="listView('repopermemo','memoShow','memoNone');"><%= MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.input") %></a></span><span id="memoNone" style="display:none;"><a href="#" class="textbutton" onclick="listView('repopermemo','memoShow','memoNone');"><%= MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.hidden") %></a></span></td--> |
|
</tr> |
|
</table> |
|
</td> |
|
</tr> |
|
|
|
<tr> |
|
<td><span id="repopermemo"> |
|
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
|
<!--tr> |
|
<td> |
|
<textarea name="comment" style="width: 720; height: 40;"><%= comment %></textarea> |
|
</td> |
|
</tr--> |
|
<tr> |
|
<td> |
|
<iframe |
|
src="/totsys/common/inc/board/doc/write_file_upload_1.jsp?pageFlag=2&boardGroupID=<%= Category.ID_TOT_DOC_COMMENT %>&execMode=init&mode=repoper&reportID=<%= totReport.getId() %>" |
|
name='subUpload' |
|
width="720" |
|
frameborder=0 |
|
scrolling=no |
|
marginheight=0 |
|
marginwidth=2 |
|
height="75"> |
|
</iframe> |
|
</td> |
|
</tr> |
|
</table> |
|
</span></td> |
|
</tr> |
|
<% } %> |
|
<tr> |
|
<td height="37" align="left"> |
|
<table border="0" cellspacing="0" cellpadding="0"> |
|
<tr> |
|
<td width="3"></td> |
|
<%if (changeAllScript.length() > 0) {%> |
|
<td> |
|
<a href="javascript:void(0);" title="계산하기" |
|
onClick='changeAll();changeAll();changeAll();changeAll();'> |
|
<img src="/totsys/common/images/bt_cal.gif" border="0" alt="계산하기" /> |
|
</a></td> |
|
<td width="3"></td> |
|
<%}%> |
|
<td> |
|
<a href="javascript:void(0);" title="자료저장" |
|
onClick="changeAll();changeAll();changeAll();changeAll();return deptCheck();"> |
|
<img src="/totsys/common/images/bt_reportsend2.gif" border="0" alt="자료저장" /> |
|
</a> |
|
</td> |
|
</tr> |
|
|
|
<form name="totApplyForm" method="post" action="./tot_report_modify.jsp"> |
|
<input type="hidden" name="reportID" value="<%= reportID %>"> |
|
<input type="hidden" name="downDocID" value="<%= downDocID %>"> |
|
<input type="hidden" name="rowCount" value="<%= rowCount %>"> |
|
<input type="hidden" name="delRowNum" value="<%= delRowNum %>"> |
|
<input type="hidden" name="modifyMode" value="<%= modifyMode %>"> |
|
</form> |
|
<form name="NotDoc" method="post" action="/servlet/kr.co.kihyun.beans.totsys.repoper.HttpNotUpdate"> |
|
<input type="hidden" name="reportID" value="<%= reportID %>"> |
|
</form> |
|
</table> |
|
</td> |
|
</tr> |
|
</table> |
|
</div> |
|
</div> |
|
<div id="SetWin" |
|
style="position: absolute; Visibility: hidden; width: 100px; height: 100px; background: silver; border: 1px #333333 solid; line-height: 1.4em; padding: 3px 3px"></div> |
|
<iframe name="hiddenFrame" frameborder="0" width="0" height="0" src="" style="display: none" /> |
|
</BODY> |
|
</HTML> |
|
<% |
|
}else{ |
|
if( procMode.equals("initial") ) { |
|
TotReportService reportService = new TotReportService(pm); |
|
reportService.procInitialForReport(reportID); |
|
} |
|
%> |
|
<html> |
|
<head> |
|
<script> |
|
/* |
|
* 접수자료 상세페이지로 이동처리하는 함수 |
|
*/ |
|
function fn_goToAcceptPage() { |
|
document.rsForm.submit(); |
|
} |
|
|
|
window.onload = fn_goToAcceptPage; |
|
</script> |
|
</head> |
|
<body> |
|
<form name="rsForm" method="post" action="/totsys/repoper/mydocbox/tempbox/report_regist.jsp"> |
|
<input type="hidden" name="reportID" value="<%= reportID %>"> |
|
<input type="hidden" name="type" value="returndoc"> |
|
<input type="hidden" name="totperInfo" value="true"> |
|
</form> |
|
</body> |
|
</html> |
|
<% |
|
} |
|
}catch(Exception ex){ |
|
if(tx.isActive()) |
|
tx.rollback(); |
|
ex.printStackTrace(); |
|
out.println(kr.co.kihyun.text.html.ServletUtil.getJavaScript("location='/servlet/kr.co.kihyun.beans.user.HttpSSOLogin?mode=logout';")); |
|
}finally{ |
|
if(tx.isActive()) |
|
tx.rollback(); |
|
pm.close(); |
|
} |
|
%>
|
|
|