SMAHR00100_검사진행관리.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  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. model.refresh();
  111. }
  112. /***********************************************************************************************************************
  113. *RFID 진행정보를 조회한다.
  114. ************************************************************************************************************************/
  115. function fGetRfidList() {
  116. var ret = false;
  117. var sel = sw_rfid.selectedIndex;
  118. switch(sel) {
  119. case 0: ret = fGetExamRooList(); break;
  120. case 1: ret = fGetPidExamList(); break;
  121. case 2: ret = fGetTagList(); break;
  122. default: break;
  123. }
  124. if(ret) fGetWaitList();
  125. }
  126. /***********************************************************************************************************************
  127. *검사실별 대기자 정보를 조회
  128. ************************************************************************************************************************/
  129. function fGetExamRooList() {
  130. var ret = submit("TRAHR00102");
  131. return ret;
  132. }
  133. /***********************************************************************************************************************
  134. *환자별 검사정보를 조회
  135. ************************************************************************************************************************/
  136. function fGetPidExamList() {
  137. var pid = model.getValue("/root/send/rfid/srchpid");
  138. if(pid == "") {
  139. messageBox("환자번호를","C001");
  140. }else {
  141. var ret = submit("TRAHR00103");
  142. }
  143. return ret;
  144. }
  145. /***********************************************************************************************************************
  146. *태그지급 정보를 조회
  147. ************************************************************************************************************************/
  148. function fGetTagList() {
  149. var ret = submit("TRAHR00104");
  150. return ret;
  151. }
  152. /***********************************************************************************************************************
  153. *검사실별 대기인원 정보 조회
  154. ************************************************************************************************************************/
  155. function fGetWaitList() {
  156. submit("TRAHR00105");
  157. }
  158. /***********************************************************************************************************************
  159. *검사실별 대기인원 정보 조회
  160. ************************************************************************************************************************/
  161. function fSetExamEnd() {
  162. var sel = sw_rfid.selectedIndex;
  163. var ret = false;
  164. if(sel == 0) {
  165. var nodeList = instance1.selectNodes(grd_roomlst.nodeset + "[sel='Y']");
  166. var rCSV = getNodeListCSV(nodeList);
  167. model.setValue("/root/send/save/room",rCSV);
  168. model.setValue("/root/send/save/exam","");
  169. ret = submit("TXAHR00101");
  170. }else if(sel == 1) {
  171. var nodeList = instance1.selectNodes(grd_examlst.nodeset + "[sel='Y']");
  172. var rCSV = getNodeListCSV(nodeList);
  173. model.setValue("/root/send/save/room","");
  174. model.setValue("/root/send/save/exam",rCSV);
  175. ret = submit("TXAHR00101");
  176. }
  177. if(ret) {
  178. fGetRfidList();
  179. fSaveInit();
  180. }
  181. }
  182. /***********************************************************************************************************************
  183. *검사완료 목록 초기화
  184. ************************************************************************************************************************/
  185. function fSaveInit() {
  186. model.resetInstanceNode("/root/send/save");
  187. }
  188. ]]>
  189. </script>
  190. <submission id="TRAHR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send" resultref="/root/init/room/roomlst"/>
  191. <submission id="TRAHR00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rfid" resultref="/root/main/pidexamlst"/>
  192. <submission id="TRAHR00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rfid" resultref="/root/main/examrmlst"/>
  193. <submission id="TRAHR00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rfid" resultref="/root/main/taglst"/>
  194. <submission id="TRAHR00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send" resultref="/root/main/waitlst"/>
  195. <submission id="TXAHR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
  196. </model>
  197. </xhtml:head>
  198. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  199. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  200. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:98px; height:14px; ">검사진행관리</caption>
  201. </group>
  202. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  203. <group id="group6" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  204. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  205. <button id="btn_search" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; ">
  206. <caption>조회</caption>
  207. <script type="javascript" ev:event="DOMActivate">
  208. <![CDATA[
  209. copyNodesetType("/root/send/rfid","/root/init/send","replace");
  210. fGetRfidList();
  211. fSaveInit();
  212. ]]>
  213. </script>
  214. </button>
  215. <line id="line18" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:29px; border-left-style:solid; "/>
  216. <caption id="caption59" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">건진일자 :</caption>
  217. <caption id="caption21" class="search_name" style="left:250px; top:8px; width:86px; height:17px; ">검사실명 :</caption>
  218. <caption id="caption1" class="search_name" style="left:505px; top:8px; width:89px; height:17px; ">등록번호 :</caption>
  219. <caption id="caption2" class="search_name" style="left:855px; top:8px; width:89px; height:17px; ">태그번호 :</caption>
  220. <input id="ipt_ordddate" ref="/root/init/send/srchorddd" class="input_s_essential" inputtype="date" style="left:107px; top:8px; width:115px; height:19px; "/>
  221. <select1 id="cmb_examroom" ref="/root/init/send/srchexamroom" class="combo_default" appearance="minimal" style="left:343px; top:8px; width:136px; height:19px; ">
  222. <choices>
  223. <itemset nodeset="/root/init/room/roomlst/itemroom">
  224. <label ref="examroomnm"/>
  225. <value ref="examroomid"/>
  226. </itemset>
  227. </choices>
  228. </select1>
  229. <input id="input1" ref="/root/init/send/srchtagno" style="left:950px; top:8px; width:105px; height:19px; "/>
  230. <input id="ipt_srchpid" ref="/root/init/send/srchpid" class="input_search" imemode="hangul" style="left:595px; top:8px; width:100px; height:19px; ">
  231. <script type="javascript" ev:event="onkeyup">
  232. <![CDATA[
  233. inputEnterKey("btn_srchpat", "DOMActivate");
  234. ]]>
  235. </script>
  236. </input>
  237. <button id="btn_srchpat" class="icon_search" style="left:700px; top:10px; width:16px; height:16px; ">
  238. <caption/>
  239. <script type="javascript" ev:event="DOMActivate">
  240. <![CDATA[
  241. fSearchPatInfo("SMAHA00100", "pid", ipt_srchpid.currentText , "N", "/root/send" ,ipt_srchpid.attribute("ref"), opt_srchpnm.attribute("ref") );
  242. ]]>
  243. </script>
  244. </button>
  245. <output id="opt_srchpnm" ref="/root/init/send/srchpnm" class="output_fix" style="left:720px; top:8px; width:115px; height:19px; "/>
  246. </group>
  247. <line id="line20" class="line_1" style="x1:0px; y1:70px; x2:330px; y2:70px; "/>
  248. <caption id="caption4" class="tit_2" style="left:0px; top:55px; width:144px; height:14px; ">검사실대기인원</caption>
  249. <datagrid id="datagrid1" nodeset="/root/main/waitlst/item" caption="검사실코드^검사실명^대기인원" colsep="^" colwidth="90, 150, 88" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:75px; width:330px; height:663px; ">
  250. <col ref="examroomid"/>
  251. <col ref="examroomnm"/>
  252. <col ref="waitpsnno"/>
  253. </datagrid>
  254. <switch id="sw_rfid" style="left:335px; top:71px; width:854px; height:667px; ">
  255. <case id="case_examroom" selected="true">
  256. <line id="line1" class="line_1" style="x1:5px; y1:25px; x2:846px; y2:25px; "/>
  257. <caption id="caption3" class="tit_2" style="left:5px; top:10px; width:144px; height:14px; ">검사실대기리스트</caption>
  258. <datagrid id="grd_roomlst" nodeset="/root/main/examrmlst/item" caption="선택^고객번호^고객명^태그번호^등록시간^접수시간^검사번호^방번호^기관코드" colsep="^" colwidth="100, 170, 170, 170, 206, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:30px; width:841px; height:630px; ">
  259. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  260. <col ref="pid"/>
  261. <col ref="pidnm" style="left:200px; top:23px; width:100px; height:23px; "/>
  262. <col ref="tagno"/>
  263. <col ref="regroomdate" format="yyyy-mm-dd hh:nn:ss"/>
  264. <col ref="rtime" visibility="hidden" style="left:566px; top:23px; width:105px; height:23px; "/>
  265. <col ref="examid" visibility="hidden"/>
  266. <col ref="examroomid" visibility="hidden"/>
  267. <col ref="hoscode" visibility="hidden"/>
  268. </datagrid>
  269. <button id="btn_choisel" class="btn2_letter4" style="left:782px; top:5px; width:841px; height:0px; ">
  270. <caption>검사완료</caption>
  271. <script type="javascript" ev:event="DOMActivate">
  272. <![CDATA[
  273. fSetExamEnd();
  274. ]]>
  275. </script>
  276. </button>
  277. </case>
  278. <case id="case_pid">
  279. <datagrid id="grd_examlst" nodeset="/root/main/pidexamlst/item" caption="선택^방번호^검사명^검사일^완료여부^완료시간^접수시간^등록번호^검사번호" colsep="^" colwidth="100, 130, 150, 150, 100, 186, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:30px; width:841px; height:630px; ">
  280. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  281. <col ref="examroomid"/>
  282. <col ref="examnm"/>
  283. <col ref="examorddd"/>
  284. <col disabled="true" ref="finyn" type="combo">
  285. <choices>
  286. <item>
  287. <label>검사종료</label>
  288. <value>Y</value>
  289. </item>
  290. <item>
  291. <label>검사중</label>
  292. <value>N</value>
  293. </item>
  294. </choices>
  295. </col>
  296. <col ref="findate" format="yyyy-mm-dd hh:nn:ss"/>
  297. <col ref="rtime" visibility="hidden"/>
  298. <col ref="pid" visibility="hidden"/>
  299. <col ref="examid" visibility="hidden"/>
  300. <script type="javascript" ev:event="onclick">
  301. <![CDATA[
  302. var row = grd_examlst.row;
  303. var col = grd_examlst.col;
  304. if(col == grd_examlst.colRef("sel")) {
  305. var chk = grd_examlst.valueMatrix(row,grd_examlst.colRef("sel"));
  306. var finyn = grd_examlst.valueMatrix(row,grd_examlst.colRef("finyn"));
  307. if(chk == "Y" && finyn == "Y") {
  308. messageBox("검사종료 된 검사가" ,"E005");
  309. grd_examlst.valueMatrix(row,grd_examlst.colRef("sel")) = "N";
  310. }
  311. }
  312. ]]>
  313. </script>
  314. </datagrid>
  315. <caption id="caption7" class="tit_2" style="left:5px; top:10px; width:144px; height:14px; ">고객별검사항목</caption>
  316. <line id="line2" class="line_1" style="x1:5px; y1:25px; x2:846px; y2:25px; "/>
  317. <button id="button1" class="btn2_letter4" style="left:782px; top:5px; width:841px; height:0px; ">
  318. <caption>검사완료</caption>
  319. <script type="javascript" ev:event="DOMActivate">
  320. <![CDATA[
  321. fSetExamEnd();
  322. ]]>
  323. </script>
  324. </button>
  325. <line id="line4" class="line_1" style="x1:5px; y1:25px; x2:846px; y2:25px; "/>
  326. </case>
  327. <case id="case_tag">
  328. <datagrid id="datagrid4" nodeset="/root/main/taglst/item" caption="선택^고객번호^고객명^태그번호^지급상태^지급시간^반납시간" colsep="^" colwidth="100, 100, 118, 100, 100, 150, 150" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:30px; width:841px; height:630px; ">
  329. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  330. <col ref="pid"/>
  331. <col ref="pidnm" style="left:200px; top:23px; width:100px; height:23px; "/>
  332. <col ref="tagno"/>
  333. <col disabled="true" ref="suppstat" type="combo">
  334. <choices>
  335. <item>
  336. <label>지급</label>
  337. <value>0</value>
  338. </item>
  339. <item>
  340. <label>반납</label>
  341. <value>1</value>
  342. </item>
  343. </choices>
  344. </col>
  345. <col ref="supptime" format="yyyy-mm-dd hh:nn:ss"/>
  346. <col ref="retutime" format="yyyy-mm-dd hh:nn:ss"/>
  347. </datagrid>
  348. <line id="line3" class="line_1" style="x1:5px; y1:25px; x2:846px; y2:25px; "/>
  349. <caption id="caption9" class="tit_2" style="left:5px; top:10px; width:144px; height:14px; ">태그지급정보</caption>
  350. </case>
  351. </switch>
  352. <button id="btn_tag" class="btn_sw" group="tab" selected="true" style="left:503px; top:50px; width:72px; height:22px; ">
  353. <caption>태그지급</caption>
  354. <script type="javascript" ev:event="DOMActivate">
  355. <![CDATA[
  356. model.toggle("case_tag");
  357. btn_tag.selected = true;
  358. ]]>
  359. </script>
  360. </button>
  361. <button id="btn_exam" class="btn_sw" group="tab" selected="true" style="left:335px; top:50px; width:96px; height:22px; ">
  362. <caption>검사대기</caption>
  363. <script type="javascript" ev:event="DOMActivate">
  364. <![CDATA[
  365. model.toggle("case_examroom");
  366. btn_exam.selected = true;
  367. ]]>
  368. </script>
  369. </button>
  370. <button id="btn_pid" class="btn_sw" group="tab" selected="true" style="left:431px; top:50px; width:72px; height:22px; ">
  371. <caption>고객별검사</caption>
  372. <script type="javascript" ev:event="DOMActivate">
  373. <![CDATA[
  374. model.toggle("case_pid");
  375. btn_pid.selected = true;
  376. ]]>
  377. </script>
  378. </button>
  379. <button id="button2" class="btn2_letter5" style="left:255px; top:50px; width:75px; height:19px; ">
  380. <caption>대기자조회</caption>
  381. <script type="javascript" ev:event="DOMActivate">
  382. <![CDATA[
  383. fGetWaitList();
  384. ]]>
  385. </script>
  386. </button>
  387. </group>
  388. <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; "/>
  389. </xhtml:body>
  390. </xhtml:html>