SPLVJ90400_월별현황.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <patlist>
  11. <pid/>
  12. <patnm/>
  13. <wardroom/>
  14. </patlist>
  15. <ylist>
  16. <m1/>
  17. <m2/>
  18. <m3/>
  19. <m4/>
  20. <m5/>
  21. <m6/>
  22. <m7/>
  23. <m8/>
  24. <m9/>
  25. <m10/>
  26. <m11/>
  27. <m12/>
  28. <sum/>
  29. <monthsum/>
  30. </ylist>
  31. <mlist>
  32. <sun value=""/>
  33. <mon value=""/>
  34. <tue value=""/>
  35. <wed>
  36. <value/>
  37. </wed>
  38. <thu value=""/>
  39. <fri value=""/>
  40. <sat value=""/>
  41. <sun_memo/>
  42. <mon_memo/>
  43. <tue_memo/>
  44. <wed_memo/>
  45. <thu_memo/>
  46. <fri_memo/>
  47. <sat_memo/>
  48. </mlist>
  49. <montdt/>
  50. <year/>
  51. </main>
  52. <send>
  53. <year/>
  54. <month/>
  55. <yymmdd/>
  56. </send>
  57. <init/>
  58. <hidden>
  59. <ref>
  60. <searchyear/>
  61. <searchmonth/>
  62. </ref>
  63. </hidden>
  64. </root>
  65. </instance>
  66. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  67. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  68. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  69. <script ev:event="xforms-model-construct-done" type="javascript">
  70. <![CDATA[
  71. fnowdd();
  72. fgetmonthdata();
  73. ]]>
  74. </script>
  75. <submission id="TRLVJ90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/mlist"/>
  76. <submission id="TRLVJ90402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/patlist"/>
  77. <submission id="TRLVJ90403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ylist"/>
  78. </model>
  79. <script type="javascript">
  80. <![CDATA[
  81. function fExeCancel() {
  82. window.close();
  83. }
  84. function fnowdd() {
  85. var nowdd = getCurrentDate();
  86. var nowyy = nowdd.substr(0, 4);
  87. var nowmm = nowdd.substr(4, 6);
  88. nowmm = nowmm.substr(0, 2);
  89. model.setValue("/root/hidden/ref/searchyear", nowyy);
  90. model.setValue("/root/main/year", nowyy);
  91. model.setValue("/root/hidden/ref/searchmonth", nowmm);
  92. }
  93. function fchkyear(num) {
  94. var nn = model.getValue("/root/hidden/ref/searchyear");
  95. var mm = model.getValue("/root/hidden/ref/searchmonth");
  96. if(mm.charAt(0) == '0'){
  97. mm = mm.substr(1, 1);
  98. }
  99. var ns = parseInt(nn);
  100. var ms = parseInt(mm);
  101. if(num == 1){
  102. ns = ns-1;
  103. model.setValue("/root/hidden/ref/searchyear", ns);
  104. model.setValue("/root/main/year", ns);
  105. }
  106. else if(num == 2){
  107. ns = ns+1;
  108. model.setValue("/root/hidden/ref/searchyear", ns);
  109. model.setValue("/root/main/year", ns);
  110. }
  111. else if(num == 3){
  112. ms = ms - 1;
  113. if(ms == 0){
  114. ms = 12;
  115. ns = ns -1;
  116. model.setValue("/root/hidden/ref/searchyear", ns);
  117. model.setValue("/root/main/year", ns);
  118. }
  119. model.setValue("/root/hidden/ref/searchmonth", ms);
  120. }
  121. else{
  122. ms = ms + 1;
  123. if(ms == 13){
  124. ms = 1;
  125. ns = ns + 1;
  126. model.setValue("/root/hidden/ref/searchyear", ns);
  127. model.setValue("/root/main/year", ns);
  128. }
  129. model.setValue("/root/hidden/ref/searchmonth", ms);
  130. }
  131. fgetmonthdata();
  132. }
  133. function fgetmonthdata() {
  134. var mm = model.getValue("/root/hidden/ref/searchmonth");
  135. if(mm.length == 1){
  136. mm = '0' + mm;
  137. model.setValue("/root/hidden/ref/searchmonth", mm);
  138. }
  139. model.setValue("/root/send/year", model.getValue(" /root/hidden/ref/searchyear"));
  140. model.setValue("/root/send/month", model.getValue("/root/hidden/ref/searchmonth"));
  141. submit("TRLVJ90401");
  142. submit("TRLVJ90403");
  143. }
  144. function fgetclickday() {
  145. var row = mlist.row;
  146. var col = mlist.col;
  147. if(col == 0){
  148. model.setValue("/root/send/yymmdd", model.getValue("/root/main/mlist["+row+"]/sun/@value"));
  149. }
  150. else if(col == 1){
  151. model.setValue("/root/send/yymmdd", model.getValue("/root/main/mlist["+row+"]/mon/@value"));
  152. }
  153. else if(col == 2){
  154. model.setValue("/root/send/yymmdd", model.getValue("/root/main/mlist["+row+"]/tue/@value"));
  155. }
  156. else if(col == 3){
  157. model.setValue("/root/send/yymmdd", model.getValue("/root/main/mlist["+row+"]/wed/@value"));
  158. }
  159. else if(col == 4){
  160. model.setValue("/root/send/yymmdd", model.getValue("/root/main/mlist["+row+"]/thu/@value"));
  161. }
  162. else if(col == 5){
  163. model.setValue("/root/send/yymmdd", model.getValue("/root/main/mlist["+row+"]/fri/@value"));
  164. }
  165. else if(col == 6){
  166. model.setValue("/root/send/yymmdd", model.getValue("/root/main/mlist["+row+"]/sat/@value"));
  167. }
  168. var dateyy = model.getValue("/root/send/yymmdd");
  169. var datemm = dateyy.substr(4,6);
  170. var datedd = datemm.substr(2,4);
  171. dateyy = dateyy.substr(0,4);
  172. datemm = datemm.substr(0,2);
  173. model.setValue("/root/main/montdt", dateyy + "년 " + datemm + "월 " + datedd + "일");
  174. submit("TRLVJ90402");
  175. }
  176. ]]>
  177. </script>
  178. </xhtml:head>
  179. <xhtml:body pagewidth="800" pageheight="700" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  180. <group id="group1" style="left:0px; top:0px; width:722px; height:555px; ">
  181. <caption id="caption5" class="tit_2" style="left:5px; top:10px; width:134px; height:13px; ">월별 현황</caption>
  182. <output id="output3" ref="/root/main/montdt" style="left:430px; top:31px; width:287px; height:19px; font-family:돋움; font-size:12pt; font-weight:bold; color:#000000; text-align:center; "/>
  183. <datagrid id="datagrid2" nodeset="/root/main/ylist" caption="1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월" colsep="^" colwidth="60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60" dataheight="25" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:474px; width:722px; height:48px; ">
  184. <col ref="m1" style="text-align:center; "/>
  185. <col ref="m2" style="left:50px; top:25px; width:50px; height:25px; text-align:center; "/>
  186. <col ref="m3" style="text-align:center; "/>
  187. <col ref="m4" style="text-align:center; "/>
  188. <col ref="m5" style="left:200px; top:25px; width:50px; height:25px; text-align:center; "/>
  189. <col ref="m6" style="text-align:center; "/>
  190. <col ref="m7" style="text-align:center; "/>
  191. <col ref="m8" style="text-align:center; "/>
  192. <col ref="m9" style="text-align:center; "/>
  193. <col ref="m10" style="text-align:center; "/>
  194. <col ref="m11" style="text-align:center; "/>
  195. <col ref="m12" style="text-align:center; "/>
  196. </datagrid>
  197. <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:352px; y2:25px; "/>
  198. <line id="line1" class="line_1" style="x1:357px; y1:25px; x2:722px; y2:25px; "/>
  199. <line id="line3" class="line_1" style="x1:0px; y1:469px; x2:722px; y2:469px; "/>
  200. <output id="output2" ref="/root/main/ylist/sum" style="left:123px; top:530px; width:60px; height:19px; font-family:돋움; font-size:12pt; font-weight:bold; color:#000000; text-align:right; "/>
  201. <caption id="caption2" class="tit_2" style="left:362px; top:10px; width:175px; height:13px; ">일별 종합검증 환자 리스트</caption>
  202. <caption id="caption7" class="cell_1" style="left:0px; top:424px; width:120px; height:23px; font-family:돋움; ">월별 합계</caption>
  203. <caption id="caption3" class="cell_1" style="left:357px; top:30px; width:70px; height:23px; font-family:돋움; text-align:left; ">조회일자</caption>
  204. <line id="line4" class="line_3" style="x1:0px; y1:446px; x2:352px; y2:446px; "/>
  205. <output id="output4" ref="/root/main/ylist/monthsum" style="left:123px; top:425px; width:209px; height:19px; font-family:돋움; font-size:12pt; font-weight:bold; color:#000000; text-align:right; "/>
  206. <caption id="caption4" style="left:335px; top:425px; width:20px; height:19px; font-family:돋움; font-size:12pt; font-weight:bold; text-align:left; ">명</caption>
  207. <datagrid id="datagrid1" nodeset="/root/main/patlist" caption="등록번호^환자명^진료과/병실" colsep="^" colwidth="100, 100, 142" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:357px; top:55px; width:365px; height:393px; ">
  208. <col ref="pid"/>
  209. <col ref="patnm"/>
  210. <col ref="wardroom"/>
  211. </datagrid>
  212. <caption id="caption6" class="tit_2" style="left:5px; top:454px; width:134px; height:13px; ">연별 현황</caption>
  213. <line id="line5" class="line_2" style="x1:357px; y1:52px; x2:722px; y2:52px; "/>
  214. <caption id="caption1" class="cell_1" style="left:0px; top:529px; width:120px; height:23px; font-family:돋움; text-align:right; vertical-align:middle; ">년 검증인원</caption>
  215. <line id="line7" class="line_3" style="x1:0px; y1:551px; x2:722px; y2:551px; "/>
  216. <output id="output1" ref="/root/main/year" style="left:3px; top:530px; width:45px; height:19px; font-family:돋움; font-size:12pt; font-weight:bold; color:#000000; text-align:right; "/>
  217. <caption id="caption8" style="left:185px; top:531px; width:20px; height:19px; font-family:돋움; font-size:12pt; font-weight:bold; text-align:left; ">명</caption>
  218. <line id="line9" class="line_1" style="x1:0px; y1:419px; x2:352px; y2:419px; "/>
  219. <line id="line10" class="line_1" style="x1:0px; y1:524px; x2:722px; y2:524px; "/>
  220. <line id="line6" class="line_3" style="x1:357px; y1:52px; x2:722px; y2:52px; "/>
  221. <group id="group3" scroll="auto" style="left:0px; top:30px; width:355px; height:60px; ">
  222. <shape id="rectangle2" class="calendar_header" appearance="rectangle" style="left:0px; top:2px; width:353px; height:58px; "/>
  223. <output id="opt_year" ref="/root/hidden/ref/searchyear" class="calendar_output" style="left:130px; top:2px; width:30px; height:19px; "/>
  224. <output id="opt_month" ref="/root/hidden/ref/searchmonth" class="calendar_output" style="left:182px; top:2px; width:20px; height:19px; "/>
  225. <caption id="caption24" class="calendar_output" style="left:160px; top:2px; width:20px; height:19px; ">년</caption>
  226. <caption id="caption25" class="calendar_output" style="left:202px; top:2px; width:20px; height:19px; ">월</caption>
  227. <button id="button126" class="icon_month" style="left:261px; top:29px; width:27px; height:27px; ">
  228. <caption>10</caption>
  229. <script ev:event="DOMActivate" type="javascript">
  230. <![CDATA[
  231. model.setValue("/root/hidden/ref/searchmonth", 10);
  232. fgetmonthdata()
  233. ]]>
  234. </script>
  235. </button>
  236. <button id="button127" class="icon_month" style="left:289px; top:29px; width:27px; height:27px; ">
  237. <caption>11</caption>
  238. <script ev:event="DOMActivate" type="javascript">
  239. <![CDATA[
  240. model.setValue("/root/hidden/ref/searchmonth", 11);
  241. fgetmonthdata()
  242. ]]>
  243. </script>
  244. </button>
  245. <button id="button128" class="icon_month" style="left:317px; top:29px; width:27px; height:27px; ">
  246. <caption>12</caption>
  247. <script ev:event="DOMActivate" type="javascript">
  248. <![CDATA[
  249. model.setValue("/root/hidden/ref/searchmonth", 12);
  250. fgetmonthdata() ;
  251. ]]>
  252. </script>
  253. </button>
  254. <button id="button117" class="icon_month" style="left:10px; top:29px; width:27px; height:27px; ">
  255. <caption>1</caption>
  256. <script ev:event="DOMActivate" type="javascript">
  257. <![CDATA[
  258. model.setValue("/root/hidden/ref/searchmonth", 1);
  259. fgetmonthdata();
  260. ]]>
  261. </script>
  262. </button>
  263. <button id="button118" class="icon_month" style="left:37px; top:29px; width:27px; height:27px; ">
  264. <caption>2</caption>
  265. <script ev:event="DOMActivate" type="javascript">
  266. <![CDATA[
  267. model.setValue("/root/hidden/ref/searchmonth", 2);
  268. fgetmonthdata() ;
  269. ]]>
  270. </script>
  271. </button>
  272. <button id="button119" class="icon_month" style="left:65px; top:29px; width:27px; height:27px; ">
  273. <caption>3</caption>
  274. <script ev:event="DOMActivate" type="javascript">
  275. <![CDATA[
  276. model.setValue("/root/hidden/ref/searchmonth", 3);
  277. fgetmonthdata();
  278. ]]>
  279. </script>
  280. </button>
  281. <button id="button120" class="icon_month" style="left:93px; top:29px; width:27px; height:27px; ">
  282. <caption>4</caption>
  283. <script ev:event="DOMActivate" type="javascript">
  284. <![CDATA[
  285. model.setValue("/root/hidden/ref/searchmonth", 4);
  286. fgetmonthdata();
  287. ]]>
  288. </script>
  289. </button>
  290. <button id="button121" class="icon_month" style="left:121px; top:29px; width:27px; height:27px; ">
  291. <caption>5</caption>
  292. <script ev:event="DOMActivate" type="javascript">
  293. <![CDATA[
  294. model.setValue("/root/hidden/ref/searchmonth", 5);
  295. fgetmonthdata();
  296. ]]>
  297. </script>
  298. </button>
  299. <button id="button122" class="icon_month" style="left:149px; top:29px; width:27px; height:27px; ">
  300. <caption>6</caption>
  301. <script ev:event="DOMActivate" type="javascript">
  302. <![CDATA[
  303. model.setValue("/root/hidden/ref/searchmonth", 6);
  304. fgetmonthdata();
  305. ]]>
  306. </script>
  307. </button>
  308. <button id="button123" class="icon_month" style="left:177px; top:29px; width:27px; height:27px; ">
  309. <caption>7</caption>
  310. <script ev:event="DOMActivate" type="javascript">
  311. <![CDATA[
  312. model.setValue("/root/hidden/ref/searchmonth", 7);
  313. fgetmonthdata();
  314. ]]>
  315. </script>
  316. </button>
  317. <button id="button124" class="icon_month" style="left:205px; top:29px; width:27px; height:27px; ">
  318. <caption>8</caption>
  319. <script ev:event="DOMActivate" type="javascript">
  320. <![CDATA[
  321. model.setValue("/root/hidden/ref/searchmonth", 8);
  322. fgetmonthdata();
  323. ]]>
  324. </script>
  325. </button>
  326. <button id="button125" class="icon_month" style="left:233px; top:29px; width:27px; height:27px; ">
  327. <caption>9</caption>
  328. <script ev:event="DOMActivate" type="javascript">
  329. <![CDATA[
  330. model.setValue("/root/hidden/ref/searchmonth", 9);
  331. fgetmonthdata();
  332. ]]>
  333. </script>
  334. </button>
  335. <button id="button55" class="icon_pre_year" style="left:88px; top:4px; width:16px; height:16px; ">
  336. <caption/>
  337. <script ev:event="onclick" type="javascript">
  338. <![CDATA[
  339. fchkyear(1);
  340. ]]>
  341. </script>
  342. </button>
  343. <button id="button56" class="icon_next_year" style="left:243px; top:4px; width:16px; height:16px; ">
  344. <caption/>
  345. <script ev:event="onclick" type="javascript">
  346. <![CDATA[
  347. fchkyear(2);
  348. ]]>
  349. </script>
  350. </button>
  351. <button id="button57" class="icon_pre_month" style="left:108px; top:4px; width:16px; height:16px; ">
  352. <caption/>
  353. <script ev:event="onclick" type="javascript">
  354. <![CDATA[
  355. fchkyear(3);
  356. ]]>
  357. </script>
  358. </button>
  359. <button id="button58" class="icon_next_month" style="left:223px; top:4px; width:16px; height:16px; ">
  360. <caption/>
  361. <script ev:event="onclick" type="javascript">
  362. <![CDATA[
  363. fchkyear(4);
  364. ]]>
  365. </script>
  366. </button>
  367. </group>
  368. <multilinegrid id="mlist" nodeset="/root/main/mlist" class="gridcalendar" autoresize="true" caption="일^월^화^수^목^금^토" colsep="^" colwidth="50, 50, 50, 50, 50, 50, 50" dataheight="20" extendlastcol="noscroll" focuscolor="transparent" rowsep="|" mergecellsfixedrows="bycolrec" style="left:0px; top:92px; width:353px; height:323px; ">
  369. <row>
  370. <col class="color_sun" ref="sun" style="border-bottom-width:0px; "/>
  371. <col ref="mon" style="border-bottom-width:0px; "/>
  372. <col ref="tue" style="border-bottom-width:0px; "/>
  373. <col ref="wed" style="border-bottom-width:0px; "/>
  374. <col ref="thu" style="border-bottom-width:0px; "/>
  375. <col ref="fri" style="border-bottom-width:0px; "/>
  376. <col class="color_sat" ref="sat" style="border-bottom-width:0px; "/>
  377. </row>
  378. <row>
  379. <col ref="sun_memo" type="input" style="border-top-width:0px; "/>
  380. <col ref="mon_memo" type="input" style="border-top-width:0px; "/>
  381. <col ref="tue_memo" type="input" style="border-top-width:0px; "/>
  382. <col ref="wed_memo" type="input" style="border-top-width:0px; "/>
  383. <col ref="thu_memo" type="input" style="border-top-width:0px; "/>
  384. <col ref="fri_memo" type="input" style="border-top-width:0px; "/>
  385. <col ref="sat_memo" type="input" style="border-top-width:0px; "/>
  386. </row>
  387. <script ev:event="onclick" type="javascript">
  388. <![CDATA[
  389. fgetclickday();
  390. ]]>
  391. </script>
  392. </multilinegrid>
  393. </group>
  394. <group id="group2" style="left:0px; top:555px; width:722px; height:27px; ">
  395. <button id="button31" class="btn4_letter4" style="left:584px; top:5px; width:80px; height:22px; ">
  396. <caption>월별집계</caption>
  397. </button>
  398. <button id="button32" class="btn4_letter2" style="left:666px; top:5px; width:56px; height:22px; ">
  399. <caption>취소</caption>
  400. </button>
  401. <line id="line8" class="line_6" style="x1:0px; y1:0px; x2:722px; y2:0px; "/>
  402. </group>
  403. </xhtml:body>
  404. </xhtml:html>