SMLLS01500_BST통계.xrw 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLS01500_BST통계.xrw
  4. * 설 명 : BST통계
  5. * 설 계 자 : (주)에이씨케이 - 박정은
  6. * 작 성 자 : (주)에이씨케이 - 박정은
  7. * 작 성 일 : 2009.12.07
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>BST 통계</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <getBSTCountDD>
  20. <rowdata>
  21. <nm/>
  22. <a01/>
  23. <a02/>
  24. <a03/>
  25. <a04/>
  26. <a05/>
  27. <a06/>
  28. <a07/>
  29. <a08/>
  30. <a09/>
  31. <a10/>
  32. <a11/>
  33. <a12/>
  34. <a13/>
  35. <a14/>
  36. <a15/>
  37. <a16/>
  38. <a17/>
  39. <a18/>
  40. <a19/>
  41. <a20/>
  42. <a21/>
  43. <a22/>
  44. <a23/>
  45. <a24/>
  46. <a25/>
  47. <a26/>
  48. <a27/>
  49. <a28/>
  50. <a29/>
  51. <a30/>
  52. <a31/>
  53. <ahap/>
  54. </rowdata>
  55. <totalcnt>
  56. <testcnt/>
  57. <patcnt/>
  58. </totalcnt>
  59. </getBSTCountDD>
  60. <getBSTCountMM>
  61. <rowdata>
  62. <nm/>
  63. <a01/>
  64. <a02/>
  65. <a03/>
  66. <a04/>
  67. <a05/>
  68. <a06/>
  69. <a07/>
  70. <a08/>
  71. <a09/>
  72. <a10/>
  73. <a11/>
  74. <a12/>
  75. <ahap/>
  76. </rowdata>
  77. <totalcnt>
  78. <testcnt/>
  79. <patcnt/>
  80. </totalcnt>
  81. </getBSTCountMM>
  82. <getBSTCountYY>
  83. <rowdata>
  84. <nm/>
  85. <a01/>
  86. <a02/>
  87. <a03/>
  88. <a04/>
  89. <a05/>
  90. <a06/>
  91. <a07/>
  92. <a08/>
  93. <a09/>
  94. <a10/>
  95. <ahap/>
  96. </rowdata>
  97. <totalcnt>
  98. <testcnt/>
  99. <patcnt/>
  100. </totalcnt>
  101. </getBSTCountYY>
  102. <refrslt>
  103. <lastreptdt/>
  104. <tclsscrnnm/>
  105. <spccd/>
  106. <pid/>
  107. <hngnm/>
  108. <sex/>
  109. <age/>
  110. <deptengabbr/>
  111. <termhngnm/>
  112. <reptrslt/>
  113. <usernm/>
  114. </refrslt>
  115. <page>
  116. <total/>
  117. <now/>
  118. </page>
  119. </main>
  120. <send>
  121. <fromdd/>
  122. <todd/>
  123. <gbn/>
  124. <refflag/>
  125. <page/>
  126. <iogbn/>
  127. </send>
  128. <init>
  129. </init>
  130. <hidden>
  131. <ref>
  132. <fromdd/>
  133. <todd/>
  134. <fromtm>0000</fromtm>
  135. <totm>2359</totm>
  136. <gbn>00</gbn>
  137. <yy/>
  138. <refflag>1</refflag>
  139. <orddept>00</orddept>
  140. <reptid/>
  141. <ageflag>0</ageflag>
  142. <sage/>
  143. <eage/>
  144. <sex>0</sex>
  145. <dept>00</dept>
  146. <term>00</term>
  147. <rsltflag>0</rsltflag>
  148. <srslt/>
  149. <erslt/>
  150. <ordtype>00</ordtype>
  151. <page>1</page>
  152. </ref>
  153. <report>
  154. <month/>
  155. <quarter/>
  156. <year/>
  157. </report>
  158. <getTotalCount>
  159. <totaltestcnt/>
  160. <totalpatcnt/>
  161. </getTotalCount>
  162. <iogbn>00</iogbn>
  163. </hidden>
  164. </root>
  165. </instance>
  166. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  167. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  168. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  169. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  170. <script type="javascript" ev:event="xforms-ready">
  171. <![CDATA[
  172. fSetInit();
  173. ]]>
  174. </script>
  175. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  176. <!--
  177. <submission id="TRLBS00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/days/rowdata"/>
  178. <submission id="TRLBS00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/month/rowdata"/>
  179. <submission id="TRLBS00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/quarter/rowdata"/>
  180. <submission id="TRLBS00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/year/rowdata"/>
  181. -->
  182. <submission id="TRLLS01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getBSTCountDD"/>
  183. <submission id="TRLLS01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getBSTCountMM"/>
  184. <submission id="TRLLS01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getBSTCountYY"/>
  185. <submission id="TRLLS01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/refrslt"/>
  186. </model>
  187. <script type="javascript">
  188. <![CDATA[
  189. //초기화
  190. function fSetInit(){
  191. fBaseInfoRef("0105|0002|"); // 0105 : 검체코드, 0002 : 진료과
  192. group1.visible = true;
  193. group2.visible = false;
  194. model.setValue("/root/hidden/ref/fromdd", getCurrentDate().substring(0,6));
  195. model.setValue("/root/hidden/ref/todd" , getCurrentDate().substring(0,6));
  196. model.removeNodeset("/root/main/getBSTCountDD/rowdata");
  197. model.removeNodeset("/root/main/getBSTCountMM/rowdata");
  198. model.removeNodeset("/root/main/getBSTCountYY/rowdata");
  199. model.removeNodeset("/root/main/getTotalCount"); // 총검사건수, 총환자수
  200. model.setValue("/root/hidden/ref/refflag", "1"); // 조회구분 1=일별, 2=월별, 3=연별
  201. model.setValue("/root/hidden/ref/gbn", "1"); // 통계구분 1=시행부서별, 2= 진료과별, 3=진료의사별, 4:결과등록자별
  202. btn_dd.selected = true; // 일별
  203. btn_mm.selected = false; // 월별
  204. btn_yy.selected = false; // 연별
  205. caption8.attribute("text") = "총환자수";
  206. model.toggle("case0"); // 일별
  207. model.refresh();
  208. }
  209. // 조회구분 선택시
  210. function fSetRefflag(gbn){
  211. group1.visible = true;
  212. group2.visible = false;
  213. if(gbn == "1"){
  214. model.toggle("case0"); // 일별
  215. model.setValue("/root/hidden/ref/fromdd", getCurrentDate().substring(0,6));
  216. model.setValue("/root/hidden/ref/todd" , getCurrentDate().substring(0,6));
  217. ipt_workfromdd.attribute("format") = "yyyy-mm";
  218. btn_dd.selected = true; // 일별
  219. btn_mm.selected = false; // 월별
  220. btn_yy.selected = false; // 연별
  221. caption9.visible = false;
  222. ipt_worktodd.visible = false;
  223. model.setValue("/root/hidden/ref/refflag","1");
  224. caption8.attribute("text") = "총환자수";
  225. }else if(gbn == "2"){
  226. model.toggle("case1"); // 월별
  227. model.setValue("/root/hidden/ref/fromdd", getCurrentDate().substring(0,4));
  228. model.setValue("/root/hidden/ref/todd" , getCurrentDate().substring(0,4));
  229. ipt_workfromdd.attribute("format") = "yyyy";
  230. btn_dd.selected = false; // 일별
  231. btn_mm.selected = true; // 월별
  232. btn_yy.selected = false; // 연별
  233. caption9.visible = false;
  234. ipt_worktodd.visible = false;
  235. model.setValue("/root/hidden/ref/refflag","2");
  236. caption8.attribute("text") = "총환자수";
  237. }else if(gbn == "3"){
  238. model.toggle("case2"); // 연별
  239. model.setValue("/root/hidden/ref/fromdd", getCurrentDate().substring(0,4));
  240. model.setValue("/root/hidden/ref/todd" , getCurrentDate().substring(0,4));
  241. ipt_workfromdd.attribute("format") = "yyyy";
  242. ipt_worktodd.attribute("format") = "yyyy";
  243. btn_dd.selected = false; // 일별
  244. btn_mm.selected = false; // 월별
  245. btn_yy.selected = true; // 연별
  246. caption9.visible = false;
  247. ipt_worktodd.visible = false;
  248. model.setValue("/root/hidden/ref/refflag","3");
  249. caption8.attribute("text") = "총환자수";
  250. // 연별 캡션변경
  251. fYearCaption();
  252. // alert("개발중입니다. ");
  253. }else if(gbn == "4"){
  254. model.toggle("case_rslt");
  255. group1.visible = false;
  256. group2.visible = true;
  257. model.setValue("/root/hidden/ref/fromdd", getCurrentDate());
  258. model.setValue("/root/hidden/ref/todd" , getCurrentDate());
  259. caption8.attribute("text") = "조회된건수";
  260. model.setValue("/root/hidden/ref/refflag","4");
  261. //그리드초기화
  262. model.resetInstanceNode("/root/main/refrslt");
  263. }
  264. model.refresh();
  265. }
  266. // BST통계 조회
  267. function fGetBSTCount(){
  268. model.makeValue("/root/send/fromdd", model.getValue("/root/hidden/ref/fromdd"));
  269. model.makeValue("/root/send/todd", model.getValue("/root/hidden/ref/todd"));
  270. model.makeValue("/root/send/gbn", model.getValue("/root/hidden/ref/gbn")); // 통계구분 1=시행부서별, 2= 진료과별, 3=진료의사별 , 4=결과입력자별
  271. model.makeValue("/root/send/refflag", model.getValue("/root/hidden/ref/refflag")); // 조회구분 1=일별, 2=월별, 3=연별
  272. model.makeValue("/root/send/iogbn", model.getValue("/root/hidden/iogbn")); // 구분 00 전체 I 입원 O 외래
  273. if(model.getValue("/root/hidden/ref/refflag") == "1"){ // 일별
  274. submit("TRLLS01501");
  275. // 총검사건수, 총환자수
  276. model.setValue("/root/hidden/getTotalCount/totaltestcnt", model.getValue("/root/main/getBSTCountDD/totalcnt/testcnt"));
  277. model.setValue("/root/hidden/getTotalCount/totalpatcnt" , model.getValue("/root/main/getBSTCountDD/totalcnt/patcnt"));
  278. }
  279. if(model.getValue("/root/hidden/ref/refflag") == "2"){ // 월별
  280. submit("TRLLS01502");
  281. // 총검사건수, 총환자수
  282. model.setValue("/root/hidden/getTotalCount/totaltestcnt", model.getValue("/root/main/getBSTCountMM/totalcnt/testcnt"));
  283. model.setValue("/root/hidden/getTotalCount/totalpatcnt" , model.getValue("/root/main/getBSTCountMM/totalcnt/patcnt"));
  284. }
  285. if(model.getValue("/root/hidden/ref/refflag") == "3"){ // 연별
  286. submit("TRLLS01503");
  287. // 총검사건수, 총환자수
  288. model.setValue("/root/hidden/getTotalCount/totaltestcnt", model.getValue("/root/main/getBSTCountYY/totalcnt/testcnt"));
  289. model.setValue("/root/hidden/getTotalCount/totalpatcnt" , model.getValue("/root/main/getBSTCountYY/totalcnt/patcnt"));
  290. //alert("개발중입니다.");
  291. //return;
  292. }
  293. model.refresh();
  294. }
  295. // 결과조회
  296. function fGetRsltRef() {
  297. model.removeNodeset("/root/main/refrslt");
  298. model.removeNodeset("/root/main/page");
  299. model.setValue("/root/hidden/ref/ageflag" , "0");
  300. model.setValue("/root/hidden/ref/sex" , "0");
  301. model.setValue("/root/hidden/ref/dept" , "00"); //부서
  302. model.setValue("/root/hidden/ref/term" , "00"); //상병 초기화
  303. model.makeValue("/root/hidden/ref/iogbn", model.getValue("/root/hidden/iogbn"));
  304. copyNodeType("/root/send", "/root/hidden/ref");
  305. model.refresh();
  306. model.removenodeset("/root/code");
  307. submit("TRLLS01504");
  308. var lastpage = model.getValue("/root/main/page/page");
  309. //페이지 처리
  310. for(page = 2 ; page <= lastpage ; page++){
  311. model.setValue("/root/send/page", page);
  312. submit("TRLLS01504");
  313. }
  314. model.removenode("/root/send");
  315. model.makeNode("/root/send");
  316. var total = model.getValue("/root/main/page/total"); //총 검사건수
  317. var now = model.getXPathValue("count(/root/main/refrslt)"); //조회된 건수를 구한다.
  318. var per = Math.round(now / total * 100); //백분율
  319. model.setValue("/root/main/page/now", now + "(" + per + "%)"); //조회된 건수(백분율)
  320. // 총검사건수,, 조회된건수 setting
  321. model.setValue("/root/hidden/getTotalCount/totaltestcnt", total);
  322. model.setValue("/root/hidden/getTotalCount/totalpatcnt", now + "(" + per + "%)");
  323. var tmpstr;
  324. var nodeCnt = 1;
  325. var tmpList = new Array() ; //정렬 전
  326. var tmpSort; //정렬 후
  327. //------------------------ 진료부서 Combo List 생성
  328. model.makeNode("/root/temp");
  329. copyNodesetType("/root/temp", "/root/main/refrslt", "replace");
  330. model.removeNodeset("/root/hidden/list/dept");
  331. model.makeNode("/root/hidden/list/dept["+nodeCnt+"]");
  332. model.makeValue("/root/hidden/list/dept["+nodeCnt+"]/val", "00");
  333. model.makeValue("/root/hidden/list/dept["+nodeCnt+"]/nm", "-전체-");
  334. while(model.getXPathValue("count(/root/temp/deptengabbr)") != 0){
  335. tmpstr = model.getValue("/root/temp[1]/deptengabbr");
  336. tmpList[(nodeCnt-1)] = tmpstr;
  337. nodeCnt += 1;
  338. /*model.makeNode("/root/hidden/list/dept["+nodeCnt+"]"); //이부분은 정렬 때문에..
  339. model.makeValue("/root/hidden/list/dept["+nodeCnt+"]/val", nodeCnt);
  340. model.makeValue("/root/hidden/list/dept["+nodeCnt+"]/nm", tmpstr);*/
  341. model.removeNodeset("/root/temp[deptengabbr='"+tmpstr+"']");
  342. }
  343. tmpSort = tmpList.sort(); //정렬
  344. for (i = 0; i < (nodeCnt-1); i++){ //콤보 리스트 생성
  345. model.makeNode("/root/hidden/list/dept["+ (i+2) +"]");
  346. model.makeValue("/root/hidden/list/dept["+ (i+2) +"]/val", i);
  347. model.makeValue("/root/hidden/list/dept["+ (i+2) +"]/nm", tmpSort[i]);
  348. }
  349. //---------------------------- 진료부서 end
  350. //------------------------ 상병 Combo List 생성 ------------------------
  351. tmpList = new Array(); //배열 초기화
  352. model.makeNode("/root/temp");
  353. copyNodesetType("/root/temp", "/root/main/refrslt", "replace");
  354. model.removeNodeset("/root/hidden/list2/term");
  355. nodeCnt = 1;
  356. model.makeNode("/root/hidden/list2/term["+nodeCnt+"]");
  357. model.makeValue("/root/hidden/list2/term["+nodeCnt+"]/val", "00");
  358. model.makeValue("/root/hidden/list2/term["+nodeCnt+"]/nm", "-전체-");
  359. while(model.getXPathValue("count(/root/temp/termhngnm)") != 0){
  360. tmpstr = model.getValue("/root/temp[1]/termhngnm");
  361. tmpList[(nodeCnt-1)] = tmpstr;
  362. nodeCnt += 1;
  363. /*model.makeNode("/root/hidden/list2/term["+nodeCnt+"]");
  364. model.makeValue("/root/hidden/list2/term["+nodeCnt+"]/val", nodeCnt);
  365. model.makeValue("/root/hidden/list2/term["+nodeCnt+"]/nm", tmpstr);*/
  366. model.removeNodeset("/root/temp[termhngnm='"+tmpstr+"']");
  367. }
  368. tmpSort = tmpList.sort(); //정렬
  369. for (i = 0; i < (nodeCnt-1); i++){ //콤보 리스트 생성
  370. model.makeNode("/root/hidden/list2/term["+ (i+2) +"]");
  371. model.makeValue("/root/hidden/list2/term["+ (i+2) +"]/val", i);
  372. model.makeValue("/root/hidden/list2/term["+ (i+2) +"]/nm", tmpSort[i]);
  373. }
  374. //------------------------------- 상병 end --------------------------------
  375. grd_refrslt.nodeset = "/root/main/refrslt";
  376. model.refresh();
  377. }
  378. ////////////////////////////////////////////////
  379. /*
  380. // 수혈환자수 조회
  381. function fGetTransPidCnt(){
  382. model.setValue("/root/send/fromdd", model.getValue("/root/hidden/ref/fromdd"));
  383. model.setValue("/root/send/todd", model.getValue("/root/hidden/ref/todd"));
  384. model.setValue("/root/send/gbn", model.getValue("/root/hidden/ref/gbn")); // 1=전체, 2= 입원, 3=외래
  385. model.setValue("/root/send/flag", model.getValue("/root/hidden/ref/flag")); // 0=일별, 1=월별, 2=분기별, 3=연별
  386. if(model.getValue("/root/hidden/ref/flag") == "0"){
  387. submit("TRLBS00304");
  388. }
  389. if(model.getValue("/root/hidden/ref/flag") == "1"){
  390. submit("TRLBS00301");
  391. }
  392. if(model.getValue("/root/hidden/ref/flag") == "2"){
  393. submit("TRLBS00302");
  394. }
  395. if(model.getValue("/root/hidden/ref/flag") == "3"){
  396. model.removeNodeset("/root/main/year/rowdata");
  397. fYearCaption();
  398. submit("TRLBS00303");
  399. }
  400. }
  401. */
  402. // 엑셀저장
  403. function fSaveExcel(){
  404. var filename = window.fileDialog("save", ",", false, "Excel", "xls", "All Files(*.*)|*.*|Excel File(*.xls)|*.xls");
  405. if(model.getValue("/root/hidden/ref/refflag")=="1"){//일별
  406. if(filename != "") {
  407. grd_days.saveExcel(filename);
  408. }
  409. }else if(model.getValue("/root/hidden/ref/refflag")=="2"){//월별
  410. if(filename != "") {
  411. grd_month.saveExcel(filename);
  412. }
  413. }else if(model.getValue("/root/hidden/ref/refflag")=="3"){//연별
  414. if(filename != "") {
  415. grd_year.saveExcel(filename);
  416. }
  417. }else if(model.getValue("/root/hidden/ref/refflag")=="4"){//결과조회
  418. if(filename != "") {
  419. grd_refrslt.saveExcel(filename);
  420. }
  421. }
  422. }
  423. /*
  424. // 출력
  425. function fExePrint(){
  426. if(model.getValue("/root/hidden/ref/refflag")=="1"){ //일별
  427. model.removeNodeset("/root/hidden/report/month");
  428. for(i=1; i<grd_month.rows; i++){
  429. copyNodeListType("/root/hidden/report", "/root/main/month["+i+"]", "arter");
  430. }
  431. model.makeValue("/root/hidden/report/fromdd", model.getValue("/root/hidden/ref/fromdd"));
  432. model.makeValue("/root/hidden/report/todd", model.getValue("/root/hidden/ref/todd"));
  433. exeReportPreview("RPLBS00300", "XMLSTR", "/root/hidden/report");
  434. }else if(model.getValue("/root/hidden/ref/refflag")=="2"){ //월별
  435. model.removeNodeset("/root/hidden/report/quarter");
  436. for(i=1; i<grd_quarter.rows; i++){
  437. copyNodeListType("/root/hidden/report", "/root/main/quarter["+i+"]", "after");
  438. }
  439. model.makeValue("/root/hidden/report/fromdd", model.getValue("/root/hidden/ref/fromdd"));
  440. model.makeValue("/root/hidden/report/todd", model.getValue("/root/hidden/ref/todd"));
  441. exeReportPreview("RPLBS00400", "XMLSTR", "/root/hidden/report");
  442. }else if(model.getValue("/root/hidden/ref/refflag")=="3"){ //연별
  443. model.removeNodeset("/root/hidden/report/year");
  444. for(i=1; i<grd_year.rows; i++){
  445. copyNodeListType("/root/hidden/report", "/root/main/year["+i+"]", "after");
  446. }
  447. model.makeValue("/root/hidden/report/fromdd", model.getValue("/root/hidden/ref/fromdd"));
  448. model.makeValue("/root/hidden/report/todd", model.getValue("/root/hidden/ref/todd"));
  449. var sdd = parseInt(model.getValue("/root/hidden/ref/fromdd").substr(0,4));
  450. model.makeValue("/root/hidden/report/title/title1", sdd);
  451. model.makeValue("/root/hidden/report/title/title2", (sdd+1));
  452. model.makeValue("/root/hidden/report/title/title3", (sdd+2));
  453. model.makeValue("/root/hidden/report/title/title4", (sdd+3));
  454. model.makeValue("/root/hidden/report/title/title5", (sdd+4));
  455. model.makeValue("/root/hidden/report/title/title6", (sdd+5));
  456. model.makeValue("/root/hidden/report/title/title7", (sdd+6));
  457. model.makeValue("/root/hidden/report/title/title8", (sdd+7));
  458. model.makeValue("/root/hidden/report/title/title9", (sdd+8));
  459. model.makeValue("/root/hidden/report/title/title10", (sdd+9));
  460. exeReportPreview("RPLBS00500", "XMLSTR", "/root/hidden/report");
  461. }
  462. }
  463. */
  464. // 연별 캡션 변경
  465. function fYearCaption(){
  466. for(q=1; q<=10; q++){
  467. grd_year.colHidden(q) = true;
  468. }
  469. var fromyy = model.getValue("/root/hidden/ref/fromdd").substr(0,4);
  470. var toyy = model.getValue("/root/hidden/ref/todd").substr(0,4);
  471. var newCap = cmb_rtnabnflag.label;
  472. var cnt = "0";
  473. for(i=fromyy; i<=toyy; i++){
  474. newCap += "^" + i;
  475. cnt ++;
  476. }
  477. if(cnt > 10){
  478. alert("10년이상 조회하면 마비되요");
  479. }
  480. for(z=1; z<=cnt; z++){
  481. grd_year.colHidden(z) = false;
  482. }
  483. grd_year.caption = newCap;
  484. }
  485. function fGetFilter(){
  486. //-전체-
  487. // 필터 조건
  488. var sex = combo3.label; //성별
  489. var dept = combo4.label; //진료부서
  490. var term = combo5.label; //상병명
  491. var ageflag = cmb_ageflag.value; //0 : 미선택, 1 : 미만, 2 : 이상, 3 : 사이
  492. var vFilter;
  493. var vFilterCnt;
  494. var vSAge = ipt_sage.value;
  495. var vEAge = ipt_eage.value;
  496. if(sex == "-전체-"){
  497. vFilter = "sex != '-전체-' and ";
  498. }else{
  499. vFilter = "sex = '"+ sex +"' and ";
  500. }
  501. if(dept == "-전체-"){
  502. vFilter += "deptengabbr != '-전체-' and ";
  503. }else{
  504. vFilter += "deptengabbr = '"+ dept +"' and ";
  505. }
  506. if(term == "-전체-"){
  507. vFilter += "termhngnm != '-전체-' ";
  508. }else{
  509. vFilter += "termhngnm = '"+ term +"' ";
  510. }
  511. if(ageflag == "1"){
  512. vFilter += "and age < '"+ vSAge +"' ";
  513. }else if(ageflag == "2"){
  514. vFilter += "and age >= '"+ vSAge +"' ";
  515. }else if(ageflag == "3"){
  516. vFilter += "and age >= '"+ vSAge +"' and age <= '"+ vEAge +"' ";
  517. }
  518. grd_refrslt.nodeset = "/root/main/refrslt[" + vFilter +"]";
  519. vFilterCnt = model.getXPathValue('count(/root/main/refrslt[' + vFilter + ']) ');
  520. var total = model.getValue("/root/main/page/total"); //총 검사건수
  521. var per = Math.round(vFilterCnt / total * 100); //백분율
  522. model.setValue("/root/main/page/now", vFilterCnt + "(" + per + "%)"); //조회된 건수(백분율)
  523. output2.refresh();
  524. grd_refrslt.rebuild();
  525. }
  526. //나이 콤보 바꿀때 나이칸 보이는 것.
  527. function fAgeFlagChange() {
  528. var flag = model.getValue("/root/hidden/ref/ageflag");
  529. if(flag == "0") { //나이가 미선택인 경우 다 안 보임
  530. ipt_sage.visible = false;
  531. cpt_agemul.visible = false;
  532. ipt_eage.visible = false;
  533. } else if(flag == "3") { //나이가 사이인 경우 다 보임
  534. ipt_sage.visible = true;
  535. cpt_agemul.visible = true;
  536. ipt_eage.visible = true;
  537. } else { //그 외의 것은 input 하나만.
  538. ipt_sage.visible = true;
  539. cpt_agemul.visible = false;
  540. ipt_eage.visible = false;
  541. }
  542. model.refresh();
  543. }
  544. //결과 콤보 바꿀때 결과칸 보이는 것.
  545. function fRsltFlagChange() {
  546. var flag = model.getValue("/root/hidden/ref/rsltflag");
  547. if(flag == "0") { //결과가 미선택인 경우 다 안 보임
  548. ipt_srslt.visible = false;
  549. cpt_rsltmul.visible = false;
  550. ipt_erslt.visible = false;
  551. }else if(flag == "5" ) { //결과가 사이인 경우 다 보임
  552. ipt_srslt.visible = true;
  553. cpt_rsltmul.value = "~";
  554. cpt_rsltmul.visible = true;
  555. ipt_erslt.visible = true;
  556. }else if(flag == "4"){
  557. ipt_srslt.visible = true;
  558. cpt_rsltmul.value = ",";
  559. cpt_rsltmul.visible = true;
  560. ipt_erslt.visible = true;
  561. }else { //그 외의 것은 input 하나만.
  562. ipt_srslt.visible = true;
  563. cpt_rsltmul.visible = false;
  564. ipt_erslt.visible = false;
  565. }
  566. model.refresh();
  567. }
  568. ]]>
  569. </script>
  570. </xhtml:head>
  571. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  572. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  573. <group id="group1" style="left:0px; top:10px; width:1195px; height:55px; ">
  574. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:55px; "/>
  575. <button id="btn_ref" class="btn1_letter2" style="left:1123px; top:17px; width:56px; height:22px; ">
  576. <caption>조회</caption>
  577. <script type="javascript" ev:event="DOMActivate">
  578. <![CDATA[
  579. //fGetTransPidCnt();
  580. fGetBSTCount();
  581. ]]>
  582. </script>
  583. </button>
  584. <line id="line3" class="line_4" style="x1:1108px; y1:16px; x2:1108px; y2:38px; "/>
  585. <caption id="caption5" class="search_name" style="left:713px; top:9px; width:86px; height:17px; ">통계구분 :</caption>
  586. <input id="ipt_workfromdd" ref="/root/hidden/ref/fromdd" class="input_search" inputtype="date" format="yyyy-mm" style="left:473px; top:8px; width:75px; height:19px; "/>
  587. <input id="ipt_worktodd" ref="/root/hidden/ref/todd" class="input_search" visibility="hidden" inputtype="date" format="yyyy-mm" style="left:565px; top:8px; width:75px; height:19px; "/>
  588. <caption id="caption4" class="search_name" style="left:375px; top:9px; width:90px; height:17px; ">조회기간 :</caption>
  589. <caption id="caption9" class="search_no_b" visibility="hidden" style="left:550px; top:10px; width:13px; height:17px; ">~</caption>
  590. <select1 id="cmb_rtnabnflag" ref="/root/hidden/ref/gbn" appearance="minimal" style="left:808px; top:8px; width:102px; height:19px; ">
  591. <choices>
  592. <item>
  593. <label>시행부서별</label>
  594. <value>1</value>
  595. </item>
  596. <item>
  597. <label>진료과별</label>
  598. <value>2</value>
  599. </item>
  600. <item>
  601. <label>진료의사별</label>
  602. <value>3</value>
  603. </item>
  604. <item>
  605. <label>결과입력자별</label>
  606. <value>4</value>
  607. </item>
  608. </choices>
  609. </select1>
  610. <caption id="caption7" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
  611. <select1 id="radio1" ref="/root/hidden/ref/refflag" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:110px; top:9px; width:190px; height:20px; border-style:none; ">
  612. <choices>
  613. <item>
  614. <label>일별</label>
  615. <value>1</value>
  616. </item>
  617. <item>
  618. <label>월별</label>
  619. <value>2</value>
  620. </item>
  621. <item>
  622. <label>연별</label>
  623. <value>3</value>
  624. </item>
  625. </choices>
  626. <script type="javascript" ev:event="xforms-select">
  627. <![CDATA[
  628. // 조회구분 선택시
  629. var gbn = model.getValue("/root/hidden/ref/refflag");
  630. fSetRefflag(gbn);
  631. ]]>
  632. </script>
  633. </select1>
  634. <select1 id="combo6" ref="/root/hidden/iogbn" visibility="hidden" appearance="minimal" style="left:808px; top:32px; width:102px; height:19px; ">
  635. <choices>
  636. <item>
  637. <label>-전체-</label>
  638. <value>00</value>
  639. </item>
  640. <item>
  641. <label>외래</label>
  642. <value>O</value>
  643. </item>
  644. <item>
  645. <label>입원</label>
  646. <value>I</value>
  647. </item>
  648. </choices>
  649. </select1>
  650. <caption id="caption16" class="search_name" visibility="hidden" style="left:713px; top:33px; width:100px; height:17px; ">구분 :</caption>
  651. </group>
  652. <group id="group2" style="left:0px; top:10px; width:1195px; height:55px; ">
  653. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:55px; "/>
  654. <button id="button2" class="btn1_letter2" style="left:1123px; top:17px; width:56px; height:22px; ">
  655. <caption>조회</caption>
  656. <script type="javascript" ev:event="DOMActivate">
  657. <![CDATA[
  658. fGetRsltRef();
  659. ]]>
  660. </script>
  661. </button>
  662. <line id="line6" class="line_4" style="x1:1108px; y1:16px; x2:1108px; y2:38px; "/>
  663. <input id="ipt_hopesdd" ref="/root/hidden/ref/fromdd" class="input_search" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:128px; top:8px; width:85px; height:19px; "/>
  664. <input id="ipt_ustm" ref="/root/hidden/ref/fromtm" class="input_search" navindex="2" format="hh:nn" style="left:214px; top:8px; width:35px; height:19px; "/>
  665. <input id="ipt_hopeedd" ref="/root/hidden/ref/todd" class="input_search" navindex="3" inputtype="date" format="yyyy-mm-dd" style="left:268px; top:8px; width:85px; height:19px; "/>
  666. <input id="ipt_uetm" ref="/root/hidden/ref/totm" class="input_search" navindex="4" format="hh:nn" style="left:354px; top:8px; width:35px; height:19px; "/>
  667. <caption id="caption11" class="search_name" style="left:20px; top:9px; width:105px; height:17px; ">결과입력일 :</caption>
  668. <caption id="caption12" class="search_no_b" style="left:252px; top:8px; width:13px; height:17px; ">~</caption>
  669. <input id="ipt_srslt" ref="/root/hidden/ref/srslt" navindex="10" visibility="hidden" style="left:209px; top:32px; width:70px; height:19px; "/>
  670. <select1 id="cmd_rsltflag" ref="/root/hidden/ref/rsltflag" navindex="9" appearance="minimal" style="left:126px; top:32px; width:80px; height:19px; ">
  671. <choices>
  672. <item>
  673. <label>미선택</label>
  674. <value>0</value>
  675. </item>
  676. <item>
  677. <label>미만</label>
  678. <value>1</value>
  679. </item>
  680. <item>
  681. <label>이상</label>
  682. <value>2</value>
  683. </item>
  684. <item>
  685. <label>패턴</label>
  686. <value>3</value>
  687. </item>
  688. <item>
  689. <label>제외</label>
  690. <value>4</value>
  691. </item>
  692. <item>
  693. <label>사이</label>
  694. <value>5</value>
  695. </item>
  696. </choices>
  697. <script type="javascript" ev:event="xforms-value-changed">
  698. <![CDATA[
  699. fRsltFlagChange();
  700. ]]>
  701. </script>
  702. </select1>
  703. <input id="ipt_erslt" ref="/root/hidden/ref/erslt" navindex="11" visibility="hidden" style="left:298px; top:32px; width:70px; height:19px; "/>
  704. <caption id="cpt_rsltmul" class="search_no_b" visibility="hidden" style="left:282px; top:32px; width:13px; height:17px; ">~</caption>
  705. <caption id="caption2" class="search_name" style="left:20px; top:33px; width:100px; height:17px; ">결과 :</caption>
  706. <select1 id="cmd_ordtype" ref="/root/hidden/iogbn" navindex="12" visibility="visible" appearance="minimal" style="left:573px; top:32px; width:100px; height:19px; font-weight:normal; ">
  707. <choices>
  708. <item>
  709. <label>-전체-</label>
  710. <value>00</value>
  711. </item>
  712. <item>
  713. <label>외래</label>
  714. <value>O</value>
  715. </item>
  716. <item>
  717. <label>입원</label>
  718. <value>I</value>
  719. </item>
  720. </choices>
  721. </select1>
  722. <caption id="cap_ordtype" class="search_name" visibility="visible" style="left:485px; top:33px; width:80px; height:17px; ">구분 :</caption>
  723. <caption id="caption10" class="search_name" style="left:485px; top:9px; width:85px; height:17px; ">진료과 :</caption>
  724. <select1 id="combo1" ref="/root/hidden/ref/orddept" navindex="9" appearance="minimal" style="left:573px; top:8px; width:100px; height:19px; ">
  725. <choices>
  726. <itemset nodeset="/root/init/LB0002">
  727. <label ref="nm"/>
  728. <value ref="cd"/>
  729. </itemset>
  730. </choices>
  731. <script type="javascript" ev:event="xforms-value-changed">
  732. <![CDATA[
  733. fRsltFlagChange();
  734. ]]>
  735. </script>
  736. </select1>
  737. <caption id="caption13" class="search_name" visibility="hidden" style="left:775px; top:9px; width:109px; height:17px; ">결과보고자 :</caption>
  738. <select1 id="combo2" ref="/root/hidden/ref/rsltflag" navindex="9" visibility="hidden" appearance="minimal" style="left:893px; top:8px; width:100px; height:19px; ">
  739. <choices>
  740. <item>
  741. <label>미선택</label>
  742. <value>0</value>
  743. </item>
  744. <item>
  745. <label>미만</label>
  746. <value>1</value>
  747. </item>
  748. <item>
  749. <label>이상</label>
  750. <value>2</value>
  751. </item>
  752. <item>
  753. <label>패턴</label>
  754. <value>3</value>
  755. </item>
  756. <item>
  757. <label>제외</label>
  758. <value>4</value>
  759. </item>
  760. <item>
  761. <label>사이</label>
  762. <value>5</value>
  763. </item>
  764. </choices>
  765. <script type="javascript" ev:event="xforms-value-changed">
  766. <![CDATA[
  767. fRsltFlagChange();
  768. ]]>
  769. </script>
  770. </select1>
  771. </group>
  772. <switch id="switch1" style="left:0px; top:95px; width:1195px; height:645px; ">
  773. <case id="case0">
  774. <caption id="caption32" class="tit_2" style="left:10px; top:5px; width:131px; height:14px; ">일별 BST 통계</caption>
  775. <line id="line19" class="line_1" style="x1:5px; y1:20px; x2:1188px; y2:20px; "/>
  776. <datagrid id="grd_days" nodeset="/root/main/getBSTCountDD/rowdata" caption="^total^1일^2일^3일^4일^5일^6일^7일^8일^9일^10일^11일^12일^13일^14일^15일^16일^17일^18일^19일^20일^21일^22일^23일^24일^25일^26일^27일^28일^29일^30일^31일" colsep="^" colwidth="100, 50, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="bycol" style="left:5px; top:25px; width:1183px; height:605px; text-align:center; ">
  777. <col ref="nm" style="text-align:left; "/>
  778. <col ref="ahap" format="#,###" style="font-weight:bold; "/>
  779. <col ref="a01" format="#,###" style="text-align:center; "/>
  780. <col ref="a02" format="#,###" style="text-align:center; "/>
  781. <col ref="a03" format="#,###" style="text-align:center; "/>
  782. <col ref="a04" format="#,###" style="text-align:center; "/>
  783. <col ref="a05" format="#,###" style="text-align:center; "/>
  784. <col ref="a06" format="#,###" style="text-align:center; "/>
  785. <col ref="a07" format="#,###" style="text-align:center; "/>
  786. <col ref="a08" format="#,###" style="text-align:center; "/>
  787. <col ref="a09" format="#,###" style="text-align:center; "/>
  788. <col ref="a10" format="#,###" style="text-align:center; "/>
  789. <col ref="a11" format="#,###" style="text-align:center; "/>
  790. <col ref="a12" format="#,###" style="text-align:center; "/>
  791. <col ref="a13" format="#,###" style="text-align:center; "/>
  792. <col ref="a14" format="#,###" style="text-align:center; "/>
  793. <col ref="a15" format="#,###" style="text-align:center; "/>
  794. <col ref="a16" format="#,###" style="text-align:center; "/>
  795. <col ref="a17" format="#,###" style="text-align:center; "/>
  796. <col ref="a18" format="#,###" style="text-align:center; "/>
  797. <col ref="a19" format="#,###" style="text-align:center; "/>
  798. <col ref="a20" format="#,###" style="text-align:center; "/>
  799. <col ref="a21" format="#,###" style="text-align:center; "/>
  800. <col ref="a22" format="#,###" style="text-align:center; "/>
  801. <col ref="a23" format="#,###" style="text-align:center; "/>
  802. <col ref="a24" format="#,###" style="text-align:center; "/>
  803. <col ref="a25" format="#,###" style="text-align:center; "/>
  804. <col ref="a26" format="#,###" style="text-align:center; "/>
  805. <col ref="a27" format="#,###" style="text-align:center; "/>
  806. <col ref="a28" format="#,###" style="text-align:center; "/>
  807. <col ref="a29" format="#,###" style="text-align:center; "/>
  808. <col ref="a30" format="#,###" style="text-align:center; "/>
  809. <col ref="a31" format="#,###" style="text-align:center; "/>
  810. </datagrid>
  811. </case>
  812. <case id="case1">
  813. <caption id="caption1" class="tit_2" style="left:10px; top:5px; width:131px; height:14px; ">월별 BST 통계</caption>
  814. <line id="line1" class="line_1" style="x1:5px; y1:20px; x2:1188px; y2:20px; "/>
  815. <datagrid id="grd_month" nodeset="/root/main/getBSTCountMM/rowdata" caption="^Total^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월" colsep="^" colwidth="120, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:25px; width:1183px; height:605px; ">
  816. <col ref="nm" style="text-align:center; "/>
  817. <col ref="ahap" format="#,###" style="font-weight:bold; text-align:right; "/>
  818. <col ref="a01" format="#,###" style="text-align:right; "/>
  819. <col ref="a02" format="#,###" style="text-align:right; "/>
  820. <col ref="a03" format="#,###" style="text-align:right; "/>
  821. <col ref="a04" format="#,###" style="text-align:right; "/>
  822. <col ref="a05" format="#,###" style="text-align:right; "/>
  823. <col ref="a06" format="#,###" style="text-align:right; "/>
  824. <col ref="a07" format="#,###" style="text-align:right; "/>
  825. <col ref="a08" format="#,###" style="text-align:right; "/>
  826. <col ref="a09" format="#,###" style="text-align:right; "/>
  827. <col ref="a10" format="#,###" style="text-align:right; "/>
  828. <col ref="a11" format="#,###" style="text-align:right; "/>
  829. <col ref="a12" format="#,###" style="text-align:right; "/>
  830. </datagrid>
  831. </case>
  832. <case id="case2">
  833. <caption id="caption3" class="tit_2" style="left:10px; top:5px; width:131px; height:14px; ">연별 BST 통계</caption>
  834. <line id="line4" class="line_1" style="x1:5px; y1:20px; x2:1188px; y2:20px; "/>
  835. <datagrid id="grd_year" nodeset="/root/main/getBSTCountYY/rowdata" caption="^^^^^^^^^^^Total" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:20px; width:1183px; height:605px; ">
  836. <col ref="nm" style="text-align:center; "/>
  837. <col ref="a01" format="#,###" style="text-align:right; "/>
  838. <col ref="a02" format="#,###" style="text-align:right; "/>
  839. <col ref="a03" format="#,###" style="text-align:right; "/>
  840. <col ref="a04" format="#,###" style="text-align:right; "/>
  841. <col ref="a05" format="#,###" style="text-align:right; "/>
  842. <col ref="a06" format="#,###" style="text-align:right; "/>
  843. <col ref="a07" format="#,###" style="text-align:right; "/>
  844. <col ref="a08" format="#,###" style="text-align:right; "/>
  845. <col ref="a09" format="#,###" style="text-align:right; "/>
  846. <col ref="a10" format="#,###" style="text-align:right; "/>
  847. <col ref="ahap" format="#,###" style="font-weight:bold; text-align:right; "/>
  848. </datagrid>
  849. </case>
  850. <case id="case_rslt" selected="true">
  851. <button id="button3" class="btn2_letter4" style="left:971px; top:20px; width:64px; height:19px; ">
  852. <caption>필터조회</caption>
  853. <script type="javascript" ev:event="DOMActivate">
  854. <![CDATA[
  855. fGetFilter();
  856. ]]>
  857. </script>
  858. </button>
  859. <select1 id="cmb_ageflag" ref="/root/hidden/ref/ageflag" appearance="minimal" style="left:679px; top:0px; width:80px; height:19px; ">
  860. <choices>
  861. <item>
  862. <label>미선택</label>
  863. <value>0</value>
  864. </item>
  865. <item>
  866. <label>미만</label>
  867. <value>1</value>
  868. </item>
  869. <item>
  870. <label>이상</label>
  871. <value>2</value>
  872. </item>
  873. <item>
  874. <label>사이</label>
  875. <value>3</value>
  876. </item>
  877. </choices>
  878. <script type="javascript" ev:event="xforms-value-changed">
  879. <![CDATA[
  880. fAgeFlagChange();
  881. ]]>
  882. </script>
  883. </select1>
  884. <select1 id="combo3" ref="/root/hidden/ref/sex" appearance="minimal" style="left:621px; top:20px; width:60px; height:19px; ">
  885. <choices>
  886. <item>
  887. <label>-전체-</label>
  888. <value>0</value>
  889. </item>
  890. <item>
  891. <label>M</label>
  892. <value>1</value>
  893. </item>
  894. <item>
  895. <label>F</label>
  896. <value>2</value>
  897. </item>
  898. </choices>
  899. </select1>
  900. <select1 id="combo4" ref="/root/hidden/ref/dept" appearance="minimal" style="left:701px; top:20px; width:58px; height:19px; ">
  901. <choices>
  902. <itemset nodeset="/root/hidden/list/dept">
  903. <label ref="nm"/>
  904. <value ref="val"/>
  905. </itemset>
  906. </choices>
  907. </select1>
  908. <input id="ipt_eage" ref="/root/hidden/ref/eage" visibility="hidden" style="left:845px; top:0px; width:70px; height:19px; "/>
  909. <select1 id="combo5" ref="/root/hidden/ref/term" appearance="minimal" style="left:760px; top:20px; width:210px; height:19px; ">
  910. <choices>
  911. <itemset nodeset="/root/hidden/list2/term">
  912. <label ref="nm"/>
  913. <value ref="val"/>
  914. </itemset>
  915. </choices>
  916. </select1>
  917. <input id="ipt_sage" ref="/root/hidden/ref/sage" visibility="hidden" style="left:760px; top:0px; width:70px; height:19px; "/>
  918. <caption id="caption14" class="tit_2" style="left:5px; top:10px; width:134px; height:13px; ">결과 조회</caption>
  919. <caption id="caption15" class="hand" style="left:616px; top:2px; width:60px; height:13px; ">나이 :</caption>
  920. <line id="line8" class="line_1" style="x1:0px; y1:37px; x2:1184px; y2:37px; "/>
  921. <caption id="cpt_agemul" class="search_no_b" visibility="hidden" style="left:831px; top:0px; width:13px; height:17px; ">~</caption>
  922. <datagrid id="grd_refrslt" nodeset="/root/main/refrslt" caption="검사일^검사항목^검체명^등록번호^성명^성별^나이^진료부서^상병명^검사결과^결과통보자" colsep="^" colwidth="120, 200, 120, 80, 80, 40, 40, 60, 210, 120, 70" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:41px; width:1184px; height:591px; ">
  923. <col ref="lastreptdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  924. <col ref="tclsscrnnm"/>
  925. <col disabled="true" ref="spccd" type="combo">
  926. <choices>
  927. <itemset nodeset="/root/init/LB0105">
  928. <label ref="nm"/>
  929. <value ref="cd"/>
  930. </itemset>
  931. </choices>
  932. </col>
  933. <col ref="pid"/>
  934. <col ref="hngnm"/>
  935. <col ref="sex"/>
  936. <col ref="age"/>
  937. <col ref="deptengabbr" style="text-align:center; "/>
  938. <col ref="termhngnm"/>
  939. <col ref="reptrslt"/>
  940. <col ref="usernm"/>
  941. </datagrid>
  942. </case>
  943. </switch>
  944. <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:73px; width:42px; height:19px; ">
  945. <caption>엑셀</caption>
  946. <script type="javascript" ev:event="DOMActivate">
  947. <![CDATA[
  948. fSaveExcel();
  949. ]]>
  950. </script>
  951. </button>
  952. <button id="btn_dd" class="btn_sw" group="tab" selected="true" style="left:0px; top:74px; width:70px; height:22px; ">
  953. <caption>일별</caption>
  954. <script type="javascript" ev:event="DOMActivate">
  955. <![CDATA[
  956. fSetRefflag(1);
  957. ]]>
  958. </script>
  959. </button>
  960. <button id="btn_mm" class="btn_sw" group="tab" selected="true" style="left:70px; top:74px; width:70px; height:22px; ">
  961. <caption>월별</caption>
  962. <script type="javascript" ev:event="DOMActivate">
  963. <![CDATA[
  964. fSetRefflag(2);
  965. ]]>
  966. </script>
  967. </button>
  968. <button id="btn_yy" class="btn_sw" group="tab" selected="true" style="left:140px; top:74px; width:70px; height:22px; ">
  969. <caption>연별</caption>
  970. <script type="javascript" ev:event="DOMActivate">
  971. <![CDATA[
  972. fSetRefflag(3);
  973. //연별캡션 변경
  974. //fYearCaption();
  975. ]]>
  976. </script>
  977. </button>
  978. <button id="button1" class="btn_sw" group="tab" selected="true" style="left:210px; top:74px; width:70px; height:22px; ">
  979. <caption>결과조회</caption>
  980. <script type="javascript" ev:event="DOMActivate">
  981. <![CDATA[
  982. fSetRefflag(4);
  983. ]]>
  984. </script>
  985. </button>
  986. </group>
  987. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  988. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  989. <caption>초기화</caption>
  990. <script type="javascript" ev:event="DOMActivate">
  991. <![CDATA[
  992. fSetInit();
  993. ]]>
  994. </script>
  995. </button>
  996. <line id="line5" class="line_2" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  997. <output id="output1" ref="/root/main/page/total" visibility="hidden" style="left:510px; top:5px; width:100px; height:20px; "/>
  998. <output id="output3" ref="/root/main/page/now" visibility="hidden" style="left:620px; top:5px; width:100px; height:20px; "/>
  999. </group>
  1000. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  1001. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">외래 BST 통계</caption>
  1002. </group>
  1003. <output id="output26" ref="/root/hidden/getTotalCount/totaltestcnt" class="output_fix" visibility="visible" format="#,###" style="left:210px; top:17px; width:65px; height:19px; "/>
  1004. <caption id="caption8" class="cell_1" visibility="visible" style="left:279px; top:16px; width:80px; height:23px; vertical-align:middle; ">총환자수</caption>
  1005. <output id="output2" ref="/root/hidden/getTotalCount/totalpatcnt" class="output_fix" visibility="visible" style="left:362px; top:17px; width:65px; height:19px; "/>
  1006. <line id="line7" class="line_1" visibility="visible" style="x1:127px; y1:11px; x2:428px; y2:11px; "/>
  1007. <caption id="caption101" class="cell_1" visibility="visible" style="left:127px; top:16px; width:80px; height:23px; vertical-align:middle; ">총검사건수</caption>
  1008. <line id="line2" class="line_3" visibility="visible" style="x1:127px; y1:38px; x2:428px; y2:38px; "/>
  1009. </xhtml:body>
  1010. </xhtml:html>