SMAES05600_재활의학팀코드별일일치료건수.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  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. <list>
  11. <item>
  12. <ioflag/>
  13. <basecdcnts/>
  14. <excuroomcd/>
  15. <basecdflagdesc/>
  16. <day01/>
  17. <day02/>
  18. <day03/>
  19. <day04/>
  20. <day05/>
  21. <day06/>
  22. <day07/>
  23. <day08/>
  24. <day09/>
  25. <day10/>
  26. <day11/>
  27. <day12/>
  28. <day13/>
  29. <day14/>
  30. <day15/>
  31. <day16/>
  32. <day17/>
  33. <day18/>
  34. <day19/>
  35. <day20/>
  36. <day21/>
  37. <day22/>
  38. <day23/>
  39. <day24/>
  40. <day25/>
  41. <day26/>
  42. <day27/>
  43. <day28/>
  44. <day29/>
  45. <day30/>
  46. <day31/>
  47. <allcnt/>
  48. <flag/>
  49. </item>
  50. </list>
  51. </main>
  52. <send>
  53. <execfromdd/>
  54. <exectodd/>
  55. <globalinstance>
  56. <instance1/>
  57. </globalinstance>
  58. <suppdeptcd/>
  59. <fstpatyn/>
  60. <srchflag/>
  61. <srchioflag/>
  62. <curerm/>
  63. <execdrid/>
  64. <srchyy/>
  65. <srchmm/>
  66. <orddeptcd/>
  67. <prcpcd/>
  68. </send>
  69. <inti/>
  70. <hidden/>
  71. </root>
  72. </instance>
  73. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  75. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  77. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  78. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  79. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  80. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  81. <submission id="TRZBC00101"/>
  82. <submission id="TRAES09000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/inti"/>
  83. <script type="javascript" ev:event="xforms-ready">
  84. <![CDATA[
  85. aezfSetSuppDeptcd();
  86. // 진료과/진료의 조회
  87. // submit("TRPMOCOM01", false);
  88. submit("TRAES09000", false);
  89. model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  90. addComboItem("cmb_curerm","--전체--","","above");
  91. addComboItem("cmb_execdrid","--전체--","","above");
  92. addComboItem("cmb_orddept","--전체--","","above");
  93. model.removenode("/root/main/list/item");
  94. // 검사수/환자수 - 검사[T], 환자[P]
  95. model.setValue("/root/send/srchflag", "T");
  96. // 입원/외래구분 - 전체[], 입원[I], 외래[O]
  97. model.setValue("/root/send/srchioflag","");
  98. // 초환/재환구분 - 전체[], 초환[F], 재환[R]
  99. model.setValue("/root/send/fstpatyn","");
  100. mkDate();
  101. fSetDay();
  102. model.refresh();
  103. ]]>
  104. </script>
  105. <script type="javascript">
  106. <![CDATA[
  107. function mkDate(){
  108. var startyy = "";
  109. for(i=8; 0<=i; i--) {
  110. startyy = getCurrentDate().toDate().getAddDate(-i,"Y").getDateFormat().substr(0,4);
  111. addComboItem("cmb_srchdd",startyy +"년",startyy,"above");
  112. }
  113. cmb_srchdd.value = getCurrentDate().substr(0,4);
  114. cmb_srchmm.value = getCurrentDate().substr(4,2);
  115. }
  116. function fSetDay() {
  117. var toyy = model.getValue("/root/send/srchyy");
  118. var tomm = model.getValue("/root/send/srchmm");
  119. var sToDate = toyy + tomm + "01";
  120. var m = sToDate.toDate().getMonth();
  121. var sDayCnt = sToDate.toDate().getMonthDay();
  122. setWeek(toyy, m, sDayCnt);
  123. }
  124. function setWeek(toyy, m, sDayCnt) {
  125. var str = "일,월,화,수,목,금,토";
  126. var endM = new Array(31,28,31,30,31,30,31,31,30,31,30,31);
  127. var days = new Array("일","월","화","수","목","금","토");
  128. var week = str.split(",");
  129. var orgCap = "처방명^처방명^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^합계(건)|처방명^처방명";
  130. var setCap = "";
  131. var cnt = timeCalculate(toyy, m);
  132. for(i=1; i<=31; i++) {
  133. setCap = setCap+"^"+days[cnt];
  134. cnt++;
  135. if(cnt > 6) {
  136. cnt = 0;
  137. }
  138. }
  139. orgCap = orgCap+setCap+"^합계(건)";
  140. grd_list.caption = orgCap;
  141. if(sDayCnt > 30) {
  142. grd_list.colHidden(grd_list.colRef("day29")) = false;
  143. grd_list.colHidden(grd_list.colRef("day30")) = false;
  144. grd_list.colHidden(grd_list.colRef("day31")) = false;
  145. }else if(sDayCnt < 30) {
  146. grd_list.colHidden(grd_list.colRef("day29")) = true;
  147. grd_list.colHidden(grd_list.colRef("day30")) = true;
  148. grd_list.colHidden(grd_list.colRef("day31")) = true;
  149. }else {
  150. grd_list.colHidden(grd_list.colRef("day29")) = false;
  151. grd_list.colHidden(grd_list.colRef("day30")) = false;
  152. grd_list.colHidden(grd_list.colRef("day31")) = true;
  153. }
  154. }
  155. function timeCalculate(toyy, m) {
  156. var c = new Date(toyy,m,"1");
  157. var weeknm = c.getDay();
  158. var dayOfWeek = parseInt(weeknm)-2;
  159. return weeknm;
  160. }
  161. ]]>
  162. </script>
  163. <submission id="TRAES05601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  164. <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
  165. </model>
  166. </xhtml:head>
  167. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  168. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  169. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">처방별 일일치료건수</caption>
  170. </group>
  171. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  172. <caption id="caption1" class="tit_2" style="left:5px; top:80px; width:200px; height:13px; ">치료건수</caption>
  173. <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1195px; y2:95px; "/>
  174. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:60px; vertical-align:top; ">
  175. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  176. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">치료일자 :</caption>
  177. <line id="line13" class="line_4" style="x1:1100px; y1:12px; x2:1100px; y2:50px; "/>
  178. <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:1120px; top:20px; width:56px; height:22px; ">
  179. <caption>조회</caption>
  180. <script type="javascript" ev:event="DOMActivate">
  181. <![CDATA[
  182. model.removenode("/root/main/list");
  183. if (submit("TRAES05601")) {
  184. var cnt = getNodesetCount("/root/main/list/item");
  185. if (cnt > 1) {
  186. for ( i = 1; i <= cnt; i++ ) {
  187. grd_list.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
  188. grd_list.rowstyle( i , "data" , "color" ) = "#000000";
  189. }
  190. grd_list.colSort(0) = "asc";
  191. grd_list.sort(0, 0, grd_list.rows, grd_list.cols) = "usersort";
  192. for(i=2; i<35; i++) {
  193. grd_list.subtotal("sum", -1, i, "#,###", "background-color:#CCFFCC; color:#0000ff; font-weight:bold; ", 2, "총계");
  194. }
  195. // grd_list.mergeByFree(grd_list.rows-1, 1 , grd_list.rows-1, 2);
  196. model.refresh();
  197. }
  198. }
  199. ]]>
  200. </script>
  201. </button>
  202. <caption id="caption11" class="search_name" visibility="visible" style="left:575px; top:9px; width:119px; height:17px; ">초환/재환구분 :</caption>
  203. <select1 id="radio1" ref="/root/send/fstpatyn" visibility="visible" appearance="full" cols="3" overflow="visible" style="left:700px; top:10px; width:140px; height:20px; border-style:none; ">
  204. <choices>
  205. <item>
  206. <label>전체</label>
  207. <value/>
  208. </item>
  209. <item>
  210. <label>초환</label>
  211. <value>F</value>
  212. </item>
  213. <item>
  214. <label>재환</label>
  215. <value>R</value>
  216. </item>
  217. </choices>
  218. </select1>
  219. <select1 id="cmb_curerm" ref="/root/send/curerm" appearance="minimal" itemcount="10" style="left:400px; top:9px; width:115px; height:19px; ">
  220. <choices>
  221. <itemset nodeset="/root/init/curerm">
  222. <label ref="nm"/>
  223. <value ref="cd"/>
  224. </itemset>
  225. </choices>
  226. </select1>
  227. <caption id="caption8" class="search_name" style="left:320px; top:9px; width:78px; height:17px; ">치료실 :</caption>
  228. <select1 id="cmb_execdrid" ref="/root/send/execdrid" appearance="minimal" itemcount="10" style="left:400px; top:35px; width:115px; height:19px; ">
  229. <choices>
  230. <itemset nodeset="/root/init/execdrid">
  231. <label ref="nm"/>
  232. <value ref="cd"/>
  233. </itemset>
  234. </choices>
  235. </select1>
  236. <caption id="caption9" class="search_name" style="left:320px; top:35px; width:78px; height:17px; ">치료사 :</caption>
  237. <caption id="caption13" class="search_name" style="left:575px; top:35px; width:119px; height:17px; ">입원/외래구분 :</caption>
  238. <select1 id="radio3" ref="/root/send/srchioflag" appearance="full" cols="3" overflow="visible" style="left:700px; top:35px; width:140px; height:18px; border-style:none; ">
  239. <choices>
  240. <item>
  241. <label>전체</label>
  242. <value/>
  243. </item>
  244. <item>
  245. <label>입원</label>
  246. <value>I</value>
  247. </item>
  248. <item>
  249. <label>외래</label>
  250. <value>O</value>
  251. </item>
  252. </choices>
  253. </select1>
  254. <select1 id="cmb_srchmm" ref="/root/send/srchmm" appearance="minimal" style="left:183px; top:6px; width:73px; height:19px; ">
  255. <choices>
  256. <item>
  257. <label>1월</label>
  258. <value>01</value>
  259. </item>
  260. <item>
  261. <label>2월</label>
  262. <value>02</value>
  263. </item>
  264. <item>
  265. <label>3월</label>
  266. <value>03</value>
  267. </item>
  268. <item>
  269. <label>4월</label>
  270. <value>04</value>
  271. </item>
  272. <item>
  273. <label>5월</label>
  274. <value>05</value>
  275. </item>
  276. <item>
  277. <label>6월</label>
  278. <value>06</value>
  279. </item>
  280. <item>
  281. <label>7월</label>
  282. <value>07</value>
  283. </item>
  284. <item>
  285. <label>8월</label>
  286. <value>08</value>
  287. </item>
  288. <item>
  289. <label>9월</label>
  290. <value>09</value>
  291. </item>
  292. <item>
  293. <label>10월</label>
  294. <value>10</value>
  295. </item>
  296. <item>
  297. <label>11월</label>
  298. <value>11</value>
  299. </item>
  300. <item>
  301. <label>12월</label>
  302. <value>12</value>
  303. </item>
  304. </choices>
  305. <script type="javascript" ev:event="xforms-value-changed">
  306. <![CDATA[
  307. fSetDay();
  308. ]]>
  309. </script>
  310. </select1>
  311. <select1 id="cmb_srchdd" ref="/root/send/srchyy" appearance="minimal" style="left:107px; top:6px; width:73px; height:19px; ">
  312. <choices>
  313. <itemset nodeset="/root/inti_com/srchdate/item">
  314. <label ref="label"/>
  315. <value ref="value"/>
  316. </itemset>
  317. </choices>
  318. <script type="javascript" ev:event="xforms-value-changed">
  319. <![CDATA[
  320. fSetDay();
  321. ]]>
  322. </script>
  323. </select1>
  324. <caption id="caption7" class="search_name" style="left:15px; top:35px; width:78px; height:17px; ">처방과 :</caption>
  325. <select1 id="cmb_orddept" ref="/root/send/orddeptcd" appearance="minimal" itemcount="10" style="left:107px; top:35px; width:148px; height:19px; ">
  326. <choices>
  327. <itemset nodeset="/root/init/orddeptcd">
  328. <label ref="nm"/>
  329. <value ref="cd"/>
  330. </itemset>
  331. </choices>
  332. <script type="javascript" ev:event="xforms-value-changed">
  333. <![CDATA[
  334. // cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init/orddrid[dp = '"+ cmb_orddept.value +"']";
  335. // cmb_orddr.refresh();
  336. ]]>
  337. </script>
  338. </select1>
  339. </group>
  340. <button id="btn_excsave" class="btn2_letter4" style="left:1131px; top:75px; width:64px; height:19px; ">
  341. <caption>엑셀저장</caption>
  342. <script type="javascript" ev:event="DOMActivate">
  343. <![CDATA[
  344. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  345. if (fileName != "") {
  346. grd_list.saveExcel(fileName);
  347. }
  348. ]]>
  349. </script>
  350. </button>
  351. <datagrid id="grd_list" nodeset="/root/main/list/item" 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^합계(건)|처방명^처방명^d1^d2^d3^d4^d5^d6^d7^d8^d9^d10^d11^d12^d13^d14^d15^d16^d17^d18^d19^d20^d21^d22^d23^d24^d25^d26^d27^d28^d29^d30^d31^합계(건)" colsep="^" colwidth="100, 200, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 55" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" tooltip="true" style="left:0px; top:100px; width:1193px; height:640px; ">
  352. <col ref="prcpcd" visibility="hidden" style="text-align:left; "/>
  353. <col ref="prcpnm" style="text-align:left; "/>
  354. <col ref="day01" format="#,###" style="text-align:right; "/>
  355. <col ref="day02" format="#,###" style="text-align:right; "/>
  356. <col ref="day03" format="#,###" style="text-align:right; "/>
  357. <col ref="day04" format="#,###" style="text-align:right; "/>
  358. <col ref="day05" format="#,###" style="text-align:right; "/>
  359. <col ref="day06" format="#,###" style="text-align:right; "/>
  360. <col ref="day07" format="#,###" style="text-align:right; "/>
  361. <col ref="day08" format="#,###" style="text-align:right; "/>
  362. <col ref="day09" format="#,###" style="text-align:right; "/>
  363. <col ref="day10" format="#,###" style="text-align:right; "/>
  364. <col ref="day11" format="#,###" style="text-align:right; "/>
  365. <col ref="day12" format="#,###" style="text-align:right; "/>
  366. <col ref="day13" format="#,###" style="text-align:right; "/>
  367. <col ref="day14" format="#,###" style="text-align:right; "/>
  368. <col ref="day15" format="#,###" style="text-align:right; "/>
  369. <col ref="day16" format="#,###" style="text-align:right; "/>
  370. <col ref="day17" format="#,###" style="text-align:right; "/>
  371. <col ref="day18" format="#,###" style="text-align:right; "/>
  372. <col ref="day19" format="#,###" style="text-align:right; "/>
  373. <col ref="day20" format="#,###" style="text-align:right; "/>
  374. <col ref="day21" format="#,###" style="text-align:right; "/>
  375. <col ref="day22" format="#,###" style="text-align:right; "/>
  376. <col ref="day23" format="#,###" style="text-align:right; "/>
  377. <col ref="day24" format="#,###" style="text-align:right; "/>
  378. <col ref="day25" format="#,###" style="text-align:right; "/>
  379. <col ref="day26" format="#,###" style="text-align:right; "/>
  380. <col ref="day27" format="#,###" style="text-align:right; "/>
  381. <col ref="day28" format="#,###" style="text-align:right; "/>
  382. <col ref="day29" format="#,###" style="text-align:right; "/>
  383. <col ref="day30" format="#,###" style="text-align:right; "/>
  384. <col ref="day31" format="#,###" style="text-align:right; "/>
  385. <col ref="allcnt" format="#,###" style="text-align:right; "/>
  386. </datagrid>
  387. </group>
  388. </xhtml:body>
  389. </xhtml:html>