123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <valuyy/>
- <instcd/>
- <deptcd/>
- <emplno/>
- <goalflag/>
- <fstscndhfyyflag/>
- <valuclscd/>
- <valumdlcd/>
- <valuclsdetlcd/>
- <publbaseflag/>
- <idxcd/>
- <seqno/>
- <tableflag/>
- <wrtedd/>
- <fileflag/>
- </fileinfo>
- <save>
- <fileinfolist/>
- </save>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGridInit(grd_fileinfo);
- misfMsterDetailSet(grd_fileinfo,null, "TRRPV05705" ,"Y");
-
-
- if(model.getValue("/root/target/defaultvalue/valuyy").length > 0){
-
- model.setValue("/root/send/fileinfo/valuyy", model.getValue("/root/target/defaultvalue/valuyy"));
- model.setValue("/root/send/fileinfo/instcd", model.getValue("/root/target/defaultvalue/instcd"));
- model.setValue("/root/send/fileinfo/deptcd", model.getValue("/root/target/defaultvalue/deptcd"));
- model.setValue("/root/send/fileinfo/emplno", model.getValue("/root/target/defaultvalue/emplno"));
- model.setValue("/root/send/fileinfo/goalflag", model.getValue("/root/target/defaultvalue/goalflag"));
-
- model.setValue("/root/send/fileinfo/fstscndhfyyflag", model.getValue("/root/target/defaultvalue/fstscndhfyyflag"));
- model.setValue("/root/send/fileinfo/valuclscd", model.getValue("/root/target/defaultvalue/valuclscd"));
- model.setValue("/root/send/fileinfo/valumdlcd", model.getValue("/root/target/defaultvalue/valumdlcd"));
- model.setValue("/root/send/fileinfo/valuclsdetlcd", model.getValue("/root/target/defaultvalue/valuclsdetlcd"));
- model.setValue("/root/send/fileinfo/publbaseflag", model.getValue("/root/target/defaultvalue/publbaseflag"));
- model.setValue("/root/send/fileinfo/idxcd", model.getValue("/root/target/defaultvalue/idxcd"));
-
- model.setValue("/root/send/fileinfo/seqno", model.getValue("/root/target/defaultvalue/seqno"));
- model.setValue("/root/send/fileinfo/wrtedd", model.getValue("/root/target/defaultvalue/wrtedd"));
-
-
- if(model.getValue("/root/target/defaultvalue/tableflag") == "")
- {
- model.setValue("/root/send/fileinfo/tableflag", "1");
- }else if(model.getValue("/root/target/defaultvalue/tableflag") == "3") // 인사평가 첨부화일 테이블 구분.
- {
- model.setValue("/root/send/fileinfo/tableflag", "3");
- model.setValue("/root/send/fileinfo/fileflag", model.getValue("/root/target/defaultvalue/fileflag"));
- }else{
- model.setValue("/root/send/fileinfo/tableflag", model.getValue("/root/target/defaultvalue/tableflag"));
- }
-
- var instcd = model.getValue("/root/target/defaultvalue/instcd");
- var emplno = model.getValue("/root/target/defaultvalue/emplno");
-
-
- rpvfGetUserAuth(instcd,emplno);
- btn_search.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- <submission id="TRRPV05705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fileinfo" resultref="/root/main/fileinfo"/>
- <submission id="TRRPV05704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TXRPV05704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
- <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>
- </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"/>
- <script type="javascript" src="../../../mis/valuationmngtweb/js/RPV001.js"/>
- <script type="javascript">
- <![CDATA[
- function CheckDelDataAuth(row)
- {
- var emplno = getUserInfo("userid"); //model.getValue("/root/send/fileinfo/emplno");
- if(DUTY_VALU_YN =='Y'){
- btn_save.disabled = false;
- btn_delgrd.disabled = false;
- }else{
- if (grd_fileinfo.valueMatrix(row, grd_fileinfo.colRef("emplno")) == emplno) {
- btn_save.disabled = false;
- btn_delgrd.disabled = false;
- }
- else {
- btn_save.disabled = true;
- btn_delgrd.disabled = true;
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="800" pageheight="570" guideline="1,156;" 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="기관^부서^직책^성명^파일이름^파일크기^파일타입^다운로드수" colsep="^" colwidth="125, 115, 60, 63, 156, 67, 67, 72, 100, 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="instnm"/>
- <col ref="deptnm"/>
- <col ref="jobrespnm"/>
- <col ref="emplnm"/>
- <col ref="filenm"/>
- <col ref="filesize" style="text-align:right; "/>
- <col ref="filetype"/>
- <col ref="qrycnt" style="text-align:center; "/>
- <col ref="valuyy" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="goalflag" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="emplno" visibility="hidden"/>
- <col ref="wrtedd" visibility="hidden"/>
- <col ref="fileseqno" visibility="hidden"/>
- <col ref="filepath" visibility="hidden"/>
- <col ref="tableflag" visibility="hidden"/>
- <col ref="fstscndhfyyflag" visibility="hidden"/>
- <col ref="valuclscd" 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"/>
- <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"));
- cnt = parseInt(qrycnt)+1;
- model.setValue("/root/main/fileinfo/fileinfolist["+idx+"]/qrycnt",cnt);
- grd_fileinfo.addStatus(idx,"update");
- misfSave("TXRPV05704");
- model.download(getActionURL("TRRPV05704")+"&filepath="+filepath,localfile);
- var rtn = messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- window.exec(localfile);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- if (grd_fileinfo.rows - grd_fileinfo.fixedRows > 0) {
- CheckDelDataAuth(grd_fileinfo.row);
- }
- ]]>
- </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[
- btn_save.disabled = true;
- btn_delgrd.disabled = true;
-
- misfMsterDetailRetrieve();
-
- if (grd_fileinfo.rows - grd_fileinfo.fixedRows > 0) {
- CheckDelDataAuth(grd_fileinfo.fixedRows);
- }
- ]]>
- </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[
- misfSave("TXRPV05704");
- ]]>
- </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>
|