123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- <?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>
- <fileinfo>
- <fileinfolist/>
- </fileinfo>
- </main>
- <target/>
- <init>
- </init>
- <send>
- <fileinfo>
- <instcd/>
- <reqdd/>
- <reqflag/>
- <reqno/>
- <reqseqno/>
- <reqpsnid/>
- <reqdeptcd/>
- <fileseqno/>
- </fileinfo>
- <save>
- <fileinfolist/>
- </save>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGridInit(grd_fileinfo);
- misfMsterDetailSet(grd_fileinfo,null, "TRRFE02501" ,"Y");
- var instcd = opener.window.javascript.getParameter("para_instcd" );
- var reqdd = opener.window.javascript.getParameter("para_reqdd" );
- var fileseqno = opener.window.javascript.getParameter("para_fileseqno" );
- var goodflag = opener.window.javascript.getParameter("para_goodflag" );
- var reqno = opener.window.javascript.getParameter("para_reqno" );
- var reqseqno = opener.window.javascript.getParameter("para_reqseqno" );
- var attfilenm = opener.window.javascript.getParameter("para_attfilenm" );
- var attfilepathnm = opener.window.javascript.getParameter("para_attfilepathnm");
- var manlyn = opener.window.javascript.getParameter("para_manlyn" );
- model.makeValue("/root/send/fileinfo/instcd" , instcd );
- model.makeValue("/root/send/fileinfo/reqdd" , reqdd );
- model.makeValue("/root/send/fileinfo/goodflag" , goodflag);
- model.makeValue("/root/send/fileinfo/reqno" , reqno);
- model.makeValue("/root/send/fileinfo/reqseqno" , reqseqno);
- model.makeValue("/root/send/fileinfo/fileseqno" , fileseqno);
- model.makeValue("/root/send/fileinfo/manlyn" , manlyn);
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-model-destruct">
- <![CDATA[
- if (getGridUpdateData(grd_fileinfo) != "" ) {
- if (btn_save.disabled == false) {
- var save_val = messageBox("삭제 자료가 존재 합니다. ", "Q002");
-
- if (save_val == "6") {
- btn_save.dispatch("DOMActivate");
- }
- }
-
- }
- ]]>
- </script>
- <submission id="TRRFE02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fileinfo" resultref="/root/main/fileinfo"/>
- <submission id="TXRFE02502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fileinfo" resultref="/root/main/fileinfo"/>
- <submission id="TRRSD00422" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="800" pageheight="570" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:10px; top:0px; width:755px; height:522px; ">
- <caption id="caption1" class="tit_2" style="left:3px; top:11px; width:175px; height:13px; ">첨부파일내역조회</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:27px; x2:755px; y2:27px; "/>
- <datagrid id="grd_fileinfo" nodeset="/root/main/fileinfo/fileinfolist" caption="계약일자^첨부파일번호^파일이름^파일크기^파일타입^다운로드수^부서명^파일이름(부모창)^caption1" colsep="^" colwidth="75, 86, 246, 67, 150, 71, 91, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:80px; width:755px; height:440px; ">
- <col ref="reqdd" format="yyyy-mm-dd"/>
- <col ref="fileseqno"/>
- <col ref="filenm"/>
- <col ref="filesize" style="text-align:right; "/>
- <col ref="filetype"/>
- <col ref="qrycnt" style="text-align:center; "/>
- <col ref="reqdeptnm" visibility="hidden"/>
- <col ref="attfilenm" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="goalflag" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="reqpsnid" visibility="hidden"/>
- <col ref="filepath" visibility="hidden"/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="reqno" visibility="hidden"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="valumdlcd" visibility="hidden"/>
- <col ref="valuclsdetlcd" visibility="hidden"/>
- <col ref="publbaseflag" visibility="hidden"/>
- <col ref="idxcd" visibility="hidden"/>
- <col ref="seqno2" visibility="hidden"/>
- <col ref="wrtedd" visibility="hidden"/>
- <col ref="fileflag" visibility="hidden"/>
- <col ref="workflag" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var idx = grd_fileinfo.row;
- var filepath = model.getValue("/root/main/fileinfo/fileinfolist["+idx+"]/filepath");
- var filenm = model.getValue("/root/main/fileinfo/fileinfolist["+idx+"]/filenm");
- var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
- if (localfile != "") {
- var qrycnt=grd_fileinfo.valueMatrix(idx,grd_fileinfo.colRef("qrycnt"));
- //qrycnt 가 빈값일 경우는 숫자로 변환해도 0이 아닌 값으로 변환되므로 조건문으로 처리한다.
- if ( qrycnt == "") {
- qrycnt = "0";
- }
- cnt = parseInt(qrycnt)+1;
- model.setValue("/root/main/fileinfo/fileinfolist["+idx+"]/qrycnt",cnt);
- grd_fileinfo.addStatus(idx,"update");
- misfSave("TXRFE02502");
- model.download(getActionURL("TRRSD00422")+"&filepath="+filepath,localfile);
- var rtn = messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- window.exec(localfile);
- }
- }
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </datagrid>
- <button id="btn_search" class="btn1_letter2" style="left:697px; top:33px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfMsterDetailRetrieve();
-
- if (grd_fileinfo.rows - grd_fileinfo.fixedRows > 0) {
- if (grd_fileinfo.valueMatrix(grd_fileinfo.fixedRows, grd_fileinfo.colRef("reqpsnid")) == getUserInfo("userid")) {
- btn_save.disabled = false;
- btn_delgrd.disabled = false;
- }
- else {
- btn_save.disabled = true;
- btn_delgrd.disabled = true;
- }
- }
- else {
- btn_save.disabled = true;
- btn_delgrd.disabled = true;
- }
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:695px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //그리드 for 문 돌려서 삭제인 것만 찾아서 attfilenm 을 다 null로 바꾸어 주고 부모창에 넘기면 된다....
- /*
- for (var i=grd_fileinfo.fixedRows ; i< grd_fileinfo.rows ; i++) {
- if ( grd_fileinfo.rowStatus(i) = 4) {
- model.setValue("/root/main/fileinfo/fileinfolist["+i+"]/attfilenm" , "");
- }
- }
- */
- misfSave("TXRFE02502");
- btn_search.dispatch("DOMActivate");
- //부모창 즉 비품청구 등록 창에 첨부파일 항목을 지워주어야 한다.
- //attfilenm 을 빈값으로 만든 다음 넘겨야 한다.
- //즉 노드셋단에서 한번 조작을 가한후 해당 데이터를 부모창에 넘겨주어햐 한다.
- //misfPopUpListReturn(grd_fileinfo);
- ]]>
- </script>
- </button>
- <line id="line2" class="line_3" style="x1:0px; y1:57px; x2:755px; y2:57px; "/>
- <button id="btn_delgrd" class="btn2_letter3" style="left:699px; top:60px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_fileinfo, "D");
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" scroll="auto" style="left:10px; top:521px; width:755px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:637px; top:2px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:694px; top:2px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:580; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|