123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- <%@ page contentType="text/html; charset=utf-8" %>
- <%@ page import="kr.co.hsnc.common.util.*"%>
- <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
- <%
- ctx.init(request, response);
- ValueObject params = ctx.getParams();
- %>
- <SCRIPT language="JavaScript">
- //파일열기
- function doFileOpen() {
- document.FileUpload.AddFile();
- }
- //저장
- function doSave() {
- var form1 = document.form1;
- var fileUpload = document.FileUpload;
- if( !submitUploadRequest("/common/file/File_process.screen", "UPLOAD_FILE", form1, fileUpload) ) {
- alert("Now processing. Please wait.");
- }
- }
- //파일추가 취소
- function doCancelInsert() {
- document.FileUpload.DeleteFile();
- parent.doCloseFileForm();
- }
- //결과 처리
- function doResult(resultObj) {
- var form1 = document.form1;
- var fileUpload = document.FileUpload;
- try {
- if( resultObj.getRequestEvent() == "UPLOAD_FILE" ) {
- if( resultObj.getSuccess() ) {
- parent.doCloseFileForm();
- fileUpload.DeleteFile();
- parent.doSearch();
- }
- else {
- dlgErrorMsg(resultObj);
- }
- }
- }
- catch(errorObject) {
- showErrorDlg("doResult()", errorObject);
- }
- finally {
- form1.isSubmit = false;
- }
- }
- </SCRIPT>
- <FORM name="form1">
- <INPUT type="hidden" name="file_gb" value="<%= params.get("file_gb") %>">
- <INPUT type="hidden" name="id" value="<%= params.get("id") %>">
- <INPUT type="hidden" name="mod_no" value="<%= params.get("mod_no") %>">
- </FORM>
- <TABLE width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
- <TR height="25">
- <TD>
- <TABLE border="0" cellpadding="0" cellspacing="0" align="right">
- <TR>
- <TD>
- <DIV onclick="doFileOpen()" class="button_style">
- <TABLE border="0" cellpadding="0" cellspacing="0">
- <TR>
- <TD class="button_left1"></TD>
- <TD class="button_text1">Select File</TD>
- <TD class="button_right"></TD>
- </TR>
- </TABLE>
- </DIV>
- </TD>
- <TD width="10"></TD>
- <TD>
- <DIV onclick="doSave()" class="button_style">
- <TABLE border="0" cellpadding="0" cellspacing="0">
- <TR>
- <TD class="button_left1"></TD>
- <TD class="button_text1">Send File</TD>
- <TD class="button_right"></TD>
- </TR>
- </TABLE>
- </DIV>
- </TD>
- <TD width="10"></TD>
- <TD>
- <DIV onclick="doCancelInsert();" class="button_style">
- <TABLE border="0" cellpadding="0" cellspacing="0">
- <TR>
- <TD class="button_left1"></TD>
- <TD class="button_text1">Cancel</TD>
- <TD class="button_right"></TD>
- </TR>
- </TABLE>
- </DIV>
- </TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- <TR>
- <TD>
- <SCRIPT language="JavaScript">
- var obj = new UploadObject("FileUpload");
- obj.setSize('99%', '99%');
- obj.display();
- function OnInnoAPLoad(){
- //obj.addTempFile("내역서_포멧.xls", 17408, "11");
- //obj.addTempFile("인사발령.xls", 22408, "22");
- //obj.addTempFile("변경요청서.xls", 332156, "33");
- }
- </SCRIPT>
- </TD>
- </TR>
- </TABLE>
|