SMRPV05701_부서별업무목표파일조회.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>파일조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <fileinfo>
  11. <fileinfolist/>
  12. </fileinfo>
  13. </main>
  14. <target/>
  15. <init>
  16. </init>
  17. <send>
  18. <fileinfo>
  19. <valuyy/>
  20. <instcd/>
  21. <deptcd/>
  22. <emplno/>
  23. <goalflag/>
  24. <fstscndhfyyflag/>
  25. <valuclscd/>
  26. <valumdlcd/>
  27. <valuclsdetlcd/>
  28. <publbaseflag/>
  29. <idxcd/>
  30. <seqno/>
  31. <tableflag/>
  32. <wrtedd/>
  33. <fileflag/>
  34. </fileinfo>
  35. <save>
  36. <fileinfolist/>
  37. </save>
  38. </send>
  39. </root>
  40. </instance>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. misfGridInit(grd_fileinfo);
  44. misfMsterDetailSet(grd_fileinfo,null, "TRRPV05705" ,"Y");
  45. if(model.getValue("/root/target/defaultvalue/valuyy").length > 0){
  46. model.setValue("/root/send/fileinfo/valuyy", model.getValue("/root/target/defaultvalue/valuyy"));
  47. model.setValue("/root/send/fileinfo/instcd", model.getValue("/root/target/defaultvalue/instcd"));
  48. model.setValue("/root/send/fileinfo/deptcd", model.getValue("/root/target/defaultvalue/deptcd"));
  49. model.setValue("/root/send/fileinfo/emplno", model.getValue("/root/target/defaultvalue/emplno"));
  50. model.setValue("/root/send/fileinfo/goalflag", model.getValue("/root/target/defaultvalue/goalflag"));
  51. model.setValue("/root/send/fileinfo/fstscndhfyyflag", model.getValue("/root/target/defaultvalue/fstscndhfyyflag"));
  52. model.setValue("/root/send/fileinfo/valuclscd", model.getValue("/root/target/defaultvalue/valuclscd"));
  53. model.setValue("/root/send/fileinfo/valumdlcd", model.getValue("/root/target/defaultvalue/valumdlcd"));
  54. model.setValue("/root/send/fileinfo/valuclsdetlcd", model.getValue("/root/target/defaultvalue/valuclsdetlcd"));
  55. model.setValue("/root/send/fileinfo/publbaseflag", model.getValue("/root/target/defaultvalue/publbaseflag"));
  56. model.setValue("/root/send/fileinfo/idxcd", model.getValue("/root/target/defaultvalue/idxcd"));
  57. model.setValue("/root/send/fileinfo/seqno", model.getValue("/root/target/defaultvalue/seqno"));
  58. model.setValue("/root/send/fileinfo/wrtedd", model.getValue("/root/target/defaultvalue/wrtedd"));
  59. if(model.getValue("/root/target/defaultvalue/tableflag") == "")
  60. {
  61. model.setValue("/root/send/fileinfo/tableflag", "1");
  62. }else if(model.getValue("/root/target/defaultvalue/tableflag") == "3") // 인사평가 첨부화일 테이블 구분.
  63. {
  64. model.setValue("/root/send/fileinfo/tableflag", "3");
  65. model.setValue("/root/send/fileinfo/fileflag", model.getValue("/root/target/defaultvalue/fileflag"));
  66. }else{
  67. model.setValue("/root/send/fileinfo/tableflag", model.getValue("/root/target/defaultvalue/tableflag"));
  68. }
  69. var instcd = model.getValue("/root/target/defaultvalue/instcd");
  70. var emplno = model.getValue("/root/target/defaultvalue/emplno");
  71. rpvfGetUserAuth(instcd,emplno);
  72. btn_search.dispatch("DOMActivate");
  73. }
  74. ]]>
  75. </script>
  76. <submission id="TRRPV05705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fileinfo" resultref="/root/main/fileinfo"/>
  77. <submission id="TRRPV05704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  78. <submission id="TXRPV05704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  79. <script type="javascript" ev:event="xforms-model-destruct">
  80. <![CDATA[
  81. if (getGridUpdateData(grd_fileinfo) != "" ) {
  82. if (btn_save.disabled == false) {
  83. var save_val = messageBox("삭제 자료가 존재 합니다. ", "Q002");
  84. if (save_val == "6") {
  85. btn_save.dispatch("DOMActivate");
  86. }
  87. }
  88. }
  89. ]]>
  90. </script>
  91. </model>
  92. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  93. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  94. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  96. <script type="javascript" src="../../../mis/valuationmngtweb/js/RPV001.js"/>
  97. <script type="javascript">
  98. <![CDATA[
  99. function CheckDelDataAuth(row)
  100. {
  101. var emplno = getUserInfo("userid"); //model.getValue("/root/send/fileinfo/emplno");
  102. if(DUTY_VALU_YN =='Y'){
  103. btn_save.disabled = false;
  104. btn_delgrd.disabled = false;
  105. }else{
  106. if (grd_fileinfo.valueMatrix(row, grd_fileinfo.colRef("emplno")) == emplno) {
  107. btn_save.disabled = false;
  108. btn_delgrd.disabled = false;
  109. }
  110. else {
  111. btn_save.disabled = true;
  112. btn_delgrd.disabled = true;
  113. }
  114. }
  115. }
  116. ]]>
  117. </script>
  118. </xhtml:head>
  119. <xhtml:body pagewidth="800" pageheight="570" guideline="1,156;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  120. <group id="group3" scroll="auto" style="left:10px; top:0px; width:755px; height:522px; ">
  121. <caption id="caption1" class="tit_2" style="left:3px; top:11px; width:175px; height:13px; ">파일내역조회</caption>
  122. <line id="line1" class="line_1" style="x1:0px; y1:27px; x2:755px; y2:27px; "/>
  123. <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; ">
  124. <col ref="instnm"/>
  125. <col ref="deptnm"/>
  126. <col ref="jobrespnm"/>
  127. <col ref="emplnm"/>
  128. <col ref="filenm"/>
  129. <col ref="filesize" style="text-align:right; "/>
  130. <col ref="filetype"/>
  131. <col ref="qrycnt" style="text-align:center; "/>
  132. <col ref="valuyy" visibility="hidden"/>
  133. <col ref="instcd" visibility="hidden"/>
  134. <col ref="deptcd" visibility="hidden"/>
  135. <col ref="goalflag" visibility="hidden"/>
  136. <col ref="seqno" visibility="hidden"/>
  137. <col ref="emplno" visibility="hidden"/>
  138. <col ref="wrtedd" visibility="hidden"/>
  139. <col ref="fileseqno" visibility="hidden"/>
  140. <col ref="filepath" visibility="hidden"/>
  141. <col ref="tableflag" visibility="hidden"/>
  142. <col ref="fstscndhfyyflag" visibility="hidden"/>
  143. <col ref="valuclscd" visibility="hidden"/>
  144. <col ref="valumdlcd" visibility="hidden"/>
  145. <col ref="valuclsdetlcd" visibility="hidden"/>
  146. <col ref="publbaseflag" visibility="hidden"/>
  147. <col ref="idxcd" visibility="hidden"/>
  148. <col ref="seqno2" visibility="hidden"/>
  149. <col ref="wrtedd" visibility="hidden"/>
  150. <col ref="fileflag" visibility="hidden"/>
  151. <script type="javascript" ev:event="ondblclick">
  152. <![CDATA[
  153. var idx = grd_fileinfo.row;
  154. var filepath = model.getValue("/root/main/fileinfo/fileinfolist["+idx+"]/filepath");
  155. var filenm = model.getValue("/root/main/fileinfo/fileinfolist["+idx+"]/filenm");
  156. var localfile = window.fileDialog("save","|",false,filenm,"","All Files(*.*)|*.*");
  157. if (localfile != "") {
  158. var qrycnt=grd_fileinfo.valueMatrix(idx,grd_fileinfo.colRef("qrycnt"));
  159. cnt = parseInt(qrycnt)+1;
  160. model.setValue("/root/main/fileinfo/fileinfolist["+idx+"]/qrycnt",cnt);
  161. grd_fileinfo.addStatus(idx,"update");
  162. misfSave("TXRPV05704");
  163. model.download(getActionURL("TRRPV05704")+"&filepath="+filepath,localfile);
  164. var rtn = messageBox("파일을", "Q004");
  165. if( rtn == 6 ) {
  166. window.exec(localfile);
  167. }
  168. }
  169. ]]>
  170. </script>
  171. <script type="javascript" ev:event="onrowchanged">
  172. <![CDATA[
  173. if (grd_fileinfo.rows - grd_fileinfo.fixedRows > 0) {
  174. CheckDelDataAuth(grd_fileinfo.row);
  175. }
  176. ]]>
  177. </script>
  178. </datagrid>
  179. <button id="btn_search" class="btn1_letter2" style="left:697px; top:33px; width:56px; height:22px; ">
  180. <caption>조회</caption>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. btn_save.disabled = true;
  184. btn_delgrd.disabled = true;
  185. misfMsterDetailRetrieve();
  186. if (grd_fileinfo.rows - grd_fileinfo.fixedRows > 0) {
  187. CheckDelDataAuth(grd_fileinfo.fixedRows);
  188. }
  189. ]]>
  190. </script>
  191. </button>
  192. <button id="btn_save" class="btn4_letter2" style="left:695px; top:3px; width:56px; height:22px; ">
  193. <caption>저장</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. misfSave("TXRPV05704");
  197. ]]>
  198. </script>
  199. </button>
  200. <line id="line2" class="line_3" style="x1:0px; y1:57px; x2:755px; y2:57px; "/>
  201. <button id="btn_delgrd" class="btn2_letter3" style="left:699px; top:60px; width:53px; height:19px; ">
  202. <caption>행삭제</caption>
  203. <script type="javascript" ev:event="DOMActivate">
  204. <![CDATA[
  205. misfGridIUD(grd_fileinfo, "D");
  206. ]]>
  207. </script>
  208. </button>
  209. </group>
  210. <group id="group1" scroll="auto" style="left:10px; top:521px; width:755px; height:27px; ">
  211. <button id="btn_confirm" class="btn4_letter2" style="left:637px; top:2px; width:56px; height:22px; ">
  212. <caption>확인</caption>
  213. <script type="javascript" ev:event="DOMActivate">
  214. <![CDATA[
  215. window.close();
  216. ]]>
  217. </script>
  218. </button>
  219. <button id="btn_cancel" class="btn4_letter2" style="left:694px; top:2px; width:56px; height:22px; ">
  220. <caption>취소</caption>
  221. <script type="javascript" ev:event="DOMActivate">
  222. <![CDATA[
  223. window.close();
  224. ]]>
  225. </script>
  226. </button>
  227. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:580; y2:0px; "/>
  228. </group>
  229. </xhtml:body>
  230. </xhtml:html>