SSMNW00700_연보관련통계.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  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. <inpt>
  11. <inptlist/>
  12. </inpt>
  13. <cond>
  14. <fromdd/>
  15. <todd/>
  16. <deptcd/>
  17. <srchflag/>
  18. <flag>Y</flag>
  19. </cond>
  20. <dept>
  21. <deptlist>
  22. <seq/>
  23. <deptengabbr/>
  24. </deptlist>
  25. </dept>
  26. <dsch>
  27. <dschlist/>
  28. </dsch>
  29. </main>
  30. <send>
  31. </send>
  32. <init/>
  33. </root>
  34. </instance>
  35. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  38. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  39. <script type="javascript" ev:event="xforms-ready">
  40. <![CDATA[
  41. var curdd = getCurrentDate();
  42. var fromdd = curdd.substr(0,4) + "0101";
  43. var todd = curdd.substr(0,4) + "1231";
  44. model.setValue(ipt_fromdd.attribute("ref"), fromdd);
  45. model.setValue(ipt_todd.attribute("ref") , todd);
  46. ipt_fromdd.refresh();
  47. ipt_todd.refresh();
  48. //submit("TRMNW10802");
  49. var instcd = getUserInfo("dutplceinstcd");
  50. var standard_yn = "orduseyn";
  51. var ord_deptflag = 'W';
  52. var rslt_ref = "/root/init/dept";
  53. var sort_field = "depthngnm";
  54. var sort_method = "asc";
  55. var dt = getCurrentDate();
  56. /////zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method); //부서코드 콤보조회
  57. /////zsdfGetOutOrdDeptList( instcd, rslt_ref, sort_field, sort_method, dt );
  58. // 간호외래진료부서콤보 (특정하위부서를 포함- 분만실, 육아상담실, 인공신장실)
  59. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref , sort_field, sort_method, dt);
  60. addComboItem("cmb_orddept", "전 체", "", "above");
  61. cmb_orddept.value = getUserInfo("dutplcecd");
  62. fSearch();
  63. ]]>
  64. </script>
  65. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
  66. <submission id="TRMNW10802" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/dept"/>
  67. <submission id="TRZSD00206" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  68. <submission id="TRSNW00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/inpt"/>
  69. <submission id="TRSNW00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/dsch"/>
  70. </model>
  71. <script type="javascript">
  72. <![CDATA[
  73. var flag="1";
  74. function getAddDay(inputday,addend){
  75. var backDate ="";
  76. var rt = 0;
  77. var yyyy = inputday.substring(0,4) +"";
  78. var mm = inputday.substring(4,6) +"";
  79. var dd = inputday.substring(6,8) +"";
  80. var startDate = new Date(yyyy,(eval(mm)-1),dd);
  81. startDate.setTime(startDate.getTime()+(86400000*addend));
  82. NowYear = startDate.getYear();// 년
  83. NowMonth = startDate.getMonth()+1;// 월
  84. NowDay = startDate.getDate(); // 일
  85. backDate += NowYear ; //년도
  86. if (NowMonth < 10 ) backDate += "0" + NowMonth ;
  87. else backDate += (startDate.getMonth() + 1);
  88. if (NowDay < 10 ) backDate += "0" + NowDay ;
  89. else backDate += (startDate.getDate());
  90. return backDate ;
  91. }
  92. function fSearch() {
  93. var deptcd = model.getValue(cmb_orddept.attribute("ref"));
  94. if(deptcd== null || deptcd == "") {
  95. messageBox("병동을 선택하십시오.", "I");
  96. return;
  97. }
  98. model.makeValue("/root/send/reqdata/fromdd", model.getValue(ipt_fromdd.attribute("ref")));
  99. model.makeValue("/root/send/reqdata/todd" , model.getValue(ipt_todd.attribute("ref")));
  100. model.makeValue("/root/send/reqdata/deptcd", model.getValue(cmb_orddept.attribute("ref")));
  101. if(flag == "1") {
  102. submit("TRSNW00701");
  103. var deptnm="";
  104. for(var i = grd_inptlist.fixedRows; i < grd_inptlist.rows; i++) {
  105. deptnm = grd_inptlist.valueMatrix(i, grd_inptlist.colRef("deptnm"));
  106. if(deptnm == "계" || deptnm == "평균재원일수(일)") {
  107. grd_inptlist.rowStyle(i, "data", "background-color") = "#eeffee";
  108. }
  109. }
  110. } else if(flag =="2") {
  111. submit("TRSNW00702");
  112. grd_dschlist.subtotalPosition="below";
  113. for(var i = grd_dschlist.colRef("inptmcnt"); i <= grd_dschlist.colRef("totoutrmcnt"); i++) {
  114. grd_dschlist.subtotal("sum", -1, i, "#,###.##", "background-color:#eeffee; font-weight:bold", grd_dschlist.colRef("deptnm"), "합계");
  115. }
  116. }
  117. }
  118. ]]>
  119. </script>
  120. </xhtml:head>
  121. <xhtml:body guideline="1,1195;2,822;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  122. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  123. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:158px; height:15px; ">연보통계</caption>
  124. </group>
  125. <group id="group2" style="left:0px; top:13px; width:1194px; height:719px; vertical-align:top; ">
  126. <group id="group3" style="left:0px; top:10px; width:1190px; height:37px; font-family:돋움체; vertical-align:top; ">
  127. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1190px; height:37px; background-color:#fffbf2; border-color:#ffd799; "/>
  128. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_default" navindex="1" inputtype="date" style="left:100px; top:9px; width:100px; height:19px; ">
  129. <script type="javascript" ev:event="xforms-value-changed">
  130. <![CDATA[
  131. ]]>
  132. </script>
  133. </input>
  134. <caption id="caption8" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">업무일자 :</caption>
  135. <button id="btn_srch" class="btn1_letter2" navindex="5" style="left:1065px; top:7px; width:56px; height:22px; ">
  136. <caption>조회</caption>
  137. <script type="javascript" ev:event="DOMActivate">
  138. <![CDATA[
  139. fSearch();
  140. ]]>
  141. </script>
  142. </button>
  143. <button id="button24" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
  144. <caption>엑셀</caption>
  145. <script type="javascript" ev:event="DOMActivate">
  146. <![CDATA[
  147. if(flag == "1") {
  148. fileName = window.fileDialog("save", ",", false, "과별입실현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  149. grd_inptlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  150. } else {
  151. fileName = window.fileDialog("save", ",", false, "과별퇴실현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  152. grd_dschlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  153. }
  154. ]]>
  155. </script>
  156. </button>
  157. <line id="line2" class="line_4" style="x1:1055px; y1:7px; x2:1055px; y2:29px; "/>
  158. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_default" navindex="1" inputtype="date" style="left:220px; top:9px; width:100px; height:19px; ">
  159. <script type="javascript" ev:event="xforms-value-changed">
  160. <![CDATA[
  161. ]]>
  162. </script>
  163. </input>
  164. <caption id="caption2" style="left:205px; top:9px; width:15px; height:20px; font-weight:bold; ">~</caption>
  165. <select1 id="cmb_orddept" ref="/root/main/cond/deptcd" appearance="minimal" style="left:565px; top:8px; width:100px; height:19px; ">
  166. <choices>
  167. <itemset nodeset="/root/init/dept/dept">
  168. <label ref="depthngnm"/>
  169. <value ref="deptcd"/>
  170. </itemset>
  171. </choices>
  172. </select1>
  173. <caption id="caption3" class="search_name" style="left:475px; top:10px; width:86px; height:17px; ">부서코드 :</caption>
  174. <select1 id="rdo_flag" ref="/root/main/cond/flag" appearance="full" cols="3" overflow="visible" style="left:325px; top:12px; width:140px; height:13px; border-style:none; ">
  175. <choices>
  176. <item>
  177. <label>연간</label>
  178. <value>Y</value>
  179. </item>
  180. <item>
  181. <label>월간</label>
  182. <value>M</value>
  183. </item>
  184. <item>
  185. <label>일간</label>
  186. <value>D</value>
  187. </item>
  188. </choices>
  189. <script type="javascript" ev:event="xforms-value-changed">
  190. <![CDATA[
  191. var curdd = getCurrentDate();
  192. var fromdd;
  193. var todd;
  194. var dd;
  195. var flag = isLeapYear(curdd.substr(4,2));
  196. if(flag) {
  197. dd ="29";
  198. } else {
  199. dd = "28";
  200. }
  201. if(rdo_flag.value == "Y") {
  202. fromdd = curdd.substr(0,4) + "0101";
  203. todd = curdd.substr(0,4) + "1231";
  204. } else if(rdo_flag.value =="M") {
  205. switch(curdd.substr(4,2)) {
  206. case "01":
  207. case "03":
  208. case "05":
  209. case "07":
  210. case "08":
  211. case "10":
  212. case "12":
  213. dd = "31";
  214. break;
  215. case "04":
  216. case "06":
  217. case "09":
  218. case "11":
  219. dd = "30";
  220. break;
  221. case "02":
  222. break;
  223. default :
  224. dd = "30";
  225. }
  226. fromdd = curdd.substr(0,6) + "01";
  227. todd = curdd.substr(0,6) + dd;
  228. } else if(rdo_flag.value =="D") {
  229. fromdd = getCurrentDate();
  230. todd = getCurrentDate();
  231. }
  232. model.setValue(ipt_fromdd.attribute("ref"), fromdd );
  233. model.setValue(ipt_todd.attribute("ref"), todd );
  234. ipt_fromdd.refresh();
  235. ipt_todd.refresh();
  236. ]]>
  237. </script>
  238. </select1>
  239. </group>
  240. <button id="btn_case1" class="btn_sw" group="tab1" selected="true" style="left:0px; top:65px; width:100px; height:22px; ">
  241. <caption>과별입실현황</caption>
  242. <script type="javascript" ev:event="DOMActivate">
  243. <![CDATA[
  244. flag = "1";
  245. model.toggle("case1");
  246. fSearch();
  247. ]]>
  248. </script>
  249. </button>
  250. <button id="btn_case2" class="btn_sw" group="tab1" style="left:100px; top:65px; width:100px; height:22px; ">
  251. <caption>과별퇴실현황</caption>
  252. <script type="javascript" ev:event="DOMActivate">
  253. <![CDATA[
  254. flag="2";
  255. model.toggle("case2");
  256. fSearch();
  257. ]]>
  258. </script>
  259. </button>
  260. <switch id="switch1" style="left:0px; top:85px; width:1191px; height:630px; ">
  261. <case id="case1" selected="true">
  262. <datagrid id="grd_inptlist" nodeset="/root/main/inpt/inptlist" caption="월별^1^1^2^2^3^3^4^4^5^5^6^6^7^7^8^8^9^9^10^10^11^11^12^12^전체^전체|과별^입실^연인원^입실^연인원^입실^연인원^입실^연인원^입실^연인원^입실^연인원^입실^연인원^입실^연인원^입실^연인원^입실^연인원^입실^연인원^입실^연인원^입실^연인원" colsep="^" colwidth="110, 37, 43, 37, 43, 37, 43, 37, 43, 37, 43, 37, 43, 37, 43, 37, 43, 37, 43, 37, 43, 37, 43, 37, 43, 48, 51" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:1180px; height:595px; font-family:굴림체; vertical-align:middle; ">
  263. <col ref="deptnm"/>
  264. <col ref="inptcnt1" format="#,###.##" style="text-align:right; "/>
  265. <col ref="totingcnt1" format="#,###.##" style="text-align:right; "/>
  266. <col ref="inptcnt2" format="#,###.##" style="text-align:right; "/>
  267. <col ref="totingcnt2" format="#,###.##" style="text-align:right; "/>
  268. <col ref="inptcnt3" format="#,###.##" style="text-align:right; "/>
  269. <col ref="totingcnt3" format="#,###.##" style="text-align:right; "/>
  270. <col ref="inptcnt4" format="#,###.##" style="text-align:right; "/>
  271. <col ref="totingcnt4" format="#,###.##" style="text-align:right; "/>
  272. <col ref="inptcnt5" format="#,###.##" style="text-align:right; "/>
  273. <col ref="totingcnt5" format="#,###.##" style="text-align:right; "/>
  274. <col ref="inptcnt6" format="#,###.##" style="text-align:right; "/>
  275. <col ref="totingcnt6" format="#,###.##" style="text-align:right; "/>
  276. <col ref="inptcnt7" format="#,###.##" style="text-align:right; "/>
  277. <col ref="totingcnt7" format="#,###.##" style="text-align:right; "/>
  278. <col ref="inptcnt8" format="#,###.##" style="text-align:right; "/>
  279. <col ref="totingcnt8" format="#,###.##" style="text-align:right; "/>
  280. <col ref="inptcnt9" format="#,###.##" style="text-align:right; "/>
  281. <col ref="totingcnt9" format="#,###.##" style="text-align:right; "/>
  282. <col ref="inptcnt10" format="#,###.##" style="text-align:right; "/>
  283. <col ref="totingcnt10" format="#,###.##" style="text-align:right; "/>
  284. <col ref="inptcnt11" format="#,###.##" style="text-align:right; "/>
  285. <col ref="totingcnt11" format="#,###.##" style="text-align:right; "/>
  286. <col ref="inptcnt12" format="#,###.##" style="text-align:right; "/>
  287. <col ref="totingcnt12" format="#,###.##" style="text-align:right; "/>
  288. <col ref="suminptcnt" style="text-align:right; "/>
  289. <col ref="sumtotingcnt" style="text-align:right; "/>
  290. </datagrid>
  291. <caption id="caption1" class="tit_2" style="left:0px; top:10px; width:100px; height:13px; font-family:굴림체; ">과별입실현황</caption>
  292. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1180px; y2:25px; font-family:굴림체; "/>
  293. </case>
  294. <case id="case2">
  295. <datagrid id="grd_dschlist" nodeset="/root/main/dsch/dschlist" caption="과별/구분^입실^입실^퇴실^퇴실^퇴실^퇴실^퇴실^퇴실^퇴실|과별/구분^남^여^전실^사망^임종퇴원^자의퇴원^전원^퇴원^계" colsep="^" colwidth="110, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:1180px; height:595px; font-family:굴림체; vertical-align:middle; ">
  296. <col ref="deptnm"/>
  297. <col ref="inptmcnt"/>
  298. <col ref="inptfcnt"/>
  299. <col ref="trnsoutcnt"/>
  300. <col ref="dethdschcnt"/>
  301. <col ref="diedschcnt"/>
  302. <col ref="hopedschcnt"/>
  303. <col ref="trnshosdschcnt"/>
  304. <col ref="nodethdschcnt"/>
  305. <col ref="totoutrmcnt" style="background-color:#eeffee; "/>
  306. </datagrid>
  307. <caption id="caption4" class="tit_2" style="left:0px; top:10px; width:100px; height:14px; font-family:굴림체; ">과별퇴실현황</caption>
  308. <line id="line3" class="line_1" style="x1:0px; y1:25px; x2:1180px; y2:25px; font-family:굴림체; "/>
  309. </case>
  310. </switch>
  311. </group>
  312. </xhtml:body>
  313. </xhtml:html>