SMMNP06900_DCC지표관리.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  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. <cond>
  11. <srchflag>D</srchflag>
  12. <fromdd/>
  13. <todd/>
  14. <orddeptcd/>
  15. <medispclid/>
  16. <atdoctid/>
  17. <ampmflag>-</ampmflag>
  18. <weekflag>-</weekflag>
  19. <frommm/>
  20. <tomm/>
  21. <inflag>-</inflag>
  22. </cond>
  23. <dcclist>
  24. <dccidxpatlist>
  25. <pid/>
  26. <hngnm/>
  27. <sex/>
  28. <age/>
  29. <diagnm/>
  30. <orddeptnm/>
  31. <medispclnm/>
  32. <indd/>
  33. <opcd/>
  34. <weeknm/>
  35. <opnm/>
  36. <ampmflag/>
  37. <chngroomstat/>
  38. <careinstat/>
  39. <opstat/>
  40. <staytm/>
  41. </dccidxpatlist>
  42. <dccidxstslist>
  43. <deptengabbr/>
  44. <orddeptnm/>
  45. <bfcnt/>
  46. <nowcnt/>
  47. <totalcnt/>
  48. <addper/>
  49. </dccidxstslist>
  50. </dcclist>
  51. </main>
  52. <send/>
  53. <init>
  54. </init>
  55. <code/>
  56. <result>
  57. </result>
  58. <temp>
  59. <cond>
  60. <doctlist>
  61. <medispcl/>
  62. <atdoct/>
  63. </doctlist>
  64. </cond>
  65. </temp>
  66. <hidden/>
  67. </root>
  68. </instance>
  69. <script type="javascript" ev:event="xforms-ready">
  70. <![CDATA[
  71. fInitScreen();
  72. ]]>
  73. </script>
  74. <script type="javascript">
  75. <![CDATA[
  76. function fInitScreen(){
  77. group2.visible = true;
  78. group3.visible = false;
  79. grd_dccidxpatlist.visible = true;
  80. grd_dccidxstslist.visible = false;
  81. line1.visible = true;
  82. line2.visible = false;
  83. var instcd = getUserInfo("dutplceinstcd");
  84. var standard_yn = "orduseyn";
  85. var ord_deptflag = 'D';
  86. var rslt_ref = "/root/temp/cond/deptgrup/deptgruplist";
  87. var sort_field = "dispseq";
  88. var sort_method = "asc";
  89. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
  90. addComboItem("cmb_orddeptlist", "전체" , "-" , "above" );
  91. addComboItem("cmb_medispclid", "전체" , "-" , "above" );
  92. addComboItem("cmb_atdoctid", "전체" , "-" , "above" );
  93. var fromdd = getCurrentDate().substr(0, 6) + "01";
  94. var todd = getDateCalc(getCurrentDate(), 1) ;
  95. model.setValue("/root/main/cond/srchflag", "D");
  96. model.setValue("/root/main/cond/frommm", getDateCalc(fromdd, 2).substr(0, 6) );
  97. model.setValue("/root/main/cond/tomm", todd.substr(0, 6));
  98. model.setValue("/root/main/cond/fromdd", fromdd);
  99. model.setValue("/root/main/cond/todd", todd);
  100. model.setValue("/root/main/cond/orddeptcd", "-");
  101. model.setValue("/root/main/cond/medispclid", "-");
  102. model.setValue("/root/main/cond/atdoctid", "-");
  103. model.setValue("/root/main/cond/ampmflag", "-");
  104. model.setValue("/root/main/cond/weekflag", "-");
  105. model.setValue("/root/main/cond/inflag", "-");
  106. model.refresh();
  107. fSearch();
  108. }
  109. function fSearch(){
  110. model.removeNodeset("/root/send");
  111. model.makeNode("/root/send");
  112. model.copyNode("/root/send", "/root/main/cond");
  113. submit("TRMNP06901");
  114. }
  115. ]]>
  116. </script>
  117. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  118. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  119. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  120. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  121. <submission id="TRMMO00129" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/result"/>
  122. <submission id="TRMNP06901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dcclist"/>
  123. </model>
  124. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  125. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  126. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  127. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  128. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  129. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  130. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  131. </xhtml:head>
  132. <xhtml:body guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  133. <line id="line8" class="line_3" style="x1:0px; y1:55px; x2:1179px; y2:55px; "/>
  134. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">단기 입원 치료실 환자 관리</caption>
  135. <group id="group1" style="left:0px; top:21px; width:1194px; height:39px; vertical-align:top; ">
  136. <shape id="roundrect1" appearance="roundrect" b-color="#ffd799" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:39px; background-color:#fffbf2; "/>
  137. <line id="line25" class="line_4" style="x1:1010px; y1:9px; x2:1010px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
  138. <select1 id="rdo_srchflag" ref="/root/main/cond/srchflag" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:10px; top:12px; width:101px; height:20px; font-weight:bold; border-style:none; ">
  139. <choices>
  140. <item>
  141. <label>일별</label>
  142. <value>D</value>
  143. </item>
  144. <item>
  145. <label>월별</label>
  146. <value>M</value>
  147. </item>
  148. </choices>
  149. <script type="javascript" ev:event="xforms-value-changed">
  150. <![CDATA[
  151. switch(rdo_srchflag.value){
  152. case "D" :
  153. group2.visible = true;
  154. group3.visible = false;
  155. grd_dccidxpatlist.visible = true;
  156. grd_dccidxstslist.visible = false;
  157. line1.visible = true;
  158. line2.visible = false;
  159. caption9.value = "일별 조회 내역";
  160. break;
  161. case "M" :
  162. group2.visible = false;
  163. group3.visible = true;
  164. grd_dccidxpatlist.visible = false;
  165. grd_dccidxstslist.visible = true;
  166. line1.visible = false;
  167. line2.visible = true;
  168. caption9.value = "월별 조회 내역";
  169. break;
  170. default:
  171. group2.visible = false;
  172. group3.visible = false;
  173. grd_dccidxpatlist.visible = false;
  174. grd_dccidxstslist.visible = false;
  175. line1.visible = false;
  176. line2.visible = false;
  177. caption9.value = "";
  178. break;
  179. }
  180. fSearch();
  181. ]]>
  182. </script>
  183. </select1>
  184. <group id="group2" style="left:120px; top:0px; width:1074px; height:39px; background-color:transparent; ">
  185. <caption id="caption7" class="search_no_b" style="left:96px; top:12px; width:12px; height:17px; ">~</caption>
  186. <caption id="caption54" class="search_name" style="left:568px; top:12px; width:78px; height:17px; ">담당의 :</caption>
  187. <caption id="caption2" class="search_name" style="left:209px; top:12px; width:83px; height:17px; ">진료과 :</caption>
  188. <caption id="caption3" class="search_name" style="left:408px; top:12px; width:78px; height:17px; ">주치의 :</caption>
  189. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" inputtype="date" appearance="input" style="left:2px; top:11px; width:90px; height:19px; "/>
  190. <input id="ipt_todd" ref="/root/main/cond/todd" inputtype="date" appearance="input" style="left:112px; top:11px; width:90px; height:19px; "/>
  191. <select1 id="cmb_orddeptlist" ref="/root/main/cond/orddeptcd" class="combo_default" navindex="2" appearance="minimal" itemcount="20" style="left:283px; top:11px; width:120px; height:19px; ">
  192. <choices>
  193. <itemset nodeset="/root/temp/cond/deptgrup/deptgruplist/dept">
  194. <label ref="depthngnm"/>
  195. <value ref="deptcd"/>
  196. </itemset>
  197. </choices>
  198. <script type="javascript" ev:event="xforms-value-changed">
  199. <![CDATA[
  200. if(cmb_orddeptlist.value == "-"){
  201. addComboItem("cmb_medispclid", "전체" , "-" , "above" );
  202. addComboItem("cmb_atdoctid", "전체" , "-" , "above" );
  203. }else{
  204. //주치의, 담당의 조회 function 호출 (진료)
  205. mmbfGetUserComboList("/root/send/reqdata", "/root/temp/cond/doctlist/medispcl" , cmb_orddeptlist.value, "0330", "", "M");
  206. mmbfGetUserComboList("/root/send/reqdata", "/root/temp/cond/doctlist/atdoct", cmb_orddeptlist.value, "0330", "", "A");
  207. //주치의 조회 정보가 0건일 경우 '전체' item 추가
  208. if( getNodesetCount("/root/temp/cond/doctlist/medispcl/usercombo") < 1 ){
  209. addComboItem("cmb_medispclid", "전체" , "-" , "above" );
  210. }else{
  211. addComboInstance("/root/temp/cond/doctlist/medispcl", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  212. }
  213. //담당의 조회 정보가 0건일 경우 '전체' item추가
  214. if( getNodesetCount("/root/temp/cond/doctlist/atdoct/usercombo") < 1 ){
  215. addComboItem("cmb_atdoctid", "전체" , "-" , "above" );
  216. }else{
  217. addComboInstance("/root/temp/cond/doctlist/atdoct", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  218. }
  219. model.setValue("/root/main/cond/medispclid", "-");
  220. model.setValue("/root/main/cond/atdoctid", "-");
  221. }
  222. cmb_medispclid.refresh();
  223. cmb_atdoctid.refresh();
  224. ]]>
  225. </script>
  226. </select1>
  227. <select1 id="cmb_medispclid" ref="/root/main/cond/medispclid" class="combo_default" navindex="3" appearance="minimal" itemcount="20" style="left:483px; top:11px; width:80px; height:19px; ">
  228. <choices>
  229. <itemset nodeset="/root/temp/cond/doctlist/medispcl/usercombo">
  230. <label ref="usernm"/>
  231. <value ref="userid"/>
  232. </itemset>
  233. </choices>
  234. </select1>
  235. <select1 id="cmb_atdoctid" ref="/root/main/cond/atdoctid" class="combo_default" navindex="4" appearance="minimal" itemcount="20" style="left:643px; top:11px; width:80px; height:19px; ">
  236. <choices>
  237. <itemset nodeset="/root/temp/cond/doctlist/atdoct/usercombo">
  238. <label ref="usernm"/>
  239. <value ref="userid"/>
  240. </itemset>
  241. </choices>
  242. </select1>
  243. <select1 id="cmb_ampmflag" ref="/root/main/cond/ampmflag" appearance="minimal" style="left:733px; top:11px; width:83px; height:19px; ">
  244. <choices>
  245. <item>
  246. <label>오전/오후</label>
  247. <value>-</value>
  248. </item>
  249. <item>
  250. <label>오전</label>
  251. <value>A</value>
  252. </item>
  253. <item>
  254. <label>오후</label>
  255. <value>P</value>
  256. </item>
  257. </choices>
  258. </select1>
  259. <select1 id="cmb_weekflag" ref="/root/main/cond/weekflag" appearance="minimal" style="left:818px; top:11px; width:60px; height:19px; ">
  260. <choices>
  261. <item>
  262. <label>요일</label>
  263. <value>-</value>
  264. </item>
  265. <item>
  266. <label>월</label>
  267. <value>2</value>
  268. </item>
  269. <item>
  270. <label>화</label>
  271. <value>3</value>
  272. </item>
  273. <item>
  274. <label>수</label>
  275. <value>4</value>
  276. </item>
  277. <item>
  278. <label>목</label>
  279. <value>5</value>
  280. </item>
  281. <item>
  282. <label>금</label>
  283. <value>6</value>
  284. </item>
  285. <item>
  286. <label>토</label>
  287. <value>7</value>
  288. </item>
  289. <item>
  290. <label>일</label>
  291. <value>1</value>
  292. </item>
  293. </choices>
  294. </select1>
  295. </group>
  296. <group id="group3" visibility="hidden" style="left:120px; top:0px; width:1074px; height:39px; background-color:transparent; ">
  297. <input id="ipt_tomm" ref="/root/main/cond/tomm" inputtype="date" maxlength="6" format="yyyy-mm" validateformat="true" appearance="input" style="left:2px; top:11px; width:75px; height:19px; ">
  298. <script type="javascript" ev:event="xforms-value-changed">
  299. <![CDATA[
  300. var tomm = model.getValue("/root/main/cond/tomm");
  301. var frommm = getDateCalc(tomm + "01", 2).substr(0, 6);
  302. model.setValue("/root/main/cond/frommm", frommm);
  303. ]]>
  304. </script>
  305. </input>
  306. <select1 id="rdo_inflag" ref="/root/main/cond/inflag" appearance="full" cols="3" overflow="visible" style="left:120px; top:12px; width:140px; height:20px; border-style:none; ">
  307. <choices>
  308. <item>
  309. <label>전체</label>
  310. <value>-</value>
  311. </item>
  312. <item>
  313. <label>입원</label>
  314. <value>1</value>
  315. </item>
  316. <item>
  317. <label>전실</label>
  318. <value>2</value>
  319. </item>
  320. </choices>
  321. </select1>
  322. </group>
  323. <button id="btn_srch" class="btn1_letter2" style="left:1019px; top:9px; width:56px; height:22px; ">
  324. <caption>조회</caption>
  325. <script type="javascript" ev:event="DOMActivate">
  326. <![CDATA[
  327. fSearch();
  328. ]]>
  329. </script>
  330. </button>
  331. <button id="btn_excel" class="btn1_letter2" style="left:1077px; top:9px; width:56px; height:22px; ">
  332. <caption>엑셀</caption>
  333. <script type="javascript" ev:event="DOMActivate">
  334. <![CDATA[
  335. switch(rdo_srchflag.value){
  336. case "D" :
  337. if(getNodesetCount("/root/main/dcclist/dccidxpatlist") < 1){
  338. messageBox("Excel 출력할 정보가 존재하지 않습니다.","I");
  339. return;
  340. }
  341. var fileName = window.fileDialog("save", ",", false, "단기입원치료실 일별정보("+ ipt_fromdd.value + "-" + ipt_todd.value + ")", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  342. if (fileName != "") {
  343. grd_dccidxpatlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  344. }
  345. break;
  346. case "M" :
  347. if(getNodesetCount("/root/main/dcclist/dccidxstslist") < 1){
  348. messageBox("Excel 출력할 정보가 존재하지 않습니다.","I");
  349. return;
  350. }
  351. var fileName = window.fileDialog("save", ",", false, "단기입원치료실 월별정보_"+ ipt_tomm.value, "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  352. if (fileName != "") {
  353. grd_dccidxstslist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  354. }
  355. break;
  356. default :
  357. break;
  358. }
  359. ]]>
  360. </script>
  361. </button>
  362. <button id="btn_prnt" class="btn1_letter2" style="left:1135px; top:9px; width:56px; height:22px; ">
  363. <caption>출력</caption>
  364. <script type="javascript" ev:event="DOMActivate">
  365. <![CDATA[
  366. model.removeNodeset("/root/prntdata");
  367. model.makeNode("/root/prntdata/cond");
  368. model.makeNode("/root/prntdata/list");
  369. model.copyNode("/root/prntdata/cond", "/root/main/cond");
  370. if( getNodesetCount("/root/prntdata/cond") > 0 ){
  371. model.makeValue("/root/prntdata/cond/orddeptnm", cmb_orddeptlist.label );
  372. model.makeValue("/root/prntdata/cond/medispclnm", cmb_medispclid.label );
  373. model.makeValue("/root/prntdata/cond/atdoctnm", cmb_atdoctid.label );
  374. model.makeValue("/root/prntdata/cond/inflagnm", rdo_inflag.label );
  375. if( cmb_ampmflag.value == "-" ){
  376. model.makeValue("/root/prntdata/cond/ampmnm", "전체" );
  377. }else{
  378. model.makeValue("/root/prntdata/cond/ampmnm", cmb_ampmflag.label );
  379. }
  380. if( cmb_weekflag.value == "-" ){
  381. model.makeValue("/root/prntdata/cond/weeknm", "전체" );
  382. }else{
  383. model.makeValue("/root/prntdata/cond/weeknm", cmb_weekflag.label );
  384. }
  385. }
  386. switch(rdo_srchflag.value){
  387. case "D" :
  388. if(getNodesetCount("/root/main/dcclist/dccidxpatlist") < 1){
  389. messageBox("출력할 정보가 존재하지 않습니다.","I");
  390. return;
  391. }
  392. model.copyNode("/root/prntdata/list", "/root/main/dcclist");
  393. exeReportPreview("RPMNP06901", "XMLSTR", ""); //임시 미리보기 창 활성화
  394. break;
  395. case "M" :
  396. if(getNodesetCount("/root/main/dcclist/dccidxstslist") < 1){
  397. messageBox("출력할 정보가 존재하지 않습니다.","I");
  398. return;
  399. }
  400. model.copyNode("/root/prntdata/list", "/root/main/dcclist");
  401. exeReportPreview("RPMNP06902", "XMLSTR", ""); //임시 미리보기 창 활성화
  402. break;
  403. default :
  404. break;
  405. }
  406. ]]>
  407. </script>
  408. </button>
  409. </group>
  410. <line id="line1" class="line_1" style="x1:0px; y1:90px; x2:1194px; y2:90px; "/>
  411. <line id="line2" class="line_1" visibility="hidden" style="x1:0px; y1:90px; x2:675px; y2:90px; "/>
  412. <caption id="caption9" class="tit_2" style="left:0px; top:74px; width:140px; height:13px; vertical-align:middle; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">일별 정보 조회 내역</caption>
  413. <datagrid id="grd_dccidxpatlist" nodeset="/root/main/dcclist/dccidxpatlist" caption="환자번호^환자명^성&#xA;별^나&#xA;이^진단명^진료과^주치의^입원일&#xA;(년-월-일)^수술코드^수술명^오전/오후^입원&#xA;요일^전실&#xA;유무^부도&#xA;유무^수술&#xA;유무^체류&#xA;시간(분)|환자번호^환자명^성&#xA;별^나&#xA;이^진단명^진료과^주치의^입원일&#xA;(년-월-일)^수술코드^수술명^오전/오후^입원&#xA;요일^전실&#xA;유무^부도&#xA;유무^수술&#xA;유무^체류&#xA;시간(분)" colsep="^" colwidth="70, 60, 30, 30, 200, 80, 60, 85, 80, 200, 60, 50, 30, 30, 30, 50" ellipsis="true" explorerbar="sortmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:95px; width:1194px; height:675px; ">
  414. <col ref="pid"/>
  415. <col ref="hngnm" style="text-align:center; "/>
  416. <col ref="sex" style="text-align:center; "/>
  417. <col ref="age" style="text-align:center; "/>
  418. <col ref="diagnm"/>
  419. <col ref="orddeptnm"/>
  420. <col ref="medispclnm" style="text-align:center; "/>
  421. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  422. <col ref="opcd"/>
  423. <col ref="opnm"/>
  424. <col ref="ampmflag" style="text-align:center; "/>
  425. <col ref="weeknm" style="text-align:center; "/>
  426. <col ref="chngroomstat" style="text-align:center; "/>
  427. <col ref="careinstat" style="text-align:center; "/>
  428. <col ref="opstat" style="text-align:center; "/>
  429. <col ref="staytm" style="text-align:right; padding-right:10; "/>
  430. <script type="javascript" ev:event="onaftersort">
  431. <![CDATA[
  432. grd_dccidxpatlist.gridToInstance();
  433. ]]>
  434. </script>
  435. </datagrid>
  436. <datagrid id="grd_dccidxstslist" nodeset="/root/main/dcclist/dccidxstslist" visibility="hidden" caption="과^과 명^전월^금월^총계^증가율" colsep="^" colwidth="73, 180, 100, 100, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:95px; width:675px; height:675px; ">
  437. <col ref="deptengabbr" style="text-align:center; "/>
  438. <col ref="orddeptnm" style="text-align:center; "/>
  439. <col ref="bfcnt" style="text-align:center; "/>
  440. <col ref="nowcnt" style="text-align:center; "/>
  441. <col ref="totalcnt" style="text-align:center; "/>
  442. <col ref="addper" style="text-align:center; "/>
  443. </datagrid>
  444. </xhtml:body>
  445. </xhtml:html>