SMAEQ00400_업무일지.xrw 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872
  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. <mainlist/>
  11. <nuclwlnlist/>
  12. <nucldelivelist/>
  13. <cnfmidinfo>
  14. <petcnfmid/>
  15. <petcnfmnm/>
  16. <nmcnfmid/>
  17. <nmcnfmnm/>
  18. <spccnfmid/>
  19. <spccnfmnm/>
  20. <bdirem/>
  21. <bdorem/>
  22. </cnfmidinfo>
  23. <bdoutexamcnt>
  24. <patcnt/>
  25. <testcnt/>
  26. </bdoutexamcnt>
  27. </main>
  28. <send>
  29. <srchdd/>
  30. <srchbdioflag/>
  31. <globalinstance>
  32. <instance1/>
  33. </globalinstance>
  34. <mainlist/>
  35. <nuclwlnlist/>
  36. <nucldelivelist/>
  37. <compdwlnlist/>
  38. <compddelivelist/>
  39. <srchflag/>
  40. <delflag/>
  41. <cnfmidinfo/>
  42. <srchcnfmid/>
  43. <updtyn/>
  44. <excuroomgrpcdid/>
  45. </send>
  46. <tmp>
  47. <suplcustcd/>
  48. <suplcustnm/>
  49. <itemflag/>
  50. <rem/>
  51. <rexlist>
  52. <srchdd/>
  53. <patinsucnt/>
  54. <patgnrlcnt/>
  55. <testinsucnt/>
  56. <testgnrlcnt/>
  57. <pettotpatcnt/>
  58. <pettottestcnt/>
  59. <nmtotpatcnt/>
  60. <nmtottestcnt/>
  61. <cutotpatcnt/>
  62. <cutottestcnt/>
  63. <spctotpatcnt/>
  64. <spctottestcnt/>
  65. <petusernm/>
  66. <nmusernm/>
  67. <spcusernm/>
  68. <rem/>
  69. </rexlist>
  70. <iolist/>
  71. <srchdd/>
  72. <incnfmnm/>
  73. <outcnfmnm/>
  74. </tmp>
  75. <init>
  76. <cmb_info>
  77. <initexcuroomgrp>
  78. <excuroomgrpcdid/>
  79. <excuroomgrpcdnm/>
  80. </initexcuroomgrp>
  81. </cmb_info>
  82. <incnfmnm/>
  83. <outcnfmnm/>
  84. </init>
  85. </root>
  86. </instance>
  87. <script type="javascript" ev:event="xforms-ready">
  88. <![CDATA[
  89. aezfSetSuppDeptcd();
  90. submit("TRAER00301");
  91. model.setValue("/root/init/incnfmnm", getUserInfo("userid"));
  92. model.setValue("/root/init/outcnfmnm", getUserInfo("userid"));
  93. model.setValue("/root/send/srchbdioflag","I");
  94. model.setValue("/root/send/srchdd", getCurrentDate() );
  95. model.setValue("/root/tmp/itemflag", "N");
  96. model.setValue("/root/send/updtyn", "N");
  97. model.removeNodeset("/root/main/mainlist");
  98. model.removeNodeset("/root/main/nuclwlnlist");
  99. model.removeNodeset("/root/main/nucldelivelist");
  100. addComboItem("cmb_excuroomgrp","--전체--","","above");
  101. btn_save.disabled = true;
  102. btn_del.disabled = true;
  103. btn_rept.disabled = false;
  104. btn_nuclrpt.disabled = false;
  105. ipt_petcnfmid.disabled = true;
  106. ipt_nmcnfmid.disabled = true;
  107. model.refresh();
  108. ]]>
  109. </script>
  110. <submission id="TRAEQ00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/">
  111. <script type="javascript" ev:event="xforms-submit-done">
  112. <![CDATA[
  113. var rowcnt = grd_mainlist.rows;
  114. for(var i = 0; i < rowcnt; i++ )
  115. {
  116. if(model.getValue("/root/tmp/rem") == "")
  117. {
  118. model.setValue("/root/tmp/rem", model.getValue("/root/main/mainlist[" + i + "]/rem"));
  119. }
  120. }
  121. sortGrid(grd_mainlist);
  122. ]]>
  123. </script>
  124. </submission>
  125. <submission id="TXAEQ00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/result"/>
  126. <submission id="TXAEQ00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
  127. <submission id="TXAEQ00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
  128. <submission id="TRAEQ00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmp/iolist"/>
  129. <submission id="TRAEQ00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmp/cnfminfo"/>
  130. <submission id="TRAER00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info"/>
  131. </model>
  132. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  133. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  134. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  135. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  136. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  137. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  138. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  139. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  140. <script type="javascript">
  141. <![CDATA[
  142. function sortGrid(gridItem) {
  143. gridItem.colSort(0) = "asc";
  144. gridItem.sort(0, 0, gridItem.rows, gridItem.cols) = "usersort";
  145. gridItem.subtotal("clear", 0, 2);
  146. gridItem.subtotal("clear", 0, 3);
  147. gridItem.subtotal("clear", 0, 4);
  148. gridItem.subtotal("clear", 0, 5);
  149. gridItem.subtotal("clear", -1, 2);
  150. gridItem.subtotal("clear", -1, 3);
  151. gridItem.subtotal("clear", -1, 4);
  152. gridItem.subtotal("clear", -1, 5);
  153. gridItem.subtotal("sum", 0, 2, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "소계");
  154. gridItem.subtotal("sum", 0, 3, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "소계");
  155. gridItem.subtotal("sum", 0, 4, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "소계");
  156. gridItem.subtotal("sum", 0, 5, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "소계");
  157. gridItem.subtotal("sum", -1, 2, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ",0, "총계");
  158. gridItem.subtotal("sum", -1, 3, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "총계");
  159. gridItem.subtotal("sum", -1, 4, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "총계");
  160. gridItem.subtotal("sum", -1, 5, "#,###", "background-color:#ffff00; color:#00ffff; font-weight:bold; ", 0, "총계");
  161. var cnt = getNodesetCount("/root/main/cnfmidinfo");
  162. if (cnt == 0) {
  163. model.makeNode("/root/main/cnfmidinfo/petcnfmid");
  164. model.makeNode("/root/main/cnfmidinfo/petcnfmnm");
  165. model.makeNode("/root/main/cnfmidinfo/nmcnfmid");
  166. model.makeNode("/root/main/cnfmidinfo/nmcnfmnm");
  167. model.makeNode("/root/main/cnfmidinfo/spccnfmid");
  168. model.makeNode("/root/main/cnfmidinfo/spccnfmnm");
  169. model.makeNode("/root/main/cnfmidinfo/bdirem");
  170. model.makeNode("/root/main/cnfmidinfo/bdorem");
  171. model.makeNode("/root/main/bdoutexamcnt/patcnt");
  172. model.makeNode("/root/main/bdoutexamcnt/testcnt");
  173. }
  174. model.refresh();
  175. }
  176. function addRow(qtygridlistid) {
  177. grd_nuclwlnlist.addItem();
  178. grd_bodypart.addItem();
  179. var i = parseInt(grd_bodypart.row);
  180. model.setValue("/root/main/bodypartlist/list[" + i + "]/basesuppdeptcd",
  181. model.getValue("/root/send/globalinstance/instance1") );
  182. model.refresh();
  183. }
  184. function setGridStatus(grd_update) {
  185. var rowcnt = grd_update.rows;
  186. for(i=0 ; i < rowcnt; i++) {
  187. grd_update.rowstatus(i) = 2;
  188. }
  189. }
  190. function mergeRexList(rexList)
  191. {
  192. var mainlistcnt;
  193. for(var i = 1 ; i <= model.getXPathValue("count(" + rexList + ")"); i++)
  194. {
  195. mainlistcnt = parseInt(model.getXPathValue("count(/root/tmp/rexlist/mainlist)")) + 1;
  196. model.makeNode("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]");
  197. model.copyNode("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]", rexList + "[" + i +"]");
  198. }
  199. if(model.getXPathValue("count(" + rexList + ")") > 0)
  200. {
  201. mainlistcnt = mainlistcnt + 1;
  202. model.makeNode("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]");
  203. model.copyNode("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]", "/root/tmp/rexlist/mainlist");
  204. model.setValue("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]/basecdcnts", " ");
  205. model.setValue("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]/prcpnm", "total");
  206. model.setValue("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]/patinsucnt", model.getXPathValue("sum(" + rexList + "/patinsucnt)"));
  207. model.setValue("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]/patgnrlcnt", model.getXPathValue("sum(" + rexList + "/patgnrlcnt)"));
  208. model.setValue("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]/testinsucnt", model.getXPathValue("sum(" + rexList + "/testinsucnt)"));
  209. model.setValue("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]/testgnrlcnt", model.getXPathValue("sum(" + rexList + "/testgnrlcnt)"));
  210. mainlistcnt = mainlistcnt + 1;
  211. model.makeNode("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]");
  212. mainlistcnt = mainlistcnt + 1;
  213. model.makeNode("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]");
  214. }
  215. }
  216. ]]>
  217. </script>
  218. </xhtml:head>
  219. <xhtml:body guideline="1,1195;" style="text-align:center; margin-left:7; margin-top:0; margin-right:8; margin-bottom:0; ">
  220. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  221. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">업무일지</caption>
  222. </group>
  223. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  224. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  225. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  226. <caption id="caption2" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">조회일자 :</caption>
  227. <input id="input5" ref="/root/send/srchdd" class="input_search" inputtype="date" style="left:102px; top:8px; width:100px; height:19px; ">
  228. <script type="javascript" ev:event="xforms-value-changed">
  229. <![CDATA[
  230. btn_sea.dispatch("DOMActivate");
  231. ]]>
  232. </script>
  233. </input>
  234. <line id="line13" class="line_4" style="x1:1116px; y1:6px; x2:1116px; y2:28px; "/>
  235. <caption id="caption3" class="search_name" visibility="hidden" style="left:530px; top:9px; width:65px; height:17px; ">구분 :</caption>
  236. <button id="btn_sea" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
  237. <caption>조회</caption>
  238. <script type="javascript" ev:event="DOMActivate">
  239. <![CDATA[
  240. if(model.getValue("/root/send/srchdd") != "") {
  241. model.removeNodeset("/root/main/mainlist");
  242. model.removeNodeset("/root/main/nuclwlnlist");
  243. model.removeNodeset("/root/main/nucldelivelist");
  244. model.removeNodeset("/root/main/compdwlnlist");
  245. model.removeNodeset("/root/main/compddelivelist");
  246. model.removeNodeset("/root/main/cnfmidinfo");
  247. model.removeNodeset("/root/main/bdoutexamcnt");
  248. model.makeValue("/root/send/srchflag","S");
  249. model.refresh();
  250. submit("TRAEQ00401");
  251. sortGrid(grd_mainlist);
  252. model.setValue("/root/send/updtyn", "N");
  253. } else {
  254. messageBox("날짜가", "E007");
  255. return false;
  256. }
  257. setGridStatus(grd_mainlist)
  258. ]]>
  259. </script>
  260. </button>
  261. <select1 id="radio1" ref="/root/send/srchbdioflag" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:600px; top:10px; width:95px; height:15px; border-style:none; ">
  262. <choices>
  263. <item>
  264. <label>체내</label>
  265. <value>I</value>
  266. </item>
  267. <item>
  268. <label>체외</label>
  269. <value>O</value>
  270. </item>
  271. </choices>
  272. <script type="javascript" ev:event="xforms-value-changed">
  273. <![CDATA[
  274. var bdioflag = model.getValue("/root/send/srchbdioflag");
  275. if (bdioflag == "I") {
  276. model.toggle("case1");
  277. } else if (bdioflag == "O") {
  278. model.toggle("case2");
  279. }
  280. if(model.getValue("/root/send/srchdd") != "")
  281. {
  282. model.removeNodeset("/root/main/mainlist");
  283. model.removeNodeset("/root/main/nuclwlnlist");
  284. model.removeNodeset("/root/main/nucldelivelist");
  285. model.removeNodeset("/root/main/compdwlnlist");
  286. model.removeNodeset("/root/main/compddelivelist");
  287. submit("TRAEQ00401");
  288. model.refresh();
  289. }
  290. else
  291. {
  292. messageBox("날짜가", "E007");
  293. }
  294. setGridStatus(grd_mainlist)
  295. model.refresh();
  296. ]]>
  297. </script>
  298. </select1>
  299. <button id="button3" class="btn1_letter3" style="left:1041px; top:7px; width:56px; height:22px; ">
  300. <caption>재조회</caption>
  301. <script type="javascript" ev:event="DOMActivate">
  302. <![CDATA[
  303. if(model.getValue("/root/send/srchdd") != "") {
  304. model.removeNodeset("/root/main/mainlist");
  305. model.removeNodeset("/root/main/nuclwlnlist");
  306. model.removeNodeset("/root/main/nucldelivelist");
  307. model.removeNodeset("/root/main/compdwlnlist");
  308. model.removeNodeset("/root/main/compddelivelist");
  309. model.makeValue("/root/send/srchflag","N");
  310. model.refresh();
  311. submit("TRAEQ00401");
  312. sortGrid(grd_mainlist);
  313. model.setValue("/root/send/updtyn", "N");
  314. } else {
  315. messageBox("날짜가", "E007");
  316. }
  317. setGridStatus(grd_mainlist);
  318. ]]>
  319. </script>
  320. </button>
  321. <caption id="caption1" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">조회일자 :</caption>
  322. <caption id="caption10" class="search_name" style="left:231px; top:9px; width:79px; height:17px; ">검사실 :</caption>
  323. <select1 id="cmb_excuroomgrp" ref="/root/send/excuroomgrpcdid" class="combo_default" appearance="minimal" style="left:310px; top:8px; width:118px; height:19px; ">
  324. <choices>
  325. <itemset nodeset="/root/init/cmb_info/initexcuroomgrp">
  326. <label ref="excuroomgrpcdnm"/>
  327. <value ref="excuroomgrpcdid"/>
  328. </itemset>
  329. </choices>
  330. <script type="javascript" ev:event="xforms-value-changed">
  331. <![CDATA[
  332. var excuroomgrpcdid = model.getValue("/root/send/excuroomgrpcdid");
  333. if (excuroomgrpcdid == "") {
  334. btn_save.disabled = true;
  335. btn_del.disabled = true;
  336. btn_rept.disabled = false;
  337. btn_nuclrpt.disabled = false;
  338. ipt_petcnfmid.disabled = true;
  339. ipt_nmcnfmid.disabled = true;
  340. } else {
  341. btn_save.disabled = false;
  342. btn_del.disabled = false;
  343. btn_rept.disabled = true;
  344. btn_nuclrpt.disabled = true;
  345. if (excuroomgrpcdid == "PET-CT실") {
  346. ipt_petcnfmid.disabled = false;
  347. ipt_nmcnfmid.disabled = true;
  348. } else {
  349. ipt_petcnfmid.disabled = true;
  350. ipt_nmcnfmid.disabled = false;
  351. }
  352. }
  353. btn_sea.dispatch("DOMActivate");
  354. ]]>
  355. </script>
  356. </select1>
  357. </group>
  358. <line id="line1" class="line_1" style="x1:0px; y1:71px; x2:555px; y2:71px; "/>
  359. <caption id="caption22" class="tit_2" style="left:0px; top:56px; width:84px; height:13px; ">검사현황</caption>
  360. <caption id="caption4" class="tit_2" style="left:561px; top:56px; width:84px; height:13px; ">입고현황</caption>
  361. <line id="line2" class="line_1" style="x1:561px; y1:71px; x2:1193px; y2:71px; "/>
  362. <switch id="switch2" style="left:561px; top:76px; width:632px; height:529px; ">
  363. <case id="case3" scroll="none" selected="true">
  364. <datagrid id="grd_nuclwlnlist" nodeset="/root/main/nuclwlnlist" caption="제품코드^항목^공급처^제조회사^규격^용량^취득량" colsep="^" colwidth="60, 134, 95, 80, 75, 68, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1px; top:0px; width:632px; height:250px; ">
  365. <col ref="goodcd"/>
  366. <col ref="goodnm" type="output"/>
  367. <col ref="suplcustnm" type="output"/>
  368. <col ref="prodcmpynm" type="output"/>
  369. <col ref="specnm" type="output"/>
  370. <col ref="vol" type="output" format="#,###.99" maxlength="10" style="text-align:right; "/>
  371. <col ref="qty" type="input" format="#,###" maxlength="10" style="text-align:right; "/>
  372. <col ref="lossresncd" visibility="hidden"/>
  373. <col ref="iodd" visibility="hidden"/>
  374. <col ref="ioflag" visibility="hidden"/>
  375. <col ref="bdioflag" visibility="hidden"/>
  376. <col ref="itemflag" visibility="hidden"/>
  377. <col ref="rem" visibility="hidden"/>
  378. <col ref="suppdeptcd" visibility="hidden" style="text-align:center; "/>
  379. </datagrid>
  380. <datagrid id="grd_nucldelivelist" nodeset="/root/main/nucldelivelist" caption="제품코드^항목^공급처^제조회사^규격^용량^사용량" colsep="^" colwidth="60, 134, 95, 80, 75, 68, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1px; top:275px; width:632px; height:250px; ">
  381. <col ref="goodcd"/>
  382. <col ref="goodnm" type="output"/>
  383. <col ref="suplcustnm" type="output"/>
  384. <col ref="prodcmpynm" type="output"/>
  385. <col ref="specnm" type="output"/>
  386. <col ref="vol" type="output" format="#,###.99" maxlength="10" style="text-align:right; "/>
  387. <col ref="qty" type="input" format="#,###" maxlength="10" style="text-align:right; "/>
  388. <col ref="lossresncd" visibility="hidden"/>
  389. <col ref="iodd" visibility="hidden"/>
  390. <col ref="ioflag" visibility="hidden"/>
  391. <col ref="bdioflag" visibility="hidden"/>
  392. <col ref="itemflag" visibility="hidden"/>
  393. <col ref="rem" visibility="hidden"/>
  394. <col ref="suppdeptcd" visibility="hidden" style="text-align:center; "/>
  395. </datagrid>
  396. </case>
  397. <case id="case4" scroll="none">
  398. <datagrid id="grd_compdwlnlist" nodeset="/root/main/compdwlnlist" caption="제품코드^항목^공급처^제조회사^규격^용량^취득량" colsep="^" colwidth="60, 134, 95, 80, 75, 68, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1px; top:0px; width:632px; height:250px; ">
  399. <col ref="goodcd"/>
  400. <col ref="goodnm" type="output"/>
  401. <col ref="suplcustnm" type="output"/>
  402. <col ref="prodcmpynm" type="output"/>
  403. <col ref="specnm" type="output"/>
  404. <col ref="vol" type="output" format="#,###.99" maxlength="10" style="text-align:right; "/>
  405. <col ref="qty" type="input" format="#,###" maxlength="10" style="text-align:right; "/>
  406. <col ref="lossresncd" visibility="hidden"/>
  407. <col ref="iodd" visibility="hidden"/>
  408. <col ref="ioflag" visibility="hidden"/>
  409. <col ref="bdioflag" visibility="hidden"/>
  410. <col ref="itemflag" visibility="hidden"/>
  411. <col ref="rem" visibility="hidden"/>
  412. <col ref="suppdeptcd" visibility="hidden" style="text-align:center; "/>
  413. </datagrid>
  414. <datagrid id="grd_compddelivelist" nodeset="/root/main/compddelivelist" caption="제품코드^항목^공급처^제조회사^규격^용량^사용량" colsep="^" colwidth="60, 134, 95, 80, 75, 68, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1px; top:275px; width:632px; height:250px; ">
  415. <col ref="goodcd"/>
  416. <col ref="goodnm" type="output"/>
  417. <col ref="suplcustnm" type="output"/>
  418. <col ref="prodcmpynm" type="output"/>
  419. <col ref="specnm" type="output"/>
  420. <col ref="vol" type="output" format="#,###.99" maxlength="10" style="text-align:right; "/>
  421. <col ref="qty" type="input" format="#,###" maxlength="10" style="text-align:right; "/>
  422. <col ref="lossresncd" visibility="hidden"/>
  423. <col ref="iodd" visibility="hidden"/>
  424. <col ref="ioflag" visibility="hidden"/>
  425. <col ref="bdioflag" visibility="hidden"/>
  426. <col ref="itemflag" visibility="hidden"/>
  427. <col ref="rem" visibility="hidden"/>
  428. <col ref="suppdeptcd" visibility="hidden" style="text-align:center; "/>
  429. </datagrid>
  430. </case>
  431. </switch>
  432. <textarea id="textarea1" ref="/root/main/cnfmidinfo/bdirem" style="left:0px; top:635px; width:1195px; height:109px; text-align:left; "/>
  433. <caption id="caption5" class="tit_2" style="left:0px; top:615px; width:129px; height:14px; ">참고사항</caption>
  434. <line id="line3" class="line_1" style="x1:1px; y1:630px; x2:1195px; y2:630px; "/>
  435. <caption id="caption7" class="tit_2" style="left:561px; top:335px; width:84px; height:13px; ">사용현황</caption>
  436. <line id="line4" class="line_1" style="x1:561px; y1:350px; x2:1193px; y2:350px; "/>
  437. <switch id="switch1" style="left:0px; top:75px; width:558px; height:532px; ">
  438. <case id="case1" selected="true">
  439. <datagrid id="grd_mainlist" nodeset="/root/main/mainlist" caption="구분^검사항목^환자수^환자수^검사수^검사수|구분^검사항목^보험^일반^보험^일반" colsep="^" colwidth="84, 230, 55, 55, 55, 55, 100, 100, 100, 100, 100" fixedcols="1" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" multitotal="true" rowsep="|" subtotalposition="below" style="left:0px; top:0px; width:555px; height:529px; ">
  440. <col ref="basecdcnts"/>
  441. <col ref="prcpnm" style="text-align:center; "/>
  442. <col ref="patinsucnt" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
  443. <col ref="patgnrlcnt" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
  444. <col ref="testinsucnt" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
  445. <col ref="testgnrlcnt" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
  446. <col ref="prcpcd" visibility="hidden" style="text-align:center; "/>
  447. <col ref="recdd" visibility="hidden" style="text-align:center; "/>
  448. <col ref="bdioflag" visibility="hidden" style="text-align:center; "/>
  449. <col ref="suppdeptcd" visibility="hidden" style="text-align:center; "/>
  450. <col ref="rem" visibility="hidden"/>
  451. <script type="javascript" ev:event="xforms-value-changed">
  452. <![CDATA[
  453. var excuroomgrpcdid = model.getValue("/root/send/excuroomgrpcdid");
  454. if (excuroomgrpcdid == "PET-CT실") {
  455. model.setValue("/root/main/cnfmidinfo/petcnfmid","");
  456. model.setValue("/root/main/cnfmidinfo/petcnfmnm","");
  457. } else {
  458. model.setValue("/root/main/cnfmidinfo/nmcnfmid","");
  459. model.setValue("/root/main/cnfmidinfo/nmcnfmnm","");
  460. }
  461. model.refresh();
  462. ]]>
  463. </script>
  464. </datagrid>
  465. </case>
  466. <case id="case2">
  467. <datagrid id="datagrid1" nodeset="/root/list/abc" caption="구분^검사항목^환자수^환자수^환자수^검사수&#xA;(사용량)|구분^검사항목^입원^외래^건진^검사수&#xA;(사용량)" colsep="^" colwidth="64, 248, 55, 55, 55, 55" fixedcols="1" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:555px; height:529px; ">
  468. <col ref="basecdcnts"/>
  469. <col ref="prcpnm"/>
  470. <col ref="paticnt" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
  471. <col ref="patocnt" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
  472. <col ref="patscnt" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
  473. <col ref="testqty" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
  474. <col ref="prcpcd" visibility="hidden" style="text-align:center; "/>
  475. <col ref="recdd" visibility="hidden" style="text-align:center; "/>
  476. <col ref="bdioflag" visibility="hidden" style="text-align:center; "/>
  477. </datagrid>
  478. </case>
  479. </switch>
  480. <input id="ipt_suplcmpynm" ref="/root/tmp/suplcustnm" visibility="hidden" style="left:205px; top:610px; width:90px; height:19px; "/>
  481. <input id="ipt_suplcmpy" ref="/root/tmp/suplcustcd" visibility="hidden" style="left:115px; top:610px; width:85px; height:19px; "/>
  482. <select1 id="radio2" ref="/root/tmp/itemflag" appearance="full" cols="2" overflow="visible" style="left:645px; top:55px; width:95px; height:15px; border-style:none; ">
  483. <choices>
  484. <item>
  485. <label>핵종</label>
  486. <value>N</value>
  487. </item>
  488. <item>
  489. <label>화합물</label>
  490. <value>O</value>
  491. </item>
  492. </choices>
  493. <script type="javascript" ev:event="xforms-value-changed">
  494. <![CDATA[
  495. if(radio2.value == "N")
  496. {
  497. model.toggle("case3");
  498. }
  499. else
  500. {
  501. model.toggle("case4");
  502. }
  503. ]]>
  504. </script>
  505. </select1>
  506. <input id="ipt_petcnfmid" ref="/root/main/cnfmidinfo/petcnfmid" class="input_search" style="left:695px; top:609px; width:90px; height:19px; text-align:left; ">
  507. <script type="javascript" ev:event="onkeydown">
  508. <![CDATA[
  509. if ( event.keyCode == 13 ) {
  510. setInputNodeCurText();
  511. model.setValue("/root/send/srchcnfmid", model.getValue("/root/main/cnfmidinfo/petcnfmid"));
  512. if (submit("TRAEQ00403",false)) {
  513. var cnfmn = model.getValue("/root/tmp/cnfminfo/cnfmnm");
  514. model.setValue("/root/main/cnfmidinfo/petcnfmid", model.getValue("/root/tmp/cnfminfo/cnfmid"));
  515. model.setValue("/root/main/cnfmidinfo/petcnfmnm", cnfmn);
  516. if (cnfmn != "") {
  517. model.setValue("/root/send/updtyn","Y");
  518. }
  519. model.refresh();
  520. }
  521. }
  522. ]]>
  523. </script>
  524. </input>
  525. <output id="output1" ref="/root/main/cnfmidinfo/petcnfmnm" class="output_fix" style="left:787px; top:609px; width:80px; height:19px; "/>
  526. <input id="ipt_nmcnfmid" ref="/root/main/cnfmidinfo/nmcnfmid" class="input_search" style="left:1015px; top:609px; width:90px; height:19px; text-align:left; ">
  527. <script type="javascript" ev:event="onkeydown">
  528. <![CDATA[
  529. if ( event.keyCode == 13 ) {
  530. setInputNodeCurText();
  531. model.setValue("/root/send/srchcnfmid", model.getValue("/root/main/cnfmidinfo/nmcnfmid"));
  532. if (submit("TRAEQ00403",false)) {
  533. var cnfmn = model.getValue("/root/tmp/cnfminfo/cnfmnm");
  534. model.setValue("/root/main/cnfmidinfo/nmcnfmid", model.getValue("/root/tmp/cnfminfo/cnfmid"));
  535. model.setValue("/root/main/cnfmidinfo/nmcnfmnm", model.getValue("/root/tmp/cnfminfo/cnfmnm"));
  536. if (cnfmn != "") {
  537. model.setValue("/root/send/updtyn","Y");
  538. }
  539. model.refresh();
  540. }
  541. }
  542. ]]>
  543. </script>
  544. </input>
  545. <output id="output2" ref="/root/main/cnfmidinfo/nmcnfmnm" class="output_fix" style="left:1107px; top:609px; width:80px; height:19px; "/>
  546. </group>
  547. <button id="btn_save" class="btn4_letter2" style="left:845px; top:760px; width:56px; height:22px; ">
  548. <caption>저장</caption>
  549. <script type="javascript" ev:event="DOMActivate">
  550. <![CDATA[
  551. var rowcnt = grd_mainlist.rows;
  552. // if(model.getXPathValue("count(/root/main/mainlist)") != 0) model.setValue("/root/main/mainlist[1]/rem", model.getValue("/root/tmp/rem"));
  553. var excuroomgrpcdid = model.getValue("/root/send/excuroomgrpcdid");
  554. var cnfmnm = "";
  555. if (excuroomgrpcdid == "PET-CT실") {
  556. cnfmnm = model.getValue("/root/main/cnfmidinfo/petcnfmnm");
  557. } else {
  558. cnfmnm = model.getValue("/root/main/cnfmidinfo/nmcnfmnm");
  559. }
  560. if ( cnfmnm == "" ) {
  561. messageBox("확인자 정보를 확인해 주십시요!", "I999");
  562. return;
  563. }
  564. for(var i = 1; i < rowcnt; i++)
  565. {
  566. model.makeValue("/root/main/mainlist[" + i + "]/rem", model.getValue("/root/tmp/rem"));
  567. }
  568. grd_mainlist.subtotal("clear", 0, 2, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "소계");
  569. grd_mainlist.subtotal("clear", 0, 3, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "소계");
  570. grd_mainlist.subtotal("clear", 0, 4, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "소계");
  571. grd_mainlist.subtotal("clear", 0, 5, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "소계");
  572. grd_mainlist.subtotal("clear", -1, 2, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ",0, "총계");
  573. grd_mainlist.subtotal("clear", -1, 3, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "총계");
  574. grd_mainlist.subtotal("clear", -1, 4, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "총계");
  575. grd_mainlist.subtotal("clear", -1, 5, "#,###", "background-color:#ffff00; color:#00ffff; font-weight:bold; ", 0, "총계");
  576. var uptmain = getGridUpdateData(grd_mainlist);
  577. var uptwln = getGridUpdateData(grd_nuclwlnlist);
  578. var uptdelive = getGridUpdateData(grd_nucldelivelist);
  579. var uptcompdwln = getGridUpdateData(grd_compdwlnlist);
  580. var uptcompddelive = getGridUpdateData(grd_compddelivelist);
  581. model.setValue("/root/send/mainlist", uptmain);
  582. model.setValue("/root/send/nuclwlnlist", uptwln);
  583. model.setValue("/root/send/nucldelivelist", uptdelive);
  584. model.setValue("/root/send/compdwlnlist", uptcompdwln);
  585. model.setValue("/root/send/compddelivelist", uptcompddelive);
  586. copyNodesetType("/root/send/cnfmidinfo","/root/main/cnfmidinfo");
  587. model.makeValue("/root/send/cnfmidinfo/recdd", model.getValue("/root/send/srchdd"));
  588. model.makeValue("/root/send/cnfmidinfo/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  589. model.makeValue("/root/send/cnfmidinfo/bdioflag", "I");
  590. if ( submit("TXAEQ00401")) {
  591. // 저장 후 재 조회
  592. model.makeValue("/root/send/srchflag","S");
  593. model.removeNodeset("/root/main/mainlist");
  594. model.removeNodeset("/root/main/nuclwlnlist");
  595. model.removeNodeset("/root/main/nucldelivelist");
  596. model.removeNodeset("/root/main/compdwlnlist");
  597. model.removeNodeset("/root/main/compddelivelist");
  598. model.removeNodeset("/root/main/cnfmidinfo");
  599. model.refresh();
  600. submit("TRAEQ00401");
  601. sortGrid(grd_mainlist);
  602. messageBox("저장", "I002");
  603. }
  604. ]]>
  605. </script>
  606. </button>
  607. <button id="btn_del" class="btn4_letter2" style="left:904px; top:760px; width:56px; height:22px; ">
  608. <caption>삭제</caption>
  609. <script type="javascript" ev:event="onclick">
  610. <![CDATA[
  611. var message = messageBox( "\r\n\r\검사현황을","Q001");
  612. model.makeValue("/root/send/delflag", "T");
  613. if (submit("TXAEQ00402")) {
  614. btn_sea.dispatch("DOMActivate");
  615. }
  616. ]]>
  617. </script>
  618. </button>
  619. <button id="btn_rept" class="btn4_letter6" style="left:965px; top:760px; width:104px; height:22px; ">
  620. <caption>검사현황출력</caption>
  621. <script type="javascript" ev:event="DOMActivate">
  622. <![CDATA[
  623. var nodecnt = model.getXPathValue("count(/root/main/mainlist)");
  624. var list1cnt = 1;
  625. var list2cnt = 1;
  626. var list3cnt = 1;
  627. var list4cnt = 1;
  628. for(var i=1 ; i <= nodecnt; i++) {
  629. if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "PET-CT실") {
  630. model.makeNode("/root/tmp/rexlist/list1[" + list1cnt + "]");
  631. model.copyNode("/root/tmp/rexlist/list1[" + list1cnt +"]", "/root/main/mainlist[" + i + "]");
  632. list1cnt = list1cnt + 1;
  633. }
  634. }
  635. for(var i=1 ; i <= nodecnt; i++) {
  636. if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "영상검사실") {
  637. model.makeNode("/root/tmp/rexlist/list2[" + list2cnt + "]");
  638. model.copyNode("/root/tmp/rexlist/list2[" + list2cnt +"]", "/root/main/mainlist[" + i + "]");
  639. list2cnt = list2cnt + 1;
  640. }
  641. }
  642. for(var i=1 ; i <= nodecnt; i++) {
  643. if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "기능적 검사") {
  644. model.makeNode("/root/tmp/rexlist/list3[" + list3cnt + "]");
  645. model.copyNode("/root/tmp/rexlist/list3[" + list3cnt +"]", "/root/main/mainlist[" + i + "]");
  646. list3cnt = list3cnt + 1;
  647. }
  648. }
  649. for(var i=1 ; i <= nodecnt; i++) {
  650. if(model.getValue("/root/main/mainlist[" + i +"]/basecdcnts" ) == "치료,투약실") {
  651. model.makeNode("/root/tmp/rexlist/list4[" + list4cnt + "]");
  652. model.copyNode("/root/tmp/rexlist/list4[" + list4cnt +"]", "/root/main/mainlist[" + i + "]");
  653. list4cnt = list4cnt + 1;
  654. }
  655. }
  656. mergeRexList("/root/tmp/rexlist/list1");
  657. mergeRexList("/root/tmp/rexlist/list2");
  658. mergeRexList("/root/tmp/rexlist/list3");
  659. mergeRexList("/root/tmp/rexlist/list4");
  660. var patinsucnt = model.getXPathValue("sum( /root/main/mainlist/patinsucnt )");
  661. var patgnrlcnt = model.getXPathValue("sum( /root/main/mainlist/patgnrlcnt )");
  662. var testinsucnt = model.getXPathValue("sum( /root/main/mainlist/testinsucnt )");
  663. var testgnrlcnt = model.getXPathValue("sum( /root/main/mainlist/testgnrlcnt )");
  664. var pettotpatcnt = 0;
  665. var pettottestcnt = 0;
  666. var nmtotpatcnt = 0;
  667. var nmtottestcnt = 0;
  668. var cutotpatcnt = 0;
  669. var cutottestcnt = 0;
  670. // PET/CT 검사
  671. pettotpatcnt = parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list1/patinsucnt )"));
  672. pettotpatcnt = pettotpatcnt + parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list1/patgnrlcnt)"));
  673. pettottestcnt = parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list1/testinsucnt )"));
  674. pettottestcnt = pettottestcnt + parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list1/testgnrlcnt)"));
  675. // 체내검사 : 영상, 기능적검사
  676. nmtotpatcnt = parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list2/patinsucnt )"));
  677. nmtotpatcnt = nmtotpatcnt + parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list2/patgnrlcnt)"));
  678. nmtotpatcnt = nmtotpatcnt + parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list3/patinsucnt )"));
  679. nmtotpatcnt = nmtotpatcnt + parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list3/patgnrlcnt)"));
  680. nmtottestcnt = parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list2/testinsucnt )"));
  681. nmtottestcnt = nmtottestcnt + parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list2/testgnrlcnt)"));
  682. nmtottestcnt = nmtottestcnt + parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list3/testinsucnt )"));
  683. nmtottestcnt = nmtottestcnt + parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list3/testgnrlcnt)"));
  684. // R.I 치료
  685. cutotpatcnt = parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list4/patinsucnt )"));
  686. cutotpatcnt = cutotpatcnt + parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list4/patgnrlcnt)"));
  687. cutottestcnt = parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list4/testinsucnt )"));
  688. cutottestcnt = cutottestcnt + parseInt(model.getXPathValue("sum( /root/tmp/rexlist/list4/testgnrlcnt)"));
  689. var rem = model.getValue("/root/m/rem");
  690. if ( rem == "" ) {
  691. rem = model.getXPathValue(" /root/main/mainlist/rem ");
  692. }
  693. model.setValue("/root/tmp/rexlist/patinsucnt", patinsucnt);
  694. model.setValue("/root/tmp/rexlist/patgnrlcnt", patgnrlcnt);
  695. model.setValue("/root/tmp/rexlist/testinsucnt", testinsucnt);
  696. model.setValue("/root/tmp/rexlist/testgnrlcnt", testgnrlcnt);
  697. model.setValue("/root/tmp/rexlist/pettotpatcnt", pettotpatcnt);
  698. model.setValue("/root/tmp/rexlist/pettottestcnt", pettottestcnt);
  699. model.setValue("/root/tmp/rexlist/nmtotpatcnt", nmtotpatcnt);
  700. model.setValue("/root/tmp/rexlist/nmtottestcnt", nmtottestcnt);
  701. model.setValue("/root/tmp/rexlist/cutotpatcnt", cutotpatcnt);
  702. model.setValue("/root/tmp/rexlist/cutottestcnt", cutottestcnt);
  703. var spctotpatcnt = 0;
  704. var spctottestcnt = 0;
  705. model.setValue("/root/tmp/rexlist/spctotpatcnt", model.getValue("/root/main/bdoutexamcnt/patcnt"));
  706. model.setValue("/root/tmp/rexlist/spctottestcnt", model.getValue("/root/main/bdoutexamcnt/testcnt"));
  707. model.setValue("/root/tmp/rexlist/petusernm", model.getValue("/root/main/cnfmidinfo/petcnfmnm"));
  708. model.setValue("/root/tmp/rexlist/nmusernm", model.getValue("/root/main/cnfmidinfo/nmcnfmnm"));
  709. model.setValue("/root/tmp/rexlist/spcusernm", model.getValue("/root/main/cnfmidinfo/spccnfmnm"));
  710. model.setValue("/root/tmp/rexlist/rem", model.getValue("/root/main/cnfmidinfo/bdirem"));
  711. var ymd = model.getValue("/root/send/srchdd");
  712. var year = ymd.substring(0,4);
  713. var month = ymd.substring(4,6);
  714. var day = ymd.substring(6,8);
  715. var yymmddstr = year + "년 " + month + "월 " + day + "일 " + getDateTime(ymd.toDate("YYYYMMDD"), "W") + "요일";
  716. model.setValue("/root/tmp/rexlist/srchdd", yymmddstr);
  717. model.makeNode("/root/tmp/rexlist/mainlist[40]");
  718. exeReportPreview("RPAEQ00400", "XMLSTR", "/root/tmp/rexlist");
  719. model.removeNodeset("/root/tmp/rexlist/list1");
  720. model.removeNodeset("/root/tmp/rexlist/list2");
  721. model.removeNodeset("/root/tmp/rexlist/list3");
  722. model.removeNodeset("/root/tmp/rexlist/list4");
  723. model.removeNodeset("/root/tmp/rexlist/mainlist");
  724. model.refresh();
  725. ]]>
  726. </script>
  727. </button>
  728. <button id="btn_nuclrpt" class="btn4_letter7" style="left:1075px; top:760px; width:116px; height:22px; ">
  729. <caption>입고/사용량출력</caption>
  730. <script type="javascript" ev:event="DOMActivate">
  731. <![CDATA[
  732. if(getGridUpdateData(grd_nuclwlnlist, "") != "" || getGridUpdateData(grd_nucldelivelist, "") != "" ||
  733. getGridUpdateData(grd_compdwlnlist, "") != "" || getGridUpdateData(grd_compddelivelist, "") != "")
  734. {
  735. if(messageBox("저장되지 않은 내역은 출력되지 않습니다. \n출력", "S002") == 7) return false;
  736. }
  737. var ymd = model.getValue("/root/main/nuclwlnlist/iodd");
  738. var year = ymd.substring(0,4);
  739. var month = ymd.substring(4,6);
  740. var day = ymd.substring(6,8);
  741. var yymmddstr = year + "/" + month + "/" + day + " " + getDateTime(ymd.toDate("YYYYMMDD"), "W") + "요일";
  742. model.setValue("/root/tmp/srchdd", yymmddstr);
  743. model.resetInstanceNode("/root/tmp/iolist");
  744. model.removenode("/root/tmp/iolist");
  745. // model.setValue("/root/tmp/rexlist/petusernm", model.getValue("/root/main/cnfmidinfo/petcnfmnm"));
  746. // model.setValue("/root/tmp/rexlist/nmusernm", model.getValue("/root/main/cnfmidinfo/nmcnfmnm"));
  747. //
  748. model.setValue("/root/tmp/incnfmnm", model.getValue("/root/main/cnfmidinfo/nmcnfmnm"));
  749. model.setValue("/root/tmp/outcnfmnm", model.getValue("/root/main/cnfmidinfo/spccnfmnm"));
  750. submit("TRAEQ00402");
  751. for(var i = model.getXPathValue("count(/root/tmp/iolist)"); i > 0 ; i--)
  752. {
  753. if(model.getValue("/root/tmp/iolist[" + i + "]/qty") == "" && model.getValue("/root/tmp/iolist[" + i + "]/goodnm") != "")
  754. {
  755. model.removenode("/root/tmp/iolist[" + i + "]");
  756. }
  757. }
  758. model.makeNode("/root/tmp/iolist[92]");
  759. exeReportPreview("RPAEQ00401", "XMLSTR", "/root/tmp");
  760. ]]>
  761. </script>
  762. </button>
  763. <caption id="caption8" class="search_name" style="left:564px; top:623px; width:129px; height:17px; ">PET/CT 확인자 :</caption>
  764. <caption id="caption9" class="search_name" style="left:876px; top:622px; width:135px; height:17px; ">체내.치료 확인자 :</caption>
  765. </xhtml:body>
  766. </xhtml:html>