SMAHR00110_검사진행관리.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.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. <examrmlst>
  11. <item>
  12. <sel/>
  13. <pid/>
  14. <pidnm/>
  15. <tagno/>
  16. <regroomdate/>
  17. <rtime/>
  18. <examid/>
  19. <examroomid/>
  20. <hoscode/>
  21. </item>
  22. </examrmlst>
  23. <pidexamlst>
  24. <item>
  25. <sel/>
  26. <examroomid/>
  27. <examnm/>
  28. <examorddd/>
  29. <finyn/>
  30. <findate/>
  31. <rtime/>
  32. <pid/>
  33. <examid/>
  34. </item>
  35. </pidexamlst>
  36. <taglst>
  37. <item>
  38. <sel/>
  39. <pid/>
  40. <pidnm/>
  41. <tagno/>
  42. <suppstat/>
  43. <supptime/>
  44. <retutime/>
  45. </item>
  46. </taglst>
  47. <waitlst>
  48. <item>
  49. <examroomid/>
  50. <examroomnm/>
  51. <waitpsnno/>
  52. </item>
  53. </waitlst>
  54. </main>
  55. <send>
  56. <rfid/>
  57. <save>
  58. <room/>
  59. <exam/>
  60. </save>
  61. </send>
  62. <init>
  63. <room>
  64. <roomlst>
  65. <itemroom/>
  66. </roomlst>
  67. </room>
  68. <send>
  69. <srchorddd/>
  70. <srchexamroom/>
  71. <srchpid/>
  72. <srchpnm/>
  73. <srchtagno/>
  74. <srchinstcd/>
  75. </send>
  76. </init>
  77. <hidden>
  78. </hidden>
  79. </root>
  80. </instance>
  81. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  85. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  86. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  87. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  88. <script type="javascript" ev:event="xforms-ready">
  89. <![CDATA[
  90. fInit();
  91. ]]>
  92. </script>
  93. <script type="javascript">
  94. <![CDATA[
  95. /***********************************************************************************************************************
  96. *초기화
  97. ************************************************************************************************************************/
  98. function fInit() {
  99. // 진료일자
  100. model.setValue("/root/init/send/srchorddd",getCurrentDate());
  101. //검사실 코드
  102. model.setValue("/root/init/send/srchinstcd",getUserInfo("dutplceinstcd"));
  103. var ret = submit("TRAHR00101");
  104. if(ret) cmb_examroom.select(0);
  105. // 대기자 인원정보
  106. fGetWaitList();
  107. //case 선택
  108. model.toggle("case_examroom");
  109. btn_exam.selected = true;
  110. caption1.visible = false;
  111. ipt_srchpid.visible = false;
  112. btn_srchpat.visible = false;
  113. opt_srchpnm.visible = false;
  114. caption2.visible = false;
  115. input1.visible = false;
  116. model.removeNodeset("/root/main/examrmlst/item");
  117. model.removeNodeset("/root/main/pidexamlst/item");
  118. model.removeNodeset("/root/main/taglst/item");
  119. model.refresh();
  120. }
  121. /***********************************************************************************************************************
  122. *RFID 진행정보를 조회한다.
  123. ************************************************************************************************************************/
  124. function fGetRfidList() {
  125. if (btn_exam.selected == true){
  126. fGetExamRooList();
  127. }else if (btn_pid.selected == true){
  128. fGetPidExamList();
  129. }else if (btn_tag.selected == true){
  130. fGetTagList();
  131. }
  132. fGetWaitList();
  133. }
  134. /***********************************************************************************************************************
  135. *검사실별 대기자 정보를 조회
  136. ************************************************************************************************************************/
  137. function fGetExamRooList() {
  138. model.removeNodeset("/root/main/examrmlst/item");
  139. submit("TRAHR00102");
  140. }
  141. /***********************************************************************************************************************
  142. *환자별 검사정보를 조회
  143. ************************************************************************************************************************/
  144. function fGetPidExamList() {
  145. model.removeNodeset("/root/main/pidexamlst/item");
  146. var pid = model.getValue("/root/send/rfid/srchpid");
  147. if(pid == "") {
  148. messageBox("환자번호를","C001");
  149. }else {
  150. submit("TRAHR00103");
  151. }
  152. }
  153. /***********************************************************************************************************************
  154. *태그지급 정보를 조회
  155. ************************************************************************************************************************/
  156. function fGetTagList() {
  157. model.removeNodeset("/root/main/taglst/item");
  158. submit("TRAHR00104");
  159. }
  160. /***********************************************************************************************************************
  161. *검사실별 대기인원 정보 조회
  162. ************************************************************************************************************************/
  163. function fGetWaitList() {
  164. model.removeNodeset("/root/main/waitlst/item");
  165. submit("TRAHR00105");
  166. }
  167. /***********************************************************************************************************************
  168. *검사실별 대기인원 정보 조회
  169. ************************************************************************************************************************/
  170. function fSetExamEnd() {
  171. var sel = sw_rfid.selectedIndex;
  172. var ret = false;
  173. if(sel == 0) {
  174. var nodeList = instance1.selectNodes(grd_roomlst.nodeset + "[sel='Y']");
  175. var rCSV = getNodeListCSV(nodeList);
  176. model.setValue("/root/send/save/room",rCSV);
  177. model.setValue("/root/send/save/exam","");
  178. ret = submit("TXAHR00101");
  179. }else if(sel == 1) {
  180. var nodeList = instance1.selectNodes(grd_examlst.nodeset + "[sel='Y']");
  181. var rCSV = getNodeListCSV(nodeList);
  182. model.setValue("/root/send/save/room","");
  183. model.setValue("/root/send/save/exam",rCSV);
  184. ret = submit("TXAHR00101");
  185. }
  186. if(ret) {
  187. fGetRfidList();
  188. fSaveInit();
  189. }
  190. }
  191. /***********************************************************************************************************************
  192. *검사완료 목록 초기화
  193. ************************************************************************************************************************/
  194. function fSaveInit() {
  195. model.resetInstanceNode("/root/send/save");
  196. }
  197. ]]>
  198. </script>
  199. <submission id="TRAHR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send" resultref="/root/init/room/roomlst"/>
  200. <submission id="TRAHR00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rfid" resultref="/root/main/pidexamlst"/>
  201. <submission id="TRAHR00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rfid" resultref="/root/main/examrmlst"/>
  202. <submission id="TRAHR00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rfid" resultref="/root/main/taglst"/>
  203. <submission id="TRAHR00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send" resultref="/root/main/waitlst"/>
  204. <submission id="TXAHR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
  205. </model>
  206. </xhtml:head>
  207. <xhtml:body pagewidth="850" pageheight="510" guideline="1,826;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  208. <group id="group1" style="left:0px; top:0px; width:820px; height:13px; ">
  209. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:98px; height:14px; ">검사진행관리</caption>
  210. </group>
  211. <group id="group3" scroll="auto" style="left:0px; top:58px; width:825px; height:417px; ">
  212. <line id="line20" class="line_1" style="x1:0px; y1:20px; x2:230px; y2:20px; "/>
  213. <caption id="caption4" class="tit_2" style="left:0px; top:5px; width:144px; height:13px; ">검사실대기인원</caption>
  214. <datagrid id="datagrid1" nodeset="/root/main/waitlst/item" class="datagrid2" caption="검사실&#xA;코드^검사실명^대기&#xA;인원" colsep="^" colwidth="52, 122, 38" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:24px; width:230px; height:393px; ">
  215. <col ref="examroomid"/>
  216. <col ref="examroomnm"/>
  217. <col ref="waitpsnno"/>
  218. </datagrid>
  219. <button id="btn_tag" class="btn_sw" group="tab" selected="true" style="left:403px; top:5px; width:72px; height:22px; ">
  220. <caption>태그지급</caption>
  221. <script type="javascript" ev:event="DOMActivate">
  222. <![CDATA[
  223. model.toggle("case_tag");
  224. btn_tag.selected = true;
  225. btn_pid.selected = false;
  226. btn_exam.selected = false;
  227. caption21.visible = false;
  228. cmb_examroom.visible = false;
  229. caption1.visible = false;
  230. ipt_srchpid.visible = false;
  231. btn_srchpat.visible = false;
  232. opt_srchpnm.visible = false;
  233. caption2.visible = true;
  234. input1.visible = true;
  235. ]]>
  236. </script>
  237. </button>
  238. <button id="btn_exam" class="btn_sw" group="tab" selected="true" style="left:235px; top:5px; width:96px; height:22px; ">
  239. <caption>검사대기</caption>
  240. <script type="javascript" ev:event="DOMActivate">
  241. <![CDATA[
  242. model.toggle("case_examroom");
  243. btn_exam.selected = true;
  244. btn_pid.selected = false;
  245. btn_tag.selected = false;
  246. caption21.visible = true;
  247. cmb_examroom.visible = true;
  248. caption1.visible = false;
  249. ipt_srchpid.visible = false;
  250. btn_srchpat.visible = false;
  251. opt_srchpnm.visible = false;
  252. caption2.visible = false;
  253. input1.visible = false;
  254. model.removeNodeset("/root/main/examrmlst/item");
  255. fGetExamRooList();
  256. ]]>
  257. </script>
  258. </button>
  259. <button id="btn_pid" class="btn_sw" group="tab" selected="true" style="left:331px; top:5px; width:72px; height:22px; ">
  260. <caption>고객별검사</caption>
  261. <script type="javascript" ev:event="DOMActivate">
  262. <![CDATA[
  263. model.toggle("case_pid");
  264. btn_pid.selected = true;
  265. btn_exam.selected = false;
  266. btn_tag.selected = false;
  267. caption21.visible = false;
  268. cmb_examroom.visible = false;
  269. caption1.visible = true;
  270. ipt_srchpid.visible = true;
  271. btn_srchpat.visible = true;
  272. opt_srchpnm.visible = true;
  273. caption2.visible = false;
  274. input1.visible = false;
  275. ]]>
  276. </script>
  277. </button>
  278. <button id="button2" class="btn2_letter5" style="left:155px; top:0px; width:75px; height:19px; ">
  279. <caption>대기자조회</caption>
  280. <script type="javascript" ev:event="DOMActivate">
  281. <![CDATA[
  282. fGetWaitList();
  283. ]]>
  284. </script>
  285. </button>
  286. <switch id="sw_rfid" style="left:235px; top:25px; width:587px; height:391px; ">
  287. <case id="case_examroom" selected="true">
  288. <datagrid id="grd_roomlst" nodeset="/root/main/examrmlst/item" caption="선택^고객번호^고객명^태그번호^등록시간^접수시간^검사번호^방번호^기관코드" colsep="^" colwidth="36, 100, 177, 82, 145, 66, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:25px; width:583px; height:360px; ">
  289. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  290. <col ref="pid"/>
  291. <col ref="pidnm" style="left:200px; top:23px; width:100px; height:23px; "/>
  292. <col ref="tagno"/>
  293. <col ref="regroomdate" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  294. <col ref="rtime" visibility="hidden" style="left:566px; top:23px; width:105px; height:23px; "/>
  295. <col ref="examid" visibility="hidden"/>
  296. <col ref="examroomid" visibility="hidden"/>
  297. <col ref="hoscode" visibility="hidden"/>
  298. </datagrid>
  299. <caption id="caption3" class="tit_2" style="left:5px; top:5px; width:144px; height:13px; ">검사실대기리스트</caption>
  300. <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:583px; y2:20px; "/>
  301. </case>
  302. <case id="case_pid">
  303. <datagrid id="grd_examlst" nodeset="/root/main/pidexamlst/item" caption="선택^방번호^검사명^검사일^완료여부^완료시간^접수시간^등록번호^검사번호" colsep="^" colwidth="36, 79, 139, 85, 64, 138, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:25px; width:583px; height:360px; ">
  304. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  305. <col ref="examroomid"/>
  306. <col ref="examnm"/>
  307. <col ref="examorddd" format="yyyy-mm-dd" style="text-align:center; "/>
  308. <col disabled="true" ref="finyn" type="combo">
  309. <choices>
  310. <item>
  311. <label>검사종료</label>
  312. <value>Y</value>
  313. </item>
  314. <item>
  315. <label>검사중</label>
  316. <value>N</value>
  317. </item>
  318. </choices>
  319. </col>
  320. <col ref="findate" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  321. <col ref="rtime" visibility="hidden"/>
  322. <col ref="pid" visibility="hidden"/>
  323. <col ref="examid" visibility="hidden"/>
  324. <script type="javascript" ev:event="onclick">
  325. <![CDATA[
  326. var row = grd_examlst.row;
  327. var col = grd_examlst.col;
  328. if(col == grd_examlst.colRef("sel")) {
  329. var chk = grd_examlst.valueMatrix(row,grd_examlst.colRef("sel"));
  330. var finyn = grd_examlst.valueMatrix(row,grd_examlst.colRef("finyn"));
  331. if(chk == "Y" && finyn == "Y") {
  332. messageBox("검사종료 된 검사가" ,"E005");
  333. grd_examlst.valueMatrix(row,grd_examlst.colRef("sel")) = "N";
  334. }
  335. }
  336. ]]>
  337. </script>
  338. </datagrid>
  339. <caption id="caption7" class="tit_2" style="left:5px; top:5px; width:144px; height:13px; ">고객별검사항목</caption>
  340. <line id="line4" class="line_1" style="x1:0px; y1:20px; x2:583px; y2:20px; "/>
  341. </case>
  342. <case id="case_tag">
  343. <datagrid id="datagrid4" nodeset="/root/main/taglst/item" caption="선택^고객번호^고객명^태그번호^지급상태^지급시간^반납시간" colsep="^" colwidth="36, 67, 95, 62, 62, 109, 115" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:25px; width:583px; height:361px; ">
  344. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  345. <col ref="pid"/>
  346. <col ref="pidnm" style="left:200px; top:23px; width:100px; height:23px; "/>
  347. <col ref="tagno"/>
  348. <col disabled="true" ref="suppstat" type="combo">
  349. <choices>
  350. <item>
  351. <label>지급</label>
  352. <value>0</value>
  353. </item>
  354. <item>
  355. <label>반납</label>
  356. <value>1</value>
  357. </item>
  358. </choices>
  359. </col>
  360. <col ref="supptime" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  361. <col ref="retutime" format="yyyy-mm-dd hh:nn:ss"/>
  362. </datagrid>
  363. <caption id="caption5" class="tit_2" style="left:5px; top:5px; width:144px; height:13px; ">태그지급정보</caption>
  364. <line id="line3" class="line_1" style="x1:0px; y1:20px; x2:583px; y2:20px; "/>
  365. </case>
  366. </switch>
  367. <button id="button1" class="btn2_letter4" style="left:752px; top:5px; width:64px; height:19px; ">
  368. <caption>검사완료</caption>
  369. <script type="javascript" ev:event="DOMActivate">
  370. <![CDATA[
  371. fSetExamEnd();
  372. ]]>
  373. </script>
  374. </button>
  375. </group>
  376. <group id="group4" scroll="auto" style="left:0px; top:479px; width:822px; height:27px; "/>
  377. <group id="group6" style="left:0px; top:16px; width:821px; height:35px; vertical-align:top; ">
  378. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:819px; height:35px; "/>
  379. <button id="btn_search" class="btn1_letter2" style="left:732px; top:7px; width:56px; height:22px; ">
  380. <caption>조회</caption>
  381. <script type="javascript" ev:event="DOMActivate">
  382. <![CDATA[
  383. copyNodesetType("/root/send/rfid","/root/init/send","replace");
  384. fGetRfidList();
  385. fSaveInit();
  386. ]]>
  387. </script>
  388. </button>
  389. <line id="line18" class="line_4" style="x1:716px; y1:7px; x2:716px; y2:29px; border-left-style:solid; "/>
  390. <caption id="caption59" class="search_name" style="left:6px; top:8px; width:86px; height:17px; ">건진일자 :</caption>
  391. <caption id="caption21" class="search_name" style="left:215px; top:8px; width:86px; height:17px; ">검사실명 :</caption>
  392. <caption id="caption1" class="search_name" style="left:215px; top:8px; width:89px; height:17px; ">등록번호 :</caption>
  393. <caption id="caption2" class="search_name" style="left:215px; top:8px; width:89px; height:17px; ">태그번호 :</caption>
  394. <input id="ipt_ordddate" ref="/root/init/send/srchorddd" class="input_s_essential" inputtype="date" style="left:97px; top:8px; width:100px; height:19px; text-align:center; "/>
  395. <select1 id="cmb_examroom" ref="/root/init/send/srchexamroom" class="combo_default" appearance="minimal" style="left:308px; top:8px; width:136px; height:19px; ">
  396. <choices>
  397. <itemset nodeset="/root/init/room/roomlst/itemroom">
  398. <label ref="examroomnm"/>
  399. <value ref="examroomid"/>
  400. </itemset>
  401. </choices>
  402. </select1>
  403. <input id="input1" ref="/root/init/send/srchtagno" style="left:310px; top:8px; width:105px; height:19px; "/>
  404. <input id="ipt_srchpid" ref="/root/init/send/srchpid" class="input_search" imemode="hangul" style="left:305px; top:8px; width:100px; height:19px; ">
  405. <script type="javascript" ev:event="onkeyup">
  406. <![CDATA[
  407. inputEnterKey("btn_srchpat", "DOMActivate");
  408. ]]>
  409. </script>
  410. </input>
  411. <button id="btn_srchpat" class="icon_search" style="left:410px; top:10px; width:16px; height:16px; ">
  412. <caption/>
  413. <script type="javascript" ev:event="DOMActivate">
  414. <![CDATA[
  415. fSearchPatInfo("SMAHA00100", "pid", ipt_srchpid.currentText , "N", "/root/send" ,ipt_srchpid.attribute("ref"), opt_srchpnm.attribute("ref") );
  416. ]]>
  417. </script>
  418. </button>
  419. <output id="opt_srchpnm" ref="/root/init/send/srchpnm" class="output_fix" style="left:430px; top:8px; width:115px; height:19px; "/>
  420. </group>
  421. </xhtml:body>
  422. </xhtml:html>