SMLPS00500_진단별통계.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPS00500_진단별통계.xrw
  4. * 설 명 : 진단별통계 화면
  5. * 설 계 자 : (주)에이씨케이 - 유동철
  6. * 작 성 자 : (주)에이씨케이 - 유동철
  7. * 작 성 일 : 2007.11.12
  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. <statstinfo>
  20. <statsinfolist>
  21. <instcd/>
  22. <diagcnts/>
  23. <day01/>
  24. <day02/>
  25. <day03/>
  26. <day04/>
  27. <day05/>
  28. <day06/>
  29. <day07/>
  30. <day08/>
  31. <day09/>
  32. <day10/>
  33. <day11/>
  34. <day12/>
  35. <day13/>
  36. <day14/>
  37. <day15/>
  38. <day16/>
  39. <day17/>
  40. <day18/>
  41. <day19/>
  42. <day20/>
  43. <day21/>
  44. <day22/>
  45. <day23/>
  46. <day24/>
  47. <day25/>
  48. <day26/>
  49. <day27/>
  50. <day28/>
  51. <day29/>
  52. <day30/>
  53. <day31/>
  54. <daytot/>
  55. </statsinfolist>
  56. </statstinfo>
  57. </main>
  58. <send/>
  59. <init>
  60. <sysdt>
  61. <sysdtinfo>
  62. <sysdd/>
  63. <systm/>
  64. </sysdtinfo>
  65. </sysdt>
  66. </init>
  67. <hidden>
  68. <readfromdd/>
  69. <readtodd/>
  70. <refmthdcd>0</refmthdcd>
  71. <seaval/>
  72. <dispcondcd/>
  73. <testflagcd/>
  74. <statsworkflagcd/>
  75. </hidden>
  76. <message/>
  77. </root>
  78. </instance>
  79. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  82. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  83. <script type="javascript" ev:event="xforms-ready">
  84. <![CDATA[
  85. fExeInitialize();
  86. ]]>
  87. </script>
  88. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  89. <submission id="TRLPS00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/statstinfo/statsinfolist"/>
  90. </model>
  91. <script type="javascript">
  92. <![CDATA[
  93. /* @group : 진단별통계 화면
  94. * @ver : 2007.11.12 (CMCDEV-0001)
  95. * @by : 유동철(ACK)
  96. * @-----------------------------------
  97. * @type : function
  98. * @access : public
  99. * @desc : 화면초기화 함수
  100. */
  101. function fExeInitialize() {
  102. //---------------------------------------------------------
  103. model.removeNodeset("/root/main/statstinfo/statsinfolist");
  104. //----------------
  105. // 시스템일자 조회
  106. model.removeNodeset("/root/send");
  107. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  108. submit("TRLPZ00102");
  109. //------------
  110. // 초기값 설정
  111. model.makeValue("/root/hidden/seaval", ""); // 검색값
  112. model.makeValue("/root/hidden/readfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 진단일자(From)
  113. model.makeValue("/root/hidden/readtodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 진단일자(To)
  114. model.makeValue("/root/hidden/refmthdcd", "0"); // 검색방법(일별)
  115. //----------------
  116. fExeRadioChange();
  117. }
  118. /* @group : 진단별통계 화면
  119. * @ver : 2007.08.2 (CMCDEV-0001)
  120. * @by : 유동철(ACK)
  121. * @-----------------------------------
  122. * @type : function
  123. * @access : public
  124. * @desc : 감사판독 소요시간 조회 처리 함수
  125. */
  126. function fGetStatsInfoList() {
  127. //--------------------------------
  128. model.removeNodeset("/root/send");
  129. model.removeNodeset("/root/main/statstinfo/statsinfolist");
  130. //--------------------------------------------------------------------------
  131. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  132. model.makeValue("/root/send/readfromdd", model.getValue("/root/hidden/readfromdd"));
  133. model.makeValue("/root/send/readtodd", model.getValue("/root/hidden/readtodd"));
  134. model.makeValue("/root/send/refmthdcd", model.getValue("/root/hidden/refmthdcd"));
  135. //-------------------
  136. submit("TRLPS00501");
  137. }
  138. /* @group : 진단별통계
  139. * @ver : 2007.11.12 (CMCDEV-0001)
  140. * @by : 유동철(ACK)
  141. * @-----------------------------------
  142. * @type : function
  143. * @access : public
  144. * @desc : 진단별통계 Excel저장 처리 Function
  145. */
  146. function fExeSaveToExcel() {
  147. var sTitle = "";
  148. switch (model.getValue("/root/hidden/refmthdcd")) {
  149. case "0" : sTitle = "진단별 (일별) 통계";
  150. break;
  151. case "1" : sTitle = "진단별 (월별) 통계";
  152. break;
  153. case "2" : sTitle = "진단별 (년별) 통계";
  154. break;
  155. }
  156. //---------------------------------------------------------------------------------
  157. grd_statsinfolist.saveExcel("C:\\SMLPS00500_진단별통계.xls", sTitle, false, false);
  158. }
  159. /* @group : 진단별통계
  160. * @ver : 2007.11.12 (CMCDEV-0001)
  161. * @by : 유동철(ACK)
  162. * @-----------------------------------
  163. * @type : function
  164. * @access : public
  165. * @desc : 그리드 컬럼 숨김 처리 Function
  166. */
  167. function fExeRadioChange() {
  168. var iFromNo = 0;
  169. var iToNo = 0;
  170. var iWidth = 0;
  171. var bState = false;
  172. var iYear = 0;
  173. var sFromDD = model.getValue("/root/hidden/readfromdd");
  174. var sToDD = model.getValue("/root/hidden/readtodd");
  175. var sText = "기관코드^진단명";
  176. //----------------------------------------------------
  177. if (model.getValue("/root/hidden/refmthdcd") == "0") {
  178. iFromNo = 3;
  179. iToNo = grd_statsinfolist.cols;
  180. iWidth = 32;
  181. bState = false;
  182. sText = "기관코드^진단명^01^02^03^04^05^06^07^08^09^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^총\n건수";
  183. } else if (model.getValue("/root/hidden/refmthdcd") == "1") {
  184. iFromNo = 15;
  185. iToNo = 33;
  186. iWidth = 78;
  187. bState = true;
  188. sText = "기관코드^진단명^01^02^03^04^05^06^07^08^09^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^총\n건수";
  189. } else {
  190. iFromNo = 22;
  191. iToNo = 33;
  192. iWidth = 51;
  193. bState = true;
  194. //---------------------------------------------------------------------------------------
  195. for (var iNo=Number(sFromDD.substr(0,4)); iNo <= Number(sFromDD.substr(0,4))+20; iNo++) {
  196. sText += "^"+iNo;
  197. }
  198. }
  199. //-----------------------------------------------------
  200. for (var iNo=3; iNo <= grd_statsinfolist.cols; iNo++) {
  201. if (iFromNo <= iNo && iToNo >= iNo) {
  202. grd_statsinfolist.colHidden(iNo) = bState;
  203. grd_statsinfolist.colWidth(iNo) = iWidth;
  204. } else {
  205. grd_statsinfolist.colHidden(iNo) = !bState;
  206. grd_statsinfolist.colWidth(iNo) = iWidth;
  207. }
  208. }
  209. //--------------------------------
  210. grd_statsinfolist.caption = sText;
  211. model.removeNodeset("/root/main/statstinfo/statsinfolist");
  212. //-------------
  213. model.refresh();
  214. }
  215. ]]>
  216. </script>
  217. </xhtml:head>
  218. <xhtml:body>
  219. <group id="grp_btn" style="left:0px; top:13; width:1195px; height:27px; ">
  220. <line id="line10" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  221. <button id="button13" class="btn6_letter5" navindex="9" style="left:5px; top:3px; width:92px; height:22px; ">
  222. <caption>EXCEL저장</caption>
  223. <script type="javascript" ev:event="DOMActivate">
  224. <![CDATA[
  225. fExeSaveToExcel();
  226. ]]>
  227. </script>
  228. </button>
  229. </group>
  230. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  231. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:180px; height:14px; ">진단별통계</caption>
  232. </group>
  233. <group id="grp_biz" style="left:0; top:40; width:1195; height:744; ">
  234. <caption id="caption4" class="tit_2" style="left:5px; top:55px; width:180px; height:14px; ">진단목록</caption>
  235. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  236. <datagrid id="grd_statsinfolist" nodeset="/root/main/statstinfo/statsinfolist" class="datagrid2" autoresize="true" caption="기관코드^진단명^01^02^03^04^05^06^07^08^09^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^총&#xA;건수" colsep="^" colwidth="0, 128, 32, 32, 32, 32, 32,32, 32, 32, 32,32, 32,32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32" explorerbar="sortshow" rowheader="seq" rowsep="|" navindex="8" style="left:0px; top:75px; width:1194px; height:653px; ">
  237. <col ref="instcd"/>
  238. <col ref="diagcnts"/>
  239. <col class="text_right" ref="day01" format="#,###" mask="exclude" roundmode="round" showmask="true"/>
  240. <col class="text_right" ref="day02" format="#,###" mask="exclude" showmask="true"/>
  241. <col class="text_right" ref="day03" format="#,###" mask="exclude" showmask="true"/>
  242. <col class="text_right" ref="day04" format="#,###" mask="exclude" showmask="true"/>
  243. <col class="text_right" ref="day05" format="#,###" mask="exclude" showmask="true"/>
  244. <col class="text_right" ref="day06" format="#,###" mask="exclude" showmask="true"/>
  245. <col class="text_right" ref="day07" format="#,###" mask="exclude" showmask="true"/>
  246. <col class="text_right" ref="day08" format="#,###" mask="exclude" showmask="true"/>
  247. <col class="text_right" ref="day09" format="#,###" mask="exclude" showmask="true"/>
  248. <col class="text_right" ref="day10" format="#,###" mask="exclude" showmask="true"/>
  249. <col class="text_right" ref="day11" format="#,###" mask="exclude" showmask="true"/>
  250. <col class="text_right" ref="day12" format="#,###" mask="exclude" showmask="true"/>
  251. <col class="text_right" ref="day13" format="#,###" mask="exclude" showmask="true"/>
  252. <col class="text_right" ref="day14" format="#,###" mask="exclude" showmask="true"/>
  253. <col class="text_right" ref="day15" format="#,###" mask="exclude" showmask="true"/>
  254. <col class="text_right" ref="day16" format="#,###" mask="exclude" showmask="true"/>
  255. <col class="text_right" ref="day17" format="#,###" mask="exclude" showmask="true"/>
  256. <col class="text_right" ref="day18" format="#,###" mask="exclude" showmask="true"/>
  257. <col class="text_right" ref="day19" format="#,###" mask="exclude" showmask="true"/>
  258. <col class="text_right" ref="day20" format="#,###" mask="exclude" showmask="true"/>
  259. <col class="text_right" ref="day21" format="#,###" mask="exclude" showmask="true"/>
  260. <col class="text_right" ref="day22" format="#,###" mask="exclude" showmask="true"/>
  261. <col class="text_right" ref="day23" format="#,###" mask="exclude" showmask="true"/>
  262. <col class="text_right" ref="day24" format="#,###" mask="exclude" showmask="true"/>
  263. <col class="text_right" ref="day25" format="#,###" mask="exclude" showmask="true"/>
  264. <col class="text_right" ref="day26" format="#,###" mask="exclude" showmask="true"/>
  265. <col class="text_right" ref="day27" format="#,###" mask="exclude" showmask="true"/>
  266. <col class="text_right" ref="day28" format="#,###" mask="exclude" showmask="true"/>
  267. <col class="text_right" ref="day29" format="#,###" mask="exclude" showmask="true"/>
  268. <col class="text_right" ref="day30" format="#,###" mask="exclude" showmask="true"/>
  269. <col class="text_right" ref="day31" format="#,###" mask="exclude" showmask="true"/>
  270. <col class="text_right" ref="daytot" format="#,###" mask="exclude" showmask="true"/>
  271. <script type="javascript" ev:event="onaftersort">
  272. <![CDATA[
  273. grd_statsinfolist.gridToInstance();
  274. ]]>
  275. </script>
  276. </datagrid>
  277. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  278. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  279. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  280. <caption id="caption2" class="search_name" style="left:15; top:9px; width:86px; height:17px; ">진단일자 :</caption>
  281. <caption id="caption5" class="search_no_b" style="left:207; top:8px; width:12px; height:17px; ">~</caption>
  282. <button id="btn_sea" class="btn1_letter2" navindex="7" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  283. <caption>조회</caption>
  284. <script type="javascript" ev:event="DOMActivate">
  285. <![CDATA[
  286. fGetStatsInfoList();
  287. ]]>
  288. </script>
  289. </button>
  290. <input id="ipt_cnclfromdd" ref="/root/hidden/readfromdd" class="input_s_essential" navindex="1" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:104; top:8px; width:100px; height:19px; ">
  291. <script type="javascript" ev:event="xforms-value-changed">
  292. <![CDATA[
  293. fExeRadioChange();
  294. ]]>
  295. </script>
  296. </input>
  297. <input id="ipt_cncltodd" ref="/root/hidden/readtodd" class="input_s_essential" navindex="2" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:223; top:8px; width:100px; height:19px; "/>
  298. <caption id="caption1" class="search_name" style="left:932px; top:9px; width:86px; height:17px; ">검색방법 :</caption>
  299. <select1 id="cbo_refmthdcd" ref="/root/hidden/refmthdcd" navindex="3" appearance="minimal" style="left:1023; top:8px; width:70px; height:19px; ">
  300. <choices>
  301. <item>
  302. <label>일별</label>
  303. <value>0</value>
  304. </item>
  305. <item>
  306. <label>월별</label>
  307. <value>1</value>
  308. </item>
  309. <item>
  310. <label>년별</label>
  311. <value>2</value>
  312. </item>
  313. </choices>
  314. <script type="javascript" ev:event="xforms-value-changed">
  315. <![CDATA[
  316. fExeRadioChange();
  317. ]]>
  318. </script>
  319. </select1>
  320. </group>
  321. </group>
  322. </xhtml:body>
  323. </xhtml:html>