SMLLS01400_분자유전검사통계.xrw 68 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLS01400_분자유전 검사통계.xrw
  4. * 설 명 : 분자유전 검사통계
  5. * 설 계 자 : (주)에이씨케이 - 손수영
  6. * 작 성 자 : (주)에이씨케이 -
  7. * 작 성 일 : 2008.04.15
  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>분자유전 검사통계</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <days>
  20. <rowdata>
  21. <seq/>
  22. <tnm/>
  23. <testcd/>
  24. <flagnm/>
  25. <a01/>
  26. <a02/>
  27. <a03/>
  28. <a04/>
  29. <a05/>
  30. <a06/>
  31. <a07/>
  32. <a08/>
  33. <a09/>
  34. <a10/>
  35. <a11/>
  36. <a12/>
  37. <a13/>
  38. <a14/>
  39. <a15/>
  40. <a16/>
  41. <a17/>
  42. <a18/>
  43. <a19/>
  44. <a20/>
  45. <a21/>
  46. <a22/>
  47. <a23/>
  48. <a24/>
  49. <a25/>
  50. <a26/>
  51. <a27/>
  52. <a28/>
  53. <a29/>
  54. <a30/>
  55. <a31/>
  56. <ahap/>
  57. </rowdata>
  58. </days>
  59. <month>
  60. <rowdata>
  61. <seq/>
  62. <tnm/>
  63. <testcd/>
  64. <flagnm/>
  65. <a01/>
  66. <a02/>
  67. <a03/>
  68. <a04/>
  69. <a05/>
  70. <a06/>
  71. <a07/>
  72. <a08/>
  73. <a09/>
  74. <a10/>
  75. <a11/>
  76. <a12/>
  77. <ahap/>
  78. </rowdata>
  79. </month>
  80. <quarter>
  81. <rowdata>
  82. <seq/>
  83. <tnm/>
  84. <testcd/>
  85. <flagnm/>
  86. <a01/>
  87. <a02/>
  88. <a03/>
  89. <a04/>
  90. <ahap/>
  91. </rowdata>
  92. </quarter>
  93. <year>
  94. <rowdata>
  95. <seq/>
  96. <tnm/>
  97. <testcd/>
  98. <flagnm/>
  99. <a01/>
  100. <a02/>
  101. <a03/>
  102. <a04/>
  103. <a05/>
  104. <a06/>
  105. <a07/>
  106. <a08/>
  107. <a09/>
  108. <a10/>
  109. <ahap/>
  110. </rowdata>
  111. </year>
  112. <setup>
  113. <tclscdlist>
  114. <chk/>
  115. <tclscd/>
  116. <spccd/>
  117. <tclsnm/>
  118. <tclskind/>
  119. <instcd/>
  120. </tclscdlist>
  121. <testlist>
  122. <testcd/>
  123. <tnm/>
  124. <seq/>
  125. </testlist>
  126. <subformat>
  127. <testcd/>
  128. <flagnm/>
  129. <flaggbn/>
  130. <flagval/>
  131. <stepseq/>
  132. <dispseq/>
  133. </subformat>
  134. </setup>
  135. <testcd/>
  136. </main>
  137. <send>
  138. <maincode>LSP02</maincode>
  139. <subcode>LSP03</subcode>
  140. <rexcode>LSP01</rexcode>
  141. <seq/>
  142. <fromdd/>
  143. <fromdy/>
  144. <todd/>
  145. <daygbn/>
  146. <gbn/>
  147. <flag/>
  148. <year1/>
  149. <year2/>
  150. <year3/>
  151. <year4/>
  152. <year5/>
  153. <year6/>
  154. <year7/>
  155. <year8/>
  156. <year9/>
  157. <year10/>
  158. <refgbn/>
  159. <refcont/>
  160. <deptflag/>
  161. <tlist/>
  162. <flaglist/>
  163. <spcflag/>
  164. <spclist/>
  165. </send>
  166. <init>
  167. <spc>
  168. </spc>
  169. </init>
  170. <hidden>
  171. <setupcode>
  172. <maincode>LSP02</maincode>
  173. <subcode>LSP03</subcode>
  174. <rexcode>LSP01</rexcode>
  175. </setupcode>
  176. <ref>
  177. <fromdd/>
  178. <todd/>
  179. <gbn>1</gbn>
  180. <flag/>
  181. <yy/>
  182. <daygbn>1</daygbn>
  183. </ref>
  184. <search>
  185. <searchgbn>2</searchgbn>
  186. <searchtext/>
  187. </search>
  188. <report>
  189. <month/>
  190. <quarter/>
  191. <year/>
  192. </report>
  193. <flaglist>
  194. <flag>
  195. <cd>1</cd>
  196. <nm>같다</nm>
  197. </flag>
  198. <flag>
  199. <cd>2</cd>
  200. <nm>포함</nm>
  201. </flag>
  202. <flag>
  203. <cd>3</cd>
  204. <nm>크다</nm>
  205. </flag>
  206. <flag>
  207. <cd>4</cd>
  208. <nm>크거나같다</nm>
  209. </flag>
  210. <flag>
  211. <cd>5</cd>
  212. <nm>작다</nm>
  213. </flag>
  214. <flag>
  215. <cd>6</cd>
  216. <nm>작거나같다</nm>
  217. </flag>
  218. </flaglist>
  219. <testcd/>
  220. <grdview>
  221. <etc>1</etc>
  222. <per>1</per>
  223. <incre>1</incre>
  224. <errflag/>
  225. </grdview>
  226. <spc>
  227. <spcflag>0</spcflag>
  228. <searchgbn>nm</searchgbn>
  229. <searchval/>
  230. <spclist/>
  231. <spccd/>
  232. <spccnt>0</spccnt>
  233. </spc>
  234. <tcls>
  235. <tclsflag>0</tclsflag>
  236. <searchgbn>nm</searchgbn>
  237. <searchval/>
  238. <tclslist/>
  239. <tclscd/>
  240. <tclscnt>0</tclscnt>
  241. </tcls>
  242. <compargbn>2</compargbn>
  243. </hidden>
  244. </root>
  245. </instance>
  246. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  247. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  248. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  249. <script type="javascript" ev:event="xforms-ready">
  250. <![CDATA[
  251. fSetInit();
  252. ]]>
  253. </script>
  254. <submission id="TRLLS00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/spc/"/>
  255. <submission id="TRLLS01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/days/"/>
  256. <submission id="TRLLS01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/month/"/>
  257. <submission id="TRLLS01403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  258. <submission id="TRLLS01404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/year/"/>
  259. <submission id="TRLLS01405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/setup/"/>
  260. <submission id="TRLLS01406" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/setup/"/>
  261. <submission id="TRLLF00607" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/setup/"/>
  262. <submission id="TXLLS01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/msg//"/>
  263. </model>
  264. <script type="javascript">
  265. <![CDATA[
  266. //초기화
  267. function fSetInit(){
  268. model.setValue("/root/hidden/ref/fromdd", getCurrentDate());
  269. model.setValue("/root/hidden/ref/todd" , getCurrentDate());
  270. model.removeNodeset("/root/main/days/rowdata");
  271. model.removeNodeset("/root/main/month/rowdata");
  272. model.removeNodeset("/root/main/quarter/rowdata");
  273. model.removeNodeset("/root/main/year/rowdata");
  274. model.removeNodeset("/root/main/setup/*");
  275. model.removeNodeset("/root/init/spc/cdlist");
  276. model.setValue("/root/send/gbn", "Spc");
  277. submit("TRLLS00001");
  278. model.setValue("/root/send/flag", "999"); // 0=일별, 1=월별, 2=분기별, 3=연별, 999 = 항목조회
  279. TRLLS01403.attribute("resultref") = "/root/main/testcd/rowdata";
  280. submit("TRLLS01403"); // submit을 추가하기 보다 가장 컬럼이 간단한 TRLLS01403을 활용하여 처리
  281. fGetSetup();
  282. model.setValue("/root/hidden/ref/gbn", "1"); //1=전체, 2= 입원, 3=외래
  283. btn_0.selected = true;
  284. btn_1.selected = false;
  285. btn_2.selected = false;
  286. btn_3.selected = false;
  287. model.setValue("/root/hidden/ref/flag", "0"); // 0=일별 1=월별 2=분기별 3=연별
  288. model.toggle("case0");
  289. model.refresh();
  290. grd_days.mergeCol(2) = false;
  291. grd_month.mergeCol(2) = false;
  292. grd_quarter.mergeCol(2) = false;
  293. grd_year.mergeCol(2) = false;
  294. }
  295. //설정 내용 조회
  296. function fGetSetup(){
  297. model.removeNodeset("/root/main/setup/testlist");
  298. model.removeNodeset("/root/main/setup/subformat");
  299. submit("TRLLS01405");
  300. }
  301. //설정 내용 저장
  302. function fSetTestFlagList(){
  303. var tmpStr = grd_flag.nodeset;
  304. model.setValue("/root/send/tlist", grd_tlist.getUpdateDataAll("i"));
  305. grd_flag.nodeset = "/root/main/setup/subformat";
  306. model.setValue("/root/send/flaglist", grd_flag.getUpdateDataAll("i"));
  307. submit("TXLLS01401");
  308. grd_flag.nodeset = tmpStr;
  309. model.setValue("/root/send/flag", "999"); // 0=일별, 1=월별, 2=분기별, 3=연별, 999 = 항목조회
  310. TRLLS01403.attribute("resultref") = "/root/main/testcd/rowdata";
  311. submit("TRLLS01403"); // submit을 추가하기 보다 가장 컬럼이 간단한 TRLLS01403을 활용하여 처리
  312. }
  313. // 통계 조회
  314. function fGetTestStsCnt(){
  315. if(model.getValue("/root/hidden/spc/spcflag") == "1" && model.getValue("/root/hidden/spc/spccd") == ""){
  316. alert("검체를 선택하지 않았습니다\n\n전체조회로 하시거나, 검체를 선택하여 주십시요");
  317. return;
  318. }
  319. if(model.getValue("/root/hidden/tcls/tclsflag") == "1" && model.getValue("/root/hidden/tcls/tclscd") == ""){
  320. alert("검사를 선택하지 않았습니다\n\n전체조회로 하시거나, 검사를 선택하여 주십시요");
  321. return;
  322. }
  323. var testcdCnt = model.getXPathValue("count(/root/main/testcd/rowdata)");
  324. if(model.getValue("/root/hidden/tcls/tclsflag") == "1"){
  325. testcdCnt = cap_tclscnt.value;
  326. var arrtclscd = (chk_cdlist2.value).split("▦");
  327. }
  328. if(testcdCnt == "0") return;
  329. var submitID = ""; // submitID를 위한 변수
  330. model.setValue("/root/send/daygbn", model.getValue("/root/hidden/ref/daygbn")); // 1=보고일 기준, 2= 접수일 기준
  331. model.setValue("/root/send/fromdd", model.getValue("/root/hidden/ref/fromdd"));
  332. model.setValue("/root/send/fromdy", model.getValue("/root/hidden/ref/fromdd").substr(0,4));
  333. model.setValue("/root/send/todd", model.getValue("/root/hidden/ref/todd"));
  334. model.setValue("/root/send/gbn", model.getValue("/root/hidden/ref/gbn")); // 1=전체, 2= 입원, 3=외래
  335. model.setValue("/root/send/flag", model.getValue("/root/hidden/ref/flag")); // 0=일별, 1=월별, 2=분기별, 3=연별
  336. model.setValue("/root/send/spcflag", model.getValue("/root/hidden/spc/spcflag"));
  337. model.setValue("/root/send/spclist", model.getValue("/root/hidden/spc/spccd"));
  338. // 조건에 맞도록 submit의 resultref의 변경
  339. if(model.getValue("/root/hidden/ref/flag") == "0"){
  340. model.removeNodeset("/root/main/days/rowdata");
  341. submitID = "TRLLS01401";
  342. }
  343. if(model.getValue("/root/hidden/ref/flag") == "1"){
  344. model.removeNodeset("/root/main/month/rowdata");
  345. submitID = "TRLLS01402";
  346. }
  347. if(model.getValue("/root/hidden/ref/flag") == "2"){
  348. model.removeNodeset("/root/main/quarter/rowdata");
  349. TRLLS01403.attribute("resultref") = "/root/main/quarter/";
  350. submitID = "TRLLS01403";
  351. }
  352. if(model.getValue("/root/hidden/ref/flag") == "3"){
  353. model.removeNodeset("/root/main/year/rowdata");
  354. fYearCaption();
  355. submitID = "TRLLS01404";
  356. }
  357. cap_stat.value = "0/" + testcdCnt;
  358. for(i = 1; i <= testcdCnt; i++){
  359. model.setValue("/root/send/seq", i);
  360. if(model.getValue("/root/hidden/tcls/tclsflag") == "1"){
  361. model.setValue("/root/send/refcont", arrtclscd[i - 1]);
  362. }
  363. else model.setValue("/root/send/refcont", model.getValue("/root/main/testcd/rowdata["+i+"]/testcd"));
  364. submit(submitID);
  365. cap_stat.value = i + "/" + testcdCnt;
  366. }
  367. }
  368. //상세 내역 조회
  369. function fGetDetailList(){
  370. if(model.getValue("/root/hidden/spc/spcflag") == "1" && model.getValue("/root/hidden/spc/spccd") == ""){
  371. alert("검체를 선택하지 않았습니다\n\n전체조회로 하시거나, 검체를 선택하여 주십시요");
  372. return;
  373. }
  374. var d = grd_days.textmatrix(0, grd_days.col).replace("일","");
  375. if(parseInt(d) < 10) d = "0" + d;
  376. model.removeNodeset("/root/main/setup/detaillist");
  377. model.setValue("/root/send/daygbn", model.getValue("/root/hidden/ref/daygbn")); // 1=보고일 기준, 2= 접수일 기준
  378. model.setValue("/root/send/fromdd", model.getValue("/root/hidden/ref/fromdd").substr(0, 6) + d);
  379. model.setValue("/root/send/gbn", model.getValue("/root/hidden/ref/gbn")); // 1=전체, 2= 입원, 3=외래
  380. model.setValue("/root/send/refcont", grd_days.textmatrix(grd_days.row, 2));
  381. model.setValue("/root/send/spcflag", model.getValue("/root/hidden/spc/spcflag"));
  382. model.setValue("/root/send/spclist", model.getValue("/root/hidden/spc/spccd"));
  383. submit("TRLLS01406");
  384. cap_detail.value = grd_days.textmatrix(grd_days.row, 1) + " 검사 " + d + "일 상세 조회" ;
  385. switch3.visible = true;
  386. grd_detail.resizeCells();
  387. }
  388. // 엑셀저장
  389. function fSaveExcel(){
  390. var filename = window.fileDialog("save", ",", false, "Excel", "xls", "All Files(*.*)|*.*|Excel File(*.xls)|*.xls");
  391. if(model.getValue("/root/hidden/ref/flag")=="0"){//일별
  392. if(filename != "") {
  393. grd_days.saveExcel(filename);
  394. }
  395. }else if(model.getValue("/root/hidden/ref/flag")=="1"){//월별
  396. if(filename != "") {
  397. grd_month.saveExcel(filename);
  398. }
  399. }else if(model.getValue("/root/hidden/ref/flag")=="2"){//분기별
  400. if(filename != "") {
  401. grd_quarter.saveExcel(filename);
  402. }
  403. }else if(model.getValue("/root/hidden/ref/flag")=="3"){//연별
  404. if(filename != "") {
  405. grd_year.saveExcel(filename);
  406. }
  407. }
  408. }
  409. // 연별 캡션 변경
  410. function fYearCaption(){
  411. var fromyy = parseInt(model.getValue("/root/hidden/ref/fromdd").substr(0,4));
  412. var toyy = parseInt(model.getValue("/root/hidden/ref/todd").substr(0,4));
  413. var newCap = "No^검사명^검사코드^구분";
  414. var newCap2 = "|No^검사명^검사코드^구분^건수^%^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%";
  415. var cnt = "0";
  416. var yearval = 0;
  417. if(toyy - fromyy < 0){
  418. alert("종료일이 시작일보다 작습니다");
  419. toyy = fromyy;
  420. }
  421. if(toyy - fromyy >= 10){
  422. alert("조회는 10년까지만 제공합니다");
  423. toyy = fromyy + 10;
  424. }
  425. newCap += "^ " + fromyy + "년^ " + fromyy + "년";
  426. model.setValue("/root/send/year1", fromyy);
  427. for(i=1; i<10; i++){
  428. yearval = fromyy + i;
  429. if(yearval <= toyy){
  430. newCap += "^ " + yearval + "년" + "^ " + yearval + "년" + "^ " + yearval + "년";
  431. grd_year.colHidden((i*3)+3) = false;
  432. if(chk_per.value == "1") grd_year.colHidden((i*3)+4) = false;
  433. else grd_year.colHidden((i*3)+4) = true;
  434. if(chk_incre.value == "1") grd_year.colHidden((i*3)+5) = false;
  435. else grd_year.colHidden((i*3)+5) = true;
  436. model.setValue("/root/send/year" + (i + 1), yearval);
  437. }
  438. else{
  439. newCap += "^^^";
  440. grd_year.colHidden((i*3)+3) = true;
  441. grd_year.colHidden((i*3)+4) = true;
  442. grd_year.colHidden((i*3)+5) = true;
  443. model.setValue("/root/send/year" + (i + 1), "");
  444. }
  445. }
  446. grd_year.caption = newCap + "^Total^Total" + newCap2;
  447. }
  448. function fGetHospTclscd(){
  449. model.setValue("/root/send/refgbn", model.getValue("/root/hidden/search/searchgbn"));
  450. model.setValue("/root/send/refcont", model.getValue("/root/hidden/search/searchtext"));
  451. model.setValue("/root/send/deptflag", "L");
  452. model.removeNodeset("/root/main/setup/tclscdlist");
  453. submit("TRLLF00607");
  454. }
  455. function fSetFlagGrid(){
  456. if(grd_tlist.row < 1){
  457. grd_flag.nodeset = "/root/main/setup/subformat[testcd='']";
  458. cap_flag_list.value = "대상 검사를 선택하여 주십시요";
  459. model.setValue("/root/hidden/testcd", "");
  460. }
  461. else{
  462. grd_flag.nodeset = "/root/main/setup/subformat[testcd='"+model.getValue("/root/main/setup/testlist["+grd_tlist.row+"]/testcd")+"']";
  463. cap_flag_list.value = model.getValue("/root/main/setup/testlist["+grd_tlist.row+"]/tnm");
  464. model.setValue("/root/hidden/testcd", model.getValue("/root/main/setup/testlist["+grd_tlist.row+"]/testcd"));
  465. grd_flag.rebuild();
  466. }
  467. }
  468. function fCloseSetup(){
  469. switch2.visible = false;
  470. switch3.visible = false;
  471. btn_open_setup.visible = true;
  472. btn_close_setup.visible = false;
  473. btn_save_setup.visible = false;
  474. btn_get_setup.visible = false;
  475. btn_close_setup.selected = true;
  476. }
  477. ]]>
  478. </script>
  479. </xhtml:head>
  480. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  481. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:740px; ">
  482. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
  483. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:35px; "/>
  484. <button id="btn_ref" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  485. <caption>조회</caption>
  486. <script type="javascript" ev:event="DOMActivate">
  487. <![CDATA[
  488. fCloseSetup();
  489. fGetTestStsCnt();
  490. ]]>
  491. </script>
  492. </button>
  493. <line id="line3" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:29px; "/>
  494. <caption id="caption5" class="search_name" style="left:568px; top:9px; width:67px; height:17px; ">구분 :</caption>
  495. <input id="ipt_workfromdd" ref="/root/hidden/ref/fromdd" class="input_search" inputtype="date" format="yyyy-mm" validateformat="true" style="left:188px; top:8px; width:67px; height:19px; "/>
  496. <input id="ipt_worktodd" ref="/root/hidden/ref/todd" class="input_search" visibility="hidden" inputtype="date" format="yyyy-mm" validateformat="true" style="left:268px; top:8px; width:67px; height:19px; "/>
  497. <caption id="caption4" class="search_name" style="left:10px; top:9px; width:110px; height:17px; ">통계 희망일 :</caption>
  498. <caption id="caption9" class="search_no_b" visibility="hidden" style="left:255px; top:10px; width:13px; height:17px; ">~</caption>
  499. <select1 id="cmb_rtnabnflag" ref="/root/hidden/ref/gbn" appearance="minimal" style="left:638px; top:8px; width:102px; height:19px; ">
  500. <choices>
  501. <item>
  502. <label>전체</label>
  503. <value>1</value>
  504. </item>
  505. <item>
  506. <label>입원환자</label>
  507. <value>2</value>
  508. </item>
  509. <item>
  510. <label>외래환자</label>
  511. <value>3</value>
  512. </item>
  513. <item>
  514. <label>중환자실</label>
  515. <value>4</value>
  516. </item>
  517. </choices>
  518. </select1>
  519. <button id="btn_spc" class="btn2_letter5" style="left:910px; top:8px; width:75px; height:19px; ">
  520. <caption>검체선택</caption>
  521. <script type="javascript" ev:event="DOMActivate">
  522. <![CDATA[
  523. model.toggle("case_spc");
  524. switch2.visible = true;
  525. btn_open_setup.visible = false;
  526. btn_close_setup.visible = true;
  527. ]]>
  528. </script>
  529. </button>
  530. <button id="button2" class="btn2_letter5" style="left:1010px; top:8px; width:75px; height:19px; ">
  531. <caption>상세조회</caption>
  532. <script type="javascript" ev:event="DOMActivate">
  533. <![CDATA[
  534. if(model.getValue("/root/hidden/ref/flag") == "0"){
  535. if(grd_days.col > grd_days.fixedCols && grd_days.col < grd_days.cols - 1 ){
  536. fCloseSetup();
  537. fGetDetailList();
  538. }
  539. else alert("날을 지정하여 주십시요");
  540. }
  541. else alert("상세조회는 일별 화면에서만 가능합니다.");
  542. ]]>
  543. </script>
  544. </button>
  545. <select1 id="cmb_daygbn" ref="/root/hidden/ref/daygbn" appearance="minimal" style="left:115px; top:8px; width:65px; height:19px; ">
  546. <choices>
  547. <item>
  548. <label>보고일</label>
  549. <value>1</value>
  550. </item>
  551. <item>
  552. <label>접수일</label>
  553. <value>2</value>
  554. </item>
  555. </choices>
  556. </select1>
  557. <select1 id="rdo_compar" ref="/root/hidden/compargbn" visibility="hidden" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:405px; top:10px; width:140px; height:20px; border-style:none; ">
  558. <choices>
  559. <item>
  560. <label>전월,전분기</label>
  561. <value>1</value>
  562. </item>
  563. <item>
  564. <label>전년</label>
  565. <value>2</value>
  566. </item>
  567. </choices>
  568. </select1>
  569. <caption id="cap_compar" class="search_name" visibility="hidden" style="left:340px; top:10px; width:67px; height:17px; ">비교 :</caption>
  570. <button id="btn_tcls" class="btn2_letter5" style="left:810px; top:8px; width:75px; height:19px; ">
  571. <caption>검사선택</caption>
  572. <script type="javascript" ev:event="DOMActivate">
  573. <![CDATA[
  574. model.toggle("case_tcls");
  575. switch2.visible = true;
  576. btn_open_setup.visible = false;
  577. btn_close_setup.visible = true;
  578. ]]>
  579. </script>
  580. </button>
  581. </group>
  582. <switch id="switch1" style="left:0px; top:75px; width:1195px; height:665px; ">
  583. <case id="case0" selected="true">
  584. <caption id="caption32" class="tit_2" style="left:10px; top:5px; width:131px; height:14px; ">일별</caption>
  585. <line id="line19" class="line_1" style="x1:5px; y1:20px; x2:1188px; y2:20px; "/>
  586. <datagrid id="grd_days" nodeset="/root/main/days/rowdata" caption="No^검사명^검사코드^구분^1일^1일^2일^2일^3일^3일^4일^4일^5일^5일^6일^6일^7일^7일^8일^8일^9일^9일^10일^10일^11일^11일^12일^12일^13일^13일^14일^14일^15일^15일^16일^16일^17일^17일^18일^18일^19일^19일^20일^20일^21일^21일^22일^22일^23일^23일^24일^24일^25일^25일^26일^26일^27일^27일^28일^28일^29일^29일^30일^30일^31일^31일^Total^Total|No^검사명^검사코드^구분^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%^건수^%" colsep="^" colwidth="30,200,0,100, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 70, 70" fixedcols="3" frozencols="1" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:5px; top:25px; width:1183px; height:625px; ">
  587. <col ref="seq" style="text-align:center; "/>
  588. <col ref="tnm" style="text-align:center; "/>
  589. <col ref="testcd" style="text-align:center; "/>
  590. <col ref="flagnm" style="text-align:center; "/>
  591. <col ref="a01" format="#,##0.##" style="text-align:right; "/>
  592. <col ref="a01p" format="#,##0.##" style="text-align:right; "/>
  593. <col ref="a02" format="#,##0.##" style="text-align:right; "/>
  594. <col ref="a02p" format="#,##0.##" style="text-align:right; "/>
  595. <col ref="a03" format="#,##0.##" style="text-align:right; "/>
  596. <col ref="a03p" format="#,##0.##" style="text-align:right; "/>
  597. <col ref="a04" format="#,##0.##" style="text-align:right; "/>
  598. <col ref="a04p" format="#,##0.##" style="text-align:right; "/>
  599. <col ref="a05" format="#,##0.##" style="text-align:right; "/>
  600. <col ref="a05p" format="#,##0.##" style="text-align:right; "/>
  601. <col ref="a06" format="#,##0.##" style="text-align:right; "/>
  602. <col ref="a06p" format="#,##0.##" style="text-align:right; "/>
  603. <col ref="a07" format="#,##0.##" style="text-align:right; "/>
  604. <col ref="a07p" format="#,##0.##" style="text-align:right; "/>
  605. <col ref="a08" format="#,##0.##" style="text-align:right; "/>
  606. <col ref="a08p" format="#,##0.##" style="text-align:right; "/>
  607. <col ref="a09" format="#,##0.##" style="text-align:right; "/>
  608. <col ref="a09p" format="#,##0.##" style="text-align:right; "/>
  609. <col ref="a10" format="#,##0.##" style="text-align:right; "/>
  610. <col ref="a10p" format="#,##0.##" style="text-align:right; "/>
  611. <col ref="a11" format="#,##0.##" style="text-align:right; "/>
  612. <col ref="a11p" format="#,##0.##" style="text-align:right; "/>
  613. <col ref="a12" format="#,##0.##" style="text-align:right; "/>
  614. <col ref="a12p" format="#,##0.##" style="text-align:right; "/>
  615. <col ref="a13" format="#,##0.##" style="text-align:right; "/>
  616. <col ref="a13p" format="#,##0.##" style="text-align:right; "/>
  617. <col ref="a14" format="#,##0.##" style="text-align:right; "/>
  618. <col ref="a14p" format="#,##0.##" style="text-align:right; "/>
  619. <col ref="a15" format="#,##0.##" style="text-align:right; "/>
  620. <col ref="a15p" format="#,##0.##" style="text-align:right; "/>
  621. <col ref="a16" format="#,##0.##" style="text-align:right; "/>
  622. <col ref="a16p" format="#,##0.##" style="text-align:right; "/>
  623. <col ref="a17" format="#,##0.##" style="text-align:right; "/>
  624. <col ref="a17p" format="#,##0.##" style="text-align:right; "/>
  625. <col ref="a18" format="#,##0.##" style="text-align:right; "/>
  626. <col ref="a18p" format="#,##0.##" style="text-align:right; "/>
  627. <col ref="a19" format="#,##0.##" style="text-align:right; "/>
  628. <col ref="a19p" format="#,##0.##" style="text-align:right; "/>
  629. <col ref="a20" format="#,##0.##" style="text-align:right; "/>
  630. <col ref="a20p" format="#,##0.##" style="text-align:right; "/>
  631. <col ref="a21" format="#,##0.##" style="text-align:right; "/>
  632. <col ref="a21p" format="#,##0.##" style="text-align:right; "/>
  633. <col ref="a22" format="#,##0.##" style="text-align:right; "/>
  634. <col ref="a22p" format="#,##0.##" style="text-align:right; "/>
  635. <col ref="a23" format="#,##0.##" style="text-align:right; "/>
  636. <col ref="a23p" format="#,##0.##" style="text-align:right; "/>
  637. <col ref="a24" format="#,##0.##" style="text-align:right; "/>
  638. <col ref="a24p" format="#,##0.##" style="text-align:right; "/>
  639. <col ref="a25" format="#,##0.##" style="text-align:right; "/>
  640. <col ref="a25p" format="#,##0.##" style="text-align:right; "/>
  641. <col ref="a26" format="#,##0.##" style="text-align:right; "/>
  642. <col ref="a26p" format="#,##0.##" style="text-align:right; "/>
  643. <col ref="a27" format="#,##0.##" style="text-align:right; "/>
  644. <col ref="a27p" format="#,##0.##" style="text-align:right; "/>
  645. <col ref="a28" format="#,##0.##" style="text-align:right; "/>
  646. <col ref="a28p" format="#,##0.##" style="text-align:right; "/>
  647. <col ref="a29" format="#,##0.##" style="text-align:right; "/>
  648. <col ref="a29p" format="#,##0.##" style="text-align:right; "/>
  649. <col ref="a30" format="#,##0.##" style="text-align:right; "/>
  650. <col ref="a30p" format="#,##0.##" style="text-align:right; "/>
  651. <col ref="a31" format="#,##0.##" style="text-align:right; "/>
  652. <col ref="a31p" format="#,##0.##" style="text-align:right; "/>
  653. <col ref="ahap" format="#,##0.##" style="text-align:right; "/>
  654. <col ref="ahapp" format="#,##0.##" style="text-align:right; "/>
  655. </datagrid>
  656. </case>
  657. <case id="case1">
  658. <caption id="caption1" class="tit_2" style="left:10px; top:5px; width:131px; height:14px; ">월별</caption>
  659. <line id="line1" class="line_1" style="x1:5px; y1:20px; x2:1188px; y2:20px; "/>
  660. <datagrid id="grd_month" nodeset="/root/main/month/rowdata" caption="No^검사명^검사코드^구분^이전12월^이전12월^1월^1월^1월^2월^2월^2월^3월^3월^3월^4월^4월^4월^5월^5월^5월^6월^6월^6월^7월^7월^7월^8월^8월^8월^9월^9월^9월^10월^10월^10월^11월^11월^11월^12월^12월^12월^Total^Total|No^검사명^검사코드^구분^건수^%^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%" colsep="^" colwidth="30,200, 0,100, 65, 50, 65, 50, 65, 65, 50, 65, 65, 50, 65, 65, 50, 65, 65, 50, 65, 65, 50, 65, 65, 50, 65, 65, 50, 65, 65, 50, 65, 65, 50, 65, 65, 50, 65, 65, 50, 65, 80, 50" fixedcols="3" frozencols="1" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:25px; width:1183px; height:625px; ">
  661. <col ref="seq" style="text-align:center; "/>
  662. <col ref="tnm" style="text-align:center; "/>
  663. <col ref="testcd" style="text-align:center; "/>
  664. <col ref="flagnm" style="text-align:center; "/>
  665. <col ref="a01bf" format="#,##0.##" style="text-align:right; "/>
  666. <col ref="a01bfp" format="#,##0.##" style="text-align:right; "/>
  667. <col ref="a01" format="#,##0.##" style="text-align:right; "/>
  668. <col ref="a01p" format="#,##0.##" style="text-align:right; "/>
  669. <col ref="a01i" format="#,##0.##" style="text-align:right; "/>
  670. <col ref="a02" format="#,##0.##" style="text-align:right; "/>
  671. <col ref="a02p" format="#,##0.##" style="text-align:right; "/>
  672. <col ref="a02i" format="#,##0.##" style="text-align:right; "/>
  673. <col ref="a03" format="#,##0.##" style="text-align:right; "/>
  674. <col ref="a03p" format="#,##0.##" style="text-align:right; "/>
  675. <col ref="a03i" format="#,##0.##" style="text-align:right; "/>
  676. <col ref="a04" format="#,##0.##" style="text-align:right; "/>
  677. <col ref="a04p" format="#,##0.##" style="text-align:right; "/>
  678. <col ref="a04i" format="#,##0.##" style="text-align:right; "/>
  679. <col ref="a05" format="#,##0.##" style="text-align:right; "/>
  680. <col ref="a05p" format="#,##0.##" style="text-align:right; "/>
  681. <col ref="a05i" format="#,##0.##" style="text-align:right; "/>
  682. <col ref="a06" format="#,##0.##" style="text-align:right; "/>
  683. <col ref="a06p" format="#,##0.##" style="text-align:right; "/>
  684. <col ref="a06i" format="#,##0.##" style="text-align:right; "/>
  685. <col ref="a07" format="#,##0.##" style="text-align:right; "/>
  686. <col ref="a07p" format="#,##0.##" style="text-align:right; "/>
  687. <col ref="a07i" format="#,##0.##" style="text-align:right; "/>
  688. <col ref="a08" format="#,##0.##" style="text-align:right; "/>
  689. <col ref="a08p" format="#,##0.##" style="text-align:right; "/>
  690. <col ref="a08i" format="#,##0.##" style="text-align:right; "/>
  691. <col ref="a09" format="#,##0.##" style="text-align:right; "/>
  692. <col ref="a09p" format="#,##0.##" style="text-align:right; "/>
  693. <col ref="a09i" format="#,##0.##" style="text-align:right; "/>
  694. <col ref="a10" format="#,##0.##" style="text-align:right; "/>
  695. <col ref="a10p" format="#,##0.##" style="text-align:right; "/>
  696. <col ref="a10i" format="#,##0.##" style="text-align:right; "/>
  697. <col ref="a11" format="#,##0.##" style="text-align:right; "/>
  698. <col ref="a11p" format="#,##0.##" style="text-align:right; "/>
  699. <col ref="a11i" format="#,##0.##" style="text-align:right; "/>
  700. <col ref="a12" format="#,##0.##" style="text-align:right; "/>
  701. <col ref="a12p" format="#,##0.##" style="text-align:right; "/>
  702. <col ref="a12i" format="#,##0.##" style="text-align:right; "/>
  703. <col ref="ahap" format="#,##0.##" style="text-align:right; "/>
  704. <col ref="ahapp" format="#,##0.##" style="text-align:right; "/>
  705. </datagrid>
  706. </case>
  707. <case id="case2">
  708. <caption id="caption2" class="tit_2" style="left:10px; top:5px; width:131px; height:14px; ">분기별</caption>
  709. <line id="line2" class="line_1" style="x1:5px; y1:20px; x2:1188px; y2:20px; "/>
  710. <datagrid id="grd_quarter" nodeset="/root/main/quarter/rowdata" caption="No^검사명^검사코드^구분^이전4분기^이전4분기^1분기^1분기^1분기^2분기^2분기^2분기^3분기^3분기^3분기^4분기^4분기^4분기^Total^Total|No^검사명^검사코드^구분^건수^%^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%" colsep="^" colwidth="30,200, 0,100, 80, 50, 80, 50, 80, 80, 50, 80, 80, 50, 80, 80, 50, 80, 100, 50" fixedcols="3" frozencols="1" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:25px; width:1183px; height:625px; ">
  711. <col ref="seq" style="text-align:center; "/>
  712. <col ref="tnm" style="text-align:center; "/>
  713. <col ref="testcd" style="text-align:center; "/>
  714. <col ref="flagnm" style="text-align:center; "/>
  715. <col ref="a01bf" format="#,##0.##" style="text-align:right; "/>
  716. <col ref="a01bfp" format="#,##0.##" style="text-align:right; "/>
  717. <col ref="a01" format="#,##0.##" style="text-align:right; "/>
  718. <col ref="a01p" format="#,##0.##" style="text-align:right; "/>
  719. <col ref="a01i" format="#,##0.##" style="text-align:right; "/>
  720. <col ref="a02" format="#,##0.##" style="text-align:right; "/>
  721. <col ref="a02p" format="#,##0.##" style="text-align:right; "/>
  722. <col ref="a02i" format="#,##0.##" style="text-align:right; "/>
  723. <col ref="a03" format="#,##0.##" style="text-align:right; "/>
  724. <col ref="a03p" format="#,##0.##" style="text-align:right; "/>
  725. <col ref="a03i" format="#,##0.##" style="text-align:right; "/>
  726. <col ref="a04" format="#,##0.##" style="text-align:right; "/>
  727. <col ref="a04p" format="#,##0.##" style="text-align:right; "/>
  728. <col ref="a04i" format="#,##0.##" style="text-align:right; "/>
  729. <col ref="ahap" format="#,##0.##" style="text-align:right; "/>
  730. <col ref="ahapp" format="#,##0.##" style="text-align:right; "/>
  731. </datagrid>
  732. </case>
  733. <case id="case3">
  734. <caption id="caption3" class="tit_2" style="left:10px; top:5px; width:131px; height:14px; ">연별</caption>
  735. <line id="line4" class="line_1" style="x1:5px; y1:20px; x2:1188px; y2:20px; "/>
  736. <datagrid id="grd_year" nodeset="/root/main/year/rowdata" caption="No^검사명^검사코드^구분^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Total^Total|No^검사명^검사코드^구분^건수^%^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%^증감율^건수^%" colsep="^" colwidth="30,200, 0, 100, 85, 50, 85, 50, 85, 85, 50, 85, 85, 50, 85, 85, 50, 85, 85, 50, 85, 85, 50, 85, 85, 50, 85, 85, 50, 85, 85, 50, 85, 100, 50" fixedcols="3" frozencols="1" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:25px; width:1183px; height:625px; ">
  737. <col ref="seq" style="text-align:center; "/>
  738. <col ref="tnm" style="text-align:center; "/>
  739. <col ref="testcd" style="text-align:center; "/>
  740. <col ref="flagnm" style="text-align:center; "/>
  741. <col ref="a01" format="#,##0.##" style="text-align:right; "/>
  742. <col ref="a01p" format="#,##0.##" style="text-align:right; "/>
  743. <col ref="a02" format="#,##0.##" style="text-align:right; "/>
  744. <col ref="a02p" format="#,##0.##" style="text-align:right; "/>
  745. <col ref="a02i" format="#,##0.##" style="text-align:right; "/>
  746. <col ref="a03" format="#,##0.##" style="text-align:right; "/>
  747. <col ref="a03p" format="#,##0.##" style="text-align:right; "/>
  748. <col ref="a03i" format="#,##0.##" style="text-align:right; "/>
  749. <col ref="a04" format="#,##0.##" style="text-align:right; "/>
  750. <col ref="a04p" format="#,##0.##" style="text-align:right; "/>
  751. <col ref="a04i" format="#,##0.##" style="text-align:right; "/>
  752. <col ref="a05" format="#,##0.##" style="text-align:right; "/>
  753. <col ref="a05p" format="#,##0.##" style="text-align:right; "/>
  754. <col ref="a05i" format="#,##0.##" style="text-align:right; "/>
  755. <col ref="a06" format="#,##0.##" style="text-align:right; "/>
  756. <col ref="a06p" format="#,##0.##" style="text-align:right; "/>
  757. <col ref="a06i" format="#,##0.##" style="text-align:right; "/>
  758. <col ref="a07" format="#,##0.##" style="text-align:right; "/>
  759. <col ref="a07p" format="#,##0.##" style="text-align:right; "/>
  760. <col ref="a07i" format="#,##0.##" style="text-align:right; "/>
  761. <col ref="a08" format="#,##0.##" style="text-align:right; "/>
  762. <col ref="a08p" format="#,##0.##" style="text-align:right; "/>
  763. <col ref="a08i" format="#,##0.##" style="text-align:right; "/>
  764. <col ref="a09" format="#,##0.##" style="text-align:right; "/>
  765. <col ref="a09p" format="#,##0.##" style="text-align:right; "/>
  766. <col ref="a09i" format="#,##0.##" style="text-align:right; "/>
  767. <col ref="a10" format="#,##0.##" style="text-align:right; "/>
  768. <col ref="a10p" format="#,##0.##" style="text-align:right; "/>
  769. <col ref="a10i" format="#,##0.##" style="text-align:right; "/>
  770. <col ref="ahap" format="#,##0.##" style="text-align:right; "/>
  771. <col ref="ahapp" format="#,##0.##" style="text-align:right; "/>
  772. </datagrid>
  773. </case>
  774. </switch>
  775. <button id="btn_1" class="btn_sw" group="tab" selected="true" style="left:70px; top:54px; width:70px; height:22px; ">
  776. <caption>월별</caption>
  777. <script type="javascript" ev:event="DOMActivate">
  778. <![CDATA[
  779. model.toggle("case1");
  780. model.setValue("/root/hidden/ref/flag", "1"); // 월별
  781. caption9.visible = false;
  782. ipt_worktodd.visible = false;
  783. chk_incre.visible = true;
  784. chk_per.visible = true;
  785. cap_compar.visible = false;
  786. rdo_compar.visible = false;
  787. ]]>
  788. </script>
  789. </button>
  790. <button id="btn_2" class="btn_sw" group="tab" selected="true" style="left:140px; top:54px; width:70px; height:22px; ">
  791. <caption>분기별</caption>
  792. <script type="javascript" ev:event="DOMActivate">
  793. <![CDATA[
  794. model.toggle("case2");
  795. model.setValue("/root/hidden/ref/flag", "2"); // 분기별
  796. caption9.visible = false;
  797. ipt_worktodd.visible = false;
  798. chk_incre.visible = true;
  799. chk_per.visible = true;
  800. cap_compar.visible = false;
  801. rdo_compar.visible = false;
  802. ]]>
  803. </script>
  804. </button>
  805. <button id="btn_3" class="btn_sw" group="tab" selected="true" style="left:210px; top:54px; width:70px; height:22px; ">
  806. <caption>연별</caption>
  807. <script type="javascript" ev:event="DOMActivate">
  808. <![CDATA[
  809. model.toggle("case3");
  810. model.setValue("/root/hidden/ref/flag", "3"); // 연별
  811. caption9.visible = true;
  812. ipt_worktodd.visible = true;
  813. chk_incre.visible = true;
  814. chk_per.visible = true;
  815. //연별캡션 변경
  816. fYearCaption();
  817. cap_compar.visible = false;
  818. rdo_compar.visible = false;
  819. ]]>
  820. </script>
  821. </button>
  822. <button id="btn_0" class="btn_sw" group="tab" selected="true" style="left:0px; top:54px; width:70px; height:22px; ">
  823. <caption>일별</caption>
  824. <script type="javascript" ev:event="DOMActivate">
  825. <![CDATA[
  826. model.toggle("case0");
  827. model.setValue("/root/hidden/ref/flag", "0"); // 월별
  828. caption9.visible = false;
  829. ipt_worktodd.visible = false;
  830. chk_incre.visible = false;
  831. cap_compar.visible = false;
  832. rdo_compar.visible = false;
  833. ]]>
  834. </script>
  835. </button>
  836. <switch id="switch2" visibility="hidden" style="left:385px; top:75px; width:810px; height:650px; border-width:3px; ">
  837. <case id="case_setup" selected="true">
  838. <shape id="rectangle1" class="roundrect_search" appearance="roundrect" style="left:15px; top:320px; width:775px; height:310px; "/>
  839. <button id="btn_tlist_up" class="icon_top" style="left:235px; top:15px; width:26px; height:19px; ">
  840. <caption/>
  841. <script type="javascript" ev:event="DOMActivate">
  842. <![CDATA[
  843. var row = grd_tlist.row
  844. if(row >= 2){
  845. model.duplicate("/root/main/setup","/root/main/setup/testlist["+ (row - 1) +"]","testlist["+ row +"]");
  846. model.copyNode("/root/main/setup/testlist["+ (row - 1) +"]","/root/main/setup/testlist["+ (row + 1) +"]");
  847. model.removenode("/root/main/setup/testlist["+ (row + 1) +"]");
  848. model.setValue("/root/main/setup/testlist["+ row +"]/seq", row);
  849. model.setValue("/root/main/setup/testlist["+ (row - 1) +"]/seq", row - 1);
  850. grd_tlist.rebuild();
  851. grd_tlist.row = row - 1;
  852. fSetFlagGrid();
  853. }
  854. ]]>
  855. </script>
  856. </button>
  857. <button id="btn_tlist_down" class="icon_bottom" style="left:270px; top:15px; width:26px; height:19px; ">
  858. <caption/>
  859. <script type="javascript" ev:event="DOMActivate">
  860. <![CDATA[
  861. var row = grd_tlist.row
  862. if(row >= 1 && row < grd_tlist.rows - 1){
  863. model.duplicate("/root/main/setup","/root/main/setup/testlist["+ (row + 1) +"]","testlist["+row +"]")
  864. model.removenode("/root/main/setup/testlist["+ (row + 2) +"]");
  865. model.setValue("/root/main/setup/testlist["+ row +"]/seq", row);
  866. model.setValue("/root/main/setup/testlist["+ (row + 1) +"]/seq", row + 1);
  867. grd_tlist.rebuild();
  868. grd_tlist.row = row + 1;
  869. fSetFlagGrid();
  870. }
  871. ]]>
  872. </script>
  873. </button>
  874. <button id="btn_tlist_del" class="btn2_letter4" visibility="visible" style="left:310px; top:15px; width:64px; height:19px; ">
  875. <caption>선택삭제</caption>
  876. <script type="javascript" ev:event="DOMActivate">
  877. <![CDATA[
  878. var row = grd_tlist.row;
  879. if(row >= 1){
  880. model.removeNodeset("/root/main/setup/subformat[testcd='"+ model.getValue("/root/main/setup/testlist["+ row +"]/testcd") +"']");
  881. grd_tlist.deleteRow(row);
  882. for(i = row; i < grd_tlist.rows; i++){
  883. model.setValue("/root/main/setup/testlist["+ i +"]/seq", i);
  884. }
  885. grd_tlist.rebuild();
  886. grd_tlist.row = row;
  887. fSetFlagGrid();
  888. }
  889. grd_flag.row;
  890. ]]>
  891. </script>
  892. </button>
  893. <datagrid id="grd_tlist" nodeset="/root/main/setup/testlist" caption="검사코드^검사명^순번" colsep="^" colwidth="80, 240,0" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:15px; top:40px; width:360px; height:270px; ">
  894. <col ref="testcd" style="text-align:left; padding-left:5; "/>
  895. <col ref="tnm" style="text-align:left; "/>
  896. <col ref="seq"/>
  897. <script type="javascript" ev:event="onclick">
  898. <![CDATA[
  899. fSetFlagGrid();
  900. ]]>
  901. </script>
  902. </datagrid>
  903. <button id="btn_flag_del" class="btn2_letter4" visibility="visible" style="left:650px; top:15px; width:64px; height:19px; ">
  904. <caption>선택삭제</caption>
  905. <script type="javascript" ev:event="DOMActivate">
  906. <![CDATA[
  907. var row = grd_flag.row;
  908. var testcd = grd_flag.textmatrix(row, 1);
  909. var seq = "";
  910. if(row >= 1){
  911. if(row < grd_flag.rows){
  912. for(i = row + 1; i < grd_flag.rows; i++){
  913. grd_flag.textmatrix(i, 5) = i - 1;
  914. }
  915. }
  916. grd_flag.deleteRow(row);
  917. grd_flag.rebuild();
  918. grd_flag.row = row;
  919. }
  920. ]]>
  921. </script>
  922. </button>
  923. <button id="btn_flag_up" class="icon_top" style="left:575px; top:15px; width:26px; height:19px; ">
  924. <caption/>
  925. <script type="javascript" ev:event="DOMActivate">
  926. <![CDATA[
  927. var row = grd_flag.row
  928. var tmp = "";
  929. if(row >= 2){
  930. tmp = grd_flag.textmatrix(row-1,2);
  931. grd_flag.textmatrix(row-1,2) = grd_flag.textmatrix(row,2);
  932. grd_flag.textmatrix(row,2) = tmp;
  933. tmp = grd_flag.textmatrix(row-1,3);
  934. grd_flag.textmatrix(row-1,3) = grd_flag.textmatrix(row,3);
  935. grd_flag.textmatrix(row,3) = tmp;
  936. tmp = grd_flag.textmatrix(row-1,4);
  937. grd_flag.textmatrix(row-1,4) = grd_flag.textmatrix(row,4);
  938. grd_flag.textmatrix(row,4) = tmp;
  939. grd_flag.rebuild();
  940. grd_flag.row = row - 1;
  941. }
  942. ]]>
  943. </script>
  944. </button>
  945. <button id="btn_flag_down" class="icon_bottom" style="left:610px; top:15px; width:26px; height:19px; ">
  946. <caption/>
  947. <script type="javascript" ev:event="DOMActivate">
  948. <![CDATA[
  949. var row = grd_flag.row
  950. var tmp = "";
  951. if(row >= 1 && row < grd_flag.rows - 1){
  952. tmp = grd_flag.textmatrix(row+1,2);
  953. grd_flag.textmatrix(row+1,2) = grd_flag.textmatrix(row,2);
  954. grd_flag.textmatrix(row,2) = tmp;
  955. tmp = grd_flag.textmatrix(row+1,3);
  956. grd_flag.textmatrix(row+1,3) = grd_flag.textmatrix(row,3);
  957. grd_flag.textmatrix(row,3) = tmp;
  958. tmp = grd_flag.textmatrix(row+1,4);
  959. grd_flag.textmatrix(row+1,4) = grd_flag.textmatrix(row,4);
  960. grd_flag.textmatrix(row,4) = tmp;
  961. grd_flag.rebuild();
  962. grd_flag.row = row + 1;
  963. }
  964. ]]>
  965. </script>
  966. </button>
  967. <caption id="caption10" class="search_name" style="left:390px; top:15px; width:156px; height:17px; ">검사별 집계 방법 설정</caption>
  968. <button id="btn_flag_add" class="btn2_letter4" visibility="visible" style="left:725px; top:15px; width:64px; height:19px; ">
  969. <caption>로우추가</caption>
  970. <script type="javascript" ev:event="DOMActivate">
  971. <![CDATA[
  972. if(grd_flag.nodeset == "/root/main/setup/subformat[testcd='']" || model.getValue("/root/hidden/testcd") == ""){
  973. alert("대상 검사를 선택하여 주십시요");
  974. }
  975. else{
  976. grd_flag.addRow();
  977. model.setValue("/root/main/setup/subformat[last()]/testcd", model.getValue("/root/hidden/testcd"));
  978. model.setValue("/root/main/setup/subformat[last()]/stepseq", model.getXPathValue("count(/root/main/setup/subformat[testcd='"+model.getValue("/root/hidden/testcd")+"'])"));
  979. grd_flag.rebuild();
  980. }
  981. ]]>
  982. </script>
  983. </button>
  984. <datagrid id="grd_flag" nodeset="/root/main/setup/subformat[testcd='']" caption="검사코드^구분명^구분방법^구분값^판단순서^표순" colsep="^" colwidth="0, 160, 66, 100,0,35" rowheader="seq" rowsep="|" style="left:390px; top:65px; width:400px; height:245px; ">
  985. <col ref="testcd"/>
  986. <col ref="flagnm" type="input"/>
  987. <col ref="flaggbn" type="combo">
  988. <choices>
  989. <itemset nodeset="/root/hidden/flaglist/flag">
  990. <label ref="nm"/>
  991. <value ref="cd"/>
  992. </itemset>
  993. </choices>
  994. </col>
  995. <col ref="flagval" type="input"/>
  996. <col ref="stepseq"/>
  997. <col ref="dispseq" type="input" format="####" validateformat="true"/>
  998. </datagrid>
  999. <datagrid id="grd_tclslist" nodeset="/root/main/setup/tclscdlist" caption="^검사코드^검사명^검사구분^" colsep="^" colwidth="27, 90, 487, 100, 0" explorerbar="sortshow" rowheader="seq" rowsep="|" style="left:25px; top:360px; width:755px; height:255px; ">
  1000. <col checkvalue="true,false" ref="chk" type="checkbox"/>
  1001. <col ref="tclscd" style="text-align:left; padding-left:10; "/>
  1002. <col ref="tclsnm" style="text-align:left; padding-left:10; "/>
  1003. <col disabled="true" ref="tclskind" type="combo">
  1004. <choices>
  1005. <item>
  1006. <label>Group</label>
  1007. <value>0</value>
  1008. </item>
  1009. <item>
  1010. <label>Panel</label>
  1011. <value>1</value>
  1012. </item>
  1013. <item>
  1014. <label>Single</label>
  1015. <value>2</value>
  1016. </item>
  1017. <item>
  1018. <label>Parent</label>
  1019. <value>3</value>
  1020. </item>
  1021. <item>
  1022. <label>Child</label>
  1023. <value>4</value>
  1024. </item>
  1025. <item>
  1026. <label>Abnormal</label>
  1027. <value>5</value>
  1028. </item>
  1029. <item>
  1030. <label>성분제제</label>
  1031. <value>6</value>
  1032. </item>
  1033. </choices>
  1034. </col>
  1035. <col ref="instcd"/>
  1036. </datagrid>
  1037. <input id="ipt_refgbn" ref="/root/hidden/search/searchtext" class="input_s_button" inputtype="button" style="left:655px; top:330px; width:120px; height:19px; ">
  1038. <script type="javascript" ev:event="onbuttonclick">
  1039. <![CDATA[
  1040. fGetHospTclscd();
  1041. ]]>
  1042. </script>
  1043. <script type="javascript" ev:event="onkeypress">
  1044. <![CDATA[
  1045. if(event.keyCode == "13"){
  1046. model.setValue("/root/hidden/search/searchtext", ipt_refgbn.currentText);
  1047. fGetHospTclscd();
  1048. }
  1049. ]]>
  1050. </script>
  1051. </input>
  1052. <caption id="caption27" class="search_name" style="left:475px; top:331px; width:87px; height:17px; ">검색구분 :</caption>
  1053. <select1 id="cmb_refgbn" ref="/root/hidden/search/searchgbn" class="combo_search" appearance="minimal" style="left:565px; top:330px; width:85px; height:19px; ">
  1054. <choices>
  1055. <item>
  1056. <label>검사코드</label>
  1057. <value>1</value>
  1058. </item>
  1059. <item>
  1060. <label>검사명</label>
  1061. <value>2</value>
  1062. </item>
  1063. </choices>
  1064. <script type="javascript" ev:event="xforms-select">
  1065. <![CDATA[
  1066. //fHiddenTodd();
  1067. ]]>
  1068. </script>
  1069. </select1>
  1070. <button id="btn_add_testcd" class="icon_top" style="left:115px; top:330px; width:26px; height:19px; ">
  1071. <caption/>
  1072. <script type="javascript" ev:event="onclick">
  1073. <![CDATA[
  1074. var nowSeq = parseInt(model.getXPathValue("count(/root/main/setup/testlist)")) + 1;
  1075. var moveTestcdCnt = parseInt(model.getXPathValue("count(/root/main/setup/tclscdlist[chk='true'])"));
  1076. var tclscd = "";
  1077. var duplCnt = 0;
  1078. for(i = nowSeq; i < nowSeq + moveTestcdCnt; i++){
  1079. tclscd = model.getValue("/root/main/setup/tclscdlist[chk='true']/tclscd");
  1080. if(model.getXPathValue("count(/root/main/setup/testlist[testcd='" + tclscd + "'])") != "0"){
  1081. duplCnt = duplCnt + 1;
  1082. }
  1083. else{
  1084. model.makeNode("/root/main/setup/testlist[" + (i - duplCnt)+ "]/testcd");
  1085. model.makeNode("/root/main/setup/testlist[" + (i - duplCnt) + "]/tnm");
  1086. model.makeNode("/root/main/setup/testlist[" + (i - duplCnt) + "]/seq");
  1087. model.setValue("/root/main/setup/testlist[last()]/testcd", model.getValue("/root/main/setup/tclscdlist[chk='true']/tclscd"));
  1088. model.setValue("/root/main/setup/testlist[last()]/tnm", model.getValue("/root/main/setup/tclscdlist[chk='true']/tclsnm"));
  1089. model.setValue("/root/main/setup/testlist[last()]/seq", (i - duplCnt));
  1090. }
  1091. model.setValue("/root/main/setup/tclscdlist[chk='true']/chk", "");
  1092. }
  1093. grd_tclslist.rebuild();
  1094. grd_tlist.rebuild();
  1095. ]]>
  1096. </script>
  1097. </button>
  1098. <caption id="caption7" class="search_name" style="left:30px; top:330px; width:87px; height:17px; ">검사추가</caption>
  1099. <caption id="caption8" class="search_name" style="left:20px; top:15px; width:143px; height:17px; ">통계 대상 검사 목록</caption>
  1100. <caption id="cap_flag_list" class="tit_2" style="left:390px; top:45px; width:410px; height:14px; ">대상 검사를 선택하여 주십시요</caption>
  1101. <input id="ipt_testcd" visibility="hidden" style="left:670px; top:45px; width:100px; height:19px; "/>
  1102. </case>
  1103. <case id="case_spc">
  1104. <select1 id="radio8" ref="/root/hidden/spc/spcflag" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:170px; top:10px; width:160px; height:20px; border-style:none; ">
  1105. <choices>
  1106. <item>
  1107. <label>전체조회</label>
  1108. <value>0</value>
  1109. </item>
  1110. <item>
  1111. <label>일부조회</label>
  1112. <value>1</value>
  1113. </item>
  1114. </choices>
  1115. <script type="javascript" ev:event="xforms-value-changed">
  1116. <![CDATA[
  1117. if(model.getValue("/root/hidden/spc/spcflag") == "1"){
  1118. group_cdlist.visible = true;
  1119. group_search.visible = true;
  1120. btn_spc.value = "검체선택*";
  1121. }
  1122. else{
  1123. group_cdlist.visible = false;
  1124. group_search.visible = false;
  1125. btn_spc.value = "검체선택";
  1126. }
  1127. ]]>
  1128. </script>
  1129. </select1>
  1130. <group id="group_search" visibility="hidden" style="left:370px; top:5px; width:415px; height:25px; ">
  1131. <button id="button4" class="btn2_letter2" style="left:260px; top:5px; width:42px; height:19px; ">
  1132. <caption>검색</caption>
  1133. <script type="javascript" ev:event="DOMActivate">
  1134. <![CDATA[
  1135. var sstr = model.getValue("/root/hidden/spc/searchval");
  1136. if(sstr == "") return;
  1137. var cnt = chk_cdlist.length;
  1138. var itemval = "";
  1139. var sflag = -1;
  1140. var skind = model.getValue("/root/hidden/spc/searchgbn");
  1141. chk_cdlist.disabled = true;
  1142. for(i= 0;i<cnt;i++){
  1143. if(skind == "cd"){
  1144. sflag = chk_cdlist.item(i).value.toUpperCase( ).search(sstr.toUpperCase( ));
  1145. }
  1146. else if (skind == "nm"){
  1147. sflag = chk_cdlist.item(i).label.toUpperCase( ).search(sstr.toUpperCase( ));
  1148. }
  1149. if(sflag > -1 ){
  1150. chk_cdlist.select(i);
  1151. }
  1152. }
  1153. chk_cdlist.disabled = false;
  1154. ]]>
  1155. </script>
  1156. </button>
  1157. <input id="input3" ref="/root/hidden/spc/searchval" style="left:110px; top:5px; width:135px; height:19px; "/>
  1158. <select1 id="radio7" ref="/root/hidden/spc/searchgbn" overflow="visible" appearance="full" cols="2" style="left:10px; top:5px; width:90px; height:20px; border-style:none; ">
  1159. <choices>
  1160. <item>
  1161. <label>코드</label>
  1162. <value>cd</value>
  1163. </item>
  1164. <item>
  1165. <label>명칭</label>
  1166. <value>nm</value>
  1167. </item>
  1168. </choices>
  1169. </select1>
  1170. <button id="button1" class="btn2_letter4" style="left:330px; top:5px; width:75px; height:19px; ">
  1171. <caption>전체해제</caption>
  1172. <script type="javascript" ev:event="DOMActivate">
  1173. <![CDATA[
  1174. model.setValue("/root/hidden/spc/spccd", "");
  1175. chk_cdlist.refresh();
  1176. model.setValue("/root/hidden/spc/spccnt", 0);
  1177. model.setValue("/root/hidden/spc/spclist", "");
  1178. cap_spccnt.refresh();
  1179. txa_spc.refresh();
  1180. ]]>
  1181. </script>
  1182. </button>
  1183. </group>
  1184. <caption id="caption13" class="search_name" style="left:20px; top:10px; width:135px; height:17px; ">검체 선택</caption>
  1185. <group id="group_cdlist" visibility="hidden" style="left:10px; top:35px; width:785px; height:600px; background-color:transparent; ">
  1186. <select id="chk_cdlist" ref="/root/hidden/spc/spccd" visibility="visible" overflow="scroll" scroll="auto" appearance="full" cols="2" sep="▦" vcellspacing="5" style="left:5px; top:10px; width:575px; height:585px; border-width:1px; border-style:solid; ">
  1187. <choices>
  1188. <itemset nodeset="/root/init/spc/cdlist">
  1189. <label ref="nm"/>
  1190. <value ref="cd"/>
  1191. </itemset>
  1192. </choices>
  1193. <script type="javascript" ev:event="xforms-value-changed">
  1194. <![CDATA[
  1195. model.setValue("/root/hidden/spc/spccnt", chk_cdlist.value.split("▦").length);
  1196. model.setValue("/root/hidden/spc/spclist", chk_cdlist.label.replace(/▦/g, "\n"));
  1197. cap_spccnt.refresh();
  1198. txa_spc.refresh();
  1199. ]]>
  1200. </script>
  1201. </select>
  1202. <textarea id="txa_spc" ref="/root/hidden/spc/spclist" scroll="both" editable="false" style="left:590px; top:30px; width:190px; height:560px; word-wrap:hard; "/>
  1203. <caption id="caption16" class="search_name" style="left:590px; top:5px; width:95px; height:17px; ">선택 검체</caption>
  1204. <caption id="cap_spccnt" ref="/root/hidden/spc/spccnt" style="left:690px; top:5px; width:35px; height:20px; font-weight:bold; text-align:right; "/>
  1205. <caption id="caption18" style="left:730px; top:5px; width:20px; height:20px; font-weight:bold; ">건</caption>
  1206. </group>
  1207. </case>
  1208. <case id="case_tcls">
  1209. <select1 id="radio1" ref="/root/hidden/tcls/tclsflag" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:170px; top:10px; width:160px; height:20px; border-style:none; ">
  1210. <choices>
  1211. <item>
  1212. <label>전체조회</label>
  1213. <value>0</value>
  1214. </item>
  1215. <item>
  1216. <label>일부조회</label>
  1217. <value>1</value>
  1218. </item>
  1219. </choices>
  1220. <script type="javascript" ev:event="xforms-value-changed">
  1221. <![CDATA[
  1222. if(model.getValue("/root/hidden/tcls/tclsflag") == "1"){
  1223. group_cdlist2.visible = true;
  1224. group_search2.visible = true;
  1225. btn_tcls.value = "검사선택*";
  1226. }
  1227. else{
  1228. group_cdlist2.visible = false;
  1229. group_search2.visible = false;
  1230. btn_tcls.value = "검사선택";
  1231. }
  1232. ]]>
  1233. </script>
  1234. </select1>
  1235. <group id="group_search2" visibility="hidden" style="left:370px; top:5px; width:415px; height:25px; ">
  1236. <button id="button5" class="btn2_letter2" style="left:260px; top:5px; width:42px; height:19px; ">
  1237. <caption>검색</caption>
  1238. <script type="javascript" ev:event="DOMActivate">
  1239. <![CDATA[
  1240. var sstr = model.getValue("/root/hidden/tcls/searchval");
  1241. if(sstr == "") return;
  1242. var cnt = chk_cdlist2.length;
  1243. var itemval = "";
  1244. var sflag = -1;
  1245. var skind = model.getValue("/root/hidden/tcls/searchgbn");
  1246. chk_cdlist2.disabled = true;
  1247. for(i= 0;i<cnt;i++){
  1248. if(skind == "cd"){
  1249. sflag = chk_cdlist2.item(i).value.toUpperCase( ).search(sstr.toUpperCase( ));
  1250. }
  1251. else if (skind == "nm"){
  1252. sflag = chk_cdlist2.item(i).label.toUpperCase( ).search(sstr.toUpperCase( ));
  1253. }
  1254. if(sflag > -1 ){
  1255. chk_cdlist2.select(i);
  1256. }
  1257. }
  1258. chk_cdlist2.disabled = false;
  1259. ]]>
  1260. </script>
  1261. </button>
  1262. <input id="input1" ref="/root/hidden/tcls/searchval" style="left:110px; top:5px; width:135px; height:19px; "/>
  1263. <select1 id="radio2" ref="/root/hidden/tcls/searchgbn" overflow="visible" appearance="full" cols="2" style="left:10px; top:5px; width:90px; height:20px; border-style:none; ">
  1264. <choices>
  1265. <item>
  1266. <label>코드</label>
  1267. <value>cd</value>
  1268. </item>
  1269. <item>
  1270. <label>명칭</label>
  1271. <value>nm</value>
  1272. </item>
  1273. </choices>
  1274. </select1>
  1275. <button id="button6" class="btn2_letter4" style="left:330px; top:5px; width:75px; height:19px; ">
  1276. <caption>전체해제</caption>
  1277. <script type="javascript" ev:event="DOMActivate">
  1278. <![CDATA[
  1279. model.setValue("/root/hidden/tcls/tclscd", "");
  1280. chk_cdlist2.refresh();
  1281. model.setValue("/root/hidden/tcls/tclscnt", 0);
  1282. model.setValue("/root/hidden/tcls/tclslist", "");
  1283. cap_tclscnt.refresh();
  1284. txa_tcls.refresh();
  1285. ]]>
  1286. </script>
  1287. </button>
  1288. </group>
  1289. <caption id="caption12" class="search_name" style="left:20px; top:10px; width:135px; height:17px; ">검사 선택</caption>
  1290. <group id="group_cdlist2" visibility="hidden" style="left:10px; top:35px; width:785px; height:600px; background-color:transparent; ">
  1291. <select id="chk_cdlist2" ref="/root/hidden/tcls/tclscd" visibility="visible" overflow="scroll" scroll="auto" appearance="full" cols="2" sep="▦" vcellspacing="5" style="left:5px; top:10px; width:575px; height:585px; border-width:1px; border-style:solid; ">
  1292. <choices>
  1293. <itemset nodeset="/root/main/testcd/rowdata">
  1294. <label ref="tnm"/>
  1295. <value ref="testcd"/>
  1296. </itemset>
  1297. </choices>
  1298. <script type="javascript" ev:event="xforms-value-changed">
  1299. <![CDATA[
  1300. model.setValue("/root/hidden/tcls/tclscnt", chk_cdlist2.value.split("▦").length);
  1301. model.setValue("/root/hidden/tcls/tclslist", chk_cdlist2.label.replace(/▦/g, "\n"));
  1302. cap_tclscnt.refresh();
  1303. txa_tcls.refresh();
  1304. ]]>
  1305. </script>
  1306. </select>
  1307. <textarea id="txa_tcls" ref="/root/hidden/tcls/tclslist" scroll="both" editable="false" style="left:590px; top:30px; width:190px; height:560px; word-wrap:hard; "/>
  1308. <caption id="caption14" class="search_name" style="left:590px; top:5px; width:95px; height:17px; ">선택 검체</caption>
  1309. <caption id="cap_tclscnt" ref="/root/hidden/tcls/tclscnt" style="left:690px; top:5px; width:35px; height:20px; font-weight:bold; text-align:right; "/>
  1310. <caption id="caption17" style="left:730px; top:5px; width:20px; height:20px; font-weight:bold; ">건</caption>
  1311. </group>
  1312. </case>
  1313. </switch>
  1314. <switch id="switch3" visibility="hidden" style="left:285px; top:75px; width:910px; height:650px; border-width:3px; ">
  1315. <case id="case5">
  1316. <caption id="cap_detail" class="search_name" style="left:10px; top:10px; width:685px; height:17px; "/>
  1317. <datagrid id="grd_detail" nodeset="/root/main/setup/detaillist" autoresize="true" caption="No^flag^검체번호^등록번호^환자명^검사코드^검사명^판정결과^입력결과^출력결과^접수일시^결과일시^숫자변환결과^구분명^판정값^구분방법^구분값" colsep="^" colwidth="40,0,80, 70, 60, 0, 0, 100,140, 0, 0, 0, 80, 100, 50, 70, 80" fixedcols="5" mergecellsfixedcols="bycol" rowsep="|" style="left:10px; top:35px; width:885px; height:600px; ">
  1318. <col ref="seq"/>
  1319. <col ref="errflag"/>
  1320. <col ref="bcno" style="text-align:center; "/>
  1321. <col ref="pid" style="text-align:center; "/>
  1322. <col ref="hngnm" style="text-align:center; "/>
  1323. <col ref="testcd"/>
  1324. <col ref="tnm"/>
  1325. <col ref="judgeval" style="padding-left:5; "/>
  1326. <col ref="inptrslt" style="padding-left:5; "/>
  1327. <col ref="reptrslt"/>
  1328. <col ref="spcacptdt" format="yyyy-mm-dd hh:nn:ss"/>
  1329. <col ref="lastreptdt" format="yyyy-mm-dd hh:nn:ss"/>
  1330. <col ref="numval" style="text-align:right; padding-right:5; "/>
  1331. <col ref="flagnm" style="text-align:left; padding-left:5; "/>
  1332. <col ref="flag" type="combo" style="font-weight:bold; text-align:center; ">
  1333. <choices>
  1334. <item>
  1335. <label>거짓</label>
  1336. <value>0</value>
  1337. </item>
  1338. <item>
  1339. <label>참</label>
  1340. <value>1</value>
  1341. </item>
  1342. </choices>
  1343. </col>
  1344. <col ref="flaggbn" type="combo" style="text-align:center; ">
  1345. <choices>
  1346. <itemset nodeset="/root/hidden/flaglist/flag">
  1347. <label ref="nm"/>
  1348. <value ref="cd"/>
  1349. </itemset>
  1350. </choices>
  1351. </col>
  1352. <col ref="flagval" style="padding-left:5; "/>
  1353. </datagrid>
  1354. <button id="button3" class="btn2_letter4" style="left:825px; top:10px; width:64px; height:19px; ">
  1355. <caption>상세 닫기</caption>
  1356. <script type="javascript" ev:event="DOMActivate">
  1357. <![CDATA[
  1358. switch3.visible = false;
  1359. ]]>
  1360. </script>
  1361. </button>
  1362. <select id="chk_errflag" ref="/root/hidden/grdview/errflag" overflow="visible" appearance="full" style="left:660px; top:10px; width:110px; height:20px; font-weight:bold; border-style:none; ">
  1363. <choices>
  1364. <item>
  1365. <label>
  1366. <![CDATA[기타&중복 보기]]>
  1367. </label>
  1368. <value>1</value>
  1369. </item>
  1370. </choices>
  1371. <script type="javascript" ev:event="xforms-value-changed">
  1372. <![CDATA[
  1373. if(chk_errflag.value == "1") grd_detail.nodeset ="/root/main/setup/detaillist[errflag='1']";
  1374. else grd_detail.nodeset ="/root/main/setup/detaillist"
  1375. grd_detail.rebuild();
  1376. grd_detail.resizeCells();
  1377. ]]>
  1378. </script>
  1379. </select>
  1380. <button id="button7" class="btn2_letter2" style="left:775px; top:10px; width:42px; height:19px; ">
  1381. <caption>엑셀</caption>
  1382. <script type="javascript" ev:event="DOMActivate">
  1383. <![CDATA[
  1384. var filename = window.fileDialog("save", ",", false, cap_detail.value , "xls", "All Files(*.*)|*.*|Excel File(*.xls)|*.xls");
  1385. grd_detail.saveExcel(filename);
  1386. ]]>
  1387. </script>
  1388. </button>
  1389. </case>
  1390. </switch>
  1391. <button id="btn_open_setup" class="btn_sw" group="tab2" style="left:1110px; top:54px; width:70px; height:22px; ">
  1392. <caption>설정</caption>
  1393. <script type="javascript" ev:event="DOMActivate">
  1394. <![CDATA[
  1395. switch2.visible = true;
  1396. model.toggle("case_setup");
  1397. btn_open_setup.visible = false;
  1398. btn_close_setup.visible = true;
  1399. btn_save_setup.visible = true;
  1400. btn_get_setup.visible = true;
  1401. ]]>
  1402. </script>
  1403. </button>
  1404. <button id="btn_close_setup" class="btn_sw" visibility="hidden" group="tab2" style="left:1110px; top:54px; width:70px; height:22px; ">
  1405. <caption>설정닫기</caption>
  1406. <script type="javascript" ev:event="DOMActivate">
  1407. <![CDATA[
  1408. fCloseSetup();
  1409. ]]>
  1410. </script>
  1411. </button>
  1412. <button id="btn_save_setup" class="btn_sw" visibility="hidden" group="tab2" style="left:1025px; top:54px; width:70px; height:22px; ">
  1413. <caption>설정 저장</caption>
  1414. <script type="javascript" ev:event="DOMActivate">
  1415. <![CDATA[
  1416. fSetTestFlagList();
  1417. ]]>
  1418. </script>
  1419. </button>
  1420. <button id="btn_get_setup" class="btn_sw" visibility="hidden" group="tab2" style="left:400px; top:54px; width:70px; height:22px; ">
  1421. <caption>설정 조회</caption>
  1422. <script type="javascript" ev:event="DOMActivate">
  1423. <![CDATA[
  1424. fGetSetup();
  1425. fSetFlagGrid();
  1426. ]]>
  1427. </script>
  1428. </button>
  1429. <group id="group_cntasspc" scroll="auto" style="left:475px; top:49px; width:545px; height:25px; ">
  1430. <shape id="roundrect3" class="roundrect_error" appearance="roundrect" style="left:0px; top:0px; width:545px; height:25px; "/>
  1431. <select id="checkbox2" ref="/root/hidden/grdview/etc" overflow="visible" appearance="full" style="left:210px; top:5px; width:90px; height:20px; border-style:none; ">
  1432. <choices>
  1433. <item>
  1434. <label>기타 표시</label>
  1435. <value>1</value>
  1436. </item>
  1437. </choices>
  1438. <script type="javascript" ev:event="xforms-value-changed">
  1439. <![CDATA[
  1440. if(model.getValue("/root/hidden/grdview/etc") == "1"){
  1441. grd_days.nodeset = "/root/main/days/rowdata";
  1442. grd_month.nodeset = "/root/main/month/rowdata";
  1443. grd_quarter.nodeset = "/root/main/quarter/rowdata";
  1444. grd_year.nodeset = "/root/main/year/rowdata";
  1445. }
  1446. else{
  1447. grd_days.nodeset = "/root/main/days/rowdata[flagnm!='기타']";
  1448. grd_month.nodeset = "/root/main/month/rowdata[flagnm!='기타']";
  1449. grd_quarter.nodeset = "/root/main/quarter/rowdata[flagnm!='기타']";
  1450. grd_year.nodeset = "/root/main/year/rowdata[flagnm!='기타']";
  1451. }
  1452. ]]>
  1453. </script>
  1454. </select>
  1455. <select id="chk_per" ref="/root/hidden/grdview/per" overflow="visible" appearance="full" cols="3" sep="▦" style="left:330px; top:5px; width:65px; height:20px; border-style:none; ">
  1456. <choices>
  1457. <item>
  1458. <label>% 표시</label>
  1459. <value>1</value>
  1460. </item>
  1461. </choices>
  1462. <script type="javascript" ev:event="xforms-value-changed">
  1463. <![CDATA[
  1464. if(chk_per.value == "1"){
  1465. for(i = 0; i<31; i++){
  1466. grd_days.colHidden(5 + (i*2)) = false;
  1467. }
  1468. grd_month.colHidden(5) = false;
  1469. for(i = 0; i<12; i++){
  1470. grd_month.colHidden(7 + (i*3)) = false;
  1471. }
  1472. grd_quarter.colHidden(5) = false;
  1473. for(i = 0; i<4; i++){
  1474. grd_quarter.colHidden(7 + (i*3)) = false;
  1475. }
  1476. grd_year.colHidden(5) = false;
  1477. for(i = 0; i< 9; i++){
  1478. if(model.getValue("/root/send/year" + (i+2)) != "") grd_year.colHidden(7 + (i*3)) = false;
  1479. }
  1480. }
  1481. else{
  1482. for(i = 0; i<31; i++){
  1483. grd_days.colHidden(5 + (i*2)) = true;
  1484. }
  1485. grd_month.colHidden(5) = true;
  1486. for(i = 0; i<12; i++){
  1487. grd_month.colHidden(7 + (i*3)) = true;
  1488. }
  1489. grd_quarter.colHidden(5) = true;
  1490. for(i = 0; i<4; i++){
  1491. grd_quarter.colHidden(7 + (i*3)) = true;
  1492. }
  1493. grd_year.colHidden(5) = true;
  1494. for(i = 0; i<10; i++){
  1495. if(!grd_year.colHidden(7 + (i*3)))
  1496. grd_year.colHidden(7 + (i*3)) = true;
  1497. }
  1498. }
  1499. ]]>
  1500. </script>
  1501. </select>
  1502. <select id="chk_incre" ref="/root/hidden/grdview/incre" visibility="hidden" overflow="visible" appearance="full" cols="3" sep="▦" style="left:430px; top:5px; width:95px; height:20px; border-style:none; ">
  1503. <choices>
  1504. <item>
  1505. <label>증감율 표시</label>
  1506. <value>1</value>
  1507. </item>
  1508. </choices>
  1509. <script type="javascript" ev:event="xforms-value-changed">
  1510. <![CDATA[
  1511. if(chk_incre.value == "1"){
  1512. for(i = 0; i<12; i++){
  1513. grd_month.colHidden(8 + (i*3)) = false;
  1514. }
  1515. for(i = 0; i<4; i++){
  1516. grd_quarter.colHidden(8 + (i*3)) = false;
  1517. }
  1518. for(i = 0; i< 9; i++){
  1519. if(model.getValue("/root/send/year" + (i+2)) != "") grd_year.colHidden(8 + (i*3)) = false;
  1520. }
  1521. }
  1522. else{
  1523. for(i = 0; i<12; i++){
  1524. grd_month.colHidden(8 + (i*3)) = true;
  1525. }
  1526. for(i = 0; i<4; i++){
  1527. grd_quarter.colHidden(8 + (i*3)) = true;
  1528. }
  1529. for(i = 0; i<10; i++){
  1530. if(!grd_year.colHidden(8 + (i*3)))
  1531. grd_year.colHidden(8 + (i*3)) = true;
  1532. }
  1533. }
  1534. ]]>
  1535. </script>
  1536. </select>
  1537. <caption id="caption11" class="search_name" style="left:20px; top:5px; width:86px; height:17px; ">진행상태 :</caption>
  1538. <caption id="cap_stat" style="left:110px; top:5px; width:85px; height:20px; font-weight:bold; ">0/0</caption>
  1539. </group>
  1540. </group>
  1541. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  1542. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  1543. <caption>초기화</caption>
  1544. <script type="javascript" ev:event="DOMActivate">
  1545. <![CDATA[
  1546. fSetInit();
  1547. ]]>
  1548. </script>
  1549. </button>
  1550. <line id="line5" class="line_2" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  1551. <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:96px; height:22px; ">
  1552. <caption>엑셀</caption>
  1553. <script type="javascript" ev:event="DOMActivate">
  1554. <![CDATA[
  1555. fSaveExcel();
  1556. ]]>
  1557. </script>
  1558. </button>
  1559. </group>
  1560. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  1561. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">분자유전 검사통계</caption>
  1562. </group>
  1563. </xhtml:body>
  1564. </xhtml:html>