SMAZZ00401_영상의학과무인배정관리.xrw 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../ast/commonweb/css/astcommon.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>영상의학과 일반촬영 무인배정기</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <caption>
  11. <namecaption>
  12. <rsltnm/>
  13. <rsltpid/>
  14. </namecaption>
  15. </caption>
  16. <order1>
  17. <orderlist1>
  18. <chk/>
  19. <orddepthngnm/>
  20. <orddrnm/>
  21. <prcpdd/>
  22. <orddeptcd/>
  23. <orddrid/>
  24. <instcd/>
  25. <prcpgenrflag/>
  26. <pid/>
  27. </orderlist1>
  28. <ordermam>
  29. <mommoyn/>
  30. </ordermam>
  31. </order1>
  32. <examroomcaption>
  33. <examroomlist>
  34. <examroomnm/>
  35. </examroomlist>
  36. </examroomcaption>
  37. <orderlist2>
  38. <hngnm/>
  39. <excuroomnm/>
  40. </orderlist2>
  41. </main>
  42. <send>
  43. <case1>
  44. <reqdata>
  45. <inputnum/>
  46. </reqdata>
  47. </case1>
  48. <autoreq>
  49. <data/>
  50. </autoreq>
  51. </send>
  52. <init>
  53. <message1/>
  54. <message2/>
  55. </init>
  56. <init1>
  57. <baseinfo>
  58. <initnumeric/>
  59. <initprtyn/>
  60. </baseinfo>
  61. </init1>
  62. <hidden>
  63. <ordercnt/>
  64. <erprintyn/>
  65. </hidden>
  66. <temp>
  67. <announce>안 내</announce>
  68. <logoimg/>
  69. </temp>
  70. <chktime>
  71. <timevalue/>
  72. </chktime>
  73. <images>
  74. <logoimg/>
  75. </images>
  76. </root>
  77. </instance>
  78. <script type="javascript" ev:event="xforms-ready">
  79. <![CDATA[
  80. //var viewerObj = getViewer("SMAZZ00401");
  81. //viewerObj.window.javascript.fGetAbsoluteCoordinate("1", "0", "0");
  82. //setWindowSize();
  83. //body.attribute("pagewidth") = "1200";
  84. //body.attribute("pageheight") = "990";
  85. //window.setSize("1280", "995");
  86. //getAbsoluteLocation(1,0,0);
  87. window.maximize();
  88. //getRelativeCoordinate(0,0);
  89. astGetComboList( new Array("A0009","A0011"), new Array("/root/init1/baseinfo/initnumeric","/root/init1/baseinfo/initprtyn") );
  90. submit("TRAAA00001", false);
  91. model.removeNodeset("/root/init1/baseinfo/initnumeric/A0009[" + 1 + "]");
  92. model.removeNodeset("/root/init1/baseinfo/initprtyn/A0011[" + 1 + "]");
  93. if (model.getValue("/root/init1/baseinfo/initnumeric/A0009[" + 1 + "]/cdid") == "Y"){
  94. inpt_case1txtarea.attribute("format") = "";
  95. }
  96. model.makeValue("/root/images/logoimg", getImageURL("biglogo"+getUserInfo("dutplceinstcd"), "jpg"));
  97. btn_case1.selected = true;
  98. model.toggle("case1");
  99. model.refresh();
  100. model.setfocus( "inpt_case1txtarea" );
  101. ]]>
  102. </script>
  103. <submission id="TRAZZ00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/case1/reqdata" resultref="/root/main/caption"/>
  104. <submission id="TRAZZ00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/case1/reqdata" resultref="/root/main/order1"/>
  105. <submission id="TXAZZ00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/autoreq" replace="instance" resultref="/root/main/examroomcaption"/>
  106. <submission id="TRAAA00001"/>
  107. <submission id="TRAZZ00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/case1/reqdata" resultref="/root/main/orderlist2"/>
  108. </model>
  109. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  110. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  111. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  112. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  114. <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
  115. <script type="javascript">
  116. <![CDATA[
  117. function fGetinitDisplay() {
  118. btn_cnfmN.dispatch("DOMActivate");
  119. }
  120. var min = 0;
  121. var sec = 0;
  122. var millsec = 0;
  123. var clockTimer;
  124. function clock()
  125. {
  126. millsec++;
  127. if( millsec >= 10 )
  128. {
  129. sec++;
  130. millsec = 0;
  131. }
  132. if( sec >= 60 )
  133. {
  134. min ++;
  135. sec = 0;
  136. }
  137. model.setValue("/root/chktime/timevalue", sec);
  138. //model.setValue("/root/time/min", min);
  139. //model.setValue("/root/time/millsec", millsec);
  140. if ( parseInt(model.getValue("/root/chktime/timevalue")) > 4 ) {
  141. if (clockTimer == null || clockTimer == ""){
  142. }else{
  143. window.clearInterval(clockTimer);
  144. }
  145. sec = 0;
  146. clockTimer = null;
  147. btn_cnfmN.dispatch("DOMActivate");
  148. return;
  149. }
  150. model.refresh();
  151. }
  152. function fClockCheck() {
  153. model.setValue("/root/chktime/timevalue", "0");
  154. model.refresh();
  155. clockTimer = window.setInterval("clock()", 100);
  156. }
  157. ]]>
  158. </script>
  159. </xhtml:head>
  160. <xhtml:body class="datagrid2" guideline="1,1253;" style="width:1280px; height:990px; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  161. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:1250px; height:950px; ">
  162. <switch id="switch1" class="sw_box" style="left:0px; top:0px; width:1235px; height:925px; ">
  163. <case id="case1" selected="true">
  164. <caption id="caption1" style="left:605px; top:50px; width:565px; height:115px; font-family:굴림; font-size:60pt; font-weight:bold; color:#0000ff; text-align:center; ">무인자동배정기</caption>
  165. <group id="group1" style="left:45px; top:230px; width:525px; height:630px; ">
  166. <caption id="caption19" style="left:5px; top:35px; width:515px; height:585px; background-image:../../../ast/commonweb/images/avi_background_new.gif; background-stretch:stretch; "/>
  167. <caption id="caption3" visibility="visible" style="left:80px; top:150px; width:345px; height:75px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; ">진료카드</caption>
  168. <caption id="caption4" visibility="visible" style="left:80px; top:270px; width:345px; height:75px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; ">사용방법</caption>
  169. <caption id="caption5" visibility="visible" style="left:80px; top:395px; width:345px; height:75px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; ">설명화면</caption>
  170. </group>
  171. <group id="group2" style="left:635px; top:230px; width:525px; height:625px; ">
  172. <button id="btn_1" style="left:4px; top:140px; width:160px; height:110px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  173. <caption>1</caption>
  174. <script type="javascript" ev:event="DOMActivate">
  175. <![CDATA[
  176. if ( model.getValue("/root/send/case1/reqdata/inputnum") == "재입력해주세요" ) {
  177. model.setValue("/root/send/case1/reqdata/inputnum", "");
  178. }
  179. model.setValue("/root/send/case1/reqdata/inputnum" , model.getValue("/root/send/case1/reqdata/inputnum")+"1");
  180. model.refresh();
  181. model.setfocus( "inpt_case1txtarea" );
  182. ]]>
  183. </script>
  184. <script type="javascript" ev:event="ondblclick">
  185. <![CDATA[
  186. model.setValue("/root/send/case1/reqdata/inputnum" , model.getValue("/root/send/case1/reqdata/inputnum")+"1");
  187. model.refresh();
  188. model.setfocus( "inpt_case1txtarea" );
  189. ]]>
  190. </script>
  191. </button>
  192. <button id="btn_4" style="left:4px; top:262px; width:160px; height:110px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  193. <caption>4</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. if ( model.getValue("/root/send/case1/reqdata/inputnum") == "재입력해주세요" ) {
  197. model.setValue("/root/send/case1/reqdata/inputnum", "");
  198. }
  199. model.setValue("/root/send/case1/reqdata/inputnum" , model.getValue("/root/send/case1/reqdata/inputnum")+"4");
  200. model.refresh();
  201. model.setfocus( "inpt_case1txtarea" );
  202. ]]>
  203. </script>
  204. <script type="javascript" ev:event="ondblclick">
  205. <![CDATA[
  206. model.setValue("/root/send/case1/reqdata/inputnum" , model.getValue("/root/send/case1/reqdata/inputnum")+"4");
  207. model.refresh();
  208. model.setfocus( "inpt_case1txtarea" );
  209. ]]>
  210. </script>
  211. </button>
  212. <button id="btn_7" style="left:5px; top:384px; width:160px; height:110px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  213. <caption>7</caption>
  214. <script type="javascript" ev:event="DOMActivate">
  215. <![CDATA[
  216. if ( model.getValue("/root/send/case1/reqdata/inputnum") == "재입력해주세요" ) {
  217. model.setValue("/root/send/case1/reqdata/inputnum", "");
  218. }
  219. model.setValue("/root/send/case1/reqdata/inputnum" , model.getValue("/root/send/case1/reqdata/inputnum")+"7");
  220. model.refresh();
  221. model.setfocus( "inpt_case1txtarea" );
  222. ]]>
  223. </script>
  224. <script type="javascript" ev:event="ondblclick">
  225. <![CDATA[
  226. model.setValue("/root/send/case1/reqdata/inputnum" , model.getValue("/root/send/case1/reqdata/inputnum")+"7");
  227. model.refresh();
  228. model.setfocus( "inpt_case1txtarea" );
  229. ]]>
  230. </script>
  231. </button>
  232. <button id="button4" style="left:5px; top:506px; width:160px; height:110px; font-family:굴림; font-size:40pt; font-weight:bold; color:#ff6600; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_clear_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  233. <caption>정정</caption>
  234. <script type="javascript" ev:event="DOMActivate">
  235. <![CDATA[
  236. var Tstring = model.getValue("/root/send/case1/reqdata/inputnum");
  237. model.setValue("/root/send/case1/reqdata/inputnum" , Tstring.substr(0, Tstring.length -1) );
  238. model.refresh();
  239. model.setfocus( "inpt_case1txtarea" );
  240. ]]>
  241. </script>
  242. </button>
  243. <button id="btn_2" style="left:181px; top:140px; width:160px; height:110px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  244. <caption>2</caption>
  245. <script type="javascript" ev:event="DOMActivate">
  246. <![CDATA[
  247. if ( model.getValue("/root/send/case1/reqdata/inputnum") == "재입력해주세요" ) {
  248. model.setValue("/root/send/case1/reqdata/inputnum", "");
  249. }
  250. model.setValue("/root/send/case1/reqdata/inputnum" , model.getValue("/root/send/case1/reqdata/inputnum")+"2");
  251. model.refresh();
  252. model.setfocus( "inpt_case1txtarea" );
  253. ]]>
  254. </script>
  255. <script type="javascript" ev:event="ondblclick">
  256. <![CDATA[
  257. model.setValue("/root/send/case1/reqdata/inputnum" , model.getValue("/root/send/case1/reqdata/inputnum")+"2");
  258. model.refresh();
  259. model.setfocus( "inpt_case1txtarea" );
  260. ]]>
  261. </script>
  262. </button>
  263. <button id="btn_5" style="left:181px; top:262px; width:160px; height:110px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  264. <caption>5</caption>
  265. <script type="javascript" ev:event="DOMActivate">
  266. <![CDATA[
  267. if ( model.getValue("/root/send/case1/reqdata/inputnum") == "재입력해주세요" ) {
  268. model.setValue("/root/send/case1/reqdata/inputnum", "");
  269. }
  270. model.setValue("/root/send/case1/reqdata/inputnum" , model.getValue("/root/send/case1/reqdata/inputnum")+"5");
  271. model.refresh();
  272. model.setfocus( "inpt_case1txtarea" );
  273. ]]>
  274. </script>
  275. <script type="javascript" ev:event="ondblclick">
  276. <![CDATA[
  277. model.setValue("/root/send/case1/reqdata/inputnum" , model.getValue("/root/send/case1/reqdata/inputnum")+"5");
  278. model.refresh();
  279. model.setfocus( "inpt_case1txtarea" );
  280. ]]>
  281. </script>
  282. </button>
  283. <button id="btn_8" style="left:182px; top:384px; width:160px; height:110px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  284. <caption>8</caption>
  285. <script type="javascript" ev:event="DOMActivate">
  286. <![CDATA[
  287. if ( model.getValue("/root/send/case1/reqdata/inputnum") == "재입력해주세요" ) {
  288. model.setValue("/root/send/case1/reqdata/inputnum", "");
  289. }
  290. model.setValue("/root/send/case1/reqdata/inputnum" , model.getValue("/root/send/case1/reqdata/inputnum")+"8");
  291. model.refresh();
  292. model.setfocus( "inpt_case1txtarea" );
  293. ]]>
  294. </script>
  295. <script type="javascript" ev:event="ondblclick">
  296. <![CDATA[
  297. model.setValue("/root/send/case1/reqdata/inputnum" , model.getValue("/root/send/case1/reqdata/inputnum")+"8");
  298. model.refresh();
  299. model.setfocus( "inpt_case1txtarea" );
  300. ]]>
  301. </script>
  302. </button>
  303. <button id="button10" style="left:182px; top:506px; width:160px; height:110px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  304. <caption>0</caption>
  305. <script type="javascript" ev:event="DOMActivate">
  306. <![CDATA[
  307. if ( model.getValue("/root/send/case1/reqdata/inputnum") == "재입력해주세요" ) {
  308. model.setValue("/root/send/case1/reqdata/inputnum", "");
  309. }
  310. model.setValue("/root/send/case1/reqdata/inputnum" , model.getValue("/root/send/case1/reqdata/inputnum")+"0");
  311. model.refresh();
  312. model.setfocus( "inpt_case1txtarea" );
  313. ]]>
  314. </script>
  315. <script type="javascript" ev:event="ondblclick">
  316. <![CDATA[
  317. model.setValue("/root/send/case1/reqdata/inputnum" , model.getValue("/root/send/case1/reqdata/inputnum")+"0");
  318. model.refresh();
  319. model.setfocus( "inpt_case1txtarea" );
  320. ]]>
  321. </script>
  322. </button>
  323. <button id="btn_3" style="left:358px; top:140px; width:160px; height:110px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  324. <caption>3</caption>
  325. <script type="javascript" ev:event="DOMActivate">
  326. <![CDATA[
  327. if ( model.getValue("/root/send/case1/reqdata/inputnum") == "재입력해주세요" ) {
  328. model.setValue("/root/send/case1/reqdata/inputnum", "");
  329. }
  330. model.setValue("/root/send/case1/reqdata/inputnum" , model.getValue("/root/send/case1/reqdata/inputnum")+"3");
  331. model.refresh();
  332. model.setfocus( "inpt_case1txtarea" );
  333. ]]>
  334. </script>
  335. <script type="javascript" ev:event="ondblclick">
  336. <![CDATA[
  337. model.setValue("/root/send/case1/reqdata/inputnum" , model.getValue("/root/send/case1/reqdata/inputnum")+"3");
  338. model.refresh();
  339. model.setfocus( "inpt_case1txtarea" );
  340. ]]>
  341. </script>
  342. </button>
  343. <button id="btn_6" style="left:358px; top:262px; width:160px; height:110px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  344. <caption>6</caption>
  345. <script type="javascript" ev:event="DOMActivate">
  346. <![CDATA[
  347. if ( model.getValue("/root/send/case1/reqdata/inputnum") == "재입력해주세요" ) {
  348. model.setValue("/root/send/case1/reqdata/inputnum", "");
  349. }
  350. model.setValue("/root/send/case1/reqdata/inputnum" , model.getValue("/root/send/case1/reqdata/inputnum")+"6");
  351. model.refresh();
  352. model.setfocus( "inpt_case1txtarea" );
  353. ]]>
  354. </script>
  355. <script type="javascript" ev:event="ondblclick">
  356. <![CDATA[
  357. model.setValue("/root/send/case1/reqdata/inputnum" , model.getValue("/root/send/case1/reqdata/inputnum")+"6");
  358. model.refresh();
  359. model.setfocus( "inpt_case1txtarea" );
  360. ]]>
  361. </script>
  362. </button>
  363. <button id="btn_9" style="left:359px; top:384px; width:160px; height:110px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  364. <caption>9</caption>
  365. <script type="javascript" ev:event="DOMActivate">
  366. <![CDATA[
  367. if ( model.getValue("/root/send/case1/reqdata/inputnum") == "재입력해주세요" ) {
  368. model.setValue("/root/send/case1/reqdata/inputnum", "");
  369. }
  370. model.setValue("/root/send/case1/reqdata/inputnum" , model.getValue("/root/send/case1/reqdata/inputnum")+"9");
  371. model.refresh();
  372. model.setfocus( "inpt_case1txtarea" );
  373. ]]>
  374. </script>
  375. <script type="javascript" ev:event="ondblclick">
  376. <![CDATA[
  377. model.setValue("/root/send/case1/reqdata/inputnum" , model.getValue("/root/send/case1/reqdata/inputnum")+"9");
  378. model.refresh();
  379. model.setfocus( "inpt_case1txtarea" );
  380. ]]>
  381. </script>
  382. </button>
  383. <button id="button14" style="left:359px; top:506px; width:160px; height:110px; font-family:굴림; font-size:40pt; font-weight:bold; color:#ff6600; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_clear_new.gif; background-stretch:stretch; background-position:center; border-color:#000099; border-width:4px; ">
  384. <caption>확인</caption>
  385. <script type="javascript" ev:event="DOMActivate">
  386. <![CDATA[
  387. var sname = model.getValue("/root/send/case1/reqdata/inputnum");
  388. model.setValue("/root/init/message1", "");
  389. model.setValue("/root/init/message2", "");
  390. model.setValue("/root/main/examroomcaption/examroomlist/examroomnm", "");
  391. model.makeValue("/root/main/order1/ordermam/mommoyn", "");
  392. //if ( model.getValue("/root/send/case1/reqdata/inputnum") == "재입력해주세요" ) {
  393. if (sname.substr(0, 1) == "재"){
  394. var rtn = messageBox("[등록번호] 또는 [주민번호]의 형식이 맞지 않습니다.", "E999", "");
  395. model.setValue("/root/send/case1/reqdata/inputnum", "");
  396. model.refresh();
  397. model.setfocus( "inpt_case1txtarea" );
  398. if (clockTimer == null || clockTimer == ""){
  399. }else{
  400. window.clearInterval(clockTimer);
  401. }
  402. return;
  403. }
  404. if ( model.getValue("/root/send/case1/reqdata/inputnum") == "" ) {
  405. var rtn = messageBox("[등록번호] 또는 [진료카드]를", "C001");
  406. model.refresh();
  407. model.setfocus( "inpt_case1txtarea" );
  408. if (clockTimer == null || clockTimer == ""){
  409. }else{
  410. window.clearInterval(clockTimer);
  411. }
  412. return;
  413. }
  414. submit("TRAZZ00401");
  415. var srchLength1 = model.instances(0).selectNodes( "/root/main/caption/namecaption" ).length;
  416. //alert('srchLength1->'+srchLength1);
  417. if ( srchLength1 == 0 || srchLength1 > 1 ) {
  418. fClockCheck();
  419. model.setValue("/root/init/message1", "입력하신 사용자 정보가");
  420. model.setValue("/root/init/message2", "정확하지 않습니다.");
  421. btn_case5.selected = true;
  422. model.toggle("case5");
  423. model.setfocus( "input1" );
  424. model.refresh();
  425. //btn_cnfmN.dispatch("DOMActivate");
  426. return;
  427. }
  428. btn_case2.selected = true;
  429. model.toggle("case2");
  430. model.setfocus( "input1" );
  431. model.refresh();
  432. ]]>
  433. </script>
  434. </button>
  435. <input id="inpt_case1txtarea" ref="/root/send/case1/reqdata/inputnum" imemode="alpha" maxlength="13" format="9999999999999" style="left:5px; top:35px; width:505px; height:85px; font-size:40pt; font-weight:bold; text-align:center; background-image:../../../ast/commonweb/images/pid_btn_new A.gif; background-stretch:stretch; ">
  436. <script type="javascript" ev:event="onkeyup">
  437. <![CDATA[
  438. inputEnterKey("button14", "DOMActivate");
  439. ]]>
  440. </script>
  441. </input>
  442. </group>
  443. <img id="img1" ref="/root/images/logoimg" src="../../../ast/commonweb/images/SSMH_Signature_01.gif" style="left:45px; top:15px; width:365px; height:110px; background-stretch:stretch; "/>
  444. <caption id="caption2" style="left:160px; top:195px; width:300px; height:60px; font-family:굴림; font-size:48pt; font-weight:bold; color:#cc00cc; text-align:center; ">사용방법</caption>
  445. <caption id="caption23" style="left:618px; top:215px; width:550px; height:45px; font-family:굴림; font-size:32pt; font-weight:bold; color:#cc00cc; text-align:center; ">등록번호/주민번호 입력창</caption>
  446. <object id="flashMovie" clsid="{d27cdb6e-ae6d-11cf-96b8-444553540000}" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" EmbedMovie="0" AllowScriptAccess="always" Movie="C:\\무인배정기동영상.swf" DeviceFont="0" src="C:\\무인배정기동영상.swf" style="left:68px; top:280px; width:478px; height:550px; ">
  447. <script type="javascript" ev:event="FlashCall(request)">
  448. <![CDATA[
  449. ]]>
  450. </script>
  451. </object>
  452. </case>
  453. <case id="case2">
  454. <group id="group3" style="left:45px; top:230px; width:525px; height:630px; ">
  455. <caption id="caption22" style="left:5px; top:35px; width:515px; height:585px; background-image:../../../ast/commonweb/images/avi_background_new.gif; background-stretch:stretch; "/>
  456. <button id="btn_cnfmN" style="left:280px; top:410px; width:190px; height:120px; font-family:굴림; font-size:36pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/ok_cancel_btn_new.gif; background-stretch:stretch; ">
  457. <caption>아니오</caption>
  458. <script type="javascript" ev:event="DOMActivate">
  459. <![CDATA[
  460. btn_case1.selected = true;
  461. model.toggle("case1");
  462. model.makeValue("/root/send/case1/reqdata/inputnum" , "재입력해주세요");
  463. model.makeValue("/root/main/caption/namecaption/rsltnm", "" );
  464. model.makeValue("/root/main/caption/namecaption/rsltpid", "" );
  465. model.resetInstanceNode("/root/main/examroomcaption/examroomlist");
  466. model.setValue("/root/chktime/timevalue","0");
  467. caption18.value = "진료과선택";
  468. caption14.visible = false;
  469. if (clockTimer == null || clockTimer == ""){
  470. }else{
  471. window.clearInterval(clockTimer);
  472. return;
  473. }
  474. model.refresh();
  475. model.setfocus( "inpt_case1txtarea" );
  476. ]]>
  477. </script>
  478. </button>
  479. <caption id="caption10" style="left:355px; top:120px; width:140px; height:75px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; ">님이</caption>
  480. <button id="btn_cnfmY" style="left:60px; top:410px; width:190px; height:120px; font-family:굴림; font-size:48pt; font-weight:bold; color:#ff6600; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/ok_cancel_btn_new.gif; background-stretch:stretch; ">
  481. <caption>예</caption>
  482. <script type="javascript" ev:event="DOMActivate">
  483. <![CDATA[
  484. if ( model.getValue("/root/send/case1/reqdata/inputnum") == "재입력해주세요" ) {
  485. model.setValue("/root/send/case1/reqdata/inputnum", "");
  486. }
  487. if ( model.getValue("/root/send/case1/reqdata/inputnum") == "" || model.getValue("/root/main/caption/namecaption/rsltpid") == "") {
  488. var rtn = messageBox("[등록번호] 또는 [진료카드]를", "C001");
  489. model.refresh();
  490. model.setfocus( "inpt_case1txtarea" );
  491. return;
  492. }
  493. // 주민번호로 환자에 대한 처방리스트 조회시 PID로 세팅한다.
  494. model.setValue("/root/send/case1/reqdata/inputnum", model.getValue("/root/main/caption/namecaption/rsltpid") );
  495. model.setfocus( "input1" );
  496. // 배정할 처방 리스트 개수 체크
  497. if( submit("TRAZZ00402") ) {
  498. var srchLength1 = model.instances(0).selectNodes( "/root/main/order1/orderlist1" ).length;
  499. if ( srchLength1 == 0 ) {
  500. var mommoyn = model.getValue("/root/main/order1/ordermam/mommoyn");
  501. var prtyn = model.getValue("/root/init1/baseinfo/initprtyn/A0011/cdid");
  502. if(mommoyn.substr(0,2) == "MA"){
  503. fClockCheck();
  504. model.setValue("/root/init/message1", "가셔야 할 곳");
  505. model.setValue("/root/init/message2", mommoyn);
  506. btn_case5.selected = true;
  507. model.toggle("case5");
  508. model.refresh();
  509. //출력
  510. if(prtyn == "Y"){
  511. submit("TRAZZ00403");
  512. model.makeValue("/root/main/orderlist2/item/hngnm", model.getValue("/root/main/caption/namecaption/rsltnm") + " 님");
  513. exeReportPreview("RPAZZ00403", "XMLSTR", "", "", "true","","","","","true");
  514. };
  515. // alert('배정가능한 처방 내역이 없습니다.');
  516. // btn_cnfmN.dispatch("DOMActivate");
  517. return;
  518. } else {
  519. fClockCheck();
  520. model.setValue("/root/init/message1", "[검사실배정] 가능한");
  521. model.setValue("/root/init/message2", "처방 내역이 없습니다.");
  522. btn_case5.selected = true;
  523. model.toggle("case5");
  524. model.refresh();
  525. // alert('배정가능한 처방 내역이 없습니다.');
  526. // btn_cnfmN.dispatch("DOMActivate");
  527. return;
  528. }
  529. }else {
  530. for( var i = grd_orderlist1.fixedRows ; i < grd_orderlist1.Rows ; i++ ) {
  531. grd_orderlist1.cellstyle("background-color", i, grd_orderlist1.colRef("orddepthngnm")) = "#ffddff";
  532. grd_orderlist1.cellstyle("font-weight", i, grd_orderlist1.colRef("orddepthngnm")) = "bold";
  533. }
  534. button7.visible = false;
  535. caption14.visible = true;
  536. btn_case3.selected = true;
  537. model.setfocus( "input2" );
  538. model.toggle("case3");
  539. model.refresh();
  540. if ( srchLength1 == 1 ) { // 처방내역이 1건일 경우 선택할 필요없이 자동접수 되도록 하기위해 추가
  541. var prcpgenrflag = model.getValue("/root/main/order1/orderlist1[" + 1 + "]/prcpgenrflag");
  542. if ( prcpgenrflag == "O" ){ // 외래처방일 경우만 자동배정. 입원은 1건이라도 환자분이 선택하도록 기존패턴 유지 함
  543. model.setValue("/root/main/order1/orderlist1[" + 1 + "]/chk" , "true"); // 조회된 1건의 수진이력 선택한것 처럼 만듬
  544. grd_orderlist1.refresh();
  545. button7.dispatch("DOMActivate"); // 수진이력 선택 후 "확인"버튼 누른 효과 적용
  546. }
  547. }
  548. }
  549. }else {
  550. fClockCheck();
  551. model.setValue("/root/init/message1", "[전산오류]입니다.");
  552. model.setValue("/root/init/message2", "관리팀에 문의해주세요.");
  553. btn_case5.selected = true;
  554. model.toggle("case5");
  555. model.refresh();
  556. //btn_cnfmN.dispatch("DOMActivate");
  557. return;
  558. }
  559. ]]>
  560. </script>
  561. </button>
  562. <caption id="caption6" ref="/root/main/caption/namecaption/rsltnm" style="left:55px; top:120px; width:300px; height:75px; font-family:굴림; font-size:54pt; font-weight:bold; color:#800000; text-align:center; background-image:../../../ast/commonweb/images/patnm_caption_new.gif; background-stretch:stretch; "/>
  563. <caption id="caption8" style="left:25px; top:255px; width:480px; height:75px; font-family:굴림; font-size:60pt; font-weight:bold; color:#0000ff; text-align:center; ">맞으십니까?</caption>
  564. </group>
  565. <caption id="caption9" style="left:35px; top:45px; width:1125px; height:74px; font-family:굴림; font-size:48pt; font-weight:bold; color:#cc00cc; text-align:center; ">
  566. <![CDATA[등록번호 입력 & 진료카드 인식 화면]]>
  567. </caption>
  568. <group id="group4" style="left:635px; top:230px; width:525px; height:630px; ">
  569. <button id="button1" style="left:4px; top:140px; width:160px; height:110px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  570. <caption>1</caption>
  571. <script type="javascript" ev:event="DOMActivate">
  572. <![CDATA[
  573. model.refresh();
  574. ]]>
  575. </script>
  576. </button>
  577. <input id="textarea1" ref="/root/send/case1/reqdata/inputnum" class="input_search" imemode="alpha" maxlength="13" format="9999999999999" appearance="input" style="left:5px; top:35px; width:505px; height:75px; font-size:40pt; font-weight:bold; text-align:center; background-image:../../../ast/commonweb/images/pid_btn_new A.gif; background-stretch:stretch; "/>
  578. <button id="button2" style="left:4px; top:262px; width:160px; height:110px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  579. <caption>4</caption>
  580. <script type="javascript" ev:event="DOMActivate">
  581. <![CDATA[
  582. model.refresh();
  583. ]]>
  584. </script>
  585. </button>
  586. <button id="button3" style="left:5px; top:384px; width:160px; height:110px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  587. <caption>7</caption>
  588. <script type="javascript" ev:event="DOMActivate">
  589. <![CDATA[
  590. model.refresh();
  591. ]]>
  592. </script>
  593. </button>
  594. <button id="button5" style="left:5px; top:506px; width:160px; height:110px; font-family:굴림; font-size:40pt; font-weight:bold; color:#3333ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_clear_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  595. <caption>정정</caption>
  596. <script type="javascript" ev:event="DOMActivate">
  597. <![CDATA[
  598. model.refresh();
  599. ]]>
  600. </script>
  601. </button>
  602. <button id="button8" style="left:181px; top:140px; width:160px; height:110px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  603. <caption>2</caption>
  604. <script type="javascript" ev:event="DOMActivate">
  605. <![CDATA[
  606. model.refresh();
  607. ]]>
  608. </script>
  609. </button>
  610. <button id="button9" style="left:181px; top:262px; width:160px; height:110px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  611. <caption>5</caption>
  612. <script type="javascript" ev:event="DOMActivate">
  613. <![CDATA[
  614. model.refresh();
  615. ]]>
  616. </script>
  617. </button>
  618. <button id="button11" style="left:182px; top:384px; width:160px; height:110px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  619. <caption>8</caption>
  620. <script type="javascript" ev:event="DOMActivate">
  621. <![CDATA[
  622. model.refresh();
  623. ]]>
  624. </script>
  625. </button>
  626. <button id="button12" style="left:182px; top:506px; width:160px; height:110px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  627. <caption>0</caption>
  628. <script type="javascript" ev:event="DOMActivate">
  629. <![CDATA[
  630. model.refresh();
  631. ]]>
  632. </script>
  633. </button>
  634. <button id="button13" style="left:358px; top:140px; width:160px; height:110px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  635. <caption>3</caption>
  636. <script type="javascript" ev:event="DOMActivate">
  637. <![CDATA[
  638. model.refresh();
  639. ]]>
  640. </script>
  641. </button>
  642. <button id="button15" style="left:358px; top:262px; width:160px; height:110px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  643. <caption>6</caption>
  644. <script type="javascript" ev:event="DOMActivate">
  645. <![CDATA[
  646. model.refresh();
  647. ]]>
  648. </script>
  649. </button>
  650. <button id="button16" style="left:359px; top:384px; width:160px; height:110px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_new.gif; background-stretch:stretch; border-color:#000099; border-width:4px; ">
  651. <caption>9</caption>
  652. <script type="javascript" ev:event="DOMActivate">
  653. <![CDATA[
  654. model.refresh();
  655. ]]>
  656. </script>
  657. </button>
  658. <button id="button17" style="left:359px; top:506px; width:160px; height:110px; font-family:굴림; font-size:40pt; font-weight:bold; color:#3333ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/num_btn_clear_new.gif; background-stretch:stretch; background-position:center; border-color:#000099; border-width:4px; ">
  659. <caption>확인</caption>
  660. <script type="javascript" ev:event="DOMActivate">
  661. <![CDATA[
  662. model.refresh();
  663. ]]>
  664. </script>
  665. </button>
  666. </group>
  667. <input id="input1" visibility="hidden" style="left:350px; top:125px; width:100px; height:85px; "/>
  668. </case>
  669. <case id="case3">
  670. <datagrid id="grd_orderlist1" nodeset="/root/main/order1/orderlist1" caption="선택^진료과^진료의^처방일^orddeptcd^orddrid^instcd^prcpgenrflag^pid" colsep="^" colwidth="134, 402, 280, 350, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:30px; top:195px; width:1170px; height:480px; font-family:굴림; font-size:25pt; font-weight:bold; ">
  671. <col checkvalue="true,false" ref="chk" type="checkbox"/>
  672. <col ref="orddepthngnm" style="text-align:center; "/>
  673. <col ref="orddrnm" style="text-align:center; "/>
  674. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  675. <col ref="orddeptcd" visibility="hidden"/>
  676. <col ref="orddrid" visibility="hidden"/>
  677. <col ref="instcd" visibility="hidden"/>
  678. <col ref="prcpgenrflag" visibility="hidden"/>
  679. <col ref="pid" visibility="hidden"/>
  680. <script type="javascript" ev:event="onaftersort">
  681. <![CDATA[
  682. grd_orderlist1.gridToInstance();
  683. ]]>
  684. </script>
  685. <script type="javascript" ev:event="onclick">
  686. <![CDATA[
  687. if( isDataCell() ){
  688. var colidx = grd_orderlist1.col;
  689. var row = grd_orderlist1.row;
  690. if(grd_orderlist1.colAttribute(colidx, "ref") == "chk") {
  691. }else {
  692. if ( model.getValue("/root/main/order1/orderlist1[" + row + "]/chk") == "true" ) {
  693. model.setValue("/root/main/order1/orderlist1[" + row + "]/chk" , "false");
  694. }else {
  695. model.setValue("/root/main/order1/orderlist1[" + row + "]/chk" , "true");
  696. }
  697. }
  698. var srchLength1 = model.instances(0).selectNodes( "/root/main/order1/orderlist1" ).length;
  699. var chkint = 0;
  700. for ( var i = 1; i <= srchLength1; i++ ) {
  701. if ( model.getValue("/root/main/order1/orderlist1[" + row + "]/chk") == "true" ) {
  702. chkint++;
  703. }
  704. }
  705. if ( chkint == 0 ) {
  706. button7.visible = false;
  707. //caption18.attribute("font-size") = 100;
  708. caption18.value = "진료과선택";
  709. caption14.visible = true;
  710. }else {
  711. button7.visible = true;
  712. //caption18.attribute("font-size") = 70;
  713. caption18.value = "확인선택";
  714. caption14.visible = false;
  715. }
  716. }
  717. ]]>
  718. </script>
  719. </datagrid>
  720. <button id="button6" style="left:30px; top:740px; width:290px; height:150px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/topmenu_btn_new.gif; background-stretch:stretch; ">
  721. <caption>처음화면</caption>
  722. <script type="javascript" ev:event="DOMActivate">
  723. <![CDATA[
  724. btn_cnfmN.dispatch("DOMActivate");
  725. ]]>
  726. </script>
  727. </button>
  728. <button id="button7" style="left:505px; top:690px; width:550px; height:215px; font-family:굴림; font-size:160pt; font-weight:bold; color:#ff6600; text-align:center; vertical-align:middle; background-image:../../../ast/commonweb/images/assign_btn_new2.gif; background-stretch:stretch; ">
  729. <caption>확인</caption>
  730. <script type="javascript" ev:event="DOMActivate">
  731. <![CDATA[
  732. // alert("배정로직 구현");
  733. var nodeList = instance1.selectNodes("/root/main/order1/orderlist1[chk='true' ]");
  734. var rCSV = getNodeListCSV(nodeList);
  735. if ( rCSV == null ) {
  736. //messageBox("처방내역을 ","C002");
  737. return;
  738. }
  739. /*
  740. var cnt2 = 0;
  741. for (var i = 1; i < grd_orderlist1.rows ; i++) {
  742. if(model.getValue("/root/main/order1/orderlist1["+i+"]/chk") == "true"){
  743. if( model.getValue("/root/main/order1/orderlist1["+i+"]/prcpgenrflag") != "O" ) {
  744. cnt2++;
  745. }
  746. }
  747. }
  748. if ( cnt2 > 0 ) {
  749. messageBox("외래처방만 실배정이 가능합니다. [실배정불가]", "E999", "");
  750. return;
  751. }
  752. */
  753. btn_case4.selected = true;
  754. model.toggle("case4");
  755. model.setfocus( "input2" );
  756. model.refresh();
  757. var sColSep = "▦";
  758. var sRowSep = "▩";
  759. var rCSV = "";
  760. rCSV += "pid" + sColSep +
  761. "prcpdd" + sColSep +
  762. "orddeptcd" + sColSep +
  763. "orddrid" + sColSep +
  764. "prcpgenrflag" + sColSep +
  765. "instcd" + sRowSep;
  766. var k = 0;
  767. for (var i = 1;i < grd_orderlist1.rows;i++){
  768. if (model.getValue("/root/main/order1/orderlist1["+i+"]/chk")=="true"){
  769. rCSV += grd_orderlist1.valueMatrix(i, grd_orderlist1.colRef("pid")) + sColSep +
  770. grd_orderlist1.valueMatrix(i, grd_orderlist1.colRef("prcpdd")) + sColSep +
  771. grd_orderlist1.valueMatrix(i, grd_orderlist1.colRef("orddeptcd")) + sColSep +
  772. grd_orderlist1.valueMatrix(i, grd_orderlist1.colRef("orddrid")) + sColSep +
  773. grd_orderlist1.valueMatrix(i, grd_orderlist1.colRef("prcpgenrflag")) + sColSep +
  774. grd_orderlist1.valueMatrix(i, grd_orderlist1.colRef("instcd")) + sRowSep;
  775. k = parseInt(k) + 1;
  776. }
  777. }
  778. model.resetInstanceNode("/root/send/autoreq/data");
  779. model.removeNode("/root/temp");
  780. model.makeNode("/root/temp");
  781. setCSVToNode("/root/temp", rCSV);
  782. instance1.selectSingleNode("/root/temp").xml;
  783. model.copyNode("/root/send/autoreq/data", "/root/temp");
  784. //alert(rCSV);
  785. //return;
  786. if ( submit("TXAZZ00401") ) {
  787. if ( model.getValue("/root/main/examroomcaption/examroomlist/examroomnm") == "ERROR" ) {
  788. fClockCheck();
  789. model.setValue("/root/init/message1", "[전산오류]입니다.");
  790. model.setValue("/root/init/message2", "관리팀에 문의해주세요.");
  791. btn_case5.selected = true;
  792. model.toggle("case5");
  793. model.refresh();
  794. return;
  795. }
  796. if ( model.getValue("/root/main/examroomcaption/examroomlist/examroomnm") == "ERRORRCPT" ) {
  797. fClockCheck();
  798. model.setValue("/root/init/message1", "[미수납 처방]");
  799. model.setValue("/root/init/message2", "수납을 해주십시오.");
  800. btn_case5.selected = true;
  801. model.toggle("case5");
  802. model.refresh();
  803. return;
  804. }
  805. // model.setValue("/root/send/data/interval", "300000"); // 1분(6000), 5분(300000), 10분(600000)
  806. // gTimer = window.setInterval("fGetinitDisplay()", "5000" );
  807. // window.clearinterval(gTimer);
  808. for (var i = 1;i <= datagrid1.rows;i++){
  809. //alert('datagrid1.rows->'+datagrid1.rows);
  810. if (model.getValue("/root/main/order1/orderlist1["+i+"]/chk")=="false"){
  811. model.removeNodeset("/root/main/order1/orderlist1["+ i +"]");
  812. i--;
  813. }
  814. }
  815. // 응급처방인지 여부에 따라 공통코드에서 출력설정이 되어 있더라도 부분적으로(ER처방) 미출력을 적용하기 위함
  816. model.setValue("/root/hidden/erprintyn", "Y");
  817. for (var k = 1; k <= grd_orderlist1.rows; k++){
  818. if ( model.getValue("/root/main/order1/orderlist1["+ k +"]/chk")=="true"){
  819. var prcpgenrflag = model.getValue("/root/main/order1/orderlist1/prcpgenrflag");
  820. // 무인배정기 방배정시 출력물 출력여부를 적용하기 위한 공통코드와 별개로 득정값 셋팅
  821. if ( prcpgenrflag == "E" ){
  822. model.setValue("/root/hidden/erprintyn", "N");
  823. }else{
  824. model.setValue("/root/hidden/erprintyn", "Y");
  825. }
  826. }
  827. }
  828. //출력
  829. var prtyn = model.getValue("/root/init1/baseinfo/initprtyn/A0011/cdid");
  830. var erprintyn = model.getValue("/root/hidden/erprintyn");
  831. if(prtyn == "Y" && erprintyn == "Y"){
  832. submit("TRAZZ00403");
  833. model.makeValue("/root/main/orderlist2/item/hngnm", model.getValue("/root/main/caption/namecaption/rsltnm") + " 님");
  834. exeReportPreview("RPAZZ00403", "XMLSTR", "", "", "true","","","","","true");
  835. }
  836. model.setValue("/root/chktime/timevalue", "0");
  837. model.refresh();
  838. clockTimer = window.setInterval("clock()", 100);
  839. return;
  840. }else {
  841. fClockCheck();
  842. model.setValue("/root/init/message1", "[전산오류]입니다.");
  843. model.setValue("/root/init/message2", "관리팀에 문의해주세요.");
  844. btn_case5.selected = true;
  845. model.toggle("case5");
  846. model.refresh();
  847. //messageBox("실배정 실패입니다.", "E999", "");
  848. //btn_cnfmN.dispatch("DOMActivate");
  849. return;
  850. }
  851. ]]>
  852. </script>
  853. </button>
  854. <caption id="caption16" ref="/root/main/caption/namecaption/rsltnm" style="left:30px; top:60px; width:395px; height:95px; font-family:굴림; font-size:54pt; font-weight:bold; color:#800000; text-align:center; background-image:../../../ast/commonweb/images/patnm_caption_new.gif; background-stretch:stretch; "/>
  855. <caption id="caption17" style="left:430px; top:60px; width:90px; height:75px; font-family:굴림; font-size:60pt; font-weight:bold; color:#0000ff; text-align:center; ">님</caption>
  856. <caption id="caption18" style="left:530px; top:40px; width:680px; height:135px; font-family:굴림; font-size:100pt; font-weight:bold; color:#ff6600; text-align:right; ">진료과선택</caption>
  857. <caption id="caption14" style="left:360px; top:725px; width:845px; height:110px; font-family:굴림; font-size:75pt; font-weight:bold; color:#ff6600; text-align:right; ">진료과를 누르세요</caption>
  858. <input id="input2" visibility="hidden" style="left:420px; top:160px; width:195px; height:85px; "/>
  859. </case>
  860. <case id="case4">
  861. <caption id="caption11" ref="/root/main/caption/namecaption/rsltnm" style="left:30px; top:60px; width:395px; height:105px; font-family:굴림; font-size:54pt; font-weight:bold; color:#800000; text-align:center; background-image:../../../ast/commonweb/images/patnm_caption_new.gif; background-stretch:stretch; "/>
  862. <caption id="caption12" style="left:15px; top:620px; width:425px; height:75px; font-family:굴림; font-size:54pt; font-weight:bold; color:#ff6600; text-align:center; ">가셔야 할 곳</caption>
  863. <caption id="caption13" ref="/root/main/examroomcaption/examroomlist/examroomnm" style="left:460px; top:620px; width:740px; height:215px; font-family:굴림; font-size:120pt; font-weight:bold; color:#800000; text-align:center; vertical-align:middle; background-image:../../../ast/commonweb/images/assigned_roomcaption_new2.gif; background-stretch:stretch; "/>
  864. <caption id="caption7" style="left:430px; top:60px; width:90px; height:75px; font-family:굴림; font-size:60pt; font-weight:bold; color:#0000ff; text-align:center; ">님</caption>
  865. <button id="button18" style="left:30px; top:740px; width:290px; height:150px; font-family:굴림; font-size:48pt; font-weight:bold; color:#0000ff; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/topmenu_btn_new.gif; background-stretch:stretch; ">
  866. <caption>처음화면</caption>
  867. <script type="javascript" ev:event="DOMActivate">
  868. <![CDATA[
  869. window.clearInterval(clockTimer);
  870. sec = 0;
  871. clockTimer = null;
  872. btn_cnfmN.dispatch("DOMActivate");
  873. ]]>
  874. </script>
  875. </button>
  876. <datagrid id="datagrid1" nodeset="/root/main/order1/orderlist1" caption="선택^진료과^진료의^처방일^orddeptcd^orddrid^instcd^prcpgenrflag^pid" colsep="^" colwidth="134, 402, 280, 350, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:30px; top:195px; width:1170px; height:390px; font-family:굴림; font-size:25pt; font-weight:bold; ">
  877. <col checkvalue="true,false" ref="chk" type="checkbox"/>
  878. <col ref="orddepthngnm" style="text-align:center; "/>
  879. <col ref="orddrnm" style="text-align:center; "/>
  880. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  881. <col ref="orddeptcd" visibility="hidden"/>
  882. <col ref="orddrid" visibility="hidden"/>
  883. <col ref="instcd" visibility="hidden"/>
  884. <col ref="prcpgenrflag" visibility="hidden"/>
  885. <col ref="pid" visibility="hidden"/>
  886. <script type="javascript" ev:event="onaftersort">
  887. <![CDATA[
  888. datagrid1.gridToInstance();
  889. ]]>
  890. </script>
  891. </datagrid>
  892. </case>
  893. <case id="case5">
  894. <button id="button19" style="left:445px; top:630px; width:290px; height:150px; font-family:굴림; font-size:84pt; font-weight:bold; color:#ff6600; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/error_example_cnfmbtn_new.gif; background-stretch:stretch; ">
  895. <caption>확인</caption>
  896. <script type="javascript" ev:event="DOMActivate">
  897. <![CDATA[
  898. model.setValue("/root/init/message1", "");
  899. model.setValue("/root/init/message2", "");
  900. window.clearInterval(clockTimer);
  901. sec = 0;
  902. clockTimer = null;
  903. btn_cnfmN.dispatch("DOMActivate");
  904. ]]>
  905. </script>
  906. </button>
  907. <caption id="caption21" ref="/root/temp/announce" style="left:30px; top:75px; width:270px; height:120px; font-family:굴림; font-size:72pt; font-weight:bold; color:#ff6600; text-align:center; vertical-align:middle; word-wrap:hard; background-image:../../../ast/commonweb/images/error_example_topcaption_new.gif; background-stretch:stretch; "/>
  908. <caption id="caption15" style="left:60px; top:255px; width:1110px; height:275px; background-image:../../../ast/commonweb/images/error_example_caption_new.gif; background-stretch:stretch; "/>
  909. <caption id="caption20" ref="/root/init/message2" style="left:70px; top:390px; width:1090px; height:105px; font-family:굴림; font-size:72pt; font-weight:bold; color:#000066; text-align:center; vertical-align:bottom; "/>
  910. <caption id="message1" ref="/root/init/message1" style="left:70px; top:285px; width:1090px; height:105px; font-family:굴림; font-size:72pt; font-weight:bold; color:#000066; text-align:center; vertical-align:bottom; "/>
  911. </case>
  912. </switch>
  913. <button id="btn_case1" class="btn_sw" visibility="hidden" group="tab" selected="true" style="left:0px; top:0px; width:10px; height:10px; ">
  914. <caption>처음화면</caption>
  915. <toggle case="case1" ev:event="onclick"/>
  916. </button>
  917. <button id="btn_case2" class="btn_sw" visibility="hidden" group="tab" style="left:10px; top:0px; width:10px; height:22px; ">
  918. <caption>환자확인화면</caption>
  919. <toggle case="case2" ev:event="onclick"/>
  920. </button>
  921. <button id="btn_case3" class="btn_sw" visibility="hidden" group="tab" style="left:20px; top:0px; width:10px; height:22px; ">
  922. <caption>처방확인화면1</caption>
  923. <toggle case="case3" ev:event="onclick"/>
  924. </button>
  925. <button id="btn_case4" class="btn_sw" visibility="hidden" group="tab" style="left:30px; top:0px; width:10px; height:22px; ">
  926. <caption>처방확인화면2</caption>
  927. <toggle case="case4" ev:event="onclick"/>
  928. </button>
  929. <button id="btn_case5" class="btn_sw" visibility="hidden" group="tab" style="left:40px; top:0px; width:10px; height:22px; ">
  930. <caption>메시지처리화면</caption>
  931. <toggle case="case5" ev:event="onclick"/>
  932. </button>
  933. </group>
  934. </xhtml:body>
  935. </xhtml:html>