SMPMS01130_외래환자현황.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  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. <inptordstatistic>
  11. <inptordstatisticlist/>
  12. </inptordstatistic>
  13. <otptordstatistic>
  14. <otptordstatisticlist/>
  15. </otptordstatistic>
  16. <result/>
  17. <popupendflag/>
  18. <patinfo>
  19. <patinfolist/>
  20. </patinfo>
  21. </main>
  22. <send>
  23. <fromdd/>
  24. <todd/>
  25. <statisticgooboon/>
  26. <fromdata/>
  27. <todata/>
  28. </send>
  29. <init>
  30. <comncdlist>
  31. <P0008list>
  32. <P0008>
  33. <cdnm/>
  34. <cdid/>
  35. </P0008>
  36. </P0008list>
  37. <P0021list>
  38. <P0021>
  39. <cdnm/>
  40. <cdid/>
  41. </P0021>
  42. </P0021list>
  43. <P0341list>
  44. <P0341>
  45. <cdnm/>
  46. <cdid/>
  47. </P0341>
  48. </P0341list>
  49. <P0022list>
  50. <P0022>
  51. <cdnm/>
  52. <cdid/>
  53. </P0022>
  54. </P0022list>
  55. <P0020list>
  56. <P0020>
  57. <cdnm/>
  58. <cdid/>
  59. </P0020>
  60. </P0020list>
  61. <P0029list>
  62. <P0029>
  63. <cdnm/>
  64. <cdid/>
  65. </P0029>
  66. </P0029list>
  67. <P0344list>
  68. <P0344>
  69. <cdnm/>
  70. <cdid/>
  71. </P0344>
  72. </P0344list>
  73. <P0008list>
  74. <P0008>
  75. <cdnm/>
  76. <cdid/>
  77. </P0008>
  78. </P0008list>
  79. <P0010list>
  80. <P0010>
  81. <cdnm/>
  82. <cdid/>
  83. </P0010>
  84. </P0010list>
  85. </comncdlist>
  86. <orddeptcd>
  87. <orddeptcdlist>
  88. <nm/>
  89. <cd/>
  90. </orddeptcdlist>
  91. </orddeptcd>
  92. <orddrid>
  93. <orddridlist>
  94. <cd/>
  95. <nm/>
  96. <dp/>
  97. <sp/>
  98. </orddridlist>
  99. </orddrid>
  100. </init>
  101. <hidden>
  102. </hidden>
  103. <source>
  104. <srchcond/>
  105. <pid/>
  106. <hngnm/>
  107. <rrgstno1/>
  108. <rrgstno2/>
  109. <acptdd/>
  110. </source>
  111. </root>
  112. </instance>
  113. <script type="javascript" ev:event="xforms-ready">
  114. <![CDATA[
  115. zbcfGetCodeList(new Array("P0008","P0021","P0341","P0022","P0020","P0029","P0344", "P0010"),
  116. new Array("/root/init/comncdlist/P0008list","/root/init/comncdlist/P0021list","/root/init/comncdlist/P0341list","/root/init/comncdlist/P0022list","/root/init/comncdlist/P0020list"
  117. ,"/root/init/comncdlist/P0029list","/root/init/comncdlist/P0344list", "/root/init/comncdlist/P0010list"));
  118. //진료과코드 진료의사ID 조회
  119. pamGetDeptCDDrIDList();
  120. //초기화 및 날자 입력 항목에 오늘 날자 세팅
  121. fInitialize();
  122. ]]>
  123. </script>
  124. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  125. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  126. <submission id="TRPMS01131" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/otptordstatistic"/>
  127. </model>
  128. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  129. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  130. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  131. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  132. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  133. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  134. <script type="javascript">
  135. <![CDATA[
  136. function fInitialize() {
  137. //날자 입력 항목에 오늘 날자 세팅
  138. var curDate = getCurrentDate();
  139. curDate = curDate.toDate().getAddDate(-1,"D");
  140. var nextDate = curDate.getFullYear();
  141. nextDate = nextDate.toString() + (( curDate.getMonth() + 1 > 9 ) ? curDate.getMonth() + 1 : "0" + (curDate.getMonth() + 1));
  142. nextDate = nextDate.toString() + (( curDate.getDate() > 9 ) ? curDate.getDate() : "0" + curDate.getDate()) ;
  143. model.setValue("/root/send/todd", nextDate);
  144. var prviousDate = getCurrentDate();
  145. prviousDate = prviousDate.toDate().getAddDate(-7,"D");
  146. var previousDay = prviousDate.getFullYear();
  147. previousDay = previousDay.toString() + (( prviousDate.getMonth() + 1 > 9 ) ? prviousDate.getMonth() + 1 : "0" + (prviousDate.getMonth() + 1));
  148. previousDay = previousDay.toString() + (( prviousDate.getDate() > 9 ) ? prviousDate.getDate() : "0" + prviousDate.getDate()) ;
  149. model.setValue("/root/send/fromdd", previousDay);
  150. // 비교 대상 기간의 from 과 to의 날자를 세팅한다..
  151. model.setValue("/root/send/todata", previousDay);
  152. var tmpDate = getCurrentDate();
  153. tmpDate = tmpDate.toDate().getAddDate(-14,"D");
  154. var tmpToDate = tmpDate.getFullYear();
  155. tmpToDate = tmpToDate.toString() + (( tmpDate.getMonth() + 1 > 9 ) ? tmpDate.getMonth() + 1 : "0" + (tmpDate.getMonth() + 1));
  156. tmpToDate = tmpToDate.toString() + (( tmpDate.getDate() > 9 ) ? tmpDate.getDate() : "0" + tmpDate.getDate()) ;
  157. model.setValue("/root/send/fromdata", tmpToDate);
  158. statistic_gooboon.select(0);
  159. model.toggle("case_otpt");
  160. model.refresh();
  161. }
  162. function fSearch(){
  163. if( model.getValue("/root/main/popupendflag") == "ok" ){
  164. //인적사항에 변경이 있는지를 비교하기 위해서 tmp에 인적사항을 미리 저장해 놓는다.
  165. model.makeNode("/root/hidden/tmpnode");
  166. model.copyNode("/root/hidden/tmpnode", "/root/main/patinfo");
  167. //보험/감면/진료기록/신생하*산모내역 조회
  168. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  169. submit("TRPMC01401");
  170. //model.makeNode("/root/main/popupendflag");
  171. }
  172. }
  173. function searchdepart(){
  174. for(var i=1; i<grd_reservationstatistic.rows ; i++){
  175. var tmpdepart = grd_reservationstatistic.valueMatrix(i , 1) ;
  176. var index =0;
  177. while(tmpdepart != (model.getValue("/root/init/orddeptcd/orddeptcdlist[" +index+ "]/cd") ) ){
  178. index++;
  179. if(index > 300) break;
  180. }
  181. if(model.getValue("/root/init/orddeptcd/orddeptcdlist[" +index+ "]/nm") ==""){
  182. messageBox("부서명과 " +model.getValue("/root/main/reservationstatistic/reservationstatisticlist["+i+"]/orddeptcd") +"이", "E004")
  183. }else if(model.getValue("/root/init/orddeptcd/orddeptcdlist[" +index+ "]/nm") !="") {
  184. model.setValue("/root/main/reservationstatistic/reservationstatisticlist[" +i+"]/orddeptcd",
  185. model.getValue("/root/init/orddeptcd/orddeptcdlist[" +index+ "]/nm") );
  186. }
  187. }
  188. }
  189. ]]>
  190. </script>
  191. </xhtml:head>
  192. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  193. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">외래환자현황</caption>
  194. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  195. <group id="group4" scroll="auto" style="left:0px; top:732px; width:1190px; height:33px; ">
  196. <line id="line88" class="line_6" style="x1:0px; y1:0px; x2:1160px; y2:0px; "/>
  197. <button id="btn_clear" class="btn4_letter3" style="left:1090px; top:5px; width:68px; height:22px; ">
  198. <caption>초기화</caption>
  199. <script type="javascript" ev:event="DOMActivate">
  200. <![CDATA[
  201. fInitialize();
  202. ]]>
  203. </script>
  204. </button>
  205. </group>
  206. <group id="group6" style="left:0px; top:70px; width:1180px; height:660px; ">
  207. <switch id="swt_outpatient" style="left:0px; top:5px; width:1160px; height:635px; border-color:#c7a3cf; border-style:solid; ">
  208. <case id="case_otpt" style="left:0px; top:5px; width:1210px; height:648px; ">
  209. <line id="line2" class="line_1" style="x1:5px; y1:25px; x2:1155px; y2:25px; "/>
  210. <button id="btn_cnclexcel" class="btn2_letter4" style="left:1088px; top:3px; width:64px; height:19px; ">
  211. <caption>엑셀저장</caption>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  215. if (fileName != "")
  216. {
  217. grd_change.saveExcel(fileName, "SheetName", true, true, "", "");
  218. }
  219. window.exec(fileName);
  220. ]]>
  221. </script>
  222. </button>
  223. <datagrid id="grd_change" nodeset="/root/main/otptordstatistic/otptordstatisticlist" class="datagrid2" visibility="visible" caption="임상과^비교대상기간^비교대상기간^비교대상기간^비교대상기간^비교대상기간^조회기간^조회기간^조회기간^조회기간^조회기간^증 감^증 감^증 감^증 감^증 감|임상과^초 진^재 진^합계^일평균^진료 Unit수^초 진^재 진^합계^일평균^진료 Unit수^초 진^재 진^합계^일평균^진료Unit수" colsep="^" colwidth="90, 70, 70, 100, 80, 100, 70, 70, 100, 80, 80, 70, 70, 100, 100, 100" dataheight="23" defaultrows="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:5px; top:30px; width:1150px; height:585px; ">
  224. <col ref="depthngnm" style="text-align:left; "/>
  225. <col ref="bffstord" style="text-align:right; "/>
  226. <col ref="bfreord" style="text-align:right; "/>
  227. <col ref="bfgnrnsum" style="text-align:right; "/>
  228. <col ref="bfdayavg" style="text-align:right; "/>
  229. <col ref="bfunitcnt" visibility="visible" style="text-align:right; "/>
  230. <col ref="fstord" style="text-align:right; "/>
  231. <col ref="reord" style="text-align:right; "/>
  232. <col ref="gnrnsum" style="text-align:right; "/>
  233. <col ref="dayavg" style="text-align:right; "/>
  234. <col ref="unitcnt" style="text-align:right; "/>
  235. <col ref="calfstord" style="text-align:right; "/>
  236. <col ref="calreord" style="text-align:right; "/>
  237. <col ref="calgnrnsum" style="text-align:right; "/>
  238. <col ref="caldayavg" style="text-align:right; "/>
  239. <col ref="calunitcnt" style="text-align:right; "/>
  240. </datagrid>
  241. <button id="button4" class="btn2_letter2" style="left:1038px; top:3px; width:42px; height:19px; ">
  242. <caption>출력</caption>
  243. <script type="javascript" ev:event="DOMActivate">
  244. <![CDATA[
  245. exeReportPreview("RPPAS02231", "XMLSTR", "","", "true","","","","","true");
  246. ]]>
  247. </script>
  248. </button>
  249. </case>
  250. </switch>
  251. </group>
  252. <group id="group5" style="left:0px; top:15px; width:1180px; height:50px; vertical-align:top; ">
  253. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1160px; height:47px; "/>
  254. <button id="button1" class="btn1_letter2" navindex="6" style="left:1089px; top:10px; width:56px; height:22px; ">
  255. <caption>조회</caption>
  256. <script type="javascript" ev:event="DOMActivate">
  257. <![CDATA[
  258. if (statistic_gooboon.value == 1 ) {
  259. //statistic_gooboon.select(0);
  260. model.toggle("case_otpt");
  261. submit("TRPMS01131");
  262. }
  263. model.refresh();
  264. ]]>
  265. </script>
  266. </button>
  267. <line id="line13" class="line_4" style="x1:1085px; y1:7px; x2:1085px; y2:40px; border-color:#ffe4bb; border-left-style:solid; "/>
  268. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_s_essential" navindex="2" inputtype="date" style="left:305px; top:14px; width:95px; height:19px; "/>
  269. <caption id="caption9" class="search_name" style="left:215px; top:14px; width:125px; height:17px; ">조회기간 :</caption>
  270. <select1 id="statistic_gooboon" ref="/root/send/statisticgooboon" navindex="1" appearance="full" cols="6" overflow="visible" style="left:107px; top:14px; width:98px; height:20px; border-style:none; ">
  271. <choices>
  272. <item>
  273. <label>외래</label>
  274. <value>1</value>
  275. </item>
  276. <item>
  277. <label>입원</label>
  278. <value>2</value>
  279. </item>
  280. </choices>
  281. <script type="javascript" ev:event="xforms-value-changed">
  282. <![CDATA[
  283. //button1.dispatch("DOMActivate");
  284. model.setValue("/root/send/statisticgooboon", statistic_gooboon.value );
  285. switch(model.getValue("/root/send/statisticgooboon")){
  286. case 1 : model.toggle("case_otpt");
  287. case 2 : model.totggle("case_ inpt");
  288. }
  289. ]]>
  290. </script>
  291. </select1>
  292. <caption id="radio_goobun" class="search_name" style="left:17px; top:14px; width:93px; height:17px; ">진료 구분 :</caption>
  293. <caption id="caption1" style="left:402px; top:15px; width:15px; height:15px; ">~</caption>
  294. <input id="ipt_todd" ref="/root/send/todd" class="input_s_essential" navindex="3" inputtype="date" style="left:415px; top:14px; width:95px; height:19px; "/>
  295. <caption id="caption2" style="left:787px; top:15px; width:15px; height:15px; ">~</caption>
  296. <input id="input1" ref="/root/send/todata" class="input_s_essential" navindex="5" inputtype="date" style="left:800px; top:14px; width:95px; height:19px; "/>
  297. <caption id="caption3" class="search_name" style="left:575px; top:14px; width:112px; height:17px; ">비교대상기간 :</caption>
  298. <input id="input2" ref="/root/send/fromdata" class="input_s_essential" navindex="4" inputtype="date" style="left:690px; top:14px; width:95px; height:19px; "/>
  299. </group>
  300. </xhtml:body>
  301. </xhtml:html>