SMAHR00911_종합건진출력.xrw 89 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHR00911.xrw
  4. * 설 명 : SMAHR00911_종합건진출력.xrw
  5. * 설 계 자 :
  6. * 작 성 자 :
  7. * 작 성 일 :
  8. * 수정이력 : 2012.11.28 - 불필요한 부분 삭제
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>종합건강검진 결과출력</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <reprordlist>
  20. <item>
  21. <healexamflag/>
  22. <healexamdetlflag/>
  23. <rsrvdd/>
  24. <rsrvno/>
  25. <orddd/>
  26. <rsltcnstrsrvdd/>
  27. <pid/>
  28. <hngnm/>
  29. <rrgstno/>
  30. <sex/>
  31. <age/>
  32. <cmpynm/>
  33. <pkgnm/>
  34. <judgdrnm/>
  35. <resultnot/>
  36. <check/>
  37. <pkgcd/>
  38. <bundlecd/>
  39. <choiflag/>
  40. </item>
  41. </reprordlist>
  42. <etccd/>
  43. </main>
  44. <main1>
  45. <reprordsrch/>
  46. </main1>
  47. <send>
  48. <srchinstcd/>
  49. <srchhealexamflag/>
  50. <srchhealexamdetlflag/>
  51. <srchfromdd/>
  52. <srchtodd/>
  53. <srchpid/>
  54. <srchpnm/>
  55. <srchcmpycd/>
  56. <srchcmpynm/>
  57. <srchcond/>
  58. <srchcontinfo/>
  59. <srchcmpynm2/>
  60. <srchcmpyyn/>
  61. <srchrsrvdd/>
  62. <srchrsrvno/>
  63. <srchlangflag/>
  64. <srchorddd/>
  65. <srchpkgcd/>
  66. <srchddn/>
  67. <srchcdgrupid/>
  68. <etclst>
  69. <clscd/>
  70. <etccd/>
  71. <srchinstcd/>
  72. </etclst>
  73. <srchreprordlist>
  74. <item/>
  75. </srchreprordlist>
  76. </send>
  77. <init>
  78. <baseinfo>
  79. <contypelst/>
  80. <statlst/>
  81. <healexamflag/>
  82. <hedetlflaglst/>
  83. <initaddrinfo/>
  84. <S950list/>
  85. </baseinfo>
  86. <etclst/>
  87. </init>
  88. <temp>
  89. <p02/>
  90. <p03/>
  91. <p04/>
  92. <p05/>
  93. <p06/>
  94. <p07/>
  95. <p08/>
  96. <p09/>
  97. <p10/>
  98. <p11/>
  99. <p12/>
  100. <p13/>
  101. <p14/>
  102. <p15/>
  103. <p16/>
  104. <p17/>
  105. <p18/>
  106. <p19/>
  107. </temp>
  108. <rexprnt>
  109. <viewinfo>
  110. <pid/>
  111. <hngnm/>
  112. <orddd/>
  113. <drnm/>
  114. <rsrvdd/>
  115. <drlicnsno/>
  116. <rrgstno1/>
  117. <rrgstno2/>
  118. <etcdetlcd1/>
  119. <etcdetlnm1/>
  120. <text1/>
  121. <etcdetlcd2/>
  122. <etcdetlnm2/>
  123. <text2/>
  124. </viewinfo>
  125. </rexprnt>
  126. </root>
  127. </instance>
  128. <submission id="TRAHB00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/etclst"/>
  129. <submission id="TRAHR00914" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/reprordlist"/>
  130. <submission id="TRAHR00915" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchreprordlist" resultref="/root/main1/reprordsrch"/>
  131. <submission id="TRAHA00001"/>
  132. <!--
  133. <submission id="TRZBC00101"/>
  134. <submission id="TRAHA00001"/>
  135. -->
  136. </model>
  137. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  138. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  139. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  140. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  141. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  142. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  143. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  144. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  145. <script type="javascript" ev:event="xforms-ready">
  146. <![CDATA[
  147. fInitInfo();
  148. fGetBaseInfo();
  149. ]]>
  150. </script>
  151. <script type="javascript">
  152. <![CDATA[
  153. /*=======================================================================================
  154. *초기화
  155. =======================================================================================*/
  156. function fInitInfo(){
  157. var cur_date = getCurrentDate();
  158. model.setValue("/root/send/srchfromdd" , cur_date);
  159. model.setValue("/root/send/srchtodd" , cur_date);
  160. // model.setValue("/root/send/srchfromdd" , "20120507");
  161. // model.setValue("/root/send/srchtodd" , "20120511");
  162. //출력표지 목록 셋팅하기
  163. model.setValue("/root/send/etclst/clscd", "P");
  164. submit("TRAHB00601");
  165. model.refresh();
  166. }
  167. /**=======================================================================================
  168. * 건진 결과 출력 대상자 리스트 조회
  169. =======================================================================================*/
  170. function fGetPrntPatList(){
  171. model.removeNodeset("/root/main/reprordlist/item");
  172. model.removeNodeset("/root/main/contlst/item");
  173. submit("TRAHR00914");
  174. model.refresh();
  175. }
  176. /*=======================================================================================
  177. *공통코드 가져오기
  178. =======================================================================================*/
  179. function fGetBaseInfo(){
  180. model.setValue("/root/send/srchhealexamflag" , fGetHealExamFlag());
  181. model.setValue("/root/send/srchhealexamdetlflag" , fGetHealExamDetlFlag());
  182. healGetCodeList( new Array("S950"), new Array("/root/init/baseinfo/S950list"));
  183. //건진분류(종건/일건), 건진상태구분, 계약종류
  184. // zbcfGetCodeList(new Array("A0113"), new Array("/root/init/baseinfo/contypelst"));
  185. // submit("TRZBC00101");
  186. }
  187. /**
  188. * 계약정보리스트 조회
  189. * bMode : true=> 계약기간별 업체코드/업체명별 조회, false => 해당 업체 코드의 전체 계약내역 조회
  190. */
  191. function fGetConInfoList(){
  192. model.removeNodeset("/root/main/contlst/item");
  193. model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd"));
  194. model.setValue("/root/send/srchhealexamflag" , fGetHealExamFlag());
  195. model.setValue("/root/send/srchcond" , "");
  196. model.setValue("/root/send/srchcmpycd" , model.getValue(ipt_srchcmpycd.attribute("ref")));
  197. model.setValue("/root/send/srchcmpynm" , model.getValue(ipt_srchcmpynm.attribute("ref")));
  198. openLoadingBar("계약정보리스트 ");
  199. submit("TRAHR00907");
  200. closeLoadingBar();
  201. }
  202. ]]>
  203. </script>
  204. </xhtml:head>
  205. <xhtml:body style="border-left-style:none; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  206. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  207. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:210px; height:14px; ">종합건강검진 결과출력</caption>
  208. </group>
  209. <group id="group5" scroll="auto" style="left:0px; top:13px; width:1195px; height:746px; ">
  210. <caption id="caption5" class="tit_2" style="left:4px; top:148px; width:151px; height:13px; ">대상자 조회</caption>
  211. <line id="line3" class="line_1" style="x1:0px; y1:164px; x2:1195px; y2:164px; "/>
  212. <datagrid id="grd_reprordlist" nodeset="/root/main/reprordlist/item" autoresize="true" caption="건진분류^건진상세분류^예약일시^예약번호^^검진일자^상담일자^등록번호^성명^주민등록번호^성별^나이^사업장명^패키지명^판정의^위선택^선택검사^resultnot" colsep="^" colwidth="40, 40, 40, 40, 25, 80, 80, 70, 70, 100, 45, 80, 80, 100, 70, 90, 240, 320" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:170px; width:1195px; height:540px; ">
  213. <col ref="healexamflag" visibility="hidden"/>
  214. <col ref="healexamdetlflag" visibility="hidden"/>
  215. <col ref="rsrvdd" visibility="hidden"/>
  216. <col ref="rsrvno" visibility="hidden"/>
  217. <col checkvalue="Y,N" ref="check" type="checkbox"/>
  218. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  219. <col ref="rsltcnstrsrvdd" format="yyyy-mm-dd" style="text-align:center; "/>
  220. <col ref="pid" style="text-align:center; "/>
  221. <col ref="hngnm" style="text-align:center; "/>
  222. <col ref="rrgstno" style="text-align:center; "/>
  223. <col ref="sex" visibility="hidden" style="text-align:center; "/>
  224. <col ref="age" visibility="hidden" style="text-align:center; "/>
  225. <col ref="cmpynm" visibility="hidden" style="text-align:center; "/>
  226. <col ref="pkgnm" visibility="hidden" style="text-align:center; "/>
  227. <col ref="judgdrnm" style="text-align:center; "/>
  228. <col ref="choiflag" style="text-align:center; "/>
  229. <col ref="bundlecd" style="text-align:left; "/>
  230. <col ref="resultnot" style="text-align:left; "/>
  231. </datagrid>
  232. <group id="group2" style="left:0px; top:10px; width:1192px; height:130px; vertical-align:top; ">
  233. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:1px; top:0px; width:1191px; height:125px; "/>
  234. <caption id="caption10" class="search_name" style="left:9px; top:8px; width:91px; height:17px; ">건진기간 :</caption>
  235. <input id="ipt_srchfromdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:96px; top:8px; width:100px; height:19px; "/>
  236. <input id="ipt_srchtodd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:222px; top:8px; width:100px; height:19px; "/>
  237. <line id="line5" class="line_4" style="x1:1116px; y1:7px; x2:1116px; y2:118px; "/>
  238. <caption id="caption13" class="search_name" style="left:334px; top:8px; width:86px; height:17px; ">환자검색 :</caption>
  239. <caption id="caption14" class="search_n_b" style="left:205px; top:10px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  240. <input id="ipt_pid" ref="/root/send/srchpid" class="input_search" style="left:421px; top:8px; width:100px; height:19px; ">
  241. <script type="javascript" ev:event="onkeyup">
  242. <![CDATA[
  243. inputEnterKey("btn_search","DOMActivate");
  244. ]]>
  245. </script>
  246. </input>
  247. <button id="btn_selpat" class="icon_search" style="left:526px; top:8px; width:16px; height:16px; ">
  248. <caption/>
  249. <script type="javascript" ev:event="DOMActivate">
  250. <![CDATA[
  251. fSearchPatInfo("SMAHR00900", "pnm","" , "N","", ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
  252. if( model.getValue( ipt_pid.attribute("ref")) != "" ){
  253. fGetPrntPatList();
  254. }
  255. ]]>
  256. </script>
  257. </button>
  258. <input id="ipt_pnm" ref="/root/send/srchpnm" class="input_search" style="left:547px; top:8px; width:100px; height:19px; "/>
  259. <input id="ipt_srchcmpycd" ref="/root/send/srchcmpycd" class="input_search" imemode="disabled" _chartype="upper" style="left:721px; top:8px; width:100px; height:19px; "/>
  260. <button id="btn_selcmpycd" class="icon_search" style="left:826px; top:8px; width:16px; height:16px; ">
  261. <caption/>
  262. <script type="javascript" ev:event="DOMActivate">
  263. <![CDATA[
  264. fGetComnCd("SMAHR00900", "08" , "nm", ipt_srchcmpynm.currentText ,ipt_srchcmpycd.attribute("ref"), ipt_srchcmpynm.attribute("ref"));
  265. if( ipt_srchcmpycd.currentText != "" ) fGetConInfoList();
  266. ]]>
  267. </script>
  268. </button>
  269. <input id="ipt_srchcmpynm" ref="/root/send/srchcmpynm2" class="input_search" disabled="true" style="left:847px; top:8px; width:100px; height:19px; "/>
  270. <button id="btn_search" class="btn1_letter2" style="left:1127px; top:37px; width:56px; height:22px; ">
  271. <caption>조회</caption>
  272. <script type="javascript" ev:event="DOMActivate">
  273. <![CDATA[
  274. fGetPrntPatList();
  275. ]]>
  276. </script>
  277. </button>
  278. <caption id="caption1" class="search_name" style="left:659px; top:8px; width:88px; height:17px; ">단체 :</caption>
  279. <select id="chbx_etccd" ref="/root/main/etccd" overflow="visible" appearance="full" cols="7" direction="acrossdown" style="left:10px; top:35px; width:1030px; height:85px; border-style:none; ">
  280. <choices>
  281. <itemset nodeset="/root/init/etclst/item">
  282. <label ref="etcdetlnm"/>
  283. <value ref="etccd"/>
  284. </itemset>
  285. </choices>
  286. </select>
  287. <button id="btn_allselt" class="btn2_letter4" style="left:1045px; top:37px; width:64px; height:19px; ">
  288. <caption>전체선택</caption>
  289. <script type="javascript" ev:event="DOMActivate">
  290. <![CDATA[
  291. var etccd = "";
  292. for(var i=1; i<=getNodesetCount("/root/init/etclst/item"); i++){
  293. etccd = etccd + " " + model.getValue("/root/init/etclst/item["+ i +"]/etccd");
  294. }
  295. if(btn_allselt.attribute("text") == "전체선택" ){
  296. model.setValue("/root/main/etccd", etccd);
  297. btn_allselt.attribute("text") = "전체해제";
  298. }else{
  299. model.setValue("/root/main/etccd", "");
  300. btn_allselt.attribute("text") = "전체선택";
  301. }
  302. model.refresh();
  303. ]]>
  304. </script>
  305. </button>
  306. </group>
  307. </group>
  308. <group id="group3" style="left:0px; top:758px; width:1195px; height:26px; ">
  309. <button id="button2" class="btn4_letter4" style="left:922px; top:2px; width:80px; height:22px; ">
  310. <caption>엑셀저장</caption>
  311. <script type="javascript" ev:event="DOMActivate">
  312. <![CDATA[
  313. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  314. grd_reprordlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  315. ]]>
  316. </script>
  317. </button>
  318. <button id="button1" class="btn4_letter5" style="left:1007px; top:2px; width:92px; height:22px; ">
  319. <caption>대상자 출력</caption>
  320. <script type="javascript" ev:event="DOMActivate">
  321. <![CDATA[
  322. model.resetInstanceNode("/root/rexprnt/reprordlist/item");
  323. var row = getNodesetCount("/root/main/reprordlist/item");
  324. var idx = 1;
  325. if(row > 0){
  326. for(var i=1; i<=row; i++){
  327. model.makeNode("/root/rexprnt/reprordlist/item[" + idx + "]");
  328. model.copyNode("/root/rexprnt/reprordlist/item[" + idx + "]", "/root/main/reprordlist/item["+ i +"]");
  329. idx++;
  330. }
  331. }
  332. exeReportPreview("RPAHR00801", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
  333. model.refresh();
  334. ]]>
  335. </script>
  336. </button>
  337. <button id="btn_prnt" class="btn4_letter5" style="left:1102px; top:2px; width:92px; height:22px; ">
  338. <caption>결과지 출력</caption>
  339. <script type="javascript" ev:event="DOMActivate">
  340. <![CDATA[
  341. model.resetInstanceNode("/root/rexprnt/viewinfo");
  342. model.removeNodeset("/root/rexprnt/baseinfo");
  343. model.removeNodeset("/root/rexprnt/bloodinfo");
  344. model.removeNodeset("/root/rexprnt/urintinfo");
  345. model.removeNodeset("/root/rexprnt/Seruminfo");
  346. model.removeNodeset("/root/rexprnt/lfinfo");
  347. model.removeNodeset("/root/rexprnt/ekginfo");
  348. model.removeNodeset("/root/rexprnt/digorgninfo");
  349. model.removeNodeset("/root/rexprnt/echoinfo");
  350. model.removeNodeset("/root/rexprnt/brestinfo");
  351. model.removeNodeset("/root/rexprnt/wombinfo");
  352. model.removeNodeset("/root/rexprnt/brstinfo");
  353. model.removeNodeset("/root/rexprnt/bprcsninfo");
  354. model.removeNodeset("/root/rexprnt/cardiacinfo");
  355. model.removeNodeset("/root/rexprnt/maleprcsninfo");
  356. model.removeNodeset("/root/rexprnt/fmaleprcsninfo");
  357. model.removeNodeset("/root/rexprnt/petctinfo");
  358. model.removeNodeset("/root/rexprnt/largelntesinfo");
  359. var mainCnt = getNodesetCount("/root/main/reprordlist/item");
  360. if(mainCnt > 0){
  361. //바코드기의 데이터 인식이 빠르게 안되서 임의로 화면을 추가함으로 시간늘리기!!
  362. modal("SPMNZ00300", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  363. for(var e=1; e<=mainCnt; e++){
  364. //선택된 대상자들만
  365. if(model.getValue("/root/main/reprordlist/item["+ e +"]/check") == "Y"){
  366. if(model.getValue("/root/main/etccd") != ""){
  367. model.makeNode("/root/send/srchreprordlist/item");
  368. model.copyNode("/root/send/srchreprordlist/item", "/root/main/reprordlist/item["+ e +"]");
  369. model.makeNode("/root/send/srchreprordlist/item/etccd");
  370. model.setValue("/root/send/srchreprordlist/item/etccd", model.getValue("/root/main/etccd"));
  371. if(submit("TRAHR00915") == false) exit;
  372. var temp = "";
  373. var etccd = "";
  374. var etccd_array = new Array();
  375. var etccd_len = 0;
  376. etccd = model.getValue("/root/main/etccd");
  377. etccd_array = etccd.split(" P");
  378. for(var b=1; b<=etccd_array.length; b++){
  379. for(var i=0; i<=etccd_array.length-1; i++){
  380. if(etccd_array[i].substring(0, 1) == "P"){
  381. etccd_array[i] = etccd_array[i].substring(1, 3);
  382. }
  383. temp = "";
  384. if(etccd_array[i+1] < etccd_array[i]){
  385. temp = etccd_array[i];
  386. etccd_array[i] = etccd_array[i+1];
  387. etccd_array[i+1] = temp;
  388. i = 0;
  389. }
  390. }
  391. }
  392. for(var i=0; i<=etccd_array.length-1; i++){
  393. //P00 표지
  394. if(etccd_array[i] == "00"){
  395. var instcd = getUserInfo("dutplceinstcd");
  396. if(instcd == "031"){
  397. exeReportPreview("RPAHR00907", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //표지_본원
  398. // exeReportPreview("RPAHR00907", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //표지_본원
  399. }else if(instcd == "032"){
  400. exeReportPreview("RPAHR00933", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //표지_칠곡
  401. // exeReportPreview("RPAHR00933", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //표지_칠곡
  402. }
  403. }
  404. //P01 종합소견
  405. if(etccd_array[i] == "01"){
  406. var viewCnt = getNodesetCount("/root/main1/reprordsrch/viewinfo");
  407. if(viewCnt > 0){
  408. var ordt = model.getValue("/root/main1/reprordsrch/coverinfo/orddd");
  409. var idate = new Date();
  410. var sum_ordt = "";
  411. if(ordt != ""){
  412. idate = ordt.toDate();
  413. sum_ordt = idate.getAddDate(1, 'Y').getDateFormat();
  414. }
  415. model.setValue("/root/rexprnt/viewinfo/pid" , model.getValue("/root/main1/reprordsrch/coverinfo/pid"));
  416. model.setValue("/root/rexprnt/viewinfo/hngnm" , model.getValue("/root/main1/reprordsrch/coverinfo/hngnm"));
  417. model.setValue("/root/rexprnt/viewinfo/orddd" , model.getValue("/root/main1/reprordsrch/coverinfo/orddd"));
  418. model.setValue("/root/rexprnt/viewinfo/drnm" , model.getValue("/root/main1/reprordsrch/coverinfo/drnm"));
  419. model.setValue("/root/rexprnt/viewinfo/rsrvdd" , model.getValue("/root/main1/reprordsrch/coverinfo/rsrvdd"));
  420. model.setValue("/root/rexprnt/viewinfo/drlicnsno" , model.getValue("/root/main1/reprordsrch/coverinfo/drlicnsno"));
  421. model.setValue("/root/rexprnt/viewinfo/rrgstno1" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno1"));
  422. model.setValue("/root/rexprnt/viewinfo/rrgstno2" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno2"));
  423. for(var j=1; j<=viewCnt; j++){
  424. if(model.getValue("/root/main1/reprordsrch/viewinfo["+ j + "]/etcdetlcd") == "P01001" ){
  425. model.setValue("/root/rexprnt/viewinfo/etcdetlcd1" , model.getValue("/root/main1/reprordsrch/viewinfo["+ j + "]/etcdetlcd"));
  426. model.setValue("/root/rexprnt/viewinfo/etcdetlnm1" , model.getValue("/root/main1/reprordsrch/viewinfo["+ j + "]/etcdetlnm"));
  427. model.setValue("/root/rexprnt/viewinfo/text1" , model.getValue("/root/main1/reprordsrch/viewinfo["+ j + "]/text"));
  428. }
  429. if(model.getValue("/root/main1/reprordsrch/viewinfo["+ j + "]/etcdetlcd") == "P01999" ){
  430. model.setValue("/root/rexprnt/viewinfo/etcdetlcd2" , model.getValue("/root/main1/reprordsrch/viewinfo["+ j + "]/etcdetlcd"));
  431. model.setValue("/root/rexprnt/viewinfo/etcdetlnm2" , model.getValue("/root/main1/reprordsrch/viewinfo["+ j + "]/etcdetlnm"));
  432. model.setValue("/root/rexprnt/viewinfo/text2" , model.getValue("/root/main1/reprordsrch/viewinfo["+ j + "]/text"));
  433. }
  434. }
  435. exeReportPreview("RPAHR00908", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //종합소견
  436. // exeReportPreview("RPAHR00908", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //종합소견
  437. }
  438. }
  439. //P02 기초검사
  440. if(etccd_array[i] == "02"){
  441. model.makeValue("/root/rexprnt/baseinfo/pid" , model.getValue("/root/main1/reprordsrch/coverinfo/pid"));
  442. model.makeValue("/root/rexprnt/baseinfo/hngnm" , model.getValue("/root/main1/reprordsrch/coverinfo/hngnm"));
  443. model.makeValue("/root/rexprnt/baseinfo/orddd" , model.getValue("/root/main1/reprordsrch/coverinfo/orddd"));
  444. model.makeValue("/root/rexprnt/baseinfo/drnm" , model.getValue("/root/main1/reprordsrch/coverinfo/drnm"));
  445. model.makeValue("/root/rexprnt/baseinfo/rsrvdd" , model.getValue("/root/main1/reprordsrch/coverinfo/rsrvdd"));
  446. model.makeValue("/root/rexprnt/baseinfo/drlicnsno" , model.getValue("/root/main1/reprordsrch/coverinfo/drlicnsno"));
  447. model.makeValue("/root/rexprnt/baseinfo/rrgstno1" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno1"));
  448. model.makeValue("/root/rexprnt/baseinfo/rrgstno2" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno2"));
  449. var Cnt = cmb_p02.length;
  450. for(var a=1; a<=Cnt; a++){
  451. model.makeValue("/root/rexprnt/baseinfo/title" + a , model.getValue("root/main1/reprordsrch/baseinfolst["+ a +"]/etcdetlnm"));
  452. model.makeValue("/root/rexprnt/baseinfo/unit" + a , model.getValue("root/main1/reprordsrch/baseinfolst["+ a +"]/rsltunit"));
  453. model.makeValue("/root/rexprnt/baseinfo/scop" + a , model.getValue("root/main1/reprordsrch/baseinfolst["+ a +"]/stndval"));
  454. model.makeValue("/root/rexprnt/baseinfo/curntrslt" + a , model.getValue("root/main1/reprordsrch/baseinfolst["+ a +"]/result1"));
  455. model.makeValue("/root/rexprnt/baseinfo/bfrslt" + a , model.getValue("root/main1/reprordsrch/baseinfolst["+ a +"]/result2"));
  456. model.makeValue("/root/rexprnt/baseinfo/bfbfrslt" + a , model.getValue("root/main1/reprordsrch/baseinfolst["+ a +"]/result3"));
  457. model.makeValue("/root/rexprnt/baseinfo/gbn1-" + a , model.getValue("root/main1/reprordsrch/baseinfolst["+ a +"]/gbn1"));
  458. model.makeValue("/root/rexprnt/baseinfo/gbn2-" + a , model.getValue("root/main1/reprordsrch/baseinfolst["+ a +"]/gbn2"));
  459. model.makeValue("/root/rexprnt/baseinfo/gbn3-" + a , model.getValue("root/main1/reprordsrch/baseinfolst["+ a +"]/gbn3"));
  460. }
  461. exeReportPreview("RPAHR00909", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P02 기초검사
  462. // exeReportPreview("RPAHR00909", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //P02 기초검사
  463. }
  464. //P03 혈액관련
  465. if(etccd_array[i] == "03"){
  466. model.makeValue("/root/rexprnt/bloodinfo/pid" , model.getValue("/root/main1/reprordsrch/coverinfo/pid"));
  467. model.makeValue("/root/rexprnt/bloodinfo/hngnm" , model.getValue("/root/main1/reprordsrch/coverinfo/hngnm"));
  468. model.makeValue("/root/rexprnt/bloodinfo/orddd" , model.getValue("/root/main1/reprordsrch/coverinfo/orddd"));
  469. model.makeValue("/root/rexprnt/bloodinfo/drnm" , model.getValue("/root/main1/reprordsrch/coverinfo/drnm"));
  470. model.makeValue("/root/rexprnt/bloodinfo/rsrvdd" , model.getValue("/root/main1/reprordsrch/coverinfo/rsrvdd"));
  471. model.makeValue("/root/rexprnt/bloodinfo/drlicnsno" , model.getValue("/root/main1/reprordsrch/coverinfo/drlicnsno"));
  472. model.makeValue("/root/rexprnt/bloodinfo/rrgstno1" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno1"));
  473. model.makeValue("/root/rexprnt/bloodinfo/rrgstno2" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno2"));
  474. var Cnt = cmb_p03.length;
  475. for(var a=1; a<=Cnt; a++){
  476. model.makeValue("/root/rexprnt/bloodinfo/title" + a , model.getValue("root/main1/reprordsrch/bloodinfolst["+ a +"]/etcdetlnm"));
  477. model.makeValue("/root/rexprnt/bloodinfo/unit" + a , model.getValue("root/main1/reprordsrch/bloodinfolst["+ a +"]/rsltunit"));
  478. model.makeValue("/root/rexprnt/bloodinfo/scop" + a , model.getValue("root/main1/reprordsrch/bloodinfolst["+ a +"]/stndval"));
  479. model.makeValue("/root/rexprnt/bloodinfo/curntrslt" + a , model.getValue("root/main1/reprordsrch/bloodinfolst["+ a +"]/result1"));
  480. model.makeValue("/root/rexprnt/bloodinfo/bfrslt" + a , model.getValue("root/main1/reprordsrch/bloodinfolst["+ a +"]/result2"));
  481. model.makeValue("/root/rexprnt/bloodinfo/bfbfrslt" + a , model.getValue("root/main1/reprordsrch/bloodinfolst["+ a +"]/result3"));
  482. model.makeValue("/root/rexprnt/bloodinfo/gbn1-" + a , model.getValue("root/main1/reprordsrch/bloodinfolst["+ a +"]/gbn1"));
  483. model.makeValue("/root/rexprnt/bloodinfo/gbn2-" + a , model.getValue("root/main1/reprordsrch/bloodinfolst["+ a +"]/gbn2"));
  484. model.makeValue("/root/rexprnt/bloodinfo/gbn3-" + a , model.getValue("root/main1/reprordsrch/bloodinfolst["+ a +"]/gbn3"));
  485. }
  486. //2016/11/21 혈액관련검사를 분기처리(이정택)
  487. //칠곡 혈액관련 출력물이 언제 다 쓸지 몰라서 기준자료로 처리함
  488. var startdd = model.getValue("/root/init/baseinfo/S950list/S950[cdid != '']/cdid");
  489. var today = getCurrentDate();
  490. if(parseInt(today)>=parseInt(startdd)){
  491. if(getUserInfo("dutplceinstcd") == "031"){
  492. exeReportPreview("RPAHR00927", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P03 혈액관련Before
  493. }else if(getUserInfo("dutplceinstcd") == "032"){
  494. exeReportPreview("RPAHR00934", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P03 혈액관련Before
  495. }else{
  496. exeReportPreview("RPAHR00927", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P03 혈액관련Before
  497. }
  498. }else{
  499. exeReportPreview("RPAHR00927", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P03 혈액관련Before
  500. }
  501. //2016/11/21 혈액관련검사를 분기처리(이정택)
  502. // exeReportPreview("RPAHR00910", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P03 혈액관련
  503. // exeReportPreview("RPAHR00910", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //P03 혈액관련
  504. }
  505. //P04 비뇨및생식기계관련
  506. if(etccd_array[i] == "04"){
  507. //기본정보 셋팅
  508. model.makeValue("/root/rexprnt/urintinfo/pid" , model.getValue("/root/main1/reprordsrch/coverinfo/pid"));
  509. model.makeValue("/root/rexprnt/urintinfo/hngnm" , model.getValue("/root/main1/reprordsrch/coverinfo/hngnm"));
  510. model.makeValue("/root/rexprnt/urintinfo/orddd" , model.getValue("/root/main1/reprordsrch/coverinfo/orddd"));
  511. model.makeValue("/root/rexprnt/urintinfo/drnm" , model.getValue("/root/main1/reprordsrch/coverinfo/drnm"));
  512. model.makeValue("/root/rexprnt/urintinfo/rsrvdd" , model.getValue("/root/main1/reprordsrch/coverinfo/rsrvdd"));
  513. model.makeValue("/root/rexprnt/urintinfo/drlicnsno" , model.getValue("/root/main1/reprordsrch/coverinfo/drlicnsno"));
  514. model.makeValue("/root/rexprnt/urintinfo/rrgstno1" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno1"));
  515. model.makeValue("/root/rexprnt/urintinfo/rrgstno2" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno2"));
  516. var Cnt = cmb_p04.length;
  517. for(var a=1; a<=Cnt; a++){
  518. model.makeValue("/root/rexprnt/urintinfo/title" + a , model.getValue("root/main1/reprordsrch/urintinfolst["+ a +"]/etcdetlnm"));
  519. model.makeValue("/root/rexprnt/urintinfo/unit" + a , model.getValue("root/main1/reprordsrch/urintinfolst["+ a +"]/rsltunit"));
  520. model.makeValue("/root/rexprnt/urintinfo/scop" + a , model.getValue("root/main1/reprordsrch/urintinfolst["+ a +"]/stndval"));
  521. model.makeValue("/root/rexprnt/urintinfo/curntrslt" + a , model.getValue("root/main1/reprordsrch/urintinfolst["+ a +"]/result1"));
  522. model.makeValue("/root/rexprnt/urintinfo/bfrslt" + a , model.getValue("root/main1/reprordsrch/urintinfolst["+ a +"]/result2"));
  523. model.makeValue("/root/rexprnt/urintinfo/bfbfrslt" + a , model.getValue("root/main1/reprordsrch/urintinfolst["+ a +"]/result3"));
  524. model.makeValue("/root/rexprnt/urintinfo/gbn1-" + a , model.getValue("root/main1/reprordsrch/urintinfolst["+ a +"]/gbn1"));
  525. model.makeValue("/root/rexprnt/urintinfo/gbn2-" + a , model.getValue("root/main1/reprordsrch/urintinfolst["+ a +"]/gbn2"));
  526. model.makeValue("/root/rexprnt/urintinfo/gbn3-" + a , model.getValue("root/main1/reprordsrch/urintinfolst["+ a +"]/gbn3"));
  527. }
  528. //2017/06/09 비뇨 및 생식기계관련 검사 분기처리(이정택)
  529. var startdd = model.getValue("/root/init/baseinfo/S950list/S950[cdid != '']/cdid");
  530. var today = getCurrentDate();
  531. if(parseInt(today)>=parseInt(startdd)){
  532. if(getUserInfo("dutplceinstcd") == "031"){
  533. exeReportPreview("RPAHR00948", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P04 비뇨및생식기계관련Before
  534. }else if(getUserInfo("dutplceinstcd") == "032"){
  535. exeReportPreview("RPAHR00928", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P04 비뇨및생식기계관련Before
  536. }else{
  537. exeReportPreview("RPAHR00928", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P04 비뇨및생식기계관련Before
  538. }
  539. }else{
  540. exeReportPreview("RPAHR00928", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P04 비뇨및생식기계관련Before
  541. }
  542. //2017/06/09 비뇨 및 생식기계관련 검사 분기처리(이정택)
  543. //exeReportPreview("RPAHR00928", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P04 비뇨및생식기계관련Before
  544. // exeReportPreview("RPAHR00911", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P04 비뇨및생식기계관련
  545. // exeReportPreview("RPAHR00928", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //P04 비뇨및생식기계관련
  546. }
  547. //P05 혈청 및 갑상선
  548. if(etccd_array[i] == "05"){
  549. //기본정보 셋팅
  550. model.makeValue("/root/rexprnt/Seruminfo/pid" , model.getValue("/root/main1/reprordsrch/coverinfo/pid"));
  551. model.makeValue("/root/rexprnt/Seruminfo/hngnm" , model.getValue("/root/main1/reprordsrch/coverinfo/hngnm"));
  552. model.makeValue("/root/rexprnt/Seruminfo/orddd" , model.getValue("/root/main1/reprordsrch/coverinfo/orddd"));
  553. model.makeValue("/root/rexprnt/Seruminfo/drnm" , model.getValue("/root/main1/reprordsrch/coverinfo/drnm"));
  554. model.makeValue("/root/rexprnt/Seruminfo/rsrvdd" , model.getValue("/root/main1/reprordsrch/coverinfo/rsrvdd"));
  555. model.makeValue("/root/rexprnt/Seruminfo/drlicnsno" , model.getValue("/root/main1/reprordsrch/coverinfo/drlicnsno"));
  556. model.makeValue("/root/rexprnt/Seruminfo/rrgstno1" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno1"));
  557. model.makeValue("/root/rexprnt/Seruminfo/rrgstno2" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno2"));
  558. var Cnt = cmb_p05.length;
  559. for(var a=1; a<=Cnt; a++){
  560. model.makeValue("/root/rexprnt/Seruminfo/title" + a , model.getValue("root/main1/reprordsrch/Seruminfolst["+ a +"]/etcdetlnm"));
  561. model.makeValue("/root/rexprnt/Seruminfo/unit" + a , model.getValue("root/main1/reprordsrch/Seruminfolst["+ a +"]/rsltunit"));
  562. model.makeValue("/root/rexprnt/Seruminfo/scop" + a , model.getValue("root/main1/reprordsrch/Seruminfolst["+ a +"]/stndval"));
  563. model.makeValue("/root/rexprnt/Seruminfo/curntrslt" + a , model.getValue("root/main1/reprordsrch/Seruminfolst["+ a +"]/result1"));
  564. model.makeValue("/root/rexprnt/Seruminfo/bfrslt" + a , model.getValue("root/main1/reprordsrch/Seruminfolst["+ a +"]/result2"));
  565. model.makeValue("/root/rexprnt/Seruminfo/bfbfrslt" + a , model.getValue("root/main1/reprordsrch/Seruminfolst["+ a +"]/result3"));
  566. model.makeValue("/root/rexprnt/Seruminfo/gbn1-" + a , model.getValue("root/main1/reprordsrch/Seruminfolst["+ a +"]/gbn1"));
  567. model.makeValue("/root/rexprnt/Seruminfo/gbn2-" + a , model.getValue("root/main1/reprordsrch/Seruminfolst["+ a +"]/gbn2"));
  568. model.makeValue("/root/rexprnt/Seruminfo/gbn3-" + a , model.getValue("root/main1/reprordsrch/Seruminfolst["+ a +"]/gbn3"));
  569. }
  570. exeReportPreview("RPAHR00929", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P05 혈청 및 갑상선Before
  571. // exeReportPreview("RPAHR00912", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P05 혈청 및 갑상선
  572. // exeReportPreview("RPAHR00929", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //P05 혈청 및 갑상선
  573. }
  574. //P06 간기능
  575. if(etccd_array[i] == "06"){
  576. //기본정보 셋팅
  577. model.makeValue("/root/rexprnt/lfinfo/pid" , model.getValue("/root/main1/reprordsrch/coverinfo/pid"));
  578. model.makeValue("/root/rexprnt/lfinfo/hngnm" , model.getValue("/root/main1/reprordsrch/coverinfo/hngnm"));
  579. model.makeValue("/root/rexprnt/lfinfo/orddd" , model.getValue("/root/main1/reprordsrch/coverinfo/orddd"));
  580. model.makeValue("/root/rexprnt/lfinfo/drnm" , model.getValue("/root/main1/reprordsrch/coverinfo/drnm"));
  581. model.makeValue("/root/rexprnt/lfinfo/rsrvdd" , model.getValue("/root/main1/reprordsrch/coverinfo/rsrvdd"));
  582. model.makeValue("/root/rexprnt/lfinfo/drlicnsno" , model.getValue("/root/main1/reprordsrch/coverinfo/drlicnsno"));
  583. model.makeValue("/root/rexprnt/lfinfo/rrgstno1" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno1"));
  584. model.makeValue("/root/rexprnt/lfinfo/rrgstno2" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno2"));
  585. var Cnt = cmb_p06.length;
  586. for(var a=1; a<=Cnt; a++){
  587. model.makeValue("/root/rexprnt/lfinfo/title" + a , model.getValue("root/main1/reprordsrch/lfinfolst["+ a +"]/etcdetlnm"));
  588. model.makeValue("/root/rexprnt/lfinfo/unit" + a , model.getValue("root/main1/reprordsrch/lfinfolst["+ a +"]/rsltunit"));
  589. model.makeValue("/root/rexprnt/lfinfo/scop" + a , model.getValue("root/main1/reprordsrch/lfinfolst["+ a +"]/stndval"));
  590. model.makeValue("/root/rexprnt/lfinfo/curntrslt" + a , model.getValue("root/main1/reprordsrch/lfinfolst["+ a +"]/result1"));
  591. model.makeValue("/root/rexprnt/lfinfo/bfrslt" + a , model.getValue("root/main1/reprordsrch/lfinfolst["+ a +"]/result2"));
  592. model.makeValue("/root/rexprnt/lfinfo/bfbfrslt" + a , model.getValue("root/main1/reprordsrch/lfinfolst["+ a +"]/result3"));
  593. model.makeValue("/root/rexprnt/lfinfo/gbn1-" + a , model.getValue("root/main1/reprordsrch/lfinfolst["+ a +"]/gbn1"));
  594. model.makeValue("/root/rexprnt/lfinfo/gbn2-" + a , model.getValue("root/main1/reprordsrch/lfinfolst["+ a +"]/gbn2"));
  595. model.makeValue("/root/rexprnt/lfinfo/gbn3-" + a , model.getValue("root/main1/reprordsrch/lfinfolst["+ a +"]/gbn3"));
  596. }
  597. exeReportPreview("RPAHR00930", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P06 간기능Before
  598. // exeReportPreview("RPAHR00913", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P06 간기능
  599. // exeReportPreview("RPAHR00913", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //P06 간기능
  600. }
  601. //P07 심전도
  602. if(etccd_array[i] == "07"){
  603. //기본정보 셋팅
  604. model.makeValue("/root/rexprnt/ekginfo/pid" , model.getValue("/root/main1/reprordsrch/coverinfo/pid"));
  605. model.makeValue("/root/rexprnt/ekginfo/hngnm" , model.getValue("/root/main1/reprordsrch/coverinfo/hngnm"));
  606. model.makeValue("/root/rexprnt/ekginfo/orddd" , model.getValue("/root/main1/reprordsrch/coverinfo/orddd"));
  607. model.makeValue("/root/rexprnt/ekginfo/drnm" , model.getValue("/root/main1/reprordsrch/coverinfo/drnm"));
  608. model.makeValue("/root/rexprnt/ekginfo/rsrvdd" , model.getValue("/root/main1/reprordsrch/coverinfo/rsrvdd"));
  609. model.makeValue("/root/rexprnt/ekginfo/drlicnsno" , model.getValue("/root/main1/reprordsrch/coverinfo/drlicnsno"));
  610. model.makeValue("/root/rexprnt/ekginfo/rrgstno1" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno1"));
  611. model.makeValue("/root/rexprnt/ekginfo/rrgstno2" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno2"));
  612. var Cnt = cmb_p07.length;
  613. for(var a=1; a<=Cnt; a++){
  614. model.makeValue("/root/rexprnt/ekginfo/title" + a , model.getValue("root/main1/reprordsrch/ekginfolst["+ a +"]/etcdetlnm"));
  615. model.makeValue("/root/rexprnt/ekginfo/unit" + a , model.getValue("root/main1/reprordsrch/ekginfolst["+ a +"]/rsltunit"));
  616. model.makeValue("/root/rexprnt/ekginfo/scop" + a , model.getValue("root/main1/reprordsrch/ekginfolst["+ a +"]/stndval"));
  617. model.makeValue("/root/rexprnt/ekginfo/curntrslt" + a , model.getValue("root/main1/reprordsrch/ekginfolst["+ a +"]/result1"));
  618. model.makeValue("/root/rexprnt/ekginfo/bfrslt" + a , model.getValue("root/main1/reprordsrch/ekginfolst["+ a +"]/result2"));
  619. model.makeValue("/root/rexprnt/ekginfo/bfbfrslt" + a , model.getValue("root/main1/reprordsrch/ekginfolst["+ a +"]/result3"));
  620. }
  621. //2017/06/09 심전도 검사 분기처리(이정택)
  622. var startdd = model.getValue("/root/init/baseinfo/S950list/S950[cdid != '']/cdid");
  623. var today = getCurrentDate();
  624. if(parseInt(today)>=parseInt(startdd)){
  625. if(getUserInfo("dutplceinstcd") == "031"){
  626. exeReportPreview("RPAHR00944", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P07 심전도
  627. }else if(getUserInfo("dutplceinstcd") == "032"){
  628. exeReportPreview("RPAHR00914", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P07 심전도
  629. }else{
  630. exeReportPreview("RPAHR00914", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P07 심전도
  631. }
  632. }else{
  633. exeReportPreview("RPAHR00914", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P07 심전도
  634. }
  635. //2017/06/09 비뇨 및 생식기계관련 검사 분기처리(이정택)
  636. //exeReportPreview("RPAHR00914", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P07 심전도
  637. // exeReportPreview("RPAHR00914", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //P07 심전도
  638. }
  639. //P08 소화기능
  640. if(etccd_array[i] == "08"){
  641. //기본정보 셋팅
  642. model.makeValue("/root/rexprnt/digorgninfo/pid" , model.getValue("/root/main1/reprordsrch/coverinfo/pid"));
  643. model.makeValue("/root/rexprnt/digorgninfo/hngnm" , model.getValue("/root/main1/reprordsrch/coverinfo/hngnm"));
  644. model.makeValue("/root/rexprnt/digorgninfo/orddd" , model.getValue("/root/main1/reprordsrch/coverinfo/orddd"));
  645. model.makeValue("/root/rexprnt/digorgninfo/drnm" , model.getValue("/root/main1/reprordsrch/coverinfo/drnm"));
  646. model.makeValue("/root/rexprnt/digorgninfo/rsrvdd" , model.getValue("/root/main1/reprordsrch/coverinfo/rsrvdd"));
  647. model.makeValue("/root/rexprnt/digorgninfo/drlicnsno" , model.getValue("/root/main1/reprordsrch/coverinfo/drlicnsno"));
  648. model.makeValue("/root/rexprnt/digorgninfo/rrgstno1" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno1"));
  649. model.makeValue("/root/rexprnt/digorgninfo/rrgstno2" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno2"));
  650. var Cnt = cmb_p08.length;
  651. var curntrslt = "";
  652. var bfrslt = "";
  653. var bfbfrslt = "";
  654. var curntrslt1 = "";
  655. var bfrslt1 = "";
  656. var bfbfrslt1 = "";
  657. var level1 = "";
  658. var title4 = "";
  659. var unit4 = "";
  660. var scop4 = "";
  661. var curntrslt4 = "";
  662. var bfrslt4 = "";
  663. for(var a=1; a<=Cnt; a++){
  664. if(model.getValue("root/main1/reprordsrch/digorgninfolst["+ a +"]/seq") == "001"){
  665. curntrslt = curntrslt + model.getValue("root/main1/reprordsrch/digorgninfolst["+ a +"]/result1");
  666. bfrslt = bfrslt + model.getValue("root/main1/reprordsrch/digorgninfolst["+ a +"]/result2");
  667. bfbfrslt = bfbfrslt + model.getValue("root/main1/reprordsrch/digorgninfolst["+ a +"]/result3");
  668. }else if(model.getValue("root/main1/reprordsrch/digorgninfolst["+ a +"]/seq") == "002"){
  669. model.makeValue("/root/rexprnt/digorgninfo/title" + 2 , model.getValue("root/main1/reprordsrch/digorgninfolst["+ a +"]/etcdetlnm"));
  670. model.makeValue("/root/rexprnt/digorgninfo/unit" + 2 , model.getValue("root/main1/reprordsrch/digorgninfolst["+ a +"]/rsltunit"));
  671. model.makeValue("/root/rexprnt/digorgninfo/scop" + 2 , model.getValue("root/main1/reprordsrch/digorgninfolst["+ a +"]/stndval"));
  672. model.makeValue("/root/rexprnt/digorgninfo/curntrslt" + 2 , model.getValue("root/main1/reprordsrch/digorgninfolst["+ a +"]/result1"));
  673. model.makeValue("/root/rexprnt/digorgninfo/bfrslt" + 2 , model.getValue("root/main1/reprordsrch/digorgninfolst["+ a +"]/result2"));
  674. model.makeValue("/root/rexprnt/digorgninfo/bfbfrslt" + 2 , model.getValue("root/main1/reprordsrch/digorgninfolst["+ a +"]/result3"));
  675. }else if(model.getValue("root/main1/reprordsrch/digorgninfolst["+ a +"]/seq") == "003"){
  676. if(model.getValue("root/main1/reprordsrch/digorgninfolst["+ a +"]/result1") != ""){
  677. level1 = a;
  678. }
  679. curntrslt1 = curntrslt1 + model.getValue("root/main1/reprordsrch/digorgninfolst["+ a +"]/result1");
  680. bfrslt1 = bfrslt1 + model.getValue("root/main1/reprordsrch/digorgninfolst["+ a +"]/result2");
  681. bfbfrslt1 = bfbfrslt1 + model.getValue("root/main1/reprordsrch/digorgninfolst["+ a +"]/result3");
  682. }else if(model.getValue("root/main1/reprordsrch/digorgninfolst["+ a +"]/seq") == "004"){
  683. title4 = model.getValue("root/main1/reprordsrch/digorgninfolst["+ a +"]/etcdetlnm");
  684. unit4 = model.getValue("root/main1/reprordsrch/digorgninfolst["+ a +"]/stndval");
  685. curntrslt4 = model.getValue("root/main1/reprordsrch/digorgninfolst["+ a +"]/result1");
  686. bfrslt4 = model.getValue("root/main1/reprordsrch/digorgninfolst["+ a +"]/result2");
  687. }
  688. }
  689. model.makeValue("/root/rexprnt/digorgninfo/title" + 1 , model.getValue("root/main1/reprordsrch/digorgninfolst["+ 1 +"]/etcdetlnm"));
  690. model.makeValue("/root/rexprnt/digorgninfo/unit" + 1 , model.getValue("root/main1/reprordsrch/digorgninfolst["+ 1 +"]/rsltunit"));
  691. model.makeValue("/root/rexprnt/digorgninfo/scop" + 1 , model.getValue("root/main1/reprordsrch/digorgninfolst["+ 1 +"]/stndval"));
  692. model.makeValue("/root/rexprnt/digorgninfo/curntrslt" + 1 , curntrslt);
  693. model.makeValue("/root/rexprnt/digorgninfo/bfrslt" + 1 , bfrslt);
  694. model.makeValue("/root/rexprnt/digorgninfo/bfbfrslt" + 1 , bfbfrslt);
  695. if(level1 == ""){
  696. model.makeValue("/root/rexprnt/digorgninfo/title" + 3 , model.getValue("root/main1/reprordsrch/digorgninfolst["+ 5 +"]/etcdetlnm"));
  697. model.makeValue("/root/rexprnt/digorgninfo/unit" + 3 , model.getValue("root/main1/reprordsrch/digorgninfolst["+ 5 +"]/rsltunit"));
  698. model.makeValue("/root/rexprnt/digorgninfo/scop" + 3 , model.getValue("root/main1/reprordsrch/digorgninfolst["+ 5 +"]/stndval"));
  699. }else{
  700. model.makeValue("/root/rexprnt/digorgninfo/title" + 3 , model.getValue("root/main1/reprordsrch/digorgninfolst["+ level1 +"]/etcdetlnm"));
  701. model.makeValue("/root/rexprnt/digorgninfo/unit" + 3 , model.getValue("root/main1/reprordsrch/digorgninfolst["+ level1 +"]/rsltunit"));
  702. model.makeValue("/root/rexprnt/digorgninfo/scop" + 3 , model.getValue("root/main1/reprordsrch/digorgninfolst["+ level1 +"]/stndval"));
  703. }
  704. model.makeValue("/root/rexprnt/digorgninfo/curntrslt" + 3 , curntrslt1);
  705. model.makeValue("/root/rexprnt/digorgninfo/bfrslt" + 3 , bfrslt1);
  706. model.makeValue("/root/rexprnt/digorgninfo/bfbfrslt" + 3 , bfbfrslt1);
  707. model.makeValue("/root/rexprnt/digorgninfo/title4" , title4);
  708. model.makeValue("/root/rexprnt/digorgninfo/unit4" , unit4);
  709. model.makeValue("/root/rexprnt/digorgninfo/curntrslt4" , curntrslt4);
  710. model.makeValue("/root/rexprnt/digorgninfo/bfrslt4", bfrslt4);
  711. //2017/07/27 소화기능검사 분리
  712. var startdd = model.getValue("/root/init/baseinfo/S950list/S950[cdid != '']/cdid");
  713. var today = getCurrentDate();
  714. if(parseInt(today)>=parseInt(startdd)){
  715. if(getUserInfo("dutplceinstcd") == "031"){
  716. exeReportPreview("RPAHR00941", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P08 소화기능검사
  717. }else if(getUserInfo("dutplceinstcd") == "032"){
  718. exeReportPreview("RPAHR00931", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P08 소화기능검사
  719. }else{
  720. exeReportPreview("RPAHR00931", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P08 소화기능검사
  721. }
  722. }else{
  723. exeReportPreview("RPAHR00931", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P08 소화기능검사
  724. }
  725. //2017/06/09 비뇨 및 생식기계관련 검사 분기처리(이정택)
  726. //exeReportPreview("RPAHR00931", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P08 소화기Before
  727. // exeReportPreview("RPAHR00915", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P08 소화기
  728. // exeReportPreview("RPAHR00915", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //P08 소화기
  729. }
  730. //P09 초음파
  731. if(etccd_array[i] == "09"){
  732. //기본정보 셋팅
  733. model.makeValue("/root/rexprnt/echoinfo/pid" , model.getValue("/root/main1/reprordsrch/coverinfo/pid"));
  734. model.makeValue("/root/rexprnt/echoinfo/hngnm" , model.getValue("/root/main1/reprordsrch/coverinfo/hngnm"));
  735. model.makeValue("/root/rexprnt/echoinfo/orddd" , model.getValue("/root/main1/reprordsrch/coverinfo/orddd"));
  736. model.makeValue("/root/rexprnt/echoinfo/drnm" , model.getValue("/root/main1/reprordsrch/coverinfo/drnm"));
  737. model.makeValue("/root/rexprnt/echoinfo/rsrvdd" , model.getValue("/root/main1/reprordsrch/coverinfo/rsrvdd"));
  738. model.makeValue("/root/rexprnt/echoinfo/drlicnsno" , model.getValue("/root/main1/reprordsrch/coverinfo/drlicnsno"));
  739. model.makeValue("/root/rexprnt/echoinfo/rrgstno1" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno1"));
  740. model.makeValue("/root/rexprnt/echoinfo/rrgstno2" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno2"));
  741. var Cnt = cmb_p09.length;
  742. for(var a=1; a<=Cnt; a++){
  743. model.makeValue("/root/rexprnt/echoinfo/title" + a , model.getValue("root/main1/reprordsrch/echoinfolst["+ a +"]/etcdetlnm"));
  744. model.makeValue("/root/rexprnt/echoinfo/unit" + a , model.getValue("root/main1/reprordsrch/echoinfolst["+ a +"]/rsltunit"));
  745. model.makeValue("/root/rexprnt/echoinfo/scop" + a , model.getValue("root/main1/reprordsrch/echoinfolst["+ a +"]/stndval"));
  746. model.makeValue("/root/rexprnt/echoinfo/curntrslt" + a , model.getValue("root/main1/reprordsrch/echoinfolst["+ a +"]/result1"));
  747. model.makeValue("/root/rexprnt/echoinfo/bfrslt" + a , model.getValue("root/main1/reprordsrch/echoinfolst["+ a +"]/result2"));
  748. model.makeValue("/root/rexprnt/echoinfo/bfbfrslt" + a , model.getValue("root/main1/reprordsrch/echoinfolst["+ a +"]/result3"));
  749. }
  750. exeReportPreview("RPAHR00916", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P09 초음파
  751. // exeReportPreview("RPAHR00916", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //P09 초음파
  752. }
  753. //P10 흉부x선
  754. if(etccd_array[i] == "10"){
  755. //기본정보 셋팅
  756. model.makeValue("/root/rexprnt/brestinfo/pid" , model.getValue("/root/main1/reprordsrch/coverinfo/pid"));
  757. model.makeValue("/root/rexprnt/brestinfo/hngnm" , model.getValue("/root/main1/reprordsrch/coverinfo/hngnm"));
  758. model.makeValue("/root/rexprnt/brestinfo/orddd" , model.getValue("/root/main1/reprordsrch/coverinfo/orddd"));
  759. model.makeValue("/root/rexprnt/brestinfo/drnm" , model.getValue("/root/main1/reprordsrch/coverinfo/drnm"));
  760. model.makeValue("/root/rexprnt/brestinfo/rsrvdd" , model.getValue("/root/main1/reprordsrch/coverinfo/rsrvdd"));
  761. model.makeValue("/root/rexprnt/brestinfo/drlicnsno" , model.getValue("/root/main1/reprordsrch/coverinfo/drlicnsno"));
  762. model.makeValue("/root/rexprnt/brestinfo/rrgstno1" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno1"));
  763. model.makeValue("/root/rexprnt/brestinfo/rrgstno2" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno2"));
  764. var Cnt = cmb_p10.length;
  765. for(var a=1; a<=Cnt; a++){
  766. model.makeValue("/root/rexprnt/brestinfo/title" + a , model.getValue("root/main1/reprordsrch/brestinfolst["+ a +"]/etcdetlnm"));
  767. model.makeValue("/root/rexprnt/brestinfo/unit" + a , model.getValue("root/main1/reprordsrch/brestinfolst["+ a +"]/rsltunit"));
  768. model.makeValue("/root/rexprnt/brestinfo/scop" + a , model.getValue("root/main1/reprordsrch/brestinfolst["+ a +"]/stndval"));
  769. model.makeValue("/root/rexprnt/brestinfo/curntrslt" + a , model.getValue("root/main1/reprordsrch/brestinfolst["+ a +"]/result1"));
  770. model.makeValue("/root/rexprnt/brestinfo/bfrslt" + a , model.getValue("root/main1/reprordsrch/brestinfolst["+ a +"]/result2"));
  771. model.makeValue("/root/rexprnt/brestinfo/bfbfrslt" + a , model.getValue("root/main1/reprordsrch/brestinfolst["+ a +"]/result3"));
  772. }
  773. exeReportPreview("RPAHR00917", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P10 흉부x선
  774. // exeReportPreview("RPAHR00917", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //P10 흉부x선
  775. }
  776. //P11 자궁
  777. if(etccd_array[i] == "11"){
  778. //기본정보 셋팅
  779. model.makeValue("/root/rexprnt/wombinfo/pid" , model.getValue("/root/main1/reprordsrch/coverinfo/pid"));
  780. model.makeValue("/root/rexprnt/wombinfo/hngnm" , model.getValue("/root/main1/reprordsrch/coverinfo/hngnm"));
  781. model.makeValue("/root/rexprnt/wombinfo/orddd" , model.getValue("/root/main1/reprordsrch/coverinfo/orddd"));
  782. model.makeValue("/root/rexprnt/wombinfo/drnm" , model.getValue("/root/main1/reprordsrch/coverinfo/drnm"));
  783. model.makeValue("/root/rexprnt/wombinfo/rsrvdd" , model.getValue("/root/main1/reprordsrch/coverinfo/rsrvdd"));
  784. model.makeValue("/root/rexprnt/wombinfo/drlicnsno" , model.getValue("/root/main1/reprordsrch/coverinfo/drlicnsno"));
  785. model.makeValue("/root/rexprnt/wombinfo/rrgstno1" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno1"));
  786. model.makeValue("/root/rexprnt/wombinfo/rrgstno2" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno2"));
  787. var Cnt = cmb_p11.length;
  788. for(var a=1; a<=Cnt; a++){
  789. model.makeValue("/root/rexprnt/wombinfo/title" + a , model.getValue("root/main1/reprordsrch/wombinfolst["+ a +"]/etcdetlnm"));
  790. model.makeValue("/root/rexprnt/wombinfo/unit" + a , model.getValue("root/main1/reprordsrch/wombinfolst["+ a +"]/rsltunit"));
  791. model.makeValue("/root/rexprnt/wombinfo/scop" + a , model.getValue("root/main1/reprordsrch/wombinfolst["+ a +"]/stndval"));
  792. model.makeValue("/root/rexprnt/wombinfo/curntrslt" + a , model.getValue("root/main1/reprordsrch/wombinfolst["+ a +"]/result1"));
  793. model.makeValue("/root/rexprnt/wombinfo/bfrslt" + a , model.getValue("root/main1/reprordsrch/wombinfolst["+ a +"]/result2"));
  794. model.makeValue("/root/rexprnt/wombinfo/bfbfrslt" + a , model.getValue("root/main1/reprordsrch/wombinfolst["+ a +"]/result3"));
  795. }
  796. exeReportPreview("RPAHR00918", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P11 자궁
  797. // exeReportPreview("RPAHR00918", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //P11 자궁
  798. }
  799. //P12 유방
  800. if(etccd_array[i] == "12"){
  801. //기본정보 셋팅
  802. model.makeValue("/root/rexprnt/brstinfo/pid" , model.getValue("/root/main1/reprordsrch/coverinfo/pid"));
  803. model.makeValue("/root/rexprnt/brstinfo/hngnm" , model.getValue("/root/main1/reprordsrch/coverinfo/hngnm"));
  804. model.makeValue("/root/rexprnt/brstinfo/orddd" , model.getValue("/root/main1/reprordsrch/coverinfo/orddd"));
  805. model.makeValue("/root/rexprnt/brstinfo/drnm" , model.getValue("/root/main1/reprordsrch/coverinfo/drnm"));
  806. model.makeValue("/root/rexprnt/brstinfo/rsrvdd" , model.getValue("/root/main1/reprordsrch/coverinfo/rsrvdd"));
  807. model.makeValue("/root/rexprnt/brstinfo/drlicnsno" , model.getValue("/root/main1/reprordsrch/coverinfo/drlicnsno"));
  808. model.makeValue("/root/rexprnt/brstinfo/rrgstno1" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno1"));
  809. model.makeValue("/root/rexprnt/brstinfo/rrgstno2" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno2"));
  810. var Cnt = cmb_p12.length;
  811. for(var a=1; a<=Cnt; a++){
  812. model.makeValue("/root/rexprnt/brstinfo/title" + a , model.getValue("root/main1/reprordsrch/brstinfolst["+ a +"]/etcdetlnm"));
  813. model.makeValue("/root/rexprnt/brstinfo/unit" + a , model.getValue("root/main1/reprordsrch/brstinfolst["+ a +"]/rsltunit"));
  814. model.makeValue("/root/rexprnt/brstinfo/scop" + a , model.getValue("root/main1/reprordsrch/brstinfolst["+ a +"]/stndval"));
  815. model.makeValue("/root/rexprnt/brstinfo/curntrslt" + a , model.getValue("root/main1/reprordsrch/brstinfolst["+ a +"]/result1"));
  816. model.makeValue("/root/rexprnt/brstinfo/bfrslt" + a , model.getValue("root/main1/reprordsrch/brstinfolst["+ a +"]/result2"));
  817. model.makeValue("/root/rexprnt/brstinfo/bfbfrslt" + a , model.getValue("root/main1/reprordsrch/brstinfolst["+ a +"]/result3"));
  818. }
  819. exeReportPreview("RPAHR00919", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P12 유방
  820. // exeReportPreview("RPAHR00919", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //P12 유방
  821. }
  822. //P13 뇌정밀
  823. if(etccd_array[i] == "13"){
  824. //뇌정밀이 두가지 중 한개 없애기
  825. var Cnt1 = cmb_p13.length;
  826. for(var ii=1; ii<=Cnt1; ii++){
  827. if(model.getValue("root/main1/reprordsrch/bprcsninfolst["+ ii +"]/result1") == ""){
  828. model.removeNodeset("root/main1/reprordsrch/bprcsninfolst["+ ii +"]");
  829. break;
  830. }
  831. }
  832. //기본정보 셋팅
  833. model.makeValue("/root/rexprnt/bprcsninfo/pid" , model.getValue("/root/main1/reprordsrch/coverinfo/pid"));
  834. model.makeValue("/root/rexprnt/bprcsninfo/hngnm" , model.getValue("/root/main1/reprordsrch/coverinfo/hngnm"));
  835. model.makeValue("/root/rexprnt/bprcsninfo/orddd" , model.getValue("/root/main1/reprordsrch/coverinfo/orddd"));
  836. model.makeValue("/root/rexprnt/bprcsninfo/drnm" , model.getValue("/root/main1/reprordsrch/coverinfo/drnm"));
  837. model.makeValue("/root/rexprnt/bprcsninfo/rsrvdd" , model.getValue("/root/main1/reprordsrch/coverinfo/rsrvdd"));
  838. model.makeValue("/root/rexprnt/bprcsninfo/drlicnsno" , model.getValue("/root/main1/reprordsrch/coverinfo/drlicnsno"));
  839. model.makeValue("/root/rexprnt/bprcsninfo/rrgstno1" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno1"));
  840. model.makeValue("/root/rexprnt/bprcsninfo/rrgstno2" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno2"));
  841. var curntrslt = "";
  842. var bfrslt = "";
  843. var bfbfrslt = "";
  844. var Cnt = cmb_p13.length;
  845. for(var a=1; a<=Cnt; a++){
  846. if(model.getValue("root/main1/reprordsrch/bprcsninfolst["+ a +"]/seq") == "001"){
  847. curntrslt = curntrslt + model.getValue("root/main1/reprordsrch/bprcsninfolst["+ a +"]/result1");
  848. bfrslt = bfrslt + model.getValue("root/main1/reprordsrch/bprcsninfolst["+ a +"]/result2");
  849. bfbfrslt = bfbfrslt + model.getValue("root/main1/reprordsrch/bprcsninfolst["+ a +"]/result3");
  850. }else if(model.getValue("root/main1/reprordsrch/bprcsninfolst["+ a +"]/seq") == "002"){
  851. model.makeValue("/root/rexprnt/bprcsninfo/title" + 2 , model.getValue("root/main1/reprordsrch/bprcsninfolst["+ a +"]/etcdetlnm"));
  852. model.makeValue("/root/rexprnt/bprcsninfo/unit" + 2 , model.getValue("root/main1/reprordsrch/bprcsninfolst["+ a +"]/rsltunit"));
  853. model.makeValue("/root/rexprnt/bprcsninfo/scop" + 2 , model.getValue("root/main1/reprordsrch/bprcsninfolst["+ a +"]/stndval"));
  854. model.makeValue("/root/rexprnt/bprcsninfo/curntrslt" + 2 , model.getValue("root/main1/reprordsrch/bprcsninfolst["+ a +"]/result1"));
  855. model.makeValue("/root/rexprnt/bprcsninfo/bfrslt" + 2 , model.getValue("root/main1/reprordsrch/bprcsninfolst["+ a +"]/result2"));
  856. model.makeValue("/root/rexprnt/bprcsninfo/bfbfrslt" + 2 , model.getValue("root/main1/reprordsrch/bprcsninfolst["+ a +"]/result3"));
  857. }
  858. }
  859. model.makeValue("/root/rexprnt/bprcsninfo/title" + 1 , model.getValue("root/main1/reprordsrch/bprcsninfolst["+ 1 +"]/etcdetlnm"));
  860. model.makeValue("/root/rexprnt/bprcsninfo/unit" + 1 , model.getValue("root/main1/reprordsrch/bprcsninfolst["+ 1 +"]/rsltunit"));
  861. model.makeValue("/root/rexprnt/bprcsninfo/scop" + 1 , model.getValue("root/main1/reprordsrch/bprcsninfolst["+ 1 +"]/stndval"));
  862. model.makeValue("/root/rexprnt/bprcsninfo/curntrslt" + 1 , curntrslt);
  863. model.makeValue("/root/rexprnt/bprcsninfo/bfrslt" + 1 , bfrslt);
  864. model.makeValue("/root/rexprnt/bprcsninfo/bfbfrslt" + 1 , bfbfrslt);
  865. exeReportPreview("RPAHR00920", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P13 뇌정밀
  866. // exeReportPreview("RPAHR00920", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //P13 뇌정밀
  867. }
  868. //P14 심장정밀
  869. if(etccd_array[i] == "14"){
  870. //기본정보 셋팅
  871. model.makeValue("/root/rexprnt/cardiacinfo/pid" , model.getValue("/root/main1/reprordsrch/coverinfo/pid"));
  872. model.makeValue("/root/rexprnt/cardiacinfo/hngnm" , model.getValue("/root/main1/reprordsrch/coverinfo/hngnm"));
  873. model.makeValue("/root/rexprnt/cardiacinfo/orddd" , model.getValue("/root/main1/reprordsrch/coverinfo/orddd"));
  874. model.makeValue("/root/rexprnt/cardiacinfo/drnm" , model.getValue("/root/main1/reprordsrch/coverinfo/drnm"));
  875. model.makeValue("/root/rexprnt/cardiacinfo/rsrvdd" , model.getValue("/root/main1/reprordsrch/coverinfo/rsrvdd"));
  876. model.makeValue("/root/rexprnt/cardiacinfo/drlicnsno" , model.getValue("/root/main1/reprordsrch/coverinfo/drlicnsno"));
  877. model.makeValue("/root/rexprnt/cardiacinfo/rrgstno1" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno1"));
  878. model.makeValue("/root/rexprnt/cardiacinfo/rrgstno2" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno2"));
  879. var Cnt = cmb_p14.length;
  880. for(var a=1; a<=Cnt; a++){
  881. model.makeValue("/root/rexprnt/cardiacinfo/title" + a , model.getValue("root/main1/reprordsrch/cardiacinfolst["+ a +"]/etcdetlnm"));
  882. model.makeValue("/root/rexprnt/cardiacinfo/unit" + a , model.getValue("root/main1/reprordsrch/cardiacinfolst["+ a +"]/rsltunit"));
  883. model.makeValue("/root/rexprnt/cardiacinfo/scop" + a , model.getValue("root/main1/reprordsrch/cardiacinfolst["+ a +"]/stndval"));
  884. model.makeValue("/root/rexprnt/cardiacinfo/curntrslt" + a , model.getValue("root/main1/reprordsrch/cardiacinfolst["+ a +"]/result1"));
  885. model.makeValue("/root/rexprnt/cardiacinfo/bfrslt" + a , model.getValue("root/main1/reprordsrch/cardiacinfolst["+ a +"]/result2"));
  886. model.makeValue("/root/rexprnt/cardiacinfo/bfbfrslt" + a , model.getValue("root/main1/reprordsrch/cardiacinfolst["+ a +"]/result3"));
  887. }
  888. exeReportPreview("RPAHR00921", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P14 심장정밀
  889. // exeReportPreview("RPAHR00921", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //P14 심장정밀
  890. }
  891. //P15 남성 정밀
  892. if(etccd_array[i] == "15"){
  893. //기본정보 셋팅
  894. model.makeValue("/root/rexprnt/maleprcsninfo/pid" , model.getValue("/root/main1/reprordsrch/coverinfo/pid"));
  895. model.makeValue("/root/rexprnt/maleprcsninfo/hngnm" , model.getValue("/root/main1/reprordsrch/coverinfo/hngnm"));
  896. model.makeValue("/root/rexprnt/maleprcsninfo/orddd" , model.getValue("/root/main1/reprordsrch/coverinfo/orddd"));
  897. model.makeValue("/root/rexprnt/maleprcsninfo/drnm" , model.getValue("/root/main1/reprordsrch/coverinfo/drnm"));
  898. model.makeValue("/root/rexprnt/maleprcsninfo/rsrvdd" , model.getValue("/root/main1/reprordsrch/coverinfo/rsrvdd"));
  899. model.makeValue("/root/rexprnt/maleprcsninfo/drlicnsno" , model.getValue("/root/main1/reprordsrch/coverinfo/drlicnsno"));
  900. model.makeValue("/root/rexprnt/maleprcsninfo/rrgstno1" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno1"));
  901. model.makeValue("/root/rexprnt/maleprcsninfo/rrgstno2" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno2"));
  902. var Cnt = cmb_p15.length;
  903. for(var a=1; a<=Cnt; a++){
  904. model.makeValue("/root/rexprnt/maleprcsninfo/title" + a , model.getValue("root/main1/reprordsrch/maleprcsninfolst["+ a +"]/etcdetlnm"));
  905. model.makeValue("/root/rexprnt/maleprcsninfo/unit" + a , model.getValue("root/main1/reprordsrch/maleprcsninfolst["+ a +"]/rsltunit"));
  906. model.makeValue("/root/rexprnt/maleprcsninfo/scop" + a , model.getValue("root/main1/reprordsrch/maleprcsninfolst["+ a +"]/stndval"));
  907. model.makeValue("/root/rexprnt/maleprcsninfo/curntrslt" + a , model.getValue("root/main1/reprordsrch/maleprcsninfolst["+ a +"]/result1"));
  908. model.makeValue("/root/rexprnt/maleprcsninfo/bfrslt" + a , model.getValue("root/main1/reprordsrch/maleprcsninfolst["+ a +"]/result2"));
  909. model.makeValue("/root/rexprnt/maleprcsninfo/bfbfrslt" + a , model.getValue("root/main1/reprordsrch/maleprcsninfolst["+ a +"]/result3"));
  910. }
  911. exeReportPreview("RPAHR00922", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P15 남성 정밀
  912. // exeReportPreview("RPAHR00922", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //P15 남성 정밀
  913. }
  914. //P16 여성 정밀
  915. if(etccd_array[i] == "16"){
  916. //기본정보 셋팅
  917. model.makeValue("/root/rexprnt/fmaleprcsninfo/pid" , model.getValue("/root/main1/reprordsrch/coverinfo/pid"));
  918. model.makeValue("/root/rexprnt/fmaleprcsninfo/hngnm" , model.getValue("/root/main1/reprordsrch/coverinfo/hngnm"));
  919. model.makeValue("/root/rexprnt/fmaleprcsninfo/orddd" , model.getValue("/root/main1/reprordsrch/coverinfo/orddd"));
  920. model.makeValue("/root/rexprnt/fmaleprcsninfo/drnm" , model.getValue("/root/main1/reprordsrch/coverinfo/drnm"));
  921. model.makeValue("/root/rexprnt/fmaleprcsninfo/rsrvdd" , model.getValue("/root/main1/reprordsrch/coverinfo/rsrvdd"));
  922. model.makeValue("/root/rexprnt/fmaleprcsninfo/drlicnsno" , model.getValue("/root/main1/reprordsrch/coverinfo/drlicnsno"));
  923. model.makeValue("/root/rexprnt/fmaleprcsninfo/rrgstno1" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno1"));
  924. model.makeValue("/root/rexprnt/fmaleprcsninfo/rrgstno2" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno2"));
  925. var Cnt = cmb_p16.length;
  926. var chk_seq = "";
  927. var aa = 0;
  928. var curntrslt = "";
  929. var bfrslt = "";
  930. var bfbfrslt = "";
  931. for(var a=1; a<=Cnt; a++){
  932. if(model.getValue("root/main1/reprordsrch/fmaleprcsninfolst["+ a +"]/seq") != chk_seq){
  933. curntrslt = model.getValue("root/main1/reprordsrch/fmaleprcsninfolst["+ a +"]/result1");
  934. bfrslt = model.getValue("root/main1/reprordsrch/fmaleprcsninfolst["+ a +"]/result2");
  935. bfbfrslt = model.getValue("root/main1/reprordsrch/fmaleprcsninfolst["+ a +"]/result3");
  936. chk_seq = model.getValue("root/main1/reprordsrch/fmaleprcsninfolst["+ a +"]/seq");
  937. aa++;
  938. }else{
  939. curntrslt = curntrslt + model.getValue("root/main1/reprordsrch/fmaleprcsninfolst["+ a +"]/result1");
  940. bfrslt = bfrslt + model.getValue("root/main1/reprordsrch/fmaleprcsninfolst["+ a +"]/result2");
  941. bfbfrslt = bfbfrslt + model.getValue("root/main1/reprordsrch/fmaleprcsninfolst["+ a +"]/result3");
  942. }
  943. model.makeValue("/root/rexprnt/fmaleprcsninfo/title" + aa , model.getValue("root/main1/reprordsrch/fmaleprcsninfolst["+ a +"]/etcdetlnm"));
  944. model.makeValue("/root/rexprnt/fmaleprcsninfo/unit" + aa , model.getValue("root/main1/reprordsrch/fmaleprcsninfolst["+ a +"]/rsltunit"));
  945. model.makeValue("/root/rexprnt/fmaleprcsninfo/scop" + aa , model.getValue("root/main1/reprordsrch/fmaleprcsninfolst["+ a +"]/stndval"));
  946. model.makeValue("/root/rexprnt/fmaleprcsninfo/curntrslt" + aa , curntrslt );
  947. model.makeValue("/root/rexprnt/fmaleprcsninfo/bfrslt" + aa , bfrslt );
  948. model.makeValue("/root/rexprnt/fmaleprcsninfo/bfbfrslt" + aa , bfbfrslt );
  949. // model.makeValue("/root/rexprnt/fmaleprcsninfo/curntrslt" + aa , model.getValue("root/main1/reprordsrch/fmaleprcsninfolst["+ a +"]/result1"));
  950. // model.makeValue("/root/rexprnt/fmaleprcsninfo/bfrslt" + aa , model.getValue("root/main1/reprordsrch/fmaleprcsninfolst["+ a +"]/result2"));
  951. // model.makeValue("/root/rexprnt/fmaleprcsninfo/bfbfrslt" + aa , model.getValue("root/main1/reprordsrch/fmaleprcsninfolst["+ a +"]/result3"));
  952. }
  953. exeReportPreview("RPAHR00923", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P16 여성 정밀
  954. // exeReportPreview("RPAHR00923", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //P16 여성 정밀
  955. }
  956. //P17 pet-ct
  957. if(etccd_array[i] == "17"){
  958. //기본정보 셋팅
  959. model.makeValue("/root/rexprnt/petctinfo/pid" , model.getValue("/root/main1/reprordsrch/coverinfo/pid"));
  960. model.makeValue("/root/rexprnt/petctinfo/hngnm" , model.getValue("/root/main1/reprordsrch/coverinfo/hngnm"));
  961. model.makeValue("/root/rexprnt/petctinfo/orddd" , model.getValue("/root/main1/reprordsrch/coverinfo/orddd"));
  962. model.makeValue("/root/rexprnt/petctinfo/drnm" , model.getValue("/root/main1/reprordsrch/coverinfo/drnm"));
  963. model.makeValue("/root/rexprnt/petctinfo/rsrvdd" , model.getValue("/root/main1/reprordsrch/coverinfo/rsrvdd"));
  964. model.makeValue("/root/rexprnt/petctinfo/drlicnsno" , model.getValue("/root/main1/reprordsrch/coverinfo/drlicnsno"));
  965. model.makeValue("/root/rexprnt/petctinfo/rrgstno1" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno1"));
  966. model.makeValue("/root/rexprnt/petctinfo/rrgstno2" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno2"));
  967. var Cnt = cmb_p17.length;
  968. var curntrslt = "";
  969. var bfrslt = "";
  970. var bfbfrslt = "";
  971. for(var a=1; a<=Cnt; a++){
  972. curntrslt = curntrslt + model.getValue("root/main1/reprordsrch/petctinfolst["+ a +"]/result1");
  973. bfrslt = bfrslt + model.getValue("root/main1/reprordsrch/petctinfolst["+ a +"]/result2");
  974. bfbfrslt = bfbfrslt + model.getValue("root/main1/reprordsrch/petctinfolst["+ a +"]/result3");
  975. // model.makeValue("/root/rexprnt/petctinfo/title" + a , model.getValue("root/main1/reprordsrch/petctinfolst["+ a +"]/etcdetlnm"));
  976. // model.makeValue("/root/rexprnt/petctinfo/unit" + a , model.getValue("root/main1/reprordsrch/petctinfolst["+ a +"]/rsltunit"));
  977. // model.makeValue("/root/rexprnt/petctinfo/scop" + a , model.getValue("root/main1/reprordsrch/petctinfolst["+ a +"]/stndval"));
  978. // model.makeValue("/root/rexprnt/petctinfo/curntrslt" + a , model.getValue("root/main1/reprordsrch/petctinfolst["+ a +"]/result1"));
  979. // model.makeValue("/root/rexprnt/petctinfo/bfrslt" + a , model.getValue("root/main1/reprordsrch/petctinfolst["+ a +"]/result2"));
  980. // model.makeValue("/root/rexprnt/petctinfo/bfbfrslt" + a , model.getValue("root/main1/reprordsrch/petctinfolst["+ a +"]/result3"));
  981. }
  982. model.makeValue("/root/rexprnt/petctinfo/title" + 1 , model.getValue("root/main1/reprordsrch/petctinfolst["+ 1 +"]/etcdetlnm"));
  983. model.makeValue("/root/rexprnt/petctinfo/unit" + 1 , model.getValue("root/main1/reprordsrch/petctinfolst["+ 1 +"]/rsltunit"));
  984. model.makeValue("/root/rexprnt/petctinfo/scop" + 1 , model.getValue("root/main1/reprordsrch/petctinfolst["+ 1 +"]/stndval"));
  985. model.makeValue("/root/rexprnt/petctinfo/curntrslt" + 1 , curntrslt );
  986. model.makeValue("/root/rexprnt/petctinfo/bfrslt" + 1 , bfrslt );
  987. model.makeValue("/root/rexprnt/petctinfo/bfbfrslt" + 1 , bfbfrslt );
  988. exeReportPreview("RPAHR00924", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P17 pet-ct
  989. // exeReportPreview("RPAHR00924", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //P17 pet-ct
  990. }
  991. //P18 대장내시경
  992. if(etccd_array[i] == "18"){
  993. //기본정보 셋팅
  994. model.makeValue("/root/rexprnt/largelntesinfo/pid" , model.getValue("/root/main1/reprordsrch/coverinfo/pid"));
  995. model.makeValue("/root/rexprnt/largelntesinfo/hngnm" , model.getValue("/root/main1/reprordsrch/coverinfo/hngnm"));
  996. model.makeValue("/root/rexprnt/largelntesinfo/orddd" , model.getValue("/root/main1/reprordsrch/coverinfo/orddd"));
  997. model.makeValue("/root/rexprnt/largelntesinfo/drnm" , model.getValue("/root/main1/reprordsrch/coverinfo/drnm"));
  998. model.makeValue("/root/rexprnt/largelntesinfo/rsrvdd" , model.getValue("/root/main1/reprordsrch/coverinfo/rsrvdd"));
  999. model.makeValue("/root/rexprnt/largelntesinfo/drlicnsno" , model.getValue("/root/main1/reprordsrch/coverinfo/drlicnsno"));
  1000. model.makeValue("/root/rexprnt/largelntesinfo/rrgstno1" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno1"));
  1001. model.makeValue("/root/rexprnt/largelntesinfo/rrgstno2" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno2"));
  1002. var curntrslt = "";
  1003. var bfrslt = "";
  1004. var bfbfrslt = "";
  1005. var curntrslt1 = "";
  1006. var bfrslt1 = "";
  1007. var bfbfrslt1 = "";
  1008. var level1 = "";
  1009. var Cnt = cmb_p18.length;
  1010. for(var a=1; a<=Cnt; a++){
  1011. if(model.getValue("root/main1/reprordsrch/largelntesinfolst["+ a +"]/seq") == "001"){
  1012. curntrslt = curntrslt + model.getValue("root/main1/reprordsrch/largelntesinfolst["+ a +"]/result1");
  1013. bfrslt = bfrslt + model.getValue("root/main1/reprordsrch/largelntesinfolst["+ a +"]/result2");
  1014. bfbfrslt = bfbfrslt + model.getValue("root/main1/reprordsrch/largelntesinfolst["+ a +"]/result3");
  1015. } else if(model.getValue("root/main1/reprordsrch/largelntesinfolst["+ a +"]/seq") == "002"){
  1016. if(model.getValue("root/main1/reprordsrch/largelntesinfolst["+ a +"]/result1") != ""){
  1017. level1 = a;
  1018. }
  1019. curntrslt1 = curntrslt1 + model.getValue("root/main1/reprordsrch/largelntesinfolst["+ a +"]/result1");
  1020. bfrslt1 = bfrslt1 + model.getValue("root/main1/reprordsrch/largelntesinfolst["+ a +"]/result2");
  1021. bfbfrslt1 = bfbfrslt1 + model.getValue("root/main1/reprordsrch/largelntesinfolst["+ a +"]/result3");
  1022. }else{
  1023. model.makeValue("/root/rexprnt/largelntesinfo/title" + a , model.getValue("root/main1/reprordsrch/largelntesinfolst["+ a +"]/etcdetlnm"));
  1024. model.makeValue("/root/rexprnt/largelntesinfo/unit" + a , model.getValue("root/main1/reprordsrch/largelntesinfolst["+ a +"]/rsltunit"));
  1025. model.makeValue("/root/rexprnt/largelntesinfo/scop" + a , model.getValue("root/main1/reprordsrch/largelntesinfolst["+ a +"]/stndval"));
  1026. model.makeValue("/root/rexprnt/largelntesinfo/curntrslt" + a , model.getValue("root/main1/reprordsrch/largelntesinfolst["+ a +"]/result1"));
  1027. model.makeValue("/root/rexprnt/largelntesinfo/bfrslt" + a , model.getValue("root/main1/reprordsrch/largelntesinfolst["+ a +"]/result2"));
  1028. model.makeValue("/root/rexprnt/largelntesinfo/bfbfrslt" + a , model.getValue("root/main1/reprordsrch/largelntesinfolst["+ a +"]/result3"));
  1029. }
  1030. }
  1031. model.makeValue("/root/rexprnt/largelntesinfo/title" + 1 , model.getValue("root/main1/reprordsrch/largelntesinfolst["+ 1 +"]/etcdetlnm"));
  1032. model.makeValue("/root/rexprnt/largelntesinfo/unit" + 1 , model.getValue("root/main1/reprordsrch/largelntesinfolst["+ 1 +"]/rsltunit"));
  1033. model.makeValue("/root/rexprnt/largelntesinfo/scop" + 1 , model.getValue("root/main1/reprordsrch/largelntesinfolst["+ 1 +"]/stndval"));
  1034. model.makeValue("/root/rexprnt/largelntesinfo/curntrslt" + 1 , curntrslt);
  1035. model.makeValue("/root/rexprnt/largelntesinfo/bfrslt" + 1 , bfrslt);
  1036. model.makeValue("/root/rexprnt/largelntesinfo/bfbfrslt" + 1 , bfbfrslt);
  1037. if(level1 == ""){
  1038. model.makeValue("/root/rexprnt/largelntesinfo/title" + 2 , model.getValue("root/main1/reprordsrch/largelntesinfolst["+ 3 +"]/etcdetlnm"));
  1039. model.makeValue("/root/rexprnt/largelntesinfo/unit" + 2 , model.getValue("root/main1/reprordsrch/largelntesinfolst["+ 3 +"]/rsltunit"));
  1040. model.makeValue("/root/rexprnt/largelntesinfo/scop" + 2 , model.getValue("root/main1/reprordsrch/largelntesinfolst["+ 3 +"]/stndval"));
  1041. }else{
  1042. model.makeValue("/root/rexprnt/largelntesinfo/title" + 2 , model.getValue("root/main1/reprordsrch/largelntesinfolst["+ level1 +"]/etcdetlnm"));
  1043. model.makeValue("/root/rexprnt/largelntesinfo/unit" + 2 , model.getValue("root/main1/reprordsrch/largelntesinfolst["+ level1 +"]/rsltunit"));
  1044. model.makeValue("/root/rexprnt/largelntesinfo/scop" + 2 , model.getValue("root/main1/reprordsrch/largelntesinfolst["+ level1 +"]/stndval"));
  1045. }
  1046. model.makeValue("/root/rexprnt/largelntesinfo/curntrslt" + 2 , curntrslt1);
  1047. model.makeValue("/root/rexprnt/largelntesinfo/bfrslt" + 2 , bfrslt1);
  1048. model.makeValue("/root/rexprnt/largelntesinfo/bfbfrslt" + 2 , bfbfrslt1);
  1049. exeReportPreview("RPAHR00925", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //P18 대장내시경
  1050. // exeReportPreview("RPAHR00925", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //P18 대장내시경
  1051. }
  1052. //P19 빈장
  1053. if(etccd_array[i] == "19"){
  1054. exeReportPreview("RPAHR00932", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //종합소견
  1055. }
  1056. //P20 전회 종합소견
  1057. if(etccd_array[i] == "20"){
  1058. var viewCnt = getNodesetCount("/root/main1/reprordsrch/beforeinfolst");
  1059. if(viewCnt > 0){
  1060. var bordt = model.getValue("/root/main1/reprordsrch/coverinfo/orddd");
  1061. var bidate = new Date();
  1062. var bsum_ordt = "";
  1063. if(bordt != ""){
  1064. bidate = bordt.toDate();
  1065. bsum_ordt = bidate.getAddDate(1, 'Y').getDateFormat();
  1066. }
  1067. model.resetInstanceNode("/root/rexprnt/viewinfo");
  1068. model.setValue("/root/rexprnt/viewinfo/pid" , model.getValue("/root/main1/reprordsrch/coverinfo/pid"));
  1069. model.setValue("/root/rexprnt/viewinfo/hngnm" , model.getValue("/root/main1/reprordsrch/coverinfo/hngnm"));
  1070. model.setValue("/root/rexprnt/viewinfo/orddd" , model.getValue("/root/main1/reprordsrch/beforeinfolst[1]/orddd"));
  1071. model.setValue("/root/rexprnt/viewinfo/drnm" , model.getValue("/root/main1/reprordsrch/coverinfo/drnm"));
  1072. model.setValue("/root/rexprnt/viewinfo/rsrvdd" , model.getValue("/root/main1/reprordsrch/coverinfo/rsrvdd"));
  1073. model.setValue("/root/rexprnt/viewinfo/drlicnsno" , model.getValue("/root/main1/reprordsrch/coverinfo/drlicnsno"));
  1074. model.setValue("/root/rexprnt/viewinfo/rrgstno1" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno1"));
  1075. model.setValue("/root/rexprnt/viewinfo/rrgstno2" , model.getValue("/root/main1/reprordsrch/coverinfo/rrgstno2"));
  1076. for(var j=1; j<=viewCnt; j++){
  1077. if(model.getValue("/root/main1/reprordsrch/beforeinfolst["+ j + "]/etcdetlcd") == "P20001"){
  1078. model.setValue("/root/rexprnt/viewinfo/etcdetlcd1" , model.getValue("/root/main1/reprordsrch/beforeinfolst["+ j + "]/etcdetlcd"));
  1079. model.setValue("/root/rexprnt/viewinfo/etcdetlnm1" , model.getValue("/root/main1/reprordsrch/beforeinfolst["+ j + "]/etcdetlnm"));
  1080. model.setValue("/root/rexprnt/viewinfo/text1" , model.getValue("/root/main1/reprordsrch/beforeinfolst["+ j + "]/text"));
  1081. }
  1082. if(model.getValue("/root/main1/reprordsrch/beforeinfolst["+ j + "]/etcdetlcd") == "P20999"){
  1083. model.setValue("/root/rexprnt/viewinfo/etcdetlcd2" , model.getValue("/root/main1/reprordsrch/beforeinfolst["+ j + "]/etcdetlcd"));
  1084. model.setValue("/root/rexprnt/viewinfo/etcdetlnm2" , model.getValue("/root/main1/reprordsrch/beforeinfolst["+ j + "]/etcdetlnm"));
  1085. model.setValue("/root/rexprnt/viewinfo/text2" , model.getValue("/root/main1/reprordsrch/beforeinfolst["+ j + "]/text"));
  1086. }
  1087. }
  1088. exeReportPreview("RPAHR00908", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true"); //종합소견
  1089. // exeReportPreview("RPAHR00926", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //종합소견
  1090. // exeReportPreview("RPAHR00926", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false"); //종합소견
  1091. }
  1092. }
  1093. } //for문 닫음.
  1094. } else { // 목차체크
  1095. messageBox("선택된 출력물 목차가","I004");
  1096. }
  1097. } //대상자 Check여부
  1098. } // for문 닫음.
  1099. }else{
  1100. //Cnt 체크
  1101. messageBox("조회된 데이터가","I004");
  1102. }
  1103. model.refresh();
  1104. ]]>
  1105. </script>
  1106. </button>
  1107. </group>
  1108. <select1 id="cmb_p02" ref="/root/temp/p02" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1109. <choices>
  1110. <itemset nodeset="root/main1/reprordsrch/baseinfolst">
  1111. <label ref="etcdetlnm"/>
  1112. <value ref="seq"/>
  1113. </itemset>
  1114. </choices>
  1115. </select1>
  1116. <select1 id="cmb_p03" ref="/root/temp/p03" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1117. <choices>
  1118. <itemset nodeset="root/main1/reprordsrch/bloodinfolst">
  1119. <label ref="etcdetlnm"/>
  1120. <value ref="seq"/>
  1121. </itemset>
  1122. </choices>
  1123. </select1>
  1124. <select1 id="cmb_p04" ref="/root/temp/p04" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1125. <choices>
  1126. <itemset nodeset="root/main1/reprordsrch/urintinfolst">
  1127. <label ref="etcdetlnm"/>
  1128. <value ref="seq"/>
  1129. </itemset>
  1130. </choices>
  1131. </select1>
  1132. <select1 id="cmb_p05" ref="/root/temp/p05" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1133. <choices>
  1134. <itemset nodeset="root/main1/reprordsrch/Seruminfolst">
  1135. <label ref="etcdetlnm"/>
  1136. <value ref="seq"/>
  1137. </itemset>
  1138. </choices>
  1139. </select1>
  1140. <select1 id="cmb_p06" ref="/root/temp/p06" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1141. <choices>
  1142. <itemset nodeset="root/main1/reprordsrch/lfinfolst">
  1143. <label ref="etcdetlnm"/>
  1144. <value ref="seq"/>
  1145. </itemset>
  1146. </choices>
  1147. </select1>
  1148. <select1 id="cmb_p07" ref="/root/temp/p07" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1149. <choices>
  1150. <itemset nodeset="root/main1/reprordsrch/ekginfolst">
  1151. <label ref="etcdetlnm"/>
  1152. <value ref="seq"/>
  1153. </itemset>
  1154. </choices>
  1155. </select1>
  1156. <select1 id="cmb_p08" ref="/root/temp/p08" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1157. <choices>
  1158. <itemset nodeset="root/main1/reprordsrch/digorgninfolst">
  1159. <label ref="etcdetlnm"/>
  1160. <value ref="seq"/>
  1161. </itemset>
  1162. </choices>
  1163. </select1>
  1164. <select1 id="cmb_p09" ref="/root/temp/p09" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1165. <choices>
  1166. <itemset nodeset="root/main1/reprordsrch/echoinfolst">
  1167. <label ref="etcdetlnm"/>
  1168. <value ref="seq"/>
  1169. </itemset>
  1170. </choices>
  1171. </select1>
  1172. <select1 id="cmb_p10" ref="/root/temp/p10" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1173. <choices>
  1174. <itemset nodeset="root/main1/reprordsrch/brestinfolst">
  1175. <label ref="etcdetlnm"/>
  1176. <value ref="seq"/>
  1177. </itemset>
  1178. </choices>
  1179. </select1>
  1180. <select1 id="cmb_p11" ref="/root/temp/p11" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1181. <choices>
  1182. <itemset nodeset="root/main1/reprordsrch/wombinfolst">
  1183. <label ref="etcdetlnm"/>
  1184. <value ref="seq"/>
  1185. </itemset>
  1186. </choices>
  1187. </select1>
  1188. <select1 id="cmb_p12" ref="/root/temp/p12" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1189. <choices>
  1190. <itemset nodeset="root/main1/reprordsrch/brstinfolst">
  1191. <label ref="etcdetlnm"/>
  1192. <value ref="seq"/>
  1193. </itemset>
  1194. </choices>
  1195. </select1>
  1196. <select1 id="cmb_p13" ref="/root/temp/p13" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1197. <choices>
  1198. <itemset nodeset="root/main1/reprordsrch/bprcsninfolst">
  1199. <label ref="etcdetlnm"/>
  1200. <value ref="seq"/>
  1201. </itemset>
  1202. </choices>
  1203. </select1>
  1204. <select1 id="cmb_p14" ref="/root/temp/p14" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1205. <choices>
  1206. <itemset nodeset="root/main1/reprordsrch/cardiacinfolst">
  1207. <label ref="etcdetlnm"/>
  1208. <value ref="seq"/>
  1209. </itemset>
  1210. </choices>
  1211. </select1>
  1212. <select1 id="cmb_p15" ref="/root/temp/p15" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1213. <choices>
  1214. <itemset nodeset="root/main1/reprordsrch/maleprcsninfolst">
  1215. <label ref="etcdetlnm"/>
  1216. <value ref="seq"/>
  1217. </itemset>
  1218. </choices>
  1219. </select1>
  1220. <select1 id="cmb_p16" ref="/root/temp/p16" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1221. <choices>
  1222. <itemset nodeset="root/main1/reprordsrch/fmaleprcsninfolst">
  1223. <label ref="etcdetlnm"/>
  1224. <value ref="seq"/>
  1225. </itemset>
  1226. </choices>
  1227. </select1>
  1228. <select1 id="cmb_p17" ref="/root/temp/p17" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1229. <choices>
  1230. <itemset nodeset="root/main1/reprordsrch/petctinfolst">
  1231. <label ref="etcdetlnm"/>
  1232. <value ref="seq"/>
  1233. </itemset>
  1234. </choices>
  1235. </select1>
  1236. <select1 id="cmb_p18" ref="/root/temp/p18" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1237. <choices>
  1238. <itemset nodeset="root/main1/reprordsrch/largelntesinfolst">
  1239. <label ref="etcdetlnm"/>
  1240. <value ref="seq"/>
  1241. </itemset>
  1242. </choices>
  1243. </select1>
  1244. <select1 id="cmb_p19" ref="/root/temp/p19" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1245. <choices>
  1246. <itemset nodeset="root/main1/reprordsrch/beforeinfolst">
  1247. <label ref="etcdetlnm"/>
  1248. <value ref="seq"/>
  1249. </itemset>
  1250. </choices>
  1251. </select1>
  1252. <select1 id="combo2" ref="/root/temp/p11" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1253. <choices>
  1254. <itemset nodeset="root/main1/reprordsrch/wombinfolst">
  1255. <label ref="etcdetlnm"/>
  1256. <value ref="seq"/>
  1257. </itemset>
  1258. </choices>
  1259. </select1>
  1260. <select1 id="combo3" ref="/root/temp/p12" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1261. <choices>
  1262. <itemset nodeset="root/main1/reprordsrch/brstinfolst">
  1263. <label ref="etcdetlnm"/>
  1264. <value ref="seq"/>
  1265. </itemset>
  1266. </choices>
  1267. </select1>
  1268. <select1 id="combo4" ref="/root/temp/p13" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1269. <choices>
  1270. <itemset nodeset="root/main1/reprordsrch/bprcsninfolst">
  1271. <label ref="etcdetlnm"/>
  1272. <value ref="seq"/>
  1273. </itemset>
  1274. </choices>
  1275. </select1>
  1276. <select1 id="combo5" ref="/root/temp/p14" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1277. <choices>
  1278. <itemset nodeset="root/main1/reprordsrch/cardiacinfolst">
  1279. <label ref="etcdetlnm"/>
  1280. <value ref="seq"/>
  1281. </itemset>
  1282. </choices>
  1283. </select1>
  1284. <select1 id="combo6" ref="/root/temp/p15" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1285. <choices>
  1286. <itemset nodeset="root/main1/reprordsrch/maleprcsninfolst">
  1287. <label ref="etcdetlnm"/>
  1288. <value ref="seq"/>
  1289. </itemset>
  1290. </choices>
  1291. </select1>
  1292. <select1 id="combo7" ref="/root/temp/p16" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1293. <choices>
  1294. <itemset nodeset="root/main1/reprordsrch/fmaleprcsninfolst">
  1295. <label ref="etcdetlnm"/>
  1296. <value ref="seq"/>
  1297. </itemset>
  1298. </choices>
  1299. </select1>
  1300. <select1 id="combo8" ref="/root/temp/p17" visibility="hidden" appearance="minimal" style="left:5px; top:761px; width:75px; height:19px; ">
  1301. <choices>
  1302. <itemset nodeset="root/main1/reprordsrch/petctinfolst">
  1303. <label ref="etcdetlnm"/>
  1304. <value ref="seq"/>
  1305. </itemset>
  1306. </choices>
  1307. </select1>
  1308. </xhtml:body>
  1309. </xhtml:html>