123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>배치 생성 파일 조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <loginfo>
- <resultfile>
- </resultfile>
- </loginfo>
- </main>
- <send>
- <execrid/>
- <fromdt/>
- <offset>0</offset>
- <pagesize>1</pagesize>
- <prgmexecno/>
- <enddt/>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- grd_batlog.fixedcellcheckbox(0,grd_batlog.colRef("chk"),false) = true;
- model.refresh();
- submit("TRZSB00303");
- ]]>
- </script>
- <submission id="TRZSB00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/loginfo"/>
- <bind id="prcsstat" ref="/root/main/list/batlog/prcsstat" readonly="true()"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="500" pageheight="450" guideline="1,966;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group5" scroll="auto" style="left:0px; top:0px; width:480px; height:450px; ">
- <caption id="caption48" class="tit_2" style="left:5px; top:10px; width:138px; height:14px; ">배치 생성 파일 목록</caption>
- <line id="line20" class="line_1" style="x1:0px; y1:25px; x2:475px; y2:25px; "/>
- <datagrid id="grd_batlog" nodeset="/root/main/loginfo/resultfile" visibility="visible" autoresize="true" caption="^파일 경로^크기" colsep="^" colwidth="30, 385, 37" dataheight="50" datatype="xml" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:30px; width:475px; height:390px; ">
- <col ref="chk" type="checkbox"/>
- <col ref="filepath"/>
- <col autonext="true" ref="filesize"/>
- </datagrid>
- <button id="button1" class="btn4_letter2" disabled="false" style="left:420px; top:425px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- <button id="button163" class="btn4_letter7" visibility="visible" style="left:295px; top:425px; width:116px; height:22px; ">
- <caption>파일 내려받기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var nodeList = instance1.selectNodes("/root/main/loginfo/resultfile[chk='true']");
- var node;
-
- if (nodeList.length == 1) {
- var filepath = nodeList.nextNode().filepath.text;
- var filenm = filepath.split(/\/|\\/); // / 또는 \ 로 split 하여 마지막 항목을 default 파일 명으로 사용한다.
- var len = filenm.length;
- filenm = filenm[len-1];
- var localfile = window.fileDialog("save","|",false, filenm, "", "All Files(*.*)|*.*");
- if (localfile != "") {
- download("TRZSB00205", "&filepath="+filepath, localfile);
- //model.download(getActionURL("TRZSB00205")+"&filepath="+filepath,localfile);
- }
- } else if (nodeList.length > 1) {
- var localfile = window.folderDialog("배치 로그 파일 다운로드");
-
- var succCnt = 0;
-
- while( node = nodeList.nextNode() ) {
- var filepath = node.filepath.text;
- var filenm = filepath.split(/\/|\\/); // / 또는 \ 로 split 하여 마지막 항목을 default 파일 명으로 사용한다.
- var len = filenm.length;
- filenm = filenm[len-1];
- if (localfile != "") {
- download("TRZSB00205", "&filepath="+filepath, localfile+"\\"+filenm,false);
- succCnt++;
- //model.download(getActionURL("TRZSB00205")+"&filepath="+filepath,localfile+"\\"+filenm);
- }
- }
-
- if(succCnt == nodeList.length){
- messageBox("파일저장이 ","I002");
- }else{
- messageBox("파일저장이 일부 ","E009");
- }
-
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|