SSMNE00100_체류시간대장.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  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. <srchdd/>
  12. <srchyear/>
  13. <srchfromdd/>
  14. <srchtodd/>
  15. <srchflag1>1</srchflag1>
  16. <srchflag2>1</srchflag2>
  17. <basedd/>
  18. </cond>
  19. <stayddinfo>
  20. <stayddlist>
  21. <deptnm/>
  22. <col1/>
  23. <col2/>
  24. <col3/>
  25. <col4/>
  26. <col5/>
  27. <col6/>
  28. <col7/>
  29. <col8/>
  30. <col9/>
  31. <col10/>
  32. <col11/>
  33. <col12/>
  34. <col13/>
  35. <col14/>
  36. <col15/>
  37. <col16/>
  38. <col17/>
  39. <col18/>
  40. <col19/>
  41. <col20/>
  42. <col21/>
  43. <col22/>
  44. <col23/>
  45. <col24/>
  46. <col25/>
  47. <col26/>
  48. <col27/>
  49. <col28/>
  50. <col29/>
  51. <col30/>
  52. <col31/>
  53. <stayddsum/>
  54. <deptcd/>
  55. </stayddlist>
  56. </stayddinfo>
  57. <staytminfo>
  58. <staytmlist>
  59. <deptnm/>
  60. <col1/>
  61. <col2/>
  62. <col3/>
  63. <col4/>
  64. <col5/>
  65. <col6/>
  66. <col7/>
  67. <col8/>
  68. <staytmsum/>
  69. <deptcd/>
  70. </staytmlist>
  71. </staytminfo>
  72. <staymminfo>
  73. <staymmlist>
  74. <deptnm/>
  75. <col1/>
  76. <col2/>
  77. <col3/>
  78. <col4/>
  79. <col5/>
  80. <col6/>
  81. <col7/>
  82. <col8/>
  83. <col9/>
  84. <col10/>
  85. <col11/>
  86. <col12/>
  87. <staymmsum/>
  88. <deptcd/>
  89. </staymmlist>
  90. </staymminfo>
  91. </main>
  92. <init>
  93. </init>
  94. <send/>
  95. </root>
  96. </instance>
  97. <bind id="staddsum" ref="/root/main/stayddinfo/stayddlist/stayddsum" calculate="../col1 + ../col2 + ../col3 + ../col4 + ../col5 + ../col6 + ../col7 + ../col8 + ../col9 + ../col10 + ../col11 + ../col12 + ../col13 +../col14 +../col15 +../col16 + ../col17 + ../col18 + ../col19 + ../col20 + ../col21 +../col22 + ../col23 + ../col24 + ../col25 + ../col26 + ../col27 + ../col28 + ../col29 + ../col30 + ../col31"/>
  98. <bind id="staymmsum" ref="/root/main/staymminfo/staymmlist/staymmsum" calculate="../col1 + ../col2 + ../col3 + ../col4 + ../col5 + ../col6 + ../col7 + ../col8 + ../col9 + ../col10 + ../col11 + ../col12"/>
  99. <bind id="staytmsum" ref="/root/main/staytminfo/staytmlist/staytmsum" calculate="../col1 + ../col2 + ../col3 + ../col4 + ../col5 + ../col6 + ../col7 + ../col8"/>
  100. <submission id="TRSNE00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/stayddinfo"/>
  101. <submission id="TRSNE00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/staymminfo"/>
  102. <submission id="TRSNE00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/staytminfo"/>
  103. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  104. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  105. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  106. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  107. <script type="javascript" ev:event="xforms-ready">
  108. <![CDATA[
  109. model.setValue("/root/main/cond/basedd", getDateCalc(getCurrentDate(), 1, "-"));
  110. model.setValue("/root/main/cond/srchdd", model.getValue("/root/main/cond/basedd").substr(0,6));
  111. model.setValue("/root/main/cond/srchyear", model.getValue("/root/main/cond/basedd").substr(0,4));
  112. model.setValue("/root/main/cond/srchfromdd", model.getValue("/root/main/cond/basedd"));
  113. model.setValue("/root/main/cond/srchtodd", model.getValue("/root/main/cond/basedd"));
  114. fGetStsData();
  115. ]]>
  116. </script>
  117. <script type="javascript">
  118. <![CDATA[
  119. function fGetStsData(){
  120. model.removenode("root/send");
  121. model.removenode("/root/main/stayddinfo/stayddlist");
  122. model.removenode("/root/main/staytminfo/staytmlist");
  123. model.removenode("/root/main/staymminfo/staytmlist");
  124. model.makeNode("root/send");
  125. if(rdo_srchflag2.value == "1"){
  126. ipt_srchyear.visible = false;
  127. ipt_srchfromdd.visible = false;
  128. ipt_srchtodd.visible = false;
  129. caption3.visible = false;
  130. ipt_srchdd.visible = true;
  131. model.makeValue("root/send/srchdd", model.getValue("/root/main/cond/srchdd"));
  132. model.makeValue("root/send/srchflag1", model.getValue("/root/main/cond/srchflag1"));
  133. model.makeValue("root/send/srchflag2", model.getValue("/root/main/cond/srchflag2"));
  134. submit("TRSNE00101");
  135. // Total 항목 색상표시 및 글씨체 두껍게_20100105_서미영ITC
  136. for(var i=1; i<=getNodesetCount("/root/main/stayddinfo/stayddlist"); i++){
  137. if((model.getValue("/root/main/stayddinfo/stayddlist[" + i + "]/deptnm").toUpperCase()) == "TOTAL"){
  138. grd_stayddlist.rowStyle(i, "data", "background-color") = "#7cff7c";
  139. grd_stayddlist.rowStyle(i, "data", "font-weight") = "bold";
  140. }
  141. }
  142. grd_stayddlist.colStyle(grd_stayddlist.cols-1, "data", "background-color") = "#7cff7c";
  143. grd_stayddlist.colStyle(grd_stayddlist.cols-1, "data", "font-weight") = "bold";
  144. }else if(rdo_srchflag2.value == "2"){
  145. ipt_srchdd.visible = false;
  146. ipt_srchfromdd.visible = false;
  147. ipt_srchtodd.visible = false;
  148. caption3.visible = false;
  149. ipt_srchyear.visible = true;
  150. model.makeValue("root/send/srchyear", model.getValue("/root/main/cond/srchyear"));
  151. model.makeValue("root/send/srchflag1", model.getValue("/root/main/cond/srchflag1"));
  152. model.makeValue("root/send/srchflag2", model.getValue("/root/main/cond/srchflag2"));
  153. submit("TRSNE00102");
  154. // Total 항목 색상표시 및 글씨체 두껍게_20100105_서미영ITC
  155. for(var i=1; i<=getNodesetCount("/root/main/staymminfo/staymmlist"); i++){
  156. if((model.getValue("/root/main/staymminfo/staymmlist[" + i + "]/deptnm").toUpperCase()) == "TOTAL"){
  157. grd_staymmlist.rowStyle(i, "data", "background-color") = "#7cff7c";
  158. grd_staymmlist.rowStyle(i, "data", "font-weight") = "bold";
  159. }
  160. }
  161. grd_staymmlist.colStyle(grd_staymmlist.cols-1, "data", "background-color") = "#7cff7c";
  162. grd_staymmlist.colStyle(grd_staymmlist.cols-1, "data", "font-weight") = "bold";
  163. }else if(rdo_srchflag2.value == "3"){
  164. ipt_srchdd.visible = false;
  165. ipt_srchyear.visible = false;
  166. ipt_srchfromdd.visible = true;
  167. ipt_srchtodd.visible = true;
  168. caption3.visible = true;
  169. model.makeValue("root/send/srchfromdd", model.getValue("/root/main/cond/srchfromdd"));
  170. model.makeValue("root/send/srchtodd", model.getValue("/root/main/cond/srchtodd"));
  171. model.makeValue("root/send/srchflag1", model.getValue("/root/main/cond/srchflag1"));
  172. model.makeValue("root/send/srchflag2", model.getValue("/root/main/cond/srchflag2"));
  173. submit("TRSNE00103");
  174. // Total 항목 색상표시 및 글씨체 두껍게_20100105_서미영ITC
  175. for(var i=1; i<=getNodesetCount("/root/main/staytminfo/staytmlist"); i++){
  176. if((model.getValue("/root/main/staytminfo/staytmlist[" + i + "]/deptnm").toUpperCase()) == "TOTAL"){
  177. grd_staytminfo.rowStyle(i, "data", "background-color") = "#7cff7c";
  178. grd_staytminfo.rowStyle(i, "data", "font-weight") = "bold";
  179. }
  180. }
  181. grd_staytminfo.colStyle(grd_staytminfo.cols-1, "data", "background-color") = "#7cff7c";
  182. grd_staytminfo.colStyle(grd_staytminfo.cols-1, "data", "font-weight") = "bold";
  183. }
  184. // 임상과 열에 tooltiptext 를 설정한다(진료과한글명)_20091216(ByJA)
  185. for(var i=grd_stayddlist.fixedRows; i<grd_stayddlist.rows; i++)
  186. {
  187. grd_stayddlist.tooltipText(i, grd_stayddlist.colRef("deptnm")) = model.getValue("/root/main/stayddinfo/stayddlist["+i+"]/depthngnm");
  188. }
  189. for(var i=grd_staymmlist.fixedRows; i<grd_staymmlist.rows; i++)
  190. {
  191. grd_staymmlist.tooltipText(i, grd_staymmlist.colRef("deptnm")) = model.getValue("/root/main/staymminfo/staymmlist["+i+"]/depthngnm");
  192. }
  193. for(var i=grd_staytminfo.fixedRows; i<grd_staytminfo.rows; i++)
  194. {
  195. grd_staytminfo.tooltipText(i, grd_staytminfo.colRef("deptnm")) = model.getValue("/root/main/staytminfo/staytmlist["+i+"]/depthngnm");
  196. }
  197. }
  198. ]]>
  199. </script>
  200. </model>
  201. </xhtml:head>
  202. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  203. <group id="group1" style="left:0px; top:20px; width:1179px; height:41px; ">
  204. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:2px; top:0px; width:1176px; height:40px; "/>
  205. <line id="line1" class="line_4" style="x1:1000px; y1:10px; x2:1000px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  206. <caption id="caption4" class="search_name" style="left:20px; top:12px; width:86px; height:17px; ">검색조건 :</caption>
  207. <caption id="caption2" class="search_name" style="left:565px; top:12px; width:86px; height:17px; ">조회기간 :</caption>
  208. <input id="ipt_srchdd" ref="/root/main/cond/srchdd" class="input_search" visibility="hidden" inputtype="date" format="yyyy-mm" style="left:660px; top:10px; width:70px; height:19px; ">
  209. <script type="javascript" ev:event="xforms-value-changed">
  210. <![CDATA[
  211. fGetStsData();
  212. ]]>
  213. </script>
  214. </input>
  215. <input id="ipt_srchyear" ref="/root/main/cond/srchyear" class="input_search" visibility="hidden" inputtype="date" format="yyyy" style="left:660px; top:10px; width:50px; height:19px; ">
  216. <script type="javascript" ev:event="xforms-value-changed">
  217. <![CDATA[
  218. fGetStsData();
  219. ]]>
  220. </script>
  221. </input>
  222. <input id="ipt_srchfromdd" ref="/root/main/cond/srchfromdd" class="input_search" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:660px; top:10px; width:95px; height:19px; ">
  223. <script type="javascript" ev:event="xforms-value-changed">
  224. <![CDATA[
  225. fGetStsData();
  226. ]]>
  227. </script>
  228. </input>
  229. <input id="ipt_srchtodd" ref="/root/main/cond/srchtodd" class="input_search" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:780px; top:10px; width:100px; height:19px; ">
  230. <script type="javascript" ev:event="xforms-value-changed">
  231. <![CDATA[
  232. fGetStsData();
  233. ]]>
  234. </script>
  235. </input>
  236. <select1 id="rdo_srchflag1" ref="/root/main/cond/srchflag1" appearance="full" cellspacing="5" cols="5" overflow="visible" style="left:112px; top:14px; width:159px; height:15px; border-style:none; ">
  237. <choices>
  238. <item>
  239. <label>내원 기준</label>
  240. <value>1</value>
  241. </item>
  242. <item>
  243. <label>퇴실 기준</label>
  244. <value>2</value>
  245. </item>
  246. </choices>
  247. <script type="javascript" ev:event="xforms-value-changed">
  248. <![CDATA[
  249. fGetStsData();
  250. ]]>
  251. </script>
  252. </select1>
  253. <select1 id="rdo_srchflag2" ref="/root/main/cond/srchflag2" appearance="full" cellspacing="5" cols="5" overflow="visible" style="left:290px; top:14px; width:255px; height:15px; border-style:none; ">
  254. <choices>
  255. <item>
  256. <label>일별</label>
  257. <value>1</value>
  258. </item>
  259. <item>
  260. <label>월별</label>
  261. <value>2</value>
  262. </item>
  263. <item>
  264. <label>체류시간대별</label>
  265. <value>3</value>
  266. </item>
  267. </choices>
  268. <script type="javascript" ev:event="xforms-value-changed">
  269. <![CDATA[
  270. if(rdo_srchflag2.value == "1"){
  271. model.toggle("case1");
  272. }else if(rdo_srchflag2.value == "2"){
  273. model.toggle("case2");
  274. }else if(rdo_srchflag2.value == "3"){
  275. model.toggle("case3");
  276. }
  277. fGetStsData();
  278. ]]>
  279. </script>
  280. </select1>
  281. <button id="btn_search" class="btn1_letter2" style="left:1025px; top:9px; width:56px; height:22px; ">
  282. <caption>조회</caption>
  283. <script type="javascript" ev:event="DOMActivate">
  284. <![CDATA[
  285. fGetStsData();
  286. ]]>
  287. </script>
  288. </button>
  289. <button id="btn_excel" class="btn1_letter4" style="left:1087px; top:9px; width:80px; height:22px; ">
  290. <caption>엑셀저장</caption>
  291. <script type="javascript" ev:event="DOMActivate">
  292. <![CDATA[
  293. var fromdd = model.getValue("/root/main/cond/srchfromdd");
  294. var todd = model.getValue("/root/main/cond/srchtodd");
  295. var syear = model.getValue("/root/main/cond/srchyear");
  296. var smon = model.getValue("/root/main/cond/srchdd");
  297. if(rdo_srchflag2.value == "1"){
  298. var fileName = window.fileDialog("save", ",", false, "체류시간대장_일별(" + smon + ")", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  299. if (fileName != "") {
  300. grd_stayddlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  301. }
  302. }else if(rdo_srchflag2.value == "2"){
  303. var fileName = window.fileDialog("save", ",", false, "체류시간대장_월별(" + syear + ")", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  304. if (fileName != "") {
  305. grd_staymmlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  306. }
  307. }else if(rdo_srchflag2.value == "3"){
  308. var fileName = window.fileDialog("save", ",", false, "체류시간대장_체류시간대별(" + fromdd + "-" + todd + ")", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  309. if (fileName != "") {
  310. grd_staytminfo.saveExcel(fileName, "SheetName", true, true, "", "", false);
  311. }
  312. }
  313. ]]>
  314. </script>
  315. </button>
  316. <caption id="caption3" visibility="hidden" style="left:760px; top:11px; width:15px; height:19px; text-align:center; ">~</caption>
  317. </group>
  318. <switch id="switch1" style="left:0px; top:65px; width:1179px; height:700px; ">
  319. <case id="case1" selected="true">
  320. <datagrid id="grd_stayddlist" nodeset="/root/main/stayddinfo/stayddlist" caption="임상과^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^TOTAL" colsep="^" colwidth="120, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 60" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:4px; top:4px; width:1169px; height:690px; ">
  321. <col ref="deptnm" style="text-align:center; "/>
  322. <col ref="col1" style="text-align:right; "/>
  323. <col ref="col2" style="text-align:right; "/>
  324. <col ref="col3" style="text-align:right; "/>
  325. <col ref="col4" style="text-align:right; "/>
  326. <col ref="col5" style="text-align:right; "/>
  327. <col ref="col6" style="text-align:right; "/>
  328. <col ref="col7" style="text-align:right; "/>
  329. <col ref="col8" style="text-align:right; "/>
  330. <col ref="col9" style="text-align:right; "/>
  331. <col ref="col10" style="text-align:right; "/>
  332. <col ref="col11" style="text-align:right; "/>
  333. <col ref="col12" style="text-align:right; "/>
  334. <col ref="col13" style="text-align:right; "/>
  335. <col ref="col14" style="text-align:right; "/>
  336. <col ref="col15" style="text-align:right; "/>
  337. <col ref="col16" style="text-align:right; "/>
  338. <col ref="col17" style="text-align:right; "/>
  339. <col ref="col18" style="text-align:right; "/>
  340. <col ref="col19" style="text-align:right; "/>
  341. <col ref="col20" style="text-align:right; "/>
  342. <col ref="col21" style="text-align:right; "/>
  343. <col ref="col22" style="text-align:right; "/>
  344. <col ref="col23" style="text-align:right; "/>
  345. <col ref="col24" style="text-align:right; "/>
  346. <col ref="col25" style="text-align:right; "/>
  347. <col ref="col26" style="text-align:right; "/>
  348. <col ref="col27" style="text-align:right; "/>
  349. <col ref="col28" style="text-align:right; "/>
  350. <col ref="col29" style="text-align:right; "/>
  351. <col ref="col30" style="text-align:right; "/>
  352. <col ref="col31" style="text-align:right; "/>
  353. <col ref="stayddsum" style="text-align:right; "/>
  354. </datagrid>
  355. </case>
  356. <case id="case2">
  357. <datagrid id="grd_staymmlist" nodeset="/root/main/staymminfo/staymmlist" caption="임상과^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^TOTAL" colsep="^" colwidth="130, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 100" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:4px; top:4px; width:1169px; height:690px; ">
  358. <col ref="deptnm" style="text-align:center; "/>
  359. <col ref="col1" style="text-align:right; "/>
  360. <col ref="col2" style="text-align:right; "/>
  361. <col ref="col3" style="text-align:right; "/>
  362. <col ref="col4" style="text-align:right; "/>
  363. <col ref="col5" style="text-align:right; "/>
  364. <col ref="col6" style="text-align:right; "/>
  365. <col ref="col7" style="text-align:right; "/>
  366. <col ref="col8" style="text-align:right; "/>
  367. <col ref="col9" style="text-align:right; "/>
  368. <col ref="col10" style="text-align:right; "/>
  369. <col ref="col11" style="text-align:right; "/>
  370. <col ref="col12" style="text-align:right; "/>
  371. <col ref="staymmsum" style="text-align:right; "/>
  372. </datagrid>
  373. </case>
  374. <case id="case3">
  375. <datagrid id="grd_staytminfo" nodeset="/root/main/staytminfo/staytmlist" caption="임상과^1H 미만^3H미만^4H 미만^6H 미만^12H 미만^24H 미만^72H 미만^72H 이상^TOTAL" colsep="^" colwidth="130, 103, 103, 103, 103, 102, 103, 103, 103, 103" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:4px; top:4px; width:1169px; height:690px; ">
  376. <col ref="deptnm" style="text-align:center; "/>
  377. <col ref="col1" style="text-align:right; "/>
  378. <col ref="col2" style="text-align:right; "/>
  379. <col ref="col3" style="text-align:right; "/>
  380. <col ref="col4" style="text-align:right; "/>
  381. <col ref="col5" style="text-align:right; "/>
  382. <col ref="col6" style="text-align:right; "/>
  383. <col ref="col7" style="text-align:right; "/>
  384. <col ref="col8" style="text-align:right; "/>
  385. <col ref="staytmsum" style="text-align:right; "/>
  386. </datagrid>
  387. </case>
  388. </switch>
  389. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:170px; height:14px; ">체류시간대장</caption>
  390. </xhtml:body>
  391. </xhtml:html>