SMLLJ00200_핵의학검체접수관리.xrw 86 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLJ00100_검체접수관리.xrw
  4. * 설 명 : 검체접수 및 검체조회
  5. * 설 계 자 : (주)에이씨케이 - 박정은
  6. * 작 성 자 : (주)에이씨케이 - 박정은
  7. * 작 성 일 : 2006.11.11
  8. * 수정이력 : 2007-08-02 박정은 코드인스펙션
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  13. <xhtml:head>
  14. <xhtml:title>검체접수관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <detllistref>
  20. <tclscd/>
  21. <tclsscrnnm/>
  22. <erprcpflag/>
  23. <spcltestseq/>
  24. <workno/>
  25. <phone/>
  26. </detllistref>
  27. <spclist>
  28. <chk/>
  29. <execdept/>
  30. <acptno/>
  31. <bcno/>
  32. <orddeptcd/>
  33. <patnm/>
  34. <spccd/>
  35. <spcarvdt/>
  36. <spcacptdt/>
  37. <spcfrem/>
  38. <Msg/>
  39. <urineyn/>
  40. <prcpremfact/>
  41. </spclist>
  42. <reqdrremark>오른쪽 혈관이 잘 보이지 않습니다.</reqdrremark>
  43. <spclistref>
  44. <chk/>
  45. <pid/>
  46. <patnm/>
  47. <rrgstno/>
  48. <patage/>
  49. <patsex/>
  50. <tclsnm/>
  51. <orddeptnm/>
  52. <wardroom/>
  53. <bcnostat/>
  54. <reptrslt/>
  55. <bcno/>
  56. <prcpdd/>
  57. <bcolldt/>
  58. <workdd/>
  59. <nmedworkdt/>
  60. <workno/>
  61. <spccnclinfo/>
  62. </spclistref>
  63. <sectlist>
  64. <sectusdd/>
  65. <sectuedd/>
  66. <sectcd/>
  67. <sectnm/>
  68. <sectscrnnm/>
  69. <sectabbrnm/>
  70. <sectprntnm/>
  71. <sectlblnm/>
  72. </sectlist>
  73. <barcdprntsetup>
  74. </barcdprntsetup>
  75. <acptcntlist>
  76. <acptcnt/>
  77. <todayacptcnt/>
  78. </acptcntlist>
  79. </main>
  80. <send>
  81. <Data1/>
  82. <Data2/>
  83. <Data3/>
  84. <Data4/>
  85. <Data5/>
  86. <refflag/>
  87. <bcnolist/>
  88. <spcchoiyn/>
  89. <execdept/>
  90. <codeflag/>
  91. <bcno/>
  92. <batacptgrd/>
  93. <refbase/>
  94. <reffromdd/>
  95. <reftodd/>
  96. <refgbn/>
  97. <reftext/>
  98. <genrflag/>
  99. <scrnid/>
  100. <sectcd/>
  101. <NL/>
  102. <menuparam/>
  103. <rsltflag/>
  104. <cancelgrd>
  105. <status/>
  106. <chk/>
  107. <tclscd/>
  108. <testcd/>
  109. <tclsnm/>
  110. <bcno2/>
  111. <orddeptnm/>
  112. <atdrid/>
  113. <spccd/>
  114. <genrflagcd/>
  115. <ssectcd/>
  116. <tsectcd/>
  117. <tclskind/>
  118. <cancelgbn/>
  119. <resncd/>
  120. <resndesc/>
  121. <cmt/>
  122. <pid/>
  123. <spcstat/>
  124. </cancelgrd>
  125. <data6>
  126. <divgrupcd/>
  127. <pid/>
  128. </data6>
  129. </send>
  130. <init>
  131. <title>접수취소등록</title>
  132. <execdept>
  133. <testmdlcd/>
  134. <testmdlnm/>
  135. </execdept>
  136. </init>
  137. <hidden>
  138. <spcref>
  139. <refbase>2</refbase>
  140. <reffromdd/>
  141. <reftodd/>
  142. <refflag>1</refflag>
  143. <refcnts/>
  144. <execdept>00</execdept>
  145. <isbcoll/>
  146. <isacp/>
  147. <isrslt/>
  148. <iscancle/>
  149. <genrflag>00</genrflag>
  150. <rsltflag/>
  151. </spcref>
  152. <spcacpt>
  153. <!--
  154. <testmdlcd>
  155. <cd>00</cd>
  156. </testmdlcd>
  157. -->
  158. <testmdlcd>00</testmdlcd>
  159. <testlrgcd>00</testlrgcd>
  160. <refflag>2</refflag>
  161. <spcchoiyn/>
  162. <bcno/>
  163. <resetyn/>
  164. <bt/>
  165. </spcacpt>
  166. <bcno/>
  167. <labelyn>Y</labelyn>
  168. <acptbcdyn>Y</acptbcdyn>
  169. <cancel>
  170. <bcno/>
  171. <title/>
  172. </cancel>
  173. <canceldata>
  174. <data1/>
  175. <data2/>
  176. </canceldata>
  177. <acptcntdd/>
  178. <barcdcheck/>
  179. <popupmenu/>
  180. <canceltclsnmlist/>
  181. <request>
  182. <pid/>
  183. <spccd/>
  184. <reqno/>
  185. <prcpcd/>
  186. </request>
  187. <ref>
  188. <viewgbn/>
  189. </ref>
  190. </hidden>
  191. </root>
  192. </instance>
  193. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  194. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  195. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  196. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  197. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  198. <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
  199. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  200. <script type="javascript" src="../../../lis/commonweb/js/HanFont24.js"/>
  201. <script type="javascript" ev:event="xforms-ready">
  202. <![CDATA[
  203. // 핵의학 메뉴 (테스트용)
  204. model.setValue("/root/properties/menu/menuparam", "N");
  205. model.setValue("/root/hidden/spcacpt/testmdlcd", "NR");
  206. // 그리드 전체 선택 기능
  207. grd_spclist.fixedcellcheckbox(0,1)=true;
  208. // 검체접수 tab 선택
  209. model.toggle("case1");
  210. // 스위치에 따라 버튼 보이기
  211. fbuttonvisible("A");
  212. // 초기정보 조회
  213. model.setValue("/root/send/codeflag", "0102|0106|0104|0111|0000|0126|"); // 0102= 중분류 // 0106=시행부서(검사계) // 0104 대분류 // 0111 계(시행) // 0000 userdeptflag //0126 : 병원별 간략보기 체크 설정
  214. submit("TRLZZ00101");
  215. if(model.getValue("/root/init/LB0126/nm") == "Y") {
  216. checkbox9.value = "1";
  217. fViewList();
  218. }
  219. // 노드 초기화
  220. model.removeNodeset("/root/main/spclist");
  221. model.removeNodeset("/root/main/detllistref");
  222. model.removeNodeset("/root/main/spclistref");
  223. // 핵의학
  224. if( (model.getValue("root/properties/menu/menuparam")=="N") || (model.getValue("/root/init/LB0000/nm")=="N") ){
  225. model.setValue("/root/hidden/spcacpt/testmdlcd", "NR");
  226. model.setValue("/root/hidden/spcref/execdept", "NR");
  227. model.removenode("/root/init/LB0106[1]"); // 핵의학 -전체- 노드삭제
  228. }
  229. // 핵의학 일때 바코드 설정
  230. /* if (model.getValue("/root/init/execdept/testmdlcd") == "핵의학코드"){
  231. chk_label.visible = true;
  232. chk_acptbcd.visible = false; // 접수 바코드시 발행여부
  233. model.setValue("/root/hidden/labelyn", "Y");
  234. model.setValue("/root/hidden/acptbcdyn", "N");
  235. }
  236. else{
  237. chk_label.visible = false;
  238. chk_acptbcd.visible = true; // 접수 바코드시 발행여부
  239. model.setValue("/root/hidden/labelyn", "N");
  240. model.setValue("/root/hidden/acptbcdyn", "Y");
  241. }
  242. */
  243. var today = getCurrentDate();
  244. //var mDate = getCurrentDate().toDate("YYYYMMDD").getAddDate(-3);
  245. //model.setValue("/root/hidden/spcref/reffromdd", today-2);
  246. //model.setValue("/root/hidden/spcref/reffromdd", mDate.getDateFormat("YYYYMMDD"));
  247. model.setValue("/root/hidden/spcref/reffromdd", today);
  248. model.setValue("/root/hidden/spcref/reftodd", today);
  249. model.setValue("/root/hidden/acptcntdd", today);
  250. fSetNCnt(); // 핵의학 화면 접수검체갯수 보이기
  251. model.refresh(); //??
  252. model.setFocus("ipt_bcno");
  253. //lzzfMakeBrcdPrntObj("CommAX"); //이전 OCX
  254. model.setValue("/root/send/scrnid", getScreenID());
  255. submit("TRLLC90101");
  256. lzzfMakeBrcdPrntObjHanDo("CommAX");
  257. ]]>
  258. </script>
  259. <!-- *사용* 시행부서 조회 -->
  260. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0102"/>
  261. <!-- *미사용* 검체접수 -->
  262. <submission id="TXLLJ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/spclist"/>
  263. <!-- *사용* 검체상세목록 조회-->
  264. <submission id="TRLLJ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/detllistref"/>
  265. <!-- *미사용* 검체선택여부 선택 검체정보조회-->
  266. <submission id="TRLLJ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/spclist"/>
  267. <!-- *미사용* 부적합검체등록 -->
  268. <submission id="TXLLJ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spclist"/>
  269. <!-- *미사용* 특이사항 저장 -->
  270. <submission id="TXLLJ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spclist"/>
  271. <!-- *사용* 검체조회탭 조회-->
  272. <submission id="TRLLJ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spclistref"/>
  273. <!-- *사용* 일괄접수-->
  274. <submission id="TXLLJ00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spclist"/>
  275. <!-- *사용* 검체 접수-->
  276. <submission id="TXLLJ00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" add="bottom" resultref="/root/main/spclist"/>
  277. <!-- *사용* 바코드 출력-->
  278. <submission id="TRLZZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/barcd"/>
  279. <submission id="TRLZZ00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/barcd"/>
  280. <!-- 프린터 설정-->
  281. <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
  282. <!-- 특수검사 의뢰서 조회-->
  283. <submission id="TRLRP00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spcltestlist"/>
  284. <submission id="TRLRP00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/detltestlist"/>
  285. <submission id="TRLRP00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsltlist"/>
  286. <submission id="TXLLJ00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  287. <submission id="TRLLJ00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/acptcntlist"/>
  288. </model>
  289. <script type="javascript">
  290. <![CDATA[
  291. // *사용* 키이벤트 엔터키 입력시 접수flow
  292. function fKeyEvent(){
  293. if(event.keyCode == "13"){
  294. if(event.target == "ipt_bcno"){
  295. model.setvalue("/root/hidden/spcacpt/bcno", (ipt_bcno.currentText).toUpperCase());
  296. //fSetSpcAcpt();
  297. fsetBCNOEnter();
  298. if(model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/Msg") == "" ){
  299. fGetSpclTestList();
  300. var count = getNodesetCount("/root/main/getspcltestlist") ;
  301. var spc = getNodesetCount("/root/main/spclist");
  302. if(count > 0 ) {
  303. for(i = 1; i <= count; i++) {
  304. if(model.getValue("/root/main/spclist["+ spc +"]/bcno") == model.getValue("/root/main/getspcltestlist["+ i +"]/bcno")) {
  305. fPrint(i);
  306. }
  307. }
  308. }
  309. }
  310. ipt_bcno.selBegin = 0;
  311. ipt_bcno.selEnd = ipt_bcno.currentText.length;
  312. }
  313. if(event.target=="ipt_text"){
  314. model.setValue("/root/hidden/spcref/refcnts", (ipt_text.currentText).toUpperCase());
  315. fGetSpcListref();
  316. ipt_text.selBegin = 0;
  317. ipt_text.selEnd = ipt_text.currentText.length;
  318. }
  319. }
  320. }
  321. // 검체접수 바코드번호
  322. /*function fKeyEventacpt(){
  323. if(ipt_bcno.currentText.length == 9){
  324. inputEnterKey("ipt_bcno", "DOMActivate");
  325. model.setvalue("/root/hidden/spcacpt/bcno",ipt_bcno.currentText);
  326. fsetBCNOEnter();
  327. ipt_bcno.selBegin = 0;
  328. ipt_bcno.selEnd = ipt_bcno.currentText.length;
  329. }
  330. }*/
  331. // 검체조회 검색내용
  332. function fKeyEventref(){
  333. inputEnterKey("ipt_text", "DOMActivate");
  334. model.setvalue("/root/hidden/spcref/refcnts",ipt_text.currentText);
  335. fGetSpcListref();
  336. ipt_text.selBegin = 0;
  337. ipt_text.selEnd = ipt_text.currentText.length;
  338. }
  339. // 전체선택 버튼
  340. function fInsAllChoi(pGridId){
  341. pGridId.fixedcellischeck(0,1)=true;
  342. }
  343. // 전체취소 버튼
  344. function fInsAllCncl(pGridId) {
  345. pGridId.fixedcellischeck(0,1)=false;
  346. }
  347. function fSetBCNO(){
  348. if (model.getvalue("/root/hidden/spcacpt/bcno") != ""){
  349. fsetBCNOEnter();
  350. model.setValue("/root/hidden/spcacpt/bcno", "");
  351. // 영어로 입력받을 수 있게
  352. ipt_bcno.attribute("imemode") = "alpha" ;
  353. model.refresh();
  354. model.setFocus("ipt_bcno");
  355. }
  356. }
  357. // *** 접수 *** 바코드번호 등록후 엔터 쳤을때
  358. function fsetBCNOEnter(){
  359. var btdt = getCurrentDateTime().toDate("YYYYMMDD hhmmss").getAddDate(-10, "m").getDateFormat("YYYYMMDDhhmmss");
  360. // 유효성 체크
  361. if ( fexeBCNOtrue() == false ){
  362. //return;
  363. }else{
  364. // 화면초기화여부 선택되면
  365. if(model.getValue("/root/hidden/spcacpt/resetyn")=="1"){
  366. model.removeNodeset("/root/main/spclist");
  367. model.refresh();
  368. }
  369. var bcno = model.getValue("/root/hidden/spcacpt/bcno").toUpperCase();
  370. var acptcnt = 0;
  371. if(model.getValue("/root/hidden/spcacpt/spcchoiyn") == "1") {
  372. var find = grd_spclist.findRow(bcno, 1, 4, true, true);
  373. if(find > 0) {
  374. messageBox("이미 선택된 검체", "E008");
  375. model.setValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/Msg", "error");
  376. return;
  377. }
  378. }
  379. model.setValue("/root/send/bcno", bcno);
  380. model.setValue("/root/send/refflag", model.getValue("/root/hidden/spcacpt/refflag"));
  381. model.setValue("/root/send/spcchoiyn", model.getValue("/root/hidden/spcacpt/spcchoiyn"));
  382. model.makeValue("/root/send/btyn", model.getValue("/root/hidden/spcacpt/bt"));
  383. model.makeValue("/root/send/btdt", btdt);
  384. //model.setValue("/root/send/execdept", model.getValue("/root/hidden/spcacpt/testmdlcd/cd"));
  385. model.setValue("/root/send/execdept", model.getValue("/root/hidden/spcacpt/testmdlcd"));
  386. model.setValue("/root/send/sectcd", model.getValue("/root/hidden/spcacpt/testlrgcd"));
  387. //model.setValue("/root/send/Data5", model.getValue("/root/hidden/labelyn"));
  388. model.setValue("/root/send/NL", model.getValue("root/properties/menu/menuparam"));
  389. //model.setValue("/root/send/NL", "N");
  390. submit("TXLLJ00105");
  391. grd_spclist.row = (grd_spclist.rows-1);
  392. var gridRow = grd_spclist.rows;
  393. grd_spclist.topRow = gridRow;
  394. // 메세지 표시
  395. if(model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/Msg") != "" ){
  396. var msg = model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/Msg");
  397. messageBox(msg , "E008", "");
  398. var msgbcno = model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/bcno");
  399. for(i =1 ; i < grd_spclist.rows ; i ++){
  400. if(model.getValue("/root/main/spclist["+i+"]/bcno") == msgbcno
  401. && model.getValue("/root/main/spclist["+i+"]/Msg") != "" ){
  402. grd_spclist.cellStyle("color", i, 1, i, 11) = "#aaaaaa";
  403. model.setValue("/root/main/spclist["+i+"]/chk", "false");
  404. }
  405. }
  406. //grd_spclist.cellStyle("color", (grd_spclist.rows-1), 1, (grd_spclist.rows-1), 9) = "#aaaaaa";
  407. //if(grd_spclist.rows >1){
  408. // model.setValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/chk", "false");
  409. //}
  410. }else{
  411. if(grd_spclist.rows >1){
  412. model.setValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/chk", "true");
  413. if(model.getValue("root/properties/menu/menuparam") != "N"){
  414. // fExeBarcdPrnt(); //바코드 프린트 연결 안된데서 실행하면 뻗어요 ~~
  415. }
  416. //fExeNBarcdPrnt(); //바코드 프린트 연결 안된데서 실행하면 뻗어요 ~~ // 분주라벨
  417. }
  418. }
  419. //if("정상적으로 처리되었습니다." != model.getValue("/root/hidden/error/msg")){
  420. // model.alert(model.getValue("/root/hidden/error/msg"));
  421. //}
  422. ipt_bcno.selBegin = 0;
  423. ipt_bcno.selEnd = ipt_bcno.currentText.length;
  424. // 검체 상세목록 보여주기
  425. var sRow = grd_spclist.rows;
  426. if(sRow > 1){
  427. // 검체 상세목록 보여주기
  428. fGetSpcDetlList(sRow);
  429. }
  430. // 유린검체 정보 등록
  431. if(model.getValue("/root/hidden/spcacpt/refflag")=="2"){
  432. if(model.getValue("/root/main/spclist["+ (sRow-1) +"]/urineyn") == "Y"){
  433. if(model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/Msg") == "" ){
  434. // 유린 팝업 띄우고 등록하기
  435. fSetUrine(sRow-1);
  436. }
  437. }
  438. }
  439. }
  440. // 접수시 spcacptbarcdprntcnt 갯수만큼 바코드 출력
  441. // if(model.getValue("/root/hidden/barcdcheck") == "1"){ // 바코드 출력 체크박스 체크
  442. if(model.getValue("/root/hidden/spcacpt/spcchoiyn") == "1"){
  443. }else{
  444. if(model.getValue("root/properties/menu/menuparam")=="N"){
  445. if(model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/Msg") == "" || model.getValue("/root/hidden/barcdcheck") == "1"){
  446. fExeNBarcdPrnt(); //핵의학 바코드 프린트 연결 안된데서 실행하면 뻗어요 ~~
  447. }
  448. fGetNAcptCnt(); //접수된 검체개수 보이게
  449. }else{
  450. if(model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/Msg") == "" ){
  451. fExeBarcdPrnt(); //바코드 프린트 연결 안된데서 실행하면 뻗어요 ~~
  452. }
  453. //fGetNAcptCnt(); //접수된 검체개수 보이게
  454. }
  455. }
  456. model.removeNodeset("/root/main/barcode"); //// ★★★ 임시로막음
  457. // }
  458. }
  459. // 핵의학 접수바코드 Cnt 조회
  460. function fGetNAcptCnt(){
  461. model.makeValue("/root/send/acptcntdd", model.getValue("/root/hidden/acptcntdd"));
  462. submit("TRLLJ00201");
  463. model.removenode("/root/send/acptcntdd");
  464. }
  465. // 유효성 체크
  466. function fexeBCNOtrue(){
  467. var txtbcno = ipt_bcno.value;
  468. if(txtbcno != "" ){
  469. // 바코드 길이 9자리
  470. if(txtbcno.length == 9 ){
  471. }else{
  472. messageBox("잘못된 검체번호 ", "E008"); // 잘못된 검체번호 입니다.
  473. return false;
  474. }
  475. }
  476. }
  477. // 핵의학 화면 접수검체갯수 보이기
  478. function fSetNCnt(){
  479. if(model.getValue("root/properties/menu/menuparam")=="N"){
  480. cap_cnt.visible = true;
  481. opt_cnt.visible = true;
  482. opt_cnt2.visible = true;
  483. }else{
  484. cap_cnt.visible = false;
  485. opt_cnt.visible = false;
  486. opt_cnt2.visible = false;
  487. }
  488. fGetNAcptCnt();
  489. //cap_cnt.refresh();
  490. //opt_cnt.refresh();
  491. }
  492. // 검체접수
  493. /*function fSetSpcAcpt(){
  494. // 접수 flow
  495. // 검체정보 조회
  496. model.setValue("/root/send/Data1", model.getValue("/root/hidden/spcacpt/bcno"));
  497. model.setValue("/root/send/Data2", model.getValue("/root/hidden/spcacpt/refflag")); // 1 : 가접수 2 : 접수
  498. model.setValue("/root/send/Data3", model.getValue("/root/hidden/spcacpt/spcchoiyn"));
  499. model.setValue("/root/send/Data4", model.getValue("/root/hidden/spcacpt/testmdlcd"));
  500. submit("TXLLJ00101");
  501. //alert("grd_spclist.rows= " +grd_spclist.rows + " grd_spclist.row= " + grd_spclist.row);
  502. if(model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/Msg") != "" ){
  503. //alert(model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/Msg"));
  504. var msg = model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/Msg");
  505. messageBox(msg , "I001");
  506. }
  507. // 검체상세목록 조회
  508. //if(grd_spclist.rows >= 1){
  509. // model.setValue("/root/send/Data1", model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/bcno"));
  510. // submit("TRLLJ00101");
  511. //}
  512. // 유린검체여부 Y 일때 팝업뜰때
  513. if(model.getValue("/root/main/spclist/urineyn")== "Y"){
  514. var bcno = model.getValue("/root/hidden/spcacpt/bcno");
  515. model.setValue("/root/hidden/bcno", bcno);
  516. window.load("SPLLJ90200_UrineVolume.xrw","modeless", "SPLLJ90200_UrineVolume", "width:300px; height:200;min:hidden;max:hidden;align:center", "/root/hidden/bcno", "/root/hidden/bcno");
  517. }
  518. //model.refresh();
  519. var col = grd_spclist.col;
  520. model.setValue("/root/send/Data1", model.getValue("/root/hidden/spcacpt/bcno"));
  521. submit("TRLLJ00101");
  522. }
  523. */
  524. // 일괄접수 버튼
  525. function fSetBatAcpt(){
  526. var btdt = getCurrentDateTime().toDate("YYYYMMDD hhmmss").getAddDate(-10, "m").getDateFormat("YYYYMMDDhhmmss");
  527. // 일괄접수
  528. var bcnolist ="";
  529. if(messageBox("모든 리스트를 접수", "Q004") == 6){
  530. for(i=1; i< grd_spclist.rows; i++){
  531. /* if(i==1){
  532. if(model.getValue("/root/main/spclist["+i+"]/chk") == "true"){
  533. bcnolist = grd_spclist.textmatrix(i,4);
  534. }
  535. }else{
  536. if(model.getValue("/root/main/spclist["+i+"]/chk") =="true"){
  537. bcnolist = bcnolist + "▦" + grd_spclist.textmatrix(i,4);
  538. }
  539. }
  540. */
  541. if(model.getValue("/root/main/spclist["+i+"]/chk") == "true"){
  542. bcnolist += model.getValue("/root/main/spclist["+i+"]/bcno") + "▦";
  543. }
  544. //alert("bcnolist= " +bcnolist);
  545. grd_spclist.rowStatus(i) =1;
  546. }
  547. var grdbatacpt = grd_spclist.getUpdateData();
  548. model.setValue("/root/send/bcnolist", bcnolist);
  549. model.setValue("/root/send/refflag", model.getValue("/root/hidden/spcacpt/refflag"));
  550. model.setValue("/root/send/spcchoiyn", model.getValue("/root/hidden/spcacpt/spcchoiyn"));
  551. model.makeValue("/root/send/btyn", model.getValue("/root/hidden/spcacpt/bt"));
  552. model.makeValue("/root/send/btdt", btdt);
  553. //model.setValue("/root/send/execdept", model.getValue("/root/hidden/spcacpt/testmdlcd/cd"));
  554. model.setValue("/root/send/execdept", model.getValue("/root/hidden/spcacpt/testmdlcd"));
  555. model.setValue("/root/send/batacptgrd", grdbatacpt);
  556. if(submit("TXLLJ00104")==true){
  557. model.makeValue("/root/main/barcode/barcodeinfo/cntflag", "acpt");
  558. model.makeValue("/root/main/barcode[2]/dbarcodeinfo/cntflag", "acpt");
  559. var count2 = getNodesetCount("/root/main/barcode/barcodeinfo");
  560. var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
  561. //alert("count2= " +count2);
  562. //for(i=1; i<=count2; i++ ){
  563. var mTF = false;
  564. var spcTF = false;
  565. for(i=1; i<=count2; i++ ){
  566. if(model.getValue("/root/main/barcode/barcodeinfo["+i+"]/spcacptbarcdprntcnt") >0){
  567. spcTF = true;
  568. }
  569. if(model.getValue("/root/main/barcode/barcodeinfo["+i+"]/microbarcdprntcnt") >0){
  570. mTF = true;
  571. }
  572. }
  573. // 접수 바코드 출력
  574. if(spcTF){
  575. //alert(model.getValue("/root/main/barcode/barcodeinfo["+i+"]/spcacptbarcdprntcnt"));
  576. if(prtkind=="8"){
  577. fLisSpcBarcodePrint3("/root/main/barcode/barcodeinfo");
  578. }else{
  579. fLisSpcBarcodePrint("/root/main/barcode/barcodeinfo"); // 접수 바코드 출력
  580. }
  581. }
  582. //fLisSpcBarcodePrint("/root/main/barcode/dbarcodeinfo"); // 분주
  583. fLisSpcBarcodePrintB("/root/main/barcode/dbarcodeinfo"); // 분주 바뀐거
  584. // 미생물 바코드 출력
  585. if(mTF){
  586. //alert("qqq");
  587. fLisMicroWorknoSpcBarcodePrint("/root/main/barcode/barcodeinfo"); // 미생물 작업번호 바코드 출력
  588. }
  589. var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
  590. var portnm = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind");
  591. // 핵의학 바코드 출력
  592. if(model.getValue("/root/hidden/spcacpt/testmdlcd")=="NR"){
  593. copyNodeType("/root/main/barcode/nbarcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
  594. if( (prtkind == "9" && portnm == "01") || (prtkind == "11" && portnm == "01") || prtkind == "10" || prtkind == "2" || prtkind == "6" || prtkind == "7"){
  595. fLisNSpcBarcodePrint2("/root/main/barcode/nbarcodeinfo");
  596. }
  597. else{
  598. fLisNSpcBarcodePrint("/root/main/barcode/nbarcodeinfo");
  599. }
  600. }
  601. //}
  602. model.removeNodeset("/root/main/barcode");
  603. model.resetInstanceNode("/root/main/spclist");
  604. grd_spclist.rebuild();
  605. model.resetInstanceNode("/root/main/detllistref");
  606. grd_detllist.rebuild();
  607. }
  608. }
  609. /*
  610. var tg = model.vsGrid("grid1");
  611. var iMaxRow = TFGetGridCount("grid1");
  612. var sBCNO;
  613. if ( TFGetMsgBox(5, "모든 리스트를 접수 하시겠습니까?", "확인", "q", "YN") == 6){
  614. model.removeNodeset("/root/MainData/BCNO");
  615. for( i=1; i<=iMaxRow; i++) {
  616. if(i==1) {
  617. sBCNO = tg.TextMatrix (i, 2);
  618. } else {
  619. sBCNO = sBCNO + "▦" + tg.TextMatrix (i, 2);
  620. }
  621. }
  622. // SendData Set
  623. model.setvalue("/root/SendData/Mode", "reqSetJeopSuJeongBo");
  624. model.setvalue("/root/SendData/Data1", sBCNO);
  625. // Submit
  626. model.submitInstance("reqGetMessageData");
  627. model.resetinstanceNode("/root/SendData");
  628. if(model.getValue("/root/MainData/BCNO/errMsg") == "접수된 검체번호") model.alert("이미접수된 검체번호입니다.");
  629. if(model.getValue("/root/MainData/BCNO/errMsg") == "접수번호 오류") model.alert("잘못된 접수번호입니다.");
  630. if(model.getValue("/root/MainData/BCNO/errMsg") == "다른 과의 검체") model.alert("다른 과의 검체입니다.\n\r\n\r확인하시고 다시 접수 하여 주십시요");
  631. if(model.getValue("/root/MainData/BCNO/errMsg") == "퇴원환자") model.alert("퇴원환자입니다.\n\r\n\r확인하시고 다시 접수 하여 주십시요");
  632. if(model.getValue("/root/MainData/BCNO/errMsg") == "퇴원통보환자") model.alert("퇴원통보환자입니다.\n\r\n\r확인하시고 다시 접수 하여 주십시요");
  633. if(model.getValue("/root/MainData/BCNO/errMsg") == "입원환자의 외래처방") model.alert("해당 환자는 현재 입원해 있습니다.\n\r\n\r입원 환자의 외래 처방은 접수가 불가능 합니다.\n\r\n\r확인하여 주십시요");
  634. if(model.getValue("/root/MainData/BCNO/errMsg") == "가퇴원환자") model.alert("가퇴원환자입니다.\n\r\n\r확인하시고 다시 접수 하여 주십시요");
  635. TFSetMessage("/root/MainData");
  636. fnBtnClear_Click(); // clear
  637. }else{
  638. model.alert("접수가 취소되었습니다.");
  639. return false;
  640. }
  641. model.vbscript.FreeObj(tg);
  642. */
  643. }
  644. // Urine Volume 등록
  645. function fSetUrine(Row){
  646. //
  647. if(Row ==""){
  648. Row = grd_spclist.row;
  649. }
  650. var bcno = model.getValue("/root/main/spclist["+Row+"]/bcno");
  651. model.setValue("/root/hidden/bcno", bcno);
  652. // 검체명 24시간 Urine 일경우 팝업띄워서 등록
  653. //window.load("SPLLJ90200_UrineVolume.xrw","modeless", "SPLLJ90200_UrineVolume", "width:340px; height:180;min:hidden;max:hidden;align:center", "/root/hidden/bcno", "/root/hidden/bcno");
  654. open("SPLLJ90200", 1 ,300, 400, "SPLLJ90200","/root/hidden/bcno","/root/hidden/bcno");
  655. }
  656. // 특이사항 저장 버튼 클릭
  657. function fSetSpcffact(){
  658. var grddata = grd_spclist.getUpdateData();
  659. model.setValue("/root/send/Data1", model.getValue("/root/hidden/spcacpt/refflag")); // 접수구분
  660. model.setValue("/root/send/Data2", grddata);
  661. //submit("TXLLJ00103");
  662. /*for(i=1; i<grd_spclist.rows; i++){
  663. var choi = model.getValue("/root/main/spclist["+i+"]/chk");
  664. if(choi== "true"){
  665. model.setValue("/root/send/Data1", model.getValue("/root/main/spclist["+i+"]/bcno"));
  666. model.setValue("/root/send/Data2", model.getValue("/root/main/spclist["+i+"]/spcfrem"));
  667. //model.setValue("/root/send/Data2", grddata);
  668. model.setValue("/root/send/Data3", model.getValue("/root/hidden/spcacpt/refflag"));
  669. model.setValue("/root/send/Data4", model.getValue("/root/main/spclist["+i+"]/acptno"));
  670. alert("true " + model.getValue("/root/send"));
  671. submit("TXLLJ00103");
  672. }
  673. }*/
  674. }
  675. // 검체상세목록 조회
  676. function fGetSpcDetlList(Ref){
  677. grd_detllist.rebuildStyle();
  678. var rRow = "";
  679. if(Ref !=""){ // 자동 상세목록 조회(Ref = 마지막 Row)
  680. rRow = Ref-1;
  681. }else{
  682. rRow = grd_spclist.row;
  683. }
  684. model.setValue("/root/send/bcno", model.getValue("/root/main/spclist["+rRow+"]/bcno"));
  685. model.setValue("/root/send/menuparam", model.getValue("root/properties/menu/menuparam"));
  686. submit("TRLLJ00101");
  687. // 응급 빨간색으로 표시
  688. for(i=1; i<grd_detllist.rows; i++){
  689. if("Y" == model.getValue("/root/main/detllistref["+i+"]/erprcpflag")){
  690. //alert("aa= " + i + " " + model.getValue("/root/main/detllistref["+i+"]/erprcpflag"));
  691. grd_detllist.cellStyle("color", i, 3, i, 3) = "#ff3300";
  692. }
  693. if("0" == model.getValue("/root/main/detllistref["+i+"]/spcstat")){
  694. grd_detllist.cellStyle("color", i, 1, i, 4) = "#aaaaaa";
  695. }
  696. }
  697. }
  698. // 검체조회 tab 검체조회
  699. function fGetSpcListref(){
  700. //model.resetInstanceNode("/root/main/spclistref");
  701. if(fSetRefFromdd()==true){
  702. model.setValue("/root/send/refbase", model.getValue("/root/hidden/spcref/refbase"));
  703. model.setValue("/root/send/reffromdd", model.getValue("/root/hidden/spcref/reffromdd"));
  704. model.setValue("/root/send/reftodd", model.getValue("/root/hidden/spcref/reftodd"));
  705. model.setValue("/root/send/refgbn", model.getValue("/root/hidden/spcref/refflag"));
  706. model.setValue("/root/send/reftext", model.getValue("/root/hidden/spcref/refcnts"));
  707. model.setValue("/root/send/execdept", model.getValue("/root/hidden/spcref/execdept"));
  708. model.setValue("/root/send/rsltflag" , model.getValue("/root/hidden/spcref/rsltflag"));
  709. model.setValue("/root/send/genrflag", model.getValue("/root/hidden/spcref/genrflag"));
  710. var isvalue = "";
  711. if(model.getValue("/root/hidden/spcref/isbcoll") == "1','2','3"){
  712. isvalue = "'" + model.getValue("/root/hidden/spcref/isbcoll") + "'";
  713. }
  714. if(model.getValue("/root/hidden/spcref/isacp") == "4-"){
  715. if(isvalue == ""){
  716. isvalue = "'" + model.getValue("/root/hidden/spcref/isacp") + "'";
  717. }else{
  718. isvalue = isvalue + "," + "'" + model.getValue("/root/hidden/spcref/isacp") + "'";
  719. }
  720. }
  721. if(model.getValue("/root/hidden/spcref/isrslt") == "41','42','44','45"){
  722. if(isvalue == ""){
  723. isvalue = "'" + model.getValue("/root/hidden/spcref/isrslt") + "'";
  724. }else{
  725. isvalue = isvalue + "," + "'" + model.getValue("/root/hidden/spcref/isrslt") + "'";
  726. }
  727. }
  728. if(model.getValue("/root/hidden/spcref/iscancle") == "0"){
  729. if(isvalue == ""){
  730. isvalue = "'" + model.getValue("/root/hidden/spcref/iscancle") + "'";
  731. }else{
  732. isvalue = isvalue + "," + "'" + model.getValue("/root/hidden/spcref/iscancle") + "'";
  733. }
  734. }
  735. model.makeValue("/root/send/isvalue", isvalue);
  736. model.setValue("/root/send/NL", model.getValue("root/properties/menu/menuparam"));
  737. //model.setValue("/root/send/NL", "N");
  738. submit("TRLLJ00103"); // 검체접수화면 검체조회
  739. model.removenode("/root/send/isvalue");
  740. initGridStyle("grd_spcreflist");
  741. if(getNodesetCount("/root/main/spclistref") > 0){
  742. setRowStyle("grd_spcreflist", "5", "d", "retestyn", "equal");
  743. setRowStyle("grd_spcreflist", "5", "e", "retestyn", "equal");
  744. setRowStyle("grd_spcreflist", "5", "t", "retestyn", "equal");
  745. setRowStyle("grd_spcreflist", "5", "D", "retestyn", "equal");
  746. setRowStyle("grd_spcreflist", "5", "E", "retestyn", "equal");
  747. setRowStyle("grd_spcreflist", "5", "T", "retestyn", "equal");
  748. }
  749. }
  750. }
  751. // 부적합검체등록
  752. function fSetBadSpc(){
  753. if(switch3.selectedIndex=="0"){ //접수
  754. if(grd_spclist.rows > 0){
  755. var bcno = model.getValue("/root/main/spclist["+grd_spclist.row+"]/bcno");
  756. }
  757. }else if(switch3.selectedIndex=="1"){ //조회
  758. if(grd_spcreflist.rows > 1){
  759. var bcno = model.getValue("/root/main/spclistref["+grd_spcreflist.row+"]/bcno");
  760. }
  761. }
  762. model.setValue("/root/hidden/bcno", bcno);
  763. //if(bcno != ""){
  764. //window.load("../../../lis/commonweb/xrw/SPLLJ90100_부적합검체등록.xrw","modeless", "SPLLJ90100_부적합검체등록", "width:360px; height:465;min:hidden;max:hidden;align:center", "/root/hidden/bcno", "/root/hidden/bcno");
  765. modal("SPLLJ90100_부적합검체등록","","","","","/root/hidden/bcno","/root/hidden/bcno");
  766. //open("SPLLJ90100", 1 ,300, 400, "SPLLJ90100", "", "/root/hidden/bcno", "/root/hidden/bcno");
  767. //}
  768. }
  769. // 채혈접수취소등록
  770. function fSetAcptCncl(){
  771. if(grd_spcreflist.row < 1 ){
  772. messageBox("선택된 검체가 없습니다. 검체를 ", "C002"); // 선택하십시오!
  773. return;
  774. }
  775. if(model.getValue("/root/main/spclistref["+grd_spcreflist.row+"]/bcnostat") == "채혈"){
  776. alert("채혈상태인 검체 입니다."); // 선택하십시오!
  777. return;
  778. }
  779. model.setValue("/root/hidden/canceldata/data1", model.getValue("/root/main/spclistref["+grd_spcreflist.row+"]/bcno"));
  780. model.setValue("/root/hidden/canceldata/data2", "02");
  781. //modal("SPLLC90400", "", "", "", "", "/root/hidden/canceldata", "/root/hidden/openerdata");
  782. //window.load("../../../lis/commonweb/xrw/SPLLC90400_채혈접수취소등록.xrw", "modeless", "SPLLC90400_채혈접수취소등록", "width:360px; height:240px; min:hidden;max:hidden;align:center", "/root/hidden/canceldata", "/root/hidden/openerdata");
  783. open("SPLLC90400", 1 ,300, 400, "SPLLC90400","/root/hidden/canceldata", "/root/hidden/openerdata");
  784. }
  785. // 바코드 프린터 설정 삭제예정
  786. function fSetPrntSetting(){
  787. //modal("SPLLC90100","","","","","/root/hidden","/root/hidden");
  788. //window.load("../../../lis/commonweb/xrw/SPLLC90100_바코드프린터설정.xrw","modeless", "SPLLC90100_바코드프린터설정", "width:350px; height:190;min:hidden;max:hidden;align:center", "/root/hidden", "/root/hidden");
  789. open("SPLLC90100", 1 ,300, 400, "SPLLC90100");
  790. }
  791. //프린터 설정
  792. function fSetPrint() {
  793. var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  794. if(count == 0) {
  795. model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  796. }
  797. open("SPLLC90100_바코드프린터설정.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  798. }
  799. // 초기화
  800. function fSetInit(){
  801. model.removeNodeset("/root/main");
  802. model.refresh();
  803. }
  804. // 스위치에 따라 버튼 보이기
  805. function fbuttonvisible(ref){
  806. // 검체접수
  807. if(ref == "A"){
  808. group7.visible = false;
  809. group6.visible = true;
  810. }
  811. // 검체조회
  812. else if(ref == "B"){
  813. group7.visible = true;
  814. group6.visible = false;
  815. }
  816. }
  817. // 접수 시 바코드 출력
  818. function fExeBarcdPrnt(){
  819. var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
  820. //var brows = getNodesetCount("/root/hidden/barcode/barcodeinfo");
  821. // 2007-10-14 수정
  822. //for(i=1; i<=brows; i++){
  823. model.makeNode("/root/main/barcode/barcodeinfo/cntflag");
  824. model.setValue("/root/main/barcode/barcodeinfo/cntflag", "acpt");
  825. //model.makeValue("/root/main/barcode/barcodeinfo/cntflag", "acpt");
  826. //}
  827. // 접수 바코드 출력
  828. if(model.getValue("/root/main/barcode/barcodeinfo/spcacptbarcdprntcnt") >0){
  829. //fLisSpcBarcodePrint("/root/main/barcode/barcodeinfo["+(grd_spclist.rows-1)+"]"); // 접수 바코드 출력
  830. if(prtkind == "8"){
  831. fLisSpcBarcodePrint3("/root/main/barcode/barcodeinfo");
  832. }else{
  833. fLisSpcBarcodePrint("/root/main/barcode/barcodeinfo"); // 접수 바코드 출력
  834. }
  835. }
  836. //var drows = getNodesetCount("/root/hidden/barcode/dbarcodeinfo");
  837. //for(i=1; i<drows; i++){
  838. // model.makeValue("root/main/barcode/dbarcodeinfo["+i+"]/cntflag", "acpt");
  839. //}
  840. model.makeValue("/root/main/barcode[2]/dbarcodeinfo/cntflag", "acpt");
  841. fLisSpcBarcodePrint("/root/main/barcode/dbarcodeinfo"); // 분주
  842. // 미생물 바코드 출력
  843. var Mcount = getNodesetCount("/root/main/barcode/barcodeinfo");
  844. //alert(Mcount);
  845. for(i = 1; i < Mcount+1; i++){
  846. if(model.getValue("/root/main/barcode/barcodeinfo["+i+"]/microbarcdprntcnt") > 0){
  847. //alert("미생물 출력하러감");
  848. fLisMicroWorknoSpcBarcodePrint("/root/main/barcode/barcodeinfo"); // 미생물 작업번호 바코드 출력
  849. return;
  850. }
  851. }
  852. /*
  853. //model.removeNodeset("/root/hidden/barcode/barcodeinfo");
  854. //var bcno = "";
  855. //bcno = "'" + model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/bcno") + "'";
  856. //model.makeValue("/root/send/bcnolist" , bcno);
  857. //--------------------
  858. //submit("TRLZZ00102");
  859. model.makeNode("/root/hidden/barcode/barcodeinfo/cntflag");
  860. model.setValue("/root/hidden/barcode/barcodeinfo/cntflag", "acpt");
  861. if(model.getValue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind") == ""){
  862. //alert("프린터 설정이 필요합니다.");
  863. }else{
  864. //model.makeNode("/root/hidden/barcode/barcodeinfo/commkind");
  865. //model.setValue("/root/hidden/barcode/barcodeinfo/commkind", model.getValue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind"));
  866. copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
  867. }
  868. // 접수 바코드 출력
  869. if(model.getValue("/root/hidden/barcode/barcodeinfo/spcacptbarcdprntcnt") >0){
  870. copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
  871. fLisSpcBarcodePrint("/root/hidden/barcode/barcodeinfo"); // 접수 바코드 출력
  872. }
  873. // 미생물 바코드 출력
  874. if(model.getValue("/root/hidden/barcode/barcodeinfo/microbarcdprntcnt") > 0){
  875. copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
  876. fLisMicroWorknoSpcBarcodePrint("/root/hidden/barcode/barcodeinfo"); // 미생물 작업번호 바코드 출력
  877. }
  878. */
  879. }
  880. // 핵의학 바코드 출력
  881. function fExeNBarcdPrnt(){
  882. /*model.removeNodeset("/root/hidden/barcode/barcodeinfo");
  883. var bcno = "";
  884. bcno = "'" + model.getValue("/root/main/spclist["+(grd_spclist.rows-1)+"]/bcno") + "'";
  885. model.makeValue("/root/send/bcnolist" , bcno);
  886. submit("TRLZZ00105");
  887. if(model.getValue("/root/properties/menu/menuparam")=="N"){
  888. copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
  889. }else{
  890. if(model.getValue("/root/hidden/barcode/barcodeinfo/divgrupcd") != ""){
  891. //alert(model.getValue("/root/hidden/barcode/barcodeinfo/divgrupcd"));
  892. copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
  893. }
  894. }
  895. // 분주바코드출력
  896. fLisNSpcBarcodePrint("/root/hidden/barcode/barcodeinfo"); // 핵의학 바코드 출력
  897. */
  898. copyNodeType("/root/main/barcode/nbarcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
  899. var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
  900. var portnm = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind");
  901. if( (prtkind == "9" && portnm == "01") || (prtkind == "11" && portnm == "01") || prtkind == "10" || prtkind == "2" || prtkind == "6" || prtkind == "7"){
  902. fLisNSpcBarcodePrint2("/root/main/barcode/nbarcodeinfo"); // 핵의학 바코드 출력
  903. }else{
  904. fLisNSpcBarcodePrint("/root/main/barcode/nbarcodeinfo"); // 핵의학 바코드 출력
  905. }
  906. //model.removeNodeset("/root/main/barcode/nbarcodeinfo");
  907. }
  908. // 바코드 재출력
  909. function fExeBarcdRePrnt(){
  910. model.removeNodeset("/root/hidden/barcode/barcodeinfo");
  911. var bcno = "";
  912. var bcollTF = false;
  913. for(i=1; i< grd_spcreflist.rows; i++){
  914. if(model.getValue("/root/main/spclistref["+i+"]/chk")=="Y"){
  915. bcno = bcno + "'" + model.getvalue("/root/main/spclistref["+i+"]/bcno") + "'" + ",";
  916. bcollTF = true;
  917. }
  918. }
  919. //alert("bcno= " +bcno);
  920. if(bcollTF == false){
  921. alert("재출력할 검체를 선택하십시오. ");
  922. }
  923. if(bcollTF) {
  924. bcno = bcno.substring( 0 ,bcno.length - 1);
  925. model.makeValue("/root/send/bcnolist" , bcno);
  926. //--------------------
  927. submit("TRLZZ00105");
  928. //model.makeNode("/root/hidden/barcode/barcodeinfo/cntflag");
  929. //model.setValue("/root/hidden/barcode/barcodeinfo/cntflag", "acpt");
  930. copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
  931. //-----------------------------------------------------
  932. var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
  933. var portnm = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind");
  934. if( (prtkind == "9" && portnm == "01") || (prtkind == "11" && portnm == "01") || prtkind == "10" || prtkind == "2" || prtkind == "6" || prtkind == "7"){
  935. fLisNSpcBarcodePrint2("/root/hidden/barcode/barcodeinfo"); // 핵의학 바코드 출력
  936. }else{
  937. fLisNSpcBarcodePrint("/root/hidden/barcode/barcodeinfo"); // 핵의학 바코드 출력
  938. }
  939. }
  940. }
  941. // 대분류콤보 선택시
  942. function fSetTLrgCd() {
  943. var etc = model.getvalue("/root/hidden/spcacpt/testlrgcd");
  944. if(etc == "00"){
  945. cmd_TMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
  946. model.setValue("/root/hidden/spcacpt/testmdlcd" , "00");
  947. }
  948. else{
  949. model.setValue("/root/hidden/spcacpt/testmdlcd" , "00");
  950. cmd_TMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ etc +"']";
  951. }
  952. cmd_TMdlCd.refresh();
  953. }
  954. //특수검사 조회
  955. function fGetSpclTestList() {
  956. model.removeNodeset("/root/main/getspcltestlist");
  957. model.makeValue("/root/send/acptsdd", getCurrentDate());
  958. model.makeValue("/root/send/acptedd", getCurrentDate());
  959. model.makeValue("/root/send/spcltestgrup", "00");
  960. model.makeValue("/root/send/seqsno", "00000");
  961. model.makeValue("/root/send/seqeno", "99999");
  962. model.makeValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
  963. model.makeValue("/root/send/refflag", "1");
  964. model.makeValue("/root/send/spcchoiyn", "1");
  965. model.makeValue("/root/send/bcno", model.getValue("/root/main/spclist/bcno"));
  966. submit("TRLRP00701");
  967. }
  968. //특수검사 의뢰서 출력
  969. function fPrint(find){
  970. model.removeNodeset("/root/hidden/report");
  971. model.makeNode("/root/hidden/report");
  972. model.removeNodeset("/root/main/rslt");
  973. model.removeNodeset("/root/main/cf");
  974. //골수 결과
  975. if(model.getValue("/root/main/getspcltestlist["+ find +"]/reqcnts/reqfrminfo/inptitem01/initial") == "Initial") {
  976. model.setValue("/root/main/getspcltestlist["+ find +"]/reqcnts/reqfrminfo/inptitem01/initial", "Initial");
  977. } else if(model.getValue("/root/main/getspcltestlist["+ find +"]/reqcnts/reqfrminfo/inptitem01/fu") == "F/U") {
  978. model.setValue("/root/main/getspcltestlist["+ find +"]/reqcnts/reqfrminfo/inptitem01/initial", "F/U");
  979. } else if(model.getValue("/root/main/getspcltestlist["+ find +"]/reqcnts/reqfrminfo/inptitem01/others") == "Others") {
  980. model.setValue("/root/main/getspcltestlist["+ find +"]/reqcnts/reqfrminfo/inptitem01/initial", "Others");
  981. }
  982. copyNodeListType("/root/hidden/report", "/root/main/getspcltestlist["+ find +"]", "after");
  983. var report = getNodesetCount("/root/hidden/report/getspcltestlist");
  984. model.makeValue("/root/send/pid", model.getValue("/root/main/getspcltestlist["+ find +"]/pid"));
  985. //model.setValue("/root/send/instcd", getUserInfo("posinstcd"));
  986. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  987. //model.makeValue("/root/send/instcd", "012");
  988. submit("TRLRP00703");
  989. //CBC 검사결과
  990. model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/tcls");
  991. model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/rslt");
  992. model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/tcls2");
  993. model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/rslt2");
  994. var count = getNodesetCount("/root/main/rslt");
  995. var tclslist = "";
  996. var rsltlist = "";
  997. var tclslist2 = "";
  998. var rsltlist2 = "";
  999. var tcls = "";
  1000. for(j = 1; j <= count; j++) {
  1001. tcls = model.getValue("/root/main/rslt["+ j +"]/tclscd");
  1002. if(tcls.substr(3, 3) != "105") {
  1003. tclslist = tclslist + model.getValue("/root/main/rslt["+ j +"]/tclsnm") + "\n";
  1004. rsltlist = rsltlist + model.getValue("/root/main/rslt["+ j +"]/reptrslt") + "\n";
  1005. } else if(tcls.substr(3, 3) == "105") {
  1006. tclslist2 = tclslist2 + model.getValue("/root/main/rslt["+ j +"]/tclsnm") + "\n";
  1007. rsltlist2 = rsltlist2 + model.getValue("/root/main/rslt["+ j +"]/reptrslt") + "\n";
  1008. }
  1009. }
  1010. model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/tcls", tclslist);
  1011. model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/rslt", rsltlist);
  1012. model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/tcls2", tclslist2);
  1013. model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/rslt2", rsltlist2);
  1014. model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/tm");
  1015. model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/tm", model.getValue("/root/main/rslt["+ count +"]/lastreptdt"));
  1016. //CF 검사결과
  1017. model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/ptno");
  1018. model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/part");
  1019. model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/mthd");
  1020. model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/drg");
  1021. model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/acpt");
  1022. model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/drnm");
  1023. var count = getNodesetCount("/root/main/cf");
  1024. var ptno = "";
  1025. var part = "";
  1026. var mthd = "";
  1027. var drg = "";
  1028. var acpt = "";
  1029. var drnm = "";
  1030. for(j = 1; j <= count; j++) {
  1031. ptno = ptno + model.getValue("/root/main/cf["+ j +"]/dispptno") + "\n";
  1032. part = part + model.getValue("/root/main/cf["+ j +"]/extrpartcd") + "\n" ;
  1033. mthd = mthd + model.getValue("/root/main/cf["+ j +"]/extrmthdcd") + "\n";
  1034. drg = drg + model.getValue("/root/main/cf["+ j +"]/drgcd") + "\n";
  1035. acpt = acpt + model.getValue("/root/main/cf["+ j +"]/acptdd") + "\n";
  1036. drnm = drnm + model.getValue("/root/main/cd["+ j +"]/readdrnm") + "\n";
  1037. }
  1038. model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/ptno", ptno);
  1039. model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/part", part);
  1040. model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/mthd", mthd);
  1041. model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/drg", drg);
  1042. model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/acpt", acpt);
  1043. model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/drnm", drnm);
  1044. model.makeValue("/root/send/tclscd", model.getValue("/root/main/getspcltestlist["+ find +"]/tclscd"));
  1045. model.makeValue("/root/send/spccd", model.getValue("/root/main/getspcltestlist["+ find +"]/spccd"));
  1046. model.makeValue("/root/send/prcpgenrflag", model.getValue("/root/main/getspcltestlist["+ find +"]/prcpgenrflag"));
  1047. model.makeValue("/root/send/bcno", model.getValue("/root/main/getspcltestlist["+ find +"]/bcno"));
  1048. submit("TRLRP00702");
  1049. //검사명
  1050. // model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/tclsnm");
  1051. // var count = getNodesetCount("/root/main/detltestlist");
  1052. // var testlist = "";
  1053. // for(j = 1; j <= count; j++) {
  1054. // testlist = testlist + model.getValue("/root/main/detltestlist["+j+"]/tclsnm") + "\n";
  1055. // }
  1056. // model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/tclsnm", testlist);
  1057. var flag = model.getValue("/root/hidden/report/getspcltestlist/reqfrmcd");
  1058. switch(flag) {
  1059. case "01" :
  1060. exeReportPreview("RPLRP00100", "XMLSTR", "/root/hidden/report", "", "true"); //골수검사의뢰서
  1061. break;
  1062. case "02" :
  1063. exeReportPreview("RPLRP00200", "XMLSTR", "/root/hidden/report", "", "true"); //분자생물학부의뢰서
  1064. break;
  1065. case "03" :
  1066. exeReportPreview("RPLRP00300", "XMLSTR", "/root/hidden/report", "", "true"); //산전검사의뢰서
  1067. break;
  1068. case "04" :
  1069. exeReportPreview("RPLRP00400", "XMLSTR", "/root/hidden/report", "", "true"); //세포유전학검사의뢰서
  1070. break;
  1071. case "05" :
  1072. exeReportPreview("RPLRP00500", "XMLSTR", "/root/hidden/report", "", "true"); //장기이식의뢰서
  1073. break;
  1074. case "06" :
  1075. exeReportPreview("RPLRP00600", "XMLSTR", "/root/hidden/report", "", "true"); //TDM 의뢰서
  1076. break;
  1077. }
  1078. }
  1079. // 조회일자 3일 이전으로 못가게 막기
  1080. function fSetRefFromdd(){
  1081. //var today = getCurrentDate();
  1082. var todd = model.getValue("/root/hidden/spcref/reftodd");
  1083. var mDate = todd.toDate("YYYYMMDD").getAddDate(-3);
  1084. var fromdd = model.getValue("/root/hidden/spcref/reffromdd");
  1085. //alert("mDate= " +mDate);
  1086. //alert("fromdd= " + fromdd);
  1087. if( mDate.getDateFormat("YYYYMMDD") > fromdd){
  1088. model.alert("3일 이내의 기간으로 검색하세요.");
  1089. //model.setValue("/root/hidden/spcref/reffromdd", mDate.getDateFormat("YYYYMMDD"));
  1090. return false;
  1091. }else if(todd < fromdd){
  1092. model.alert("기간설정이 잘못 되었습니다.");
  1093. return false;
  1094. }else{
  1095. return true;
  1096. }
  1097. }
  1098. // 검체목록출력
  1099. function fExePrint(){
  1100. model.removeNodeset("/root/hidden/report");
  1101. if(grd_spcreflist.rows < 2){
  1102. messageBox("출력할", "E013");
  1103. return;
  1104. }
  1105. var prtrow = 1;
  1106. for(i=1; i< grd_spcreflist.rows; i++){
  1107. if(model.getValue("/root/main/spclistref["+i+"]/chk")=="Y"){
  1108. model.makeNode("/root/hidden/report/spclistref["+ prtrow +"]");
  1109. copyNodeType("/root/hidden/report/spclistref["+ prtrow +"]", "/root/main/spclistref["+i+"]");
  1110. model.setValue("/root/hidden/report/spclistref["+ prtrow +"]/spcstat", grd_spcreflist.labelMatrix(i, 12));
  1111. /* model.makeValue("/root/hidden/report["+prtrow+"]/pid", model.getValue("/root/main/spclistref["+i+"]/pid"));
  1112. model.makeValue("/root/hidden/report["+prtrow+"]/patnm", model.getValue("/root/main/spclistref["+i+"]/patnm"));
  1113. model.makeValue("/root/hidden/report["+prtrow+"]/orddeptnm", model.getValue("/root/main/spclistref["+i+"]/orddeptcd"));
  1114. model.makeValue("/root/hidden/report["+prtrow+"]/wardroom", model.getValue("/root/main/spclistref["+i+"]/wardroom"));
  1115. model.makeValue("/root/hidden/report["+prtrow+"]/tsectcd", model.getValue("/root/main/spclistref["+i+"]/tsectcd"));
  1116. model.makeValue("/root/hidden/report["+prtrow+"]/workno", model.getValue("/root/main/spclistref["+i+"]/workno"));
  1117. model.makeValue("/root/hidden/report["+prtrow+"]/bcno", model.getValue("/root/main/spclistref["+i+"]/bcno"));
  1118. model.makeValue("/root/hidden/report["+prtrow+"]/spcnm", model.getValue("/root/main/spclistref["+i+"]/spcnm"));
  1119. model.makeValue("/root/hidden/report["+prtrow+"]/spcltestseq", model.getValue("/root/main/spclistref["+i+"]/spcltestseq"));
  1120. model.makeValue("/root/hidden/report["+prtrow+"]/prcpdd", model.getValue("/root/main/spclistref["+i+"]/prcpdd"));
  1121. model.makeValue("/root/hidden/report["+prtrow+"]/spcstat", model.getValue("/root/main/spclistref["+i+"]/spcstat"));*/
  1122. prtrow ++;
  1123. }
  1124. }
  1125. if(prtrow < 2){
  1126. messageBox("출력할", "E013");
  1127. return;
  1128. }
  1129. exeReportPreview("RPLLJ00100", "XMLSTR");
  1130. }
  1131. function fdetllistClick(row){
  1132. model.removeNodeset("/root/hidden/popupmenu");
  1133. if("4" == model.getValue("/root/main/detllistref["+row+"]/spcstat")){
  1134. if(event.button == 3){ // 라이트클릭 메뉴만들기...
  1135. model.makeNode("/root/hidden/popupmenu/grid");
  1136. model.makeNode("/root/hidden/popupmenu/grid/item");
  1137. if(grd_detllist.mouseCol == 1 || grd_detllist.mouseCol == 2 || grd_detllist.mouseCol == 3 || grd_detllist.mouseCol == 4){
  1138. model.makeValue("/root/hidden/popupmenu/grid/item["+1+"]/name" , "▶ 검체취소");
  1139. model.makeValue("/root/hidden/popupmenu/grid/item["+1+"]/func" , "fdClick");
  1140. if(grd_detllist.isCell(event.target) && grd_detllist.mouseRow >= grd_detllist.fixedrows){
  1141. window.setPopupMenu(true , "/root/hidden/popupmenu/grid/item" , "name", "func", true);
  1142. //setPopupMenu("grd_TestInfoCnts" , true, "/root/hidden/popupmenu/grid/item", "name", "func");
  1143. }else{
  1144. window.setPopupMenu(false);
  1145. }
  1146. }
  1147. }
  1148. }
  1149. else{
  1150. window.setPopupMenu(false);
  1151. }
  1152. }
  1153. function fdClick(){
  1154. model.setValue("/root/hidden/canceltclsnmlist", "");
  1155. for(i = 1 ; i < grd_detllist.rows ; i++){
  1156. if(model.getValue("/root/main/detllistref["+i+"]/tclscd2") == model.getValue("/root/main/detllistref["+grd_detllist.row+"]/tclscd2")){
  1157. model.setValue("/root/hidden/canceltclsnmlist" ,
  1158. model.getValue("/root/hidden/canceltclsnmlist") + model.getValue("/root/main/detllistref["+i+"]/tclsscrnnm") + ", ");
  1159. }
  1160. }
  1161. modal("SPLLJ90300","","","","","/root/hidden/canceltclsnmlist","/root/hidden/ref/tclsnmlist");
  1162. }
  1163. function fcancelClick(){
  1164. model.setvalue("/root/send/cancelgrd/status" , "u");
  1165. model.setvalue("/root/send/cancelgrd/chk" , "true");
  1166. model.setvalue("/root/send/cancelgrd/tclscd" , model.getValue("/root/main/detllistref["+grd_detllist.row+"]/tclscd2"));
  1167. model.setvalue("/root/send/cancelgrd/testcd" , "");
  1168. model.setvalue("/root/send/cancelgrd/tclsnm" , model.getValue("/root/main/detllistref["+grd_detllist.row+"]/tclsscrnnm"));
  1169. model.setvalue("/root/send/cancelgrd/bcno2" , model.getValue("/root/main/detllistref["+grd_detllist.row+"]/bcno"));
  1170. model.setvalue("/root/send/cancelgrd/orddeptnm" , model.getValue("/root/main/detllistref["+grd_detllist.row+"]/orddeptnm"));
  1171. model.setvalue("/root/send/cancelgrd/atdrid" , "");
  1172. model.setvalue("/root/send/cancelgrd/spccd" , model.getValue("/root/main/detllistref["+grd_detllist.row+"]/spccd"));
  1173. model.setvalue("/root/send/cancelgrd/genrflagcd" , "");
  1174. model.setvalue("/root/send/cancelgrd/ssectcd" , model.getValue("/root/main/detllistref["+grd_detllist.row+"]/sectcd"));
  1175. model.setvalue("/root/send/cancelgrd/tsectcd" , model.getValue("/root/main/detllistref["+grd_detllist.row+"]/tsectcd"));
  1176. model.setvalue("/root/send/cancelgrd/tclskind" , "");
  1177. model.setvalue("/root/send/cancelgrd/cancelgbn", "04");
  1178. //model.setvalue("/root/send/cancelgrd/resncd", "04000");
  1179. //model.setvalue("/root/send/cancelgrd/resndesc", "검체 Clot 됨");
  1180. model.setvalue("/root/send/cancelgrd/cmt", "");
  1181. model.setvalue("/root/send/cancelgrd/pid", model.getValue("/root/main/detllistref["+grd_detllist.row+"]/pid"));
  1182. model.setvalue("/root/send/cancelgrd/spcstat", model.getValue("/root/main/detllistref["+grd_detllist.row+"]/spcstat"));
  1183. if(submit("TXLLJ00302")==true){
  1184. //model.reset();
  1185. }
  1186. fGetSpcDetlList("");
  1187. //grd_detllist.deleteItem(grd_detllist.row);
  1188. }
  1189. function fOnmenu(popupParam){
  1190. if(popupParam == "fdClick"){
  1191. //alert("메롱");
  1192. fdClick();
  1193. }
  1194. }
  1195. function fpopupmenu() {
  1196. model.removeNodeset("/root/hidden/popupmenu");
  1197. var reqno = model.getValue("/root/main/spclistref["+grd_spcreflist.mouserow+"]/reqno");
  1198. var trustinstcd = model.getValue("/root/main/spclistref["+grd_spcreflist.mouserow+"]/trustinstcd");
  1199. if(event.button == 3){ // 라이트클릭 메뉴만들기...
  1200. model.makeNode("/root/hidden/popupmenu/grid");
  1201. model.makeNode("/root/hidden/popupmenu/grid/item");
  1202. model.makeValue("/root/hidden/popupmenu/grid/item["+1+"]/name" , "▶ 이전결과");
  1203. model.makeValue("/root/hidden/popupmenu/grid/item["+1+"]/func" , "fbfrslt");
  1204. model.makeValue("/root/hidden/popupmenu/grid/item["+2+"]/name" , "▶ 통합결과조회");
  1205. model.makeValue("/root/hidden/popupmenu/grid/item["+2+"]/func" , "fTGyeolGwa");
  1206. if(reqno != 0 && trustinstcd == "-"){
  1207. model.makeValue("/root/hidden/popupmenu/grid/item["+3+"]/name" , "▶ 의뢰서 보기");
  1208. model.makeValue("/root/hidden/popupmenu/grid/item["+3+"]/func" , "fRequestPage");
  1209. }
  1210. if(grd_spcreflist.isCell(event.target) && grd_spcreflist.mouseRow >= grd_spcreflist.fixedrows){
  1211. setPopupMenu("grd_spcreflist", false, "/root/hidden/popupmenu/grid/item", "name", "func");
  1212. }else{
  1213. window.setPopupMenu(false);
  1214. }
  1215. }
  1216. }
  1217. function fRequestPage(){
  1218. var reqno = model.getValue("/root/main/spclistref["+grd_spcreflist.row+"]/reqno");
  1219. var pid = model.getValue("/root/main/spclistref["+grd_spcreflist.row+"]/pid");
  1220. var prcpcd = model.getValue("/root/main/spclistref["+grd_spcreflist.row+"]/prcpcd");
  1221. var spccd = model.getValue("/root/main/spclistref["+grd_spcreflist.row+"]/spccd");
  1222. model.setValue("/root/hidden/request/pid", pid);
  1223. model.setValue("/root/hidden/request/reqno", reqno);
  1224. model.setValue("/root/hidden/request/prcpcd", prcpcd);
  1225. model.setValue("/root/hidden/request/spccd", spccd);
  1226. modal("SPLRR91000" ,"","","","","/root/hidden/request", "/root/hidden/reqfrminfo");
  1227. }
  1228. function fTGyeolGwa(){
  1229. modal("SMAER00800 ","","","","","/root/main/spclistref["+grd_spcreflist.row+"]/pid","/root/send/data/singdata/srchpid");
  1230. }
  1231. function fbfrslt(){
  1232. //var count = getNodesetCount("/root/main/divgrupnmlist");
  1233. //if(count > 0){
  1234. //var tclscdlist = model.getValue("/root/main/divgrupnmlist[1]/tclscd");
  1235. //for(i=2; i<= count; i++){
  1236. // tclscdlist = tclscdlist + "','" + model.getValue("/root/main/divgrupnmlist["+i+"]/tclscd");
  1237. //}
  1238. //tclscdlist = "'" + tclscdlist + "'";
  1239. model.setValue("/root/send/data6/pid", model.getValue("/root/main/spclistref["+grd_spcreflist.row+"]/pid"));
  1240. model.setValue("/root/send/data6/divgrupcd", model.getValue("/root/main/spclistref["+grd_spcreflist.row+"]/testcd"));
  1241. modal("SPLNR90600","","","","","/root/send/data6","/root/hidden/ref");
  1242. //}
  1243. }
  1244. function fSetThreeDay(){
  1245. var mDate = model.getValue("/root/hidden/spcref/reffromdd").toDate("YYYYMMDD").getAddDate(+3);
  1246. model.setValue("/root/hidden/spcref/reftodd", mDate.getDateFormat("YYYYMMDD"));
  1247. model.refresh();
  1248. }
  1249. function fUpPatinfo(){
  1250. if(grd_spcreflist.col == 4){
  1251. if(getPatientInfo("pid") != model.getValue("/root/main/spclistref["+ grd_spcreflist.row +"]/pid")) {
  1252. if(grd_spcreflist.rows> 1){
  1253. setParameter("errflag", "Y");
  1254. setParameter("condparam", "S" + "▦" + model.getvalue("/root/main/spclistref["+ grd_spcreflist.row +"]/prcpdd")+ "▦"
  1255. + model.getvalue("/root/main/spclistref["+ grd_spcreflist.row +"]/execprcpuniqno") + "▦"
  1256. + model.getvalue("/root/main/spclistref["+ grd_spcreflist.row +"]/instcd") );
  1257. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  1258. }
  1259. var paminfo = getGlobalVariable("paminfo");
  1260. if((paminfo.length < 0) || (getPatientInfo("pid") != model.getValue("/root/main/spclistref["+ grd_spcreflist.row +"]/pid"))){ //상단정보가 없는 경우
  1261. delPatientInfos(); //환자정보 전체 삭제
  1262. var pid = model.getValue("/root/main/spclistref["+ grd_spcreflist.row +"]/pid")
  1263. var hngnm = model.getValue("/root/main/spclistref["+ grd_spcreflist.row +"]/patnm");
  1264. //상단에 올릴 수 있는 정보가 있으면 아래와 같이 설정해 주시면 됩니다. 없으면 안 해주셔도 되구요..
  1265. setPatientInfo("pid" , pid); //등록번호
  1266. setPatientInfo("pname" , pid + "|" + hngnm); //환자명
  1267. }
  1268. }
  1269. }
  1270. }
  1271. function fUpPatinfo2(){
  1272. if(grd_spclist.col == 7){
  1273. if(getPatientInfo("pid") != model.getValue("/root/main/spclist["+ grd_spclist.row +"]/pid")) {
  1274. if(grd_spclist.rows> 1){
  1275. setParameter("errflag", "Y");
  1276. setParameter("condparam", "S" + "▦" + model.getvalue("/root/main/spclist["+ grd_spclist.row +"]/prcpdd")+ "▦"
  1277. + model.getvalue("/root/main/spclist["+ grd_spclist.row +"]/execprcpuniqno") + "▦"
  1278. + model.getvalue("/root/main/spclist["+ grd_spclist.row +"]/instcd") );
  1279. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  1280. }
  1281. var paminfo = getGlobalVariable("paminfo");
  1282. if((paminfo.length < 0) || (getPatientInfo("pid") != model.getValue("/root/main/spclist["+ grd_spclist.row +"]/pid"))){ //상단정보가 없는 경우
  1283. delPatientInfos(); //환자정보 전체 삭제
  1284. var pid = model.getValue("/root/main/spclist["+ grd_spclist.row +"]/pid")
  1285. var hngnm = model.getValue("/root/main/spclist["+ grd_spclist.row +"]/patnm");
  1286. //상단에 올릴 수 있는 정보가 있으면 아래와 같이 설정해 주시면 됩니다. 없으면 안 해주셔도 되구요..
  1287. setPatientInfo("pid" , pid); //등록번호
  1288. setPatientInfo("pname" , pid + "|" + hngnm); //환자명
  1289. }
  1290. }
  1291. }
  1292. }
  1293. function fViewList(){
  1294. var viewgbn = model.getValue("/root/hidden/ref/viewgbn");
  1295. if(viewgbn == "1"){
  1296. grd_spcreflist.colWidth(8) = 0;
  1297. grd_spcreflist.colWidth(9) = 0;
  1298. grd_spcreflist.colWidth(12) = 0;
  1299. }else{
  1300. grd_spcreflist.colWidth(8) = 60;
  1301. grd_spcreflist.colWidth(9) = 60;
  1302. grd_spcreflist.colWidth(12) = 150;
  1303. }
  1304. }
  1305. //검체목록 더블클릭시 바코드 재출력 기능 추가 변경요청서 1606번
  1306. function fBcdPrnt(){
  1307. model.removeNodeset("/root/hidden/barcode/barcodeinfo");
  1308. var bcno = "'" + model.getValue("/root/main/spclist["+grd_spclist.row +"]/bcno") + "'" ;
  1309. model.makeValue("/root/send/bcnolist" , bcno);
  1310. submit("TRLZZ00105");
  1311. copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
  1312. var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
  1313. var portnm = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind");
  1314. if( (prtkind == "9" && portnm == "01") || (prtkind == "11" && portnm == "01") || prtkind == "10" || prtkind == "2" || prtkind == "6" || prtkind == "7"){
  1315. fLisNSpcBarcodePrint2("/root/hidden/barcode/barcodeinfo"); // 핵의학 바코드 출력
  1316. }else{
  1317. fLisNSpcBarcodePrint("/root/hidden/barcode/barcodeinfo"); // 핵의학 바코드 출력
  1318. }
  1319. }
  1320. ]]>
  1321. </script>
  1322. </xhtml:head>
  1323. <xhtml:body style="text-align:center; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1324. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  1325. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:98px; height:14px; ">검체접수</caption>
  1326. </group>
  1327. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  1328. <switch id="switch3" class="sw_box" style="left:0px; top:26px; width:1194px; height:718px; ">
  1329. <case id="case1" selected="true">
  1330. <line id="line8" class="line_1" style="x1:5px; y1:65px; x2:750px; y2:65px; "/>
  1331. <caption id="caption21" class="tit_2" style="left:6px; top:50px; width:100px; height:13px; ">검체목록</caption>
  1332. <caption id="caption1" class="tit_2" style="left:760px; top:50px; width:100px; height:13px; ">검체상세목록</caption>
  1333. <line id="line1" class="line_1" style="x1:760px; y1:65px; x2:1189px; y2:65px; "/>
  1334. <caption id="caption7" class="tit_2" style="left:764px; top:609px; width:108px; height:13px; ">의뢰의사리마크</caption>
  1335. <line id="line3" class="line_1" style="x1:765px; y1:625px; x2:1189px; y2:624px; "/>
  1336. <caption id="caption8" class="cell_1" style="left:764px; top:629px; width:95px; height:83px; ">의뢰의사리마크</caption>
  1337. <line id="line4" class="line_3" style="x1:865px; y1:710px; x2:1190px; y2:711px; "/>
  1338. <datagrid id="grd_spclist" nodeset="/root/main/spclist" caption="^시행부서^접수번호^바코드번호^진료과^병동/병실^등록번호^환자명^검체명^접수일시^가접수일시" colwidth="20, 90, 95, 85, 80, 80,80,80, 160, 80, 80" defaultrows="0" ellipsis="false" mergecellsfixedrows="bycolrec" rowheader="seq" style="left:5px; top:70px; width:745px; height:623px; ">
  1339. <col checkvalue="true,false" ref="chk" type="checkbox"/>
  1340. <col disabled="true" ref="execdeptcd" type="combo" visibility="hidden">
  1341. <choices>
  1342. <itemset nodeset="/root/init/LB0106">
  1343. <label ref="nm"/>
  1344. <value ref="cd"/>
  1345. </itemset>
  1346. </choices>
  1347. </col>
  1348. <col ref="workno" visibility="hidden"/>
  1349. <col ref="bcno"/>
  1350. <col ref="orddeptnm"/>
  1351. <col ref="orddeptcd"/>
  1352. <col ref="pid"/>
  1353. <col ref="patnm"/>
  1354. <col ref="spccd"/>
  1355. <col ref="spcacptdt" format="yyyy-mm-dd"/>
  1356. <col ref="spcarvdt" format="yyyy-mm-dd"/>
  1357. <script type="javascript" ev:event="onclick">
  1358. <![CDATA[
  1359. if(grd_spclist.isCell(event.target) && grd_spclist.mouseRow >= grd_spclist.fixedrows){
  1360. var col = grd_spclist.col;
  1361. // 체크박스(1), 검체별특이사항(10) col 제외
  1362. //if(col != 1 && col != 10){
  1363. //if(col != 1){
  1364. if(col > 4){
  1365. // 검체상세목록 조회
  1366. //var grow = grd_spclist.row;
  1367. var grow = "";
  1368. fGetSpcDetlList(grow);
  1369. }
  1370. fUpPatinfo2();
  1371. }
  1372. ]]>
  1373. </script>
  1374. <script type="javascript" ev:event="ondblclick">
  1375. <![CDATA[
  1376. //더블클릭하면 바코드 재발행한다
  1377. if(grd_spclist.isCell(event.target) && grd_spclist.mouseRow >= grd_spclist.fixedrows){
  1378. if(grd_spclist.col == grd_spclist.colRef("bcno")){
  1379. fBcdPrnt();
  1380. var grow = "";
  1381. fGetSpcDetlList(grow);
  1382. fUpPatinfo2();
  1383. }
  1384. }
  1385. ]]>
  1386. </script>
  1387. </datagrid>
  1388. <group id="group2" style="left:5px; top:5px; width:1185px; height:35px; ">
  1389. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1184px; height:35px; "/>
  1390. <caption id="caption3" class="search_name" style="left:19px; top:9px; width:86px; height:17px; ">시행부서 :</caption>
  1391. <caption id="caption10" class="search_name" style="left:749px; top:9px; width:99px; height:17px; ">바코드번호 :</caption>
  1392. <caption id="caption11" class="search_name" style="left:339px; top:9px; width:97px; height:17px; ">접수구분 :</caption>
  1393. <input id="ipt_bcno" ref="/root/hidden/spcacpt/bcno" class="input_button" navindex="4" imemode="disabled" inputtype="button" _chartype="upper" style="left:854px; top:8px; width:135px; height:19px; ">
  1394. <script type="javascript" ev:event="onbuttonclick">
  1395. <![CDATA[
  1396. // 바코드번호에 버튼 눌렀을때
  1397. //fSetSpcAcpt();
  1398. //fSetBCNO();
  1399. fsetBCNOEnter();
  1400. ]]>
  1401. </script>
  1402. <script type="javascript" ev:event="onkeypress">
  1403. <![CDATA[
  1404. //fKeyEventacpt();
  1405. fKeyEvent();
  1406. ]]>
  1407. </script>
  1408. </input>
  1409. <select1 id="rdo_acptflag" ref="/root/hidden/spcacpt/refflag" class="radio_search" navindex="2" appearance="full" cols="3" overflow="visible" style="left:439px; top:10px; width:125px; height:13px; ">
  1410. <choices>
  1411. <item>
  1412. <label>가접수</label>
  1413. <value>1</value>
  1414. </item>
  1415. <item>
  1416. <label>접 수</label>
  1417. <value>2</value>
  1418. </item>
  1419. </choices>
  1420. </select1>
  1421. <select id="chk_spcchoi" ref="/root/hidden/spcacpt/spcchoiyn" class="checkbox_search" navindex="3" overflow="visible" appearance="full" style="left:574px; top:10px; width:100px; height:20px; border-style:none; ">
  1422. <choices>
  1423. <item>
  1424. <label>검체선택여부</label>
  1425. <value>1</value>
  1426. </item>
  1427. </choices>
  1428. <script type="javascript" ev:event="xforms-value-changed">
  1429. <![CDATA[
  1430. if(model.getValue("/root/hidden/spcacpt/spcchoiyn") == "1"){
  1431. btn_batacpt.visible = "true";
  1432. }else{
  1433. btn_batacpt.visible = "false";
  1434. }
  1435. model.removeNodeset("/root/main/spclist");
  1436. model.removeNodeset("/root/main/detllistref");
  1437. //grd_spclist.rebuild();
  1438. //grd_spclist.removeItem();
  1439. model.refresh();
  1440. ]]>
  1441. </script>
  1442. </select>
  1443. <select id="checkbox2" ref="/root/hidden/spcacpt/resetyn" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" style="left:995px; top:10px; width:110px; height:20px; border-style:none; ">
  1444. <choices>
  1445. <item>
  1446. <label>화면초기화여부</label>
  1447. <value>1</value>
  1448. </item>
  1449. </choices>
  1450. </select>
  1451. <select1 id="cmd_TMdlCd" ref="/root/hidden/spcacpt/testmdlcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:216px; top:8px; width:100px; height:19px; text-align:left; ">
  1452. <choices>
  1453. <itemset nodeset="/root/init/LB0106">
  1454. <label ref="nm"/>
  1455. <value ref="cd"/>
  1456. </itemset>
  1457. </choices>
  1458. </select1>
  1459. <select1 id="cmb_TLrgCd" ref="/root/hidden/spcacpt/testlrgcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:110px; top:8px; width:100px; height:19px; text-align:left; ">
  1460. <choices>
  1461. <itemset nodeset="/root/init/LB0111">
  1462. <label ref="nm"/>
  1463. <value ref="cd"/>
  1464. </itemset>
  1465. </choices>
  1466. <script type="javascript" ev:event="xforms-value-changed">
  1467. <![CDATA[
  1468. fSetTLrgCd();
  1469. ]]>
  1470. </script>
  1471. </select1>
  1472. <select id="checkbox3" ref="/root/hidden/spcacpt/bt" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" style="left:1110px; top:10px; width:75px; height:15px; border-style:none; ">
  1473. <choices>
  1474. <item>
  1475. <label>아침채혈</label>
  1476. <value>1</value>
  1477. </item>
  1478. </choices>
  1479. </select>
  1480. </group>
  1481. <select id="chk_label" ref="/root/hidden/labelyn" visibility="hidden" overflow="visible" appearance="full" style="left:9px; top:694px; width:100px; height:20px; ">
  1482. <choices>
  1483. <item>
  1484. <label>라벨발행</label>
  1485. <value>Y</value>
  1486. </item>
  1487. </choices>
  1488. </select>
  1489. <select id="chk_acptbcd" ref="/root/hidden/acptbcdyn" visibility="hidden" overflow="visible" appearance="full" style="left:144px; top:694px; width:100px; height:20px; ">
  1490. <choices>
  1491. <item>
  1492. <label>접수 바코드</label>
  1493. <value>Y</value>
  1494. </item>
  1495. </choices>
  1496. </select>
  1497. <datagrid id="grd_detllist" nodeset="/root/main/detllistref" caption="검사코드^검사명^응급^작업번호^원내전화" colsep="^" colwidth="80, 160, 40, 60,60" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:760px; top:70px; width:429px; height:527px; ">
  1498. <col ref="tclscd"/>
  1499. <col ref="tclsscrnnm" style="text-align:left; "/>
  1500. <col ref="erprcpflag"/>
  1501. <col ref="workno"/>
  1502. <col ref="phone"/>
  1503. <script type="javascript" ev:event="onmousedown">
  1504. <![CDATA[
  1505. fdetllistClick(grd_detllist.mouseRow);
  1506. ]]>
  1507. </script>
  1508. <script type="javascript" ev:event="onmouseout">
  1509. <![CDATA[
  1510. window.setPopupMenu(false);
  1511. ]]>
  1512. </script>
  1513. </datagrid>
  1514. <button id="btn_spcf" class="btn2_letter6" style="left:663px; top:44px; width:86px; height:19px; ">
  1515. <caption>특이사항저장</caption>
  1516. <script type="javascript" ev:event="DOMActivate">
  1517. <![CDATA[
  1518. //fSetSpcffact();
  1519. ]]>
  1520. </script>
  1521. </button>
  1522. <textarea id="tar_rem" ref="/root/main/detllistref/prcpremfact" style="left:865px; top:630px; width:324px; height:80px; text-align:left; "/>
  1523. <output id="opt_cnt" ref="/root/main/acptcntlist/acptcnt" visibility="hidden" style="left:552px; top:45px; width:95px; height:19px; font-weight:bold; text-align:center; "/>
  1524. <caption id="cap_cnt" class="tit_2" visibility="hidden" style="left:225px; top:50px; width:140px; height:13px; ">접수검체 / 바코드 :</caption>
  1525. <select id="checkbox1" ref="/root/hidden/barcdcheck" overflow="visible" appearance="full" style="left:1095px; top:45px; width:93px; height:16px; border-style:none; ">
  1526. <choices>
  1527. <item>
  1528. <label>바코드재출력</label>
  1529. <value>1</value>
  1530. </item>
  1531. </choices>
  1532. </select>
  1533. <select1 id="cmb_execdept" ref="/root/hidden/spcacpt/testmdlcd" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" itemcount="20" style="left:870px; top:43px; width:141px; height:19px; font-family:새굴림; text-align:left; ">
  1534. <choices>
  1535. <itemset nodeset="/root/init/LB0106">
  1536. <label ref="nm"/>
  1537. <value ref="cd"/>
  1538. </itemset>
  1539. </choices>
  1540. </select1>
  1541. <input id="input1" ref="/root/hidden/acptcntdd" class="input_search" navindex="10" inputtype="date" format="yyyy-mm-dd" style="left:458px; top:45px; width:90px; height:19px; ">
  1542. <script type="javascript" ev:event="xforms-value-changed">
  1543. <![CDATA[
  1544. fGetNAcptCnt();
  1545. ]]>
  1546. </script>
  1547. </input>
  1548. <output id="opt_cnt2" ref="/root/main/acptcntlist/todayacptcnt" visibility="hidden" style="left:359px; top:45px; width:95px; height:19px; font-weight:bold; text-align:center; "/>
  1549. </case>
  1550. <case id="case2">
  1551. <line id="line2" class="line_1" style="x1:5px; y1:100px; x2:1190px; y2:100px; "/>
  1552. <caption id="caption9" class="tit_2" style="left:6px; top:85px; width:80px; height:13px; ">검체목록</caption>
  1553. <group id="group5" style="left:5px; top:5px; width:1185px; height:65px; ">
  1554. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1184px; height:65px; "/>
  1555. <line id="line6" class="line_4" style="x1:1113px; y1:7px; x2:1113px; y2:29px; "/>
  1556. <caption id="caption13" class="search_name" style="left:845px; top:9px; width:87px; height:17px; ">검색구분 :</caption>
  1557. <caption id="caption14" class="search_name" style="left:558px; top:9px; width:86px; height:17px; ">조회일자 :</caption>
  1558. <caption id="caption16" class="search_no_b" style="left:739px; top:9px; width:15px; height:17px; text-align:center; ">~</caption>
  1559. <caption id="caption17" class="search_name" style="left:299px; top:9px; width:90px; height:17px; ">조회기준 :</caption>
  1560. <caption id="caption2" class="search_name" style="left:5px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
  1561. <input id="ipt_text" ref="/root/hidden/spcref/refcnts" class="input_search" navindex="12" style="left:1017px; top:8px; width:90px; height:19px; ">
  1562. <script type="javascript" ev:event="onkeypress">
  1563. <![CDATA[
  1564. //fKeyEventref();
  1565. fKeyEvent();
  1566. ]]>
  1567. </script>
  1568. </input>
  1569. <button id="btn_ref" class="btn1_letter2" navindex="13" style="left:1123px; top:7px; width:56px; height:22px; ">
  1570. <caption>조회</caption>
  1571. <script type="javascript" ev:event="DOMActivate">
  1572. <![CDATA[
  1573. // 검체조회 tab 조회 버튼 클릭시
  1574. fGetSpcListref();
  1575. ]]>
  1576. </script>
  1577. </button>
  1578. <select1 id="cmb_refgbn" ref="/root/hidden/spcref/refflag" class="combo_search" navindex="11" appearance="minimal" style="left:934px; top:8px; width:80px; height:19px; ">
  1579. <choices>
  1580. <item>
  1581. <label>환자명</label>
  1582. <value>3</value>
  1583. </item>
  1584. <item>
  1585. <label>환자번호</label>
  1586. <value>1</value>
  1587. </item>
  1588. <item>
  1589. <label>바코드번호</label>
  1590. <value>2</value>
  1591. </item>
  1592. </choices>
  1593. </select1>
  1594. <select1 id="rdo_acptdd" ref="/root/hidden/spcref/refbase" class="radio_search" navindex="8" appearance="full" cols="2" overflow="visible" style="left:392px; top:11px; width:165px; height:13px; ">
  1595. <choices>
  1596. <item>
  1597. <label>검체접수일</label>
  1598. <value>1</value>
  1599. </item>
  1600. <item>
  1601. <label>검체채취일</label>
  1602. <value>2</value>
  1603. </item>
  1604. </choices>
  1605. </select1>
  1606. <input id="ipt_reffromdd" ref="/root/hidden/spcref/reffromdd" class="input_search" navindex="9" inputtype="date" format="yyyy-mm-dd" style="left:649px; top:8px; width:90px; height:19px; ">
  1607. <script type="javascript" ev:event="xforms-value-changed">
  1608. <![CDATA[
  1609. //fSetRefFromdd();
  1610. fSetThreeDay();
  1611. ]]>
  1612. </script>
  1613. </input>
  1614. <input id="ipt_reftodd" ref="/root/hidden/spcref/reftodd" class="input_search" navindex="10" inputtype="date" format="yyyy-mm-dd" style="left:752px; top:8px; width:90px; height:19px; "/>
  1615. <select id="checkbox4" ref="/root/hidden/spcref/isbcoll" overflow="visible" appearance="full" style="left:95px; top:10px; width:45px; height:20px; border-style:none; ">
  1616. <choices>
  1617. <item>
  1618. <label>채혈</label>
  1619. <value>1','2','3</value>
  1620. </item>
  1621. </choices>
  1622. </select>
  1623. <select id="checkbox5" ref="/root/hidden/spcref/isacp" overflow="visible" appearance="full" style="left:145px; top:10px; width:45px; height:20px; border-style:none; ">
  1624. <choices>
  1625. <item>
  1626. <label>접수</label>
  1627. <value>4-</value>
  1628. </item>
  1629. </choices>
  1630. </select>
  1631. <select id="checkbox6" ref="/root/hidden/spcref/isrslt" overflow="visible" appearance="full" style="left:195px; top:10px; width:45px; height:20px; border-style:none; ">
  1632. <choices>
  1633. <item>
  1634. <label>보고</label>
  1635. <value>41','42','44','45</value>
  1636. </item>
  1637. </choices>
  1638. </select>
  1639. <select id="checkbox7" ref="/root/hidden/spcref/iscancle" overflow="visible" appearance="full" style="left:245px; top:10px; width:45px; height:20px; border-style:none; ">
  1640. <choices>
  1641. <item>
  1642. <label>취소</label>
  1643. <value>0</value>
  1644. </item>
  1645. </choices>
  1646. </select>
  1647. <select id="checkbox8" ref="/root/hidden/spcref/rsltflag" overflow="visible" appearance="full" style="left:1040px; top:41px; width:75px; height:20px; border-style:none; ">
  1648. <choices>
  1649. <item>
  1650. <label>최종결과</label>
  1651. <value>1</value>
  1652. </item>
  1653. </choices>
  1654. </select>
  1655. <caption id="caption12" class="search_name" style="left:5px; top:39px; width:98px; height:17px; ">입/외 구분 :</caption>
  1656. <select1 id="radio1" ref="/root/hidden/spcref/genrflag" class="radio_search" navindex="8" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:108px; top:40px; width:157px; height:16px; ">
  1657. <choices>
  1658. <item>
  1659. <label>전체</label>
  1660. <value>00</value>
  1661. </item>
  1662. <item>
  1663. <label>입원</label>
  1664. <value>1</value>
  1665. </item>
  1666. <item>
  1667. <label>외래</label>
  1668. <value>2</value>
  1669. </item>
  1670. </choices>
  1671. </select1>
  1672. </group>
  1673. <datagrid id="grd_spcreflist" nodeset="/root/main/spclistref" caption="^등록번호^바코드번호^환자명^주민번호^연령^성별^진료과^주치의^병동/병실^검사명^검체명^검체상태^결과값^등록일자^처방일자^채혈일자^접수일자^작업번호^Lab 부여일자^결과일시^재검^Urin vol.^참고치^단위^검사자^취소정보" colsep="^" colwidth="21, 70, 70, 65, 100, 30, 30, 60, 60, 75, 150, 80, 65, 70, 104, 80, 104, 104, 104, 104, 100, 100, 70, 120, 60, 70, 280" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshow" frozencols="14" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25px" rowsep="|" tooltip="true" style="left:5px; top:105px; width:1185px; height:603px; text-align:center; ">
  1674. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  1675. <col ref="pid" type="input" style="text-align:center; "/>
  1676. <col ref="bcno" type="input" style="text-align:left; "/>
  1677. <col ref="patnm" style="text-align:center; "/>
  1678. <col ref="rrgstno" style="text-align:center; "/>
  1679. <col ref="patage" style="text-align:center; "/>
  1680. <col ref="patsex" style="text-align:center; "/>
  1681. <col ref="orddeptnm" style="text-align:left; "/>
  1682. <col ref="orddrnm" style="text-align:left; "/>
  1683. <col ref="wardroom" style="text-align:left; "/>
  1684. <col ref="tclsnm" style="text-align:left; "/>
  1685. <col ref="spcnm" style="text-align:left; "/>
  1686. <col ref="bcnostat" style="text-align:left; "/>
  1687. <col ref="reptrslt" style="text-align:left; "/>
  1688. <col ref="rgstdt" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
  1689. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:left; "/>
  1690. <col ref="bcolldt" style="text-align:left; "/>
  1691. <col ref="workdd" style="text-align:left; "/>
  1692. <col ref="workno"/>
  1693. <col ref="nmedworkdt" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
  1694. <col ref="lastreptdt" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
  1695. <col ref="retestyn" visibility="hidden"/>
  1696. <col ref="urinextrvol" style="text-align:center; "/>
  1697. <col ref="reflh" style="text-align:center; "/>
  1698. <col ref="rvalchar" style="text-align:center; "/>
  1699. <col ref="reptnm" style="text-align:center; "/>
  1700. <col ref="spccnclinfo" style="text-align:left; "/>
  1701. <script type="javascript" ev:event="onmouseout">
  1702. <![CDATA[
  1703. window.setPopupMenu(false);
  1704. ]]>
  1705. </script>
  1706. <script type="javascript" ev:event="onmousedown">
  1707. <![CDATA[
  1708. fpopupmenu();
  1709. ]]>
  1710. </script>
  1711. <script type="javascript" ev:event="onclick">
  1712. <![CDATA[
  1713. fUpPatinfo();
  1714. ]]>
  1715. </script>
  1716. </datagrid>
  1717. <!--<object id="CommAX" visibility="hidden" clsid="{35cc9cfa-e6f8-4b22-b6d2-fe7cd108f943}" style="left:145px; top:200px; width:45px; height:45px; "/>-->
  1718. <button id="btn_excel" class="btn2_letter4" style="left:1126px; top:79px; width:64px; height:19px; ">
  1719. <caption>엑셀저장</caption>
  1720. <script type="javascript" ev:event="DOMActivate">
  1721. <![CDATA[
  1722. //fExeExcel(grd_worklistdetl);
  1723. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  1724. if (fileName != ""){
  1725. grd_spcreflist.saveExcel(fileName);
  1726. }
  1727. ]]>
  1728. </script>
  1729. </button>
  1730. <caption id="caption5" class="search_name" visibility="hidden" style="left:220px; top:79px; width:86px; height:17px; ">시행부서 :</caption>
  1731. <select1 id="combo1" ref="/root/hidden/spcref/execdept" class="combo_search" navindex="7" visibility="hidden" appearance="minimal" itemcount="20" style="left:308px; top:78px; width:117px; height:19px; ">
  1732. <choices>
  1733. <itemset nodeset="/root/init/LB0106">
  1734. <label ref="nm"/>
  1735. <value ref="cd"/>
  1736. </itemset>
  1737. </choices>
  1738. </select1>
  1739. <select id="checkbox9" ref="/root/hidden/ref/viewgbn" overflow="visible" appearance="full" style="left:100px; top:85px; width:100px; height:15px; border-style:none; ">
  1740. <choices>
  1741. <item>
  1742. <label>간략보기</label>
  1743. <value>1</value>
  1744. </item>
  1745. </choices>
  1746. <script type="javascript" ev:event="xforms-value-changed">
  1747. <![CDATA[
  1748. fViewList();
  1749. ]]>
  1750. </script>
  1751. </select>
  1752. </case>
  1753. </switch>
  1754. <button id="btn_swacpt" class="btn_sw" group="tab" selected="true" style="left:0px; top:5px; width:70px; height:22px; ">
  1755. <caption>검체접수</caption>
  1756. <!-- 검체접수 화면 -->
  1757. <toggle case="case1" ev:event="DOMActivate"/>
  1758. <script type="javascript" ev:event="DOMActivate">
  1759. <![CDATA[
  1760. fbuttonvisible("A");
  1761. ]]>
  1762. </script>
  1763. </button>
  1764. <button id="btn_swref" class="btn_sw" group="tab" style="left:70px; top:5px; width:70px; height:22px; ">
  1765. <caption>검체조회</caption>
  1766. <toggle case="case2" ev:event="DOMActivate"/>
  1767. <script type="javascript" ev:event="DOMActivate">
  1768. <![CDATA[
  1769. fbuttonvisible("B");
  1770. ]]>
  1771. </script>
  1772. </button>
  1773. </group>
  1774. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1194px; height:27px; ">
  1775. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  1776. <group id="group7" style="left:827px; top:0px; width:367px; height:25px; ">
  1777. <button id="btn_init" class="btn4_letter3" style="left:298px; top:3px; width:68px; height:22px; ">
  1778. <caption>초기화</caption>
  1779. <script type="javascript" ev:event="DOMActivate">
  1780. <![CDATA[
  1781. //model.reset();
  1782. model.removeNodeset("/root/main/spclistref");
  1783. grd_spcreflist.rebuild();
  1784. ]]>
  1785. </script>
  1786. </button>
  1787. <button id="btn_acptcancel" class="btn4_letter4" navindex="14" style="left:109px; top:3px; width:80px; height:22px; ">
  1788. <caption>접수취소</caption>
  1789. <script type="javascript" ev:event="DOMActivate">
  1790. <![CDATA[
  1791. //채혈접수취소등록
  1792. fSetAcptCncl();
  1793. ]]>
  1794. </script>
  1795. </button>
  1796. <button id="btn_spclist" class="btn4_letter6" navindex="15" visibility="hidden" style="left:5px; top:3px; width:104px; height:22px; ">
  1797. <caption>검체목록출력</caption>
  1798. <script type="javascript" ev:event="DOMActivate">
  1799. <![CDATA[
  1800. fExePrint();
  1801. ]]>
  1802. </script>
  1803. </button>
  1804. <button id="btn_rebarcd" class="btn4_letter6" navindex="16" style="left:192px; top:3px; width:104px; height:22px; ">
  1805. <caption>바코드재출력</caption>
  1806. <script type="javascript" ev:event="DOMActivate">
  1807. <![CDATA[
  1808. fExeBarcdRePrnt();
  1809. ]]>
  1810. </script>
  1811. </button>
  1812. </group>
  1813. <group id="group6" style="left:1039px; top:0px; width:155px; height:25px; ">
  1814. <button id="btn_batacpt" class="btn4_letter4" navindex="6" visibility="hidden" style="left:3px; top:3px; width:80px; height:22px; ">
  1815. <caption>일괄접수</caption>
  1816. <script type="javascript" ev:event="DOMActivate">
  1817. <![CDATA[
  1818. fSetBatAcpt();
  1819. ]]>
  1820. </script>
  1821. </button>
  1822. <button id="btn_reset" class="btn4_letter3" navindex="5" style="left:86px; top:3px; width:68px; height:22px; ">
  1823. <caption>초기화</caption>
  1824. <script type="javascript" ev:event="DOMActivate">
  1825. <![CDATA[
  1826. //model.reset();
  1827. fSetInit();
  1828. ]]>
  1829. </script>
  1830. </button>
  1831. </group>
  1832. <button id="btn_prnt" class="btn3_letter5" navindex="18" style="left:0px; top:3px; width:92px; height:22px; ">
  1833. <caption>프린터설정</caption>
  1834. <script type="javascript" ev:event="DOMActivate">
  1835. <![CDATA[
  1836. //fSetPrntSetting();
  1837. fSetPrint();
  1838. ]]>
  1839. </script>
  1840. </button>
  1841. <button id="btn_badspc" class="btn3_letter7" navindex="17" style="left:93px; top:3px; width:116px; height:22px; ">
  1842. <caption>부적합검체등록</caption>
  1843. <script type="javascript" ev:event="DOMActivate">
  1844. <![CDATA[
  1845. fSetBadSpc();
  1846. ]]>
  1847. </script>
  1848. </button>
  1849. </group>
  1850. <output id="output5" ref="/root/main/detllistref/scrn" class="output_fix" visibility="hidden" style="left:130px; top:112px; width:88px; height:19px; "/>
  1851. <caption id="caption4" class="cell_1" visibility="hidden" style="left:86px; top:112px; width:44px; height:19px; ">동의서</caption>
  1852. <script type="javascript" ev:event="onmenu">
  1853. <![CDATA[
  1854. var popupParam = event.description;
  1855. fOnmenu(popupParam);
  1856. ]]>
  1857. </script>
  1858. </xhtml:body>
  1859. </xhtml:html>