SMAHA04410_판정관리.xrw 83 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHR00500.xrw
  4. * 설 명 : 종합건진 종합판정관리
  5. * 설 계 자 : 손주연
  6. * 작 성 자 : 손주연
  7. * 작 성 일 : 2007.10.01
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <judgdetl>
  20. <rsltlst>
  21. <item>
  22. <testnm/>
  23. <rslt1/>
  24. <judgrsltcnts1/>
  25. <rslt2/>
  26. <judgrsltcnts2/>
  27. <rslt3/>
  28. <judgrsltcnts3/>
  29. <rsltunit/>
  30. <stndval/>
  31. <testcd/>
  32. <execprcpuniqno/>
  33. <prcpdd/>
  34. </item>
  35. <itemtext>
  36. <testnm/>
  37. <testcd/>
  38. <rslt1/>
  39. <rslt2/>
  40. <rslt3/>
  41. <execprcpuniqno/>
  42. <prcpdd/>
  43. </itemtext>
  44. <rslttextinfo>
  45. <rslt1/>
  46. <rslt2/>
  47. <rslt3/>
  48. <orddd1/>
  49. <orddd2/>
  50. <orddd3/>
  51. </rslttextinfo>
  52. <itemorddd>
  53. <orddd1/>
  54. <orddd2/>
  55. <orddd3/>
  56. <hopedd1/>
  57. <hopedd2/>
  58. <hopedd3/>
  59. </itemorddd>
  60. </rsltlst>
  61. <judginfo>
  62. <judg>
  63. <judg1>
  64. <judgflag/>
  65. <judgcntsa/>
  66. <judgcntsb/>
  67. </judg1>
  68. <judg2>
  69. <judgflag/>
  70. <judgcntsa/>
  71. <judgcntsb/>
  72. </judg2>
  73. <judgchest>
  74. <judgchestflag/>
  75. <judgchestflag2/>
  76. </judgchest>
  77. <judgdd/>
  78. <judgdrid/>
  79. </judg>
  80. <judginqr>
  81. <judginqrnm/>
  82. <judgrsltcnts/>
  83. <judgremcnts/>
  84. <judginqrflag/>
  85. <judginqrcd/>
  86. <judgrsltcd/>
  87. <answcdflag/>
  88. <stat/>
  89. <lrgrsltyn/>
  90. </judginqr>
  91. <answ>
  92. <judginqr/>
  93. <answcd/>
  94. <answcnts/>
  95. </answ>
  96. </judginfo>
  97. <medinfo>
  98. <item>
  99. <meddd/>
  100. <meddrid/>
  101. <medtm/>
  102. </item>
  103. <past>
  104. <medinqrnm/>
  105. <medrsltcnts/>
  106. <medremcnts/>
  107. <medinqrflag/>
  108. <medinqrcd/>
  109. <medrsltcd/>
  110. <answcdflag/>
  111. <stat/>
  112. </past>
  113. <body>
  114. <medinqrnm/>
  115. <medrsltcnts/>
  116. <medremcnts/>
  117. <medinqrflag/>
  118. <medinqrcd/>
  119. <medrsltcd/>
  120. <answcdflag/>
  121. <stat/>
  122. </body>
  123. <socl>
  124. <medinqrnm/>
  125. <medrsltcnts/>
  126. <medremcnts/>
  127. <medinqrflag/>
  128. <medinqrcd/>
  129. <medrsltcd/>
  130. <answcdflag/>
  131. <stat/>
  132. </socl>
  133. <famy>
  134. <medinqrnm/>
  135. <medrsltcnts/>
  136. <medremcnts/>
  137. <medinqrflag/>
  138. <medinqrcd/>
  139. <medrsltcd/>
  140. <answcdflag/>
  141. <stat/>
  142. </famy>
  143. </medinfo>
  144. </judgdetl>
  145. <judgpatlst>
  146. <item>
  147. <statflag/>
  148. <hopedd/>
  149. <hngnm/>
  150. <engnm/>
  151. <pid/>
  152. <visano/>
  153. <sex/>
  154. <age/>
  155. <pkgnm/>
  156. <pkgcd/>
  157. <acptremcnts/>
  158. <rsrvdd/>
  159. <rsrvno/>
  160. <cretno/>
  161. <brthareacnts/>
  162. <orddd/>
  163. <rsrvtm/>
  164. <rgstno1/>
  165. <rgstno2/>
  166. <healexamflag/>
  167. <healexamdetlflag/>
  168. <judgdd/>
  169. <judgdrid/>
  170. <judgdd2/>
  171. <judgdrid2/>
  172. <judgstat/>
  173. </item>
  174. </judgpatlst>
  175. <prntinfo>
  176. <prnt>
  177. <etc/>
  178. <phil/>
  179. <pat/>
  180. </prnt>
  181. </prntinfo>
  182. </main>
  183. <send>
  184. <srchhealexamflag/>
  185. <srchhealexamdetlflag/>
  186. <srchjudgdrid/>
  187. <srchfromdd/>
  188. <srchtodd/>
  189. <srchpid/>
  190. <srchorddd/>
  191. <srchpnm/>
  192. <srchrsrvdd/>
  193. <srchrsrvno/>
  194. <srchinstcd/>
  195. <srchstatflag/>
  196. <srchcretno/>
  197. <iemr/>
  198. <savedata>
  199. </savedata>
  200. </send>
  201. <init>
  202. <baseinfo>
  203. <choiflaglst/>
  204. <rslttypelst/>
  205. <plceflag/>
  206. <rsltcnstflaglst/>
  207. <pamcdlst>
  208. <uncocdlst/>
  209. <disccdlst/>
  210. </pamcdlst>
  211. <inqrflag/>
  212. <statlst/>
  213. <hedetlflaglst>
  214. <item/>
  215. </hedetlflaglst>
  216. <chedetlflaglst/>
  217. <ghedetlflaglst/>
  218. <meddrlst>
  219. <itemdr/>
  220. </meddrlst>
  221. <judgdrlst>
  222. <itemdr/>
  223. </judgdrlst>
  224. <fstjudglst/>
  225. <sendjudglst/>
  226. <chestjudglst/>
  227. <initaddrinfo/>
  228. </baseinfo>
  229. <send>
  230. <srchhealexamdetlflag/>
  231. <srchjudgdrid/>
  232. <srchfromdd/>
  233. <srchtodd/>
  234. <srchpid/>
  235. <srchpnm/>
  236. <srchhealexamdetlflag2/>
  237. <srchrsrvdd/>
  238. <srchstatflag>1</srchstatflag>
  239. <srchpid2/>
  240. <srchpnm2/>
  241. <srchsex/>
  242. <srchage/>
  243. <srchpkgnm/>
  244. <info/>
  245. </send>
  246. <drlst>
  247. <itemdr/>
  248. </drlst>
  249. </init>
  250. <hidden>
  251. <answlst>
  252. <item/>
  253. </answlst>
  254. <count/>
  255. </hidden>
  256. <temp>
  257. <okflag/>
  258. <histlst>
  259. <item>
  260. <histinfo/>
  261. <rsrvdd/>
  262. <rsrvno/>
  263. </item>
  264. </histlst>
  265. <judgdetl>
  266. <judginfo/>
  267. </judgdetl>
  268. <patinfo>
  269. <item/>
  270. </patinfo>
  271. </temp>
  272. </root>
  273. </instance>
  274. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  275. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  276. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  277. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  278. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  279. <script type="javascript" src="../../../ast/healthexamrsrvacptweb/js/AHA.js"/>
  280. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  281. <script type="javascript" src="../../../com/pacsweb/js/ZEP001.js"/>
  282. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  283. <script type="javascript" ev:event="xforms-ready">
  284. <![CDATA[
  285. if( checkOpener() ){
  286. var sFlag = opener.javascript.getParameter("SMAHA04410_PARAM1");
  287. if(sFlag == "") {
  288. m_vHealexamflag = "G"
  289. m_vHealexamdetlflag = "G02"
  290. }else {
  291. m_vHealexamflag = sFlag.substr(0,1);
  292. m_vHealexamdetlflag = sFlag;
  293. }
  294. var sPid = opener.javascript.getParameter("SMAHA04410_PARAM2");
  295. if( sPid != "" ){
  296. btn_judg.selected = true;
  297. model.setValue( ipt_srchpid2.attribute("ref"), sPid);
  298. if( checkAuth("R") ) {
  299. //건진자 정보 조회
  300. fGetPatinfoWithPid(sPid);
  301. }
  302. }
  303. var sOrdDD = opener.javascript.getParameter("SMAHA04410_PARAM3");
  304. var sCretno = opener.javascript.getParameter("SMAHA04410_PARAM4");
  305. var sNd = cmb_srchrsrvdd.choices.itemset.attribute("nodeset") ;
  306. var nodelist = instance1.selectNodes(sNd);
  307. for(var i=0; i < nodelist.length; i++) {
  308. var desPid = nodelist.item(i).pid.text;
  309. var desOrd = nodelist.item(i).orddd.text;
  310. var desCretno = nodelist.item(i).cretno.text;
  311. if(desPid == sPid && desOrd == sOrdDD && desCretno == sCretno) {
  312. copyNodesetType("/root/init/send/info" , sNd + "[" + (i + 1) + "]" , "replace");
  313. model.setValue(cmb_srchrsrvdd.attribute("ref") ,nodelist.item(i).rsrvdd.text);
  314. fGetJudgDetlInfo( nodelist.item(i).rsrvdd.text
  315. , nodelist.item(i).rsrvno.text
  316. , nodelist.item(i).pkgnm.text
  317. , sPid, sOrdDD , sCretno );
  318. break;
  319. }
  320. }
  321. model.toggle("case_judg");
  322. model.toggle("case_prnt");
  323. btn_judgtab1.dispatch("onclick");
  324. }
  325. fGetBasicCdList();
  326. fSetJudgDr(); // 판정의 셋팅
  327. fSrchInit();
  328. btn_search.disabled = !checkAuth("R");
  329. btn_search2.disabled = !checkAuth("R");
  330. btn_clear.disabled = !checkAuth("X");
  331. model.toggle("case_hng");
  332. if( checkAuth("R") ) {
  333. fGetJudgPatList();
  334. }
  335. // 환자정보 삭제 common.js
  336. delPatientInfos();
  337. ]]>
  338. </script>
  339. <submission id="TRZBC00101"/>
  340. <submission id="TRAHA00001"/>
  341. <submission id="TRAHA00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/baseinfo/pamcdlst"/>
  342. <submission id="TRAHA04016" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/histlst"/>
  343. <submission id="TRAHB00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/baseinfo/item"/>
  344. <submission id="TRAHA04011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/patinfo"/>
  345. <submission id="TRAHA04411" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsltpatlst"/>
  346. <submission id="TRAHA04412" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" replace="instance" resultref="/root/temp/judgdetl/judginfo"/>
  347. <submission id="TRAHA04413" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" replace="instance" resultref="/root/main/judgdetl/rsltlst"/>
  348. <submission id="TRAHA04414" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" replace="instance" resultref="/root/main/judgdetl/medinfo"/>
  349. <submission id="TRAHA04415" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/judgdetl/rsltlst" replace="instance"/>
  350. <submission id="TRAHA04416" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inqrinfo"/>
  351. <submission id="TRAHA04418" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" resultref="/root/main/prntinfo/prnt"/>
  352. <submission id="TXAHA04411" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden/count"/>
  353. <submission id="TXAHA04412" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden/count"/>
  354. <submission id="TXAHA04415" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" replace="instance" resultref="/root/hidden/count"/>
  355. <submission id="TRAHA03133" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/drlst"/>
  356. </model>
  357. <script type="javascript">
  358. <![CDATA[
  359. var m_vHealexamflag = "";
  360. var m_vHealexamdetlflag = "";
  361. var col_hngnm = grd_judgpatlst.colRef("hngnm");
  362. var col_engnm = grd_judgpatlst.colRef("engnm");
  363. var col_pid = grd_judgpatlst.colRef("pid");
  364. var col_sex = grd_judgpatlst.colRef("sex");
  365. var col_age = grd_judgpatlst.colRef("age");
  366. var col_stat = grd_judgpatlst.colRef("statflag");
  367. var col_ordtm = grd_judgpatlst.colRef("ordtm");
  368. var col_orddd = grd_judgpatlst.colRef("orddd");
  369. var col_pkgcd = grd_judgpatlst.colRef("pkgcd");
  370. var col_pkgnm = grd_judgpatlst.colRef("pkgnm");
  371. var col_cmpycd= grd_judgpatlst.colRef("cmpycd");
  372. var col_cmpynm= grd_judgpatlst.colRef("cmpynm");
  373. var col_hopedd = grd_judgpatlst.colRef("hopedd");
  374. var col_rsrvtm = grd_judgpatlst.colRef("rsrvtm");
  375. var col_judgdd = grd_judgpatlst.colRef("judgdd");
  376. var col_judgtm = grd_judgpatlst.colRef("judgtm");
  377. var col_judgdrid = grd_judgpatlst.colRef("judgdrid");
  378. var col_acptremcnts = grd_judgpatlst.colRef("acptremcnts");
  379. var col_rsrvdd = grd_judgpatlst.colRef("rsrvdd");
  380. var col_rsrvno = grd_judgpatlst.colRef("rsrvno");
  381. var col_cretno = grd_judgpatlst.colRef("cretno");
  382. var col_rgstno1 = grd_judgpatlst.colRef("rgstno1");
  383. var col_rgstno2 = grd_judgpatlst.colRef("rgstno2");
  384. /**===================================================================================
  385. *초기화
  386. * bDetl => true : 건진자별 상세내역만 초기화
  387. =====================================================================================*/
  388. function fInit(bDetl){
  389. model.removeNodeset(grd_rsltlst.nodeset);
  390. model.removeNodeset(grd_rslttextlst.nodeset);
  391. model.removeNodeset(grd_medpast.nodeset);
  392. model.removeNodeset(grd_medbody.nodeset);
  393. model.removeNodeset(grd_medsocl.nodeset);
  394. model.removeNodeset(grd_medfamy.nodeset);
  395. model.resetInstanceNode(grd_judginqrlst.nodeset);
  396. model.resetInstanceNode("/root/main/judgdetl/medinfo/item");
  397. model.resetInstanceNode("/root/main/judgdetl/judginfo/judg/judg1");
  398. model.resetInstanceNode("/root/main/judgdetl/judginfo/judg/judg2");
  399. model.resetInstanceNode("/root/main/judgdetl/judginfo/judg");
  400. model.resetInstanceNode("/root/main/judgdetl/rsltlst/rslttextinfo");
  401. model.resetInstanceNode("/root/main/judgdetl/rsltlst/itemorddd");
  402. model.resetInstanceNode("/root/init/send/info");
  403. model.resetInstanceNode("/root/temp/histlst/item");
  404. model.setValue("/root/init/send/srchhealexamdetlflag2" ,"");
  405. model.setValue("/root/init/send/srchrsrvdd" ,"");
  406. model.setValue("/root/init/send/srchpid2" ,"");
  407. model.setValue("/root/init/send/srchpnm2" ,"");
  408. model.setValue("/root/init/send/srchsex" ,"");
  409. model.setValue("/root/init/send/srchage" ,"");
  410. model.setValue("/root/init/send/srchpkgnm" ,"");
  411. var cur_date = getCurrentDate();
  412. model.makeValue(ipt_judgdd.attribute("ref") , cur_date);
  413. model.makeValue(ipt_meddd.attribute("ref") , cur_date);
  414. if( bDetl) {
  415. model.refresh();
  416. return false;
  417. }
  418. model.removeNodeset(grd_judgpatlst.nodeset);
  419. model.refresh();
  420. }
  421. /**===================================================================================
  422. ** 조회조건 초기화
  423. =====================================================================================*/
  424. function fSrchInit(){
  425. cmb_srchhealexamdetlflag.refresh();
  426. cmb_srchhealexamdetlflag.value = m_vHealexamdetlflag;
  427. cmb_srchhealexamdetlflag2.refresh();
  428. cmb_srchhealexamdetlflag2.value = m_vHealexamdetlflag;
  429. var cur_date = getCurrentDate();
  430. model.setValue(ipt_srchfromdd.attribute("ref") , cur_date);
  431. model.setValue(ipt_srchtodd.attribute("ref") , cur_date);
  432. }
  433. /**===================================================================================
  434. *기본코드 내역 가져오기
  435. =====================================================================================*/
  436. function fGetBasicCdList(){
  437. if(!checkOpener() ){
  438. model.toggle("case_pat");
  439. btn_patlst.selected= true;
  440. if( m_vHealexamflag == "" ) {
  441. var sFlag = getScreenMenuParameter();
  442. if(sFlag == "") {
  443. m_vHealexamflag = "G"
  444. m_vHealexamdetlflag = "G02"
  445. }else {
  446. m_vHealexamflag = sFlag.substr(0,1);
  447. m_vHealexamdetlflag = sFlag;
  448. }
  449. }
  450. }
  451. openLoadingBar("기초정보 ") ;//처리중 화면을 오픈한다.
  452. zbcfGetCodeList( new Array("A0069","A0070", "A0066","A0110","A0106", "A0107", "A0123")
  453. , new Array( "/root/init/baseinfo/chedetlflaglst"
  454. ,"/root/init/baseinfo/ghedetlflaglst"
  455. , "/root/init/baseinfo/rslttypelst"
  456. , "/root/init/baseinfo/plceflag"
  457. , "/root/init/baseinfo/inqrflag"
  458. , "/root/init/baseinfo/statlst"
  459. , "/root/init/baseinfo/rsltcnstflaglst" ) );
  460. submit("TRZBC00101");
  461. healGetCodeList( new Array("V005","V006","V007","R001")
  462. , new Array("/root/init/baseinfo/fstjudglst"
  463. ,"/root/init/baseinfo/sendjudglst"
  464. ,"/root/init/baseinfo/chestjudglst"
  465. ,"/root/init/baseinfo/initaddrinfo") );
  466. model.removeNodeset("/root/init/baseinfo/fstjudglst/V005[1]");
  467. model.removeNodeset("/root/init/baseinfo/sendjudglst/V006[1]");
  468. model.removeNodeset("/root/init/baseinfo/chestjudglst/V007[1]");
  469. model.makeValue("/root/init/addrinfo/CF1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CF1']/cdnm"));
  470. model.makeValue("/root/init/addrinfo/CP1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP1']/cdnm"));
  471. model.makeValue("/root/init/addrinfo/CP2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP2']/cdnm"));
  472. model.makeValue("/root/init/addrinfo/E01", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E01']/cdnm"));
  473. model.makeValue("/root/init/addrinfo/E02", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E02']/cdnm"));
  474. model.makeValue("/root/init/addrinfo/E03", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E03']/cdnm"));
  475. model.makeValue("/root/init/addrinfo/E04", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E04']/cdnm"));
  476. model.makeValue("/root/init/addrinfo/K01", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K01']/cdnm"));
  477. model.makeValue("/root/init/addrinfo/K02", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K02']/cdnm"));
  478. model.makeValue("/root/init/addrinfo/K03", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K03']/cdnm"));
  479. model.makeValue("/root/init/addrinfo/K04", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K04']/cdnm"));
  480. model.makeValue("/root/init/addrinfo/PV1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'PV1']/cdnm"));
  481. model.makeValue("/root/init/addrinfo/PV2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'PV2']/cdnm"));
  482. model.makeValue("/root/init/addrinfo/VF1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'VF1']/cdnm"));
  483. model.makeValue("/root/init/addrinfo/logoimg", getImageURL("cmc"));
  484. // 건진구분 조회
  485. if(m_vHealexamflag == "C") {
  486. copyNodesetType("/root/init/baseinfo/hedetlflaglst/item","/root/init/baseinfo/chedetlflaglst/A0069", "replace");
  487. }else {
  488. copyNodesetType("/root/init/baseinfo/hedetlflaglst/item","/root/init/baseinfo/ghedetlflaglst/A0070", "replace");
  489. }
  490. //판정의조회
  491. model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
  492. model.setValue("/root/send/srchhealexamdetlflag" , m_vHealexamdetlflag);
  493. model.makeValue("/root/send/srchdrflag" , "J" );
  494. submit("TRAHA03133");
  495. copyNodesetType("/root/init/baseinfo/judgdrlst/itemdr" , "/root/init/drlst/itemdr" , "replace");
  496. // 진찰의 조회
  497. model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
  498. model.setValue("/root/send/srchhealexamdetlflag" , m_vHealexamdetlflag);
  499. model.makeValue("/root/send/srchdrflag" , "M" );
  500. submit("TRAHA03133");
  501. copyNodesetType("/root/init/baseinfo/meddrlst/itemdr" , "/root/init/drlst/itemdr" , "replace");
  502. closeLoadingBar() ;//처리중 화면을 close한다.
  503. }
  504. /**===================================================================================
  505. @desc : 판정입력대상자 가져오기
  506. @param : 건진구분/건진일자/환자id별 조회
  507. =====================================================================================*/
  508. function fGetJudgPatList(){
  509. openLoadingBar("판정 대상 건진자리스트") ;//처리중 화면을 오픈한다.
  510. model.removeNodeset(grd_judgpatlst.nodeset);
  511. //model.resetInstanceNode("/root/send");
  512. model.setValue("/root/send/srchhealexamdetlflag" , model.getValue("/root/init/send/srchhealexamdetlflag") );
  513. model.setValue("/root/send/srchpid" , model.getValue(ipt_pid.attribute("ref") ) );
  514. model.setValue("/root/send/srchpnm" , model.getValue(ipt_pnm.attribute("ref") ) );
  515. model.setValue("/root/send/srchfromdd" , model.getValue("/root/init/send/srchfromdd") );
  516. model.setValue("/root/send/srchtodd" , model.getValue("/root/init/send/srchtodd") );
  517. model.setValue("/root/send/srchjudgdrid" , model.getValue(cmb_srchjudgdrid.attribute("ref")));
  518. model.setValue("/root/send/srchstatflag" , model.getValue(cmb_statflag.attribute("ref")));
  519. model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd") );
  520. model.setValue("/root/send/srchhealexamflag", m_vHealexamflag);
  521. submit("TRAHA04411");
  522. closeLoadingBar() ;//처리중 화면을 close한다.
  523. }
  524. /**===================================================================================
  525. @desc : 판정정보조회(판정대기자 선택시 종합판정입력tab이동)
  526. @param : healexamflag, pid, rsrvdd, rsrvno
  527. =====================================================================================*/
  528. function fGetJudgInfo(){
  529. var idx = grd_judgpatlst.row;
  530. if( idx < 1) return ;
  531. var vPid = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("pid"));
  532. if( vPid == "" ) return ;
  533. //tab이동
  534. fInit(true);
  535. var vRsrvdd = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("rsrvdd"));
  536. var vRsrvno = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("rsrvno"));
  537. var vOrdDD = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("orddd"));
  538. var vJudgStat = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("judgstat"));
  539. var vHealexamFlag = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("healexamflag"));
  540. var vHealexamDetlFlag = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("healexamdetlflag"));
  541. var vCretno = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("cretno"));
  542. var vSex = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("sex"));
  543. var vAge = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("age"));
  544. var vPkgnm = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("pkgnm"));
  545. var vHopedd = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("hopedd"));
  546. cmb_srchhealexamdetlflag2.value = vHealexamDetlFlag
  547. model.setValue(ipt_srchpid2.attribute("ref"), vPid );
  548. model.setValue(ipt_srchpnm2.attribute("ref"), grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("hngnm")));
  549. model.setValue(opt_sex.attribute("ref"), vSex);
  550. model.setValue(opt_age.attribute("ref"), vAge);
  551. model.setValue(opt_pkgnm.attribute("ref"), vPkgnm);
  552. model.setValue(cmb_srchrsrvdd.attribute("ref") ,vRsrvdd);
  553. copyNodesetType("/root/init/send/info" , grd_judgpatlst.nodeset + "[" + idx + "]" , "replace");
  554. btn_judg.dispatch("onclick");
  555. btn_judg.refresh();
  556. btn_med.dispatch("onclick");
  557. btn_med.refresh();
  558. if(vJudgStat == "0") { // 판정대기
  559. btn_judgtab1.dispatch("onclick");
  560. }else if(vJudgStat == "1") { // 1차판정
  561. btn_judgtab1.dispatch("onclick");
  562. }else if(vJudgStat == "2") { // 2차판정
  563. btn_judgtab2.dispatch("onclick");
  564. }
  565. //해당환자의 건진history조회
  566. ahafGetHistList2(vPid, cmb_srchhealexamdetlflag.value , "E");
  567. //화면상단 환자정보 조회
  568. //ahafSetScreenTopPatInfo( vPid , vOrdDD , grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("cretno")) );
  569. model.refresh();
  570. // 결과 판정값 체크
  571. // fRsltJudgChk();
  572. //var nodeList = instance1.selectNodes("/root/temp/histlst/item[orddd='"+ vOrdDD + "' and pid='" + vPid + "' and cretno='"+ vCretno + "']" );
  573. var sNd = cmb_srchrsrvdd.choices.itemset.attribute("nodeset") ;
  574. var nodelist = instance1.selectNodes(sNd);
  575. for(var i=0; i < nodelist.length; i++) {
  576. var desPid = nodelist.item(i).pid.text;
  577. var desOrd = nodelist.item(i).orddd.text;
  578. var desCretno = nodelist.item(i).cretno.text;
  579. if(desPid == vPid && desOrd == vOrdDD && desCretno == vCretno) {
  580. cmb_srchrsrvdd.selected = true;
  581. fGetJudgDetlInfo( vRsrvdd, vRsrvno , vPkgnm, vPid, vOrdDD , vCretno );
  582. break;
  583. }
  584. }
  585. }
  586. /**===================================================================================
  587. @desc : 판정정보상세내역 조회
  588. @param : healexamflag, rsrvdd, rsrvno , instcd
  589. =====================================================================================*/
  590. function fGetJudgDetlInfo(vRsrvdd, vRsrvno , vPkgnm , vPid, vOrdDD , vCretno){
  591. model.setValue("/root/send/srchhealexamflag" ,m_vHealexamflag );
  592. model.setValue("/root/send/srchhealexamdetlflag" ,model.getValue(cmb_srchhealexamdetlflag.attribute("ref")) );
  593. model.setValue("/root/init/send/srchhealexamdetlflag2" ,model.getValue("/root/init/send/info/healexamdetlflag") );
  594. model.setValue("/root/send/srchrsrvdd" ,vRsrvdd );
  595. model.setValue("/root/send/srchrsrvno" ,vRsrvno );
  596. model.setValue("/root/send/srchinstcd" ,getUserInfo("dutplceinstcd") );
  597. model.setValue("/root/send/srchpid" ,vPid );
  598. model.setValue("/root/send/srchorddd" ,vOrdDD );
  599. model.setValue("/root/send/srchcretno" ,vCretno );
  600. model.setValue("/root/init/send/srchpkgnm" ,vPkgnm);
  601. openLoadingBar("판정 정보") ;//처리중 화면을 오픈한다.
  602. var ret = submit("TRAHA04413");
  603. // 결과 판정값 체크
  604. fRsltJudgChk();
  605. var vRsltCaption = "처방명칭" + "^" + cap_year1.value + "^" + "판정" + "^" + cap_year2.value + "^" + "판정" + "^" + cap_year3.value + "^" + "판정" + "^" + "단위" + "^" + "기준" ;
  606. grd_rsltlst.caption = vRsltCaption ;
  607. // 판정정보 조회
  608. fGetJudglst("A");
  609. // 진찰내역 조회
  610. fGetMedlst();
  611. closeLoadingBar() ;//처리중 화면을 close 한다.
  612. /*
  613. if( ret == true ){
  614. var retNode = model.instance1.selectSingleNode("/root/temp/judginfo/item/judgdrid");
  615. if( retNode != null ){
  616. model.copyNode("/root/main/judgdetl/judginfo","/root/temp/judginfo");
  617. }
  618. }
  619. // 판정의 체크
  620. var judgDr = model.getValue("/root/main/judgdetl/judginfo/item/judgdrid"); // 판정등록한 판정의
  621. var logJudgDr = model.getValue("/root/hidden/judgdr"); // 로그인 한 판정의
  622. if (judgDr == "") {
  623. // 등록한 판정의가 없을경우
  624. if(logJudgDr != "") {
  625. // 로그인 한 판정의가 있을 경우
  626. model.setValue("/root/main/judgdetl/judginfo/item/judgdrid" , logJudgDr);
  627. } else {
  628. model.setValue("/root/main/judgdetl/judginfo/item/judgdrid" , model.property("judgdr"));
  629. }
  630. } else {
  631. // 등록 된 판정의와 로그인 한 판정의가 다를 경우
  632. if(judgDr != logJudgDr) {
  633. if(logJudgDr != "") {
  634. // 로그인한 판정의가 존재할 경우
  635. var judgDrNm = "";
  636. var logJudgDrNm = ""
  637. // 이름 찾기
  638. for(var i=0; i < cmb_judgdr.length; i++) {
  639. if(cmb_judgdr.item(i).value == judgDr ) { judgDrNm = cmb_judgdr.item(i).label};
  640. if(cmb_judgdr.item(i).value == logJudgDr ) {logJudgDrNm = cmb_judgdr.item(i).label};
  641. }
  642. var vb = messageBox("판정의를 [" + judgDrNm + "]에서 [" + logJudgDrNm + "]로 변경" ,"S001");
  643. if(vb == "6") {
  644. // Yes
  645. model.setValue("/root/main/judgdetl/judginfo/item/judgdrid" , logJudgDr);
  646. }
  647. }
  648. }
  649. }
  650. */
  651. model.refresh();
  652. }
  653. /**===================================================================================
  654. @desc : 판정정보상세내역 조회
  655. =====================================================================================*/
  656. function fSetJugeInqr() {
  657. model.resetInstanceNode("/root/main/judgdetl/judginfo/judginqr");
  658. model.resetInstanceNode("/root/main/judgdetl/judginfo/answ");
  659. // 판정문진
  660. copyNodesetType("/root/main/judgdetl/judginfo/judginqr" , "/root/temp/judgdetl/judginfo/judginqr" , "replace");
  661. //판정문진 답변코드
  662. copyNodesetType("/root/main/judgdetl/judginfo/answ" , "/root/temp/judgdetl/judginfo/answ" , "replace");
  663. fSetJudgInqrStat();
  664. }
  665. /**===================================================================================
  666. @desc : 판정정보상세내역 조회
  667. =====================================================================================*/
  668. function fSetJudgInfo() {
  669. // 판정내역
  670. var judgstat = model.getValue("/root/temp/judgdetl/judginfo/judg/judgstat");
  671. var judgflag1 = model.getValue("/root/temp/judgdetl/judginfo/judg/judgflag1");
  672. var judgcnts1 = model.getValue("/root/temp/judgdetl/judginfo/judg/judgcnts1");
  673. var judgflag2 = model.getValue("/root/temp/judgdetl/judginfo/judg/judgflag2");
  674. var judgcnts2 = model.getValue("/root/temp/judgdetl/judginfo/judg/judgcnts2");
  675. var judgchestflag = model.getValue("/root/temp/judgdetl/judginfo/judg/judgchestflag");
  676. var judgchestflag2 = model.getValue("/root/temp/judgdetl/judginfo/judg/judgchestflag2");
  677. model.resetInstanceNode("/root/main/judgdetl/judginfo/judg/judg1");
  678. model.resetInstanceNode("/root/main/judgdetl/judginfo/judg/judg2");
  679. if(judgflag1 != "") {
  680. model.setValue("/root/main/judgdetl/judginfo/judg/judg1/judgflag" , judgflag1);
  681. if(judgflag1 == "A") {
  682. model.setValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsa" , judgcnts1);
  683. }else if(judgflag1 == "B") {
  684. model.setValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsb" , judgcnts1);
  685. }
  686. }
  687. if(judgflag2 != "") {
  688. model.setValue("/root/main/judgdetl/judginfo/judg/judg2/judgflag" , judgflag2);
  689. if(judgflag2 == "A") {
  690. model.setValue("/root/main/judgdetl/judginfo/judg/judg2/judgcntsa" , judgcnts2);
  691. }else if(judgflag2 == "B") {
  692. model.setValue("/root/main/judgdetl/judginfo/judg/judg2/judgcntsb" , judgcnts2);
  693. }
  694. }
  695. // 흉부촬영 판정 등록
  696. model.makeValue("/root/main/judgdetl/judginfo/judg/judgchest/judgchestflag" , judgchestflag );
  697. model.makeValue("/root/main/judgdetl/judginfo/judg/judgchest/judgchestflag2" , judgchestflag2 );
  698. if(judgstat == "0") { // 판정
  699. model.makeValue("/root/main/judgdetl/judginfo/judg/judgdd" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdd"));
  700. model.makeValue("/root/main/judgdetl/judginfo/judg/judgdrid" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdrid"));
  701. btn_judgtab1.selected = true;
  702. model.toggle("case_judg1");
  703. btn_judg1.disabled = false;
  704. btn_judg2.disabled = true;
  705. }else if(judgstat == "1") { // 1차 판정
  706. model.makeValue("/root/main/judgdetl/judginfo/judg/judgdd" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdd"));
  707. model.makeValue("/root/main/judgdetl/judginfo/judg/judgdrid" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdrid"));
  708. btn_judgtab1.selected = true;
  709. model.toggle("case_judg1");
  710. btn_judg1.disabled = false;
  711. btn_judg2.disabled = false;
  712. }else if(judgstat =="2") { // 2차판정
  713. model.setValue("/root/main/judgdetl/judginfo/judg/judgdd" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdd2"));
  714. model.setValue("/root/main/judgdetl/judginfo/judg/judgdrid" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdrid"));
  715. btn_judgtab2.selected = true;
  716. model.toggle("case_judg2");
  717. btn_judg1.disabled = false;
  718. btn_judg2.disabled = false;
  719. }
  720. }
  721. /**===================================================================================
  722. @desc : 판정내역 조회
  723. @param : 판정저장 : J 판정문진저장 : I 전체 : A
  724. =====================================================================================*/
  725. function fGetJudglst(vFlag) {
  726. if(submit("TRAHA04412")) {
  727. if(vFlag == "A" || vFlag == "I") {
  728. fSetJugeInqr();
  729. }
  730. if(vFlag == "A" || vFlag == "J") {
  731. fSetJudgInfo();
  732. }
  733. }
  734. }
  735. /**===================================================================================
  736. @desc : 진찰내역 조회
  737. =====================================================================================*/
  738. function fGetMedlst() {
  739. submit("TRAHA04414");
  740. }
  741. /**===================================================================================
  742. @desc : 판정문진의 답변코드 예문화면을 보이게 한다.
  743. =====================================================================================*/
  744. function fSetAnswVisible(vGrd) {
  745. var idx = vGrd.row;
  746. var judginqrcd = vGrd.valueMatrix(idx , vGrd.colRef("judginqrcd"));
  747. var judgrsltcnts = vGrd.valueMatrix(idx , vGrd.colRef("judgrsltcnts"));
  748. var answcdflag = vGrd.valueMatrix(idx , vGrd.colRef("answcdflag"));
  749. if(getNodesetCount("/root/main/judgdetl/judginfo/answ") < 1 ) {
  750. grp_answ.visible = false;
  751. return;
  752. }
  753. model.removeNodeset(grd_answlst.nodeset);
  754. var nodeList = instance1.selectNodes("/root/main/judgdetl/judginfo/answ[judginqrcd='"+ judginqrcd +"']");
  755. if(nodeList.length < 1) {
  756. grp_answ.visible = false;
  757. return;
  758. }
  759. var rCSV = getNodeListCSV(nodeList);
  760. setCSVToNode( "/root/hidden/answlst", rCSV ,"item");
  761. grd_answlst.refresh();
  762. if(answcdflag == "O" && nodeList.length > 0) {
  763. grp_answ.visible = true;
  764. }else {
  765. grp_answ.visible = false;
  766. }
  767. }
  768. /**=========================================================================================================================
  769. * 선택형 진찰문진 입력
  770. ===========================================================================================================================*/
  771. function fSetChoiAnsw(vGrd) {
  772. var idx = vGrd.row;
  773. var answcdflag = vGrd.valueMatrix( idx , vGrd.colRef("answcdflag") );
  774. var judginqrcd = vGrd.valueMatrix(idx , vGrd.colRef("judginqrcd"));
  775. var judgrsltcnts = vGrd.valueMatrix(idx , vGrd.colRef("judgrsltcnts"));
  776. if(answcdflag == "O") {
  777. for(var i=1; i<=grd_answlst.rows; i++) {
  778. var inqrcd = grd_answlst.valueMatrix( i , grd_answlst.colRef("judginqrcd"));
  779. var answcd = grd_answlst.valueMatrix( i , grd_answlst.colRef("answcd"));
  780. var answcnts = grd_answlst.valueMatrix( i , grd_answlst.colRef("answcnts"));
  781. if(inqrcd == judginqrcd && answcd == judgrsltcnts ) {
  782. vGrd.valueMatrix(idx , vGrd.colRef("judgrsltcd")) = answcd;
  783. vGrd.valueMatrix(idx , vGrd.colRef("judgrsltcnts")) = answcnts;
  784. grp_answ.visible = false ;
  785. break;
  786. }
  787. }
  788. }
  789. }
  790. /**=========================================================================================================================
  791. * 판정문진 입력상태 셋팅
  792. ===========================================================================================================================*/
  793. function fSetJudgInqrStat() {
  794. grd_judginqrlst.refresh();
  795. grd_judginqrlst.clearStatus();
  796. for(var i=1; i <= grd_judginqrlst.rows; i++ ) {
  797. var stat = grd_judginqrlst.valueMatrix(i , grd_judginqrlst.colRef("stat"));
  798. if(stat == "i") {
  799. grd_judginqrlst.rowStatus(i) = 1;
  800. }
  801. }
  802. }
  803. /**=========================================================================================================================
  804. * 판정문진의 입력서식을
  805. ===========================================================================================================================*/
  806. function fJudgInqrPrint() {
  807. setParameter("reportprintyn", ""); //출력여부 확인하기
  808. //판정내역
  809. var rsrvdd = model.getValue("/root/init/send/srchrsrvdd");
  810. if( rsrvdd == "") {
  811. messageBox("판정대상내역을 ", "C002");
  812. model.setFocus("cmb_srchrsrvdd");
  813. return ;
  814. }
  815. if(submit("TRAHA04418")) {
  816. var brthArea = model.getValue("/root/main/prntinfo/prnt/pat/brthareacnts");
  817. if(brthArea == "PP") { // 필리핀
  818. exeReportPreview("RPAHR04412", "XMLSTR", "", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
  819. }else if(brthArea == "ETC"){ // 기타해외
  820. exeReportPreview("RPAHR04411", "XMLSTR", "", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
  821. }
  822. if (getParameter("reportprintyn") == "Y"){ // 출력했으면..
  823. submit("TXAHA04415");
  824. }
  825. }
  826. }
  827. /***********************************************************************************************************************************************************************/
  828. /**===================================================================================
  829. @desc : 종합판정입력
  830. @param : 판정내역 및 질환코드내역
  831. =====================================================================================*/
  832. function fSaveJudgInqr(){
  833. //판정내역
  834. var rsrvdd = model.getValue("/root/init/send/srchrsrvdd");
  835. if( rsrvdd == "") {
  836. messageBox("판정대상내역을 ", "C002");
  837. model.setFocus("cmb_srchrsrvdd");
  838. return ;
  839. }
  840. if( messageBox("판정문진내역을 ", "Q002") !=6) return ;
  841. copyNodesetType("/root/send/savedata","/root/init/send/info", "replace");
  842. model.makeValue("/root/send/savedata/judginqr" , grd_judginqrlst.getUpdateData());
  843. if(submit("TXAHA04411")) {
  844. fGetJudglst("I");
  845. }
  846. }
  847. /*=====================================================================================
  848. @desc : 환자번호로 건진자 정보 가져오기...
  849. =====================================================================================*/
  850. function fGetPatinfoWithPid(sPid ) {
  851. if( sPid == "" ) return ;
  852. if(cmb_srchhealexamdetlflag2.value == "") {
  853. cmb_srchhealexamdetlflag2.value = m_vHealexamdetlflag;
  854. }
  855. if( ahafGetPatInfo(2, sPid, "" , "/root/init/send/item2" ) == true ) {
  856. model.setValue(ipt_srchpid2.attribute("ref") ,sPid);
  857. model.setValue(ipt_srchpnm2.attribute("ref") ,model.getValue("/root/temp/patinfo/item/hngnm"));
  858. model.setValue(opt_sex.attribute("ref") ,model.getValue("/root/temp/patinfo/item/sex"));
  859. model.setValue(opt_age.attribute("ref") ,model.getValue("/root/temp/patinfo/item/age"));
  860. //해당환자의 건진history조회
  861. ahafGetHistList2(sPid, cmb_srchhealexamdetlflag2.value , "E");
  862. }
  863. }
  864. /*=====================================================================================
  865. @desc : 로그인 된 사람이 판정의 경우 등록
  866. =====================================================================================*/
  867. function fSetJudgDr() {
  868. var licnsno = getUserInfo("licnsno");
  869. var selChk = false;
  870. for(var i=0; i < cmb_srchjudgdrid.length; i++) {
  871. // 판정의 의사번호가 있을 경우 선택
  872. if(cmb_srchjudgdrid.item(i).value == licnsno) {
  873. cmb_srchjudgdrid.select(i);
  874. model.makeValue("/root/hidden/judgdr" , licnsno);
  875. selChk = true;
  876. }
  877. }
  878. //선택된 것이 없으면 default
  879. if(selChk == false) {
  880. cmb_srchjudgdrid.select(0);
  881. }
  882. }
  883. /**==================================================================================================================
  884. @author : 손범성
  885. @version :2007-12-17
  886. @desc : 결과 판정을 체크한다.
  887. @param :
  888. ====================================================================================================================*/
  889. function fRsltJudgChk() {
  890. for(var i=1; i <= grd_rsltlst.rows; i++ ) {
  891. var judgrsltcnts1 = grd_rsltlst.valueMatrix( i , grd_rsltlst.colRef("judgrsltcnts1") );
  892. var judgrsltcnts2 = grd_rsltlst.valueMatrix( i , grd_rsltlst.colRef("judgrsltcnts2") );
  893. var judgrsltcnts3 = grd_rsltlst.valueMatrix( i , grd_rsltlst.colRef("judgrsltcnts3") );
  894. // 첫번째 건진 판정
  895. if(judgrsltcnts1 != "") {
  896. if(judgrsltcnts1 == "H") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts1") , i , grd_rsltlst.colRef("judgrsltcnts1")) = "#ff7a85";
  897. if(judgrsltcnts1 == "L") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts1") , i , grd_rsltlst.colRef("judgrsltcnts1")) = "#99ccff";
  898. grd_rsltlst.cellStyle("background-position" , i , grd_rsltlst.colRef("judgrsltcnts1") , i , grd_rsltlst.colRef("judgrsltcnts1")) = "center";
  899. }
  900. // 두번째 건진 판정
  901. if(judgrsltcnts2 != "") {
  902. if(judgrsltcnts2 == "H") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts2") , i , grd_rsltlst.colRef("judgrsltcnts2")) = "#ff7a85";
  903. if(judgrsltcnts2 == "L") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts2") , i , grd_rsltlst.colRef("judgrsltcnts2")) = "#99ccff";
  904. grd_rsltlst.cellStyle("background-position" , i , grd_rsltlst.colRef("judgrsltcnts2") , i , grd_rsltlst.colRef("judgrsltcnts2")) = "center";
  905. }
  906. // 세번째 건진 판정
  907. if(judgrsltcnts3 != "") {
  908. if(judgrsltcnts3 == "H") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts3") , i , grd_rsltlst.colRef("judgrsltcnts3")) = "#ff7a85";
  909. if(judgrsltcnts3 == "L") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts3") , i , grd_rsltlst.colRef("judgrsltcnts3")) = "#99ccff";
  910. grd_rsltlst.cellStyle("background-position" , i , grd_rsltlst.colRef("judgrsltcnts3") , i , grd_rsltlst.colRef("judgrsltcnts3")) = "center";
  911. }
  912. }
  913. for ( var i = 1; i <= grd_rslttextlst.rows; i++ ) {
  914. grd_rslttextlst.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
  915. grd_rslttextlst.rowstyle( i , "data" , "color" ) = "#000000";
  916. var olddd = grd_rslttextlst.valueMatrix(i, grd_rslttextlst.colRef("rsrvdd")).substring(0,4);
  917. var nowdd = cmb_srchrsrvdd.value.substring(0,4);
  918. if ( olddd == nowdd ) {
  919. grd_rslttextlst.rowstyle( i , "data" , "background-color" ) = "#CCFFCC";
  920. }
  921. }
  922. }
  923. /**==================================================================================================================
  924. @author : 손범성
  925. @version :2008-07-04
  926. @desc : 결과 판정을 체크한다.
  927. @param :
  928. ====================================================================================================================*/
  929. function fSetColRsltText(vRow) {
  930. if( vRow < 1 ) return ;
  931. var nodeList = instance1.selectNodes(grd_rslttextlst.attribute("nodeset") );
  932. if( nodeList == null ) return ;
  933. if( nodeList.length < 1 ) return ;
  934. model.makeNode(tar_rsltcnts1.attribute("ref"));
  935. model.makeNode(tar_rsltcnts2.attribute("ref"));
  936. model.makeNode(tar_rsltcnts3.attribute("ref"));
  937. model.setValue(tar_rsltcnts1.attribute("ref"), nodeList.item( vRow - 1 ).rslt1.text );
  938. model.setValue(tar_rsltcnts2.attribute("ref"), nodeList.item( vRow - 1 ).rslt2.text );
  939. model.setValue(tar_rsltcnts3.attribute("ref"), nodeList.item( vRow - 1 ).rslt3.text );
  940. model.refresh();
  941. }
  942. ]]>
  943. </script>
  944. </xhtml:head>
  945. <xhtml:body guideline="1,1196;2,757;2,939;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  946. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  947. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:75px; height:13px; ">종합판정</caption>
  948. </group>
  949. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  950. <switch id="switch1" style="left:3px; top:25px; width:1190px; height:713px; border-color:#c7a3cf; border-style:solid; ">
  951. <case id="case_pat">
  952. <line id="line6" class="line_1" style="x1:5px; y1:105px; x2:1182px; y2:105px; "/>
  953. <group id="group2" style="left:5px; top:9px; width:1179px; height:66px; vertical-align:top; ">
  954. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1178px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  955. <caption id="caption13" class="search_name" style="left:230px; top:10px; width:86px; height:17px; ">건진일자 :</caption>
  956. <caption id="caption14" class="search_name" style="left:11px; top:10px; width:89px; height:17px; ">건진종류 :</caption>
  957. <button id="btn_search" class="btn1_letter2" style="left:1113px; top:22px; width:56px; height:22px; ">
  958. <caption>조회</caption>
  959. <script type="javascript" ev:event="DOMActivate">
  960. <![CDATA[
  961. fGetJudgPatList();
  962. ]]>
  963. </script>
  964. </button>
  965. <line id="line16" style="x1:1101px; y1:10px; x2:1101px; y2:59px; border-color:#ffe4bb; border-left-style:solid; "/>
  966. <select1 id="cmb_srchhealexamdetlflag" ref="/root/init/send/srchhealexamdetlflag" class="combo_s_essential" disabled="true" appearance="minimal" style="left:101px; top:10px; width:105px; height:19px; ">
  967. <choices>
  968. <itemset nodeset="/root/init/baseinfo/hedetlflaglst/item">
  969. <label ref="cdnm"/>
  970. <value ref="cdid"/>
  971. </itemset>
  972. </choices>
  973. </select1>
  974. <input id="ipt_srchfromdd" ref="/root/init/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:319px; top:10px; width:100px; height:19px; "/>
  975. <input id="ipt_srchtodd" ref="/root/init/send/srchtodd" class="input_s_essential" inputtype="date" style="left:439px; top:10px; width:100px; height:19px; ">
  976. <script type="javascript" ev:event="xforms-value-changed">
  977. <![CDATA[
  978. fGetJudgPatList();
  979. ]]>
  980. </script>
  981. </input>
  982. <select1 id="cmb_srchjudgdrid" ref="/root/init/send/srchjudgdrid" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:91px; top:36px; width:105px; height:19px; ">
  983. <choices>
  984. <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
  985. <label ref="drnm"/>
  986. <value ref="drid"/>
  987. </itemset>
  988. </choices>
  989. <script type="javascript" ev:event="xforms-value-changed">
  990. <![CDATA[
  991. fGetJudgPatList();
  992. ]]>
  993. </script>
  994. </select1>
  995. <caption id="caption1" class="search_name" visibility="hidden" style="left:11px; top:35px; width:89px; height:17px; ">판정의 :</caption>
  996. <input id="ipt_pnm" ref="/root/init/send/srchpnm" class="input_default" style="left:781px; top:10px; width:105px; height:19px; "/>
  997. <input id="ipt_pid" ref="/root/init/send/srchpid" class="input_default" style="left:650px; top:10px; width:105px; height:19px; ">
  998. <script type="javascript" ev:event="onkeyup">
  999. <![CDATA[
  1000. if( event.keyCode != 13) return ;
  1001. if( !ahafGetPatInfo(2, ipt_pid.currentText , "" , "/root/init/send/item1" ) ) return ;
  1002. model.setValue("/root/init/send/item1/pid", model.getValue("/root/temp/patinfo/item/pid"));
  1003. model.setValue("/root/init/send/item1/hngnm", model.getValue("/root/temp/patinfo/item/hngnm") );
  1004. model.refresh();
  1005. if( model.getValue("/root/init/send/item1/pid") == "" ) return ;
  1006. fGetJudgPatList();
  1007. ]]>
  1008. </script>
  1009. </input>
  1010. <caption id="caption3" class="search_name" style="left:560px; top:10px; width:89px; height:17px; ">등록번호 :</caption>
  1011. <caption id="caption18" class="search_no_b" style="left:424px; top:11px; width:12px; height:17px; ">~</caption>
  1012. <button id="btn_srchpat" class="icon_search" style="left:759px; top:10px; width:16px; height:16px; ">
  1013. <caption/>
  1014. <script type="javascript" ev:event="DOMActivate">
  1015. <![CDATA[
  1016. fSearchPatInfo("SMAHA00100", "pnm", ipt_pnm.currentText , "N", "/root/send" ,ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
  1017. if( model.getValue(ipt_pid.attribute("ref")) != "" ) fGetJudgPatList();
  1018. ]]>
  1019. </script>
  1020. </button>
  1021. <select1 id="cmb_statflag" ref="/root/init/send/srchstatflag" class="combo_s_essential" appearance="minimal" style="left:990px; top:10px; width:105px; height:19px; ">
  1022. <choices>
  1023. <item>
  1024. <label>판정대기</label>
  1025. <value>1</value>
  1026. </item>
  1027. <item>
  1028. <label>1차판정</label>
  1029. <value>2</value>
  1030. </item>
  1031. <item>
  1032. <label>2차판정</label>
  1033. <value>3</value>
  1034. </item>
  1035. </choices>
  1036. <script type="javascript" ev:event="xforms-value-changed">
  1037. <![CDATA[
  1038. fGetJudgPatList();
  1039. ]]>
  1040. </script>
  1041. </select1>
  1042. </group>
  1043. <caption id="caption5" class="tit_2" style="left:5px; top:85px; width:151px; height:13px; ">대기자리스트</caption>
  1044. <caption id="caption31" class="search_name" style="left:905px; top:20px; width:97px; height:17px; ">상태구분 :</caption>
  1045. <datagrid id="grd_judgpatlst" nodeset="/root/main/judgpatlst/item" caption="상태^신검일자^한글이름^영문이름^등록번호^비자연번^성별^나이^패키지명^패키지코드^비고^rsrvdd^rsrvno^cretno^brthareacnts^orddd^rsrvtm^rrgstno1^rrgstno2^healexamflag^healexamdetlflag^judgdd^judgdrid^judgdd2^judgdrid2^judgstat" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 50, 50, 200, 100, 250, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:110px; width:1177px; height:596px; ">
  1046. <col disabled="true" ref="statflag" type="combo">
  1047. <choices>
  1048. <itemset nodeset="/root/init/baseinfo/statlst/A0107">
  1049. <label ref="cdnm"/>
  1050. <value ref="cdid"/>
  1051. </itemset>
  1052. </choices>
  1053. </col>
  1054. <col ref="hopedd" format="yyyy-mm-dd"/>
  1055. <col ref="hngnm"/>
  1056. <col ref="engnm"/>
  1057. <col ref="pid"/>
  1058. <col ref="visano"/>
  1059. <col ref="sex"/>
  1060. <col ref="age"/>
  1061. <col ref="pkgnm"/>
  1062. <col ref="pkgcd" visibility="hidden"/>
  1063. <col ref="acptremcnts" type="input"/>
  1064. <col ref="rsrvdd" visibility="hidden"/>
  1065. <col ref="rsrvno" visibility="hidden"/>
  1066. <col ref="cretno" visibility="hidden"/>
  1067. <col ref="brthareacnts" visibility="hidden"/>
  1068. <col ref="orddd" visibility="hidden"/>
  1069. <col ref="rsrvtm" visibility="hidden"/>
  1070. <col ref="rgstno1" visibility="hidden"/>
  1071. <col ref="rgstno2" visibility="hidden" style="left:1870px; top:23px; width:100px; height:23px; "/>
  1072. <col ref="healexamflag" visibility="hidden"/>
  1073. <col ref="healexamdetlflag" visibility="hidden"/>
  1074. <col ref="judgdd" visibility="hidden"/>
  1075. <col ref="judgdrid" visibility="hidden"/>
  1076. <col ref="judgdd2" visibility="hidden"/>
  1077. <col ref="judgdrid2" visibility="hidden"/>
  1078. <col ref="judgstat" visibility="hidden"/>
  1079. <script type="javascript" ev:event="ondblclick">
  1080. <![CDATA[
  1081. fGetJudgInfo();
  1082. ]]>
  1083. </script>
  1084. </datagrid>
  1085. </case>
  1086. <case id="case_judg" selected="true">
  1087. <datagrid id="grd_rsltlst" nodeset="/root/main/judgdetl/rsltlst/item" caption="처방명칭^2007^판정^2006^판정^2005^판정^단위^기준^testcd^execprcpuniqno^prcpdd" colsep="^" colwidth="99, 62, 30, 59, 30, 56, 30, 53, 87, 50 , 50 , 50" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:5px; top:142px; width:540px; height:373px; ">
  1088. <col ref="testnm"/>
  1089. <col ref="rslt1"/>
  1090. <col ref="judgrsltcnts1" style="text-align:center; "/>
  1091. <col ref="rslt2"/>
  1092. <col ref="judgrsltcnts2" style="text-align:center; "/>
  1093. <col ref="rslt3"/>
  1094. <col ref="judgrsltcnts3" style="text-align:center; "/>
  1095. <col ref="rsltunit"/>
  1096. <col ref="stndval"/>
  1097. <col ref="testcd" visibility="hidden"/>
  1098. <col ref="execprcpuniqno" visibility="hidden"/>
  1099. <col ref="prcpdd" visibility="hidden"/>
  1100. <script type="javascript" ev:event="onclick">
  1101. <![CDATA[
  1102. model.makeValue("/root/temp/seqno", model.getValue("/root/main/judgdetl/rsltlst/item["+grd_rsltlst.row+"]/execprcpuniqno"));
  1103. model.makeValue("/root/temp/prcpdd",model.getValue("/root/main/judgdetl/rsltlst/item["+grd_rsltlst.row+"]/prcpdd"));
  1104. ]]>
  1105. </script>
  1106. </datagrid>
  1107. <datagrid id="grd_rslttextlst" nodeset="/root/main/judgdetl/rsltlst/itemtext" caption="처방명칭^testcd^caption1^caption2^execprcpuniqno^prcpdd^rsrvdd" colsep="^" colwidth="197, 100, 100, 100, 50, 50, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:522px; width:233px; height:183px; ">
  1108. <col ref="testnm"/>
  1109. <col ref="testcd" visibility="hidden"/>
  1110. <col ref="judgrslt" visibility="hidden"/>
  1111. <col ref="rslt1" visibility="hidden"/>
  1112. <col ref="execprcpuniqno" visibility="hidden"/>
  1113. <col ref="prcpdd" visibility="hidden"/>
  1114. <col ref="rsrvdd" visibility="hidden"/>
  1115. <script type="javascript" ev:event="onclick">
  1116. <![CDATA[
  1117. fSetColRsltText(grd_rslttextlst.row);
  1118. model.makeValue("/root/temp/seqno", model.getValue("/root/main/judgdetl/rsltlst/itemtext["+grd_rslttextlst.row+"]/execprcpuniqno"));
  1119. model.makeValue("/root/temp/prcpdd",model.getValue("/root/main/judgdetl/rsltlst/itemtext["+grd_rslttextlst.row+"]/prcpdd"));
  1120. ]]>
  1121. </script>
  1122. <script type="javascript" ev:event="onkeydown">
  1123. <![CDATA[
  1124. var idx = grd_rslttextlst.row;
  1125. if(event.keyCode == 38 && idx > 0) {
  1126. fSetColRsltText( idx - 1 );
  1127. }else if(event.keyCode == 40 && idx < grd_rslttextlst.rows -1) {
  1128. fSetColRsltText( idx + 1 );
  1129. }
  1130. ]]>
  1131. </script>
  1132. </datagrid>
  1133. <group id="group5" style="left:240px; top:522px; width:306px; height:183px; vertical-align:top; ">
  1134. <caption id="cap_year1" ref="/root/main/judgdetl/rsltlst/itemorddd/hopedd1" class="cell_1" format="yyyy" roundmode="round" style="left:-2px; top:1px; width:35px; height:60px; vertical-align:middle; cursor:hand; ">
  1135. <![CDATA[2006]]>
  1136. <script type="javascript" ev:event="ondblclick">
  1137. <![CDATA[
  1138. fSetLargView(tar_rsltcnts1.value, cap_year1.value);
  1139. ]]>
  1140. </script>
  1141. </caption>
  1142. <caption id="cap_year2" ref="/root/main/judgdetl/rsltlst/itemorddd/hopedd2" class="cell_1" format="yyyy" style="left:-2px; top:62px; width:35px; height:60px; vertical-align:middle; cursor:hand; ">
  1143. <![CDATA[2005]]>
  1144. <script type="javascript" ev:event="ondblclick">
  1145. <![CDATA[
  1146. fSetLargView(tar_rsltcnts2.value, cap_year2.value);
  1147. ]]>
  1148. </script>
  1149. </caption>
  1150. <caption id="cap_year3" ref="/root/main/judgdetl/rsltlst/itemorddd/hopedd3" class="cell_1" format="yyyy" style="left:-2px; top:123px; width:35px; height:60px; vertical-align:middle; cursor:hand; ">
  1151. <![CDATA[2004]]>
  1152. <script type="javascript" ev:event="ondblclick">
  1153. <![CDATA[
  1154. fSetLargView(tar_rsltcnts3.value, cap_year3.value);
  1155. ]]>
  1156. </script>
  1157. </caption>
  1158. <textarea id="tar_rsltcnts1" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt1" scroll="vertical" editable="false" style="left:36px; top:2px; width:268px; height:56px; "/>
  1159. <textarea id="tar_rsltcnts3" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt3" scroll="vertical" editable="false" style="left:36px; top:125px; width:268px; height:56px; "/>
  1160. <textarea id="tar_rsltcnts2" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt2" scroll="vertical" editable="false" style="left:36px; top:64px; width:268px; height:56px; "/>
  1161. <line id="line4" class="line_2" style="x1:-2px; y1:-1px; x2:292px; y2:-1px; "/>
  1162. <line id="line5" class="line_2" style="x1:30px; y1:121px; x2:304px; y2:121px; "/>
  1163. <line id="line7" class="line_2" style="x1:30px; y1:60px; x2:304px; y2:60px; "/>
  1164. </group>
  1165. <line id="line9" class="line_1" style="x1:5px; y1:517px; x2:546px; y2:517px; "/>
  1166. <line id="line11" class="line_3" style="x1:5px; y1:706px; x2:536px; y2:706px; "/>
  1167. <caption id="caption4" class="tit_2" style="left:5px; top:95px; width:100px; height:13px; ">종합판정</caption>
  1168. <caption id="caption23" class="cell_1" style="left:5px; top:117px; width:60px; height:23px; vertical-align:middle; ">패키지명</caption>
  1169. <output id="opt_pkgnm" ref="/root/init/send/srchpkgnm" class="output_fix" appearance="output" style="left:67px; top:118px; width:478px; height:19px; "/>
  1170. <line id="line8" class="line_3" style="x1:5px; y1:139px; x2:546px; y2:139px; "/>
  1171. <group id="group1" style="left:5px; top:5px; width:541px; height:85px; vertical-align:top; ">
  1172. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:540px; height:84px; background-color:#fffbf2; border-color:#ffd799; "/>
  1173. <caption id="caption22" class="search_name" style="left:11px; top:8px; width:89px; height:17px; ">건진종류 :</caption>
  1174. <button id="btn_searchhist" class="btn1_letter2" style="left:460px; top:30px; width:56px; height:22px; ">
  1175. <caption>조회</caption>
  1176. <script type="javascript" ev:event="DOMActivate">
  1177. <![CDATA[
  1178. var vPid = model.getValue(ipt_srchpid2.attribute("ref")) ;
  1179. if( vPid != "" ) {
  1180. //해당환자의 건진history조회
  1181. ahafGetHistList2(vPid, cmb_srchhealexamdetlflag.value , "E");
  1182. cmb_srchrsrvdd.select(0);
  1183. }
  1184. ]]>
  1185. </script>
  1186. </button>
  1187. <line id="line1" style="x1:443px; y1:10px; x2:443px; y2:72px; border-color:#ffe4bb; border-left-style:solid; "/>
  1188. <select1 id="cmb_srchhealexamdetlflag2" ref="/root/init/send/srchhealexamdetlflag2" class="combo_s_essential" disabled="true" appearance="minimal" style="left:101px; top:8px; width:105px; height:19px; ">
  1189. <choices>
  1190. <itemset nodeset="/root/init/baseinfo/hedetlflaglst/item">
  1191. <label ref="cdnm"/>
  1192. <value ref="cdid"/>
  1193. </itemset>
  1194. </choices>
  1195. </select1>
  1196. <input id="ipt_srchpnm2" ref="/root/init/send/srchpnm2" class="input_default" style="left:232px; top:32px; width:115px; height:19px; ">
  1197. <script type="javascript" ev:event="onkeyup">
  1198. <![CDATA[
  1199. inputEnterKey("btn_search2","DOMActivate" );
  1200. ]]>
  1201. </script>
  1202. </input>
  1203. <input id="ipt_srchpid2" ref="/root/init/send/srchpid2" class="input_default" style="left:101px; top:32px; width:105px; height:19px; ">
  1204. <script type="javascript" ev:event="onkeyup">
  1205. <![CDATA[
  1206. if( event.keyCode == 13 ){
  1207. //건진자 정보 가져오기...
  1208. fGetPatinfoWithPid(ipt_srchpid2.currentText);
  1209. }
  1210. ]]>
  1211. </script>
  1212. </input>
  1213. <caption id="caption26" class="search_name" style="left:11px; top:32px; width:89px; height:17px; ">등록번호 :</caption>
  1214. <caption id="caption2" class="search_name" style="left:10px; top:55px; width:86px; height:17px; ">건진정보 :</caption>
  1215. <select1 id="cmb_srchrsrvdd" ref="/root/init/send/srchrsrvdd" class="combo_s_essential" appearance="minimal" style="left:101px; top:55px; width:325px; height:19px; ">
  1216. <choices>
  1217. <itemset nodeset="/root/temp/histlst/item">
  1218. <label ref="hopedd"/>
  1219. <value ref="rsrvdd"/>
  1220. </itemset>
  1221. </choices>
  1222. <script type="javascript" ev:event="xforms-select">
  1223. <![CDATA[
  1224. var idx = cmb_srchrsrvdd.mouseRow;
  1225. if( idx < 0) return ;
  1226. var sNd = cmb_srchrsrvdd.choices.itemset.attribute("nodeset") ;
  1227. var nodelist = instance1.selectNodes(sNd);
  1228. if( nodelist == null ) return ;
  1229. if(idx >= nodelist.length) idx = 0;
  1230. var sRsrvdd = nodelist.item(idx).rsrvdd.text;
  1231. var sRsrvno = nodelist.item(idx).rsrvno.text;
  1232. var sPkgnm = nodelist.item(idx).pkgnm.text;
  1233. var sPid = nodelist.item(idx).pid.text;
  1234. var sOrdDD = nodelist.item(idx).orddd.text;
  1235. var sCretno = nodelist.item(idx).cretno.text;
  1236. copyNodesetType("/root/init/send/info" , sNd + "[" + (idx + 1) + "]" , "replace");
  1237. fGetJudgDetlInfo( sRsrvdd, sRsrvno , sPkgnm, sPid, sOrdDD , sCretno );
  1238. ]]>
  1239. </script>
  1240. </select1>
  1241. <output id="opt_sex" ref="/root/init/send/srchsex" class="output_fix" style="left:350px; top:32px; width:36px; height:19px; "/>
  1242. <output id="opt_age" ref="/root/init/send/srchage" class="output_fix" style="left:389px; top:32px; width:36px; height:19px; "/>
  1243. <button id="btn_search2" class="icon_search" style="left:210px; top:32px; width:16px; height:16px; ">
  1244. <caption/>
  1245. <script type="javascript" ev:event="DOMActivate">
  1246. <![CDATA[
  1247. fSearchPatInfo("SMAHA00100", "pnm", ipt_srchpnm2.currentText , "Y", "/root/temp/patinfo/item");
  1248. model.setValue("/root/init/send/srchpid2" , model.getValue("/root/temp/patinfo/item/pid"));
  1249. model.setValue("/root/init/send/srchpnm2" , model.getValue("/root/temp/patinfo/item/hngnm"));
  1250. model.setValue("/root/init/send/srchsex" , model.getValue("/root/temp/patinfo/item/sex"));
  1251. model.setValue("/root/init/send/srchage" , model.getValue("/root/temp/patinfo/item/age"));
  1252. var vPid = model.getValue(ipt_srchpid2.attribute("ref")) ;
  1253. if( vPid != "" ) {
  1254. //해당환자의 건진history조회
  1255. ahafGetHistList2(vPid, cmb_srchhealexamdetlflag.value , "E");
  1256. }
  1257. ]]>
  1258. </script>
  1259. </button>
  1260. </group>
  1261. <line id="line2" class="line_1" style="x1:5px; y1:112px; x2:546px; y2:112px; "/>
  1262. <input id="ipt_meddd" ref="/root/main/judgdetl/medinfo/item/meddd" class="input_essential" disabled="true" inputtype="date" style="left:614px; top:8px; width:95px; height:19px; "/>
  1263. <line id="line23" class="line_3" style="x1:552px; y1:5px; x2:1184px; y2:5px; "/>
  1264. <select1 id="cmb_meddr" ref="/root/main/judgdetl/medinfo/item/meddrid" class="combo_essential" disabled="true" appearance="minimal" style="left:760px; top:8px; width:95px; height:19px; ">
  1265. <choices>
  1266. <itemset nodeset="/root/init/baseinfo/meddrlst/itemdr">
  1267. <label ref="drnm"/>
  1268. <value ref="drid"/>
  1269. </itemset>
  1270. </choices>
  1271. <script type="javascript" ev:event="xforms-value-changed">
  1272. <![CDATA[
  1273. model.property("judgdr") = cmb_judgdr.value;
  1274. ]]>
  1275. </script>
  1276. </select1>
  1277. <caption id="caption6" class="cell_1" style="left:712px; top:6px; width:45px; height:23px; vertical-align:middle; ">진찰의</caption>
  1278. <caption id="caption8" class="cell_1" style="left:552px; top:6px; width:59px; height:23px; vertical-align:middle; ">진찰일자</caption>
  1279. <switch id="switch2" style="left:552px; top:60px; width:630px; height:455px; ">
  1280. <case id="case_med" selected="true" style="left:0px; top:0px; width:630px; height:455px; ">
  1281. <datagrid id="grd_medpast" nodeset="/root/main/judgdetl/medinfo/past" caption="진찰명^결과값^비고^문진분류^문진코드^결과코드^문진유형^STAT" colsep="^" colwidth="95, 85, 90, 50, 50, 50, 50, 50" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:30px; width:310px; height:214px; ">
  1282. <col ref="medinqrnm"/>
  1283. <col ref="medrsltcnts"/>
  1284. <col ref="medremcnts"/>
  1285. <col ref="medinqrflag" visibility="hidden"/>
  1286. <col ref="medinqrcd" visibility="hidden"/>
  1287. <col ref="medrsltcd" visibility="hidden"/>
  1288. <col ref="answcdflag" visibility="hidden"/>
  1289. <col ref="stat" visibility="hidden"/>
  1290. </datagrid>
  1291. <caption id="caption9" class="tit_2" style="left:5px; top:10px; width:151px; height:14px; ">1. 과거력</caption>
  1292. <line id="line10" class="line_1" style="x1:5px; y1:25px; x2:315px; y2:25px; "/>
  1293. <datagrid id="grd_medbody" nodeset="/root/main/judgdetl/medinfo/body" caption="진찰명^결과값^비고^문진분류^문진코드^결과코드^문진유형^STAT" colsep="^" colwidth="95, 85, 85, 50, 50, 50, 50, 50" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:320px; top:30px; width:305px; height:214px; ">
  1294. <col ref="medinqrnm"/>
  1295. <col ref="medrsltcnts"/>
  1296. <col ref="medremcnts"/>
  1297. <col ref="medinqrflag" visibility="hidden"/>
  1298. <col ref="medinqrcd" visibility="hidden"/>
  1299. <col ref="medrsltcd" visibility="hidden"/>
  1300. <col ref="answcdflag" visibility="hidden"/>
  1301. <col ref="stat" visibility="hidden"/>
  1302. </datagrid>
  1303. <line id="line12" class="line_1" style="x1:320px; y1:25px; x2:625px; y2:25px; "/>
  1304. <caption id="caption11" class="tit_2" style="left:320px; top:10px; width:151px; height:13px; ">2. 신체검사</caption>
  1305. <datagrid id="grd_medsocl" nodeset="/root/main/judgdetl/medinfo/socl" caption="진찰명^결과값^비고^문진분류^문진코드^결과코드^문진유형^STAT" colsep="^" colwidth="95, 85, 90, 50, 50, 50, 50, 50" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:270px; width:310px; height:179px; ">
  1306. <col ref="medinqrnm"/>
  1307. <col ref="medrsltcnts"/>
  1308. <col ref="medremcnts"/>
  1309. <col ref="medinqrflag" visibility="hidden"/>
  1310. <col ref="medinqrcd" visibility="hidden"/>
  1311. <col ref="medrsltcd" visibility="hidden"/>
  1312. <col ref="answcdflag" visibility="hidden"/>
  1313. <col ref="stat" visibility="hidden"/>
  1314. </datagrid>
  1315. <line id="line13" class="line_1" style="x1:5px; y1:264px; x2:315px; y2:264px; "/>
  1316. <caption id="caption12" class="tit_2" style="left:5px; top:249px; width:151px; height:18px; ">3. 사회력</caption>
  1317. <caption id="caption15" class="tit_2" style="left:320px; top:249px; width:151px; height:13px; ">4. 가족력</caption>
  1318. <datagrid id="grd_medfamy" nodeset="/root/main/judgdetl/medinfo/famy" caption="진찰명^결과값^비고^문진분류^문진코드^결과코드^문진유형^STAT" colsep="^" colwidth="100, 90, 90, 50, 50, 50, 50, 50" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:320px; top:270px; width:305px; height:179px; ">
  1319. <col ref="medinqrnm"/>
  1320. <col ref="medrsltcnts"/>
  1321. <col ref="medremcnts"/>
  1322. <col ref="medinqrflag" visibility="hidden"/>
  1323. <col ref="medinqrcd" visibility="hidden"/>
  1324. <col ref="medrsltcd" visibility="hidden"/>
  1325. <col ref="answcdflag" visibility="hidden"/>
  1326. <col ref="stat" visibility="hidden"/>
  1327. </datagrid>
  1328. <line id="line14" class="line_1" style="x1:320px; y1:264px; x2:625px; y2:264px; "/>
  1329. </case>
  1330. <case id="case_prnt">
  1331. <line id="line15" class="line_1" style="x1:5px; y1:25px; x2:622px; y2:25px; "/>
  1332. <caption id="caption16" class="tit_2" style="left:5px; top:10px; width:136px; height:14px; ">출력내역</caption>
  1333. <datagrid id="grd_judginqrlst" nodeset="/root/main/judgdetl/judginfo/judginqr" caption="출력명^출력값^비고^문진분류^문진코드^결과코드^문진유형^STAT^LRGRSLTYN" colsep="^" colwidth="200, 200, 190, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:30px; width:617px; height:418px; ">
  1334. <col ref="judginqrnm"/>
  1335. <col ref="judgrsltcnts" type="input"/>
  1336. <col ref="judgremcnts" type="input"/>
  1337. <col ref="judginqrflag" visibility="hidden"/>
  1338. <col ref="judginqrcd" visibility="hidden"/>
  1339. <col ref="judgrsltcd" visibility="hidden"/>
  1340. <col ref="answcdflag" visibility="hidden"/>
  1341. <col ref="stat" visibility="hidden"/>
  1342. <col ref="lrgrsltyn" visibility="hidden"/>
  1343. <script type="javascript" ev:event="xforms-value-changed">
  1344. <![CDATA[
  1345. if(isDataCell()) {
  1346. if(grd_judginqrlst.col == grd_judginqrlst.colRef("judgrsltcnts")) {
  1347. fSetChoiAnsw(grd_judginqrlst);
  1348. grd_judginqrlst.row = grd_judginqrlst.row + 1;
  1349. grd_judginqrlst.dispatch("onrowchanged");
  1350. }
  1351. }
  1352. ]]>
  1353. </script>
  1354. <script type="javascript" ev:event="onstartedit">
  1355. <![CDATA[
  1356. if(grd_judginqrlst.col == grd_judginqrlst.colRef("judgrsltcnts")) { ;
  1357. fSetAnswVisible(grd_judginqrlst);
  1358. }
  1359. ]]>
  1360. </script>
  1361. <script type="javascript" ev:event="onrowchanged">
  1362. <![CDATA[
  1363. if(grd_judginqrlst.col == grd_judginqrlst.colRef("judgrsltcnts")) { ;
  1364. fSetAnswVisible(grd_judginqrlst);
  1365. }
  1366. ]]>
  1367. </script>
  1368. <script type="javascript" ev:event="onclick">
  1369. <![CDATA[
  1370. if(isDataCell()) {
  1371. if(grd_judginqrlst.col == grd_judginqrlst.colRef("judgrsltcnts")) {
  1372. grd_judginqrlst.editCell();
  1373. }
  1374. }
  1375. ]]>
  1376. </script>
  1377. </datagrid>
  1378. <button id="button3" class="btn5_letter4" style="left:558px; top:5px; width:64px; height:19px; ">
  1379. <caption>출력저장</caption>
  1380. <script type="javascript" ev:event="DOMActivate">
  1381. <![CDATA[
  1382. fSaveJudgInqr();
  1383. ]]>
  1384. </script>
  1385. </button>
  1386. </case>
  1387. </switch>
  1388. <line id="line3" class="line_3" style="x1:552px; y1:29px; x2:1184px; y2:29px; "/>
  1389. <input id="ipt_judgdd" ref="/root/main/judgdetl/judginfo/judg/judgdd" class="input_essential" disabled="true" inputtype="date" style="left:939px; top:8px; width:95px; height:19px; "/>
  1390. <select1 id="cmb_judgdr" ref="/root/main/judgdetl/judginfo/judg/judgdrid" class="combo_essential" appearance="minimal" style="left:1085px; top:8px; width:95px; height:19px; ">
  1391. <choices>
  1392. <itemset nodeset="/root/init/baseinfo/judgdrlst/itemdr">
  1393. <label ref="drnm"/>
  1394. <value ref="drid"/>
  1395. </itemset>
  1396. </choices>
  1397. <script type="javascript" ev:event="xforms-value-changed">
  1398. <![CDATA[
  1399. model.property("judgdr") = cmb_judgdr.value;
  1400. ]]>
  1401. </script>
  1402. </select1>
  1403. <caption id="caption7" class="cell_1" style="left:1037px; top:6px; width:45px; height:23px; vertical-align:middle; ">판정의</caption>
  1404. <caption id="caption10" class="cell_1" style="left:877px; top:6px; width:59px; height:23px; vertical-align:middle; ">판정일자</caption>
  1405. <switch id="switch3" style="left:552px; top:545px; width:630px; height:160px; ">
  1406. <case id="case_judg1" selected="true">
  1407. <textarea id="txt_judga1" ref="/root/main/judgdetl/judginfo/judg/judg1/judgcntsa" style="left:70px; top:5px; width:553px; height:70px; "/>
  1408. <textarea id="txt_judgb1" ref="/root/main/judgdetl/judginfo/judg/judg1/judgcntsb" style="left:70px; top:79px; width:553px; height:74px; "/>
  1409. <select1 id="rdo_judgflag1" ref="/root/main/judgdetl/judginfo/judg/judg1/judgflag" appearance="full" vcellspacing="60" overflow="visible" style="left:5px; top:5px; width:60px; height:145px; border-style:none; ">
  1410. <choices>
  1411. <itemset nodeset="/root/init/baseinfo/fstjudglst/V005">
  1412. <label ref="cdnm"/>
  1413. <value ref="cdid"/>
  1414. </itemset>
  1415. </choices>
  1416. <script type="javascript" ev:event="xforms-value-changed">
  1417. <![CDATA[
  1418. var judgflag = rdo_judgflag1.value;
  1419. if(judgflag == "A") {
  1420. model.setValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsb" ,"");
  1421. }else if(judgflag == "B") {
  1422. model.setValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsa" ,"");
  1423. }
  1424. txt_judga1.refresh();
  1425. txt_judgb1.refresh();
  1426. ]]>
  1427. </script>
  1428. </select1>
  1429. </case>
  1430. <case id="case_judg2">
  1431. <textarea id="txt_judga2" ref="/root/main/judgdetl/judginfo/judg/judg2/judgcntsa" style="left:70px; top:5px; width:553px; height:70px; "/>
  1432. <textarea id="txt_judgb2" ref="/root/main/judgdetl/judginfo/judg/judg2/judgcntsb" style="left:70px; top:79px; width:553px; height:74px; "/>
  1433. <select1 id="rdo_judgflag2" ref="/root/main/judgdetl/judginfo/judg/judg2/judgflag" appearance="full" vcellspacing="60" overflow="visible" style="left:5px; top:5px; width:60px; height:145px; border-style:none; ">
  1434. <choices>
  1435. <itemset nodeset="/root/init/baseinfo/sendjudglst/V006">
  1436. <label ref="cdnm"/>
  1437. <value ref="cdid"/>
  1438. </itemset>
  1439. </choices>
  1440. <script type="javascript" ev:event="xforms-value-changed">
  1441. <![CDATA[
  1442. var judgflag = rdo_judgflag2.value;
  1443. if(judgflag == "A") {
  1444. model.setValue("/root/main/judgdetl/judginfo/judg/judg2/judgcntsb" ,"");
  1445. }else if(judgflag == "B") {
  1446. model.setValue("/root/main/judgdetl/judginfo/judg/judg2/judgcntsa" ,"");
  1447. }
  1448. txt_judga2.refresh();
  1449. txt_judgb2.refresh();
  1450. ]]>
  1451. </script>
  1452. </select1>
  1453. </case>
  1454. <case id="case_chest">
  1455. <select1 id="radio1" ref="/root/main/judgdetl/judginfo/judg/judgchest/judgchestflag" appearance="full" cellspacing="60" cols="2" overflow="visible" style="left:5px; top:30px; width:615px; height:30px; border-style:none; ">
  1456. <choices>
  1457. <itemset nodeset="/root/init/baseinfo/chestjudglst/V007">
  1458. <label ref="cdnm"/>
  1459. <value ref="cdid"/>
  1460. </itemset>
  1461. </choices>
  1462. <script type="javascript" ev:event="xforms-value-changed">
  1463. <![CDATA[
  1464. ]]>
  1465. </script>
  1466. </select1>
  1467. <select1 id="radio2" ref="/root/main/judgdetl/judginfo/judg/judgchest/judgchestflag2" appearance="full" cellspacing="60" cols="2" overflow="visible" style="left:5px; top:93px; width:615px; height:30px; border-style:none; ">
  1468. <choices>
  1469. <itemset nodeset="/root/init/baseinfo/chestjudglst/V007">
  1470. <label ref="cdnm"/>
  1471. <value ref="cdid"/>
  1472. </itemset>
  1473. </choices>
  1474. </select1>
  1475. <caption id="caption17" class="tit_2" style="left:5px; top:10px; width:151px; height:14px; ">CHEST PA</caption>
  1476. <caption id="caption20" class="tit_2" style="left:5px; top:70px; width:151px; height:14px; ">OTHERS</caption>
  1477. </case>
  1478. </switch>
  1479. <button id="btn_med" class="btn_sw" group="tab_2" selected="true" style="left:552px; top:39px; width:80px; height:22px; ">
  1480. <caption>진찰내역</caption>
  1481. <toggle case="case_med" ev:event="onclick"/>
  1482. </button>
  1483. <button id="btn_prnt" class="btn_sw" group="tab_2" style="left:632px; top:39px; width:80px; height:22px; ">
  1484. <caption>판정</caption>
  1485. <toggle case="case_prnt" ev:event="onclick"/>
  1486. </button>
  1487. <button id="btn_judgtab1" class="btn_sw" group="tab_3" selected="true" style="left:552px; top:524px; width:80px; height:22px; ">
  1488. <caption>1차판정</caption>
  1489. <script type="javascript" ev:event="onclick">
  1490. <![CDATA[
  1491. model.toggle("case_judg1");
  1492. case_judg1.selected = true;
  1493. model.setValue(ipt_judgdd.attribute("ref") , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdd"));
  1494. model.setValue(cmb_judgdr.attribute("ref") , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdrid"));
  1495. ipt_judgdd.refresh();
  1496. cmb_judgdr.refresh();
  1497. ]]>
  1498. </script>
  1499. </button>
  1500. <button id="btn_judgtab2" class="btn_sw" group="tab_3" style="left:632px; top:524px; width:80px; height:22px; ">
  1501. <caption>2차판정</caption>
  1502. <script type="javascript" ev:event="onclick">
  1503. <![CDATA[
  1504. model.toggle("case_judg2");
  1505. case_judg2.selected = true;
  1506. model.setValue(ipt_judgdd.attribute("ref") , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdd2"));
  1507. model.setValue(cmb_judgdr.attribute("ref") , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdrid2"));
  1508. ipt_judgdd.refresh();
  1509. cmb_judgdr.refresh();
  1510. ]]>
  1511. </script>
  1512. </button>
  1513. <button id="btn_attfile" class="btn2_letter4" style="left:1118px; top:525px; width:64px; height:19px; ">
  1514. <caption>첨부파일</caption>
  1515. <script type="javascript" ev:event="DOMActivate">
  1516. <![CDATA[
  1517. window.load( "../../../ast/healthexamjudgweb/xrw/SPAHA04410_판정이미지관리.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" , "/root/init/send/info" , "/root/init/send");
  1518. ]]>
  1519. </script>
  1520. </button>
  1521. <button id="btn_judg1" class="btn5_letter4" style="left:1053px; top:525px; width:64px; height:19px; ">
  1522. <caption>판정저장</caption>
  1523. <script type="javascript" ev:event="DOMActivate">
  1524. <![CDATA[
  1525. //판정내역
  1526. var rsrvdd = model.getValue("/root/init/send/srchrsrvdd");
  1527. if( rsrvdd == "") {
  1528. messageBox("판정대상내역을 ", "C002");
  1529. model.setFocus("cmb_srchrsrvdd");
  1530. return ;
  1531. }
  1532. var judgdrid = model.getValue("/root/main/judgdetl/judginfo/judg/judgdrid");
  1533. if(judgdrid == "" || judgdrid == "-") {
  1534. messageBox("판정의사를","C002");
  1535. return;
  1536. }
  1537. var judgflag = model.getValue("/root/main/judgdetl/judginfo/judg/judg1/judgflag");
  1538. if(judgflag == "") {
  1539. messageBox("판정구분을","C002");
  1540. return;
  1541. }
  1542. copyNodesetType("/root/send/savedata","/root/init/send/info", "replace");
  1543. model.makeValue("/root/send/savedata/judgdd" , model.getValue("/root/main/judgdetl/judginfo/judg/judgdd"));
  1544. model.makeValue("/root/send/savedata/judgdrid" , model.getValue("/root/main/judgdetl/judginfo/judg/judgdrid"));
  1545. model.makeValue("/root/send/savedata/judgflag" , judgflag);
  1546. if(judgflag == "A") {
  1547. model.makeValue("/root/send/savedata/judgcnts" , model.getValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsa"));
  1548. }else if(judgflag == "B") {
  1549. if(model.getValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsb") == "") {
  1550. messageBox("판정 내용을 입력하세요." , "");
  1551. return;
  1552. }
  1553. model.makeValue("/root/send/savedata/judgcnts" , model.getValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsb"));
  1554. }
  1555. model.makeValue("/root/send/savedata/judgstat" , "1")
  1556. if(submit("TXAHA04412")) {
  1557. fGetJudglst("J");
  1558. fGetJudgPatList();
  1559. }
  1560. ]]>
  1561. </script>
  1562. </button>
  1563. <button id="btn_judg2" class="btn5_letter4" style="left:988px; top:525px; width:64px; height:19px; ">
  1564. <caption>이중판정</caption>
  1565. <script type="javascript" ev:event="DOMActivate">
  1566. <![CDATA[
  1567. //판정내역
  1568. var rsrvdd = model.getValue("/root/init/send/srchrsrvdd");
  1569. if( rsrvdd == "") {
  1570. messageBox("판정대상내역을 ", "C002");
  1571. model.setFocus("cmb_srchrsrvdd");
  1572. return ;
  1573. }
  1574. var judgdrid = model.getValue("/root/main/judgdetl/judginfo/judg/judgdrid");
  1575. if(judgdrid == "" || judgdrid == "-") {
  1576. messageBox("판정의사를","C002");
  1577. return;
  1578. }
  1579. var judgflag = model.getValue("/root/main/judgdetl/judginfo/judg/judg2/judgflag");
  1580. if(judgflag == "") {
  1581. messageBox("판정구분을","C002");
  1582. return;
  1583. }
  1584. copyNodesetType("/root/send/savedata","/root/init/send/info", "replace");
  1585. model.makeValue("/root/send/savedata/judgdd" , model.getValue("/root/main/judgdetl/judginfo/judg/judgdd"));
  1586. model.makeValue("/root/send/savedata/judgdrid" , model.getValue("/root/main/judgdetl/judginfo/judg/judgdrid"));
  1587. model.makeValue("/root/send/savedata/judgflag" , judgflag);
  1588. if(judgflag == "A") {
  1589. model.makeValue("/root/send/savedata/judgcnts" , model.getValue("/root/main/judgdetl/judginfo/judg/judg2/judgcntsa"));
  1590. }else if(judgflag == "B") {
  1591. model.makeValue("/root/send/savedata/judgcnts" , model.getValue("/root/main/judgdetl/judginfo/judg/judg2/judgcntsb"));
  1592. }
  1593. model.makeValue("/root/send/savedata/judgstat" , "2");
  1594. if(submit("TXAHA04412")) {
  1595. fGetJudglst("J");
  1596. fGetJudgPatList();
  1597. }
  1598. ]]>
  1599. </script>
  1600. </button>
  1601. <group id="grp_answ" visibility="hidden" style="left:275px; top:185px; width:260px; height:195px; ">
  1602. <datagrid id="grd_answlst" nodeset="/root/hidden/answlst/item" visibility="visible" caption="코드^답안내용^검사코드" colsep="^" colwidth="30, 198, 46" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:250px; height:185px; ">
  1603. <col ref="answcd"/>
  1604. <col ref="answcnts"/>
  1605. <col ref="judginqrcd" visibility="hidden"/>
  1606. </datagrid>
  1607. </group>
  1608. <button id="btn_chest" class="btn_sw" group="tab_3" style="left:712px; top:524px; width:85px; height:22px; ">
  1609. <caption>흉부촬영판정</caption>
  1610. <script type="javascript" ev:event="onclick">
  1611. <![CDATA[
  1612. model.toggle("case_chest");
  1613. case_chest.selected = true;
  1614. ]]>
  1615. </script>
  1616. </button>
  1617. <button id="button5" class="btn5_letter6" style="left:901px; top:525px; width:86px; height:19px; ">
  1618. <caption>흉부판정저장</caption>
  1619. <script type="javascript" ev:event="DOMActivate">
  1620. <![CDATA[
  1621. //판정내역
  1622. var rsrvdd = model.getValue("/root/init/send/srchrsrvdd");
  1623. if( rsrvdd == "") {
  1624. messageBox("판정대상내역을 ", "C002");
  1625. model.setFocus("cmb_srchrsrvdd");
  1626. return ;
  1627. }
  1628. copyNodesetType("/root/send/savedata","/root/init/send/info", "replace");
  1629. model.makeValue("/root/send/savedata/judgchestflag" , model.getValue("/root/main/judgdetl/judginfo/judg/judgchest/judgchestflag"));
  1630. model.makeValue("/root/send/savedata/judgchestflag2" , model.getValue("/root/main/judgdetl/judginfo/judg/judgchest/judgchestflag2"));
  1631. model.makeValue("/root/send/savedata/judgstat" , "3");
  1632. if(submit("TXAHA04412")) {
  1633. fGetJudglst("J");
  1634. fGetJudgPatList();
  1635. }
  1636. ]]>
  1637. </script>
  1638. </button>
  1639. </case>
  1640. </switch>
  1641. <button id="btn_patlst" class="btn_sw" group="tab_1" selected="true" style="left:3px; top:5px; width:80px; height:22px; ">
  1642. <caption>판정대기자</caption>
  1643. <toggle case="case_pat" ev:event="onclick"/>
  1644. </button>
  1645. <button id="btn_judg" class="btn_sw" group="tab_1" style="left:83px; top:5px; width:80px; height:22px; ">
  1646. <caption>판정</caption>
  1647. <toggle case="case_judg" ev:event="onclick"/>
  1648. </button>
  1649. </group>
  1650. <group id="grp_btn" style="left:0px; top:754px; width:1195px; height:27px; ">
  1651. <button id="btn_clear" class="btn4_letter3" style="left:1122px; top:5px; width:68px; height:22px; ">
  1652. <caption>초기화</caption>
  1653. <script type="javascript" ev:event="DOMActivate">
  1654. <![CDATA[
  1655. if(case_pat.selected == true) {
  1656. fInit(false );
  1657. }else {
  1658. fInit(true);
  1659. }
  1660. ]]>
  1661. </script>
  1662. </button>
  1663. <button id="btn_print" class="btn6_letter4" style="left:7px; top:5px; width:80px; height:22px; ">
  1664. <caption>서식출력</caption>
  1665. <script type="javascript" ev:event="DOMActivate">
  1666. <![CDATA[
  1667. if(case_judg.selected == true) {
  1668. fJudgInqrPrint();
  1669. }
  1670. ]]>
  1671. </script>
  1672. </button>
  1673. <button id="button1" class="btn3_letter4" style="left:88px; top:5px; width:116px; height:22px; ">
  1674. <caption>발송대기</caption>
  1675. <script type="javascript" ev:event="DOMActivate">
  1676. <![CDATA[
  1677. if(case_judg.selected == true) {
  1678. clearParameter("SMAHA04510_PARAM1");
  1679. clearParameter("SMAHA04510_PARAM2");
  1680. clearParameter("SMAHA04510_PARAM3");
  1681. clearParameter("SMAHA04510_PARAM4");
  1682. setParameter ("SMAHA04510_PARAM1", model.getValue("/root/init/send/info/healexamdetlflag") ); // 건진상세구분
  1683. setParameter ("SMAHA04510_PARAM2", model.getValue("/root/init/send/info/hopedd")); // 건진일자
  1684. setParameter ("SMAHA04510_PARAM3", model.getValue("/root/init/send/info/pid")); // 등록번호
  1685. setParameter ("SMAHA04510_PARAM4", model.getValue("/root/init/send/info/brthareacnts")); // 국가코드
  1686. modal("SMAHA04510");
  1687. }
  1688. ]]>
  1689. </script>
  1690. </button>
  1691. <button id="button2" class="btn3_letter6" style="left:170px; top:5px; width:80px; height:22px; ">
  1692. <caption>재/미검자관리</caption>
  1693. <script type="javascript" ev:event="DOMActivate">
  1694. <![CDATA[
  1695. modal("SMAHA04610");
  1696. ]]>
  1697. </script>
  1698. </button>
  1699. </group>
  1700. </xhtml:body>
  1701. </xhtml:html>