SMLLS01700_진단검사통계.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : 채혈접수취소내역조회.xrw
  4. * 설 명 : 채혈접수취소내역조회
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 유은자
  7. * 작 성 일 : 2010.01.18
  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. <queryinfo>
  20. <itemnm/>
  21. <a01/>
  22. <b01/>
  23. <c01/>
  24. <d01/>
  25. <a02/>
  26. <b02/>
  27. <c02/>
  28. <d02/>
  29. <a03/>
  30. <b03/>
  31. <c03/>
  32. <d03/>
  33. <a04/>
  34. <b04/>
  35. <c04/>
  36. <d04/>
  37. <a05/>
  38. <b05/>
  39. <c05/>
  40. <d05/>
  41. <a06/>
  42. <b06/>
  43. <c06/>
  44. <d06/>
  45. <a07/>
  46. <b07/>
  47. <c07/>
  48. <d07/>
  49. <a08/>
  50. <b08/>
  51. <c08/>
  52. <d08/>
  53. <a09/>
  54. <b09/>
  55. <c09/>
  56. <d09/>
  57. <a10/>
  58. <b10/>
  59. <c10/>
  60. <d10/>
  61. <a11/>
  62. <b11/>
  63. <c11/>
  64. <d11/>
  65. <a12/>
  66. <b12/>
  67. <c12/>
  68. <d12/>
  69. <total/>
  70. </queryinfo>
  71. <queryinfo2>
  72. <itemnm/>
  73. <a01/>
  74. <b01/>
  75. <c01/>
  76. <d01/>
  77. <a02/>
  78. <b02/>
  79. <c02/>
  80. <d02/>
  81. <a03/>
  82. <b03/>
  83. <c03/>
  84. <d03/>
  85. </queryinfo2>
  86. </main>
  87. <send>
  88. <fromdd/>
  89. <todd/>
  90. <qrygbn/>
  91. </send>
  92. <init>
  93. </init>
  94. <hidden>
  95. <forminfo>
  96. <fromdd/>
  97. <todd/>
  98. <qrygbn>1</qrygbn>
  99. <ddgbn/>
  100. </forminfo>
  101. </hidden>
  102. </root>
  103. </instance>
  104. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  105. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  106. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  107. <script type="javascript" ev:event="xforms-ready">
  108. <![CDATA[
  109. fnSetInit();
  110. ]]>
  111. </script>
  112. <submission id="TRLLS01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/queryinfo"/>
  113. <submission id="TRLLS01702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/queryinfo"/>
  114. </model>
  115. <script type="javascript">
  116. <![CDATA[
  117. //초기화
  118. function fnSetInit(){
  119. var toDay = getCurrentDate();
  120. model.setValue("/root/hidden/forminfo/fromdd", toDay);
  121. model.setValue("/root/hidden/forminfo/todd", toDay);
  122. model.setValue("/root/hidden/forminfo/ddgbn", "1"); // 1:월별 2:연별
  123. model.removeNodeset("/root/main/queryinfo");
  124. fSetddview(); // 월별 연별따라 일자구분 , 그리드 셋팅
  125. model.refresh();
  126. }
  127. //진단검사통계
  128. function fnGetLaboratory(){
  129. if(model.getValue("/root/hidden/forminfo/ddgbn")=="2"){ // 연별통계일때
  130. var fromyy = parseInt(model.getValue("/root/hidden/forminfo/fromdd").substr(0,4));
  131. var toyy = parseInt(model.getValue("/root/hidden/forminfo/todd").substr(0,4));
  132. if(toyy - fromyy < 0){
  133. alert("종료일이 시작일보다 작습니다");
  134. return;
  135. }
  136. if(toyy - fromyy >= 3){
  137. alert("조회는 3년까지만 제공합니다");
  138. return;
  139. }
  140. }
  141. model.removeNodeset("/root/main/queryinfo");
  142. model.removeNodeset("/root/main/queryinfo2");
  143. model.setValue("/root/send/qrygbn", model.getValue("/root/hidden/forminfo/qrygbn")); // 구분
  144. model.setValue("/root/send/fromdd", model.getValue("/root/hidden/forminfo/fromdd")); // 시작일시
  145. model.setValue("/root/send/todd", model.getValue("/root/hidden/forminfo/todd")); // 종료일시
  146. if(model.getValue("/root/hidden/forminfo/ddgbn")=="1"){ // 월별통계일때
  147. submit("TRLLS01701");
  148. for(i=1; i< grd_data.rows; i++){
  149. grd_data.cellStyle("background-color", i, 1, i, 1) = "#ffe79d"; //1월
  150. grd_data.cellStyle("background-color", i, 6, i, 6) = "#ffe79d"; //2월
  151. grd_data.cellStyle("background-color", i, 11, i, 11) = "#ffe79d"; //3
  152. grd_data.cellStyle("background-color", i, 16, i, 16) = "#ffe79d"; //4
  153. grd_data.cellStyle("background-color", i, 21, i, 21) = "#ffe79d"; //5
  154. grd_data.cellStyle("background-color", i, 26, i, 26) = "#ffe79d"; //6
  155. grd_data.cellStyle("background-color", i, 31, i, 31) = "#ffe79d"; //7
  156. grd_data.cellStyle("background-color", i, 36, i, 36) = "#ffe79d"; //8
  157. grd_data.cellStyle("background-color", i, 41, i, 41) = "#ffe79d"; //9
  158. grd_data.cellStyle("background-color", i, 46, i, 46) = "#ffe79d";//10
  159. grd_data.cellStyle("background-color", i, 51, i, 51) = "#ffe79d"; //11
  160. grd_data.cellStyle("background-color", i, 56, i, 56) = "#ffe79d"; // 12
  161. }
  162. }else{ // 연별통계
  163. yycaption();
  164. submit("TRLLS01702");
  165. for(i=1; i< grd_datayy.rows; i++){
  166. grd_datayy.cellStyle("background-color", i, 1, i, 1) = "#ffe79d"; //1
  167. grd_datayy.cellStyle("background-color", i, 6, i, 6) = "#ffe79d"; //2
  168. grd_datayy.cellStyle("background-color", i, 11, i, 11) = "#ffe79d"; //3
  169. }
  170. }
  171. }
  172. function fnExeExcel(pGridId) {
  173. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  174. if (fileName != "")
  175. {
  176. pGridId.saveExcel(fileName);
  177. }
  178. }
  179. // 월별 / 연별로 날짜, 그리드 바꿔줌
  180. function fSetddview(){
  181. var gbn = model.getValue("/root/hidden/forminfo/ddgbn");
  182. if(gbn =="1"){ // 월별
  183. model.setValue("/root/hidden/forminfo/fromdd", getCurrentDate());
  184. ipt_fromdd.visible = true; //시작일
  185. caption3.visible = false; //~
  186. ipt_todd.visible = false; //종료일
  187. grd_data.visible = true; // 월별그리드
  188. grd_datayy.visible = false; //연별그리드
  189. ipt_fromdd.attribute("format") = "yyyy-mm";
  190. ipt_todd.attribute("format")= "yyyy-mm";
  191. }else if(gbn =="2"){ // 연별
  192. ipt_fromdd.visible = true; //시작일
  193. caption3.visible = true; //~
  194. ipt_todd.visible = true; //종료일
  195. grd_data.visible = false; //월별그리드
  196. grd_datayy.visible = true; //연별그리드
  197. ipt_fromdd.attribute("format") = "yyyy";
  198. ipt_todd.attribute("format")= "yyyy";
  199. yycaption();
  200. }
  201. model.refresh();
  202. }
  203. // 연별 그리드 캡션
  204. function yycaption(){
  205. for(j=6; j<16; j++){
  206. grd_datayy.colHidden(j) = true;
  207. }
  208. // 3년만 조회하기땜에
  209. var fromyy = parseInt(model.getValue("/root/hidden/forminfo/fromdd").substr(0,4));
  210. var toyy = parseInt(model.getValue("/root/hidden/forminfo/todd").substr(0,4));
  211. var cap1 = "^";
  212. var cap2 = "^소계^본원시행^본원시행^외부검사^외부검사^소계^본원시행^본원시행^외부검사^외부검사^소계^본원시행^본원시행^외부검사^외부검사^";
  213. var cap3 = "^소계^본원처방^수탁검사^검사센터^CMC병원^소계^본원처방^수탁검사^검사센터^CMC병원^소계^본원처방^수탁검사^검사센터^CMC병원^";
  214. for(i=0 ; i<3; i++){
  215. cap1 += (fromyy+i) + "^" + (fromyy+i) + "^" + (fromyy+i) + "^" + (fromyy+i) + "^" + (fromyy+i) + "^";
  216. }
  217. //var newcap1 = cap1;
  218. grd_datayy.caption = cap1 + "|" + cap2 + "|" + cap3 ;
  219. var ab = toyy - fromyy ;
  220. if(ab==0){ // 1년
  221. for(j=6; j<16; j++){
  222. grd_datayy.colHidden(j) = true;
  223. }
  224. }
  225. if(ab==1){ // 2년
  226. for(j=0; j<11; j++){
  227. grd_datayy.colHidden(j) = false;
  228. }
  229. }
  230. if(ab > 1){ // 2년
  231. for(j=1; j<16; j++){
  232. grd_datayy.colHidden(j) = false;
  233. }
  234. }
  235. }
  236. ]]>
  237. </script>
  238. </xhtml:head>
  239. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  240. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  241. <datagrid id="grd_datayy" nodeset="/root/main/queryinfo2" caption="^A^A^A^A^A^B^B^B^B^B^C^C^C^C^C|^소계^본원시행^본원시행^외부검사^외부검사^소계^본원시행^본원시행^외부검사^외부검사^소계^본원시행^본원시행^외부검사^외부검사|^소계^본원처방^수탁검사^검사센터^CMC병원^소계^본원처방^수탁검사^검사센터^CMC병원^소계^본원처방^수탁검사^검사센터^CMC병원" colsep="^" colwidth="110, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70" dataheight="23" explorerbar="sortshow" fixedcols="1" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" style="left:5px; top:65px; width:1185px; height:670px; ">
  242. <col ref="itemnm"/>
  243. <col ref="t01" style="text-align:right; "/>
  244. <col ref="a01" style="text-align:right; "/>
  245. <col ref="b01" style="text-align:right; "/>
  246. <col ref="c01" style="text-align:right; "/>
  247. <col ref="d01" style="text-align:right; "/>
  248. <col ref="t02" style="text-align:right; "/>
  249. <col ref="a02" style="text-align:right; "/>
  250. <col ref="b02" style="text-align:right; "/>
  251. <col ref="c02" style="text-align:right; "/>
  252. <col ref="d02" style="text-align:right; "/>
  253. <col ref="t03" style="text-align:right; "/>
  254. <col ref="a03" style="text-align:right; "/>
  255. <col ref="b03" style="text-align:right; "/>
  256. <col ref="c03" style="text-align:right; "/>
  257. <col ref="d03" style="text-align:right; "/>
  258. </datagrid>
  259. <datagrid id="grd_data" nodeset="/root/main/queryinfo" caption="^1월^1월^1월^1월^1월^2월^2월^2월^2월^2월^3월^3월^3월^3월^3월^4월^4월^4월^4월^4월^5월^5월^5월^5월^5월^6월^6월^6월^6월^6월^7월^7월^7월^7월^7월^8월^8월^8월^8월^8월^9월^9월^9월^9월^9월^10월^10월^10월^10월^10월^11월^11월^11월^11월^11월^12월^12월^12월^12월^12월^Total|^1월 소계^본원시행^본원시행^외부검사^외부검사^2월 소계^본원시행^본원시행^외부검사^외부검사^3월 소계^본원시행^본원시행^외부검사^외부검사^4월 소계^본원시행^본원시행^외부검사^외부검사^5월 소계^본원시행^본원시행^외부검사^외부검사^6월 소계^본원시행^본원시행^외부검사^외부검사^7월 소계^본원시행^본원시행^외부검사^외부검사^8월 소계^본원시행^본원시행^외부검사^외부검사^9월 소계^본원시행^본원시행^외부검사^외부검사^10월 소계^본원시행^본원시행^외부검사^외부검사^11월 소계^본원시행^본원시행^외부검사^외부검사^12월 소계^본원시행^본원시행^외부검사^외부검사^Total|^1월 소계^본원처방^수탁검사^검사센터^칠곡병원^2월 소계^본원처방^수탁검사^검사센터^칠곡병원^3월 소계^본원처방^수탁검사^검사센터^칠곡병원^4월 소계^본원처방^수탁검사^검사센터^칠곡병원^5월 소계^본원처방^수탁검사^검사센터^칠곡병원^6월 소계^본원처방^수탁검사^검사센터^칠곡병원^7월 소계^본원처방^수탁검사^검사센터^칠곡병원^8월 소계^본원처방^수탁검사^검사센터^칠곡병원^9월 소계^본원처방^수탁검사^검사센터^칠곡병원^10월 소계^본원처방^수탁검사^검사센터^칠곡병원^11월 소계^본원처방^수탁검사^검사센터^칠곡병원^12월 소계^본원처방^수탁검사^검사센터^칠곡병원^Total" colsep="^" colwidth="110, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 80" dataheight="23" explorerbar="sortshow" fixedcols="1" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" style="left:5px; top:65px; width:1185px; height:670px; ">
  260. <col ref="itemnm"/>
  261. <col ref="t01" style="text-align:right; "/>
  262. <col ref="a01" style="text-align:right; "/>
  263. <col ref="b01" style="text-align:right; "/>
  264. <col ref="c01" style="text-align:right; "/>
  265. <col ref="d01" style="text-align:right; "/>
  266. <col ref="t02" style="text-align:right; "/>
  267. <col ref="a02" style="text-align:right; "/>
  268. <col ref="b02" style="text-align:right; "/>
  269. <col ref="c02" style="text-align:right; "/>
  270. <col ref="d02" style="text-align:right; "/>
  271. <col ref="t03" style="text-align:right; "/>
  272. <col ref="a03" style="text-align:right; "/>
  273. <col ref="b03" style="text-align:right; "/>
  274. <col ref="c03" style="text-align:right; "/>
  275. <col ref="d03" style="text-align:right; "/>
  276. <col ref="t04" style="text-align:right; "/>
  277. <col ref="a04" style="text-align:right; "/>
  278. <col ref="b04" style="text-align:right; "/>
  279. <col ref="c04" style="text-align:right; "/>
  280. <col ref="d04" style="text-align:right; "/>
  281. <col ref="t05" style="text-align:right; "/>
  282. <col ref="a05" style="text-align:right; "/>
  283. <col ref="b05" style="text-align:right; "/>
  284. <col ref="c05" style="text-align:right; "/>
  285. <col ref="d05" style="text-align:right; "/>
  286. <col ref="t06" style="text-align:right; "/>
  287. <col ref="a06" style="text-align:right; "/>
  288. <col ref="b06" style="text-align:right; "/>
  289. <col ref="c06" style="text-align:right; "/>
  290. <col ref="d06" style="text-align:right; "/>
  291. <col ref="t07" style="text-align:right; "/>
  292. <col ref="a07" style="text-align:right; "/>
  293. <col ref="b07" style="text-align:right; "/>
  294. <col ref="c07" style="text-align:right; "/>
  295. <col ref="d07" style="text-align:right; "/>
  296. <col ref="t08" style="text-align:right; "/>
  297. <col ref="a08" style="text-align:right; "/>
  298. <col ref="b08" style="text-align:right; "/>
  299. <col ref="c08" style="text-align:right; "/>
  300. <col ref="d08" style="text-align:right; "/>
  301. <col ref="t09" style="text-align:right; "/>
  302. <col ref="a09" style="text-align:right; "/>
  303. <col ref="b09" style="text-align:right; "/>
  304. <col ref="c09" style="text-align:right; "/>
  305. <col ref="d09" style="text-align:right; "/>
  306. <col ref="t10" style="text-align:right; "/>
  307. <col ref="a10" style="text-align:right; "/>
  308. <col ref="b10" style="text-align:right; "/>
  309. <col ref="c10" style="text-align:right; "/>
  310. <col ref="d10" style="text-align:right; "/>
  311. <col ref="t11" style="text-align:right; "/>
  312. <col ref="a11" style="text-align:right; "/>
  313. <col ref="b11" style="text-align:right; "/>
  314. <col ref="c11" style="text-align:right; "/>
  315. <col ref="d11" style="text-align:right; "/>
  316. <col ref="t12" style="text-align:right; "/>
  317. <col ref="a12" style="text-align:right; "/>
  318. <col ref="b12" style="text-align:right; "/>
  319. <col ref="c12" style="text-align:right; "/>
  320. <col ref="d12" style="text-align:right; "/>
  321. <col ref="total" style="text-align:right; "/>
  322. </datagrid>
  323. <group id="group1" style="left:0px; top:0px; width:1192px; height:35px; ">
  324. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1189px; height:35px; "/>
  325. <line id="line3" class="line_4" style="x1:1100px; y1:6px; x2:1100px; y2:28px; "/>
  326. <button id="btn_search" class="btn1_letter2" style="left:1113px; top:7px; width:56px; height:22px; ">
  327. <caption>조회</caption>
  328. <script type="javascript" ev:event="DOMActivate">
  329. <![CDATA[
  330. fnGetLaboratory();
  331. ]]>
  332. </script>
  333. </button>
  334. <caption id="caption3" class="search_no_b" style="left:395px; top:8px; width:15px; height:17px; ">~</caption>
  335. <input id="ipt_fromdd" ref="/root/hidden/forminfo/fromdd" class="input_search" inputtype="date" format="yyyy-mm" style="left:310px; top:8px; width:80px; height:19px; ">
  336. <script type="javascript" ev:event="xforms-value-changed">
  337. <![CDATA[
  338. yycaption();
  339. ]]>
  340. </script>
  341. </input>
  342. <input id="ipt_todd" ref="/root/hidden/forminfo/todd" class="input_search" inputtype="date" format="yyyy-mm" style="left:415px; top:8px; width:80px; height:19px; ">
  343. <script type="javascript" ev:event="xforms-value-changed">
  344. <![CDATA[
  345. yycaption();
  346. ]]>
  347. </script>
  348. </input>
  349. <caption id="cap_date" class="search_name" style="left:240px; top:9px; width:65px; height:17px; ">일자 :</caption>
  350. <caption id="cap_qrygbn" class="search_name" style="left:610px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
  351. <select1 id="rdo_qrygbn" ref="/root/hidden/forminfo/qrygbn" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:705px; top:10px; width:140px; height:15px; border-style:none; ">
  352. <choices>
  353. <item>
  354. <label>접수건수</label>
  355. <value>1</value>
  356. </item>
  357. <item>
  358. <label>검사건수</label>
  359. <value>2</value>
  360. </item>
  361. </choices>
  362. </select1>
  363. <select1 id="radio1" ref="/root/hidden/forminfo/ddgbn" class="radio_search" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:35px; top:10px; width:125px; height:15px; border-style:none; ">
  364. <choices>
  365. <item>
  366. <label>월별</label>
  367. <value>1</value>
  368. </item>
  369. <item>
  370. <label>연별</label>
  371. <value>2</value>
  372. </item>
  373. </choices>
  374. <script type="javascript" ev:event="xforms-select">
  375. <![CDATA[
  376. fSetddview();
  377. ]]>
  378. </script>
  379. </select1>
  380. </group>
  381. <caption id="caption4" class="tit_2" style="left:10px; top:45px; width:150px; height:13px; ">진단검사통계</caption>
  382. <line id="line1" class="line_1" style="x1:5px; y1:60px; x2:1190px; y2:60px; "/>
  383. <button id="button2" class="btn2_letter2" style="left:1148px; top:39px; width:42px; height:19px; ">
  384. <caption>엑셀</caption>
  385. <script type="javascript" ev:event="DOMActivate">
  386. <![CDATA[
  387. fnExeExcel(grd_data);
  388. ]]>
  389. </script>
  390. </button>
  391. <caption id="caption1" visibility="hidden" style="left:150px; top:40px; width:238px; height:20px; ">월별 연별 그리드 다름 맨뒤로 보내면 나옴</caption>
  392. </group>
  393. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  394. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1190px; y2:25px; "/>
  395. <button id="btn_clear" class="btn4_letter3" style="left:1121px; top:3px; width:68px; height:22px; ">
  396. <caption>초기화</caption>
  397. <script type="javascript" ev:event="DOMActivate">
  398. <![CDATA[
  399. fnSetInit();
  400. ]]>
  401. </script>
  402. </button>
  403. </group>
  404. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  405. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">진단검사통계</caption>
  406. </group>
  407. </xhtml:body>
  408. </xhtml:html>