SMMRI01200_미비현황조회.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <cond>
  11. <unpredd/>
  12. <dschdd/>
  13. <fromdd/>
  14. <todd/>
  15. <dschfromdd/>
  16. <dschtodd/>
  17. <unpredeptcd/>
  18. <indschdeptcd/>
  19. <unpredr/>
  20. <drkind/>
  21. </cond>
  22. <unpreplist>
  23. <unpreplist>
  24. <deptnm/>
  25. <doctkindflag/>
  26. <unprepdrnm/>
  27. <pid/>
  28. <patnm/>
  29. <cnt/>
  30. <indd/>
  31. <dschdd/>
  32. <dschdept/>
  33. <indx/>
  34. </unpreplist>
  35. </unpreplist>
  36. </main>
  37. <send>
  38. <reqdata/>
  39. </send>
  40. <init>
  41. <orddept/>
  42. <userlist/>
  43. <unpredrkind>
  44. <row>
  45. <cdnm>Total</cdnm>
  46. <cdid>T</cdid>
  47. </row>
  48. <row>
  49. <cdnm>Staff</cdnm>
  50. <cdid>St</cdid>
  51. </row>
  52. <row>
  53. <cdnm>Resident</cdnm>
  54. <cdid>R</cdid>
  55. </row>
  56. <row>
  57. <cdnm>Intern</cdnm>
  58. <cdid>I</cdid>
  59. </row>
  60. </unpredrkind>
  61. </init>
  62. </root>
  63. </instance>
  64. <script type="javascript" ev:event="xforms-ready">
  65. <![CDATA[
  66. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "A");
  67. addComboItem("cmb_indschdeptcd", "전체", "-", "above");
  68. addComboItem("cmb_unpredr", "전체", "-", "above");
  69. model.removeNodeset("/root/main/unpreplist");
  70. // model.setValue("/root/main/cond/fromdd", getCurrentDate());
  71. // model.setValue("/root/main/cond/todd" , getCurrentDate());
  72. // model.setValue("/root/main/cond/dschfromdd", getCurrentDate());
  73. // model.setValue("/root/main/cond/dschtodd" , getCurrentDate());
  74. model.setValue("/root/main/cond/unpredeptcd", "-");
  75. model.setValue("/root/main/cond/indschdeptcd", "-");
  76. model.setValue("/root/main/cond/unpredr", "-");
  77. chk_drkind.select(0);
  78. model.refresh();
  79. ]]>
  80. </script>
  81. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  82. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  83. <submission id="TRMRI01200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/unpreplist"/>
  84. </model>
  85. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  88. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  89. </xhtml:head>
  90. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  91. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">미비현황조회</caption>
  92. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:20px; width:1194px; height:60px; "/>
  93. <button id="btn_req" class="btn1_letter2" style="left:1130px; top:40px; width:56px; height:22px; ">
  94. <caption>조회</caption>
  95. <script type="javascript" ev:event="DOMActivate">
  96. <![CDATA[
  97. var unpredd = model.getValue("/root/main/cond/unpredd");
  98. var dschdd = model.getValue("/root/main/cond/dschdd");
  99. var drkind = model.getValue("/root/main/cond/drkind");
  100. if(unpredd == "" && dschdd == ""){
  101. messageBox("조회기간을 ","C002");
  102. return false;
  103. }
  104. if(drkind == ""){
  105. messageBox("의사구분을 ","C002");
  106. return false;
  107. }
  108. model.copyNode("/root/send/reqdata", "/root/main/cond");
  109. submit("TRMRI01200");
  110. model.refresh();
  111. ]]>
  112. </script>
  113. </button>
  114. <line id="line5" style="x1:1110px; y1:28px; x2:1110px; y2:73px; border-color:#ffe4bb; border-left-style:solid; "/>
  115. <caption id="caption20" class="tit_2" style="left:3px; top:88px; width:108px; height:14px; ">미비현황조회</caption>
  116. <line id="line1" class="line_1" style="x1:0px; y1:106px; x2:1194px; y2:106px; "/>
  117. <datagrid id="grd_unpreplist" nodeset="/root/main/unpreplist/unpreplist" caption="미비과^구분^의사명^등록번호^환자명^회차^입원일^퇴원일^퇴원과^INDEX^인덱스" colsep="^" colwidth="100, 60, 100, 100, 100, 60, 100, 100, 100, 60" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:111px; width:1194px; height:655px; ">
  118. <col ref="deptnm"/>
  119. <col ref="doctkindflag"/>
  120. <col ref="unprepdrnm"/>
  121. <col ref="pid"/>
  122. <col ref="patnm"/>
  123. <col ref="cnt"/>
  124. <col ref="indd" format="yyyy-mm-dd"/>
  125. <col ref="dschdd" format="yyyy-mm-dd"/>
  126. <col ref="dschdept"/>
  127. <col ref="indx"/>
  128. </datagrid>
  129. <button id="btn_ex" class="btn2_letter2" style="left:1148px; top:84px; width:42px; height:19px; ">
  130. <caption>엑셀</caption>
  131. <script type="javascript" ev:event="DOMActivate">
  132. <![CDATA[
  133. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  134. if (fileName != ""){
  135. grd_unpreplist.saveExcel(fileName, "colhiddenextend:false;col_0:label;col_1:label;col_2:label;col_3:label;");
  136. }
  137. ]]>
  138. </script>
  139. </button>
  140. <caption id="caption7" class="search_name" style="left:345px; top:55px; width:86px; height:17px; ">퇴원과 :</caption>
  141. <caption id="caption8" style="left:224px; top:32px; width:15px; height:15px; ">~</caption>
  142. <caption id="caption9" class="search_name" style="left:30px; top:30px; width:99px; height:17px; ">미비입력일 :</caption>
  143. <caption id="caption1" style="left:224px; top:57px; width:15px; height:15px; ">~</caption>
  144. <caption id="caption2" class="search_name" style="left:30px; top:55px; width:99px; height:17px; ">퇴원일 :</caption>
  145. <caption id="caption3" class="search_name" style="left:345px; top:30px; width:86px; height:17px; ">미비과 :</caption>
  146. <caption id="caption4" class="search_name" style="left:570px; top:30px; width:86px; height:17px; ">미비의사 :</caption>
  147. <caption id="caption5" class="search_name" style="left:570px; top:55px; width:86px; height:17px; ">의사구분 :</caption>
  148. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" disabled="true" inputtype="date" style="left:130px; top:30px; width:90px; height:19px; "/>
  149. <input id="ipt_todd" ref="/root/main/cond/todd" disabled="true" inputtype="date" style="left:240px; top:30px; width:90px; height:19px; "/>
  150. <input id="ipt_dschfromdd" ref="/root/main/cond/dschfromdd" disabled="true" inputtype="date" style="left:130px; top:55px; width:90px; height:19px; "/>
  151. <input id="ipt_dschtodd" ref="/root/main/cond/dschtodd" disabled="true" inputtype="date" style="left:240px; top:55px; width:90px; height:19px; "/>
  152. <select1 id="cmb_unpredeptcd" ref="/root/main/cond/unpredeptcd" class="combo_search" appearance="minimal" style="left:419px; top:30px; width:143px; height:19px; ">
  153. <choices>
  154. <itemset nodeset="/root/init/orddept/dept">
  155. <label ref="depthngnm"/>
  156. <value ref="deptcd"/>
  157. </itemset>
  158. </choices>
  159. <script type="javascript" ev:event="xforms-select">
  160. <![CDATA[
  161. mmbfGetUserComboList("/root/send/reqdata" , "/root/init/userlist", cmb_unpredeptcd.value, "0330");
  162. model.setValue("/root/main/cond/unpredr", "-");
  163. addComboItem("cmb_unpredr", "전체", "-", "above");
  164. model.refresh();
  165. ]]>
  166. </script>
  167. </select1>
  168. <select1 id="cmb_indschdeptcd" ref="/root/main/cond/indschdeptcd" class="combo_search" appearance="minimal" style="left:419px; top:55px; width:143px; height:19px; ">
  169. <choices>
  170. <itemset nodeset="/root/init/orddept/dept">
  171. <label ref="depthngnm"/>
  172. <value ref="deptcd"/>
  173. </itemset>
  174. </choices>
  175. </select1>
  176. <select1 id="cmb_unpredr" ref="/root/main/cond/unpredr" class="combo_search" appearance="minimal" style="left:659px; top:30px; width:143px; height:19px; ">
  177. <choices>
  178. <itemset nodeset="/root/init/userlist/usercombo">
  179. <label ref="usernm"/>
  180. <value ref="userid"/>
  181. </itemset>
  182. </choices>
  183. </select1>
  184. <select id="chk_drkind" ref="/root/main/cond/drkind" overflow="visible" appearance="full" cellspacing="4" cols="5" rows="1" sep="','" style="left:658px; top:55px; width:100px; height:20px; border-style:none; ">
  185. <choices>
  186. <itemset nodeset="/root/init/unpredrkind/row">
  187. <label ref="cdnm"/>
  188. <value ref="cdid"/>
  189. </itemset>
  190. </choices>
  191. <script type="javascript" ev:event="xforms-value-changed">
  192. <![CDATA[
  193. var drkind = model.getValue("/root/main/cond/drkind");
  194. if(drkind.search("T") > -1){
  195. model.setValue("/root/main/cond/drkind", "T");
  196. }
  197. model.refresh();
  198. chk_drkind.refresh();
  199. ]]>
  200. </script>
  201. </select>
  202. <select id="chk_unpredd" ref="/root/main/cond/unpredd" overflow="visible" appearance="full" style="left:13px; top:30px; width:20px; height:20px; border-style:none; ">
  203. <choices>
  204. <item>
  205. <label/>
  206. <value>Y</value>
  207. </item>
  208. </choices>
  209. <script type="javascript" ev:event="xforms-value-changed">
  210. <![CDATA[
  211. var unpredd = model.getValue("/root/main/cond/unpredd");
  212. if(unpredd == "Y"){
  213. ipt_fromdd.disabled = false;
  214. ipt_todd.disabled = false;
  215. model.setValue("/root/main/cond/fromdd", getCurrentDate());
  216. model.setValue("/root/main/cond/todd", getCurrentDate());
  217. }
  218. else{
  219. ipt_fromdd.disabled = true;
  220. ipt_todd.disabled = true;
  221. model.setValue("/root/main/cond/fromdd", "");
  222. model.setValue("/root/main/cond/todd", "");
  223. }
  224. model.refresh();
  225. ]]>
  226. </script>
  227. </select>
  228. <select id="chk_dschdd" ref="/root/main/cond/dschdd" overflow="visible" appearance="full" style="left:13px; top:56px; width:20px; height:20px; border-style:none; ">
  229. <choices>
  230. <item>
  231. <label/>
  232. <value>Y</value>
  233. </item>
  234. </choices>
  235. <script type="javascript" ev:event="xforms-value-changed">
  236. <![CDATA[
  237. var dschdd = model.getValue("/root/main/cond/dschdd");
  238. if(dschdd == "Y"){
  239. ipt_dschfromdd.disabled = false;
  240. ipt_dschtodd.disabled = false;
  241. model.setValue("/root/main/cond/dschfromdd", getCurrentDate());
  242. model.setValue("/root/main/cond/dschtodd", getCurrentDate());
  243. }
  244. else{
  245. ipt_dschfromdd.disabled = true;
  246. ipt_dschtodd.disabled = true;
  247. model.setValue("/root/main/cond/dschfromdd", "");
  248. model.setValue("/root/main/cond/dschtodd", "");
  249. }
  250. model.refresh();
  251. ]]>
  252. </script>
  253. </select>
  254. </xhtml:body>
  255. </xhtml:html>