SMAHR00500_종합판정관리.xrw 101 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186
  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 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. <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. <item>
  63. <shrtengjudgcnts/>
  64. <engjudgcnts/>
  65. <shrthngjudgcnts/>
  66. <hngjudgcnts/>
  67. <pkgnm/>
  68. <judgdrid/>
  69. <judgdd/>
  70. <judgtm/>
  71. <rsltcnstdrid/>
  72. </item>
  73. <itemsick>
  74. <sickcd/>
  75. <sicknm/>
  76. <judgcd/>
  77. <cmpycd/>
  78. </itemsick>
  79. </judginfo>
  80. </judgdetl>
  81. <judgexmpcdlst>
  82. <item>
  83. <lvl/>
  84. <sel/>
  85. <judgexmpcd/>
  86. <judghangshrtcnts/>
  87. <judgengshrtcnts/>
  88. <judghangcnts/>
  89. <judgengcnts/>
  90. </item>
  91. </judgexmpcdlst>
  92. <judgpatlst>
  93. <item>
  94. <hngnm/>
  95. <engnm/>
  96. <pid/>
  97. <sex/>
  98. <age/>
  99. <statflag/>
  100. <ordtm/>
  101. <orddd/>
  102. <pkgcd/>
  103. <pkgnm/>
  104. <cmpycd/>
  105. <cmpynm/>
  106. <hopedd/>
  107. <rsrvtm/>
  108. <judgdd/>
  109. <judgdrid/>
  110. <acptremcnts/>
  111. <rsrvdd/>
  112. <rsrvno/>
  113. <cretno/>
  114. <rgstno1/>
  115. <rgstno2/>
  116. <mpphontel/>
  117. <hometel/>
  118. </item>
  119. </judgpatlst>
  120. <inqrinfo>
  121. <inqr/>
  122. </inqrinfo>
  123. <seqdata/>
  124. <afexamlist>
  125. <item/>
  126. </afexamlist>
  127. </main>
  128. <send>
  129. <srchhealexamflag/>
  130. <srchhealexamdetlflag/>
  131. <srchjudgdrid/>
  132. <srchfromdd/>
  133. <srchtodd/>
  134. <srchpid/>
  135. <srchorddd/>
  136. <srchpnm/>
  137. <srchrsrvdd/>
  138. <srchrsrvno/>
  139. <srchinstcd/>
  140. <srchstatflag/>
  141. <srchcretno/>
  142. <srchcmpycd/>
  143. <srchrgstno1/>
  144. <srchrgstno2/>
  145. <savedata>
  146. <savesick/>
  147. <healexamflag/>
  148. <rsrvdd/>
  149. <rsrvno/>
  150. <instcd/>
  151. <pkgcd/>
  152. <pid/>
  153. <orddd/>
  154. <shrthngjudgcnts/>
  155. <shrtengjudgcnts/>
  156. <hngjudgcnts/>
  157. <engjudgcnts/>
  158. </savedata>
  159. <srchstatflag2/>
  160. <iemr/>
  161. <iemr2/>
  162. <srchhealexamplacecd/>
  163. <windowloadinstance>SMAHR00500</windowloadinstance>
  164. <srchafexam>
  165. <healexamflag/>
  166. <rsrvdd/>
  167. <rsrvno/>
  168. </srchafexam>
  169. <saveAfexam>
  170. <item/>
  171. </saveAfexam>
  172. </send>
  173. <init>
  174. <baseinfo>
  175. <choiflaglst/>
  176. <hedetlflaglst/>
  177. <rslttypelst/>
  178. <plceflag/>
  179. <rsltcnstflaglst/>
  180. <pamcdlst>
  181. <uncocdlst/>
  182. <disccdlst/>
  183. </pamcdlst>
  184. <inqrflag/>
  185. <drlst>
  186. <itemdr/>
  187. </drlst>
  188. <statlst/>
  189. <healexamplacelst/>
  190. <formcdlst/>
  191. <orddeptcdlst/>
  192. </baseinfo>
  193. <send>
  194. <srchhealexamdetlflag/>
  195. <srchjudgdrid/>
  196. <srchfromdd/>
  197. <srchtodd/>
  198. <srchpid/>
  199. <srchpnm/>
  200. <srchhealexamdetlflag2/>
  201. <srchcretno/>
  202. <item1>
  203. <pid/>
  204. <hngnm/>
  205. </item1>
  206. <item2>
  207. <pid/>
  208. <hngnm/>
  209. <sex/>
  210. <age/>
  211. <telno/>
  212. <mpphon/>
  213. </item2>
  214. <item3>
  215. <cmpycd/>
  216. <cmpynm/>
  217. </item3>
  218. </send>
  219. </init>
  220. <hidden>
  221. <medpatinfo/>
  222. <temp_1/>
  223. <checkseq/>
  224. </hidden>
  225. <temp>
  226. <okflag/>
  227. <patinfo>
  228. <item>
  229. <sex/>
  230. <age/>
  231. <pid/>
  232. <hngnm/>
  233. </item>
  234. </patinfo>
  235. <histlst>
  236. <item>
  237. <histinfo/>
  238. <rsrvdd/>
  239. <rsrvno/>
  240. </item>
  241. </histlst>
  242. <judgexmpdetl>
  243. <item>
  244. <judgexmpcd/>
  245. <judghangshrtcnts/>
  246. <judgengshrtcnts/>
  247. <useyn/>
  248. <judghangcnts/>
  249. <judgengcnts/>
  250. </item>
  251. <itemsick>
  252. <sickcd/>
  253. <sicknm/>
  254. <judgcd/>
  255. <cmpycd/>
  256. <sickcdcnts/>
  257. </itemsick>
  258. </judgexmpdetl>
  259. <judginfo>
  260. </judginfo>
  261. <temprslt>
  262. <temprsltcnts/>
  263. <temptestnm/>
  264. </temprslt>
  265. <instcd/>
  266. <healexamflag/>
  267. <testcd/>
  268. <judgexmpcd/>
  269. <sickcd/>
  270. <sicknm/>
  271. <prcpdd/>
  272. <seqno/>
  273. <chkflag/>
  274. </temp>
  275. </root>
  276. </instance>
  277. <submission id="TRZBC00101"/>
  278. <submission id="TRAHA00001"/>
  279. <submission id="TRAHA00002"/>
  280. <submission id="TRAHA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/patinfo"/>
  281. <submission id="TRAHA00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/baseinfo/pamcdlst"/>
  282. <submission id="TRAHA00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/histlst"/>
  283. <submission id="TRAHB00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/baseinfo/item"/>
  284. <submission id="TRAHB01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/baseinfo/drlst"/>
  285. <submission id="TRAHR00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsltpatlst"/>
  286. <submission id="TRAHR00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/judginfo"/>
  287. <submission id="TRAHB00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/judgexmpdetl"/>
  288. <submission id="TXAHR00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden"/>
  289. <submission id="TRAHR00503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/judgdetl/rsltlst"/>
  290. <submission id="TRAHB00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/judgexmpcdlst"/>
  291. <submission id="TRAHB00804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/judgdetl/rsltlst" replace="instance"/>
  292. <submission id="TRAHB00805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inqrinfo"/>
  293. <submission id="TRAHA00013" mediatype="application/x-www-form-urlencoded" method="post"/>
  294. <submission id="TRAHR00506" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchafexam" resultref="/root/main/afexamlist"/>
  295. <submission id="TXAHR00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/temp_1"/>
  296. <submission id="TXAHR00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/saveAfexam" replace="instance" resultref="/root/temp"/>
  297. </model>
  298. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  299. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  300. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  301. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  302. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  303. <script type="javascript" src="../../../com/pacsweb/js/ZEP001.js"/>
  304. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  305. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  306. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  307. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  308. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  309. <script type="javascript" ev:event="xforms-ready">
  310. <![CDATA[
  311. if(checkOpener()){
  312. m_vHealexamflag = opener.javascript.getParameter("SMAHR00500_PARAM1");
  313. var sPid = opener.javascript.getParameter("SMAHR00500_PARAM2");
  314. if(sPid != ""){
  315. btn_patlst.selected = true;
  316. model.setValue( ipt_srchpid2.attribute("ref"), sPid);
  317. if(checkAuth("R")){
  318. fGetPatinfoWithPid(sPid); //건진자 정보 조회
  319. }
  320. }
  321. model.toggle("case_pat");
  322. }
  323. fGetBasicCdList();
  324. fSetJudgDr(); // 판정의 셋팅
  325. fSrchInit();
  326. fInit(false );
  327. btn_search.disabled = !checkAuth("R");
  328. btn_search2.disabled = !checkAuth("R");
  329. btn_save.disabled = !checkAuth("X");
  330. btn_clear.disabled = !checkAuth("X");
  331. model.toggle("case_hng");
  332. checkbox1.value = "G H I";
  333. if(checkAuth("R")){
  334. fGetJudgPatList();
  335. }
  336. grp_textview.visible = false;
  337. //환자정보 삭제 common.js
  338. delPatientInfos();
  339. if(checkOpener()){
  340. btn_searchhist.dispatch("DOMActivate");
  341. }
  342. cmb_srchrsrvdd.select(0);
  343. ]]>
  344. </script>
  345. <script type="javascript">
  346. <![CDATA[
  347. var m_vHealexamflag = "";
  348. var col_hngnm = grd_judgpatlst.colRef("hngnm");
  349. var col_engnm = grd_judgpatlst.colRef("engnm");
  350. var col_pid = grd_judgpatlst.colRef("pid");
  351. var col_sex = grd_judgpatlst.colRef("sex");
  352. var col_age = grd_judgpatlst.colRef("age");
  353. var col_stat = grd_judgpatlst.colRef("statflag");
  354. var col_ordtm = grd_judgpatlst.colRef("ordtm");
  355. var col_orddd = grd_judgpatlst.colRef("orddd");
  356. var col_pkgcd = grd_judgpatlst.colRef("pkgcd");
  357. var col_pkgnm = grd_judgpatlst.colRef("pkgnm");
  358. var col_cmpycd = grd_judgpatlst.colRef("cmpycd");
  359. var col_cmpynm = grd_judgpatlst.colRef("cmpynm");
  360. var col_hopedd = grd_judgpatlst.colRef("hopedd");
  361. var col_rsrvtm = grd_judgpatlst.colRef("rsrvtm");
  362. var col_judgdd = grd_judgpatlst.colRef("judgdd");
  363. var col_judgtm = grd_judgpatlst.colRef("judgtm");
  364. var col_judgdrid = grd_judgpatlst.colRef("judgdrid");
  365. var col_acptremcnts = grd_judgpatlst.colRef("acptremcnts");
  366. var col_rsrvdd = grd_judgpatlst.colRef("rsrvdd");
  367. var col_rsrvno = grd_judgpatlst.colRef("rsrvno");
  368. var col_cretno = grd_judgpatlst.colRef("cretno");
  369. var col_rgstno1 = grd_judgpatlst.colRef("rgstno1");
  370. var col_rgstno2 = grd_judgpatlst.colRef("rgstno2");
  371. /**===================================================================================
  372. *초기화
  373. * bDetl => true : 건진자별 상세내역만 초기화
  374. =====================================================================================*/
  375. function fInit(bDetl){
  376. model.removeNodeset(grd_rsltlst.nodeset);
  377. model.removeNodeset(grd_rslttextlst.nodeset);
  378. model.removeNodeset(grd_sicklst.nodeset);
  379. model.resetInstanceNode("/root/main/judgdetl/judginfo/item");
  380. var cur_date = getCurrentDate();
  381. model.setValue(ipt_judgdd.attribute("ref"), cur_date);
  382. if(bDetl){
  383. return;
  384. }
  385. model.removeNodeset(grd_judgpatlst.nodeset);
  386. model.refresh();
  387. }
  388. /**===================================================================================
  389. ** 조회조건 초기화
  390. =====================================================================================*/
  391. function fSrchInit(){
  392. //cmb_srchhealexamdetlflag.refresh();
  393. //cmb_srchhealexamdetlflag.select(0);
  394. //cmb_srchhealexamdetlflag2.refresh();
  395. //cmb_srchhealexamdetlflag2.select(0);
  396. var vHealExamDetlFg = fGetHealExamDetlFlag();
  397. if( vHealExamDetlFg == 'C01' ){
  398. cmb_placeflag.value='S';
  399. } else if (vHealExamDetlFg == 'C03') {
  400. cmb_placeflag.value='K';
  401. }
  402. cmb_srchhealexamdetlflag.refresh();
  403. cmb_srchhealexamdetlflag2.refresh();
  404. cmb_srchhealexamdetlflag.value = vHealExamDetlFg;
  405. cmb_srchhealexamdetlflag2.value = vHealExamDetlFg;
  406. var cur_date = getCurrentDate();
  407. model.setValue(ipt_srchfromdd.attribute("ref"), cur_date);
  408. model.setValue(ipt_srchtodd.attribute("ref"), cur_date);
  409. }
  410. /**===================================================================================
  411. *기본코드 내역 가져오기
  412. =====================================================================================*/
  413. function fGetBasicCdList(){
  414. if(!checkOpener() ){
  415. model.toggle("case_pat");
  416. }
  417. btn_patlst.selected= true;
  418. if( m_vHealexamflag == "" ) {
  419. m_vHealexamflag = fGetHealExamFlag();
  420. }
  421. openLoadingBar("기초정보 ") ;//처리중 화면을 오픈한다.
  422. zbcfGetCodeList( new Array("A0069", "A0066","A0110","A0106", "A0107", "A0123")
  423. , new Array( "/root/init/baseinfo/hedetlflaglst"
  424. , "/root/init/baseinfo/rslttypelst"
  425. , "/root/init/baseinfo/plceflag"
  426. , "/root/init/baseinfo/inqrflag"
  427. , "/root/init/baseinfo/statlst"
  428. , "/root/init/baseinfo/rsltcnstflaglst" ) );
  429. addComboItem("checkbox1","결과완료","GY","below");
  430. submit("TRZBC00101");
  431. /*=======================================================================================================
  432. **구분값에 임의로 항목을 추가함으로 인해 순서의 이동이 필요하여 추구함======================================*/
  433. model.copyNode("/root/temp/tmpInfo", "/root/init/baseinfo/statlst");
  434. model.makeValue("/root/temp/tmpInfo/A0107[1]/cdid", model.getValue("/root/init/baseinfo/statlst/A0107[1]/cdid"));
  435. model.makeValue("/root/temp/tmpInfo/A0107[1]/cdnm", model.getValue("/root/init/baseinfo/statlst/A0107[1]/cdnm"));
  436. model.makeValue("/root/temp/tmpInfo/A0107[2]/cdid", model.getValue("/root/init/baseinfo/statlst/A0107[2]/cdid"));
  437. model.makeValue("/root/temp/tmpInfo/A0107[2]/cdnm", model.getValue("/root/init/baseinfo/statlst/A0107[2]/cdnm"));
  438. model.makeValue("/root/temp/tmpInfo/A0107[3]/cdid", model.getValue("/root/init/baseinfo/statlst/A0107[3]/cdid"));
  439. model.makeValue("/root/temp/tmpInfo/A0107[3]/cdnm", model.getValue("/root/init/baseinfo/statlst/A0107[3]/cdnm"));
  440. model.makeValue("/root/temp/tmpInfo/A0107[4]/cdid", model.getValue("/root/init/baseinfo/statlst/A0107[4]/cdid"));
  441. model.makeValue("/root/temp/tmpInfo/A0107[4]/cdnm", model.getValue("/root/init/baseinfo/statlst/A0107[4]/cdnm"));
  442. model.makeValue("/root/temp/tmpInfo/A0107[5]/cdid", model.getValue("/root/init/baseinfo/statlst/A0107[5]/cdid"));
  443. model.makeValue("/root/temp/tmpInfo/A0107[5]/cdnm", model.getValue("/root/init/baseinfo/statlst/A0107[5]/cdnm"));
  444. model.makeValue("/root/temp/tmpInfo/A0107[6]/cdid", model.getValue("/root/init/baseinfo/statlst/A0107[6]/cdid"));
  445. model.makeValue("/root/temp/tmpInfo/A0107[6]/cdnm", model.getValue("/root/init/baseinfo/statlst/A0107[6]/cdnm"));
  446. model.makeValue("/root/temp/tmpInfo/A0107[7]/cdid", model.getValue("/root/init/baseinfo/statlst/A0107[7]/cdid"));
  447. model.makeValue("/root/temp/tmpInfo/A0107[7]/cdnm", model.getValue("/root/init/baseinfo/statlst/A0107[7]/cdnm"));
  448. model.makeValue("/root/temp/tmpInfo/A0107[8]/cdid", model.getValue("/root/init/baseinfo/statlst/A0107[10]/cdid"));
  449. model.makeValue("/root/temp/tmpInfo/A0107[8]/cdnm", model.getValue("/root/init/baseinfo/statlst/A0107[10]/cdnm"));
  450. model.makeValue("/root/temp/tmpInfo/A0107[9]/cdid", model.getValue("/root/init/baseinfo/statlst/A0107[8]/cdid"));
  451. model.makeValue("/root/temp/tmpInfo/A0107[9]/cdnm", model.getValue("/root/init/baseinfo/statlst/A0107[8]/cdnm"));
  452. model.makeValue("/root/temp/tmpInfo/A0107[10]/cdid", model.getValue("/root/init/baseinfo/statlst/A0107[9]/cdid"));
  453. model.makeValue("/root/temp/tmpInfo/A0107[10]/cdnm", model.getValue("/root/init/baseinfo/statlst/A0107[9]/cdnm"));
  454. model.copyNode("/root/init/baseinfo/statlst", "/root/temp/tmpInfo");
  455. checkbox1.refresh();
  456. /*=======================================================================================================*/
  457. healGetCodeList( new Array("S600"), new Array("/root/init/baseinfo/healexamplacelst") );
  458. healGetCodeListSubmit( new Array("S290"), new Array("/root/init/baseinfo/formcdlst"), false);
  459. //2015/08/17 이정택 추가
  460. healGetCodeList( new Array("S610"), new Array("/root/init/baseinfo/orddeptcdlst") );
  461. model.removenode("/root/init/baseinfo/orddeptcdlst/S610[0]");
  462. //2015/08/17 이정택 추가
  463. //판정의조회
  464. model.setValue("/root/send/srchhealexamflag", m_vHealexamflag);
  465. model.makeNode("/root/send/srchcond" );
  466. model.setValue("/root/send/srchcond", "J");
  467. submit("TRAHB01504");
  468. closeLoadingBar() ;//처리중 화면을 close한다.
  469. }
  470. /**===================================================================================
  471. @desc : 판정입력대상자 가져오기
  472. @param : 건진구분/건진일자/환자id/사업장명 별 조회
  473. =====================================================================================*/
  474. function fGetJudgPatList(){
  475. openLoadingBar("판정 대상 건진자리스트");
  476. model.removeNodeset(grd_judgpatlst.nodeset);
  477. //model.resetInstanceNode("/root/send");
  478. model.setValue("/root/send/srchcmpycd" , model.getValue(ipt_cmpycd.attribute("ref") ) );
  479. model.setValue("/root/send/srchhealexamdetlflag" , model.getValue("/root/init/send/srchhealexamdetlflag") );
  480. model.setValue("/root/send/srchpid" , model.getValue(ipt_pid.attribute("ref") ) );
  481. model.setValue("/root/send/srchpnm" , model.getValue(ipt_pnm.attribute("ref") ) );
  482. model.setValue("/root/send/srchfromdd" , model.getValue("/root/init/send/srchfromdd") );
  483. model.setValue("/root/send/srchtodd" , model.getValue("/root/init/send/srchtodd") );
  484. model.setValue("/root/send/srchjudgdrid" , model.getValue(cmb_srchjudgdrid.attribute("ref")) );
  485. model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd") );
  486. model.setValue("/root/send/srchhealexamflag" , fGetHealExamFlag());
  487. if(model.getValue("/root/send/srchstatflag2").indexOf("GY") >= 0){
  488. model.makeValue("/root/send/srchstatcmpl", "Y");
  489. }else{
  490. model.makeValue("/root/send/srchstatcmpl", "N");
  491. }
  492. submit("TRAHR00501");
  493. /*대상자 색구분(2010.03.24) - 녹색:결과, 붉은색:결과완료*/
  494. grd_judgpatlst.rebuildStyle();
  495. for(var i=grd_judgpatlst.fixedRows; i<grd_judgpatlst.rows; i++){
  496. if(grd_judgpatlst.valueMatrix(i, grd_judgpatlst.colRef("statflag")) == "G"){
  497. if(grd_judgpatlst.valueMatrix(i, grd_judgpatlst.colRef("rsltyn")) == "Y"){
  498. grd_judgpatlst.rowStyle(i, "data", "background-color") = "#f8939f";
  499. }else{
  500. grd_judgpatlst.rowStyle(i, "data", "background-color") = "#7ffc76";
  501. }
  502. }
  503. }
  504. closeLoadingBar();
  505. }
  506. /**===================================================================================
  507. @desc : 판정정보조회(판정대기자 선택시 종합판정입력tab이동)
  508. @param : healexamflag, pid, rsrvdd, rsrvno
  509. =====================================================================================*/
  510. function fGetJudgInfo(){
  511. var idx = grd_judgpatlst.row;
  512. if( idx < 1) return ;
  513. var vPid = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("pid"));
  514. if( vPid == "" ) return ;
  515. var vRsrvdd = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("rsrvdd"));
  516. var vRsrvno = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("rsrvno"));
  517. var vOrdDD = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("orddd"));
  518. var vCretno = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("cretno"));
  519. var vRgstno1 = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("rgstno1"));
  520. var vRgstno2 = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("rgstno2"));
  521. var vHometel = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("hometel"));
  522. var vMpphontel = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("mpphontel"));
  523. cmb_srchhealexamdetlflag2.value = cmb_srchhealexamdetlflag.value;
  524. //tab이동
  525. fInit(true);
  526. model.toggle("case_judg");
  527. btn_judg.selected= true;
  528. model.setValue(ipt_srchpid2.attribute("ref") , vPid );
  529. model.setValue(ipt_srchpnm2.attribute("ref") , grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("hngnm")));
  530. model.setValue(opt_sex.attribute("ref") , grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("sex")));
  531. model.setValue(opt_age.attribute("ref") , grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("age")));
  532. model.makeValue("/root/init/send/item2/orddd" , vOrdDD);
  533. model.makeValue("/root/init/send/item2/cretno" , vCretno);
  534. model.setValue("/root/init/send/srchcretno" , vCretno);
  535. model.setValue("/root/send/srchrgstno1" , vRgstno1);
  536. model.setValue("/root/send/srchrgstno2" , vRgstno2);
  537. model.setValue(ipt_hometel.attribute("ref") , vHometel);
  538. model.setValue(ipt_mpphontel.attribute("ref") , vMpphontel);
  539. //해당환자의 건진history조회
  540. ahafGetHistList2(vPid, cmb_srchhealexamdetlflag.value , "E");
  541. // 판정정보상세내역 조회
  542. var vPkgnm = grd_judgpatlst.valueMatrix(idx, col_pkgnm);
  543. //fGetJudgDetlInfo(vRsrvdd, vRsrvno, vPkgnm, vPid, vOrdDD );
  544. //화면상단 환자정보 조회
  545. ahafSetScreenTopPatInfo(vPid , vOrdDD , vCretno);
  546. //전 환자의 문진 내역이 있으면 닫고 아래에서 새 환자의 문진을 띄운다.
  547. var child = getChildWindow("SPAHR00500");
  548. if(child != null) {
  549. child.close();
  550. }
  551. model.refresh();
  552. //결과 판정값 체크
  553. //fRsltJudgChk();
  554. cmb_srchrsrvdd.dispatch("xforms-select");
  555. /*******
  556. 기관코드하드코딩으로 인해 수정(2010.01.12 안규옥)
  557. if(getUserInfo("dutplceinstcd") == "012"){
  558. }else{
  559. button4.dispatch("onclick"); //종합판정 탭의 문진표 팝업클릭
  560. }
  561. *******/
  562. if(chk_inqrautocall.value == "Y"){
  563. button4.dispatch("onclick"); //종합판정 탭의 문진표 팝업클릭
  564. }
  565. }
  566. /**===================================================================================
  567. @desc : 판정정보상세내역 조회
  568. @param : healexamflag, rsrvdd, rsrvno , instcd
  569. =====================================================================================*/
  570. function fGetJudgDetlInfo(vRsrvdd, vRsrvno , vPkgnm , vPid, vOrdDD , vCretno){
  571. model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
  572. model.setValue("/root/send/srchhealexamdetlflag" , model.getValue(cmb_srchhealexamdetlflag2.attribute("ref")));
  573. model.setValue("/root/send/srchrsrvdd" , vRsrvdd);
  574. model.setValue("/root/send/srchrsrvno" , vRsrvno);
  575. model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd"));
  576. model.setValue("/root/send/srchpid" , vPid);
  577. model.setValue("/root/send/srchorddd" , vOrdDD);
  578. model.setValue("/root/send/srchcretno" , vCretno);
  579. model.resetInstanceNode("/root/main/judgdetl/judginfo/item"); // 판정내역 초기화
  580. openLoadingBar("결과 정보");
  581. var ret = submit("TRAHR00503");
  582. fRsltJudgChk(); //결과 판정값 체크
  583. closeLoadingBar();
  584. var vRsltCaption = "처방명칭" + "^" + cap_year1.value + "^" +"판정" + "^" + cap_year2.value + "^" + "판정" + "^" + cap_year3.value + "^" + "판정" + "^" + "기준" + "^" + "단위" ;
  585. grd_rsltlst.caption = vRsltCaption ;
  586. openLoadingBar("판정 정보");
  587. ret = submit("TRAHR00502");
  588. closeLoadingBar();
  589. if(ret == true ){
  590. var retNode = model.instance1.selectSingleNode("/root/temp/judginfo/item/judgdrid");
  591. if(retNode != null){
  592. model.copyNode("/root/main/judgdetl/judginfo","/root/temp/judginfo");
  593. }
  594. }
  595. //판정의 체크
  596. var judgDr = model.getValue("/root/main/judgdetl/judginfo/item/judgdrid"); //판정등록한 판정의
  597. var logJudgDr = model.getValue("/root/hidden/judgdr"); //로그인 한 판정의
  598. if(judgDr == ""){
  599. //등록한 판정의가 없을경우
  600. if(logJudgDr != ""){
  601. //로그인 한 판정의가 있을 경우
  602. model.setValue("/root/main/judgdetl/judginfo/item/judgdrid" , logJudgDr);
  603. } else {
  604. model.setValue("/root/main/judgdetl/judginfo/item/judgdrid" , model.property("judgdr"));
  605. }
  606. } else {
  607. //등록 된 판정의와 로그인 한 판정의가 다를 경우
  608. if(judgDr != logJudgDr) {
  609. if(logJudgDr != "") {
  610. //로그인한 판정의가 존재할 경우
  611. var judgDrNm = "";
  612. var logJudgDrNm = ""
  613. //이름 찾기
  614. for(var i=0; i < cmb_judgdr.length; i++) {
  615. if(cmb_judgdr.item(i).value == judgDr){
  616. judgDrNm = cmb_judgdr.item(i).label;
  617. }
  618. if(cmb_judgdr.item(i).value == logJudgDr){
  619. logJudgDrNm = cmb_judgdr.item(i).label;
  620. }
  621. }
  622. var vb = messageBox("판정의를 [" + judgDrNm + "]에서 [" + logJudgDrNm + "]로 변경" ,"S001");
  623. if(vb == "6"){
  624. model.setValue("/root/main/judgdetl/judginfo/item/judgdrid", logJudgDr);
  625. }
  626. }
  627. }
  628. }
  629. model.makeNode(opt_pkgnm.attribute("ref"));
  630. model.setValue(opt_pkgnm.attribute("ref"), vPkgnm);
  631. model.refresh();
  632. }
  633. /**===================================================================================
  634. @desc : 다음환자조회
  635. =====================================================================================*/
  636. function fGetNextPatInfo(){
  637. var cur_idx = grd_judgpatlst.row;
  638. var grd_cnt = grd_judgpatlst.rows;
  639. cur_idx++;
  640. if( cur_idx >= grd_cnt ){
  641. cur_idx = 1; //초기화
  642. }
  643. grd_judgpatlst.row = cur_idx ;
  644. //판정정보 조회
  645. fGetJudgInfo();
  646. }
  647. /**===================================================================================
  648. @desc : 다음환자조회
  649. =====================================================================================*/
  650. function fGetPrePatInfo(){
  651. var cur_idx = grd_judgpatlst.row;
  652. var grd_cnt = grd_judgpatlst.rows;
  653. cur_idx--;
  654. if( cur_idx >= grd_cnt ) {
  655. cur_idx = grd_cnt; //초기화
  656. }
  657. grd_judgpatlst.row = cur_idx ;
  658. //판정정보 조회
  659. fGetJudgInfo();
  660. }
  661. /**===================================================================================
  662. @desc : 건진내역 콤보박스 선택 시 해당 선택건진 key 값 얻기
  663. @param : index , param(rsrvdd, rsrvno, pkgnm, pkgcd )
  664. =====================================================================================*/
  665. function fGetRsrvInfoFromHistory(vCmbIndex, vParam ){
  666. if( vCmbIndex < 0 ) return "";
  667. var ndlist = instance1.selectNodes("/root/temp/histlst/item");
  668. if( ndlist == null ) return "";
  669. if( ndlist.length < 1) return ;
  670. var ret = "";
  671. if( vParam == "rsrvdd"){
  672. ret = ndlist.item(vCmbIndex).rsrvdd.text ;
  673. }
  674. else if( vParam == "rsrvno"){
  675. ret = ndlist.item(vCmbIndex).rsrvno.text ;
  676. }
  677. else if( vParam == "pkgnm"){
  678. ret = ndlist.item(vCmbIndex).pkgnm.text ;
  679. }
  680. else if( vParam == "pkgcd"){
  681. ret = ndlist.item(vCmbIndex).pkgcd.text ;
  682. }
  683. else if( vParam == "pid"){
  684. ret = ndlist.item(vCmbIndex).pid.text ;
  685. }
  686. else if( vParam == "orddd"){
  687. ret = ndlist.item(vCmbIndex).orddd.text ;
  688. }
  689. else if( vParam == "cretno"){
  690. ret = ndlist.item(vCmbIndex).cretno.text ;
  691. }
  692. else if( vParam == "healexamflag"){
  693. ret = ndlist.item(vCmbIndex).healexamflag.text ;
  694. }
  695. return ret ;
  696. }
  697. /**===================================================================================
  698. @desc : 종합판정입력
  699. @param : 저장, 판정완료 (H, I) 저장 일시 판정대기 이고 판정완료 일 경우 판정 완료
  700. =====================================================================================*/
  701. function fSaveJudg(vJudgStat){
  702. if( messageBox("종합판정내역을 ", "Q002") !=6) return ;
  703. //판정내역
  704. var idx = cmb_srchrsrvdd.mouseRow;
  705. //출력여부
  706. var prntYN = model.getValue("/root/main/judgdetl/judginfo/item/prntyn");
  707. //질환판정
  708. var sickJudg = false;
  709. if(idx < 0){
  710. messageBox("판정대상내역을", "C002");
  711. model.setFocus("cmb_srchrsrvdd");
  712. return ;
  713. }
  714. if(prntYN == "Y"){
  715. if(messageBox("기출력된 검사입니다", "Q003") !=6) return;
  716. }
  717. model.makeNode("/root/main/judgdetl/judginfo/item/healexamflag");
  718. model.makeNode("/root/main/judgdetl/judginfo/item/healexamdetlflag");
  719. model.makeNode("/root/main/judgdetl/judginfo/item/rsrvdd");
  720. model.makeNode("/root/main/judgdetl/judginfo/item/rsrvno");
  721. model.makeNode("/root/main/judgdetl/judginfo/item/judgdd");
  722. model.makeNode("/root/main/judgdetl/judginfo/item/judgdd");
  723. model.makeNode("/root/main/judgdetl/judginfo/item/judgtm");
  724. model.makeNode("/root/main/judgdetl/judginfo/item/judgstat");
  725. model.makeNode("/root/main/judgdetl/judginfo/item/judgdrid");
  726. model.makeNode("/root/main/judgdetl/judginfo/item/pid");
  727. model.makeNode("/root/main/judgdetl/judginfo/item/orddd");
  728. model.makeNode("/root/main/judgdetl/judginfo/item/cretno");
  729. model.makeNode("/root/main/judgdetl/judginfo/item/pkgcd");
  730. if(model.getValue("/root/main/judgdetl/judginfo/item/judgdrid") == ""){
  731. messageBox("판정의를", "C002");
  732. model.setFocus("cmb_judgdrid");
  733. return;
  734. }
  735. model.setValue("/root/main/judgdetl/judginfo/item/healexamflag" , fGetRsrvInfoFromHistory(idx, "healexamflag")); //건진구분
  736. model.setValue("/root/main/judgdetl/judginfo/item/healexamdetlflag" , model.getValue(cmb_srchhealexamdetlflag2.attribute("ref"))); //건진상세구분
  737. model.setValue("/root/main/judgdetl/judginfo/item/rsrvdd" , fGetRsrvInfoFromHistory(idx , "rsrvdd")); //예약등록일자
  738. model.setValue("/root/main/judgdetl/judginfo/item/rsrvno" , fGetRsrvInfoFromHistory(idx , "rsrvno")); //예약번호
  739. model.setValue("/root/main/judgdetl/judginfo/item/pid" , fGetRsrvInfoFromHistory(idx , "pid")); //등록번호
  740. model.setValue("/root/main/judgdetl/judginfo/item/orddd" , fGetRsrvInfoFromHistory(idx , "orddd")); //진료일자
  741. model.setValue("/root/main/judgdetl/judginfo/item/cretno" , fGetRsrvInfoFromHistory(idx , "cretno")); //생성번호
  742. model.setValue("/root/main/judgdetl/judginfo/item/pkgcd" , fGetRsrvInfoFromHistory(idx , "pkgcd")); //패키지코드
  743. model.setValue("/root/main/judgdetl/judginfo/item/judgstat" ,vJudgStat); //패키지코드
  744. model.copyNode("/root/send/savedata", "/root/main/judgdetl/judginfo/item");
  745. //질환코드내역
  746. // for(var i = 1; i < grd_sicklst.rows; i++){
  747. // if(grd_sicklst.rowStatus(i) > 0){
  748. // var sickJudgCd = grd_sicklst.valueMatrix( i , grd_sicklst.colRef("jugdcd"));
  749. // if(sickJudgCd == ""){
  750. // sickJudg = true;
  751. // }
  752. // }
  753. // }
  754. // if(sickJudg){
  755. // var sickcd = model.getValue("/root/main/judgdetl/judginfo/itemsick/sickcd");
  756. // if(sickcd == "1"){
  757. // model.setValue("/root/main/judgdetl/judginfo/itemsick/judgcd", "A");
  758. // }else{
  759. // model.setValue("/root/main/judgdetl/judginfo/itemsick/judgcd", "B");
  760. // }
  761. // messageBox("질환코드의 판정을", "C002");
  762. // return;
  763. // }
  764. model.makeNode("/root/send/savedata/savesick");
  765. model.setValue("/root/send/savedata/savesick", grd_sicklst.getUpdateData());
  766. submit("TRAHB00804"); //검사결과 수정
  767. var ret = submit("TXAHR00501"); //판정/질환코드 입력, 환자 상태값 수정(AST.AHAMACPT - STATFLAG)
  768. model.toggle("case_pat");
  769. btn_patlst.selected= true;
  770. /*
  771. if( ret == true ){
  772. //재조회z
  773. if( model.getValue("/root/hidden/item/rsrvdd") == "") return ;
  774. fGetJudgDetlInfo(model.getValue("/root/hidden/item/rsrvdd"), model.getValue("/root/hidden/item/rsrvno") , opt_pkgnm.value, model.getValue("/root/hidden/item/pid"), model.getValue("/root/hidden/item/orddd") , model.getValue("/root/hidden/item/cretno") );
  775. //다음환자
  776. fGetNextPatInfo();
  777. }
  778. */
  779. }
  780. /**===================================================================================
  781. @desc : 소견 및 조치내용 가져오기
  782. 소견및 조치내용은 종합판정문구 관리에서 건진구분 .
  783. @param :
  784. * vEditObj : 선택한 판정내용이 입력될 입력컨트롤명
  785. * SPAHR00300_PARAM1: 다중선택여부(Y/N)
  786. * SPAHR00300_PARAM2: 목적노드Set
  787. * SPAHR00300_PARAM3: 종합판정문구코드 목적노드
  788. * SPAHR00300_PARAM4: 종합판정문구내용 목적노드
  789. * SPAHR00300_PARAM5: 종합판정문구검색코드
  790. * SPAHR00300_PARAM6: 종합판정문구검색내용
  791. * SPAHR00300_PARAM7: 건진구분
  792. =====================================================================================*/
  793. function fGetJudgExmpCnts(vHngShrtEditObj,vHngEditObj , vEngShrtEditObj , vEngEditObj ){
  794. //if( (vHngShrtEditObj == null ) || (vHngEditObj) || (vEngShrtEditObj == null ) || (vEngEditObj) ) return ;
  795. model.makeNode("/root/temp/judgexaminfo");
  796. setParameter("SPAHR00300_PARAM1" , "Y");
  797. setParameter("SPAHR00300_PARAM2" , "/root/temp/judgexaminfo");
  798. setParameter("SPAHR00300_PARAM7" , fGetHealExamFlag());
  799. modal("SPAHR00300", 100, 100, "SPAHR00300");
  800. if( model.getValue("/root/temp/SPAHR00300/okflag") != "ok" ) return ;
  801. var vNodeList = instance1.selectNodes("/root/temp/judgexaminfo/list");
  802. if( vNodeList == null ) reutrn ;
  803. var vJudgShrtCnts = model.getValue( vHngShrtEditObj.attribute("ref") );
  804. var vJudgCnts = model.getValue( vHngEditObj.attribute("ref") );
  805. var vJudgShrtEngCnts = model.getValue( vEngShrtEditObj.attribute("ref") );
  806. var vJudgEngCnts = model.getValue( vEngEditObj.attribute("ref") );
  807. var sNd = "/root/temp/judgexaminfo/list";
  808. var cnt = vNodeList.length;
  809. for(var i=0; i<cnt; i++){
  810. //조회해오기...
  811. if( vJudgShrtCnts != "" ) vJudgShrtCnts += ",";
  812. if( vJudgShrtEngCnts != "" ) vJudgShrtEngCnts += ",";
  813. if( vJudgCnts != "" ) vJudgCnts += "\n";
  814. if( vJudgEngCnts != "" ) vJudgEngCnts += "\n";
  815. vJudgShrtCnts += vNodeList.item(i).judghangshrtcnts.text ; //model.getValue(sNd + i + "]/judghangshrtcnts");
  816. vJudgCnts += vNodeList.item(i).judghangcnts.text; //model.getValue(sNd + i + "]/judghangcnts");
  817. vJudgShrtEngCnts += vNodeList.item(i).judgengshrtcnts.text; //model.getValue(sNd + i + "]/judgengshrtcnts");
  818. vJudgEngCnts += vNodeList.item(i).judgengcnts.text; //model.getValue(sNd + i + "]/judgengcnts");
  819. }
  820. model.setValue( vHngShrtEditObj.attribute("ref") , vJudgShrtCnts );
  821. model.setValue( vHngEditObj.attribute("ref") , vJudgCnts );
  822. model.setValue( vEngShrtEditObj.attribute("ref") , vJudgShrtEngCnts );
  823. model.setValue( vEngEditObj.attribute("ref") , vJudgEngCnts );
  824. model.refresh();
  825. }
  826. /*=====================================================================================
  827. @desc : 환자번호로 건진자 정보 가져오기...
  828. =====================================================================================*/
  829. function fGetPatinfoWithPid(sPid){
  830. if(sPid == "") return;
  831. if(ahafGetPatInfo(2, sPid, "" , "/root/init/send/item2") == true){
  832. ahafGetHistList2(sPid, cmb_srchhealexamdetlflag.value, "E"); //해당환자의 건진history조회
  833. }
  834. }
  835. /*=====================================================================================
  836. @desc : text결과 크게 보기.
  837. =====================================================================================*/
  838. function fSetLargView(vRsltCnts, vYear ){
  839. var idx = grd_rslttextlst.row;
  840. if(idx < 1) return;
  841. cap_temptestnm.value = vYear + " : " + grd_rslttextlst.valueMatrix(idx, 1);
  842. tar_temprsltcnts.value = vRsltCnts;
  843. grp_textrslt.visible = true;
  844. grp_textrslt.attribute("top") = 150;
  845. }
  846. /*=====================================================================================
  847. @desc : 문진 스캔정보가 있을 경우 스캔화면을 보여주며 그렇지 않을 경우 문진입력화면을 보여준다.
  848. =====================================================================================*/
  849. function fGetInqrInfo() {
  850. var ret = submit("TRAHB00805");
  851. if(ret){
  852. var rootNode = instance1.selectSingleNode("/root/main/inqrinfo/inqr");
  853. if(rootNode == null) {
  854. fGetInptInqrInfo();
  855. }else {
  856. fGetInqrImge();
  857. }
  858. }
  859. }
  860. /*=====================================================================================
  861. @desc : 입력한 문진정보 팝업화면을 보여준다..
  862. SPAHR00200_PARAM1 : 건진구분
  863. SPAHR00200_PARAM2 : 등록번호
  864. SPAHR00200_PARAM3 : 건진일자
  865. SPAHR00200_PARAM4 : 예약일자
  866. SPAHR00200_PARAM5 : 예약번호
  867. SPAHR00200_PARAM6 : 기관코드
  868. SPAHR00200_PARAM7 : 문진구분
  869. =====================================================================================*/
  870. function fGetInptInqrInfo(){
  871. clearParameter("SPAHR00500_PARAM1");
  872. clearParameter("SPAHR00500_PARAM2");
  873. clearParameter("SPAHR00500_PARAM3");
  874. clearParameter("SPAHR00500_PARAM4");
  875. clearParameter("SPAHR00500_PARAM5");
  876. clearParameter("SPAHR00500_PARAM6");
  877. clearParameter("SPAHR00500_PARAM7");
  878. setParameter("SPAHR00500_PARAM1" , model.getValue("/root/send/srchhealexamflag"));
  879. setParameter("SPAHR00500_PARAM2" , model.getValue("/root/send/srchpid"));
  880. setParameter("SPAHR00500_PARAM3" , model.getValue("/root/send/srchorddd"));
  881. setParameter("SPAHR00500_PARAM4" , model.getValue("/root/send/srchrsrvdd"));
  882. setParameter("SPAHR00500_PARAM5" , model.getValue("/root/send/srchrsrvno"));
  883. setParameter("SPAHR00500_PARAM6" , model.getValue("/root/send/srchinstcd"));
  884. setParameter("SPAHR00500_PARAM7" , "T");
  885. open("SPAHR00500");
  886. }
  887. /*=====================================================================================
  888. @desc : 문진 스캔 화면을 보여준다.
  889. =====================================================================================*/
  890. function fGetInqrImge() {
  891. model.makeValue("/root/send/iemr/pid" , model.getValue("/root/main/inqrinfo/inqr/pid"));
  892. model.makeValue("/root/send/iemr/orddeptcd" , model.getValue("/root/main/inqrinfo/inqr/orddeptcd") );
  893. model.makeValue("/root/send/iemr/indd" , model.getValue("/root/main/inqrinfo/inqr/orddd"));
  894. model.makeValue("/root/send/iemr/docucd" , model.getValue("/root/main/inqrinfo/inqr/formcd"));
  895. model.makeValue("/root/send/iemr/ioflag" , model.getValue("/root/main/inqrinfo/inqr/ioflag"));
  896. model.makeValue("/root/send/iemr/cmc_cretno" , model.getValue("/root/main/inqrinfo/inqr/cretno"));
  897. model.makeValue("/root/send/iemr/cmc_spcid" , "");
  898. model.makeValue("/root/send/iemr/cmc_orddate" , "");
  899. model.makeValue("/root/send/iemr/cmc_orderseqno" , "");
  900. if(window.children.item("imgemrviewer") == null) {
  901. window.load("../../../emr/imgemrweb/xrw/SSMRC03130.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
  902. // window.children.item("imgemrviewer").document.title = "Image EMR Viewer";
  903. // window.children.item("imgemrviewer").javaScript.searchChart("/root/hidden/temp");
  904. // window.children.item("imgemrviewer").javaScript.downloadChart();
  905. // window.children.item("imgemrviewer").javaScript.setupChart("ChartView");
  906. }
  907. }
  908. /*=====================================================================================
  909. @desc : 로그인 된 사람이 판정의 경우 등록
  910. =====================================================================================*/
  911. function fSetJudgDr() {
  912. var licnsno = getUserInfo("licnsno");
  913. var selChk = false;
  914. for(var i=0; i < cmb_srchjudgdrid.length; i++) {
  915. // 판정의 의사번호가 있을 경우 선택
  916. if(cmb_srchjudgdrid.item(i).value == licnsno) {
  917. cmb_srchjudgdrid.select(i);
  918. model.makeValue("/root/hidden/judgdr" , licnsno);
  919. selChk = true;
  920. }
  921. }
  922. //선택된 것이 없으면 default
  923. if(selChk == false) {
  924. cmb_srchjudgdrid.select(0);
  925. }
  926. }
  927. /**==================================================================================================================
  928. @author : 손범성
  929. @version :2007-12-17
  930. @desc : 결과 판정을 체크한다.
  931. @param :
  932. ====================================================================================================================*/
  933. function fRsltJudgChk(){
  934. grd_rsltlst.rebuildStyle();
  935. for(var i=1; i<=grd_rsltlst.rows; i++){
  936. var judgrsltcnts1 = grd_rsltlst.valueMatrix( i , grd_rsltlst.colRef("judgrsltcnts1") );
  937. var judgrsltcnts2 = grd_rsltlst.valueMatrix( i , grd_rsltlst.colRef("judgrsltcnts2") );
  938. var judgrsltcnts3 = grd_rsltlst.valueMatrix( i , grd_rsltlst.colRef("judgrsltcnts3") );
  939. var testyn = grd_rsltlst.valueMatrix( i , grd_rsltlst.colRef("testyn") );
  940. // 첫번째 건진 판정
  941. if(judgrsltcnts1 != "") {
  942. if(judgrsltcnts1 == "H") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts1") , i , grd_rsltlst.colRef("judgrsltcnts1")) = "#ff7a85";
  943. if(judgrsltcnts1 == "L") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts1") , i , grd_rsltlst.colRef("judgrsltcnts1")) = "#99ccff";
  944. grd_rsltlst.cellStyle("background-position" , i , grd_rsltlst.colRef("judgrsltcnts1") , i , grd_rsltlst.colRef("judgrsltcnts1")) = "center";
  945. }
  946. // 두번째 건진 판정
  947. if(judgrsltcnts2 != "") {
  948. if(judgrsltcnts2 == "H") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts2") , i , grd_rsltlst.colRef("judgrsltcnts2")) = "#ff7a85";
  949. if(judgrsltcnts2 == "L") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts2") , i , grd_rsltlst.colRef("judgrsltcnts2")) = "#99ccff";
  950. grd_rsltlst.cellStyle("background-position" , i , grd_rsltlst.colRef("judgrsltcnts2") , i , grd_rsltlst.colRef("judgrsltcnts2")) = "center";
  951. }
  952. // 세번째 건진 판정
  953. if(judgrsltcnts3 != "") {
  954. if(judgrsltcnts3 == "H") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts3") , i , grd_rsltlst.colRef("judgrsltcnts3")) = "#ff7a85";
  955. if(judgrsltcnts3 == "L") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts3") , i , grd_rsltlst.colRef("judgrsltcnts3")) = "#99ccff";
  956. grd_rsltlst.cellStyle("background-position" , i , grd_rsltlst.colRef("judgrsltcnts3") , i , grd_rsltlst.colRef("judgrsltcnts3")) = "center";
  957. }
  958. //판정코드 있을 경우 처방명칭에 색상 칠해주기
  959. if(testyn != "") {
  960. //if(testyn == "Y") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("testyn") , i , grd_rsltlst.colRef("testyn")) = "#ff7a85";
  961. if(testyn == "Y") grd_rsltlst.cellStyle("font-weight" , i , grd_rsltlst.colRef("testnm") , i , grd_rsltlst.colRef("testnm")) = "bold";
  962. }
  963. }
  964. for(var i=1; i<=grd_rslttextlst.rows; i++){
  965. grd_rslttextlst.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
  966. grd_rslttextlst.rowstyle( i , "data" , "color" ) = "#000000";
  967. var olddd = grd_rslttextlst.valueMatrix(i, grd_rslttextlst.colRef("rsrvdd"));
  968. var nowdd = cmb_srchrsrvdd.value;
  969. if(olddd == nowdd){
  970. grd_rslttextlst.rowstyle( i , "data" , "background-color" ) = "#CCFFCC";
  971. }
  972. }
  973. }
  974. /**==================================================================================================================
  975. @author : 손범성
  976. @version :2008-07-04
  977. @desc : 결과 판정을 체크한다.
  978. @param :
  979. ====================================================================================================================*/
  980. function fSetColRsltText(vRow){
  981. if(vRow < 1) return;
  982. var nodeList = instance1.selectNodes(grd_rslttextlst.attribute("nodeset"));
  983. if(nodeList == null) return;
  984. if(nodeList.length < 1) return;
  985. model.makeNode(tar_rsltcnts1.attribute("ref"));
  986. model.makeNode(tar_rsltcnts2.attribute("ref"));
  987. model.makeNode(tar_rsltcnts3.attribute("ref"));
  988. model.setValue(tar_rsltcnts1.attribute("ref"), nodeList.item( vRow - 1 ).rslt1.text);
  989. model.setValue(tar_rsltcnts2.attribute("ref"), nodeList.item( vRow - 1 ).rslt2.text);
  990. model.setValue(tar_rsltcnts3.attribute("ref"), nodeList.item( vRow - 1 ).rslt3.text);
  991. model.refresh();
  992. }
  993. /*=====================================================================================
  994. @desc : 추가, 재검, 타과의뢰 정보 조회
  995. =====================================================================================*/
  996. function fGetAfexamlist(){
  997. if(model.getValue("/root/send/srchrsrvdd") == "" || model.getValue("/root/send/srchrsrvno") == ""){
  998. // messageBox("조회 후" , "C003");
  999. return;
  1000. }else{
  1001. model.removeNodeset("/root/main/afexamlist");
  1002. model.setValue("/root/send/srchafexam/healexamflag" , model.getValue("/root/send/srchhealexamflag"));
  1003. model.setValue("/root/send/srchafexam/rsrvdd" , model.getValue("/root/send/srchrsrvdd"));
  1004. model.setValue("/root/send/srchafexam/rsrvno" , model.getValue("/root/send/srchrsrvno"));
  1005. submit("TRAHR00506");
  1006. }
  1007. }
  1008. ]]>
  1009. </script>
  1010. </xhtml:head>
  1011. <xhtml:body guideline="1,1197;2,757;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1012. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  1013. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:75px; height:13px; ">종합판정</caption>
  1014. </group>
  1015. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  1016. <switch id="switch1" style="left:3px; top:25px; width:1190px; height:713px; border-color:#c7a3cf; border-style:solid; ">
  1017. <case id="case_pat" selected="true">
  1018. <group id="group3" style="left:1045px; top:78px; width:135px; height:25px; ">
  1019. <shape id="roundrect3" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:6px; top:4px; width:20px; height:17px; background-color:#7ffc76; border-color:#ffffff; "/>
  1020. <shape id="roundrect4" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:60px; top:4px; width:20px; height:17px; background-color:#f8939f; border-color:#ffffff; "/>
  1021. <caption id="caption25" style="left:25px; top:5px; width:30px; height:15px; ">결과</caption>
  1022. <caption id="caption27" style="left:80px; top:5px; width:55px; height:15px; ">결과완료</caption>
  1023. </group>
  1024. <line id="line6" class="line_1" style="x1:5px; y1:115px; x2:1180px; y2:115px; "/>
  1025. <datagrid id="grd_judgpatlst" nodeset="/root/main/judgpatlst/item" caption="성명^영문명^등록번호^성별^나이^집전화^휴대전화^상태^접수시간^접수일자^패키지코드^패키지명^단체코드^단체명^예약일자^예약시간^결과상담^판정일자^판정시간^판정의^접수비고^예약등록일자^예약등록번호^외래생성번호^주민번호1^주민번호2^rsltyn" colsep="^" colwidth="76, 0, 73, 38, 36, 90, 90, 60, 0, 0, 0, 100, 0, 100, 71, 58, 71, 71, 60, 90, 246, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:5px; top:100px; width:1175px; height:607px; ">
  1026. <col ref="hngnm"/>
  1027. <col ref="engnm" visibility="hidden"/>
  1028. <col ref="pid"/>
  1029. <col ref="sex"/>
  1030. <col ref="age"/>
  1031. <col ref="hometel"/>
  1032. <col ref="mpphontel"/>
  1033. <col disabled="true" ref="statflag" type="combo">
  1034. <choices>
  1035. <itemset nodeset="/root/init/baseinfo/statlst/A0107">
  1036. <label ref="cdnm"/>
  1037. <value ref="cdid"/>
  1038. </itemset>
  1039. </choices>
  1040. </col>
  1041. <col ref="ordtm" visibility="hidden" format="hh:nn"/>
  1042. <col ref="orddd" visibility="hidden" format="yyyy-mm-dd"/>
  1043. <col ref="pkgcd" visibility="hidden"/>
  1044. <col ref="pkgnm"/>
  1045. <col ref="cmpycd" visibility="hidden"/>
  1046. <col ref="cmpynm"/>
  1047. <col ref="hopedd" format="yyyy-mm-dd" style="text-align:center; "/>
  1048. <col ref="rsrvtm" format="hh:nn" style="text-align:center; "/>
  1049. <col disabled="true" ref="rsltcnstflag" type="combo">
  1050. <choices>
  1051. <itemset nodeset="/root/init/baseinfo/rsltcnstflaglst/A0123">
  1052. <label ref="cdnm"/>
  1053. <value ref="cdid"/>
  1054. </itemset>
  1055. </choices>
  1056. </col>
  1057. <col ref="judgdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1058. <col ref="judgtm" format="hh:nn" style="text-align:center; "/>
  1059. <col disabled="true" ref="judgdrid" type="combo">
  1060. <choices>
  1061. <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
  1062. <label ref="drnm"/>
  1063. <value ref="drid"/>
  1064. </itemset>
  1065. </choices>
  1066. </col>
  1067. <col ref="acptremcnts"/>
  1068. <col ref="rsrvdd" visibility="hidden"/>
  1069. <col ref="rsrvno" visibility="hidden"/>
  1070. <col ref="cretno" visibility="hidden"/>
  1071. <col ref="rgstno1" visibility="hidden"/>
  1072. <col ref="rgstno2" visibility="hidden"/>
  1073. <col ref="rsltyn" visibility="hidden"/>
  1074. <script type="javascript" ev:event="ondblclick">
  1075. <![CDATA[
  1076. //2016/10/25 동명이인 관련 알림 팝업
  1077. fChkPatNameC(grd_judgpatlst.nodeset, "hngnm", grd_judgpatlst.valueMatrix(grd_judgpatlst.row, grd_judgpatlst.colRef("hngnm")));
  1078. //2016/10/25 동명이인 관련 알림 팝업
  1079. fGetJudgInfo();
  1080. ]]>
  1081. </script>
  1082. </datagrid>
  1083. <group id="group2" style="left:5px; top:9px; width:1179px; height:66px; vertical-align:top; ">
  1084. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1178px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  1085. <caption id="caption13" class="search_name" style="left:425px; top:10px; width:86px; height:17px; ">건진일자 :</caption>
  1086. <caption id="caption14" class="search_name" style="left:11px; top:10px; width:89px; height:17px; ">건진종류 :</caption>
  1087. <button id="btn_search" class="btn1_letter2" style="left:1113px; top:9px; width:56px; height:22px; ">
  1088. <caption>조회</caption>
  1089. <script type="javascript" ev:event="DOMActivate">
  1090. <![CDATA[
  1091. fGetJudgPatList();
  1092. ]]>
  1093. </script>
  1094. </button>
  1095. <line id="line16" style="x1:1101px; y1:10px; x2:1101px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  1096. <select1 id="cmb_srchhealexamdetlflag" ref="/root/init/send/srchhealexamdetlflag" class="combo_s_essential" appearance="minimal" style="left:101px; top:10px; width:109px; height:19px; ">
  1097. <choices>
  1098. <itemset nodeset="/root/init/baseinfo/hedetlflaglst/A0069">
  1099. <label ref="cdnm"/>
  1100. <value ref="cdid"/>
  1101. </itemset>
  1102. </choices>
  1103. </select1>
  1104. <input id="ipt_srchfromdd" ref="/root/init/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:514px; top:10px; width:100px; height:19px; "/>
  1105. <input id="ipt_srchtodd" ref="/root/init/send/srchtodd" class="input_s_essential" inputtype="date" style="left:634px; top:10px; width:100px; height:19px; ">
  1106. <script type="javascript" ev:event="xforms-value-changed">
  1107. <![CDATA[
  1108. fGetJudgPatList();
  1109. ]]>
  1110. </script>
  1111. </input>
  1112. <select1 id="cmb_srchjudgdrid" ref="/root/init/send/srchjudgdrid" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:1070px; top:35px; width:105px; height:19px; ">
  1113. <choices>
  1114. <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
  1115. <label ref="drnm"/>
  1116. <value ref="drid"/>
  1117. </itemset>
  1118. </choices>
  1119. <script type="javascript" ev:event="xforms-value-changed">
  1120. <![CDATA[
  1121. fGetJudgPatList();
  1122. ]]>
  1123. </script>
  1124. </select1>
  1125. <caption id="caption1" class="search_name" visibility="hidden" style="left:992px; top:35px; width:89px; height:17px; ">판정의 :</caption>
  1126. <input id="ipt_pnm" ref="/root/init/send/item1/hngnm" class="input_default" style="left:987px; top:10px; width:104px; height:19px; "/>
  1127. <input id="ipt_pid" ref="/root/init/send/item1/pid" class="input_default" style="left:855px; top:10px; width:105px; height:19px; ">
  1128. <script type="javascript" ev:event="onkeyup">
  1129. <![CDATA[
  1130. if( event.keyCode != 13) return ;
  1131. if( !ahafGetPatInfo(2, ipt_pid.currentText , "" , "/root/init/send/item1" ) ) return ;
  1132. // //model.setValue(ipt_pid.attribute("ref"), model.getValue("/root/temp/patinfo/item/pid") );
  1133. // //model.setValue(ipt_pnm.attribute("ref"), model.getValue("/root/temp/patinfo/item/hngnm") );
  1134. // if( model.getValue( ipt_pid.attribute("ref") ) == "" ) return ;
  1135. // fGetJudgPatList();
  1136. model.setValue("/root/init/send/item1/pid", model.getValue("/root/temp/patinfo/item/pid"));
  1137. model.setValue("/root/init/send/item1/hngnm", model.getValue("/root/temp/patinfo/item/hngnm") );
  1138. model.refresh();
  1139. if( model.getValue("/root/init/send/item1/pid") == "" ) return ;
  1140. fGetJudgPatList();
  1141. ]]>
  1142. </script>
  1143. </input>
  1144. <caption id="caption3" class="search_name" style="left:765px; top:10px; width:89px; height:17px; ">등록번호 :</caption>
  1145. <caption id="caption18" class="search_no_b" style="left:619px; top:11px; width:12px; height:17px; ">~</caption>
  1146. <button id="btn_srchpat" class="icon_search" style="left:964px; top:10px; width:16px; height:16px; ">
  1147. <caption/>
  1148. <script type="javascript" ev:event="DOMActivate">
  1149. <![CDATA[
  1150. fSearchPatInfo("SMAHA00100", "pnm", ipt_pnm.currentText , "N", "/root/send" ,ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
  1151. if( model.getValue(ipt_pid.attribute("ref")) != "" ) fGetJudgPatList();
  1152. ]]>
  1153. </script>
  1154. </button>
  1155. <caption id="caption20" class="search_name" style="left:11px; top:35px; width:89px; height:17px; ">사업장명 :</caption>
  1156. <input id="ipt_cmpycd" ref="/root/init/send/item3/cmpycd" class="input_default" style="left:101px; top:35px; width:109px; height:19px; ">
  1157. <script type="javascript" ev:event="onkeyup">
  1158. <![CDATA[
  1159. inputEnterKey("btn_selcmpy", "DOMActivate");
  1160. ]]>
  1161. </script>
  1162. </input>
  1163. <button id="btn_selcmpy" class="icon_search" style="left:215px; top:37px; width:16px; height:16px; ">
  1164. <caption/>
  1165. <script type="javascript" ev:event="DOMActivate">
  1166. <![CDATA[
  1167. fGetComnCd("SMAHA02300", "08" , "nm", ipt_cmpycd.currentText ,ipt_cmpycd.attribute("ref"),opt_cmpynm.attribute("ref"));
  1168. ]]>
  1169. </script>
  1170. </button>
  1171. <output id="opt_cmpynm" ref="/root/init/send/item3/cmpynm" class="output_fix" style="left:240px; top:35px; width:160px; height:19px; "/>
  1172. <caption id="caption24" class="search_name" style="left:220px; top:10px; width:86px; height:17px; ">건진장소 :</caption>
  1173. <select1 id="cmb_placeflag" ref="/root/send/srchhealexamplacecd" class="combo_default" appearance="minimal" style="left:315px; top:10px; width:76px; height:19px; ">
  1174. <choices>
  1175. <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
  1176. <label ref="cdnm"/>
  1177. <value ref="cdid"/>
  1178. </itemset>
  1179. </choices>
  1180. </select1>
  1181. </group>
  1182. <caption id="caption5" class="tit_2" style="left:5px; top:85px; width:100px; height:13px; ">대기자리스트</caption>
  1183. <select id="checkbox1" ref="/root/send/srchstatflag2" overflow="visible" appearance="full" cols="10" style="left:515px; top:45px; width:640px; height:20px; border-style:none; ">
  1184. <choices>
  1185. <itemset nodeset="/root/init/baseinfo/statlst/A0107">
  1186. <label ref="cdnm"/>
  1187. <value ref="cdid"/>
  1188. </itemset>
  1189. </choices>
  1190. </select>
  1191. <caption id="caption31" class="search_name" style="left:425px; top:45px; width:97px; height:17px; ">상태구분 :</caption>
  1192. </case>
  1193. <case id="case_judg">
  1194. <datagrid id="grd_rsltlst" nodeset="/root/main/judgdetl/rsltlst/item" caption="처방명칭^2009^판정^2008^판정^2007^판정^기준^단위^testcd^execprcpuniqno^prcpdd^testyn" colsep="^" colwidth="95, 67, 30, 67, 30, 67, 30, 65, 50, 50, 50, 50, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:5px; top:142px; width:540px; height:373px; ">
  1195. <col ref="testnm"/>
  1196. <col ref="rslt1"/>
  1197. <col ref="judgrsltcnts1" style="text-align:center; "/>
  1198. <col ref="rslt2"/>
  1199. <col ref="judgrsltcnts2" style="text-align:center; "/>
  1200. <col ref="rslt3"/>
  1201. <col ref="judgrsltcnts3" style="text-align:center; "/>
  1202. <col ref="stndval"/>
  1203. <col ref="rsltunit"/>
  1204. <col ref="testcd" visibility="hidden"/>
  1205. <col ref="execprcpuniqno" visibility="hidden"/>
  1206. <col ref="prcpdd" visibility="hidden"/>
  1207. <col ref="testyn" visibility="hidden"/>
  1208. <script type="javascript" ev:event="ondblclick">
  1209. <![CDATA[
  1210. if (isDataCell()) {
  1211. model.makeValue("/root/send/srchtestcd",model.getValue("/root/main/judgdetl/rsltlst/item["+grd_rsltlst.row+"]/testcd"));
  1212. submit("TRAHB00803");
  1213. grp_textview.visible = true;
  1214. grd_judglst.outlinelevelcol = grd_judglst.colRef("lvl");
  1215. grd_judglst.outlinecol = grd_judglst.colRef("judgexmpcd");
  1216. grd_judglst.outlinebar = 2;
  1217. }
  1218. ]]>
  1219. </script>
  1220. <script type="javascript" ev:event="onclick">
  1221. <![CDATA[
  1222. if (isDataCell()) {
  1223. model.makeValue("/root/temp/seqno", model.getValue("/root/main/judgdetl/rsltlst/item["+grd_rsltlst.row+"]/execprcpuniqno"));
  1224. model.makeValue("/root/temp/prcpdd",model.getValue("/root/main/judgdetl/rsltlst/item["+grd_rsltlst.row+"]/prcpdd"));
  1225. }
  1226. ]]>
  1227. </script>
  1228. </datagrid>
  1229. <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; ">
  1230. <col ref="testnm"/>
  1231. <col ref="testcd" visibility="hidden"/>
  1232. <col ref="judgrslt" visibility="hidden"/>
  1233. <col ref="rslt1" visibility="hidden"/>
  1234. <col ref="execprcpuniqno" visibility="hidden"/>
  1235. <col ref="prcpdd" visibility="hidden"/>
  1236. <col ref="rsrvdd" visibility="hidden"/>
  1237. <script type="javascript" ev:event="ondblclick">
  1238. <![CDATA[
  1239. if (isDataCell()) {
  1240. model.makeValue("/root/send/srchtestcd",model.getValue("/root/main/judgdetl/rsltlst/itemtext["+grd_rslttextlst.row+"]/testcd"));
  1241. submit("TRAHB00803");
  1242. grp_textview.visible = true;
  1243. grp_textview.attribute("top") = 210;
  1244. grp_textview.attribute("left") = 350;
  1245. grd_judglst.outlinelevelcol = grd_judglst.colRef("lvl");
  1246. grd_judglst.outlinecol = grd_judglst.colRef("judgexmpcd");
  1247. grd_judglst.outlinebar = 2;
  1248. }
  1249. ]]>
  1250. </script>
  1251. <script type="javascript" ev:event="onclick">
  1252. <![CDATA[
  1253. if (isDataCell()) {
  1254. fSetColRsltText(grd_rslttextlst.row);
  1255. model.makeValue("/root/temp/seqno", model.getValue("/root/main/judgdetl/rsltlst/itemtext["+grd_rslttextlst.row+"]/execprcpuniqno"));
  1256. model.makeValue("/root/temp/prcpdd",model.getValue("/root/main/judgdetl/rsltlst/itemtext["+grd_rslttextlst.row+"]/prcpdd"));
  1257. }
  1258. ]]>
  1259. </script>
  1260. <script type="javascript" ev:event="onkeydown">
  1261. <![CDATA[
  1262. var idx = grd_rslttextlst.row;
  1263. if(event.keyCode == 38 && idx > 0) {
  1264. fSetColRsltText( idx - 1 );
  1265. }else if(event.keyCode == 40 && idx < grd_rslttextlst.rows -1) {
  1266. fSetColRsltText( idx + 1 );
  1267. }
  1268. ]]>
  1269. </script>
  1270. </datagrid>
  1271. <group id="group5" style="left:240px; top:522px; width:306px; height:183px; vertical-align:top; ">
  1272. <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; ">
  1273. <![CDATA[2006]]>
  1274. <script type="javascript" ev:event="ondblclick">
  1275. <![CDATA[
  1276. fSetLargView(tar_rsltcnts1.value, cap_year1.value);
  1277. ]]>
  1278. </script>
  1279. </caption>
  1280. <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; ">
  1281. <![CDATA[2005]]>
  1282. <script type="javascript" ev:event="ondblclick">
  1283. <![CDATA[
  1284. fSetLargView(tar_rsltcnts2.value, cap_year2.value);
  1285. ]]>
  1286. </script>
  1287. </caption>
  1288. <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; ">
  1289. <![CDATA[2004]]>
  1290. <script type="javascript" ev:event="ondblclick">
  1291. <![CDATA[
  1292. fSetLargView(tar_rsltcnts3.value, cap_year3.value);
  1293. ]]>
  1294. </script>
  1295. </caption>
  1296. <textarea id="tar_rsltcnts1" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt1" scroll="vertical" editable="false" style="left:36px; top:2px; width:268px; height:56px; "/>
  1297. <textarea id="tar_rsltcnts3" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt3" scroll="vertical" editable="false" style="left:36px; top:125px; width:268px; height:56px; "/>
  1298. <textarea id="tar_rsltcnts2" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt2" scroll="vertical" editable="false" style="left:36px; top:64px; width:268px; height:56px; "/>
  1299. <line id="line4" class="line_2" style="x1:-2px; y1:-1px; x2:292px; y2:-1px; "/>
  1300. <line id="line5" class="line_2" style="x1:30px; y1:121px; x2:304px; y2:121px; "/>
  1301. <line id="line7" class="line_2" style="x1:30px; y1:60px; x2:304px; y2:60px; "/>
  1302. <button id="btn_plus" class="icon_plus" style="left:17px; top:5px; width:13px; height:15px; ">
  1303. <caption/>
  1304. <script type="javascript" ev:event="onclick">
  1305. <![CDATA[
  1306. tar_rsltcnts1_plus.visible = true;
  1307. tar_rsltcnts1_plus.attribute("top") = 0;
  1308. tar_rsltcnts1_plus.attribute("width") = 630;
  1309. tar_rsltcnts2_plus.visible = true;
  1310. tar_rsltcnts2_plus.attribute("top") = 235;
  1311. tar_rsltcnts2_plus.attribute("width") = 630;
  1312. tar_rsltcnts3_plus.visible = true;
  1313. tar_rsltcnts3_plus.attribute("top") = 470;
  1314. tar_rsltcnts3_plus.attribute("width") = 630;
  1315. ]]>
  1316. </script>
  1317. </button>
  1318. <button id="btn_minus" class="icon_minus" style="left:2px; top:5px; width:13px; height:15px; ">
  1319. <caption/>
  1320. <script type="javascript" ev:event="onclick">
  1321. <![CDATA[
  1322. tar_rsltcnts1_plus.visible = false;
  1323. tar_rsltcnts2_plus.visible = false;
  1324. tar_rsltcnts3_plus.visible = false;
  1325. ]]>
  1326. </script>
  1327. </button>
  1328. </group>
  1329. <line id="line9" class="line_1" style="x1:5px; y1:517px; x2:546px; y2:517px; "/>
  1330. <line id="line3" class="line_1" style="x1:550px; y1:27px; x2:1180px; y2:27px; "/>
  1331. <caption id="caption21" class="tit_2" style="left:550px; top:10px; width:100px; height:14px; ">종합판정내용</caption>
  1332. <button id="btn_nextpat" class="btn2_letter4" style="left:1116px; top:6px; width:64px; height:19px; font-weight:bold; ">
  1333. <caption>다음환자</caption>
  1334. <script type="javascript" ev:event="DOMActivate">
  1335. <![CDATA[
  1336. fGetNextPatInfo();
  1337. ]]>
  1338. </script>
  1339. </button>
  1340. <line id="line11" class="line_3" style="x1:5px; y1:706px; x2:536px; y2:706px; "/>
  1341. <caption id="caption4" class="tit_2" style="left:5px; top:95px; width:100px; height:13px; ">종합판정</caption>
  1342. <caption id="caption23" class="cell_1" style="left:5px; top:117px; width:60px; height:23px; vertical-align:middle; ">패키지명</caption>
  1343. <output id="opt_pkgnm" ref="/root/main/judgdetl/judginfo/item/pkgnm" class="output_fix" appearance="output" style="left:67px; top:118px; width:328px; height:19px; "/>
  1344. <line id="line8" class="line_3" style="x1:5px; y1:139px; x2:546px; y2:139px; "/>
  1345. <line id="line12" class="line_3" style="x1:551px; y1:152px; x2:1181px; y2:152px; "/>
  1346. <caption id="caption7" class="cell_1" style="left:550px; top:32px; width:70px; height:120px; vertical-align:middle; "/>
  1347. <switch id="switch2" style="left:550px; top:180px; width:630px; height:525px; border-color:#c7a3cf; border-style:solid; ">
  1348. <case id="case_all" selected="true">
  1349. <line id="line13" class="line_1" style="x1:5px; y1:6px; x2:622px; y2:6px; "/>
  1350. <caption id="caption10" class="cell_1" style="left:5px; top:51px; width:53px; height:213px; vertical-align:middle; ">한글</caption>
  1351. <line id="line14" class="line_2" style="x1:-2px; y1:-1px; x2:292px; y2:-1px; "/>
  1352. <caption id="caption12" class="cell_1" style="left:5px; top:307px; width:52px; height:213px; vertical-align:middle; ">영문</caption>
  1353. <line id="line17" class="line_2" style="x1:5px; y1:266px; x2:620px; y2:266px; "/>
  1354. <line id="line15" class="line_3" style="x1:5px; y1:520px; x2:620px; y2:520px; "/>
  1355. <line id="line10" class="line_2" style="x1:5px; y1:305px; x2:620px; y2:305px; "/>
  1356. <line id="line18" class="line_2" style="x1:5px; y1:49px; x2:620px; y2:49px; "/>
  1357. <caption id="caption11" class="cell_1" style="left:5px; top:11px; width:53px; height:38px; vertical-align:middle; ">단문(한)</caption>
  1358. <caption id="caption15" class="cell_1" style="left:5px; top:267px; width:53px; height:38px; vertical-align:middle; ">단문(영)</caption>
  1359. <textarea id="tar_judghngcnts2" ref="/root/main/judgdetl/judginfo/item/hngjudgcnts" scroll="vertical" style="left:60px; top:51px; width:562px; height:214px; "/>
  1360. <textarea id="tar_judgengcnts2" ref="/root/main/judgdetl/judginfo/item/engjudgcnts" scroll="vertical" style="left:60px; top:307px; width:562px; height:214px; "/>
  1361. <textarea id="tar_shrthngjudgcnts1" ref="/root/main/judgdetl/judginfo/item/shrthngjudgcnts" scroll="vertical" style="left:60px; top:11px; width:562px; height:38px; "/>
  1362. <textarea id="tar_shrtengjudgcnts1" ref="/root/main/judgdetl/judginfo/item/shrtengjudgcnts" scroll="vertical" style="left:60px; top:267px; width:562px; height:38px; "/>
  1363. </case>
  1364. <case id="case_eng">
  1365. <textarea id="tar_judgengcnts" ref="/root/main/judgdetl/judginfo/item/engjudgcnts" scroll="vertical" style="left:5px; top:56px; width:619px; height:464px; font-size:12px; line-spacing:5; "/>
  1366. <line id="line21" class="line_2" style="x1:5px; y1:54px; x2:620px; y2:54px; "/>
  1367. <line id="line22" class="line_1" style="x1:5px; y1:6px; x2:624px; y2:6px; "/>
  1368. <textarea id="tar_shrtengjudgcnts" ref="/root/main/judgdetl/judginfo/item/shrtengjudgcnts" scroll="vertical" style="left:72px; top:11px; width:552px; height:43px; font-size:12px; line-spacing:5; "/>
  1369. <caption id="caption16" class="cell_1" style="left:5px; top:11px; width:65px; height:43px; vertical-align:middle; ">단문</caption>
  1370. <button id="button10" class="icon_top" style="left:43px; top:35px; width:26px; height:19px; ">
  1371. <caption/>
  1372. <script type="javascript" ev:event="DOMActivate">
  1373. <![CDATA[
  1374. tar_shrtengjudgcnts.attribute("height") = 43;
  1375. tar_judgengcnts.attribute("top") = 57;
  1376. tar_judgengcnts.attribute("height") = 464;
  1377. button10.visible = false;
  1378. button11.visible = true;
  1379. ]]>
  1380. </script>
  1381. </button>
  1382. <button id="button11" class="icon_bottom" style="left:43px; top:35px; width:26px; height:19px; ">
  1383. <caption/>
  1384. <script type="javascript" ev:event="DOMActivate">
  1385. <![CDATA[
  1386. tar_shrtengjudgcnts.attribute("height") = 193;
  1387. tar_judgengcnts.attribute("top") = 207;
  1388. tar_judgengcnts.attribute("height") = 314;
  1389. button10.visible = true;
  1390. button11.visible = false;
  1391. ]]>
  1392. </script>
  1393. </button>
  1394. </case>
  1395. <case id="case_hng">
  1396. <line id="line19" class="line_2" style="x1:5px; y1:54px; x2:620px; y2:54px; "/>
  1397. <line id="line20" class="line_1" style="x1:5px; y1:6px; x2:624px; y2:6px; "/>
  1398. <caption id="caption17" class="cell_1" style="left:5px; top:11px; width:65px; height:43px; vertical-align:middle; ">단문</caption>
  1399. <textarea id="tar_shrthngjudgcnts" ref="/root/main/judgdetl/judginfo/item/shrthngjudgcnts" scroll="vertical" style="left:72px; top:11px; width:552px; height:43px; font-family:돋움, Arial; font-size:12px; "/>
  1400. <textarea id="tar_judghngcnts" ref="/root/main/judgdetl/judginfo/item/hngjudgcnts" scroll="vertical" style="left:5px; top:57px; width:619px; height:464px; font-family:돋움, Arial; line-spacing:5; "/>
  1401. <button id="btn_small" class="icon_top" style="left:43px; top:35px; width:26px; height:19px; ">
  1402. <caption/>
  1403. <script type="javascript" ev:event="DOMActivate">
  1404. <![CDATA[
  1405. tar_shrthngjudgcnts.attribute("height") = 43;
  1406. tar_judghngcnts.attribute("top") = 57;
  1407. tar_judghngcnts.attribute("height") = 464;
  1408. btn_small.visible = false;
  1409. btn_large.visible = true;
  1410. ]]>
  1411. </script>
  1412. </button>
  1413. <button id="btn_large" class="icon_bottom" style="left:43px; top:35px; width:26px; height:19px; ">
  1414. <caption/>
  1415. <script type="javascript" ev:event="DOMActivate">
  1416. <![CDATA[
  1417. tar_shrthngjudgcnts.attribute("height") = 193;
  1418. tar_judghngcnts.attribute("top") = 207;
  1419. tar_judghngcnts.attribute("height") = 314;
  1420. btn_small.visible = true;
  1421. btn_large.visible = false;
  1422. ]]>
  1423. </script>
  1424. </button>
  1425. </case>
  1426. <case id="case_afexam">
  1427. <button id="button16" class="btn2_letter3" style="left:469px; top:5px; width:53px; height:19px; ">
  1428. <caption>행추가</caption>
  1429. <script type="javascript" ev:event="DOMActivate">
  1430. <![CDATA[
  1431. grd_afexamlist.addRow();
  1432. var healexamflag = model.getValue("/root/send/srchhealexamflag");
  1433. var healexamdetlflag = model.getValue("/root/send/srchhealexamdetlflag");
  1434. var rsrvdd = model.getValue("/root/send/srchrsrvdd");
  1435. var rsrvno = model.getValue("/root/send/srchrsrvno");
  1436. model.setValue("/root/main/afexamlist/item["+ grd_afexamlist.row +"]/healexamflag" , healexamflag);
  1437. model.setValue("/root/main/afexamlist/item["+ grd_afexamlist.row +"]/healexamdetlflag" , healexamdetlflag);
  1438. model.setValue("/root/main/afexamlist/item["+ grd_afexamlist.row +"]/rsrvdd" , rsrvdd);
  1439. model.setValue("/root/main/afexamlist/item["+ grd_afexamlist.row +"]/rsrvno" , rsrvno);
  1440. ]]>
  1441. </script>
  1442. </button>
  1443. <button id="btn_grdpkgdel" class="btn2_letter3" style="left:526px; top:5px; width:53px; height:19px; ">
  1444. <caption>행삭제</caption>
  1445. <script type="javascript" ev:event="DOMActivate">
  1446. <![CDATA[
  1447. deleteSelectedRows(grd_afexamlist, true);
  1448. ]]>
  1449. </script>
  1450. </button>
  1451. <button id="btn_basesave" class="btn5_letter2" visibility="visible" style="left:583px; top:5px; width:42px; height:19px; ">
  1452. <caption>저장</caption>
  1453. <script type="javascript" ev:event="DOMActivate">
  1454. <![CDATA[
  1455. var updData = grd_afexamlist.getUpdateData();
  1456. if(updData == ""){
  1457. messageBox("저장할 데이터가 존재하지 않습니다.", "E999");
  1458. return false;
  1459. }
  1460. model.makeValue("/root/send/saveAfexam/item", updData);
  1461. if(submit("TXAHR00603")){
  1462. messageBox("저장이", "I002");
  1463. btn_searchhist.dispatch("DOMActivate");
  1464. }
  1465. ]]>
  1466. </script>
  1467. </button>
  1468. <datagrid id="grd_afexamlist" nodeset="/root/main/afexamlist/item" caption="healexamflag^rsrvdd^rsrvno^seq^healexamdetlflag^통보^구분^코드^검사명^월구분^이전결과^재검결과^검사일자^상담일자^진료의뢰과^진료의^비고" colsep="^" colwidth="10, 10, 10, 10, 10, 30, 40, 70, 90, 50, 80, 80, 90, 90, 80, 60, 300" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:30px; width:625px; height:490px; ">
  1469. <col ref="healexamflag" visibility="hidden"/>
  1470. <col ref="rsrvdd" visibility="hidden"/>
  1471. <col ref="rsrvno" visibility="hidden"/>
  1472. <col ref="seq" visibility="hidden"/>
  1473. <col ref="healexamdetlflag" visibility="hidden"/>
  1474. <col checkvalue="Y,N" ref="notiyn" type="checkbox"/>
  1475. <col ref="aftype" type="combo" style="text-align:center; ">
  1476. <choices>
  1477. <item>
  1478. <label>추가</label>
  1479. <value>A</value>
  1480. </item>
  1481. <item>
  1482. <label>재검</label>
  1483. <value>B</value>
  1484. </item>
  1485. <item>
  1486. <label>타과</label>
  1487. <value>C</value>
  1488. </item>
  1489. <item>
  1490. <label>연장</label>
  1491. <value>D</value>
  1492. </item>
  1493. <item>
  1494. <label>전화</label>
  1495. <value>E</value>
  1496. </item>
  1497. <item>
  1498. <label>방문</label>
  1499. <value>F</value>
  1500. </item>
  1501. </choices>
  1502. </col>
  1503. <col ref="testcd" type="inputbutton" style="padding-left:5; "/>
  1504. <col ref="testnm" type="output" style="padding-left:5; "/>
  1505. <col ref="monthgb" type="combo" style="text-align:center; ">
  1506. <choices>
  1507. <item>
  1508. <label>1개월</label>
  1509. <value>1</value>
  1510. </item>
  1511. <item>
  1512. <label>3개월</label>
  1513. <value>3</value>
  1514. </item>
  1515. <item>
  1516. <label>6개월</label>
  1517. <value>6</value>
  1518. </item>
  1519. <item>
  1520. <label>9개월</label>
  1521. <value>9</value>
  1522. </item>
  1523. </choices>
  1524. </col>
  1525. <col ref="berslt" type="input"/>
  1526. <col ref="afrslt" type="input"/>
  1527. <col ref="aforddd" type="inputdate" style="text-align:center; "/>
  1528. <col ref="cnstdd" type="inputdate" style="text-align:center; "/>
  1529. <col ref="afdeptcd" type="combo">
  1530. <choices>
  1531. <itemset nodeset="/root/init/baseinfo/orddeptcdlst/S610">
  1532. <label ref="cdnm"/>
  1533. <value ref="cdid"/>
  1534. </itemset>
  1535. </choices>
  1536. </col>
  1537. <col ref="afdrnm" type="input"/>
  1538. <col ref="remcnts" type="input"/>
  1539. <script type="javascript" ev:event="onbuttonclick">
  1540. <![CDATA[
  1541. if(grd_afexamlist.col == grd_afexamlist.colRef("testcd")){
  1542. model.removeNodeset("/root/main/detlcodelst/item");
  1543. modal("SPAHA00801"); //선택화면 Call
  1544. if(model.getValue("/root/temp/okflag") == "ok"){
  1545. model.makeValue("/root/main/afexamlist/item["+ grd_afexamlist.row +"]/aftype" , model.getValue("/root/main/detlcodelst/item[" + 1 + "]/aftype"));
  1546. model.makeValue("/root/main/afexamlist/item["+ grd_afexamlist.row +"]/testcd" , model.getValue("/root/main/detlcodelst/item[" + 1 + "]/etcdetlcd"));
  1547. model.makeValue("/root/main/afexamlist/item["+ grd_afexamlist.row +"]/testnm" , model.getValue("/root/main/detlcodelst/item[" + 1 + "]/etcdetlnm"));
  1548. if(grd_afexamlist.rowStatus(grd_afexamlist.row)!=1){ // Insert가 아닐때 업데이트로 변경
  1549. grd_afexamlist.rowStatus(grd_afexamlist.row)=2;
  1550. }
  1551. model.refresh();
  1552. }
  1553. }
  1554. ]]>
  1555. </script>
  1556. </datagrid>
  1557. <line id="line25" class="line_1" style="x1:0px; y1:27px; x2:625px; y2:27px; "/>
  1558. <caption id="caption28" class="tit_2" style="left:0px; top:9px; width:205px; height:13px; ">추가/재검/타과의뢰/연장</caption>
  1559. </case>
  1560. </switch>
  1561. <button id="btn_eng" class="btn_sw" group="tab" style="left:605px; top:159px; width:55px; height:22px; ">
  1562. <caption>영문</caption>
  1563. <toggle case="case_eng" ev:event="onclick"/>
  1564. </button>
  1565. <button id="btn_selsickcd" class="btn2_letter4" style="left:555px; top:75px; width:64px; height:19px; font-weight:bolder; ">
  1566. <caption>질환코드</caption>
  1567. <script type="javascript" ev:event="DOMActivate">
  1568. <![CDATA[
  1569. var cnt = grd_sicklst.rows;
  1570. ahafGetSickCd("SMAHR00500", "", "", cnt , grd_sicklst.nodeset );
  1571. if( model.getValue( "/root/temp/okflag") == "Y" ){
  1572. for( var i = cnt ; i < grd_sicklst.rows ; i++){
  1573. grd_sicklst.addStatus(i, "insert");
  1574. }
  1575. }
  1576. ]]>
  1577. </script>
  1578. </button>
  1579. <button id="btn_all" class="btn_sw" group="tab" style="left:660px; top:159px; width:55px; height:22px; ">
  1580. <caption>한/영</caption>
  1581. <toggle case="case_all" ev:event="onclick"/>
  1582. </button>
  1583. <button id="btn_hng" class="btn_sw" group="tab" style="left:550px; top:159px; width:55px; height:22px; ">
  1584. <caption>한글</caption>
  1585. <toggle case="case_hng" ev:event="onclick"/>
  1586. </button>
  1587. <datagrid id="grd_sicklst" nodeset="/root/main/judgdetl/judginfo/itemsick" caption="질환코드^질환명^판정코드^cmpycd" colsep="^" colwidth="96, 417, 101, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:620px; top:32px; width:558px; height:120px; ">
  1588. <col ref="sickcd"/>
  1589. <col ref="sicknm"/>
  1590. <col ref="judgcd" type="combo" visibility="hidden">
  1591. <choices>
  1592. <item>
  1593. <label>A</label>
  1594. <value>A</value>
  1595. </item>
  1596. <item>
  1597. <label>B</label>
  1598. <value>B</value>
  1599. </item>
  1600. <item>
  1601. <label>C</label>
  1602. <value>C</value>
  1603. </item>
  1604. <item>
  1605. <label>R</label>
  1606. <value>R</value>
  1607. </item>
  1608. </choices>
  1609. </col>
  1610. <col ref="cmpycd" visibility="hidden"/>
  1611. </datagrid>
  1612. <button id="btn_sickdel" class="btn2_letter5" style="left:704px; top:6px; width:75px; height:19px; font-weight:bold; ">
  1613. <caption>선택행삭제</caption>
  1614. <script type="javascript" ev:event="DOMActivate">
  1615. <![CDATA[
  1616. deleteSelectedRows(grd_sicklst, true);
  1617. ]]>
  1618. </script>
  1619. </button>
  1620. <group id="group1" style="left:5px; top:5px; width:541px; height:85px; vertical-align:top; ">
  1621. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:540px; height:84px; background-color:#fffbf2; border-color:#ffd799; "/>
  1622. <caption id="caption22" class="search_name" style="left:3px; top:9px; width:89px; height:17px; ">건진종류 :</caption>
  1623. <button id="btn_searchhist" class="btn1_letter2" style="left:460px; top:42px; width:56px; height:22px; ">
  1624. <caption>조회</caption>
  1625. <script type="javascript" ev:event="DOMActivate">
  1626. <![CDATA[
  1627. var vPid = model.getValue(ipt_srchpid2.attribute("ref")) ;
  1628. if(vPid != "" ){
  1629. ahafGetHistList2(vPid, cmb_srchhealexamdetlflag.value, "E"); //해당환자의 건진history조회
  1630. fGetAfexamlist(); //추가, 재검, 타과의뢰 조회
  1631. cmb_srchrsrvdd.select(0);
  1632. model.refresh();
  1633. }
  1634. ]]>
  1635. </script>
  1636. </button>
  1637. <line id="line1" style="x1:443px; y1:33px; x2:443px; y2:73px; border-color:#ffe4bb; border-left-style:solid; "/>
  1638. <select1 id="cmb_srchhealexamdetlflag2" ref="/root/init/send/srchhealexamdetlflag2" class="combo_s_essential" disabled="true" appearance="minimal" style="left:87px; top:8px; width:105px; height:19px; ">
  1639. <choices>
  1640. <itemset nodeset="/root/init/baseinfo/hedetlflaglst/A0069">
  1641. <label ref="cdnm"/>
  1642. <value ref="cdid"/>
  1643. </itemset>
  1644. </choices>
  1645. </select1>
  1646. <input id="ipt_srchpnm2" ref="/root/init/send/item2/hngnm" class="input_default" style="left:217px; top:32px; width:115px; height:19px; ">
  1647. <script type="javascript" ev:event="onkeyup">
  1648. <![CDATA[
  1649. inputEnterKey("btn_search2","DOMActivate" );
  1650. ]]>
  1651. </script>
  1652. </input>
  1653. <input id="ipt_srchpid2" ref="/root/init/send/item2/pid" class="input_default" style="left:87px; top:32px; width:105px; height:19px; ">
  1654. <script type="javascript" ev:event="onkeyup">
  1655. <![CDATA[
  1656. if( event.keyCode == 13 ){
  1657. //건진자 정보 가져오기...
  1658. fGetPatinfoWithPid(ipt_srchpid2.currentText);
  1659. }
  1660. ]]>
  1661. </script>
  1662. </input>
  1663. <caption id="caption26" class="search_name" style="left:3px; top:32px; width:89px; height:17px; ">등록번호 :</caption>
  1664. <caption id="caption2" class="search_name" style="left:2px; top:55px; width:86px; height:17px; ">건진정보 :</caption>
  1665. <select1 id="cmb_srchrsrvdd" ref="/root/send/srchrsrvdd" class="combo_s_essential" appearance="minimal" style="left:87px; top:55px; width:325px; height:19px; ">
  1666. <choices>
  1667. <itemset nodeset="/root/temp/histlst/item">
  1668. <label ref="hopedd"/>
  1669. <value ref="rsrvdd"/>
  1670. </itemset>
  1671. </choices>
  1672. <script type="javascript" ev:event="xforms-select">
  1673. <![CDATA[
  1674. var idx = cmb_srchrsrvdd.mouseRow;
  1675. if(idx < 0) return;
  1676. var sNd = cmb_srchrsrvdd.choices.itemset.attribute("nodeset");
  1677. var nodelist = instance1.selectNodes(sNd);
  1678. if(nodelist == null) return;
  1679. if(idx >= nodelist.length) idx = 0;
  1680. var sRsrvdd = nodelist.item(idx).rsrvdd.text;
  1681. var sRsrvno = nodelist.item(idx).rsrvno.text;
  1682. var sPkgnm = nodelist.item(idx).pkgnm.text;
  1683. var sPid = nodelist.item(idx).pid.text;
  1684. var sOrdDD = nodelist.item(idx).orddd.text;
  1685. var sCretno = nodelist.item(idx).cretno.text;
  1686. var sHealExamDetlFlag = nodelist.item(idx).healexamdetlflag.text;
  1687. //종합건진,기업건진 따라 건진종류 변경
  1688. model.setValue("/root/init/send/srchhealexamdetlflag2", sHealExamDetlFlag);
  1689. fGetJudgDetlInfo(sRsrvdd, sRsrvno , sPkgnm, sPid, sOrdDD, sCretno); //판정정보 상세내역 조회
  1690. fGetAfexamlist(); //추가, 재검, 타과의뢰 정보 조회
  1691. ]]>
  1692. </script>
  1693. </select1>
  1694. <output id="opt_sex" ref="/root/init/send/item2/sex" class="output_fix" style="left:335px; top:32px; width:36px; height:19px; "/>
  1695. <output id="opt_age" ref="/root/init/send/item2/age" class="output_fix" style="left:374px; top:32px; width:36px; height:19px; "/>
  1696. <button id="btn_search2" class="icon_search" style="left:195px; top:32px; width:16px; height:16px; ">
  1697. <caption/>
  1698. <script type="javascript" ev:event="DOMActivate">
  1699. <![CDATA[
  1700. fSearchPatInfo("SMAHA00100", "pnm", ipt_srchpnm2.currentText , "N", "/root/send" ,ipt_srchpid2.attribute("ref"), ipt_srchpnm2.attribute("ref"), "", "", ipt_hometel.attribute("ref"), ipt_mpphontel.attribute("ref"), opt_sex.attribute("ref"), opt_age.attribute("ref"));
  1701. var vPid = model.getValue(ipt_srchpid2.attribute("ref")) ;
  1702. if( vPid != "" ) {
  1703. //해당환자의 건진history조회
  1704. ahafGetHistList2(vPid, cmb_srchhealexamdetlflag.value , "E");
  1705. }
  1706. ]]>
  1707. </script>
  1708. </button>
  1709. <caption id="caption30" class="search_name" style="left:195px; top:9px; width:70px; height:17px; ">집전화:</caption>
  1710. <input id="ipt_hometel" ref="/root/init/send/item2/telno" disabled="true" style="left:265px; top:10px; width:90px; height:19px; "/>
  1711. <caption id="caption32" class="search_name" style="left:357px; top:9px; width:83px; height:17px; ">휴대전화:</caption>
  1712. <input id="ipt_mpphontel" ref="/root/init/send/item2/mpphon" disabled="true" style="left:443px; top:10px; width:90px; height:19px; "/>
  1713. </group>
  1714. <button id="btn_seljudgcnts" class="btn2_letter4" style="left:986px; top:6px; width:64px; height:19px; font-weight:bold; ">
  1715. <caption>판정선택</caption>
  1716. <script type="javascript" ev:event="DOMActivate">
  1717. <![CDATA[
  1718. fGetJudgExmpCnts(tar_shrthngjudgcnts ,tar_judghngcnts , tar_shrtengjudgcnts , tar_judgengcnts );
  1719. ]]>
  1720. </script>
  1721. </button>
  1722. <select1 id="cmb_judgdr" ref="/root/main/judgdetl/judginfo/item/judgdrid" class="combo_essential" appearance="minimal" style="left:1085px; top:158px; width:95px; height:19px; ">
  1723. <choices>
  1724. <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
  1725. <label ref="drnm"/>
  1726. <value ref="drid"/>
  1727. </itemset>
  1728. </choices>
  1729. <script type="javascript" ev:event="xforms-value-changed">
  1730. <![CDATA[
  1731. model.property("judgdr") = cmb_judgdr.value;
  1732. ]]>
  1733. </script>
  1734. </select1>
  1735. <caption id="caption6" class="cell_1" style="left:1037px; top:156px; width:45px; height:23px; vertical-align:middle; ">판정의</caption>
  1736. <caption id="caption8" class="cell_1" style="left:877px; top:156px; width:59px; height:23px; vertical-align:middle; ">판정일자</caption>
  1737. <line id="line2" class="line_1" style="x1:5px; y1:112px; x2:546px; y2:112px; "/>
  1738. <input id="ipt_judgdd" ref="/root/main/judgdetl/judginfo/item/judgdd" class="input_essential" disabled="true" inputtype="date" style="left:939px; top:158px; width:95px; height:19px; "/>
  1739. <line id="line23" class="line_3" style="x1:877px; y1:155px; x2:1179px; y2:155px; "/>
  1740. <button id="button4" class="btn2_letter3" style="left:932px; top:6px; width:53px; height:19px; font-weight:bold; ">
  1741. <caption>문진표</caption>
  1742. <script type="javascript" ev:event="DOMActivate">
  1743. <![CDATA[
  1744. fGetInqrInfo();
  1745. ]]>
  1746. </script>
  1747. </button>
  1748. <group id="grp_textview" style="left:550px; top:300px; width:458px; height:315px; ">
  1749. <datagrid id="grd_judglst" nodeset="/root/main/judgexmpcdlst/item" caption="level^선택^판정코드^판정내용(한)^판정내용(영)" colsep="^" colwidth="18, 31, 100, 150, 122" dataheight="25" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:5px; top:31px; width:446px; height:249px; ">
  1750. <col ref="lvl" visibility="hidden"/>
  1751. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  1752. <col ref="judgexmpcd"/>
  1753. <col ref="judghangshrtcnts"/>
  1754. <col ref="judgengshrtcnts"/>
  1755. <script type="javascript" ev:event="xforms-value-changed">
  1756. <![CDATA[
  1757. var idx = grd_judglst.row;
  1758. var level = grd_judglst.valueMatrix(idx,grd_judglst.colRef("lvl"));
  1759. var sel = grd_judglst.valueMatrix(idx,grd_judglst.colRef("sel"));
  1760. if(grd_judglst.colRef("sel") == grd_judglst.col && level == "1") {
  1761. while(true) {
  1762. idx++;
  1763. if(grd_judglst.valueMatrix(idx,grd_judglst.colRef("lvl")) != "2") break;
  1764. grd_judglst.valueMatrix(idx,grd_judglst.colRef("sel")) = sel == "Y" ? "Y" : "N";
  1765. }
  1766. }
  1767. ]]>
  1768. </script>
  1769. </datagrid>
  1770. <button id="button2" class="btn2_letter2" style="left:409px; top:5px; width:42px; height:19px; ">
  1771. <caption>닫기</caption>
  1772. <script type="javascript" ev:event="DOMActivate">
  1773. <![CDATA[
  1774. grp_textview.visible = false;
  1775. ]]>
  1776. </script>
  1777. </button>
  1778. <line id="line24" class="line_1" style="x1:5px; y1:26px; x2:451px; y2:26px; "/>
  1779. <caption id="caption9" ref="/root/temp/temprslt/temptestnm" class="tit_2" style="left:5px; top:5px; width:305px; height:13px; "/>
  1780. <button id="button1" class="btn4_letter2" style="left:395px; top:285px; width:56px; height:22px; ">
  1781. <caption>저장</caption>
  1782. <script type="javascript" ev:event="onclick">
  1783. <![CDATA[
  1784. fDocCmtChoice();
  1785. grp_textview.visible = false;
  1786. ]]>
  1787. </script>
  1788. </button>
  1789. <shape id="rectangle1" appearance="rectangle" style="left:0px; top:0px; width:456px; height:310px; "/>
  1790. </group>
  1791. <button id="button5" class="btn2_letter4" style="left:1051px; top:6px; width:64px; height:19px; font-weight:bold; ">
  1792. <caption>이전환자</caption>
  1793. <script type="javascript" ev:event="DOMActivate">
  1794. <![CDATA[
  1795. fGetPrePatInfo();
  1796. ]]>
  1797. </script>
  1798. </button>
  1799. <group id="grp_textrslt" visibility="hidden" style="left:5px; top:165px; width:535px; height:345px; ">
  1800. <caption id="cap_temptestnm" ref="/root/temp/temprslt/temptestnm" class="tit_2" style="left:5px; top:5px; width:475px; height:13px; "/>
  1801. <line id="line37" class="line_1" style="x1:5px; y1:25px; x2:530px; y2:25px; "/>
  1802. <textarea id="tar_temprsltcnts" ref="/root/temp/temprslt/temprsltcnts" editable="false" style="left:5px; top:30px; width:525px; height:315px; "/>
  1803. <button id="btn_rsltclose" class="btn2_letter2" style="left:488px; top:5px; width:42px; height:19px; ">
  1804. <caption>닫기</caption>
  1805. <script type="javascript" ev:event="DOMActivate">
  1806. <![CDATA[
  1807. grp_textrslt.visible = false;
  1808. ]]>
  1809. </script>
  1810. </button>
  1811. </group>
  1812. <button id="button8" class="btn2_letter5" style="left:780px; top:6px; width:75px; height:19px; font-weight:bold; ">
  1813. <caption>PACS조회</caption>
  1814. <script type="javascript" ev:event="DOMActivate">
  1815. <![CDATA[
  1816. if ( model.getValue("/root/init/send/item2/pid") == "" ) {
  1817. messageBox("등록번호를 입력하세요.","I999");
  1818. return true;
  1819. }else{
  1820. // fClickPACSOrdPatResultList(grd_acptlst);
  1821. var prcpdd = model.getValue("/root/temp/prcpdd");
  1822. var execprcpuniqno= model.getValue("/root/temp/seqno");
  1823. var pid = model.getValue("/root/init/send/item2/pid");
  1824. var pacsorderid = prcpdd+execprcpuniqno;
  1825. zepfpacsAll(pacsorderid, pid);
  1826. }
  1827. ]]>
  1828. </script>
  1829. </button>
  1830. <button id="button9" class="btn2_letter5" style="left:856px; top:6px; width:75px; height:19px; font-weight:bold; ">
  1831. <caption>CDIS조회</caption>
  1832. <script type="javascript" ev:event="DOMActivate">
  1833. <![CDATA[
  1834. model.resetInstanceNode("/root/send/iemr2");
  1835. model.makeNode("/root/hidden/temp");
  1836. var prcpdd = model.getValue("/root/temp/prcpdd");
  1837. var execprcpuniqno = model.getValue("/root/temp/seqno");
  1838. var instcd = getUserInfo("dutplceinstcd");
  1839. var sprcpdd = aezfTrim(prcpdd, 44);
  1840. var sexecprcpuniqno = aezfTrim(execprcpuniqno, 44);
  1841. var sinstcd = aezfTrim(instcd, 44);
  1842. model.makeValue("/root/send/iemr2/cmc_orddate", sprcpdd);
  1843. model.makeValue("/root/send/iemr2/cmc_orderseqno", sexecprcpuniqno);
  1844. model.makeValue("/root/send/iemr2/cmc_spcid", sinstcd);
  1845. model.makeValue("/root/send/iemr2/pid", "");
  1846. model.makeValue("/root/send/iemr2/orddeptcd", "");
  1847. model.makeValue("/root/send/iemr2/indd", "");
  1848. model.makeValue("/root/send/iemr2/docucd", "");
  1849. model.makeValue("/root/send/iemr2/ioflag", "");
  1850. model.makeValue("/root/send/iemr2/pagetot", "");
  1851. model.makeValue("/root/send/iemr2/treatno", "");
  1852. if(window.children.item("imgemrviewer") == null){
  1853. window.load("../../../emr/imgemrweb/xrw/SSMRC03130.xrw","modeless", "imgemrviewer", "", "/root/send/iemr2", "/root/hidden/temp");
  1854. }
  1855. ]]>
  1856. </script>
  1857. </button>
  1858. <textarea id="tar_rsltcnts1_plus" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt1" visibility="hidden" style="left:550px; top:460px; width:75px; height:235px; "/>
  1859. <textarea id="tar_rsltcnts2_plus" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt2" visibility="hidden" style="left:550px; top:465px; width:70px; height:235px; "/>
  1860. <textarea id="tar_rsltcnts3_plus" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt3" visibility="hidden" style="left:550px; top:470px; width:65px; height:235px; "/>
  1861. <button id="button14" class="btn_sw" group="tab" style="left:715px; top:159px; width:69px; height:22px; ">
  1862. <caption>추가검사</caption>
  1863. <toggle case="case_afexam" ev:event="onclick"/>
  1864. </button>
  1865. <button id="button15" class="btn2_letter5" style="left:797px; top:158px; width:75px; height:19px; ">
  1866. <caption>예정일문구</caption>
  1867. <script type="javascript" ev:event="DOMActivate">
  1868. <![CDATA[
  1869. var next_hopedd = cmb_srchrsrvdd.label.toDate().getAddDate(1, 'Y').getDateFormat(); //model.getValue("/root/send/srchrsrvdd").toDate().getAddDate(1, 'Y').getDateFormat();
  1870. var next_value = model.getValue("/root/main/judgdetl/judginfo/item/hngjudgcnts") + "\n" + "\n";
  1871. var cnt = getNodesetCount("/root/init/baseinfo/drlst/itemdr");
  1872. for (var i = 0; i <= cnt; i++) {
  1873. if (model.getValue("/root/init/baseinfo/drlst/itemdr[" + i + "]/drid") == cmb_judgdr.value) {
  1874. var drlicnsno = model.getValue("/root/init/baseinfo/drlst/itemdr[" + i + "]/drlicnsno")
  1875. }
  1876. }
  1877. next_value = next_value + "* 선생님의 다음 건강검진 예정일은 " +
  1878. next_hopedd.substring(0,4) + " 년 " + next_hopedd.substring(4,6) + " 월 " + next_hopedd.substring(6,8) + " 일 입니다." + "\n" +
  1879. " 판정의사 " + cmb_judgdr.label + "(면허번호 : " + drlicnsno + " )";
  1880. model.setValue("/root/main/judgdetl/judginfo/item/hngjudgcnts", next_value);
  1881. model.refresh();
  1882. ]]>
  1883. </script>
  1884. </button>
  1885. <caption id="caption29" class="cell_1" style="left:395px; top:115px; width:60px; height:23px; vertical-align:middle; ">상담의사</caption>
  1886. <select1 id="combo1" ref="/root/main/judgdetl/judginfo/item/rsltcnstdrid" class="combo_essential" disabled="true" appearance="minimal" style="left:455px; top:118px; width:90px; height:19px; ">
  1887. <choices>
  1888. <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
  1889. <label ref="drnm"/>
  1890. <value ref="drid"/>
  1891. </itemset>
  1892. </choices>
  1893. <script type="javascript" ev:event="xforms-value-changed">
  1894. <![CDATA[
  1895. model.property("judgdr") = cmb_judgdr.value;
  1896. ]]>
  1897. </script>
  1898. </select1>
  1899. <button id="btn_auto" class="btn4_letter4" style="left:465px; top:90px; width:80px; height:22px; ">
  1900. <caption>자동판정</caption>
  1901. <script type="javascript" ev:event="onclick">
  1902. <![CDATA[
  1903. if(model.getValue("/root/init/send/srchhealexamdetlflag2") == ""
  1904. || model.getValue("/root/init/send/item2/pid") == ""
  1905. || model.getValue("/root/send/srchrsrvdd") == "" ){
  1906. messageBox("판정대기자 정보가 없습니다.", "I999", "");
  1907. return;
  1908. }
  1909. model.makeValue("/root/hidden/checkseq","23");
  1910. window.load( "SPAHA00701_자동판정코드선택.xrw","modal","code", "left:100px; top:150px; min:hidden; max:hidden; resize:false;");
  1911. ]]>
  1912. </script>
  1913. </button>
  1914. </case>
  1915. </switch>
  1916. <button id="btn_patlst" class="btn_sw" group="tab" selected="true" style="left:3px; top:4px; width:80px; height:22px; ">
  1917. <caption>판정대기자</caption>
  1918. <toggle case="case_pat" ev:event="onclick"/>
  1919. </button>
  1920. <button id="btn_judg" class="btn_sw" group="tab" style="left:83px; top:4px; width:80px; height:22px; ">
  1921. <caption>종합판정</caption>
  1922. <toggle case="case_judg" ev:event="onclick"/>
  1923. </button>
  1924. <select id="chk_inqrautocall" ref="/root/temp/chkflag" overflow="visible" appearance="full" style="left:1074px; top:4px; width:116px; height:19px; border-style:none; ">
  1925. <choices>
  1926. <item>
  1927. <label>문진표 자동 호출</label>
  1928. <value>Y</value>
  1929. </item>
  1930. </choices>
  1931. <script type="javascript" ev:event="xforms-select">
  1932. <![CDATA[
  1933. chk_inqrautocall.value = "Y";
  1934. ]]>
  1935. </script>
  1936. <script type="javascript" ev:event="xforms-deselect">
  1937. <![CDATA[
  1938. chk_inqrautocall.value = "N";
  1939. ]]>
  1940. </script>
  1941. </select>
  1942. </group>
  1943. <group id="grp_btn" style="left:0px; top:754px; width:1195px; height:27px; ">
  1944. <button id="btn_clear" class="btn4_letter3" style="left:1122px; top:5px; width:68px; height:22px; ">
  1945. <caption>초기화</caption>
  1946. <script type="javascript" ev:event="DOMActivate">
  1947. <![CDATA[
  1948. fInit(false );
  1949. ]]>
  1950. </script>
  1951. </button>
  1952. <button id="btn_save" class="btn4_letter2" style="left:1065px; top:5px; width:56px; height:22px; ">
  1953. <caption>저장</caption>
  1954. <script type="javascript" ev:event="DOMActivate">
  1955. <![CDATA[
  1956. fSaveJudg("H");
  1957. ]]>
  1958. </script>
  1959. </button>
  1960. <button id="btn_allprnt" class="btn3_letter4" style="left:5px; top:5px; width:80px; height:22px; ">
  1961. <caption>일괄출력</caption>
  1962. <script type="javascript" ev:event="DOMActivate">
  1963. <![CDATA[
  1964. setParameter("SMAHR00900_PARAM1", fGetHealExamFlag());
  1965. open("SMAHR00900");
  1966. ]]>
  1967. </script>
  1968. </button>
  1969. <button id="button3" class="btn3_letter4" style="left:88px; top:5px; width:80px; height:22px; ">
  1970. <caption>결과조회</caption>
  1971. <script type="javascript" ev:event="DOMActivate">
  1972. <![CDATA[
  1973. setParameter("SMAHR00200_PARAM1", fGetHealExamFlag());
  1974. setParameter("SMAHR00200_PARAM2", model.getValue("/root/init/send/srchhealexamdetlflag2"));
  1975. setParameter("SMAHR00200_PARAM3", model.getValue("/root/init/send/item2/pid"));
  1976. setParameter("SMAHR00200_PARAM4", cmb_srchrsrvdd.label);
  1977. //modal("SMAER00800","","","","","/root/init/send/item2/pid","/root/send/data/singdata/srchpid");
  1978. openUrl("SMAHR00200_검사결과관리[종합건진].xrw","1","","","","","");
  1979. ]]>
  1980. </script>
  1981. </button>
  1982. <button id="button6" class="btn4_letter4" style="left:984px; top:5px; width:80px; height:22px; ">
  1983. <caption>판정완료</caption>
  1984. <script type="javascript" ev:event="DOMActivate">
  1985. <![CDATA[
  1986. fSaveJudg("I");
  1987. ]]>
  1988. </script>
  1989. </button>
  1990. <button id="button7" class="btn3_letter6" style="left:171px; top:5px; width:80px; height:22px; ">
  1991. <caption>통합결과조회</caption>
  1992. <script type="javascript" ev:event="DOMActivate">
  1993. <![CDATA[
  1994. //modal("SMAER00800","","","","","/root/init/send/item2/pid","/root/send/data/singdata/srchpid");
  1995. openUrl("SMAER00800_결과조회.xrw","1","","","","/root/init/send/item2/pid","/root/send/data/singdata/srchpid");
  1996. ]]>
  1997. </script>
  1998. </button>
  1999. <button id="button12" class="btn3_letter5" style="left:359px; top:5px; width:92px; height:22px; ">
  2000. <caption>진료의뢰서</caption>
  2001. <script type="javascript" ev:event="DOMActivate">
  2002. <![CDATA[
  2003. if(case_judg.selected == true) {
  2004. var pamInfoCvs = getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색
  2005. var formcd = model.getValue("/root/init/baseinfo/formcdlst/S290[cdid='01']/cmt");
  2006. model.makeNode("/root/hidden/medpatinfo");
  2007. model.removenode("/root/hidden/medpatinfo/list");
  2008. setCSVToNode("/root/hidden/medpatinfo" , pamInfoCvs);
  2009. if(formcd == "") {
  2010. messageBox("서식코드가 존재하지 않습니다. 서식코드를 " , "I007");
  2011. return ;
  2012. }
  2013. setParameter("SPMMR05400_parm_pinfo", model.getValue("/root/init/send/item2/pid") + "▦"
  2014. + model.getValue("/root/init/send/item2/orddd") + "▦"
  2015. + model.getValue("/root/init/send/item2/cretno")+ "▦"
  2016. + "S" + "▦"
  2017. + model.getValue("/root/hidden/medpatinfo/list/orddeptcd") + "▦"
  2018. + model.getValue("/root/hidden/medpatinfo/list/orddrid") + "▦"
  2019. + model.getValue("/root/init/send/item2/hngnm") + "▦"
  2020. + model.getValue("/root/init/send/item2/age") + "▦"
  2021. + model.getValue("/root/init/send/item2/sex") + "▦"
  2022. + "2380000000"); // 원무정보
  2023. setParameter("SPMMR05400_parm_formcd", formcd); // 서식코드
  2024. open("SPMMR05400");
  2025. }
  2026. ]]>
  2027. </script>
  2028. </button>
  2029. <button id="button13" class="btn3_letter4" style="left:277px; top:5px; width:80px; height:22px; ">
  2030. <caption>통합기록</caption>
  2031. <script type="javascript" ev:event="DOMActivate">
  2032. <![CDATA[
  2033. modal("SMMRI00400","","","","","","");
  2034. ]]>
  2035. </script>
  2036. </button>
  2037. <button id="button17" class="btn3_letter5" style="left:453px; top:5px; width:92px; height:22px; ">
  2038. <caption>추후관리</caption>
  2039. <script type="javascript" ev:event="DOMActivate">
  2040. <![CDATA[
  2041. if(case_judg.selected == true) {
  2042. clearParameter("SMAHR00600_PARAM1");
  2043. clearParameter("SMAHR00600_PARAM2");
  2044. clearParameter("SMAHR00600_PARAM3");
  2045. clearParameter("SMAHR00600_PARAM4");
  2046. clearParameter("SMAHR00600_PARAM5");
  2047. clearParameter("SMAHR00600_PARAM6");
  2048. //2015/11/02 이정택 추가
  2049. clearParameter("SMAHR00600_PARAM7");
  2050. clearParameter("SMAHR00600_PARAM8");
  2051. //2015/11/02 이정택 추가
  2052. setParameter ("SMAHR00600_PARAM1" , model.getValue("/root/send/srchrsrvdd"));
  2053. setParameter ("SMAHR00600_PARAM2" , model.getValue("/root/send/srchrsrvno"));
  2054. setParameter ("SMAHR00600_PARAM3" , model.getValue("/root/send/srchpid"));
  2055. setParameter ("SMAHR00600_PARAM4" , ipt_srchpnm2.currentText);
  2056. setParameter ("SMAHR00600_PARAM5" , model.getValue("/root/send/srchrgstno1"));
  2057. setParameter ("SMAHR00600_PARAM6" , model.getValue("/root/send/srchrgstno2"));
  2058. //2015/11/02 이정택 추가
  2059. setParameter ("SMAHR00600_PARAM7" , ipt_hometel.value);
  2060. setParameter ("SMAHR00600_PARAM8" , ipt_mpphontel.value);
  2061. //2015/11/02 이정택 추가
  2062. modal("SMAHR00600");
  2063. }
  2064. ]]>
  2065. </script>
  2066. </button>
  2067. </group>
  2068. </xhtml:body>
  2069. </xhtml:html>