SMICU00300_CRCC연구비관리.xrw 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962
  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>CRCC연구비관리</xhtml:title>
  6. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  7. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  8. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  9. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  10. <script type="javascript">
  11. <![CDATA[
  12. function getIsamSdtycost() {
  13. var subjid = model.getValue("/root/init/subjid");
  14. if(subjid == "") return;
  15. model.removenode("/root/main/view/isamstdycost");
  16. submit("TRICU00111");
  17. }
  18. function readfunc1() {
  19. model.removeNodeset("/root/main/subjdtlinfo/subjmstlist");
  20. submit("TRISA00102");
  21. model.resetInstanceNode("/root/main/subreqinfo/subreqlist");
  22. model.setValue("/root/main/subreqinfo/subreqlist/appdd", getCurrentDate());
  23. model.setValue("/root/main/subreqinfo/subreqlist/iudgb", "I");
  24. model.setValue("/root/main/subreqinfo/subreqlist/subjid", model.getValue("/root/send/data/subjid"));
  25. model.setValue("/root/main/subreqinfo/subreqlist/instcd", model.getValue("/root/send/data/instcd"));
  26. btn_del.disabled = true;
  27. model.refresh();
  28. }
  29. function readfunc2() {
  30. model.setValue("/root/main/reqdetlstat/reqdetldg/totappamt", "0");
  31. model.setValue("/root/main/reqdetlstat/reqdetldg/totwonamt", "0");
  32. model.setValue("/root/main/reqdetlstat/reqdetldg/totcalcamt", "0");
  33. if (submit("TRISA00103")){
  34. var dappamt = 0;
  35. var dwonamt = 0;
  36. var dcalcamt = 0;
  37. for (var i = 1; i < datagrid2.rows; i ++){
  38. dappamt = dappamt + parseFloat(model.getValue("/root/main/reqdetlinfo/reqdetllist[" + i + "]/totamt"));
  39. dwonamt = dwonamt + parseFloat(model.getValue("/root/main/reqdetlinfo/reqdetllist[" + i + "]/wonamt"));
  40. dcalcamt = dcalcamt + parseFloat(model.getValue("/root/main/reqdetlinfo/reqdetllist[" + i + "]/calcamt"));
  41. }
  42. model.setValue("/root/main/reqdetlstat/reqdetldg/totappamt", dappamt);
  43. model.setValue("/root/main/reqdetlstat/reqdetldg/totwonamt", dwonamt);
  44. model.setValue("/root/main/reqdetlstat/reqdetldg/totcalcamt", dcalcamt);
  45. datagrid2.subtotal("clear", -1, 0, "(-)#,###", "", 0, "합계");
  46. datagrid2.subtotal("sum", -1, 1, "(-)#,###", "", 0, "합계");
  47. datagrid2.subtotal("sum", -1, 2, "(-)#,###", "", 0, "합계");
  48. datagrid2.subtotal("sum", -1, 3, "(-)#,###", "", 0, "합계");
  49. datagrid2.subtotal("sum", -1, 4, "(-)#,###", "", 0, "합계");
  50. datagrid2.subtotal("sum", -1, 5, "(-)#,###", "", 0, "합계");
  51. datagrid2.subtotal("sum", -1, 6, "(-)#,###", "", 0, "합계");
  52. }
  53. model.refresh();
  54. }
  55. ]]>
  56. </script>
  57. <model id="model1">
  58. <script type="javascript" ev:event="xforms-ready">
  59. <![CDATA[
  60. submit("TRIRZ00000");
  61. model.toggle("case1");
  62. model.removenode("/root/main/grid/stdyexplst");
  63. model.setValue("/root/send/srch/srchfromdd", ((getCurrentDate().toDate("YYYYMMDD")).getAddDate(-1,"M")).getDateFormat("YYYYMMDD"));
  64. model.setValue("/root/send/srch/srchtodd", getCurrentDate());
  65. if(submit("TRICU00100")){
  66. for(var i =datagrid1.fixedRows;i < datagrid1.rows;i++){
  67. if(datagrid1.valueMatrix(i,datagrid1.colRef("missendyn")) == "Y"){
  68. datagrid1.isReadOnly(i,datagrid1.colRef("flag")) =true;
  69. datagrid1.rebuildStyle();
  70. setRowStyle("datagrid1","1","Y","missendyn","equal"); // mis에 저장구분 RowStyle변경
  71. } else {
  72. datagrid1.isReadOnly(i,datagrid1.colRef("flag")) =false;
  73. }
  74. }
  75. }
  76. datagrid1.refresh();
  77. ]]>
  78. </script>
  79. <instance id="instance1">
  80. <root xmlns="">
  81. <main>
  82. <grid>
  83. <stdyexplst>
  84. <subjno/>
  85. <itemnm/>
  86. <hospnm/>
  87. <instcd/>
  88. <appdd/>
  89. <cmpynm/>
  90. <rusernm/>
  91. <stdystartdd/>
  92. <stdyenddd/>
  93. <appdg/>
  94. <appamt/>
  95. <remamt/>
  96. <actseqno/>
  97. <subjid/>
  98. <instcd/>
  99. <appaprvyn/>
  100. <misseqno/>
  101. <appaprvnm/>
  102. <conreseryn/>
  103. <conusernm/>
  104. <conrrgstno/>
  105. </stdyexplst>
  106. </grid>
  107. <default>
  108. <hospdefinfo>
  109. <instcd/>
  110. <subjno/>
  111. <examadjtprf/>
  112. <respstdyempno/>
  113. <usernm/>
  114. <itemnm/>
  115. <comnm/>
  116. <condd/>
  117. <subjnm/>
  118. <stdystartdd/>
  119. <stdyenddd/>
  120. <direccost/>
  121. <direcamt/>
  122. <appamt/>
  123. <remamt/>
  124. <appdg/>
  125. <subjid/>
  126. </hospdefinfo>
  127. </default>
  128. <view>
  129. <isamstdycost>
  130. <appdg/>
  131. <appdd/>
  132. <appamt/>
  133. <appaprvyn/>
  134. <appcnfmdd/>
  135. <actdd/>
  136. <actaprvdd/>
  137. <rtnresnapp/>
  138. <subjid/>
  139. <instcd/>
  140. <evdncprstyn/>
  141. <unsldd/>
  142. <unslno/>
  143. <sanctslipdd/>
  144. </isamstdycost>
  145. </view>
  146. <reqdetlstat>
  147. <reqdetldg>
  148. <appdg/>
  149. <appaprvyn/>
  150. <totappamt/>
  151. <totwonamt/>
  152. <totcalcamt/>
  153. <bugtamt/>
  154. </reqdetldg>
  155. </reqdetlstat>
  156. <reqdetlinfo>
  157. <reqdetllist>
  158. <detlitemexpendnm/>
  159. <appamt/>
  160. <totamt/>
  161. <wonamt/>
  162. <calcamt/>
  163. <itemremain/>
  164. </reqdetllist>
  165. </reqdetlinfo>
  166. </main>
  167. <init>
  168. <subjid/>
  169. <instcd/>
  170. <appdg/>
  171. <appdd/>
  172. <baseinfo>
  173. <instinfo>
  174. <instcd/>
  175. <hospnm/>
  176. </instinfo>
  177. </baseinfo>
  178. <smicu00100>1</smicu00100>
  179. </init>
  180. <temp>
  181. <totalamt/>
  182. <hospamt/>
  183. <crccamt/>
  184. <sumamt/>
  185. <tempnm/>
  186. <tempperchgrid/>
  187. <tempreqinstcd/>
  188. </temp>
  189. <send>
  190. <srch>
  191. <srchappflagcd/>
  192. <srchinstcd/>
  193. <srchsubjno/>
  194. <srchperchgrid/>
  195. <srchrespstdyempno/>
  196. <srchfromdd/>
  197. <srchtodd/>
  198. </srch>
  199. <save>
  200. <grid/>
  201. </save>
  202. <subjid/>
  203. <instcd/>
  204. <appdg/>
  205. <appdd/>
  206. </send>
  207. <rex>
  208. <stdyinfo>
  209. <subjno/>
  210. <stdyflag/>
  211. <judgappdg/>
  212. <respstdynm/>
  213. <subjnm/>
  214. <cmpynm/>
  215. <direccost/>
  216. <posnm/>
  217. <jobposnm/>
  218. <banknm/>
  219. <aaa/>
  220. <bbb/>
  221. <totbugt/>
  222. <totappamt/>
  223. <totacmlamt/>
  224. <totremamt/>
  225. <countpayflagcd/>
  226. <hospnm/>
  227. <totcost/>
  228. </stdyinfo>
  229. <stdycostinfo1>
  230. <subjid/>
  231. <instcd/>
  232. <appdg/>
  233. <itemexpendcd/>
  234. <bugt/>
  235. <detlitemexpendnm/>
  236. <appamt/>
  237. <acmlamt/>
  238. <remamt/>
  239. </stdycostinfo1>
  240. <stdycostinfo2>
  241. <subjid/>
  242. <instcd/>
  243. <appdg/>
  244. <itemexpendcd/>
  245. <bugt/>
  246. <detlitemexpendnm/>
  247. <appamt/>
  248. <acmlamt/>
  249. <remamt/>
  250. </stdycostinfo2>
  251. <stdycostinfo3>
  252. <subjid/>
  253. <instcd/>
  254. <appdg/>
  255. <itemexpendcd/>
  256. <bugt/>
  257. <detlitemexpendnm/>
  258. <appamt/>
  259. <acmlamt/>
  260. <remamt/>
  261. </stdycostinfo3>
  262. <depoacntInfo>
  263. <depor/>
  264. <payflagcd/>
  265. <bankcd/>
  266. <banknm/>
  267. <acntno/>
  268. <totcost/>
  269. <cmt/>
  270. </depoacntInfo>
  271. <prsnexpsinfo>
  272. <depor/>
  273. <nm/>
  274. <banknm/>
  275. <acntno/>
  276. <totcost/>
  277. <rrgstno/>
  278. <addr/>
  279. <posnm/>
  280. <jobposnm/>
  281. <detlitemexpendcd/>
  282. <sumcost/>
  283. </prsnexpsinfo>
  284. </rex>
  285. <hidden>
  286. <stdyinfolist>
  287. </stdyinfolist>
  288. </hidden>
  289. </root>
  290. </instance>
  291. <submission id="TRIRZ00000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init" replace="instance" resultref="/root/init/baseinfo"/>
  292. <submission id="TRICU00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" replace="instance" resultref="/root/main/grid"/>
  293. <submission id="TRICU00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init" replace="instance" resultref="/root/main/default"/>
  294. <submission id="TRICU00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init" replace="instance" resultref="/root/main/view"/>
  295. <submission id="TXICU00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/grid" replace="instance" resultref="/root/main/view"/>
  296. <submission id="TRISA00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init" replace="instance" resultref="/root/main/reqdetlinfo"/>
  297. <bind id="bind1" ref="/root/temp/totalamt" calculate="/root/main/default/hospdefinfo/direccost * 1.15"/>
  298. <bind id="bind2" ref="/root/temp/hospamt" calculate="/root/main/default/hospdefinfo/direccost * 0.10"/>
  299. <bind id="bind3" ref="/root/temp/crccamt" calculate="/root/main/default/hospdefinfo/direccost * 0.05"/>
  300. <submission id="TRICU00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/rex"/>
  301. <bind id="bind4" ref="/root/rex/stdyinfo/totbugt" calculate="sum(/root/rex/stdycostinfo1/bugt) + sum(/root/rex/stdycostinfo2/bugt) + sum(/root/rex/stdycostinfo3/bugt)"/>
  302. <bind id="bind5" ref="/root/rex/stdyinfo/totappamt" calculate="sum(/root/rex/stdycostinfo1/appamt) + sum(/root/rex/stdycostinfo2/appamt) + sum(/root/rex/stdycostinfo3/appamt)"/>
  303. <bind id="bind6" ref="/root/rex/stdyinfo/totacmlamt" calculate="sum(/root/rex/stdycostinfo1/acmlamt) + sum(/root/rex/stdycostinfo2/acmlamt) + sum(/root/rex/stdycostinfo3/acmlamt)"/>
  304. <bind id="bind7" ref="/root/rex/stdyinfo/totremamt" calculate="sum(/root/rex/stdycostinfo1/remamt) + sum(/root/rex/stdycostinfo2/remamt) + sum(/root/rex/stdycostinfo3/remamt)"/>
  305. <bind id="bind8" ref="/root/rex/stdyinfo/totcost" calculate="sum(/root/rex/depoacntInfo/totcost)"/>
  306. <bind id="bind9" ref="/root/rex/prsnexpsinfo/sumcost" calculate="sum(/root/rex/prsnexpsinfo/totcost)"/>
  307. <submission id="TXICU00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grid"/>
  308. </model>
  309. </xhtml:head>
  310. <xhtml:body guideline="1,1194;2,780;">
  311. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:14px; ">
  312. <caption id="caption120" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">연구비관리</caption>
  313. </group>
  314. <group id="group3" style="left:0px; top:15px; width:1194px; height:70px; vertical-align:top; ">
  315. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  316. <caption id="caption73" class="search_name" style="left:598px; top:8px; width:74px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">의뢰자 :</caption>
  317. <caption id="caption74" class="search_name" style="left:20px; top:10px; width:90px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">신청구분 :</caption>
  318. <input id="input21" ref="/root/send/srch/srchrespstdyempno" class="input_search" style="left:855px; top:8px; width:100px; height:19px; ">
  319. <script type="javascript" ev:event="onkeyup">
  320. <![CDATA[
  321. inputEnterKey("button6", "DOMActivate");
  322. ]]>
  323. </script>
  324. </input>
  325. <button id="button6" class="btn1_letter2" _auth="R" style="left:970px; top:8px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  326. <caption>조회</caption>
  327. <script type="javascript" ev:event="DOMActivate">
  328. <![CDATA[
  329. model.toggle("case1");
  330. button4.selected= true;
  331. datagrid1.rebuildStyle();
  332. model.removenode("/root/main/grid/stdyexplst");
  333. if(submit("TRICU00100")) {
  334. datagrid1.colDisabled(4) = true;
  335. //이창록 20090601 추가 ->mis에 저장구분 RowStyle변경
  336. for(var i =datagrid1.fixedRows;i < datagrid1.rows;i++){
  337. if(datagrid1.valueMatrix(i,datagrid1.colRef("missendyn")) == "Y"){
  338. datagrid1.isReadOnly(i,datagrid1.colRef("flag")) =true;
  339. datagrid1.rebuildStyle();
  340. setRowStyle("datagrid1","1","Y","missendyn","equal"); // mis에 저장구분 RowStyle변경
  341. }else{
  342. datagrid1.isReadOnly(i,datagrid1.colRef("flag")) =false;
  343. }
  344. }
  345. }
  346. ]]>
  347. </script>
  348. </button>
  349. <caption id="caption77" class="search_name" style="left:780px; top:8px; width:79px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">연구자 :</caption>
  350. <select1 id="combo33" ref="/root/send/srch/srchappflagcd" class="combo_search" appearance="minimal" style="left:110px; top:9px; width:68px; height:19px; ">
  351. <choices>
  352. <item>
  353. <label>- 전 체 -</label>
  354. <value/>
  355. </item>
  356. <item>
  357. <label>미승인</label>
  358. <value>N</value>
  359. </item>
  360. <item>
  361. <label>승인</label>
  362. <value>Y</value>
  363. </item>
  364. <item>
  365. <label>반려</label>
  366. <value>R</value>
  367. </item>
  368. <item>
  369. <label>보류</label>
  370. <value>H</value>
  371. </item>
  372. </choices>
  373. </select1>
  374. <button id="button38" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1032px; top:8px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  375. <caption>초기화</caption>
  376. <script type="javascript" ev:event="DOMActivate">
  377. <![CDATA[
  378. model.resetInstanceNode("/root/send/srch");
  379. model.refresh();
  380. ]]>
  381. </script>
  382. </button>
  383. <caption id="caption1" class="search_name" style="left:184px; top:8px; width:89px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">병원선택 :</caption>
  384. <input id="input1" ref="/root/send/srch/srchperchgrid" class="input_search" style="left:673px; top:8px; width:100px; height:19px; ">
  385. <script type="javascript" ev:event="onkeyup">
  386. <![CDATA[
  387. inputEnterKey("button6", "DOMActivate");
  388. ]]>
  389. </script>
  390. </input>
  391. <caption id="caption2" class="search_name" style="left:401px; top:8px; width:89px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">과제번호 :</caption>
  392. <input id="input2" ref="/root/send/srch/srchsubjno" class="input_search" style="left:490px; top:8px; width:100px; height:19px; ">
  393. <script type="javascript" ev:event="onkeyup">
  394. <![CDATA[
  395. inputEnterKey("button6", "DOMActivate");
  396. ]]>
  397. </script>
  398. </input>
  399. <select1 id="combo2" ref="/root/send/srch/srchinstcd" class="combo_search" appearance="minimal" style="left:274px; top:9px; width:120px; height:19px; ">
  400. <choices>
  401. <itemset nodeset="/root/init/baseinfo/instinfo">
  402. <label ref="hospnm"/>
  403. <value ref="instcd"/>
  404. </itemset>
  405. </choices>
  406. </select1>
  407. <button id="button25" class="btn3_letter4" style="left:1105px; top:8px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
  408. <caption>입금정보</caption>
  409. <script type="javascript" ev:event="DOMActivate">
  410. <![CDATA[
  411. open("SMIPG00101");
  412. ]]>
  413. </script>
  414. </button>
  415. <caption id="caption25" class="search_name" style="left:20px; top:35px; width:79px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">신청일 :</caption>
  416. <input id="input4" ref="/root/send/srch/srchfrom" class="input_search" style="left:110px; top:35px; width:100px; height:19px; "/>
  417. <input id="input28" ref="/root/send/srch/srchfromdd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:110px; top:35px; width:100px; height:19px; "/>
  418. <input id="input29" ref="/root/send/srch/srchtodd" class="input_search" inputtype="date" format="yyyy-mm-dd" style="left:240px; top:35px; width:100px; height:19px; "/>
  419. <caption id="caption26" style="left:220px; top:35px; width:15px; height:20px; ">~</caption>
  420. </group>
  421. <switch id="switch1" style="left:1px; top:115px; width:1179px; height:650px; border-color:#c7a3cf; border-style:solid; ">
  422. <case id="case1" selected="true">
  423. <datagrid id="datagrid1" nodeset="/root/main/grid/stdyexplst" scroll="both" caption="^과제번호^품목명^해당병원^접수일^의뢰자^연구자^연구기간^연구기간^신청차수^신청금액^입금잔액^승인여부^지출결의서^지출결의서^자동분개번호^subjid^hospcd^missendyn^appaprvyn^ruserid" colsep="^" colwidth="19, 100, 139, 107, 85, 77, 70, 71, 77, 68, 82, 88, 58, 86, 79, 100, 38, 27, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:0px; width:1173px; height:638px; ">
  424. <col checkvalue="Y,N" ref="flag" type="checkbox"/>
  425. <col ref="subjno"/>
  426. <col ref="itemnm"/>
  427. <col ref="hospnm"/>
  428. <col ref="appdd" format="yyyy-mm-dd" style="text-align:center; "/>
  429. <col ref="cmpynm" style="text-align:center; "/>
  430. <col ref="rusernm" style="text-align:center; "/>
  431. <col ref="stdystartdd" format="yyyy-mm-dd" style="text-align:center; "/>
  432. <col ref="stdyenddd" format="yyyy-mm-dd" style="text-align:center; "/>
  433. <col ref="appdg" style="text-align:center; "/>
  434. <col ref="appamt" format="(-)#,###" style="text-align:right; "/>
  435. <col ref="remamt" format="(-)#,###" style="text-align:right; "/>
  436. <col ref="appaprvnm" style="text-align:center; "/>
  437. <col ref="sendmis" style="padding-left:16; background-image:../../../com/commonweb/images/btn2_letter5.gif; background-position:center; cursor:hand; "/>
  438. <col ref="default" style="padding-left:16; background-image:../../../com/commonweb/images/btn2_letter2.gif; background-position:center; cursor:hand; "/>
  439. <col ref="misseqno"/>
  440. <col ref="appaprvyn" visibility="hidden"/>
  441. <col ref="subjid" visibility="hidden"/>
  442. <col ref="instcd" visibility="hidden"/>
  443. <col ref="missendyn" visibility="hidden"/>
  444. <col ref="ruserid" visibility="hidden"/>
  445. <col ref="conreseryn" visibility="hidden"/>
  446. <script type="javascript" ev:event="ondblclick">
  447. <![CDATA[
  448. if((datagrid1.rows- datagrid1.fixedRows) == 0) return;
  449. //20090526 이창록 수정
  450. if((datagrid1.col == datagrid1.colRef("sendmis"))||(datagrid1.col == datagrid1.colRef("default"))||(datagrid1.col == datagrid1.colRef("detlitemexpendnm"))){
  451. return;
  452. }
  453. model.setValue("/root/init/subjid", model.getValue("/root/main/grid/stdyexplst["+datagrid1.row+"]/subjid"));
  454. model.setValue("/root/init/instcd", model.getValue("/root/main/grid/stdyexplst["+datagrid1.row+"]/instcd"));
  455. model.toggle("case2");
  456. button1.selected= true;
  457. btn_excel.visible = false;
  458. if(submit("TRICU00110")) {
  459. model.setValue("/root/main/default/hospdefinfo/appdg", model.getValue("/root/main/grid/stdyexplst["+datagrid1.row+"]/appdg"));
  460. model.setValue("/root/init/appdg", model.getValue("/root/main/grid/stdyexplst["+datagrid1.row+"]/appdg"));
  461. model.refresh();
  462. }
  463. getIsamSdtycost();
  464. ]]>
  465. </script>
  466. <script type="javascript" ev:event="onclick">
  467. <![CDATA[
  468. //MIS 연동
  469. if(datagrid1.col ==datagrid1.colRef("sendmis")){
  470. datagrid1.clearStatus();
  471. var costRow = datagrid1.row - datagrid1.fixedRows +1 ;
  472. var flag = model.getValue("/root/main/grid/stdyexplst["+costRow+"]/flag");
  473. var missendyn = model.getValue("/root/main/grid/stdyexplst["+costRow+"]/missendyn");
  474. // 2009.07.21 우종윤 추가
  475. // 승인여부가 Y가 아닐경우는 MIS전송할수 없다.
  476. if ( model.getValue("/root/main/grid/stdyexplst["+ costRow +"]/appaprvyn") != "Y" ) {
  477. messageBox("승인 후 전송할 수 있습니다.", "I");
  478. return;
  479. }
  480. if(missendyn=="Y"){
  481. messageBox("이미 신청하신 정보","I009");
  482. return;
  483. }
  484. if(flag !="Y"){
  485. messageBox("MIS와 연동할 정보를","C002");
  486. return;
  487. }
  488. var flag = model.getValue("/root/main/grid/stdyexplst["+costRow+"]/flag");
  489. if(flag =="Y"){
  490. datagrid1.addStatus(costRow, "insert");
  491. }
  492. model.makeValue("/root/send/stdyexplst",datagrid1.getUpdateData());
  493. if(submit("TXICU00301") == true){
  494. messageBox("저장이","I002");
  495. model.removeNodeset("/root/send/stdyexplst");
  496. for(var i =datagrid1.fixedRows;i < datagrid1.rows;i++){
  497. if(datagrid1.valueMatrix(i,datagrid1.colRef("missendyn")) == "Y"){
  498. datagrid1.isReadOnly(i,datagrid1.colRef("flag")) =true;
  499. datagrid1.rebuildStyle();
  500. setRowStyle("datagrid1","1","Y","missendyn","equal"); // mis에 저장구분 RowStyle변경
  501. }
  502. }
  503. }
  504. }
  505. // 개발테스트로 인해 주석처리 2008.08.20
  506. /*
  507. if ( datagrid1.col == datagrid1.colRef("sendmis") ) {
  508. messageBox("MIS 전송 버튼은 현재 사용하실 수 없습니다.", "I999");
  509. return;
  510. }
  511. */
  512. ]]>
  513. </script>
  514. </datagrid>
  515. </case>
  516. <case id="case2">
  517. <input id="input8" ref="/root/main/default/hospdefinfo/remamt" class="input_search" editable="false" format="(-)#,###" style="left:625px; top:142px; width:105px; height:19px; text-align:right; "/>
  518. <datagrid id="datagrid4" nodeset="/root/main/view/isamstdycost" caption="신청차수^신청일자^신청금액^승인여부^확인일자^증빙제출여부^전표발의일자^지출결의서번호^재무팀승인일자^반려사유" colsep="^" colwidth="57, 80, 100, 59, 80, 80, 90, 90, 90, 207, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" subtotalposition="below" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:5px; top:207px; width:935px; height:423px; ">
  519. <col ref="appdg" style="text-align:center; "/>
  520. <col ref="appdd" format="yyyy-mm-dd" style="text-align:center; "/>
  521. <col ref="appamt" format="(-)#,###" style="text-align:right; "/>
  522. <col class="gridcombo" ref="appaprvyn" type="combo" style="text-align:center; ">
  523. <choices>
  524. <item>
  525. <label>승인</label>
  526. <value>Y</value>
  527. </item>
  528. <item>
  529. <label>반려</label>
  530. <value>R</value>
  531. </item>
  532. <item>
  533. <label>신청</label>
  534. <value>N</value>
  535. </item>
  536. <item>
  537. <label>보류</label>
  538. <value>H</value>
  539. </item>
  540. </choices>
  541. </col>
  542. <col ref="appcnfmdd" format="yyyy-mm-dd" style="text-align:center; "/>
  543. <col class="gridcombo" ref="evdncprstyn" type="combo" style="text-align:center; ">
  544. <choices>
  545. <item>
  546. <label>제출</label>
  547. <value>Y</value>
  548. </item>
  549. <item>
  550. <label>미제출</label>
  551. <value>N</value>
  552. </item>
  553. </choices>
  554. </col>
  555. <col ref="unsldd" format="yyyy-mm-dd" style="text-align:center; "/>
  556. <col ref="unslno" style="text-align:center; "/>
  557. <col ref="sanctslipdd" format="yyyyp-mm-dd" style="text-align:center; "/>
  558. <col ref="rtnresnapp" type="input"/>
  559. <col ref="subjid" visibility="hidden"/>
  560. <col ref="instcd" visibility="hidden"/>
  561. <script type="javascript" ev:event="ondblclick">
  562. <![CDATA[
  563. if((datagrid4.rows- datagrid4.fixedRows) == 0) return;
  564. if ( datagrid4.col == datagrid4.colRef("rtnresnapp") ) {
  565. return;
  566. }
  567. model.toggle("case3");
  568. button2.selected= true;
  569. btn_excel.visible = false;
  570. var appdg_old = model.getValue("/root/init/appdg");
  571. model.setValue("/root/init/instcd", model.getValue("/root/main/view/isamstdycost["+ datagrid4.row +"]/instcd"));
  572. model.setValue("/root/init/subjid", model.getValue("/root/main/view/isamstdycost["+ datagrid4.row +"]/subjid"));
  573. model.setValue("/root/init/appdg", model.getValue("/root/main/view/isamstdycost["+ datagrid4.row +"]/appdg"));
  574. model.setValue("/root/init/appdd", model.getValue("/root/main/view/isamstdycost["+ datagrid4.row +"]/appdd"));
  575. model.setValue("/root/main/default/hospdefinfo/appdg", model.getValue("/root/main/view/isamstdycost["+ datagrid4.row +"]/appdg"));
  576. submit("TRISA00103");
  577. readfunc2();
  578. model.setValue("/root/send/subjid", model.getValue("/root/init/subjid"));
  579. model.setValue("/root/send/instcd", model.getValue("/root/init/instcd"));
  580. model.setValue("/root/send/appdg", model.getValue("/root/init/appdg"));
  581. model.setValue("/root/send/appdd", model.getValue("/root/init/appdd"));
  582. submit("TRICU00112");
  583. //조회원래 차수를 돌려준다
  584. model.setValue("/root/init/appdg", appdg_old);
  585. ]]>
  586. </script>
  587. <script type="javascript" ev:event="onclick">
  588. <![CDATA[
  589. if( isDataCell() ){
  590. if ( datagrid4.col == datagrid4.colRef("rtnresnapp") ) {
  591. datagrid4.editCell();
  592. return;
  593. }
  594. }
  595. ]]>
  596. </script>
  597. </datagrid>
  598. <caption id="caption31" class="cell_1" style="left:391px; top:140px; width:55px; height:23px; vertical-align:middle; ">신청총액</caption>
  599. <caption id="caption75" class="cell_1" style="left:10px; top:115px; width:90px; height:23px; vertical-align:middle; ">연구기간</caption>
  600. <caption id="caption76" class="cell_1" style="left:430px; top:5px; width:90px; height:23px; vertical-align:middle; ">과제번호</caption>
  601. <caption id="caption3" class="cell_1" style="left:430px; top:30px; width:90px; height:23px; vertical-align:middle; ">성분명</caption>
  602. <caption id="caption4" class="cell_1" style="left:10px; top:30px; width:90px; height:23px; vertical-align:middle; ">품목명</caption>
  603. <input id="input3" ref="/root/main/default/hospdefinfo/examadjtprf" class="input_search" visibility="hidden" editable="false" style="left:1059px; top:12px; width:100px; height:19px; "/>
  604. <caption id="caption5" class="cell_1" style="left:560px; top:140px; width:60px; height:23px; vertical-align:middle; ">입금잔액</caption>
  605. <caption id="caption78" class="cell_1" visibility="hidden" style="left:965px; top:10px; width:90px; height:23px; vertical-align:middle; ">시험조정자</caption>
  606. <caption id="caption6" class="cell_1" style="left:10px; top:55px; width:90px; height:58px; vertical-align:middle; ">과제명</caption>
  607. <caption id="caption79" class="cell_1" style="left:740px; top:5px; width:90px; height:23px; vertical-align:middle; ">연구책임자</caption>
  608. <caption id="caption7" class="cell_1" style="left:10px; top:5px; width:90px; height:23px; vertical-align:middle; ">해당병원</caption>
  609. <input id="input15" ref="/root/main/default/hospdefinfo/stdyenddd" class="input_s_essential" editable="false" inputtype="date" style="left:225px; top:117px; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  610. <caption id="caption36" class="search_n_b" style="left:209px; top:118px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  611. <caption id="caption8" class="tit_2" style="left:20px; top:190px; width:408px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">연구비신청내역(더블클릭하면'항목별연구비'화면으로 이동합니다)</caption>
  612. <input id="input5" ref="/root/main/default/hospdefinfo/direccost" class="input_search" editable="false" format="(-)#,###" style="left:104px; top:142px; width:100px; height:19px; text-align:right; "/>
  613. <input id="input6" ref="/root/main/default/hospdefinfo/direcamt" class="input_search" editable="false" format="(-)#,###" style="left:280px; top:142px; width:105px; height:19px; text-align:right; "/>
  614. <input id="input7" ref="/root/main/default/hospdefinfo/itemnm" class="input_search" editable="false" style="left:104px; top:32px; width:320px; height:19px; "/>
  615. <input id="input9" ref="/root/main/default/hospdefinfo/appamt" class="input_search" editable="false" format="(-)#,###" style="left:450px; top:142px; width:105px; height:19px; text-align:right; "/>
  616. <caption id="caption28" class="cell_1" style="left:10px; top:140px; width:90px; height:23px; vertical-align:middle; ">직접비(100%)</caption>
  617. <input id="input10" ref="/root/main/default/hospdefinfo/comnm" class="input_search" editable="false" style="left:525px; top:32px; width:210px; height:19px; "/>
  618. <caption id="caption29" class="cell_1" style="left:210px; top:140px; width:65px; height:23px; vertical-align:middle; ">입금총액</caption>
  619. <textarea id="textarea3" ref="/root/main/default/hospdefinfo/subjnm" scroll="vertical" editable="false" style="left:104px; top:55px; width:831px; height:58px; "/>
  620. <input id="input12" ref="/root/main/default/hospdefinfo/stdystartdd" class="input_s_essential" editable="false" inputtype="date" style="left:104px; top:117px; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  621. <button id="button9" class="btn5_letter2" _auth="X" disable.background-image="../../../com/commonweb/images/dis_btn5_letter2.gif" style="left:895px; top:185px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn5_letter2.gif; ">
  622. <caption>저장</caption>
  623. <script type="javascript" ev:event="DOMActivate">
  624. <![CDATA[
  625. var up = getGridUpdateData(datagrid4);
  626. if(up == "") return;
  627. model.setValue("/root/send/save/grid", up);
  628. if(submit("TXICU00111")) {
  629. model.setValue("/root/send/save/grid", "");
  630. var appdg_old = model.getValue("/root/main/grid/stdyexplst["+datagrid1.row+"]/appdg");
  631. //조회원래 차수를 돌려준다
  632. model.setValue("/root/init/appdg", appdg_old);
  633. button1.dispatch("DOMActivate");
  634. }
  635. ]]>
  636. </script>
  637. </button>
  638. <input id="input13" ref="/root/main/default/hospdefinfo/subjno" class="input_search" editable="false" style="left:525px; top:7px; width:210px; height:19px; "/>
  639. <input id="input65" ref="/root/main/default/hospdefinfo/usernm" class="input_search" editable="false" style="left:835px; top:7px; width:100px; height:19px; "/>
  640. <input id="input66" ref="/root/main/default/hospdefinfo/condd" class="input_search" editable="false" format="yyyy-mm-dd" style="left:835px; top:32px; width:100px; height:19px; "/>
  641. <caption id="caption11" class="cell_1" style="left:740px; top:30px; width:90px; height:23px; vertical-align:middle; ">계약일자</caption>
  642. <caption id="caption12" class="cell_1" style="left:746px; top:140px; width:90px; height:23px; vertical-align:middle; ">신청차수</caption>
  643. <input id="input67" ref="/root/main/default/hospdefinfo/appdg" class="input_search" editable="false" style="left:840px; top:142px; width:96px; height:19px; text-align:right; "/>
  644. <select1 id="combo1" ref="/root/main/default/hospdefinfo/instcd" class="combo_search" disabled="true" appearance="minimal" style="left:104px; top:7px; width:320px; height:19px; ">
  645. <choices>
  646. <itemset nodeset="/root/init/baseinfo/instinfo">
  647. <label ref="hospnm"/>
  648. <value ref="instcd"/>
  649. </itemset>
  650. </choices>
  651. </select1>
  652. </case>
  653. <case id="case3">
  654. <caption id="caption14" class="cell_1" style="left:285px; top:185px; width:105px; height:23px; vertical-align:middle; ">합계(115%)</caption>
  655. <caption id="caption15" class="cell_1" style="left:500px; top:185px; width:115px; height:23px; vertical-align:middle; ">병원 간접비(10%)</caption>
  656. <caption id="caption16" class="cell_1" style="left:725px; top:185px; width:115px; height:23px; vertical-align:middle; ">CRCC 간접비(5%)</caption>
  657. <caption id="caption49" class="tit_2" style="left:10px; top:195px; width:169px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">연구비예산내역(단위: 원)</caption>
  658. <button id="button18" class="btn2_letter10" _auth="P" disable.background-image="../../../com/commonweb/images/dis_btn2_letter10.gif" style="left:493px; top:214px; width:130px; height:19px; background-image:../../../com/commonweb/images/btn2_letter10.gif; ">
  659. <caption>연구비지급청구서출력</caption>
  660. <script type="javascript" ev:event="DOMActivate">
  661. <![CDATA[
  662. exeReportPreview("RPICU00101", "XMLSTR" , "/root/rex");
  663. ]]>
  664. </script>
  665. </button>
  666. <button id="button16" class="btn2_letter8" _auth="P" disable.background-image="../../../com/commonweb/images/dis_btn2_letter8.gif" style="left:710px; top:214px; width:108px; height:19px; background-image:../../../com/commonweb/images/btn2_letter8.gif; ">
  667. <caption>입금계좌내역출력</caption>
  668. <script type="javascript" ev:event="DOMActivate">
  669. <![CDATA[
  670. exeReportPreview("RPICU00102", "XMLSTR" , "/root/rex");
  671. ]]>
  672. </script>
  673. </button>
  674. <input id="input61" ref="/root/temp/totalamt" class="input_search" format="(-)#,###" style="left:395px; top:187px; width:95px; height:19px; text-align:right; "/>
  675. <input id="input62" ref="/root/temp/hospamt" class="input_search" format="(-)#,###" style="left:620px; top:187px; width:95px; height:19px; text-align:right; "/>
  676. <input id="input63" ref="/root/temp/crccamt" class="input_search" format="(-)#,###" style="left:845px; top:187px; width:95px; height:19px; text-align:right; "/>
  677. <input id="input11" ref="/root/main/default/hospdefinfo/itemnm" class="input_search" editable="false" style="left:104px; top:32px; width:320px; height:19px; "/>
  678. <input id="input14" ref="/root/main/default/hospdefinfo/remamt" class="input_search" editable="false" format="(-)#,###" style="left:625px; top:142px; width:105px; height:19px; text-align:right; "/>
  679. <input id="input16" ref="/root/main/default/hospdefinfo/appamt" class="input_search" editable="false" format="(-)#,###" style="left:450px; top:142px; width:105px; height:19px; text-align:right; "/>
  680. <input id="input17" ref="/root/main/default/hospdefinfo/usernm" class="input_search" editable="false" style="left:835px; top:7px; width:100px; height:19px; "/>
  681. <input id="input18" ref="/root/main/default/hospdefinfo/comnm" class="input_search" editable="false" style="left:525px; top:32px; width:210px; height:19px; "/>
  682. <caption id="caption9" class="cell_1" style="left:10px; top:115px; width:90px; height:23px; vertical-align:middle; ">연구기간</caption>
  683. <caption id="caption10" class="cell_1" style="left:391px; top:140px; width:55px; height:23px; vertical-align:middle; ">신청총액</caption>
  684. <input id="input19" ref="/root/main/default/hospdefinfo/condd" class="input_search" editable="false" format="yyyy-mm-dd" style="left:835px; top:32px; width:100px; height:19px; "/>
  685. <caption id="caption13" class="cell_1" style="left:430px; top:5px; width:90px; height:23px; vertical-align:middle; ">과제번호</caption>
  686. <select1 id="combo6" ref="/root/main/default/hospdefinfo/instcd" class="combo_search" disabled="true" appearance="minimal" style="left:104px; top:7px; width:320px; height:19px; ">
  687. <choices>
  688. <itemset nodeset="/root/init/baseinfo/instinfo">
  689. <label ref="hospnm"/>
  690. <value ref="instcd"/>
  691. </itemset>
  692. </choices>
  693. </select1>
  694. <input id="input20" ref="/root/main/default/hospdefinfo/appdg" class="input_search" editable="false" style="left:840px; top:142px; width:100px; height:19px; text-align:right; "/>
  695. <caption id="caption17" class="cell_1" style="left:740px; top:30px; width:90px; height:23px; vertical-align:middle; ">계약일자</caption>
  696. <input id="input22" ref="/root/main/default/hospdefinfo/stdystartdd" class="input_s_essential" editable="false" inputtype="date" style="left:104px; top:117px; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  697. <caption id="caption18" class="cell_1" style="left:746px; top:140px; width:90px; height:23px; vertical-align:middle; ">신청차수</caption>
  698. <input id="input23" ref="/root/main/default/hospdefinfo/subjno" class="input_search" editable="false" style="left:525px; top:7px; width:210px; height:19px; "/>
  699. <caption id="caption19" class="cell_1" visibility="hidden" style="left:965px; top:20px; width:90px; height:23px; vertical-align:middle; ">시험조정자</caption>
  700. <caption id="caption20" class="cell_1" style="left:430px; top:30px; width:90px; height:23px; vertical-align:middle; ">성분명</caption>
  701. <caption id="caption21" class="cell_1" style="left:740px; top:5px; width:90px; height:23px; vertical-align:middle; ">연구책임자</caption>
  702. <caption id="caption22" class="cell_1" style="left:10px; top:30px; width:90px; height:23px; vertical-align:middle; ">품목명</caption>
  703. <caption id="caption23" class="search_n_b" style="left:209px; top:118px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  704. <input id="input24" ref="/root/main/default/hospdefinfo/stdyenddd" class="input_s_essential" editable="false" inputtype="date" style="left:225px; top:117px; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  705. <caption id="caption39" class="cell_1" style="left:560px; top:140px; width:60px; height:23px; vertical-align:middle; ">입금잔액</caption>
  706. <caption id="caption40" class="cell_1" style="left:10px; top:55px; width:90px; height:58px; vertical-align:middle; ">과제명</caption>
  707. <caption id="caption41" class="cell_1" style="left:10px; top:5px; width:90px; height:23px; vertical-align:middle; ">해당병원</caption>
  708. <caption id="caption42" class="cell_1" style="left:10px; top:140px; width:90px; height:23px; vertical-align:middle; ">직접비(100%)</caption>
  709. <input id="input25" ref="/root/main/default/hospdefinfo/examadjtprf" class="input_search" visibility="hidden" editable="false" style="left:1059px; top:22px; width:100px; height:19px; "/>
  710. <textarea id="textarea2" ref="/root/main/default/hospdefinfo/subjnm" scroll="vertical" editable="false" style="left:104px; top:55px; width:831px; height:58px; "/>
  711. <caption id="caption43" class="cell_1" style="left:210px; top:140px; width:65px; height:23px; vertical-align:middle; ">입금총액</caption>
  712. <input id="input26" ref="/root/main/default/hospdefinfo/direccost" class="input_search" editable="false" format="(-)#,###" style="left:104px; top:142px; width:100px; height:19px; text-align:right; "/>
  713. <input id="input27" ref="/root/main/default/hospdefinfo/direcamt" class="input_search" editable="false" format="(-)#,###" style="left:280px; top:142px; width:105px; height:19px; text-align:right; "/>
  714. <input id="input40" ref="/root/main/reqdetlstat/reqdetldg/totwonamt" class="input_default" disabled="true" format="(-)#,###" style="left:592px; top:570px; width:105px; height:19px; text-align:right; "/>
  715. <input id="input41" ref="/root/main/reqdetlstat/reqdetldg/totcalcamt" class="input_default" disabled="true" format="(-)#,###" style="left:698px; top:570px; width:105px; height:19px; text-align:right; "/>
  716. <button id="button5" class="btn2_letter7" disable.background-image="../../../com/commonweb/images/dis_btn2_letter6.gif" style="left:830px; top:260px; width:97px; height:19px; background-image:../../../com/commonweb/images/btn2_letter6.gif; ">
  717. <caption>일반연구비</caption>
  718. <script type="javascript" ev:event="DOMActivate">
  719. <![CDATA[
  720. //window.load("SPICU01100_일반연구비_조회신청.xrw","modal","stdycost01", "left:100; top:100; width:400; height:400; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;", "/root/send/data", "/root/send/data");
  721. window.load("SPICU01100_일반연구비_조회신청.xrw","modal","stdycost01", "left:100; top:100; ", "/root/init", "/root/send/data");
  722. var irow = datagrid2.row;
  723. button2.dispatch("DOMActivate");
  724. // readfunc1();
  725. //datagrid2.dispatch("onclick");
  726. model.copyNode("/root/main/subreqinfo/subreqlist", "/root/main/subjdtlinfo/subjmstlist[" + irow + "]");
  727. datagrid2.row = irow;
  728. datagrid2.topRow = irow;
  729. model.refresh();
  730. ]]>
  731. </script>
  732. </button>
  733. <caption id="caption24" class="cell_1" style="left:10px; top:568px; width:475px; height:23px; text-align:center; vertical-align:middle; ">합 계</caption>
  734. <button id="button3" class="btn2_letter7" disable.background-image="../../../com/commonweb/images/dis_btn2_letter6.gif" style="left:830px; top:285px; width:97px; height:19px; background-image:../../../com/commonweb/images/btn2_letter6.gif; ">
  735. <caption>카드</caption>
  736. <script type="javascript" ev:event="DOMActivate">
  737. <![CDATA[
  738. window.load("SPICU01200_카드비_입력.xrw","modal","stdycost01", "left:100; top:100; ", "/root/init", "/root/send/data");
  739. var irow = datagrid2.row;
  740. button2.dispatch("DOMActivate");
  741. // readfunc1();
  742. //datagrid2.dispatch("onclick");
  743. model.copyNode("/root/main/subreqinfo/subreqlist", "/root/main/subjdtlinfo/subjmstlist[" + irow + "]");
  744. datagrid2.row = irow;
  745. datagrid2.topRow = irow;
  746. model.refresh();
  747. ]]>
  748. </script>
  749. </button>
  750. <button id="button7" class="btn2_letter7" disable.background-image="../../../com/commonweb/images/dis_btn2_letter6.gif" style="left:830px; top:335px; width:97px; height:19px; background-image:../../../com/commonweb/images/btn2_letter6.gif; ">
  751. <caption>회의비</caption>
  752. <script type="javascript" ev:event="DOMActivate">
  753. <![CDATA[
  754. window.load("SPICU01300_회의비_입력.xrw","modal","stdycost01", "left:100; top:100; ", "/root/init", "/root/send/data");
  755. var irow = datagrid2.row;
  756. button2.dispatch("DOMActivate");
  757. // readfunc1();
  758. //datagrid2.dispatch("onclick");
  759. model.copyNode("/root/main/subreqinfo/subreqlist", "/root/main/subjdtlinfo/subjmstlist[" + irow + "]");
  760. datagrid2.row = irow;
  761. datagrid2.topRow = irow;
  762. model.refresh();
  763. ]]>
  764. </script>
  765. </button>
  766. <button id="button8" class="btn2_letter7" disabled="true" disable.background-image="../../../com/commonweb/images/dis_btn2_letter6.gif" style="left:830px; top:360px; width:97px; height:19px; background-image:../../../com/commonweb/images/btn2_letter6.gif; ">
  767. <caption>자문료/강사료</caption>
  768. <script type="javascript" ev:event="DOMActivate">
  769. <![CDATA[
  770. window.load("SPICU01400_자문료_입력.xrw","modal","stdycost01", "left:100; top:100; ", "/root/init", "/root/send/data");
  771. var irow = datagrid2.row;
  772. button2.dispatch("DOMActivate");
  773. // readfunc1();
  774. //datagrid2.dispatch("onclick");
  775. model.copyNode("/root/main/subreqinfo/subreqlist", "/root/main/subjdtlinfo/subjmstlist[" + irow + "]");
  776. datagrid2.row = irow;
  777. datagrid2.topRow = irow;
  778. model.refresh();
  779. ]]>
  780. </script>
  781. </button>
  782. <button id="button10" class="btn2_letter7" disable.background-image="../../../com/commonweb/images/dis_btn2_letter6.gif" style="left:830px; top:385px; width:97px; height:19px; background-image:../../../com/commonweb/images/btn2_letter6.gif; ">
  783. <caption>여비</caption>
  784. <script type="javascript" ev:event="DOMActivate">
  785. <![CDATA[
  786. window.load("SPICU01500_여비_입력.xrw","modal","stdycost01", "left:100; top:100; ", "/root/init", "/root/send/data");
  787. var irow = datagrid2.row;
  788. button2.dispatch("DOMActivate");
  789. // readfunc1();
  790. //datagrid2.dispatch("onclick");
  791. model.copyNode("/root/main/subreqinfo/subreqlist", "/root/main/subjdtlinfo/subjmstlist[" + irow + "]");
  792. datagrid2.row = irow;
  793. datagrid2.topRow = irow;
  794. model.refresh();
  795. ]]>
  796. </script>
  797. </button>
  798. <input id="input39" ref="/root/main/reqdetlstat/reqdetldg/totappamt" class="input_default" disabled="true" format="(-)#,###" style="left:486px; top:570px; width:105px; height:19px; text-align:right; "/>
  799. <button id="button11" class="btn2_letter7" disabled="true" disable.background-image="../../../com/commonweb/images/dis_btn2_letter6.gif" style="left:830px; top:412px; width:97px; height:19px; background-image:../../../com/commonweb/images/btn2_letter6.gif; ">
  800. <caption>구매</caption>
  801. </button>
  802. <datagrid id="datagrid2" nodeset="/root/main/reqdetlinfo/reqdetllist" caption="예산항목^예산편성금액^기집행금액^항목별잔액^신청(정산)금액^원천징수금액^실지급(정산)금액" colsep="^" colwidth="155, 105, 105, 105, 105, 105, 105" mergecellsfixedrows="bycolrec" rowsep="|" subtotalposition="below" tooltip="true" style="left:10px; top:240px; width:805px; height:324px; ">
  803. <col ref="detlitemexpendnm"/>
  804. <col disabled="true" ref="bugtamt" format="(-)#,###" style="text-align:right; "/>
  805. <col disabled="true" ref="appamt" format="(-)#,###" style="text-align:right; "/>
  806. <col ref="itemremain" format="(-)#,###" style="text-align:right; "/>
  807. <col ref="totamt" format="(-)#,###" style="text-align:right; "/>
  808. <col ref="wonamt" format="(-)#,###" style="text-align:right; "/>
  809. <col ref="calcamt" format="(-)#,###" style="text-align:right; "/>
  810. <script type="javascript" ev:event="onmouseover">
  811. <![CDATA[
  812. if ( model.getValue("/root/main/reqdetlinfo/reqdetllist["+datagrid1.mouseRow+"]/detlitemexpendnm") =="Volunteer Fee"){
  813. datagrid1.tooltipText (datagrid1.mouseRow, datagrid1.mouseCol)="일반연구비 버튼을 Click하십시오." + "\n" + "(카드사용은 카드 버튼을 Click하십시오.)";
  814. } else if ( model.getValue("/root/main/reqdetlinfo/reqdetllist["+datagrid1.mouseRow+"]/detlitemexpendnm") =="공공요금,잡비"){
  815. datagrid1.tooltipText (datagrid1.mouseRow, datagrid1.mouseCol)="일반연구비 버튼을 Click하십시오." + "\n" + "(카드사용은 카드 버튼을 Click하십시오.)";
  816. } else if ( model.getValue("/root/main/reqdetlinfo/reqdetllist["+datagrid1.mouseRow+"]/detlitemexpendnm") =="기기 구입비"){
  817. datagrid1.tooltipText (datagrid1.mouseRow, datagrid1.mouseCol)="일반연구비 버튼을 Click하십시오." + "\n" + "(카드사용은 카드 버튼을 Click하십시오.)";
  818. } else if ( model.getValue("/root/main/reqdetlinfo/reqdetllist["+datagrid1.mouseRow+"]/detlitemexpendnm") =="기타"){
  819. datagrid1.tooltipText (datagrid1.mouseRow, datagrid1.mouseCol)="일반연구비 버튼을 Click하십시오." + "\n" + "(카드사용은 카드 버튼을 Click하십시오.)";
  820. } else if ( model.getValue("/root/main/reqdetlinfo/reqdetllist["+datagrid1.mouseRow+"]/detlitemexpendnm") =="설문조사비"){
  821. datagrid1.tooltipText (datagrid1.mouseRow, datagrid1.mouseCol)="일반연구비 버튼을 Click하십시오." + "\n" + "(카드사용은 카드 버튼을 Click하십시오.)";
  822. } else if ( model.getValue("/root/main/reqdetlinfo/reqdetllist["+datagrid1.mouseRow+"]/detlitemexpendnm") =="시약,재료대"){
  823. datagrid1.tooltipText (datagrid1.mouseRow, datagrid1.mouseCol)="일반연구비 버튼을 Click하십시오." + "\n" + "(카드사용은 카드 버튼을 Click하십시오.)";
  824. } else if ( model.getValue("/root/main/reqdetlinfo/reqdetllist["+datagrid1.mouseRow+"]/detlitemexpendnm") =="약품관리비"){
  825. datagrid1.tooltipText (datagrid1.mouseRow, datagrid1.mouseCol)="일반연구비 버튼을 Click하십시오." + "\n" + "(카드사용은 카드 버튼을 Click하십시오.)";
  826. } else if ( model.getValue("/root/main/reqdetlinfo/reqdetllist["+datagrid1.mouseRow+"]/detlitemexpendnm") =="연구교수인건비"){
  827. datagrid1.tooltipText (datagrid1.mouseRow, datagrid1.mouseCol)="일반연구비 버튼을 Click하십시오." + "\n" + "(카드사용은 카드 버튼을 Click하십시오.)";
  828. } else if ( model.getValue("/root/main/reqdetlinfo/reqdetllist["+datagrid1.mouseRow+"]/detlitemexpendnm") =="유인물비"){
  829. datagrid1.tooltipText (datagrid1.mouseRow, datagrid1.mouseCol)="일반연구비 버튼을 Click하십시오." + "\n" + "(카드사용은 카드 버튼을 Click하십시오.)";
  830. } else if ( model.getValue("/root/main/reqdetlinfo/reqdetllist["+datagrid1.mouseRow+"]/detlitemexpendnm") =="임상검사비"){
  831. datagrid1.tooltipText (datagrid1.mouseRow, datagrid1.mouseCol)="일반연구비 버튼을 Click하십시오." + "\n" + "(카드사용은 카드 버튼을 Click하십시오.)";
  832. } else if ( model.getValue("/root/main/reqdetlinfo/reqdetllist["+datagrid1.mouseRow+"]/detlitemexpendnm") =="장비사용(임대)"){
  833. datagrid1.tooltipText (datagrid1.mouseRow, datagrid1.mouseCol)="일반연구비 버튼을 Click하십시오." + "\n" + "(카드사용은 카드 버튼을 Click하십시오.)";
  834. } else if ( model.getValue("/root/main/reqdetlinfo/reqdetllist["+datagrid1.mouseRow+"]/detlitemexpendnm") =="회의비"){
  835. datagrid1.tooltipText (datagrid1.mouseRow, datagrid1.mouseCol)="회의비 버튼을 Click하십시오.";
  836. } else if ( model.getValue("/root/main/reqdetlinfo/reqdetllist["+datagrid1.mouseRow+"]/detlitemexpendnm") =="문헌구입비"){
  837. datagrid1.tooltipText (datagrid1.mouseRow, datagrid1.mouseCol)="문헌구입비 버튼을 Click하십시오.";
  838. } else if ( model.getValue("/root/main/reqdetlinfo/reqdetllist["+datagrid1.mouseRow+"]/detlitemexpendnm") =="여비"){
  839. datagrid1.tooltipText (datagrid1.mouseRow, datagrid1.mouseCol)="여비 버튼을 Click하십시오.";
  840. } else if ( model.getValue("/root/main/reqdetlinfo/reqdetllist["+datagrid1.mouseRow+"]/detlitemexpendnm") =="인건보조비"){
  841. datagrid1.tooltipText (datagrid1.mouseRow, datagrid1.mouseCol)="인건비계획 버튼을 Click하십시오.";
  842. }
  843. ]]>
  844. </script>
  845. </datagrid>
  846. <button id="button13" class="btn2_letter7" disable.background-image="../../../com/commonweb/images/dis_btn2_letter6.gif" style="left:830px; top:310px; width:97px; height:19px; background-image:../../../com/commonweb/images/btn2_letter6.gif; ">
  847. <caption>문헌구입비</caption>
  848. <script type="javascript" ev:event="DOMActivate">
  849. <![CDATA[
  850. window.load("SPICU01700_문헌구입비_입력.xrw","modal","stdycost01", "left:100; top:100; ", "/root/init", "/root/send/data");
  851. var irow = datagrid2.row;
  852. button2.dispatch("DOMActivate");
  853. // readfunc1();
  854. //datagrid2.dispatch("onclick");
  855. model.copyNode("/root/main/subreqinfo/subreqlist", "/root/main/subjdtlinfo/subjmstlist[" + irow + "]");
  856. datagrid2.row = irow;
  857. datagrid2.topRow = irow;
  858. model.refresh();
  859. ]]>
  860. </script>
  861. </button>
  862. <button id="button12" class="btn2_letter5" _auth="P" disable.background-image="../../../com/commonweb/images/dis_btn2_letter8.gif" style="left:629px; top:214px; width:75px; height:19px; background-image:../../../com/commonweb/images/btn2_letter8.gif; ">
  863. <caption>인건비내역</caption>
  864. <script type="javascript" ev:event="DOMActivate">
  865. <![CDATA[
  866. exeReportPreview("RPICU00103", "XMLSTR" , "/root/rex");
  867. ]]>
  868. </script>
  869. </button>
  870. </case>
  871. </switch>
  872. <button id="button1" class="btn_sw" group="tab" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:94px; top:93px; width:87px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  873. <caption>연구비신청</caption>
  874. <toggle case="case2" ev:event="onclick"/>
  875. <script type="javascript" ev:event="DOMActivate">
  876. <![CDATA[
  877. btn_excel.visible = false;
  878. getIsamSdtycost();
  879. ]]>
  880. </script>
  881. </button>
  882. <button id="button2" class="btn_sw" group="tab" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:181px; top:93px; width:99px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  883. <caption>항목별연구비</caption>
  884. <toggle case="case3" ev:event="onclick"/>
  885. <script type="javascript" ev:event="DOMActivate">
  886. <![CDATA[
  887. btn_excel.visible = false;
  888. ]]>
  889. </script>
  890. </button>
  891. <button id="button4" class="btn_sw" group="tab" selected="true" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:1px; top:93px; width:93px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  892. <caption>과제목록</caption>
  893. <toggle case="case1" ev:event="onclick"/>
  894. <script type="javascript" ev:event="DOMActivate">
  895. <![CDATA[
  896. btn_excel.visible = true;
  897. ]]>
  898. </script>
  899. </button>
  900. <button id="button15" class="btn5_letter7" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn5_letter7.gif" style="left:1090px; top:60px; width:97px; height:19px; background-image:../../../com/commonweb/images/btn5_letter7.gif; ">
  901. <caption>지출결의서 전송</caption>
  902. </button>
  903. <button id="btn_excel" class="btn2_letter3" style="left:1127px; top:91px; width:53px; height:19px; ">
  904. <caption>Excel</caption>
  905. <script type="javascript" ev:event="onclick">
  906. <![CDATA[
  907. var fileName = window.fileDialog("save",",",false,"CRCC 연구비 관리","xls","All Files(*.*)|*.*|Excel Files(*.xls)|*.xls");
  908. if(fileName !=""){
  909. datagrid1.saveExcel(fileName);
  910. }
  911. ]]>
  912. </script>
  913. </button>
  914. <button id="btn_save" class="btn4_letter2" visibility="hidden" style="left:1055px; top:90px; width:56px; height:22px; ">
  915. <caption>저장</caption>
  916. <script type="javascript" ev:event="onclick">
  917. <![CDATA[
  918. datagrid1.clearStatus();
  919. for(var i = datagrid1.fixedrows; i < datagrid1.rows; i++)
  920. {
  921. var flag = model.getValue("/root/main/grid/stdyexplst["+i+"]/flag");
  922. if(flag =="Y"){
  923. datagrid1.addStatus(i, "insert");
  924. }
  925. }
  926. model.makeValue("/root/send/stdyexplst",datagrid1.getUpdateData());
  927. //if(submit("TXICU00301")){
  928. //}
  929. ]]>
  930. </script>
  931. </button>
  932. </xhtml:body>
  933. </xhtml:html>