SMRIS00301_과제별입출금관리.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>과제별 입출금관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <reportinfo/>
  11. <studyprojinfo/>
  12. <rephistinfo/>
  13. <ioamtmain>
  14. <instcd/>
  15. <bsdd/>
  16. <projcd/>
  17. <projnm/>
  18. <rshid/>
  19. <rshnm/>
  20. <reqfirm/>
  21. <projamt/>
  22. <bizflag/>
  23. <studycd/>
  24. <bstotiamt/>
  25. <bstotoamt/>
  26. <bstotjamt/>
  27. </ioamtmain>
  28. <repdetlinfo/>
  29. <ioamtinfo/>
  30. <ioamtdinfo/>
  31. <ioamtprint>
  32. <ioamtprintlist/>
  33. </ioamtprint>
  34. <attdoculst>
  35. <attdoculst/>
  36. </attdoculst>
  37. </main>
  38. <send>
  39. <searchproj>
  40. <instcd/>
  41. <studycd/>
  42. <rshid/>
  43. <projnm/>
  44. <rshnm/>
  45. <estatus/>
  46. </searchproj>
  47. <searchrephist>
  48. <instcd/>
  49. <projcd/>
  50. </searchrephist>
  51. <searchreport/>
  52. <searchrepdetl/>
  53. <savedata>
  54. <ioamtlist/>
  55. <ioamtlist/>
  56. <attdoculst/>
  57. <attach>
  58. <file/>
  59. </attach>
  60. </savedata>
  61. <reqdata>
  62. </reqdata>
  63. <userinfo/>
  64. </send>
  65. <init>
  66. <status/>
  67. <bizflaglist>
  68. <I0012/>
  69. </bizflaglist>
  70. <acntlst>
  71. <acntlst/>
  72. </acntlst>
  73. </init>
  74. <hidden>
  75. <instlist>
  76. <inst>
  77. <cdnm>본원</cdnm>
  78. <cdid>031</cdid>
  79. </inst>
  80. <inst>
  81. <cdnm>칠곡</cdnm>
  82. <cdid>032</cdid>
  83. </inst>
  84. </instlist>
  85. <statuslist>
  86. <status>
  87. <cdnm>진행</cdnm>
  88. <cdid>P</cdid>
  89. </status>
  90. <status>
  91. <cdnm>종료</cdnm>
  92. <cdid>E</cdid>
  93. </status>
  94. </statuslist>
  95. <ioamt>
  96. <seqno/>
  97. </ioamt>
  98. </hidden>
  99. <temp/>
  100. </root>
  101. </instance>
  102. <submission id="TRRIS00301" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/searchproj" replace="instance" resultref="/root/main/studyprojinfo"/>
  103. <submission id="TXRIS00301" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/savedata" resultref="/root/hidden/ioamt"/>
  104. <submission id="TXRIS00302" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/reqdata" resultref="/root/hidden/ioamt"/>
  105. <submission id="TRRIS00302" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/ioamtinfo"/>
  106. <submission id="TRRIS00303" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/ioamtdinfo"/>
  107. <submission id="TRRIS00304" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/reqdata" replace="instance" resultref="/root/hidden/ioamt"/>
  108. <submission id="TRRIS00305" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/ioamtprint"/>
  109. <submission id="TRRIS00309" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/reqdata" replace="instance" resultref="/root/init/acntlst"/>
  110. <submission id="TRRIS00310" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/attdoculst"/>
  111. <submission id="TRRIS00311" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  112. <submission id="TXRIS00305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  113. <script type="javascript" ev:event="xforms-ready">
  114. <![CDATA[
  115. fInit();
  116. ]]>
  117. </script>
  118. </model>
  119. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  120. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  121. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  122. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  123. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  124. <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
  125. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  126. <script type="javascript" src="../../../mis/ctmsweb/js/SMRIS00301.js"/>
  127. </xhtml:head>
  128. <xhtml:body pagewidth="1195px" pageheight="780px" style="font-family:맑은 고딕; color:#ffff00; ">
  129. <group id="grp_buttons" style="left:0px; top:0px; width:1175px; height:25px; ">
  130. <button id="button3" class="btn4_letter2" style="left:753px; top:0px; width:56px; height:22px; ">
  131. <caption>삭제</caption>
  132. <script type="javascript" ev:event="DOMActivate">
  133. <![CDATA[
  134. if( switch1.selectedIndex == 2 ){
  135. fDelMaster("A");
  136. }else{
  137. fDelMaster("IO");
  138. }
  139. ]]>
  140. </script>
  141. </button>
  142. <button id="btn_save" class="btn4_letter2" style="left:811px; top:0px; width:56px; height:22px; ">
  143. <caption>저장</caption>
  144. <script type="javascript" ev:event="DOMActivate">
  145. <![CDATA[
  146. var flag = "IO";
  147. if (switch1.selectedIndex == 2 ) {
  148. flag = "A";
  149. }
  150. fSave(flag);
  151. ]]>
  152. </script>
  153. </button>
  154. <button id="button4" class="btn4_letter2" style="left:868px; top:0px; width:56px; height:22px; ">
  155. <caption>품의</caption>
  156. <script type="javascript" ev:event="DOMActivate">
  157. <![CDATA[
  158. messageBox("준비중입니다","I999");
  159. ]]>
  160. </script>
  161. </button>
  162. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:25px; ">과제별 금액관리</caption>
  163. <button id="button10" class="btn3_letter4" navindex="101" style="left:1090px; top:0px; width:80px; height:22px; ">
  164. <caption>문서신규</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. //btn_docu.dispatch("onclick");
  168. model.removeNodeset(grd_attdoculst.nodeset);
  169. var bizflag = "A" ;
  170. fNewDetail(bizflag);
  171. ]]>
  172. </script>
  173. </button>
  174. <button id="button1" class="btn3_letter4" navindex="101" style="left:926px; top:0px; width:80px; height:22px; ">
  175. <caption>수익신규</caption>
  176. <script type="javascript" ev:event="DOMActivate">
  177. <![CDATA[
  178. var bizflag = 'I' ;
  179. fNewDetail(bizflag);
  180. ]]>
  181. </script>
  182. </button>
  183. <button id="button2" class="btn3_letter4" navindex="101" style="left:1008px; top:0px; width:80px; height:22px; ">
  184. <caption>비용신규</caption>
  185. <script type="javascript" ev:event="DOMActivate">
  186. <![CDATA[
  187. var bizflag = 'O' ;
  188. fNewDetail(bizflag);
  189. ]]>
  190. </script>
  191. </button>
  192. </group>
  193. <caption id="caption34" class="tit_2" style="left:0px; top:452px; width:161px; height:14px; font-family:돋움체; ">입출금이력 및 첨부파일</caption>
  194. <line id="line3" class="line_1" style="x1:0px; y1:468px; x2:430px; y2:468px; font-family:돋움체; "/>
  195. <group id="group2" style="left:0px; top:22px; width:430px; height:79px; font-family:돋움체; vertical-align:top; ">
  196. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:429px; height:70px; font-family:돋움체; background-color:#fffbf2; border-color:#ffd799; "/>
  197. <input id="input3" ref="/root/send/searchproj/studycd" class="input_default" navindex="10" visibility="visible" style="left:126px; top:45px; width:182px; height:19px; ">
  198. <script type="javascript" ev:event="onkeypress">
  199. <![CDATA[
  200. if(event.keyCode == "13") {
  201. inputEnterKey("btn_search","DOMActivate");
  202. }
  203. ]]>
  204. </script>
  205. </input>
  206. <caption id="caption2" class="search_name" style="left:12px; top:45px; width:113px; height:17px; font-family:돋움체; ">과 제 번 호 :</caption>
  207. <caption id="caption4" class="search_name" style="left:12px; top:21px; width:120px; height:17px; font-family:돋움체; ">책임 연구원 :</caption>
  208. <button id="btn_useid" class="icon_search" navindex="5" style="left:314px; top:19px; width:16px; height:16px; ">
  209. <caption/>
  210. <script type="javascript" ev:event="DOMActivate">
  211. <![CDATA[
  212. fSetUserinfo();
  213. ]]>
  214. </script>
  215. </button>
  216. <output id="output1" ref="/root/send/searchproj/rshnm" class="output_fix" style="left:226px; top:19px; width:81px; height:19px; "/>
  217. <output id="output2" ref="/root/send/searchproj/rshid" class="output_fix" style="left:127px; top:19px; width:95px; height:19px; "/>
  218. <button id="btn_search" class="btn1_letter2" style="left:313px; top:44px; width:56px; height:22px; ">
  219. <caption>조회</caption>
  220. <script type="javascript" ev:event="DOMActivate">
  221. <![CDATA[
  222. fSearch();
  223. ]]>
  224. </script>
  225. </button>
  226. <select id="cbx_e" ref="/root/send/searchproj/estatus" overflow="visible" appearance="full" style="left:335px; top:19px; width:70px; height:20px; border-style:none; ">
  227. <choices>
  228. <item>
  229. <label>종결포함</label>
  230. <value>Y</value>
  231. </item>
  232. </choices>
  233. </select>
  234. </group>
  235. <line id="line1" class="line_1" style="x1:0px; y1:128px; x2:430px; y2:128px; font-family:돋움체; "/>
  236. <datagrid id="grd_ioamtlist" nodeset="/root/main/ioamtinfo/ioamtlist" class="datagrid2" scroll="auto" caption="업무구분^발생일자^소분류^일련&#xA;번호^입력자^과제&#xA;코드^^파일명^파일경로^비고^amtcd" colsep="^" colwidth="62, 81, 160, 35, 71, 55, 100, 100, 100, 100, 100" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" navindex="21" style="left:0px; top:471px; width:430px; height:302px; font-family:돋움체; ">
  237. <col disabled="true" ref="bizflag" type="combo" style="text-align:center; ">
  238. <choices>
  239. <itemset nodeset="/root/init/bizflaglist/I0012">
  240. <label ref="cdnm"/>
  241. <value ref="cdid"/>
  242. </itemset>
  243. </choices>
  244. </col>
  245. <col ref="bsdd" format="yyyy-mm-dd" style="text-align:center; "/>
  246. <col ref="acntnm" style="text-align:left; "/>
  247. <col ref="seqno" style="text-align:center; "/>
  248. <col ref="bsnm" style="text-align:center; "/>
  249. <col ref="projcd" visibility="hidden" style="text-align:center; "/>
  250. <col ref="totamt" visibility="hidden" style="text-align:center; "/>
  251. <col ref="attfilenm" visibility="hidden"/>
  252. <col ref="attfilepath" visibility="hidden"/>
  253. <col ref="bigo" visibility="hidden"/>
  254. <col key="amtcd" visibility="hidden"/>
  255. <script type="javascript" ev:event="ondblclick">
  256. <![CDATA[
  257. var bizflag = model.getValue("/root/main/ioamtinfo/ioamtlist["+ grd_ioamtlist.row +"]/bizflag");
  258. if (bizflag == "A") {
  259. btn_docu.dispatch("onclick");
  260. } else {
  261. btn_comps.dispatch("onclick");
  262. }
  263. ]]>
  264. </script>
  265. </datagrid>
  266. <input id="ipt_servcd" ref="/root/main/ioamtmain/studycd" disabled="true" style="left:512px; top:30px; width:105px; height:19px; font-family:돋움체; background-color:#ecebec; "/>
  267. <input id="input5" ref="/root/main/ioamtmain/projnm" disabled="true" style="left:620px; top:30px; width:549px; height:19px; font-family:돋움체; background-color:#ecebec; "/>
  268. <caption id="cap_goodflagengnm" class="cell_1" style="left:992px; top:52px; width:80px; height:22px; font-family:돋움체; vertical-align:middle; ">작성일자</caption>
  269. <line id="line4" class="line_2" style="x1:436px; y1:27px; x2:1173px; y2:27px; font-family:돋움체; "/>
  270. <caption id="caption7" class="cell_1" style="left:435px; top:28px; width:75px; height:22px; font-family:돋움체; vertical-align:middle; ">과 제</caption>
  271. <line id="line5" class="line_2" style="x1:436px; y1:50px; x2:1170px; y2:50px; font-family:돋움체; "/>
  272. <input id="input6" ref="/root/main/ioamtmain/bsdd" inputtype="date" style="left:1074px; top:53px; width:94px; height:19px; font-family:돋움체; "/>
  273. <caption id="caption8" class="cell_1" style="left:806px; top:52px; width:80px; height:22px; font-family:돋움체; vertical-align:middle; ">책임연구원</caption>
  274. <input id="input1" ref="/root/main/ioamtmain/rshnm" disabled="true" style="left:889px; top:53px; width:100px; height:19px; font-family:돋움체; background-color:#ecebec; "/>
  275. <caption id="caption1" class="cell_1" style="left:435px; top:52px; width:75px; height:22px; font-family:돋움체; vertical-align:middle; ">의뢰기관</caption>
  276. <output id="out_reqfirm" ref="/root/main/ioamtmain/reqfirm" class="output_fix" style="left:512px; top:53px; width:105px; height:19px; "/>
  277. <caption id="caption9" class="cell_1" style="left:620px; top:52px; width:80px; height:22px; font-family:돋움체; vertical-align:middle; ">연구비총액</caption>
  278. <output id="out_projamt" ref="/root/main/ioamtmain/projamt" class="output_fix" format="#,###" style="left:703px; top:53px; width:100px; height:19px; text-align:right; "/>
  279. <line id="line6" class="line_2" style="x1:435px; y1:75px; x2:1169px; y2:75px; font-family:돋움체; "/>
  280. <caption id="caption3" class="cell_2" style="left:435px; top:77px; width:75px; height:22px; font-family:돋움체; font-weight:bold; color:#ffffff; text-align:left; vertical-align:middle; ">입금액</caption>
  281. <line id="line7" class="line_2" style="x1:435px; y1:100px; x2:1169px; y2:100px; font-family:돋움체; "/>
  282. <caption id="caption5" class="cell_2" style="left:620px; top:77px; width:80px; height:22px; font-family:돋움체; font-weight:bold; color:#ffffff; text-align:left; vertical-align:middle; ">지출액</caption>
  283. <caption id="caption10" class="cell_2" style="left:806px; top:77px; width:80px; height:22px; font-family:돋움체; font-weight:bold; color:#ffffff; text-align:left; vertical-align:middle; ">잔 액</caption>
  284. <output id="opt_bstotiamt" ref="/root/main/ioamtmain/bstotiamt" class="output_fix" format="(-)#,###" style="left:512px; top:78px; width:105px; height:19px; text-align:right; "/>
  285. <output id="opt_bstotoamt" ref="/root/main/ioamtmain/bstotoamt" class="output_fix" format="(-)#,###" style="left:703px; top:78px; width:100px; height:19px; text-align:right; "/>
  286. <output id="opt_bstotjamt" ref="/root/main/ioamtmain/bstotjamt" class="output_fix" format="(-)#,###" style="left:889px; top:78px; width:100px; height:19px; text-align:right; "/>
  287. <button id="button6" class="btn5_letter6" style="left:340px; top:445px; width:86px; height:19px; ">
  288. <caption>최종이력내역</caption>
  289. <script type="javascript" ev:event="DOMActivate">
  290. <![CDATA[
  291. btn_excel.visible = true;
  292. model.makeValue("/root/send/reqdata/instcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + grd_proj.row + "]/instcd"));
  293. model.makeValue("/root/send/reqdata/projcd" , model.getValue("/root/main/studyprojinfo/studyprojlist[" + grd_proj.row + "]/projcd"));
  294. submit("TRRIS00305");
  295. grd_excelioamtlist.subtotalposition = "below";
  296. grd_excelioamtlist.multitotals = true;
  297. grd_excelioamtlist.subtotal("sum", -1, 2, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 0, "합계", false);
  298. grd_excelioamtlist.subtotal("sum", -1, 3, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 0, "합계", false);
  299. grd_excelioamtlist.subtotal("sum", -1, 4, "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#ffffff; ", 0, "합계", false);
  300. button7.selected = true;
  301. switch1.selectedIndex = 1;
  302. model.refresh();
  303. ]]>
  304. </script>
  305. </button>
  306. <button id="btn_excel" class="btn5_letter3" visibility="hidden" style="left:1118px; top:105px; width:53px; height:19px; ">
  307. <caption>Excel</caption>
  308. <script type="javascript" ev:event="DOMActivate">
  309. <![CDATA[
  310. var sTitle = "최종 입출금 이력 리스트";
  311. var fileName = window.fileDialog("save", ",", false, sTitle, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  312. if (fileName != ""){
  313. grd_excelioamtlist.saveExcel(fileName, sTitle, true, true, "", "", true);
  314. }
  315. // exeReportPreview("RPRIF02731","XMLSTR");
  316. model.refresh();
  317. ]]>
  318. </script>
  319. </button>
  320. <button id="btn_comps" class="btn_sw" disabled="false" group="tab" selected="true" style="left:544px; top:105px; width:116px; height:22px; ">
  321. <caption>입출금 상세내역</caption>
  322. <toggle case="case1" ev:event="DOMActivate"/>
  323. <script type="javascript" ev:event="onclick">
  324. <![CDATA[
  325. btn_excel.visible = false;
  326. if(grd_ioamtlist.row != ""){
  327. fGetamtdetail();
  328. }
  329. model.refresh();
  330. ]]>
  331. </script>
  332. </button>
  333. <button id="button7" class="btn_sw" group="tab" style="left:434px; top:105px; width:110px; height:22px; ">
  334. <caption>최종 이력내역</caption>
  335. <toggle case="case2" ev:event="DOMActivate"/>
  336. <script type="javascript" ev:event="onclick">
  337. <![CDATA[
  338. btn_excel.visible = true;
  339. button6.dispatch("DOMActivate");
  340. model.refresh();
  341. ]]>
  342. </script>
  343. </button>
  344. <caption id="caption11" class="tit_2" style="left:0px; top:110px; width:99px; height:13px; ">과제 LIST</caption>
  345. <button id="button5" class="icon_top" style="left:376px; top:105px; width:26px; height:19px; ">
  346. <script type="javascript" ev:event="DOMActivate">
  347. <![CDATA[
  348. button6.attribute("top") = "445";
  349. button6.attribute("left") = "340";
  350. grd_proj.attribute("height") = "310";
  351. model.refresh();
  352. ]]>
  353. </script>
  354. <caption/>
  355. </button>
  356. <button id="button8" class="icon_bottom" style="left:404px; top:105px; width:26px; height:19px; ">
  357. <script type="javascript" ev:event="DOMActivate">
  358. <![CDATA[
  359. button6.attribute("top") = "105";
  360. button6.attribute("left") = "286";
  361. grd_proj.attribute("height") = "640";
  362. model.refresh();
  363. ]]>
  364. </script>
  365. <caption/>
  366. </button>
  367. <datagrid id="grd_proj" nodeset="/root/main/studyprojinfo/studyprojlist" class="datagrid2" scroll="auto" caption="상태^기관코드^코드^책임연구원^과제번호^과제명^과제&#xA;코드" colsep="^" colwidth="42, 17, 16, 14, 125, 263, 44, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" navindex="21" style="left:0px; top:132px; width:430px; height:310px; font-family:돋움체; ">
  368. <col disabled="true" ref="status" type="combo" style="text-align:center; ">
  369. <choices>
  370. <itemset nodeset="/root/init/status/I0010">
  371. <label ref="cdnm"/>
  372. <value ref="cdid"/>
  373. </itemset>
  374. </choices>
  375. </col>
  376. <col ref="instcd" visibility="hidden"/>
  377. <col ref="projcd" visibility="hidden"/>
  378. <col ref="rshid" visibility="hidden"/>
  379. <col ref="studycd" style="text-align:center; "/>
  380. <col ref="projnm"/>
  381. <col ref="projcd" style="text-align:center; "/>
  382. <col ref="fromdd" visibility="hidden"/>
  383. <col ref="todd" visibility="hidden"/>
  384. <script type="javascript" ev:event="onaftersort">
  385. <![CDATA[
  386. grd_proj.gridToInstance();
  387. ]]>
  388. </script>
  389. <script type="javascript" ev:event="ondblclick">
  390. <![CDATA[
  391. fGetamtmaster();
  392. model.removeNodeset("/root/send/savedata/attach");
  393. ]]>
  394. </script>
  395. </datagrid>
  396. <button id="btn_docu" class="btn_sw" disabled="false" group="tab" style="left:660px; top:105px; width:106px; height:22px; ">
  397. <caption>문서상세내역</caption>
  398. <toggle case="case3" ev:event="DOMActivate"/>
  399. <script type="javascript" ev:event="onclick">
  400. <![CDATA[
  401. btn_excel.visible = false;
  402. if(grd_attdoculst.row != ""){
  403. fGetamtdetail("A");
  404. }
  405. model.refresh();
  406. ]]>
  407. </script>
  408. </button>
  409. <switch id="switch1" style="left:435px; top:127px; width:740px; height:648px; ">
  410. <case id="case1">
  411. <datagrid id="grd_ioamtdlist" nodeset="/root/main/ioamtdinfo/ioamtdlist" class="datagrid2" autoresize="true" caption="중분류^소분류^금액^비고" colsep="^" colwidth="150, 180, 110, 287, 20, 23" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" selected="true" style="left:0px; top:4px; width:735px; height:640px; ">
  412. <col ref="lrgnm"/>
  413. <col ref="mdlnm"/>
  414. <col ref="amt" type="input" format="(-)#,###" style="text-align:right; "/>
  415. <col ref="bigo" type="input"/>
  416. <col ref="kind" visibility="hidden"/>
  417. <col ref="amtcd" visibility="hidden"/>
  418. </datagrid>
  419. <line id="line2" class="line_1" style="x1:0px; y1:0px; x2:735px; y2:0px; font-family:맑은고딕; "/>
  420. </case>
  421. <case id="case2" selected="true" style="left:0px; top:0px; width:100.00%; height:100.00%; ">
  422. <datagrid id="grd_excelioamtlist" nodeset="/root/main/ioamtprint/ioamtprintlist" class="datagrid2" scroll="auto" caption="일시^소분류^입금액^공제금액^지출액^지출잔액^비고" colsep="^" colwidth="85, 150, 85, 85, 85, 85, 180" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" navindex="21" style="left:0px; top:4px; width:735px; height:640px; font-family:맑은고딕; ">
  423. <col ref="bsdd" format="yyyy-mm-dd" style="text-align:center; "/>
  424. <col ref="acntnm" style="text-align:left; "/>
  425. <col ref="inamt" format="(-)#,###" style="text-align:right; "/>
  426. <col ref="gongamt" format="(-)#,###" style="text-align:right; "/>
  427. <col ref="outamt" format="(-)#,###" style="text-align:right; "/>
  428. <col ref="jamt" format="(-)#,###" style="text-align:right; "/>
  429. <col ref="bigo" style="text-align:left; "/>
  430. <script type="javascript" ev:event="ondblclick">
  431. <![CDATA[
  432. fGetamtdetail();
  433. ]]>
  434. </script>
  435. </datagrid>
  436. <line id="line8" class="line_1" style="x1:0px; y1:0px; x2:735px; y2:0px; font-family:맑은고딕; "/>
  437. </case>
  438. <case id="case3">
  439. <datagrid id="grd_attdoculst" nodeset="/root/main/attdoculst/attdoculst" caption="일시^업무구분^파일경로^파일명^비고^보고자ID^파일크기^filetype^projcd^seqno^kind^bizflag^amtcd^amt" colsep="^" colwidth="79, 62, 117, 185, 489, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:3px; width:735px; height:641px; ">
  440. <col ref="bsdd" type="output" visibility="hidden" format="####-##-##" style="text-align:center; "/>
  441. <col disabled="true" ref="bizflag" type="combo" visibility="hidden">
  442. <choices>
  443. <itemset nodeset="/root/init/bizflaglist/I0012[cdid='A']">
  444. <label ref="cdnm"/>
  445. <value ref="cdid"/>
  446. </itemset>
  447. </choices>
  448. </col>
  449. <col ref="attfilepath" visibility="hidden"/>
  450. <col ref="attfilenm"/>
  451. <col ref="bigo" type="input"/>
  452. <col ref="reportid" visibility="hidden"/>
  453. <col ref="filesize" visibility="hidden"/>
  454. <col ref="filetype" visibility="hidden"/>
  455. <col ref="projcd" visibility="hidden"/>
  456. <col ref="seqno" visibility="hidden"/>
  457. <col ref="kind" visibility="hidden"/>
  458. <col ref="bizflag" visibility="hidden"/>
  459. <col ref="amtcd" visibility="hidden"/>
  460. <col ref="amt" visibility="hidden"/>
  461. <script type="javascript" ev:event="ondblclick">
  462. <![CDATA[
  463. fDownLoad();
  464. ]]>
  465. </script>
  466. </datagrid>
  467. <upload id="upload1" nodeset="/root/send/savedata/file" ext="zip" filecount="5" filesize="1048576" validate="true" style="left:455px; top:85px; width:25px; height:20px; "/>
  468. <line id="line9" class="line_1" style="x1:0px; y1:0px; x2:735px; y2:0px; font-family:맑은고딕; "/>
  469. </case>
  470. <line id="line9" class="line_1" style="x1:0px; y1:0px; x2:735px; y2:0px; font-family:맑은고딕 "/>
  471. </switch>
  472. <button id="btn_down" class="btn2_letter4" visibility="hidden" style="left:1107px; top:105px; width:64px; height:19px; ">
  473. <caption>다운로드</caption>
  474. <script type="javascript" ev:event="DOMActivate">
  475. <![CDATA[
  476. for( i = 0; i < grd_attdoculst.rows; i++){
  477. if( model.getValue("/root/main/attdoculst/attdoculst["+ i +"]/check") == "Y" ){
  478. // alert("check");
  479. var filepath = model.getValue("/root/main/attdoculst/attdoculst["+i+"]/filepath");
  480. var filenm = model.getValue("/root/main/attdoculst/attdoculst["+i+"]/filenm");
  481. var realfile = getActionURL("TRRIS00311") + "&filepath=" + filepath;
  482. // alert("filepath : "+filepath);
  483. // alert("filenm : "+filenm);
  484. var localfile = window.fileDialog("save", "|", false, filenm, "", "All Files(*.*)|*.*");
  485. if (localfile != "") {
  486. model.download(realfile, localfile);
  487. window.exec(localfile);
  488. }
  489. }
  490. }
  491. ]]>
  492. </script>
  493. </button>
  494. </xhtml:body>
  495. </xhtml:html>