SMLPS01600_Gross통계.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPP02600_Gross통계.xrw
  4. * 설 명 : 검사항목별통계 화면
  5. * 설 계 자 : (주)에이씨케이 - 유동철
  6. * 작 성 자 :
  7. * 작 성 일 : 2009.01.19
  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>Gross통계</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <statstinfo>
  20. <statsinfolist>
  21. <workflagcd/>
  22. <testcd/>
  23. <resncnts/>
  24. <testnm/>
  25. <day01/>
  26. <day02/>
  27. <day03/>
  28. <day04/>
  29. <day05/>
  30. <day06/>
  31. <day07/>
  32. <day08/>
  33. <day09/>
  34. <day10/>
  35. <day11/>
  36. <day12/>
  37. <day13/>
  38. <day14/>
  39. <day15/>
  40. <day16/>
  41. <day17/>
  42. <day18/>
  43. <day19/>
  44. <day20/>
  45. <day21/>
  46. <day22/>
  47. <day23/>
  48. <day24/>
  49. <day25/>
  50. <day26/>
  51. <day27/>
  52. <day28/>
  53. <day29/>
  54. <day30/>
  55. <day31/>
  56. <daytot/>
  57. </statsinfolist>
  58. </statstinfo>
  59. </main>
  60. <send/>
  61. <init>
  62. <sysdt>
  63. <sysdtinfo>
  64. <sysdd/>
  65. <systm/>
  66. </sysdtinfo>
  67. </sysdt>
  68. <resncd>
  69. <resncdlist>
  70. <instcd/>
  71. <baseflagcd/>
  72. <resncd/>
  73. <resncnts/>
  74. </resncdlist>
  75. </resncd>
  76. <patflagcd/>
  77. </init>
  78. <hidden>
  79. <acptfromdd/>
  80. <acpttodd/>
  81. <refmthdcd>0</refmthdcd>
  82. <seaval/>
  83. <dispcondcd/>
  84. <testflagcd/>
  85. <statsworkflagcd/>
  86. </hidden>
  87. <message/>
  88. <temp>
  89. <resncd>
  90. <resncdlist>
  91. <instcd/>
  92. <baseflagcd/>
  93. <resncd/>
  94. <resncnts/>
  95. </resncdlist>
  96. </resncd>
  97. </temp>
  98. </root>
  99. </instance>
  100. <bind id="bind01" ref="/root/main/statstinfo/statsinfolist/day01" readonly="../choi/@readonly = 'true'"/>
  101. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  102. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  104. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  105. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  106. <script type="javascript" ev:event="xforms-ready">
  107. <![CDATA[
  108. fExeInitialize();
  109. ]]>
  110. </script>
  111. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  112. <submission id="TRLPZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/resncd/resncdlist"/>
  113. <submission id="TRLPS01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/statstinfo/statsinfolist"/>
  114. </model>
  115. <script type="javascript">
  116. <![CDATA[
  117. /* @group : 검사항목별통계 화면
  118. * @ver : 2007.02.24 (CMCDEV-0001)
  119. * @by : 유동철(ACK)
  120. * @-----------------------------------
  121. * @type : function
  122. * @access : public
  123. * @desc : 화면초기화 함수
  124. */
  125. function fExeInitialize() {
  126. var iNodeNo = 1;
  127. //---------------------------------------------------------
  128. model.removeNodeset("/root/main/statstinfo/statsinfolist");
  129. //----------------
  130. // 시스템일자 조회
  131. model.removeNodeset("/root/send");
  132. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  133. submit("TRLPZ00102");
  134. //------------------
  135. // 통계구분코드 조회
  136. model.makeValue("/root/send/baseflagcd", "'84'" );
  137. submit("TRLPZ00103");
  138. //Gross 통계 화면에서는 조직 통계구분만을 보여준다.
  139. model.copyNode("/root/temp/resncd", "/root/init/resncd");
  140. model.removeNodeset("/root/init/resncd/resncdlist");
  141. for(var iRow = 1 ; iRow <= getNodesetCount("/root/temp/resncd/resncdlist") ; iRow++) {
  142. if(model.getValue("/root/temp/resncd/resncdlist["+ iRow +"]/resncd") == "1010" || model.getValue("/root/temp/resncd/resncdlist["+ iRow +"]/resncd") == "10C0"
  143. || model.getValue("/root/temp/resncd/resncdlist["+ iRow +"]/resncd") == "10B0" || model.getValue("/root/temp/resncd/resncdlist["+ iRow +"]/resncd") == "10B1"
  144. || model.getValue("/root/temp/resncd/resncdlist["+ iRow +"]/resncd") == "10D1" || model.getValue("/root/temp/resncd/resncdlist["+ iRow +"]/resncd") == "1011"
  145. || model.getValue("/root/temp/resncd/resncdlist["+ iRow +"]/resncd") == "ZZZZ") {
  146. model.makeNode("/root/init/resncd/resncdlist["+ iNodeNo +"]");
  147. model.copyNode("/root/init/resncd/resncdlist["+ iNodeNo +"]", "/root/temp/resncd/resncdlist["+ iRow +"]");
  148. iNodeNo++;
  149. }
  150. }
  151. //------------
  152. // 초기값 설정
  153. model.makeValue("/root/hidden/seaval", ""); // 검색값
  154. model.makeValue("/root/hidden/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(From)
  155. model.makeValue("/root/hidden/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(To)
  156. ipt_cnclfromdd.value = ipt_cnclfromdd.value.toDate().getAddDate(-7,"D").getDateFormat("YYYYMMDD") ;
  157. model.makeValue("/root/hidden/refmthdcd", "0"); // 검색방법(일별)
  158. model.makeValue("/root/hidden/dispcondcd", "0"); // 표시조건(접수)
  159. model.makeValue("/root/hidden/testflagcd", "0"); // 검사구분코드(내부)
  160. model.makeValue("/root/init/patflagcd", "0"); // 환자구분코드(입원)
  161. cbo_statsflagcd.select(0);
  162. //----------------
  163. fExeRadioChange();
  164. }
  165. /* @group : 검사항목별통계 화면
  166. * @ver : 2007.08.2 (CMCDEV-0001)
  167. * @by : 유동철(ACK)
  168. * @-----------------------------------
  169. * @type : function
  170. * @access : public
  171. * @desc : 감사판독 소요시간 조회 처리 함수
  172. */
  173. function fGetStatsInfoList() {
  174. //--------------------------------
  175. model.removeNodeset("/root/send");
  176. model.removeNodeset("/root/main/statstinfo/statsinfolist");
  177. //--------------------------------------------------------------------------
  178. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  179. model.makeValue("/root/send/acptfromdd", model.getValue("/root/hidden/acptfromdd"));
  180. model.makeValue("/root/send/acpttodd", model.getValue("/root/hidden/acpttodd"));
  181. model.makeValue("/root/send/refmthdcd", model.getValue("/root/hidden/refmthdcd"));
  182. model.makeValue("/root/send/dispcondcd", model.getValue("/root/hidden/dispcondcd"));
  183. model.makeValue("/root/send/testflagcd", model.getValue("/root/hidden/testflagcd"));
  184. model.makeValue("/root/send/patflagcd", model.getValue("/root/init/patflagcd")); // 0:입원,1:외래,Z:전체
  185. model.makeValue("/root/send/statsworkflagcd", model.getValue("/root/hidden/statsworkflagcd"));
  186. model.makeValue("/root/send/scrnno", "10"); // 10:검사별통계, 20:검체별통계, 30:검사/검체별 통계, 40:검사/진료과별 통계
  187. //-------------------
  188. submit("TRLPS01601");
  189. }
  190. /* @group : 검사항목별통계
  191. * @ver : 2007.08.24 (CMCDEV-0001)
  192. * @by : 유동철(ACK)
  193. * @-----------------------------------
  194. * @type : function
  195. * @access : public
  196. * @desc : 검사항목별통계 Excel저장 처리 Function
  197. */
  198. function fExeSaveToExcel() {
  199. var sTitle = "";
  200. switch (model.getValue("/root/hidden/refmthdcd")) {
  201. case "0" : sTitle = "검사항목별 (일별) 통계";
  202. break;
  203. case "1" : sTitle = "검사항목별 (월별) 통계";
  204. break;
  205. case "2" : sTitle = "검사항목별 (년별) 통계";
  206. break;
  207. }
  208. //grd_statsinfolist.saveExcel("C:\\SMLPS00100_검사항목별통계.xls", sTitle, false, false);
  209. lpzfExeSaveToExcel(grd_statsinfolist, sTitle);
  210. }
  211. /* @group : 검사항목별통계
  212. * @ver : 2007.08.25 (CMCDEV-0001)
  213. * @by : 유동철(ACK)
  214. * @-----------------------------------
  215. * @type : function
  216. * @access : public
  217. * @desc : 그리드 컬럼 숨김 처리 Function
  218. */
  219. function fExeRadioChange() {
  220. var iFromNo = 0;
  221. var iToNo = 0;
  222. var iWidth = 0;
  223. var bState = false;
  224. var iYear = 0;
  225. var sFromDD = model.getValue("/root/hidden/acptfromdd");
  226. var sToDD = model.getValue("/root/hidden/acpttodd");
  227. var sText = "구분코드^검사코드^검사실^검사항목";
  228. //----------------------------------------------------
  229. if (model.getValue("/root/hidden/refmthdcd") == "0") {
  230. iFromNo = 5;
  231. iToNo = grd_statsinfolist.cols;
  232. iWidth = 31;
  233. bState = false;
  234. 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건수";
  235. } else if (model.getValue("/root/hidden/refmthdcd") == "1") {
  236. iFromNo = 17;
  237. iToNo = 35;
  238. iWidth = 75;
  239. bState = true;
  240. 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건수";
  241. } else {
  242. iFromNo = 25;
  243. iToNo = 35;
  244. iWidth = 47;
  245. bState = true;
  246. //---------------------------------------------------------------------------------------
  247. for (var iNo=Number(sFromDD.substr(0,4)); iNo <= Number(sFromDD.substr(0,4))+20; iNo++) {
  248. sText += "^"+iNo;
  249. }
  250. }
  251. //---------------------------------
  252. for (var iNo=5; iNo <= grd_statsinfolist.cols; iNo++) {
  253. if (iFromNo <= iNo && iToNo >= iNo) {
  254. grd_statsinfolist.colHidden(iNo) = bState;
  255. grd_statsinfolist.colWidth(iNo) = iWidth;
  256. } else {
  257. grd_statsinfolist.colHidden(iNo) = !bState;
  258. grd_statsinfolist.colWidth(iNo) = iWidth;
  259. }
  260. }
  261. //--------------------------------
  262. grd_statsinfolist.caption = sText;
  263. model.removeNodeset("/root/main/statstinfo/statsinfolist");
  264. //-------------
  265. model.refresh();
  266. }
  267. ]]>
  268. </script>
  269. </xhtml:head>
  270. <xhtml:body>
  271. <group id="grp_btn" style="left:0px; top:13; width:1195px; height:27px; ">
  272. <line id="line10" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  273. <button id="button13" class="btn6_letter5" navindex="10" style="left:5px; top:3px; width:92px; height:22px; ">
  274. <caption>EXCEL저장</caption>
  275. <script type="javascript" ev:event="DOMActivate">
  276. <![CDATA[
  277. fExeSaveToExcel();
  278. ]]>
  279. </script>
  280. </button>
  281. </group>
  282. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  283. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:180px; height:14px; ">Gross통계</caption>
  284. </group>
  285. <group id="grp_biz" style="left:0; top:40; width:1195; height:744; ">
  286. <caption id="caption4" class="tit_2" style="left:5px; top:55px; width:180px; height:13px; ">접수검사목록</caption>
  287. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  288. <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, 0, 65, 100, 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, 31" explorerbar="sortshow" rowheader="seq" rowsep="|" navindex="9" style="left:0; top:75px; width:1194px; height:653px; ">
  289. <col ref="workflagcd"/>
  290. <col ref="testcd"/>
  291. <col class="text_center" ref="resncnts"/>
  292. <col class="text_center" ref="testnm"/>
  293. <col class="text_right" ref="day01" format="#,###" mask="exclude" roundmode="round" showmask="true"/>
  294. <col class="text_right" ref="day02" format="#,###" mask="exclude" showmask="true"/>
  295. <col class="text_right" ref="day03" format="#,###" mask="exclude" showmask="true"/>
  296. <col class="text_right" ref="day04" format="#,###" mask="exclude" showmask="true"/>
  297. <col class="text_right" ref="day05" format="#,###" mask="exclude" showmask="true"/>
  298. <col class="text_right" ref="day06" format="#,###" mask="exclude" showmask="true"/>
  299. <col class="text_right" ref="day07" format="#,###" mask="exclude" showmask="true"/>
  300. <col class="text_right" ref="day08" format="#,###" mask="exclude" showmask="true"/>
  301. <col class="text_right" ref="day09" format="#,###" mask="exclude" showmask="true"/>
  302. <col class="text_right" ref="day10" format="#,###" mask="exclude" showmask="true"/>
  303. <col class="text_right" ref="day11" format="#,###" mask="exclude" showmask="true"/>
  304. <col class="text_right" ref="day12" format="#,###" mask="exclude" showmask="true"/>
  305. <col class="text_right" ref="day13" format="#,###" mask="exclude" showmask="true"/>
  306. <col class="text_right" ref="day14" format="#,###" mask="exclude" showmask="true"/>
  307. <col class="text_right" ref="day15" format="#,###" mask="exclude" showmask="true"/>
  308. <col class="text_right" ref="day16" format="#,###" mask="exclude" showmask="true"/>
  309. <col class="text_right" ref="day17" format="#,###" mask="exclude" showmask="true"/>
  310. <col class="text_right" ref="day18" format="#,###" mask="exclude" showmask="true"/>
  311. <col class="text_right" ref="day19" format="#,###" mask="exclude" showmask="true"/>
  312. <col class="text_right" ref="day20" format="#,###" mask="exclude" showmask="true"/>
  313. <col class="text_right" ref="day21" format="#,###" mask="exclude" showmask="true"/>
  314. <col class="text_right" ref="day22" format="#,###" mask="exclude" showmask="true"/>
  315. <col class="text_right" ref="day23" format="#,###" mask="exclude" showmask="true"/>
  316. <col class="text_right" ref="day24" format="#,###" mask="exclude" showmask="true"/>
  317. <col class="text_right" ref="day25" format="#,###" mask="exclude" showmask="true"/>
  318. <col class="text_right" ref="day26" format="#,###" mask="exclude" showmask="true"/>
  319. <col class="text_right" ref="day27" format="#,###" mask="exclude" showmask="true"/>
  320. <col class="text_right" ref="day28" format="#,###" mask="exclude" showmask="true"/>
  321. <col class="text_right" ref="day29" format="#,###" mask="exclude" showmask="true"/>
  322. <col class="text_right" ref="day30" format="#,###" mask="exclude" showmask="true"/>
  323. <col class="text_right" ref="day31" format="#,###" mask="exclude" showmask="true"/>
  324. <col class="text_right" ref="daytot" format="#,###" mask="exclude" showmask="true"/>
  325. <script type="javascript" ev:event="onaftersort">
  326. <![CDATA[
  327. grd_statsinfolist.gridToInstance();
  328. ]]>
  329. </script>
  330. </datagrid>
  331. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  332. <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; "/>
  333. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  334. <caption id="caption2" class="search_name" style="left:15; top:9px; width:86px; height:17px; ">접수일자 :</caption>
  335. <caption id="caption5" class="search_no_b" style="left:201px; top:8px; width:12px; height:17px; ">~</caption>
  336. <button id="btn_sea" class="btn1_letter2" navindex="8" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  337. <caption>조회</caption>
  338. <script type="javascript" ev:event="DOMActivate">
  339. <![CDATA[
  340. fGetStatsInfoList();
  341. ]]>
  342. </script>
  343. </button>
  344. <input id="ipt_cnclfromdd" ref="/root/hidden/acptfromdd" class="input_s_essential" navindex="1" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:104; top:8px; width:92; height:19px; ">
  345. <script type="javascript" ev:event="xforms-value-changed">
  346. <![CDATA[
  347. fExeRadioChange();
  348. ]]>
  349. </script>
  350. </input>
  351. <input id="ipt_cncltodd" ref="/root/hidden/acpttodd" class="input_s_essential" navindex="2" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:217px; top:8px; width:92px; height:19px; "/>
  352. <caption id="caption1" class="search_name" style="left:318px; top:9px; width:86px; height:17px; ">검색방법 :</caption>
  353. <caption id="caption3" class="search_name" visibility="hidden" style="left:960px; top:10px; width:86px; height:17px; ">표시조건 :</caption>
  354. <caption id="caption7" class="search_name" style="left:466px; top:9px; width:86px; height:17px; ">검사구분 :</caption>
  355. <select1 id="cbo_refmthdcd" ref="/root/hidden/refmthdcd" navindex="3" appearance="minimal" style="left:407px; top:8px; width:50px; height:19px; ">
  356. <choices>
  357. <item>
  358. <label>일별</label>
  359. <value>0</value>
  360. </item>
  361. <item>
  362. <label>월별</label>
  363. <value>1</value>
  364. </item>
  365. <item>
  366. <label>년별</label>
  367. <value>2</value>
  368. </item>
  369. </choices>
  370. <script type="javascript" ev:event="xforms-value-changed">
  371. <![CDATA[
  372. fExeRadioChange();
  373. ]]>
  374. </script>
  375. </select1>
  376. <caption id="caption8" class="search_name" visibility="visible" style="left:766px; top:9px; width:86px; height:17px; ">통계구분 :</caption>
  377. <select1 id="cbo_statsflagcd" ref="/root/hidden/statsworkflagcd" navindex="7" visibility="visible" appearance="minimal" style="left:855px; top:8px; width:103px; height:19px; ">
  378. <choices>
  379. <itemset nodeset="/root/init/resncd/resncdlist">
  380. <label ref="resncnts"/>
  381. <value ref="resncd"/>
  382. </itemset>
  383. </choices>
  384. </select1>
  385. <select1 id="cbo_testflagcd" ref="/root/hidden/testflagcd" navindex="5" appearance="minimal" style="left:555px; top:8px; width:50px; height:19px; ">
  386. <choices>
  387. <item>
  388. <label>내부</label>
  389. <value>0</value>
  390. </item>
  391. <item>
  392. <label>수탁</label>
  393. <value>1</value>
  394. </item>
  395. <item>
  396. <label>위탁</label>
  397. <value>2</value>
  398. </item>
  399. </choices>
  400. </select1>
  401. <select1 id="cbo_dispcondcd" ref="/root/hidden/dispcondcd" navindex="4" visibility="hidden" appearance="minimal" style="left:1050px; top:10px; width:50px; height:19px; ">
  402. <choices>
  403. <item>
  404. <label>접수</label>
  405. <value>0</value>
  406. </item>
  407. <item>
  408. <label>업무</label>
  409. <value>1</value>
  410. </item>
  411. <item>
  412. <label>완료</label>
  413. <value>2</value>
  414. </item>
  415. </choices>
  416. </select1>
  417. <caption id="caption9" class="search_name" style="left:611px; top:9px; width:86px; height:17px; ">환자구분 :</caption>
  418. <select1 id="combo1" ref="/root/init/patflagcd" navindex="6" appearance="minimal" style="left:700px; top:8px; width:50px; height:19px; ">
  419. <choices>
  420. <item>
  421. <label>입원</label>
  422. <value>0</value>
  423. </item>
  424. <item>
  425. <label>외래</label>
  426. <value>1</value>
  427. </item>
  428. <item>
  429. <label>전체</label>
  430. <value>Z</value>
  431. </item>
  432. </choices>
  433. </select1>
  434. </group>
  435. </group>
  436. </xhtml:body>
  437. </xhtml:html>