SMLNP00500_건수분석자료.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : 건수분석자료.xrw
  4. * 설 명 : 건수분석자료
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 송요셉
  7. * 작 성 일 : 2007.07.04
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>건수분석자료</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <usecntlist>
  20. <tclsnm/>
  21. <avgcnt/>
  22. <patcnt/>
  23. <testcnt/>
  24. <tab1/>
  25. <tclsnm2/>
  26. <avgcnt2/>
  27. <patcnt2/>
  28. <testcnt2/>
  29. <tab2/>
  30. <tclsnm3/>
  31. <avgcnt3/>
  32. <patcnt3/>
  33. <testcnt3/>
  34. </usecntlist>
  35. <workday/>
  36. </main>
  37. <send>
  38. <srchym/>
  39. <srchym2/>
  40. <srchbdioflag/>
  41. <workday/>
  42. </send>
  43. <init>
  44. </init>
  45. <hidden>
  46. <workday/>
  47. <daypatcnt/>
  48. <daytestcnt/>
  49. <allpatsum/>
  50. <alltestsum/>
  51. <testcntsum/>
  52. </hidden>
  53. </root>
  54. </instance>
  55. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  56. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  57. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  58. <script ev:event="xforms-ready" type="javascript">
  59. <![CDATA[
  60. fSetInit();
  61. ]]>
  62. </script>
  63. <submission id="TRLNP00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/usecntlist"/>
  64. <submission id="TXLNP00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  65. </model>
  66. <script type="javascript">
  67. <![CDATA[
  68. function fSetInit(){
  69. model.removeNodeset("/root/main/usecntlist");
  70. var toDay = getCurrentDate();
  71. var toDays = toDay.substr(0,6)
  72. model.setValue("/root/send/srchbdioflag","O");
  73. model.setValue("/root/send/srchym", toDays);
  74. model.setValue("/root/send/srchym2", toDays);
  75. input3.attribute("format") = "yyyy-mm";
  76. input7.attribute("format") = "yyyy-mm";
  77. model.setValue("/root/hidden/workday", "");
  78. model.setValue("/root/hidden/daypatcnt", "");
  79. model.setValue("/root/hidden/daytestcnt", "");
  80. model.refresh();
  81. }
  82. function fGetUseCntList(){
  83. model.setValue("/root/hidden/workday", "");
  84. model.setValue("/root/hidden/daypatcnt", "");
  85. model.setValue("/root/hidden/daytestcnt", "");
  86. model.removeNodeset("/root/main/workday");
  87. model.removeNodeset("/root/main/usecntlist");
  88. submit("TRLNP00501");
  89. model.setValue("/root/hidden/alltestsum", model.getValue("/root/main/usecntlist[1]/alltestsum"));
  90. model.setValue("/root/hidden/allpatsum", model.getValue("/root/main/usecntlist[1]/allpatsum"));
  91. model.setValue("/root/hidden/testcntsum", model.getValue("/root/main/usecntlist[1]/testcntsum"));
  92. model.setValue("/root/hidden/workday", model.getValue("/root/main/workday/cnt"));
  93. if(model.getValue("/root/hidden/workday") != ""){
  94. model.refresh();
  95. fCalcnt();
  96. }
  97. model.refresh();
  98. }
  99. function fCalcnt(){
  100. model.setvalue("/root/hidden/workday",input2.currentText);
  101. var daypatcnt = model.getValue("/root/main/usecntlist[1]/allpatsum") / model.getValue("/root/hidden/workday");
  102. var daytestcnt = model.getValue("/root/main/usecntlist[1]/alltestsum") / model.getValue("/root/hidden/workday");
  103. var ext = Math.pow(10, 2);
  104. var caldaypatcnt = Math.round(daypatcnt * ext) / ext;
  105. var caldaytestcnt = Math.round(daytestcnt * ext) / ext;
  106. model.setValue("/root/hidden/daypatcnt", caldaypatcnt);
  107. model.setValue("/root/hidden/daytestcnt", caldaytestcnt);
  108. model.refresh();
  109. }
  110. function setValueMove(){
  111. model.setValue("/root/main/usecntlist[25]/tclsnm3", "검사항목수");
  112. model.setValue("/root/main/usecntlist[24]/tclsnm3", "일평균 실건수");
  113. model.setValue("/root/main/usecntlist[23]/tclsnm3", "일평균 환자수");
  114. model.setValue("/root/main/usecntlist[22]/tclsnm3", "실건수 합계");
  115. model.setValue("/root/main/usecntlist[21]/tclsnm3", "환자수 합계");
  116. model.setValue("/root/main/usecntlist[20]/tclsnm3", "근무일수");
  117. model.setValue("/root/main/usecntlist[25]/avgcnt3", model.getValue("/root/hidden/testcntsum"));
  118. model.setValue("/root/main/usecntlist[24]/avgcnt3", model.getValue("/root/hidden/daytestcnt"));
  119. model.setValue("/root/main/usecntlist[23]/avgcnt3", model.getValue("/root/hidden/daypatcnt"));
  120. model.setValue("/root/main/usecntlist[22]/avgcnt3", model.getValue("/root/hidden/alltestsum"));
  121. model.setValue("/root/main/usecntlist[21]/avgcnt3", model.getValue("/root/hidden/allpatsum"));
  122. model.setValue("/root/main/usecntlist[20]/avgcnt3", model.getValue("/root/hidden/workday"));
  123. }
  124. function setValueReMove(){
  125. model.setValue("/root/main/usecntlist[25]/tclsnm3", "");
  126. model.setValue("/root/main/usecntlist[24]/tclsnm3", "");
  127. model.setValue("/root/main/usecntlist[23]/tclsnm3", "");
  128. model.setValue("/root/main/usecntlist[22]/tclsnm3", "");
  129. model.setValue("/root/main/usecntlist[21]/tclsnm3", "");
  130. model.setValue("/root/main/usecntlist[20]/tclsnm3", "");
  131. model.setValue("/root/main/usecntlist[25]/avgcnt3", "");
  132. model.setValue("/root/main/usecntlist[24]/avgcnt3", "");
  133. model.setValue("/root/main/usecntlist[23]/avgcnt3", "");
  134. model.setValue("/root/main/usecntlist[22]/avgcnt3", "");
  135. model.setValue("/root/main/usecntlist[21]/avgcnt3", "");
  136. model.setValue("/root/main/usecntlist[20]/avgcnt3", "");
  137. }
  138. function fReportPrint(){
  139. exeReportPreview("RPLNP00500", "XMLSTR", "", "", "true", "", "", "", "","true");
  140. //exeReportPreview("RPLNP00500", "XMLSTR", "", "");
  141. }
  142. function fSetWorkDayCnt(){
  143. var srchym = model.getValue("/root/send/srchym");
  144. var srchym2 = model.getValue("/root/send/srchym2");
  145. if(srchym == srchym2){
  146. model.setValue("/root/send/workday", model.getValue("/root/hidden/workday"));
  147. submit("TXLNP00501");
  148. }else{
  149. alert("조회된 기간이 한달이 아닙니다.");
  150. }
  151. }
  152. ]]>
  153. </script>
  154. </xhtml:head>
  155. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  156. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  157. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  158. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; font-weight:bold; ">
  159. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  160. <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  161. <button id="btn_Ref" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  162. <caption>조회</caption>
  163. <script ev:event="DOMActivate" type="javascript">
  164. <![CDATA[
  165. fGetUseCntList();
  166. ]]>
  167. </script>
  168. </button>
  169. <caption id="caption11" class="search_name" style="left:40px; top:8px; width:91px; height:17px; text-align:left; ">기준월 :</caption>
  170. <input id="input3" ref="/root/send/srchym" class="input_default" inputtype="date" format="yyyy-mm" style="left:125px; top:8px; width:90px; height:19px; "/>
  171. <input id="input7" ref="/root/send/srchym2" class="input_default" inputtype="date" format="yyyy-mm" style="left:245px; top:8px; width:90px; height:19px; "/>
  172. <caption id="caption8" style="left:220px; top:10px; width:20px; height:20px; text-align:center; ">~</caption>
  173. </group>
  174. <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:134px; height:14px; ">건수분석 리스트</caption>
  175. <datagrid id="grd_usecntlist" nodeset="/root/main/usecntlist" caption="검사명^1인당 소모량^월 환자수^월 실건수^^검사명^1인당 소모량^월 환자수^월 실건수^^검사명^1인당 소모량^월 환자수^월 실건수" colwidth="140, 85, 85, 85, 3, 140, 85, 85, 85, 3, 140, 85, 85, 85" dataheight="25" defaultrows="1" mergecellsfixedrows="bycolrec" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1194px; height:606px; font-weight:normal; ">
  176. <col ref="tclsnm"/>
  177. <col ref="avgcnt" style="text-align:center; "/>
  178. <col ref="patcnt" style="text-align:center; "/>
  179. <col ref="testcnt" style="text-align:center; "/>
  180. <col ref="tab1"/>
  181. <col ref="tclsnm2"/>
  182. <col ref="avgcnt2" style="text-align:center; "/>
  183. <col ref="patcnt2" style="text-align:center; "/>
  184. <col ref="testcnt2" style="text-align:center; "/>
  185. <col ref="tab2"/>
  186. <col ref="tclsnm3"/>
  187. <col ref="avgcnt3" style="text-align:center; "/>
  188. <col ref="patcnt3" style="text-align:center; "/>
  189. <col ref="testcnt3" style="text-align:center; "/>
  190. </datagrid>
  191. <caption id="caption4" class="cell_1" style="left:567px; top:689px; width:70px; height:23px; text-align:center; vertical-align:middle; ">근무일수</caption>
  192. <caption id="caption5" class="cell_1" style="left:712px; top:689px; width:83px; height:23px; text-align:center; vertical-align:middle; ">일평균 환자수</caption>
  193. <caption id="caption1" class="cell_1" style="left:895px; top:689px; width:83px; height:23px; text-align:center; vertical-align:middle; ">일평균 실건수</caption>
  194. <input id="input1" ref="/root/hidden/daypatcnt" format="0.00" style="left:797px; top:690px; width:97px; height:19px; "/>
  195. <input id="input2" ref="/root/hidden/workday" style="left:639px; top:690px; width:72px; height:19px; ">
  196. <script ev:event="onkeydown" type="javascript">
  197. <![CDATA[
  198. if(event.keyCode == "13"){
  199. fCalcnt();
  200. }
  201. ]]>
  202. </script>
  203. </input>
  204. <input id="input4" ref="/root/hidden/daytestcnt" format="0.00" style="left:980px; top:690px; width:97px; height:19px; "/>
  205. <line id="line2" class="line_3" style="x1:70px; y1:688px; x2:1077px; y2:688px; "/>
  206. <button id="btn_excel" class="btn2_letter4" navindex="2" style="left:0px; top:689px; width:64px; height:19px; ">
  207. <caption>엑셀저장</caption>
  208. <script ev:event="onclick" type="javascript">
  209. <![CDATA[
  210. setValueMove();
  211. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  212. if (fileName != ""){
  213. grd_usecntlist.saveExcel(fileName);
  214. }
  215. setValueReMove();
  216. ]]>
  217. </script>
  218. </button>
  219. <caption id="caption2" class="cell_1" style="left:394px; top:689px; width:83px; height:23px; text-align:center; vertical-align:middle; ">실건수 합계</caption>
  220. <caption id="caption7" class="cell_1" style="left:220px; top:689px; width:83px; height:23px; text-align:center; vertical-align:middle; ">환자수 합계</caption>
  221. <input id="input5" ref="/root/hidden/allpatsum" style="left:305px; top:690px; width:87px; height:19px; "/>
  222. <input id="input6" ref="/root/hidden/alltestsum" style="left:479px; top:690px; width:87px; height:19px; "/>
  223. <line id="line4" class="line_3" style="x1:70px; y1:712px; x2:1077px; y2:712px; "/>
  224. <caption id="caption9" class="cell_1" style="left:70px; top:689px; width:78px; height:23px; text-align:center; vertical-align:middle; ">검사항목수</caption>
  225. <input id="input8" ref="/root/hidden/testcntsum" style="left:151px; top:690px; width:67px; height:19px; "/>
  226. <button id="button1" class="btn4_letter6" style="left:1085px; top:689px; width:104px; height:22px; ">
  227. <caption>근무일수저장</caption>
  228. <script ev:event="DOMActivate" type="javascript">
  229. <![CDATA[
  230. fSetWorkDayCnt();
  231. ]]>
  232. </script>
  233. </button>
  234. </group>
  235. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  236. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">건수분석 자료관리</caption>
  237. </group>
  238. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  239. <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  240. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  241. <caption>초기화</caption>
  242. <script ev:event="DOMActivate" type="javascript">
  243. <![CDATA[
  244. fSetInit();
  245. ]]>
  246. </script>
  247. </button>
  248. <button id="button11" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
  249. <caption>출력</caption>
  250. <script ev:event="DOMActivate" type="javascript">
  251. <![CDATA[
  252. fReportPrint();
  253. ]]>
  254. </script>
  255. </button>
  256. </group>
  257. </xhtml:body>
  258. </xhtml:html>