SPLVJ90100_판독대기자리스트조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLVJ90100_판독자대기리스트.xrw
  4. * 설 명 : 판독자대기리스트
  5. * 설 계 자 : (주)에이씨케이 - 송요셉
  6. * 작 성 자 : (주)에이씨케이 - 송요셉
  7. * 작 성 일 : 2007.09.04
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  13. <xhtml:head>
  14. <xhtml:title>SPLVJ90100</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <waitlist>
  20. <pid/>
  21. <patnm/>
  22. <flag/>
  23. <state/>
  24. <orddeptnm/>
  25. <wardnm/>
  26. <orddd/>
  27. <readstat/>
  28. </waitlist>
  29. <readlist>
  30. <reptnm/>
  31. <printnm/>
  32. <printtm/>
  33. <pid/>
  34. <patnm/>
  35. <flag/>
  36. <orddeptnm/>
  37. <wardnm/>
  38. </readlist>
  39. </main>
  40. <send>
  41. <codeflag/>
  42. <testlrgcd/>
  43. <keyword/>
  44. <readsno/>
  45. <readeno/>
  46. </send>
  47. <init>
  48. </init>
  49. <hidden>
  50. <ref>
  51. <testlrgcd>00</testlrgcd>
  52. <search>1</search>
  53. <keyword/>
  54. <readsno/>
  55. <readeno/>
  56. </ref>
  57. </hidden>
  58. </root>
  59. </instance>
  60. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. var toDay = getCurrentDate();
  66. model.setValue("/root/hidden/ref/readsno", toDay);
  67. model.setValue("/root/hidden/ref/readeno", toDay);
  68. model.setValue("/root/send/codeflag", "0104|"); //0104 대분류
  69. submit("TRLZZ00101");
  70. //submit("TRLVJ90101");
  71. freadwaitlist(1);
  72. ]]>
  73. </script>
  74. <submission id="TRLVJ90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/waitlist"/>
  75. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB"/>
  76. <submission id="TRLVJ90102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/readlist"/>
  77. </model>
  78. <script type="javascript">
  79. <![CDATA[
  80. function fExeCancel(){
  81. window.close();
  82. }
  83. function freadwaitlist(flag){
  84. if(flag == 1){
  85. waitlist.rebuildStyle();
  86. model.setValue("/root/send/testlrgcd", model.getValue("/root/hidden/ref/testlrgcd"));
  87. submit("TRLVJ90101");
  88. for(i = 1; i < waitlist.rows; i++){
  89. if(model.getValue("/root/main/waitlist[" + i + "]/readstat") == "0"){
  90. waitlist.rowStyle(i, "data", "background-color") = "#f3e1bf";
  91. }
  92. }
  93. //model.refresh();
  94. }
  95. else{
  96. model.setValue("/root/send/codeflag" , model.getValue("/root/hidden/ref/search"));
  97. model.setValue("/root/send/keyword" , model.getValue("/root/hidden/ref/keyword"));
  98. model.setValue("/root/send/readsno" , model.getValue("/root/hidden/ref/readsno"));
  99. model.setValue("/root/send/readeno" , model.getValue("/root/hidden/ref/readeno"));
  100. submit("TRLVJ90102");
  101. }
  102. }
  103. function fwaitlistclick(){
  104. var row = waitlist.row;
  105. fUpPatinfo();
  106. window.opener.model.setValue("/root/hidden/ref/pid", model.getValue("/root/main/waitlist["+row+"]/pid"));
  107. window.opener.model.setValue("/root/hidden/ref/orddd", model.getValue("/root/main/waitlist["+row+"]/orddd"));
  108. window.opener.javascript.fgetreadrsltlist(1);
  109. freadwaitlist(1); // 재조회
  110. }
  111. function freadlistclick(){
  112. var row = readlist.row;
  113. fUpPatinfo2();
  114. window.opener.model.setValue("/root/hidden/ref/pid", model.getValue("/root/main/readlist["+row+"]/pid"));
  115. window.opener.model.setValue("/root/hidden/ref/orddd", model.getValue("/root/main/readlist["+row+"]/orddd"));
  116. window.opener.javascript.fgetreadrsltlist();
  117. }
  118. function fUpPatinfo(){
  119. var row = waitlist.row;
  120. var prcpkey = model.getValue("/root/main/waitlist["+row+"]/prcpkey");
  121. var prcpkeycnt = prcpkey.indexOf("/");
  122. if(getPatientInfo("pid") != model.getValue("/root/main/waitlist["+row+"]/pid")) {
  123. if(row> 1){
  124. setParameter("errflag", "Y");
  125. setParameter("condparam", "S" + "▦" + prcpkey.substring(0,8) + "▦"
  126. + prcpkey.substring(9) + "▦"
  127. + model.getvalue("/root/main/waitlist["+row+"]/instcd") );
  128. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  129. }
  130. var paminfo = getGlobalVariable("paminfo");
  131. if((paminfo.length < 0) || (getPatientInfo("pid") != model.getValue("/root/main/waitlist["+row+"]/pid"))){ //상단정보가 없는 경우
  132. delPatientInfos(); //환자정보 전체 삭제
  133. var pid = model.getValue("/root/main/waitlist["+row+"]/pid")
  134. var hngnm = model.getValue("/root/main/waitlist["+row+"]/patnm");
  135. //상단에 올릴 수 있는 정보가 있으면 아래와 같이 설정해 주시면 됩니다. 없으면 안 해주셔도 되구요..
  136. setPatientInfo("pid" , pid); //등록번호
  137. setPatientInfo("pname" , pid + "|" + hngnm); //환자명
  138. }
  139. }
  140. }
  141. function fUpPatinfo2(){
  142. var row = readlist.row;
  143. var prcpkey = model.getValue("/root/main/readlist["+row+"]/prcpkey");
  144. var prcpkeycnt = prcpkey.indexOf("/");
  145. if(getPatientInfo("pid") != model.getValue("/root/main/readlist["+row+"]/pid")) {
  146. if(row> 1){
  147. setParameter("errflag", "Y");
  148. setParameter("condparam", "S" + "▦" + prcpkey.substring(0,8) + "▦"
  149. + prcpkey.substring(9) + "▦"
  150. + model.getvalue("/root/main/readlist["+row+"]/instcd") );
  151. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  152. }
  153. var paminfo = getGlobalVariable("paminfo");
  154. if((paminfo.length < 0) || (getPatientInfo("pid") != model.getValue("/root/main/readlist["+row+"]/pid"))){ //상단정보가 없는 경우
  155. delPatientInfos(); //환자정보 전체 삭제
  156. var pid = model.getValue("/root/main/readlist["+row+"]/pid")
  157. var hngnm = model.getValue("/root/main/readlist["+row+"]/patnm");
  158. //상단에 올릴 수 있는 정보가 있으면 아래와 같이 설정해 주시면 됩니다. 없으면 안 해주셔도 되구요..
  159. setPatientInfo("pid" , pid); //등록번호
  160. setPatientInfo("pname" , pid + "|" + hngnm); //환자명
  161. }
  162. }
  163. }
  164. ]]>
  165. </script>
  166. </xhtml:head>
  167. <xhtml:body pagewidth="430" pageheight="780" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  168. <group id="group1" style="left:0px; top:13px; width:405px; height:720px; ">
  169. <button id="button4" class="btn_sw" group="tab" style="left:0px; top:5px; width:200px; height:22px; ">
  170. <caption>대기자목록</caption>
  171. <toggle case="case1" ev:event="onclick"/>
  172. </button>
  173. <button id="button7" class="btn_sw" group="tab" style="left:200px; top:5px; width:200px; height:22px; ">
  174. <caption>판독완료목록</caption>
  175. <toggle case="case2" ev:event="onclick"/>
  176. </button>
  177. <switch id="switch1" style="left:0px; top:27px; width:400px; height:683px; ">
  178. <case id="case1" style="left:0px; top:0px; width:400px; height:683px; ">
  179. <group id="group2" style="left:0px; top:5px; width:400px; height:35px; ">
  180. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:400px; height:35px; "/>
  181. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:104px; height:17px; ">검사대분류 :</caption>
  182. <select1 id="testlrgcd" ref="/root/hidden/ref/testlrgcd" appearance="minimal" itemcount="10" style="left:121px; top:8px; width:184px; height:19px; ">
  183. <choices>
  184. <itemset nodeset="/root/init/LB0104">
  185. <label ref="nm"/>
  186. <value ref="cd"/>
  187. </itemset>
  188. </choices>
  189. </select1>
  190. <button id="button3" class="btn1_letter2" style="left:333px; top:7px; width:56px; height:22px; ">
  191. <caption>조회</caption>
  192. <script type="javascript" ev:event="DOMActivate">
  193. <![CDATA[
  194. freadwaitlist(1);
  195. ]]>
  196. </script>
  197. </button>
  198. <line id="line3" class="line_4" style="x1:323px; y1:7px; x2:323px; y2:29px; "/>
  199. </group>
  200. <caption id="caption3" class="tit_2" style="left:0px; top:50px; width:131px; height:13px; ">대기자목록</caption>
  201. <datagrid id="waitlist" nodeset="/root/main/waitlist" caption="등록번호^성명^구분^상태^진료과^병동^orddd" colsep="^" colwidth="80, 80, 35, 35, 95, 94, 75, 100, 100" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:70px; width:400px; height:605px; ">
  202. <col ref="pid"/>
  203. <col ref="patnm"/>
  204. <col ref="flag" visibility="hidden"/>
  205. <col ref="state" visibility="hidden"/>
  206. <col ref="orddeptnm"/>
  207. <col ref="wardnm"/>
  208. <col ref="orddd" visibility="hidden"/>
  209. <col ref="prcpkey" visibility="hidden"/>
  210. <col ref="instcd" visibility="hidden"/>
  211. <script type="javascript" ev:event="ondblclick">
  212. <![CDATA[
  213. if(waitlist.isCell(event.target) && waitlist.row >= waitlist.fixedRows ){
  214. //waitlist.rowStyle(waitlist.row, "data", "background-color") = "#f3e1bf";
  215. fwaitlistclick(1);
  216. }
  217. ]]>
  218. </script>
  219. <script type="javascript" ev:event="onaftersort">
  220. <![CDATA[
  221. waitlist.gridToInstance();
  222. ]]>
  223. </script>
  224. </datagrid>
  225. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:400px; y2:65px; "/>
  226. </case>
  227. <case id="case2" selected="true" style="left:0px; top:0px; width:400px; height:663px; ">
  228. <group id="group4" style="left:0px; top:5px; width:400px; height:70px; ">
  229. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:400px; height:70px; "/>
  230. <caption id="caption4" class="search_name" style="left:15px; top:9px; width:104px; height:17px; ">검색구분 :</caption>
  231. <select1 id="combo1" ref="/root/hidden/ref/search" appearance="minimal" itemcount="10" style="left:106px; top:8px; width:84px; height:19px; ">
  232. <choices>
  233. <item>
  234. <label>검증번호</label>
  235. <value>1</value>
  236. </item>
  237. <item>
  238. <label>등록번호</label>
  239. <value>2</value>
  240. </item>
  241. <item>
  242. <label>성명</label>
  243. <value>3</value>
  244. </item>
  245. </choices>
  246. </select1>
  247. <button id="button1" class="btn1_letter2" style="left:333px; top:37px; width:56px; height:22px; ">
  248. <caption>조회</caption>
  249. <script type="javascript" ev:event="DOMActivate">
  250. <![CDATA[
  251. freadwaitlist(2);
  252. ]]>
  253. </script>
  254. </button>
  255. <line id="line4" class="line_4" style="x1:323px; y1:7px; x2:323px; y2:64px; "/>
  256. <input id="input1" ref="/root/hidden/ref/keyword" style="left:195px; top:8px; width:120px; height:19px; "/>
  257. <caption id="caption5" class="search_name" style="left:15px; top:39px; width:116px; height:17px; ">보고일자 :</caption>
  258. <caption id="caption11" class="search_n_b" style="left:205px; top:39px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  259. <input id="ipt_usdt" ref="/root/hidden/ref/readsno" class="input_s_essential" inputtype="date" style="left:107px; top:38px; width:93px; height:19px; "/>
  260. <input id="input2" ref="/root/hidden/ref/readeno" class="input_s_essential" inputtype="date" style="left:222px; top:38px; width:93px; height:19px; "/>
  261. </group>
  262. <caption id="caption6" class="tit_2" style="left:0px; top:85px; width:131px; height:14px; ">판독완료목록</caption>
  263. <datagrid id="readlist" nodeset="/root/main/readlist" caption="보고자^출력자^출력시간^등록번호^성명^구분^진료과^병동" colsep="^" colwidth="75, 75, 100, 75, 75, 75, 75, 100, 100, 100, 100" dataheight="23" defaultrows="1" ellipsis="true" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:105px; width:400px; height:550px; ">
  264. <col ref="reptnm"/>
  265. <col ref="printnm"/>
  266. <col ref="printtm" format="yyyy-mm-dd-hh:nn"/>
  267. <col ref="pid"/>
  268. <col ref="patnm"/>
  269. <col ref="flag"/>
  270. <col ref="orddeptnm"/>
  271. <col ref="wardnm"/>
  272. <col ref="orddd" visibility="hidden"/>
  273. <col ref="prcpkey" visibility="hidden"/>
  274. <col ref="instcd" visibility="hidden"/>
  275. <script type="javascript" ev:event="ondblclick">
  276. <![CDATA[
  277. if(readlist.isCell(event.target) && readlist.row >= readlist.fixedRows ){
  278. freadlistclick();
  279. }
  280. ]]>
  281. </script>
  282. <script type="javascript" ev:event="onaftersort">
  283. <![CDATA[
  284. readlist.gridToInstance();
  285. ]]>
  286. </script>
  287. </datagrid>
  288. <line id="line5" class="line_1" style="x1:0px; y1:100px; x2:400px; y2:100px; "/>
  289. </case>
  290. </switch>
  291. </group>
  292. <group id="group3" style="left:0px; top:736px; width:400px; height:27px; ">
  293. <line id="line2" class="line_6" style="x1:0px; y1:0px; x2:399px; y2:0px; "/>
  294. <button id="button5" class="btn4_letter2" style="left:344px; top:5px; width:56px; height:22px; ">
  295. <caption>닫기</caption>
  296. <script type="javascript" ev:event="DOMActivate">
  297. <![CDATA[
  298. fExeCancel();
  299. ]]>
  300. </script>
  301. </button>
  302. </group>
  303. <group id="grp_tle" style="left:0px; top:0px; width:400px; height:13px; ">
  304. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:121px; height:14px; ">판독대기자조회</caption>
  305. </group>
  306. </xhtml:body>
  307. </xhtml:html>