SMLLS01300_TAT조회.xrw 78 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLS00500_결과수정건수.xrw
  4. * 설 명 : 결과수정건수
  5. * 설 계 자 : (주)에이씨케이 - 송요셉
  6. * 작 성 자 : (주)에이씨케이 -
  7. * 작 성 일 : 2008.04.21
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  13. <xhtml:head>
  14. <xhtml:title>TAT조회</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <tattype1>
  20. <patnm/>
  21. <pid/>
  22. <bcno/>
  23. <tclsnm/>
  24. <prcprgstdt/>
  25. <barcdprntdt/>
  26. <bcolldt/>
  27. <spcpsueacptdt/>
  28. <spcacptdt/>
  29. <lastreptdt/>
  30. <spcpgaplast/>
  31. <barcdgaplast/>
  32. <prcpgaplast/>
  33. <bcollgaplast/>
  34. <acptgaplast/>
  35. <spcpgaplastday/>
  36. <barcdgaplastday/>
  37. <prcpgaplastday/>
  38. <bcollgaplastday/>
  39. <acptgaplastday/>
  40. </tattype1>
  41. <tattype2>
  42. <timeterm/>
  43. <tclscnt/>
  44. <avgtesttime/>
  45. <avgovertime/>
  46. <mintesttime/>
  47. <maxtesttime/>
  48. <avgtestday/>
  49. <avgoverday/>
  50. <mintestday/>
  51. <maxtestday/>
  52. <overtclscnt/>
  53. <tatrate/>
  54. </tattype2>
  55. <tattype3>
  56. <patnm/>
  57. <pid/>
  58. <spcnm/>
  59. <bcno/>
  60. <prcprgstdt/>
  61. <barcdprntdt/>
  62. <bcolldt/>
  63. <spcpsueacptdt/>
  64. <spcacptdt/>
  65. <lastreptdt/>
  66. <spcpgaplast/>
  67. <barcdgaplast/>
  68. <prcpgaplast/>
  69. <bcollgaplast/>
  70. <acptgaplast/>
  71. <spcpgaplastday/>
  72. <barcdgaplastday/>
  73. <prcpgaplastday/>
  74. <bcollgaplastday/>
  75. <acptgaplastday/>
  76. <resncdlist/>
  77. <testcmtcd/>
  78. </tattype3>
  79. <tattype4>
  80. <tclscd/>
  81. <tclsnm/>
  82. <tattestcnt/>
  83. <testcnt/>
  84. <spcpgaplast/>
  85. <barcdgaplast/>
  86. <prcpgaplast/>
  87. <bcollgaplast/>
  88. <acptgaplast/>
  89. <spcpgaplastday/>
  90. <barcdgaplastday/>
  91. <prcpgaplastday/>
  92. <bcollgaplastday/>
  93. <acptgaplastday/>
  94. <tatrate/>
  95. </tattype4>
  96. <tattype5>
  97. <patnm/>
  98. <pid/>
  99. <bcno/>
  100. <tclsnm/>
  101. <spcnm/>
  102. <prcprgstdt/>
  103. <barcdprntdt/>
  104. <bcolldt/>
  105. <spcpsueacptdt/>
  106. <spcacptdt/>
  107. <lastreptdt/>
  108. <spcpgaplast/>
  109. <barcdgaplast/>
  110. <prcpgaplast/>
  111. <bcollgaplast/>
  112. <acptgaplast/>
  113. <spcpgaplastday/>
  114. <barcdgaplastday/>
  115. <prcpgaplastday/>
  116. <bcollgaplastday/>
  117. <acptgaplastday/>
  118. <resncdlist/>
  119. <testcmtcd/>
  120. <testresncmtcd/>
  121. <testcd/>
  122. </tattype5>
  123. <testgrupdetl/>
  124. <searchtest/>
  125. <page>
  126. <lastpage/>
  127. <now/>
  128. <total/>
  129. </page>
  130. <spccd>
  131. <chk/>
  132. <spccd/>
  133. <spcnm/>
  134. </spccd>
  135. </main>
  136. <send>
  137. <data1/>
  138. <codeflag/>
  139. <tclscd/>
  140. <tclsnm/>
  141. <resn/>
  142. <spccdlist/>
  143. <go>
  144. <tclscdlist/>
  145. <code2/>
  146. <code/>
  147. </go>
  148. </send>
  149. <init>
  150. </init>
  151. <hidden>
  152. <ref>
  153. <fromdd/>
  154. <todd/>
  155. <gbn>H1</gbn>
  156. <flag>1</flag>
  157. <yy/>
  158. <wcmb>1</wcmb>
  159. <ocmb>1</ocmb>
  160. <testcd/>
  161. <tclscdlist>
  162. <tclscdlist/>
  163. <tclsnmlist/>
  164. <tclscdlist2/>
  165. <testgrup/>
  166. </tclscdlist>
  167. <over/>
  168. <tattime>60</tattime>
  169. <tathour>0</tathour>
  170. <tatday>0</tatday>
  171. <fromtm/>
  172. <totm/>
  173. <cmtyn/>
  174. <serious/>
  175. <resnlist/>
  176. <page>1</page>
  177. <code>2</code>
  178. <code2/>
  179. <pid/>
  180. </ref>
  181. <spccd/>
  182. <waitmsg/>
  183. <calcchk/>
  184. <resnsavecnt/>
  185. <viewflag>1</viewflag>
  186. </hidden>
  187. </root>
  188. </instance>
  189. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  190. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  191. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  192. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  193. <script type="javascript" ev:event="xforms-ready">
  194. <![CDATA[
  195. fSetInit();
  196. ]]>
  197. </script>
  198. <submission id="TRLLS01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/tattype1"/>
  199. <submission id="TRLLS01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/tattype2"/>
  200. <submission id="TRLLS01303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/tattype3"/>
  201. <submission id="TRLLS01304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/tattype4"/>
  202. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  203. <submission id="TRLLF90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testgrupdetl"/>
  204. <submission id="TRLLF90102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/searchtest"/>
  205. <submission id="TRLLS01305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/tattype5"/>
  206. <submission id="TXLLS01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/savecnt"/>
  207. <submission id="TRLMR91000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/go" replace="instance" resultref="/root/main/spccd"/>
  208. </model>
  209. <script type="javascript">
  210. <![CDATA[
  211. //초기화
  212. function fSetInit(gbn){
  213. if(gbn == "2"){
  214. }else{
  215. model.setValue("/root/hidden/ref/fromdd", getCurrentDate());
  216. model.setValue("/root/hidden/ref/todd" , getCurrentDate());
  217. model.setValue("/root/hidden/ref/fromtm", "0000");
  218. model.setValue("/root/hidden/ref/totm" , "2359");
  219. //fBaseInfoRef("0000|0002|0106|0103");
  220. model.setValue("/root/send/codeflag", "0000|0106|0103|0404|0136|"); //0106 시행부서 // 0105 검체 // 0111 계 0404 TAT 지연사유 //0136 중증구분 0002|뺌
  221. submit("TRLZZ00101");
  222. model.removenode("/root/init/LB0106[1]");
  223. model.removenode("/root/init/LB0404[2]"); //[TAT지연사유] 제거
  224. model.removeNodeset("/root/main/tattype1");
  225. model.removeNodeset("/root/main/tattype2");
  226. model.removeNodeset("/root/main/tattype3");
  227. model.removeNodeset("/root/main/tattype4");
  228. model.removeNodeset("/root/main/tattype5");
  229. model.toggle("case1");
  230. pattype_btn.selected == true;
  231. fGridInit();
  232. //model.refresh();
  233. }
  234. }
  235. function fGetTatTypeList(){
  236. var tclscd = model.getValue("/root/hidden/ref/testcd");
  237. var tclsnmlist = model.getValue("/root/hidden/ref/tclscdlist/tclsnmlist");
  238. var vTime = parseInt(model.getValue("/root/hidden/ref/tatday")) * 1440 //일 -> 분
  239. + parseInt(model.getValue("/root/hidden/ref/tathour")) * 60 //시간 -> 분
  240. + parseInt(model.getValue("/root/hidden/ref/tattime"));
  241. var vLastPage; //검사별, 검체별, 항목별 페이지 처리시 마지막 페이지
  242. if(model.getValue("/root/hidden/ref/tclscdlist/tclsnmlist") == ""){
  243. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist","");
  244. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist2","");
  245. model.setValue("/root/hidden/ref/tclscdlist/testgrup","");
  246. model.refresh();
  247. }
  248. model.copyNode("/root/send/data1", "/root/hidden/ref");
  249. model.setValue("/root/send/data1/tattime", vTime);
  250. model.setValue("/root/hidden/waitmsg", "조회중입니다");
  251. opt_msg.refresh();
  252. model.removeNodeset("/root/main/page");
  253. if(pattype_btn.selected == true){
  254. if(tclscd == ""){
  255. messageBox("검사항목을 선택하여 주십시오.", "E");
  256. return;
  257. }
  258. model.removeNodeset("/root/main/tattype1");
  259. grd_patlist.nodeset = "/root/main/tattype1";
  260. grp_wait.visible = true;
  261. model.refresh();
  262. submit("TRLLS01301", false);
  263. vLastPage = model.getValue("/root/main/page/lastpage");
  264. //페이지 처리 조회후 최종건수 계산해야 하기때문에
  265. for(page = 2 ; page <= vLastPage ; page++){
  266. model.setValue("/root/send/data1/page", page);
  267. model.setValue("/root/hidden/waitmsg"
  268. , (model.getValue("/root/main/page/total") > 10000 * page ? 10000 * page : model.getValue("/root/main/page/total")) + "/" + model.getValue("/root/main/page/total")
  269. + " 조회중...");
  270. opt_msg.refresh();
  271. submit("TRLLS01301", false);
  272. }
  273. //조회 후 통계정보
  274. fSetTatInfo("A", vTime, "A", "");
  275. }else if(codetype_btn.selected == true){
  276. model.removeNodeset("/root/main/tattype2");
  277. grp_wait.visible = true;
  278. model.refresh();
  279. submit("TRLLS01302", false);
  280. //fCalcnt("1");
  281. }else if(bcnotype_btn.selected == true){
  282. //if(tclsnmlist == ""){
  283. // alert("검사항목을 선택하여 주십시오.");
  284. // return;
  285. //}
  286. model.removeNodeset("/root/main/tattype3");
  287. grd_bcnolist.nodeset = "/root/main/tattype3";
  288. grp_wait.visible = true;
  289. model.refresh();
  290. submit("TRLLS01303", false);
  291. vLastPage = model.getValue("/root/main/page/lastpage");
  292. //페이지 처리 조회후 최종건수 계산해야 하기때문에
  293. for(page = 2 ; page <= vLastPage ; page++){
  294. model.setValue("/root/send/data1/page", page);
  295. model.setValue("/root/hidden/waitmsg"
  296. , (model.getValue("/root/main/page/total") > 10000 * page ? 10000 * page : model.getValue("/root/main/page/total")) + "/" + model.getValue("/root/main/page/total")
  297. + " 조회중...");
  298. opt_msg.refresh();
  299. submit("TRLLS01303", false);
  300. }
  301. //조회 후 통계정보
  302. fSetTatInfo("B", vTime, "A", "");
  303. }
  304. else if(depttype_btn.selected == true){
  305. model.removeNodeset("/root/main/tattype4");
  306. grp_wait.visible = true;
  307. model.refresh();
  308. submit("TRLLS01304", false);
  309. //fCalcnt("2");
  310. }
  311. else if(itemtype_btn.selected == true){
  312. //if(tclsnmlist == ""){
  313. // alert("검사항목을 선택하여 주십시오.");
  314. // return;
  315. //}
  316. model.removeNodeset("/root/main/tattype5");
  317. grd_itemlist.nodeset = "/root/main/tattype5";
  318. grp_wait.visible = true;
  319. model.refresh();
  320. submit("TRLLS01305", false);
  321. vLastPage = model.getValue("/root/main/page/lastpage");
  322. //페이지 처리 조회후 최종건수 계산해야 하기때문에
  323. for(page = 2 ; page <= vLastPage ; page++){
  324. model.setValue("/root/send/data1/page", page);
  325. model.setValue("/root/hidden/waitmsg"
  326. , (model.getValue("/root/main/page/total") > 10000 * page ? 10000 * page : model.getValue("/root/main/page/total")) + "/" + model.getValue("/root/main/page/total")
  327. + " 조회중...");
  328. opt_msg.refresh();
  329. submit("TRLLS01305", false);
  330. }
  331. //조회 후 통계정보
  332. fSetTatInfo("C", vTime, "A", "");
  333. }
  334. //model.refresh();
  335. grp_wait.visible = false;
  336. fSetGridColVisible(rdo_vewflag.value);
  337. //model.refresh();
  338. }
  339. //조회 후 통계 정보 계산
  340. //pRef : 통계구분
  341. //pTime : Over Time시간
  342. //pFlag : 목표 tat구분
  343. //pGrdObj : Nodeset구분(재조회버튼클릭시)
  344. function fSetTatInfo(pRef, pTime, pFlag, pGrdObj){
  345. //-------- 조회 후 계산되어질 변수들
  346. var vPsuTotal, vBarTotal, vBcoTotal, vAcpTotal, vPrcTotal; //Total 건수
  347. var vPsuOver, vBarOver, vBcoOver, vAcpOver, vPrcOver; //Over 건수
  348. var vPsuTat, vBarTat, vBcoTat, vAcpTat, vPrcTat; //TAT 충족률
  349. var vPsuAvg, vBarAvg, vBcoAvg, vAcpAvg, vPrcAvg; //평균검사시간
  350. var vTime = pTime;
  351. var xPath = "";
  352. if(pRef == "A"){ //검사별
  353. xPath = "/root/main/tattype1";
  354. }else if(pRef == "B"){ //검체별
  355. xPath = "/root/main/tattype3";
  356. }else if(pRef == "C"){ //항목별
  357. xPath = "/root/main/tattype5";
  358. }
  359. if(model.getXPathValue('count('+ xPath +'[pid = ""]/spcpgaplast)') < 4){
  360. return; // 조회된 내역이 없을것이므로 return;
  361. }
  362. //Total 건수//Over 건수//Tat 충족률//평균검사시간
  363. if(pFlag == "A" || pFlag == "3"){ //가접수-최종
  364. vPsuTotal = model.getXPathValue('count('+ xPath +'[pid != "" and spcpgaplast != "" ]/spcpgaplast)');
  365. vPsuOver = model.getXPathValue('count('+ xPath +'[pid != "" and spcpgaplast > "' + vTime + '" ]/spcpgaplast)');
  366. vPsuTat = vPsuTotal < 1 ? "" : Math.round((100 - vPsuOver / vPsuTotal * 100) * Math.pow(10, -3*(-1)-1)) / Math.pow(10, -3*(-1)-1) + "%";
  367. vPsuAvg = vPsuTotal < 1 ? 0 : Math.round(model.getXPathValue('avg('+ xPath +'[pid != "" and spcpgaplast != "" ]/spcpgaplast)'));
  368. model.setValue(xPath + "[1]/spcpgaplast" , vPsuTotal);
  369. model.setValue(xPath + "[1]/spcpgaplastday" , vPsuTotal);
  370. model.setValue(xPath + "[2]/spcpgaplast" , vPsuOver);
  371. model.setValue(xPath + "[2]/spcpgaplastday" , vPsuOver);
  372. model.setValue(xPath + "[3]/spcpgaplast" , vPsuTat);
  373. model.setValue(xPath + "[3]/spcpgaplastday" , vPsuTat);
  374. //model.setValue(xPath + "[4]/spcpgaplast" , Math.floor(vPsuAvg/60) + "시간 " + vPsuAvg % 60 + "분");
  375. model.setValue(xPath + "[4]/spcpgaplast" , vPsuAvg);
  376. model.setValue(xPath + "[4]/spcpgaplastday" , Math.floor(vPsuAvg/1440) + "일 " + Math.floor((vPsuAvg % 1440) / 60 ) + "시간 " + vPsuAvg % 60 + "분");
  377. if(pFlag == "3" && pGrdObj == "Nodeset"){
  378. if(pRef == "A"){
  379. grd_patlist.nodeset = xPath + "[pid = '' or spcpgaplast > '" + vTime + "' ]";
  380. }else if(pRef == "B"){
  381. grd_bcnolist.nodeset = xPath + "[pid = '' or spcpgaplast > '" + vTime + "' ]";
  382. }else if(pRef == "C"){
  383. grd_itemlist.nodeset = xPath + "[pid = '' or spcpgaplast > '" + vTime + "' ]";
  384. }
  385. }
  386. }
  387. if(pFlag == "A" || pFlag == "5"){ //바코드-최종
  388. vBarTotal = model.getXPathValue('count('+ xPath +'[pid != "" and barcdgaplast != "" ]/barcdgaplast)');
  389. vBarOver = model.getXPathValue('count('+ xPath +'[pid != "" and barcdgaplast > "' + vTime + '" ]/barcdgaplast)');
  390. vBarTat = vBarTotal < 1 ? "" : Math.round((100 - vBarOver / vBarTotal * 100) * Math.pow(10, -3*(-1)-1)) / Math.pow(10, -3*(-1)-1) + "%";
  391. vBarAvg = vBarTotal < 1 ? 0 : Math.round(model.getXPathValue('avg('+ xPath +'[pid != "" and barcdgaplast != "" ]/barcdgaplast)'));
  392. model.setValue(xPath + "[1]/barcdgaplast" , vBarTotal);
  393. model.setValue(xPath + "[1]/barcdgaplastday" , vBarTotal);
  394. model.setValue(xPath + "[2]/barcdgaplast" , vBarOver);
  395. model.setValue(xPath + "[2]/barcdgaplastday" , vBarOver);
  396. model.setValue(xPath + "[3]/barcdgaplast" , vBarTat);
  397. model.setValue(xPath + "[3]/barcdgaplastday" , vBarTat);
  398. //model.setValue(xPath + "[4]/barcdgaplast" , Math.floor(vBarAvg/60) + "시간 " + vBarAvg % 60 + "분");
  399. model.setValue(xPath + "[4]/barcdgaplast" , vBarAvg);
  400. model.setValue(xPath + "[4]/barcdgaplastday" , Math.floor(vBarAvg/1440) + "일 " + Math.floor((vBarAvg % 1440) / 60 ) + "시간 " + vBarAvg % 60 + "분");
  401. if(pFlag == "5" && pNode == "Nodeset"){
  402. if(pRef == "A"){
  403. grd_patlist.nodeset = xPath + "[pid = '' or barcdgaplast > '" + vTime + "' ]";
  404. }else if(pRef == "B"){
  405. grd_bcnolist.nodeset = xPath + "[pid = '' or barcdgaplast > '" + vTime + "' ]";
  406. }else if(pRef == "C"){
  407. grd_itemlist.nodeset = xPath + "[pid = '' or barcdgaplast > '" + vTime + "' ]";
  408. }
  409. }
  410. }
  411. if(pFlag == "A" || pFlag == "4"){ //처방-최종
  412. vPrcTotal = model.getXPathValue('count('+ xPath +'[pid != "" and prcpgaplast != "" ]/prcpgaplast)');
  413. vPrcOver = model.getXPathValue('count('+ xPath +'[pid != "" and prcpgaplast > "' + vTime + '" ]/prcpgaplast)');
  414. vPrcTat = vPrcTotal < 1 ? "" : Math.round((100 - vPrcOver / vPrcTotal * 100) * Math.pow(10, -3*(-1)-1)) / Math.pow(10, -3*(-1)-1) + "%";
  415. vPrcAvg = vPrcTotal < 1 ? 0 : Math.round(model.getXPathValue('avg('+ xPath +'[pid != "" and prcpgaplast != "" ]/prcpgaplast)'));
  416. model.setValue(xPath + "[1]/prcpgaplast" , vPrcTotal);
  417. model.setValue(xPath + "[1]/prcpgaplastday" , vPrcTotal);
  418. model.setValue(xPath + "[2]/prcpgaplast" , vPrcOver);
  419. model.setValue(xPath + "[2]/prcpgaplastday" , vPrcOver);
  420. model.setValue(xPath + "[3]/prcpgaplast" , vPrcTat);
  421. model.setValue(xPath + "[3]/prcpgaplastday" , vPrcTat);
  422. //model.setValue(xPath + "[4]/prcpgaplast" , Math.floor(vPrcAvg/60) + "시간 " + vPrcAvg % 60 + "분");
  423. model.setValue(xPath + "[4]/prcpgaplast" , vPrcAvg);
  424. model.setValue(xPath + "[4]/prcpgaplastday" , Math.floor(vPrcAvg/1440) + "일 " + Math.floor((vPrcAvg % 1440) / 60 ) + "시간 " + vPrcAvg % 60 + "분");
  425. if(pFlag == "4" && pGrdObj == "Nodeset"){
  426. if(pRef == "A"){
  427. grd_patlist.nodeset = xPath + "[pid = '' or prcpgaplast > '" + vTime + "' ]";
  428. }else if(pRef == "B"){
  429. grd_bcnolist.nodeset = xPath + "[pid = '' or prcpgaplast > '" + vTime + "' ]";
  430. }else if(pRef == "C"){
  431. grd_itemlist.nodeset = xPath + "[pid = '' or prcpgaplast > '" + vTime + "' ]";
  432. }
  433. }
  434. }
  435. if(pFlag == "A" || pFlag == "2"){ //채혈-최종
  436. vBcoTotal = model.getXPathValue('count('+ xPath +'[pid != "" and bcollgaplast != "" ]/bcollgaplast)');
  437. vBcoOver = model.getXPathValue('count('+ xPath +'[pid != "" and bcollgaplast > "' + vTime + '" ]/bcollgaplast)');
  438. vBcoTat = vBcoTotal < 1 ? "" : Math.round((100 - vBcoOver / vBcoTotal * 100) * Math.pow(10, -3*(-1)-1)) / Math.pow(10, -3*(-1)-1) + "%";
  439. vBcoAvg = vBcoTotal < 1 ? 0 : Math.round(model.getXPathValue('avg('+ xPath +'[pid != "" and bcollgaplast != "" ]/bcollgaplast)'));
  440. model.setValue(xPath + "[1]/bcollgaplast" , vBcoTotal);
  441. model.setValue(xPath + "[1]/bcollgaplastday" , vBcoTotal);
  442. model.setValue(xPath + "[2]/bcollgaplast" , vBcoOver);
  443. model.setValue(xPath + "[2]/bcollgaplastday" , vBcoOver);
  444. model.setValue(xPath + "[3]/bcollgaplast" , vBcoTat);
  445. model.setValue(xPath + "[3]/bcollgaplastday" , vBcoTat);
  446. //model.setValue(xPath + "[4]/bcollgaplast" , Math.floor(vBcoAvg/60) + "시간 " + vBcoAvg % 60 + "분");
  447. model.setValue(xPath + "[4]/bcollgaplast" , vBcoAvg);
  448. model.setValue(xPath + "[4]/bcollgaplastday" , Math.floor(vBcoAvg/1440) + "일 " + Math.floor((vBcoAvg % 1440) / 60 ) + "시간 " + vBcoAvg % 60 + "분");
  449. if(pFlag == "2" && pGrdObj == "Nodeset"){
  450. if(pRef == "A"){
  451. grd_patlist.nodeset = xPath + "[pid = '' or bcollgaplast > '" + vTime + "' ]";
  452. }else if(pRef == "B"){
  453. grd_bcnolist.nodeset = xPath + "[pid = '' or bcollgaplast > '" + vTime + "' ]";
  454. }else if(pRef == "C"){
  455. grd_itemlist.nodeset = xPath + "[pid = '' or bcollgaplast > '" + vTime + "' ]";
  456. }
  457. }
  458. }
  459. if(pFlag == "A" || pFlag == "1"){ //접수-최종
  460. vAcpTotal = model.getXPathValue('count('+ xPath +'[pid != "" and acptgaplast != "" ]/acptgaplast)');
  461. vAcpOver = model.getXPathValue('count('+ xPath +'[pid != "" and acptgaplast > "' + vTime + '" ]/acptgaplast)');
  462. vAcpTat = vAcpTotal < 1 ? "" : Math.round((100 - vAcpOver / vAcpTotal * 100) * Math.pow(10, -3*(-1)-1)) / Math.pow(10, -3*(-1)-1) + "%";
  463. vAcpAvg = vAcpTotal < 1 ? 0 : Math.round(model.getXPathValue('avg('+ xPath +'[pid != "" and acptgaplast != "" ]/acptgaplast)'));
  464. model.setValue(xPath + "[1]/acptgaplast" , vAcpTotal);
  465. model.setValue(xPath + "[1]/acptgaplastday" , vAcpTotal);
  466. model.setValue(xPath + "[2]/acptgaplast" , vAcpOver);
  467. model.setValue(xPath + "[2]/acptgaplastday" , vAcpOver);
  468. model.setValue(xPath + "[3]/acptgaplast" , vAcpTat);
  469. model.setValue(xPath + "[3]/acptgaplastday" , vAcpTat);
  470. //model.setValue(xPath + "[4]/acptgaplast" , Math.floor(vAcpAvg/60) + "시간 " + vAcpAvg % 60 + "분");
  471. model.setValue(xPath + "[4]/acptgaplast" , vAcpAvg);
  472. model.setValue(xPath + "[4]/acptgaplastday" , Math.floor(vAcpAvg/1440) + "일 " + Math.floor((vAcpAvg % 1440) / 60 ) + "시간 " + vAcpAvg % 60 + "분");
  473. if(pGrdObj == "Nodeset"){ //전체 선택 후 재조회시 접수-최종 기준으로 nodeset 변경
  474. if(pRef == "A"){
  475. grd_patlist.nodeset = xPath + "[pid = '' or acptgaplast > '" + vTime + "' ]";
  476. }else if(pRef == "B"){
  477. grd_bcnolist.nodeset = xPath + "[pid = '' or acptgaplast > '" + vTime + "' ]";
  478. }else if(pRef == "C"){
  479. grd_itemlist.nodeset = xPath + "[pid = '' or acptgaplast > '" + vTime + "' ]";
  480. }
  481. }
  482. }
  483. }
  484. //사용안함
  485. function fCalcnt(gbn){
  486. if(gbn == "1"){
  487. for(i = 1; i < grd_codelist.rows ; i++){
  488. var tatrate = model.getValue("/root/main/tattype2["+i+"]/tatrate");
  489. var ext = Math.pow(10, 2);
  490. var caltatrate = Math.round(tatrate * ext) / ext;
  491. model.setValue("/root/main/tattype2["+i+"]/tatrate", caltatrate);
  492. }
  493. }else if(gbn == "2"){
  494. for(i = 1; i < grd_deptlist.rows ; i++){
  495. var tatcnt = model.getValue("/root/main/tattype4["+i+"]/tattestcnt");
  496. var tclscnt = model.getValue("/root/main/tattype4["+i+"]/testcnt");
  497. var tatrate = tatcnt/tclscnt * 100;
  498. var ext = Math.pow(10, 2);
  499. var caltatrate = Math.round(tatrate * ext) / ext;
  500. model.setValue("/root/main/tattype4["+i+"]/tatrate", caltatrate);
  501. }
  502. }
  503. model.refresh();
  504. }
  505. function fGridInit() {
  506. caption8.visible = false;
  507. caption10.visible = false;
  508. input1.visible = false;
  509. ipt_tclscd.visible = true;
  510. caption6.visible = true;
  511. combo3.visible = false;
  512. ipt_tclscdlist.visible = false;
  513. img1.visible = false;
  514. btn_saveresn.visible = false;
  515. if(pattype_btn.selected == true){
  516. model.toggle("case1");
  517. caption8.visible = true;
  518. caption10.visible = true;
  519. input1.visible = true;
  520. btn_saveresn.visible = false; //사유저장버튼
  521. checkbox2.visible = false; //사유여부
  522. grp_resn.visible = false; //사유일괄지정
  523. grp_reref.visible = true; //재계산
  524. btn_spc.visible = false;
  525. }
  526. else if(codetype_btn.selected == true){
  527. model.toggle("case2");
  528. caption8.visible = true;
  529. caption10.visible = true;
  530. input1.visible = true;
  531. btn_saveresn.visible = false; //사유저장버튼
  532. checkbox2.visible = false; //사유여부
  533. grp_resn.visible = false; //사유일괄지정
  534. grp_reref.visible = false; //재계산
  535. btn_spc.visible = false;
  536. }else if(bcnotype_btn.selected == true){
  537. ipt_tclscd.visible = false;
  538. caption6.visible = true;
  539. combo3.visible = true;
  540. ipt_tclscdlist.visible = true;
  541. img1.visible = true;
  542. caption8.visible = true;
  543. caption10.visible = true;
  544. input1.visible = true;
  545. btn_saveresn.visible = true; //사유저장버튼
  546. checkbox2.visible = true; //사유여부
  547. model.setValue("/root/hidden/ref/tclscdlist/testgrup", "");
  548. model.removeNodeset("/root/main/testgrupdetl");
  549. grp_resn.visible = true; //사유일괄지정
  550. grp_reref.visible = true; //재계산
  551. btn_spc.visible = true;
  552. fSetPopUpTclscdList();
  553. model.toggle("case3");
  554. }else if(depttype_btn.selected == true){
  555. model.toggle("case4");
  556. caption8.visible = true;
  557. caption10.visible = true;
  558. input1.visible = true;
  559. ipt_tclscd.visible = false;
  560. caption6.visible = false;
  561. btn_saveresn.visible = false; //사유저장버튼
  562. checkbox2.visible = false; //사유여부
  563. grp_resn.visible = false; //사유일괄지정
  564. grp_reref.visible = false; //재계산
  565. btn_spc.visible = false;
  566. }else if(itemtype_btn.selected == true){
  567. ipt_tclscd.visible = false;
  568. caption6.visible = true;
  569. combo3.visible = true;
  570. ipt_tclscdlist.visible = true;
  571. img1.visible = true;
  572. caption8.visible = true;
  573. caption10.visible = true;
  574. input1.visible = true;
  575. btn_saveresn.visible = true;
  576. checkbox2.visible = true; //사유여부
  577. model.setValue("/root/hidden/ref/tclscdlist/testgrup", "");
  578. model.removeNodeset("/root/main/testgrupdetl");
  579. grp_resn.visible = true; //사유일괄지정
  580. grp_reref.visible = true; //재계산
  581. btn_spc.visible = false;
  582. fSetPopUpTclscdList();
  583. model.toggle("case5");
  584. }
  585. fSetGridColVisible(rdo_vewflag.value);
  586. }
  587. function fSelectTestGrup(){
  588. model.makeValue("/root/send/testgrupnm", combo3.label);
  589. submit("TRLLF90401" ,false);
  590. fSetPopUpTclscdList();
  591. }
  592. function fSetPopUpTclscdList(){
  593. var count = getNodesetCount("/root/main/testgrupdetl");
  594. if(count > 0){
  595. var sendtclsnm = model.getValue("/root/main/testgrupdetl[1]/tclsnm");
  596. var sendtclscd = model.getValue("/root/main/testgrupdetl[1]/tclscd");
  597. var sendtclscd2 = model.getValue("/root/main/testgrupdetl[1]/tclscd");
  598. // 검사그룹 상세 목록 없을때
  599. if(sendtclsnm == ""){
  600. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "");
  601. model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", "");
  602. }else{ // 검사그룹 상세 목록 있을때
  603. for(i=2; i<= count; i++){
  604. sendtclsnm = sendtclsnm + ", " + model.getValue("/root/main/testgrupdetl["+i+"]/tclsnm");
  605. //sendtclscd = sendtclscd + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  606. sendtclscd = sendtclscd + "','" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  607. sendtclscd2 = sendtclscd2 + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  608. }
  609. model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", sendtclsnm);
  610. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "'" + sendtclscd + "'");
  611. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist2", sendtclscd2);
  612. }
  613. model.refresh();
  614. }else if(count == 0){
  615. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "");
  616. model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", "");
  617. model.refresh();
  618. }
  619. }
  620. function fGetTestCd(Flag) {
  621. if(Flag != "popup") { //다른화면에서 팝업으로 띄울때가 아니라면 검체코드를 삭제 시켜준다. 그래야 다른 검사 조회시 검체코드가 셋팅된다.
  622. model.resetInstanceNode("/root/hidden/spccd");
  623. }
  624. model.setvalue("/root/hidden/ref/testcd", ipt_tclscd.currentText);
  625. if((Flag == "tclscd") || (Flag == "popup")) { //검사코드(or 다른화면에서 팝업으로 띄울때) 검색
  626. model.setValue("/root/send/tclscd", model.getValue("/root/hidden/ref/testcd").toUpperCase());
  627. model.setValue("/root/send/tclsnm", "");
  628. } else if(Flag == "tclsnm") { //검색명 검색
  629. model.setValue("/root/send/tclscd", "");
  630. model.setValue("/root/send/tclsnm", model.getValue("/root/hidden/tclsnm"));
  631. }
  632. //alert(model.getValue("/root/send/tclscd"));
  633. submit("TRLLF90102");
  634. var count = getNodesetCount("/root/main/searchtest");
  635. if(count < 2) {
  636. fGetTcls("1");
  637. }else {
  638. if(Flag == "popup") { //팝업으로 띄웠을 경우 동일한 검사를 조회한다.
  639. var row = grd_searchtest.findRow(model.getValue("/root/hidden/ref/testcd").toUpperCase(), 1, 1, true, true);
  640. fGetTcls(row);
  641. } else { //검색된 검사가 많을 경우
  642. grd_searchtest.attribute("visibility") = "visible";
  643. }
  644. }
  645. }
  646. function fGetTcls(flag) {
  647. //if(flag != "") { //로우가 정해진 경우
  648. model.setValue("/root/hidden/ref/testcd", model.getValue("/root/main/searchtest["+ flag +"]/tclscd"));
  649. //model.setValue("/root/hidden/tclsnm", model.getValue("/root/main/searchtest["+ flag +"]/tclsnm"));
  650. //} else { //로우가 정해지지 않은 경우(그리드에서 선택시)
  651. // model.setValue("/root/hidden/tclscd", model.getValue("/root/main/searchtest["+ grd_searchtest.row +"]/tclscd"));
  652. // model.setValue("/root/hidden/tclsnm", model.getValue("/root/main/searchtest["+ grd_searchtest.row +"]/tclsnm"));
  653. //}
  654. grd_searchtest.attribute("visibility") = "hidden";
  655. model.refresh();
  656. }
  657. function fKeyEvent(){
  658. if(event.keyCode == "13"){
  659. if(event.target == "ipt_tclscd"){
  660. fGetTestCd("tclscd");
  661. ipt_tclscd.selBegin = 0;
  662. ipt_tclscd.selEnd = ipt_tclscd.currentText.length;
  663. model.setFocus("ipt_tclsnm");
  664. } else if(event.target == "ipt_tclsnm"){
  665. model.setvalue("/root/hidden/tclsnm", ipt_tclsnm.currentText);
  666. fGetTestCd("tclsnm");
  667. ipt_tclsnm.selBegin = 0;
  668. ipt_tclsnm.selEnd = ipt_tclsnm.currentText.length;
  669. }
  670. }
  671. }
  672. function fExeSaveToExcel() {
  673. if(pattype_btn.selected == true) { //일별
  674. fSaveExcel("grd_patlist");
  675. } else if(codetype_btn.selected == true) { //월별
  676. fSaveExcel("grd_codelist");
  677. } else if(bcnotype_btn.selected == true) { //분기별
  678. fSaveExcel("grd_bcnolist");
  679. } else if(depttype_btn.selected == true) { //연별
  680. fSaveExcel("grd_deptlist");
  681. }
  682. else if(itemtype_btn.selected == true) { //항목별
  683. fSaveExcel("grd_itemlist");
  684. }
  685. }
  686. function fSetResnSave(){
  687. /*
  688. if(grd_bcnolist.rows > 1){
  689. grd_bcnolist.rowStatus(1) = 0;
  690. grd_bcnolist.rowStatus(2) = 0;
  691. grd_bcnolist.rowStatus(3) = 0;
  692. grd_bcnolist.rowStatus(4) = 0;
  693. }
  694. var grddata = getGridUpdateData(grd_bcnolist);
  695. model.setValue("/root/send/resn", grddata);
  696. submit("TXLLS01301");*/
  697. var nodeList, xPath;
  698. model.removeNodeset("/root/hidden/savecnt/cnt");
  699. if(bcnotype_btn.selected == true){
  700. xPath = "/root/main/tattype3";
  701. nodeList = instance1.selectNodes(xPath + "[pid != '' and testcmtcd != '' and testcmtcd != '-']");
  702. }else if(itemtype_btn.selected == true){
  703. xPath = "/root/main/tattype5";
  704. nodeList = instance1.selectNodes(xPath + "[pid != '' and testresncmtcd != '' and testresncmtcd != '-']");
  705. }
  706. var updataData = getNodeListCSV(nodeList);
  707. if(updataData == null){
  708. messageBox("저장할 내역이 없습니다.", "I");;
  709. return;
  710. }
  711. model.setValue("/root/send/resn", updataData);
  712. if(submit("TXLLS01301", false)){
  713. if(parseInt(model.getValue("/root/hidden/savecnt/cnt")) > 0){
  714. messageBox(model.getValue("/root/hidden/savecnt/cnt") + "건 정상처리 되었습니다.", "I");;
  715. }
  716. //messageBox(model.getValue("/root/hidden/savecnt/cnt") + "건 " +model.getValue("/root/properties/error/msg"), "I");
  717. fGetTatTypeList();
  718. }
  719. }
  720. //재계산
  721. function fReCalc(pGrdObj){
  722. var vTime = parseInt(model.getValue("/root/hidden/ref/tatday")) * 1440 //일 -> 분
  723. + parseInt(model.getValue("/root/hidden/ref/tathour")) * 60 //시간 -> 분
  724. + parseInt(model.getValue("/root/hidden/ref/tattime"));
  725. var vFlag = "";
  726. var vChk = model.getValue("/root/hidden/calcchk") == "Y" ? "A" : model.getValue("/root/hidden/ref/flag");
  727. if(pattype_btn.selected == true){
  728. vFlag = "A";
  729. }else if(bcnotype_btn.selected == true){
  730. vFlag = "B";
  731. }else if(itemtype_btn.selected == true){
  732. vFlag = "C";
  733. }
  734. fSetTatInfo(vFlag, vTime, vChk, pGrdObj);
  735. model.refresh();
  736. }
  737. //표시 구분에 따른 그리드 Col Visible 설정
  738. function fSetGridColVisible(pFlag){
  739. if(pFlag == 1){ //분
  740. if(pattype_btn.selected == true) { //검사별
  741. grd_patlist.colHidden(grd_patlist.colRef("spcpgaplastday")) = true;
  742. grd_patlist.colHidden(grd_patlist.colRef("barcdgaplastday")) = true;
  743. grd_patlist.colHidden(grd_patlist.colRef("prcpgaplastday")) = true;
  744. grd_patlist.colHidden(grd_patlist.colRef("bcollgaplastday")) = true;
  745. grd_patlist.colHidden(grd_patlist.colRef("acptgaplastday")) = true;
  746. grd_patlist.colHidden(grd_patlist.colRef("spcpgaplast")) = false;
  747. grd_patlist.colHidden(grd_patlist.colRef("barcdgaplast")) = false;
  748. grd_patlist.colHidden(grd_patlist.colRef("prcpgaplast")) = false;
  749. grd_patlist.colHidden(grd_patlist.colRef("bcollgaplast")) = false;
  750. grd_patlist.colHidden(grd_patlist.colRef("acptgaplast")) = false;
  751. }else if(codetype_btn.selected == true) { //시간대별
  752. grd_codelist.colHidden(grd_codelist.colRef("avgtestday")) = true;
  753. grd_codelist.colHidden(grd_codelist.colRef("avgoverday")) = true;
  754. grd_codelist.colHidden(grd_codelist.colRef("mintestday")) = true;
  755. grd_codelist.colHidden(grd_codelist.colRef("maxtestday")) = true;
  756. grd_codelist.colHidden(grd_codelist.colRef("avgtesttime")) = false;
  757. grd_codelist.colHidden(grd_codelist.colRef("avgovertime")) = false;
  758. grd_codelist.colHidden(grd_codelist.colRef("mintesttime")) = false;
  759. grd_codelist.colHidden(grd_codelist.colRef("maxtesttime")) = false;
  760. }else if(bcnotype_btn.selected == true) { //검체별
  761. grd_bcnolist.colHidden(grd_bcnolist.colRef("spcpgaplastday")) = true;
  762. grd_bcnolist.colHidden(grd_bcnolist.colRef("barcdgaplastday")) = true;
  763. grd_bcnolist.colHidden(grd_bcnolist.colRef("prcpgaplastday")) = true;
  764. grd_bcnolist.colHidden(grd_bcnolist.colRef("bcollgaplastday")) = true;
  765. grd_bcnolist.colHidden(grd_bcnolist.colRef("acptgaplastday")) = true;
  766. grd_bcnolist.colHidden(grd_bcnolist.colRef("spcpgaplast")) = false;
  767. grd_bcnolist.colHidden(grd_bcnolist.colRef("barcdgaplast")) = false;
  768. grd_bcnolist.colHidden(grd_bcnolist.colRef("prcpgaplast")) = false;
  769. grd_bcnolist.colHidden(grd_bcnolist.colRef("bcollgaplast")) = false;
  770. grd_bcnolist.colHidden(grd_bcnolist.colRef("acptgaplast")) = false;
  771. }else if(depttype_btn.selected == true) { //부서별
  772. grd_deptlist.colHidden(grd_deptlist.colRef("spcpgaplastday")) = true;
  773. grd_deptlist.colHidden(grd_deptlist.colRef("barcdgaplastday")) = true;
  774. grd_deptlist.colHidden(grd_deptlist.colRef("prcpgaplastday")) = true;
  775. grd_deptlist.colHidden(grd_deptlist.colRef("bcollgaplastday")) = true;
  776. grd_deptlist.colHidden(grd_deptlist.colRef("acptgaplastday")) = true;
  777. grd_deptlist.colHidden(grd_deptlist.colRef("spcpgaplast")) = false;
  778. grd_deptlist.colHidden(grd_deptlist.colRef("barcdgaplast")) = false;
  779. grd_deptlist.colHidden(grd_deptlist.colRef("prcpgaplast")) = false;
  780. grd_deptlist.colHidden(grd_deptlist.colRef("bcollgaplast")) = false;
  781. grd_deptlist.colHidden(grd_deptlist.colRef("acptgaplast")) = false;
  782. }else if(itemtype_btn.selected == true) { //항목별
  783. grd_itemlist.colHidden(grd_itemlist.colRef("spcpgaplastday")) = true;
  784. grd_itemlist.colHidden(grd_itemlist.colRef("barcdgaplastday")) = true;
  785. grd_itemlist.colHidden(grd_itemlist.colRef("prcpgaplastday")) = true;
  786. grd_itemlist.colHidden(grd_itemlist.colRef("bcollgaplastday")) = true;
  787. grd_itemlist.colHidden(grd_itemlist.colRef("acptgaplastday")) = true;
  788. grd_itemlist.colHidden(grd_itemlist.colRef("spcpgaplast")) = false;
  789. grd_itemlist.colHidden(grd_itemlist.colRef("barcdgaplast")) = false;
  790. grd_itemlist.colHidden(grd_itemlist.colRef("prcpgaplast")) = false;
  791. grd_itemlist.colHidden(grd_itemlist.colRef("bcollgaplast")) = false;
  792. grd_itemlist.colHidden(grd_itemlist.colRef("acptgaplast")) = false;
  793. // debugger;
  794. // var term = model.getValue("root/hidden/ref/tattime");
  795. // //이재오 작업 20120515일
  796. // for(i = 1 ; i < grd_itemlist.rows ; i ++){
  797. // var tclsterm = model.getValue("/root/main/tattype5["+i+"]/spcpgaplastday");
  798. // if(parseInt(tclsterm) >= parseInt(term)){
  799. // grd_itemlist.rowStyle(i, "data", "background-color") = "#7BE6B7";
  800. // }
  801. // }
  802. }
  803. }else if(pFlag == 2){ //일시분
  804. if(pattype_btn.selected == true) { //검사별
  805. grd_patlist.colHidden(grd_patlist.colRef("spcpgaplastday")) = false;
  806. grd_patlist.colHidden(grd_patlist.colRef("barcdgaplastday")) = false;
  807. grd_patlist.colHidden(grd_patlist.colRef("prcpgaplastday")) = false;
  808. grd_patlist.colHidden(grd_patlist.colRef("bcollgaplastday")) = false;
  809. grd_patlist.colHidden(grd_patlist.colRef("acptgaplastday")) = false;
  810. grd_patlist.colHidden(grd_patlist.colRef("spcpgaplast")) = true;
  811. grd_patlist.colHidden(grd_patlist.colRef("barcdgaplast")) = true;
  812. grd_patlist.colHidden(grd_patlist.colRef("prcpgaplast")) = true;
  813. grd_patlist.colHidden(grd_patlist.colRef("bcollgaplast")) = true;
  814. grd_patlist.colHidden(grd_patlist.colRef("acptgaplast")) = true;
  815. }else if(codetype_btn.selected == true) { //시간대별
  816. grd_codelist.colHidden(grd_codelist.colRef("avgtestday")) = false;
  817. grd_codelist.colHidden(grd_codelist.colRef("avgoverday")) = false;
  818. grd_codelist.colHidden(grd_codelist.colRef("mintestday")) = false;
  819. grd_codelist.colHidden(grd_codelist.colRef("maxtestday")) = false;
  820. grd_codelist.colHidden(grd_codelist.colRef("avgtesttime")) = true;
  821. grd_codelist.colHidden(grd_codelist.colRef("avgovertime")) = true;
  822. grd_codelist.colHidden(grd_codelist.colRef("mintesttime")) = true;
  823. grd_codelist.colHidden(grd_codelist.colRef("maxtesttime")) = true;
  824. }else if(bcnotype_btn.selected == true) { //검체별
  825. grd_bcnolist.colHidden(grd_bcnolist.colRef("spcpgaplastday")) = false;
  826. grd_bcnolist.colHidden(grd_bcnolist.colRef("barcdgaplastday")) = false;
  827. grd_bcnolist.colHidden(grd_bcnolist.colRef("prcpgaplastday")) = false;
  828. grd_bcnolist.colHidden(grd_bcnolist.colRef("bcollgaplastday")) = false;
  829. grd_bcnolist.colHidden(grd_bcnolist.colRef("acptgaplastday")) = false;
  830. grd_bcnolist.colHidden(grd_bcnolist.colRef("spcpgaplast")) = true;
  831. grd_bcnolist.colHidden(grd_bcnolist.colRef("barcdgaplast")) = true;
  832. grd_bcnolist.colHidden(grd_bcnolist.colRef("prcpgaplast")) = true;
  833. grd_bcnolist.colHidden(grd_bcnolist.colRef("bcollgaplast")) = true;
  834. grd_bcnolist.colHidden(grd_bcnolist.colRef("acptgaplast")) = true;
  835. }else if(depttype_btn.selected == true) { //부서별
  836. grd_deptlist.colHidden(grd_deptlist.colRef("spcpgaplastday")) = false;
  837. grd_deptlist.colHidden(grd_deptlist.colRef("barcdgaplastday")) = false;
  838. grd_deptlist.colHidden(grd_deptlist.colRef("prcpgaplastday")) = false;
  839. grd_deptlist.colHidden(grd_deptlist.colRef("bcollgaplastday")) = false;
  840. grd_deptlist.colHidden(grd_deptlist.colRef("acptgaplastday")) = false;
  841. grd_deptlist.colHidden(grd_deptlist.colRef("spcpgaplast")) = true;
  842. grd_deptlist.colHidden(grd_deptlist.colRef("barcdgaplast")) = true;
  843. grd_deptlist.colHidden(grd_deptlist.colRef("prcpgaplast")) = true;
  844. grd_deptlist.colHidden(grd_deptlist.colRef("bcollgaplast")) = true;
  845. grd_deptlist.colHidden(grd_deptlist.colRef("acptgaplast")) = true;
  846. }else if(itemtype_btn.selected == true) { //항목별
  847. grd_itemlist.colHidden(grd_itemlist.colRef("spcpgaplastday")) = false;
  848. grd_itemlist.colHidden(grd_itemlist.colRef("barcdgaplastday")) = false;
  849. grd_itemlist.colHidden(grd_itemlist.colRef("prcpgaplastday")) = false;
  850. grd_itemlist.colHidden(grd_itemlist.colRef("bcollgaplastday")) = false;
  851. grd_itemlist.colHidden(grd_itemlist.colRef("acptgaplastday")) = false;
  852. grd_itemlist.colHidden(grd_itemlist.colRef("spcpgaplast")) = true;
  853. grd_itemlist.colHidden(grd_itemlist.colRef("barcdgaplast")) = true;
  854. grd_itemlist.colHidden(grd_itemlist.colRef("prcpgaplast")) = true;
  855. grd_itemlist.colHidden(grd_itemlist.colRef("bcollgaplast")) = true;
  856. grd_itemlist.colHidden(grd_itemlist.colRef("acptgaplast")) = true;
  857. }
  858. }else if(pFlag == 0){ //전체
  859. if(pattype_btn.selected == true) { //검사별
  860. grd_patlist.colHidden(grd_patlist.colRef("spcpgaplastday")) = false;
  861. grd_patlist.colHidden(grd_patlist.colRef("barcdgaplastday")) = false;
  862. grd_patlist.colHidden(grd_patlist.colRef("prcpgaplastday")) = false;
  863. grd_patlist.colHidden(grd_patlist.colRef("bcollgaplastday")) = false;
  864. grd_patlist.colHidden(grd_patlist.colRef("acptgaplastday")) = false;
  865. grd_patlist.colHidden(grd_patlist.colRef("spcpgaplast")) = false;
  866. grd_patlist.colHidden(grd_patlist.colRef("barcdgaplast")) = false;
  867. grd_patlist.colHidden(grd_patlist.colRef("prcpgaplast")) = false;
  868. grd_patlist.colHidden(grd_patlist.colRef("bcollgaplast")) = false;
  869. grd_patlist.colHidden(grd_patlist.colRef("acptgaplast")) = false;
  870. }else if(codetype_btn.selected == true) { //시간대별
  871. grd_codelist.colHidden(grd_codelist.colRef("avgtestday")) = false;
  872. grd_codelist.colHidden(grd_codelist.colRef("avgoverday")) = false;
  873. grd_codelist.colHidden(grd_codelist.colRef("mintestday")) = false;
  874. grd_codelist.colHidden(grd_codelist.colRef("maxtestday")) = false;
  875. grd_codelist.colHidden(grd_codelist.colRef("avgtesttime")) = false;
  876. grd_codelist.colHidden(grd_codelist.colRef("avgovertime")) = false;
  877. grd_codelist.colHidden(grd_codelist.colRef("mintesttime")) = false;
  878. grd_codelist.colHidden(grd_codelist.colRef("maxtesttime")) = false;
  879. }else if(bcnotype_btn.selected == true) { //검체별
  880. grd_bcnolist.colHidden(grd_bcnolist.colRef("spcpgaplastday")) = false;
  881. grd_bcnolist.colHidden(grd_bcnolist.colRef("barcdgaplastday")) = false;
  882. grd_bcnolist.colHidden(grd_bcnolist.colRef("prcpgaplastday")) = false;
  883. grd_bcnolist.colHidden(grd_bcnolist.colRef("bcollgaplastday")) = false;
  884. grd_bcnolist.colHidden(grd_bcnolist.colRef("acptgaplastday")) = false;
  885. grd_bcnolist.colHidden(grd_bcnolist.colRef("spcpgaplast")) = false;
  886. grd_bcnolist.colHidden(grd_bcnolist.colRef("barcdgaplast")) = false;
  887. grd_bcnolist.colHidden(grd_bcnolist.colRef("prcpgaplast")) = false;
  888. grd_bcnolist.colHidden(grd_bcnolist.colRef("bcollgaplast")) = false;
  889. grd_bcnolist.colHidden(grd_bcnolist.colRef("acptgaplast")) = false;
  890. }else if(depttype_btn.selected == true) { //부서별
  891. grd_deptlist.colHidden(grd_deptlist.colRef("spcpgaplastday")) = false;
  892. grd_deptlist.colHidden(grd_deptlist.colRef("barcdgaplastday")) = false;
  893. grd_deptlist.colHidden(grd_deptlist.colRef("prcpgaplastday")) = false;
  894. grd_deptlist.colHidden(grd_deptlist.colRef("bcollgaplastday")) = false;
  895. grd_deptlist.colHidden(grd_deptlist.colRef("acptgaplastday")) = false;
  896. grd_deptlist.colHidden(grd_deptlist.colRef("spcpgaplast")) = false;
  897. grd_deptlist.colHidden(grd_deptlist.colRef("barcdgaplast")) = false;
  898. grd_deptlist.colHidden(grd_deptlist.colRef("prcpgaplast")) = false;
  899. grd_deptlist.colHidden(grd_deptlist.colRef("bcollgaplast")) = false;
  900. grd_deptlist.colHidden(grd_deptlist.colRef("acptgaplast")) = false;
  901. }else if(itemtype_btn.selected == true) { //항목별
  902. grd_itemlist.colHidden(grd_itemlist.colRef("spcpgaplastday")) = false;
  903. grd_itemlist.colHidden(grd_itemlist.colRef("barcdgaplastday")) = false;
  904. grd_itemlist.colHidden(grd_itemlist.colRef("prcpgaplastday")) = false;
  905. grd_itemlist.colHidden(grd_itemlist.colRef("bcollgaplastday")) = false;
  906. grd_itemlist.colHidden(grd_itemlist.colRef("acptgaplastday")) = false;
  907. grd_itemlist.colHidden(grd_itemlist.colRef("spcpgaplast")) = false;
  908. grd_itemlist.colHidden(grd_itemlist.colRef("barcdgaplast")) = false;
  909. grd_itemlist.colHidden(grd_itemlist.colRef("prcpgaplast")) = false;
  910. grd_itemlist.colHidden(grd_itemlist.colRef("bcollgaplast")) = false;
  911. grd_itemlist.colHidden(grd_itemlist.colRef("acptgaplast")) = false;
  912. }
  913. }
  914. model.refresh();
  915. /*
  916. var term = model.getValue("root/hidden/ref/tattime");
  917. //이재오 작업 20120515일
  918. for(i = 1 ; i < grd_itemlist.rows ; i ++){
  919. var tclsterm = model.getValue("/root/main/tattype5["+i+"]/spcpgaplastday");
  920. var tclsterm1 = model.getValue("/root/main/tattype5["+i+"]/barcdgaplast");
  921. var tclsterm2 = model.getValue("/root/main/tattype5["+i+"]/prcpgaplast");
  922. var tclsterm3 = model.getValue("/root/main/tattype5["+i+"]/bcollgaplast");
  923. var tclsterm4 = model.getValue("/root/main/tattype5["+i+"]/acptgaplast");
  924. if(parseInt(tclsterm4) >= parseInt(term)){
  925. grd_itemlist.rowStyle(i, "data", "background-color") = "#7BE6B7";
  926. }
  927. }
  928. */
  929. //vLastPage = model.getValue("/root/main/page/lastpage");
  930. if(grd_itemlist.rows < 2000 ) { //검사별
  931. //debugger;
  932. var term = model.getValue("root/hidden/ref/tattime");
  933. //이재오 작업 20120515일
  934. for(i = 1 ; i < grd_itemlist.rows ; i ++){
  935. var tclsterm = model.getValue("/root/main/tattype5["+i+"]/spcpgaplastday");
  936. var tclsterm1 = model.getValue("/root/main/tattype5["+i+"]/barcdgaplast");
  937. var tclsterm2 = model.getValue("/root/main/tattype5["+i+"]/prcpgaplast");
  938. var tclsterm3 = model.getValue("/root/main/tattype5["+i+"]/bcollgaplast");
  939. var tclsterm4 = model.getValue("/root/main/tattype5["+i+"]/acptgaplast");
  940. if(parseInt(tclsterm4) >= parseInt(term)){
  941. grd_itemlist.rowStyle(i, "data", "background-color") = "#7BE6B7";
  942. }
  943. }
  944. }else
  945. {
  946. messageBox("검사내역이 너무 많아 오버된 시간의 색깔은 표시불가.", "I");;
  947. return;
  948. }
  949. }
  950. ]]>
  951. </script>
  952. </xhtml:head>
  953. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  954. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  955. <group id="group1" style="left:0px; top:10px; width:1195px; height:70px; ">
  956. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:70px; "/>
  957. <button id="btn_ref" class="btn1_letter2" style="left:1130px; top:8px; width:56px; height:22px; ">
  958. <caption>조회</caption>
  959. <script type="javascript" ev:event="DOMActivate">
  960. <![CDATA[
  961. fGetTatTypeList();
  962. ]]>
  963. </script>
  964. </button>
  965. <line id="line3" class="line_4" style="x1:1129px; y1:8px; x2:1129px; y2:30px; "/>
  966. <caption id="caption5" class="search_name" style="left:615px; top:9px; width:86px; height:17px; ">처방구분 :</caption>
  967. <input id="ipt_workfromdd" ref="/root/hidden/ref/fromdd" class="input_search" inputtype="date" style="left:90px; top:8px; width:90px; height:19px; "/>
  968. <input id="ipt_workfromtm" ref="/root/hidden/ref/fromtm" class="input_search" format="hh:nn" style="left:180px; top:8px; width:50px; height:19px; "/>
  969. <input id="ipt_worktodd" ref="/root/hidden/ref/todd" class="input_search" inputtype="date" style="left:247px; top:8px; width:90px; height:19px; "/>
  970. <input id="ipt_worktotm" ref="/root/hidden/ref/totm" class="input_search" format="hh:nn" style="left:337px; top:8px; width:50px; height:19px; "/>
  971. <caption id="caption4" class="search_name" style="left:5px; top:9px; width:110px; height:17px; ">접수일자 :</caption>
  972. <caption id="caption9" class="search_no_b" style="left:232px; top:10px; width:13px; height:17px; ">~</caption>
  973. <select1 id="cmb_rtnabnflag" ref="/root/hidden/ref/wcmb" appearance="minimal" style="left:700px; top:8px; width:67px; height:19px; ">
  974. <choices>
  975. <item>
  976. <label>전체</label>
  977. <value>1</value>
  978. </item>
  979. <item>
  980. <label>입원/DSC</label>
  981. <value>2</value>
  982. </item>
  983. <item>
  984. <label>응급실</label>
  985. <value>4</value>
  986. </item>
  987. <item>
  988. <label>외래</label>
  989. <value>3</value>
  990. </item>
  991. <item>
  992. <label>건진</label>
  993. <value>5</value>
  994. </item>
  995. </choices>
  996. <script type="javascript" ev:event="xforms-value-changed">
  997. <![CDATA[
  998. if(cmb_rtnabnflag.value == "4" || cmb_rtnabnflag.value == "2"){
  999. cmb_serious.disabled = false;
  1000. }else{
  1001. cmb_serious.value = "";
  1002. cmb_serious.disabled = true;
  1003. }
  1004. ]]>
  1005. </script>
  1006. </select1>
  1007. <select1 id="cmb_serious" ref="/root/hidden/ref/serious" disabled="true" appearance="minimal" style="left:772px; top:8px; width:67px; height:19px; ">
  1008. <choices>
  1009. <itemset nodeset="/root/init/LB0136">
  1010. <label ref="nm"/>
  1011. <value ref="cd"/>
  1012. </itemset>
  1013. </choices>
  1014. </select1>
  1015. <select1 id="combo1" ref="/root/hidden/ref/ocmb" appearance="minimal" style="left:928px; top:8px; width:77px; height:19px; ">
  1016. <choices>
  1017. <item>
  1018. <label>전체</label>
  1019. <value>1</value>
  1020. </item>
  1021. <item>
  1022. <label>응급</label>
  1023. <value>2</value>
  1024. </item>
  1025. <item>
  1026. <label>비응급</label>
  1027. <value>3</value>
  1028. </item>
  1029. </choices>
  1030. </select1>
  1031. <caption id="caption2" class="search_name" style="left:842px; top:9px; width:86px; height:17px; ">응급구분 :</caption>
  1032. <select1 id="combo2" ref="/root/hidden/ref/gbn" appearance="minimal" style="left:483px; top:8px; width:127px; height:19px; ">
  1033. <choices>
  1034. <itemset nodeset="/root/init/LB0106">
  1035. <label ref="nm"/>
  1036. <value ref="cd"/>
  1037. </itemset>
  1038. </choices>
  1039. </select1>
  1040. <caption id="caption3" class="search_name" style="left:393px; top:9px; width:91px; height:17px; ">시행부서 :</caption>
  1041. <caption id="caption6" class="search_name" style="left:250px; top:40px; width:90px; height:17px; ">검사항목 :</caption>
  1042. <input id="ipt_tclscd" ref="/root/hidden/ref/testcd" class="input_essential" imemode="disabled" inputtype="button" _chartype="upper" style="left:348px; top:40px; width:127px; height:19px; ">
  1043. <script type="javascript" ev:event="onbuttonclick">
  1044. <![CDATA[
  1045. fGetTestCd("tclscd");
  1046. ]]>
  1047. </script>
  1048. <script type="javascript" ev:event="onkeypress">
  1049. <![CDATA[
  1050. fKeyEvent();
  1051. ]]>
  1052. </script>
  1053. </input>
  1054. <caption id="caption8" class="search_name" style="left:765px; top:38px; width:99px; height:17px; ">목표TAT :</caption>
  1055. <select1 id="cmb_filterflag" ref="/root/hidden/ref/flag" appearance="minimal" style="left:849px; top:37px; width:84px; height:19px; ">
  1056. <choices>
  1057. <item>
  1058. <label>접수-최종</label>
  1059. <value>1</value>
  1060. </item>
  1061. <item>
  1062. <label>채혈-최종</label>
  1063. <value>2</value>
  1064. </item>
  1065. <item>
  1066. <label>가접수-최종</label>
  1067. <value>3</value>
  1068. </item>
  1069. <item>
  1070. <label>처방-최종</label>
  1071. <value>4</value>
  1072. </item>
  1073. <item>
  1074. <label>바코드-최종</label>
  1075. <value>5</value>
  1076. </item>
  1077. </choices>
  1078. </select1>
  1079. <input id="ipt_day" ref="/root/hidden/ref/tatday" format="999" maxbyte="3" style="left:936px; top:37px; width:33px; height:19px; text-align:right; "/>
  1080. <input id="input2" ref="/root/hidden/ref/tathour" format="999" maxbyte="3" style="left:989px; top:37px; width:33px; height:19px; text-align:right; ">
  1081. <script type="javascript" ev:event="xforms-value-changed">
  1082. <![CDATA[
  1083. if(input2.value == "") input2.value = 0;
  1084. ]]>
  1085. </script>
  1086. </input>
  1087. <input id="input1" ref="/root/hidden/ref/tattime" format="999" maxbyte="4" style="left:1052px; top:37px; width:33px; height:19px; text-align:right; ">
  1088. <script type="javascript" ev:event="xforms-value-changed">
  1089. <![CDATA[
  1090. if(input1.value == "") input2.value = 0;
  1091. ]]>
  1092. </script>
  1093. </input>
  1094. <caption id="caption10" style="left:970px; top:39px; width:20px; height:20px; ">일</caption>
  1095. <caption id="caption1" style="left:1087px; top:39px; width:20px; height:20px; ">분</caption>
  1096. <caption id="caption13" style="left:1023px; top:39px; width:30px; height:20px; ">시간</caption>
  1097. <img id="img1" class="icon_search" visibility="hidden" style="left:740px; top:41px; width:16px; height:16px; ">
  1098. <script type="javascript" ev:event="onclick">
  1099. <![CDATA[
  1100. open("SMLLF90400", 200, 300, 200, "", "/root/hidden/ref/tclscdlist/testgrup", "/root/hidden/tclscdlist/testgrup");
  1101. ]]>
  1102. </script>
  1103. </img>
  1104. <input id="ipt_tclscdlist" ref="/root/hidden/ref/tclscdlist/tclsnmlist" class="input_default" visibility="hidden" rclass="input_search" style="left:440px; top:40px; width:292px; height:19px; "/>
  1105. <select1 id="combo3" ref="/root/hidden/ref/tclscdlist/testgrup" class="combo_search" visibility="hidden" appearance="minimal" style="left:348px; top:40px; width:71px; height:19px; ">
  1106. <choices>
  1107. <itemset nodeset="/root/init/LB0103">
  1108. <label ref="nm"/>
  1109. <value ref="cd"/>
  1110. </itemset>
  1111. </choices>
  1112. <script type="javascript" ev:event="xforms-value-changed">
  1113. <![CDATA[
  1114. fSelectTestGrup();
  1115. ]]>
  1116. </script>
  1117. </select1>
  1118. <select id="checkbox1" ref="/root/hidden/ref/over" overflow="visible" appearance="full" style="left:1105px; top:37px; width:80px; height:20px; border-style:none; ">
  1119. <choices>
  1120. <item>
  1121. <label>over time</label>
  1122. <value>Y</value>
  1123. </item>
  1124. </choices>
  1125. </select>
  1126. <select id="checkbox2" ref="/root/hidden/ref/cmtyn" visibility="hidden" overflow="visible" appearance="full" style="left:1105px; top:50px; width:80px; height:20px; border-style:none; ">
  1127. <choices>
  1128. <item>
  1129. <label>사유 여부</label>
  1130. <value>Y</value>
  1131. </item>
  1132. </choices>
  1133. </select>
  1134. <caption id="cap_view" class="search_name" style="left:5px; top:40px; width:90px; height:17px; ">표시구분 :</caption>
  1135. <select1 id="rdo_vewflag" ref="/root/hidden/viewflag" appearance="full" cols="3" overflow="visible" style="left:105px; top:40px; width:130px; height:20px; border-style:none; ">
  1136. <choices>
  1137. <item>
  1138. <label>분</label>
  1139. <value>1</value>
  1140. </item>
  1141. <item>
  1142. <label>일 시 분</label>
  1143. <value>2</value>
  1144. </item>
  1145. <item>
  1146. <label>전체</label>
  1147. <value>0</value>
  1148. </item>
  1149. </choices>
  1150. <script type="javascript" ev:event="xforms-value-changed">
  1151. <![CDATA[
  1152. fSetGridColVisible(rdo_vewflag.value);
  1153. ]]>
  1154. </script>
  1155. </select1>
  1156. <input id="input3" ref="/root/hidden/ref/pid" style="left:1045px; top:8px; width:80px; height:19px; "/>
  1157. <caption id="caption16" style="left:1010px; top:10px; width:30px; height:17px; ">환자:</caption>
  1158. </group>
  1159. <switch id="switch1" style="left:0px; top:110px; width:1195px; height:633px; ">
  1160. <case id="case1" style="left:0px; top:0px; width:1193px; height:640px; ">
  1161. <caption id="caption32" class="tit_2" style="left:10px; top:5px; width:163px; height:14px; ">검사별리스트</caption>
  1162. <line id="line19" class="line_1" style="x1:5px; y1:20px; x2:1188px; y2:20px; "/>
  1163. <datagrid id="grd_patlist" nodeset="/root/main/tattype1" caption="성명^등록번호^바코드번호^검사명^처방등록일시^바코드발행일시^채혈일시^가접수일시^접수일시^보고일시^가접수-최종(분)^가접수-최종^바코드-최종(분)^바코드-최종^처방-최종(분)^처방-최종^채혈-최종(분)^채혈-최종^접수-최종(분)^접수-최종" colsep="^" colwidth="90, 90, 90, 180, 125, 125, 125, 125, 125, 125, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:25px; width:1183px; height:605px; ">
  1164. <col ref="patnm" style="text-align:center; "/>
  1165. <col ref="pid" style="text-align:center; "/>
  1166. <col ref="bcno" type="input" style="text-align:center; "/>
  1167. <col ref="tclsnm" style="text-align:left; "/>
  1168. <col ref="prcprgstdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1169. <col ref="barcdprntdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1170. <col ref="bcolldt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1171. <col ref="spcpseuacptdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1172. <col ref="spcacptdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1173. <col ref="lastreptdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
  1174. <col ref="spcpgaplast" style="text-align:right; "/>
  1175. <col ref="spcpgaplastday" style="text-align:right; "/>
  1176. <col ref="barcdgaplast" style="text-align:right; "/>
  1177. <col ref="barcdgaplastday" style="text-align:right; "/>
  1178. <col ref="prcpgaplast" style="text-align:right; "/>
  1179. <col ref="prcpgaplastday" style="text-align:right; "/>
  1180. <col ref="bcollgaplast" style="text-align:right; "/>
  1181. <col ref="bcollgaplastday" style="text-align:right; "/>
  1182. <col ref="acptgaplast" style="text-align:right; "/>
  1183. <col ref="acptgaplastday" style="text-align:right; "/>
  1184. <script type="javascript" ev:event="ondblclick">
  1185. <![CDATA[
  1186. if(grd_patlist.isCell(event.target) && grd_patlist.row >= grd_patlist.fixedRows ){
  1187. if(grd_patlist.col == grd_patlist.colRef("bcno")){
  1188. window.clipBoardData = grd_patlist.valueMatrix(grd_patlist.row, grd_patlist.colRef("bcno"));
  1189. }
  1190. }
  1191. ]]>
  1192. </script>
  1193. </datagrid>
  1194. </case>
  1195. <case id="case2">
  1196. <datagrid id="grd_codelist" nodeset="/root/main/tattype2" caption="시간대^검사건수^평균소요시간(분)^평균소요시간^평균초과시간(분)^평균초과시간^최소소요시간(분)^최소소요시간^최대소요시간(분)^최대소요시간^초과건수^TAT충족율(%)" colsep="^" colwidth="130, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:25px; width:1183px; height:605px; ">
  1197. <col ref="timeterm" style="text-align:center; "/>
  1198. <col ref="tclscnt" style="text-align:right; "/>
  1199. <col ref="avgtesttime" style="text-align:right; "/>
  1200. <col ref="avgtestday" style="text-align:right; "/>
  1201. <col ref="avgovertime" style="text-align:right; "/>
  1202. <col ref="avgoverday" style="text-align:right; "/>
  1203. <col ref="mintesttime" style="text-align:right; "/>
  1204. <col ref="mintestday" style="text-align:right; "/>
  1205. <col ref="maxtesttime" style="text-align:right; "/>
  1206. <col ref="maxtestday" style="text-align:right; "/>
  1207. <col ref="overtclscnt" style="text-align:right; "/>
  1208. <col ref="tatrate" style="text-align:right; "/>
  1209. </datagrid>
  1210. <caption id="caption7" class="tit_2" style="left:10px; top:5px; width:163px; height:14px; ">시간대별리스트</caption>
  1211. <line id="line1" class="line_1" style="x1:5px; y1:20px; x2:1188px; y2:20px; "/>
  1212. </case>
  1213. <case id="case3">
  1214. <datagrid id="grd_bcnolist" nodeset="/root/main/tattype3" caption="성명^등록번호^검체명^바코드번호^처방등록일시^바코드발행일시^채혈일시^가접수일시^접수일시^보고일시^가접수-최종(분)^가접수-최종^바코드-최종(분)^바코드-최종^처방-최종(분)^처방-최종^채혈-최종(분)^채혈-최종^접수-최종(분)^접수-최종^소견사유^지연사유" colsep="^" colwidth="90, 90, 110, 90, 125, 125, 125, 125, 125, 125, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 200, 135" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="label" style="left:5px; top:25px; width:1183px; height:605px; ">
  1215. <col ref="patnm" style="text-align:center; "/>
  1216. <col ref="pid" style="text-align:center; "/>
  1217. <col ref="spcnm" style="text-align:center; "/>
  1218. <col ref="bcno" type="input" style="text-align:center; "/>
  1219. <col ref="prcprgstdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1220. <col ref="barcdprntdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1221. <col ref="bcolldt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1222. <col ref="spcpseuacptdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1223. <col ref="spcacptdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1224. <col ref="lastreptdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1225. <col ref="spcpgaplast" style="text-align:right; "/>
  1226. <col ref="spcpgaplastday" style="text-align:right; "/>
  1227. <col ref="barcdgaplast" style="text-align:right; "/>
  1228. <col ref="barcdgaplastday" style="text-align:right; "/>
  1229. <col ref="prcpgaplast" style="text-align:right; "/>
  1230. <col ref="prcpgaplastday" style="text-align:right; "/>
  1231. <col ref="bcollgaplast" style="text-align:right; "/>
  1232. <col ref="bcollgaplastday" style="text-align:right; "/>
  1233. <col ref="acptgaplast" style="text-align:right; "/>
  1234. <col ref="acptgaplastday" style="text-align:right; "/>
  1235. <col ref="resncdlist" style="text-align:left; "/>
  1236. <col ref="testcmtcd" type="combo" style="text-align:right; ">
  1237. <choices>
  1238. <itemset nodeset="/root/init/LB0404">
  1239. <label ref="nm"/>
  1240. <value ref="cd"/>
  1241. </itemset>
  1242. </choices>
  1243. </col>
  1244. <script type="javascript" ev:event="ondblclick">
  1245. <![CDATA[
  1246. if(grd_bcnolist.isCell(event.target) && grd_bcnolist.row >= grd_bcnolist.fixedRows ){
  1247. if(grd_bcnolist.col == grd_bcnolist.colRef("bcno")){
  1248. window.clipBoardData = grd_bcnolist.valueMatrix(grd_bcnolist.row, grd_bcnolist.colRef("bcno"));
  1249. }
  1250. }
  1251. ]]>
  1252. </script>
  1253. <script type="javascript" ev:event="onmouseup">
  1254. <![CDATA[
  1255. //검체 사유 일괄지정 드래그
  1256. if ( (grd_bcnolist.row >= grd_bcnolist.fixedRows) && (grd_bcnolist.isCell(event.target))) {
  1257. if (grd_bcnolist.row >4 && grd_bcnolist.col == grd_bcnolist.colRef("testcmtcd")){
  1258. var sCmtCd = model.getValue("/root/hidden/ref/resnlist");
  1259. var sCmtNm = cmb_resn.label;
  1260. var sBcno;
  1261. if(sCmtCd == "" || sCmtNm == ""){
  1262. messageBox("지정할 사유를 선택 후 사용하세요", "I");
  1263. return;
  1264. }
  1265. for ( var i =0 ; i < grd_bcnolist.selectedRows;i++){
  1266. sBcno = grd_bcnolist.valueMatrix(grd_bcnolist.selectedRow(i), grd_bcnolist.colRef("bcno"));
  1267. model.setValue("/root/main/tattype3[bcno = '" + sBcno + "' ]/testcmtcd", sCmtCd);
  1268. //xPath + "[pid = '' or acptgaplast > '" + vTime + "' ]";
  1269. //model.setValue("/root/main/tattype3[" + grd_bcnolist.selectedRow(i) + "]/testcmtcd", sCmtCd);
  1270. }
  1271. model.refresh();
  1272. }
  1273. }
  1274. ]]>
  1275. </script>
  1276. </datagrid>
  1277. <line id="line4" class="line_1" style="x1:5px; y1:20px; x2:1188px; y2:20px; "/>
  1278. <caption id="caption11" class="tit_2" style="left:10px; top:5px; width:163px; height:14px; ">검체별리스트</caption>
  1279. </case>
  1280. <case id="case4">
  1281. <datagrid id="grd_deptlist" nodeset="/root/main/tattype4" caption="검사코드^검사명^TAT충족건수^검사건수^가접수-최종(분)^가접수-최종^바코드-최종(분)^바코드-최종^처방-최종(분)^처방-최종^채혈-최종(분)^채혈-최종^접수-최종(분)^접수-최종^TAT충족율(%)" colsep="^" colwidth="100, 235, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:25px; width:1183px; height:605px; ">
  1282. <col ref="tclscd" style="text-align:center; "/>
  1283. <col ref="tclsnm" style="text-align:left; "/>
  1284. <col ref="tattestcnt" style="text-align:center; "/>
  1285. <col ref="testcnt" style="text-align:center; "/>
  1286. <col ref="spcpgaplast" style="text-align:right; "/>
  1287. <col ref="spcpgaplastday" style="text-align:right; "/>
  1288. <col ref="barcdgaplast" style="text-align:right; "/>
  1289. <col ref="barcdgaplastday" style="text-align:right; "/>
  1290. <col ref="prcpgaplast" style="text-align:right; "/>
  1291. <col ref="prcpgaplastday" style="text-align:right; "/>
  1292. <col ref="bcollgaplast" style="text-align:right; "/>
  1293. <col ref="bcollgaplastday" style="text-align:right; "/>
  1294. <col ref="acptgaplast" style="text-align:right; "/>
  1295. <col ref="acptgaplastday" style="text-align:right; "/>
  1296. <col ref="tatrate" format="0.00" style="text-align:right; "/>
  1297. </datagrid>
  1298. <caption id="caption12" class="tit_2" style="left:10px; top:5px; width:163px; height:14px; ">부서별리스트</caption>
  1299. <line id="line5" class="line_1" style="x1:5px; y1:20px; x2:1188px; y2:20px; "/>
  1300. </case>
  1301. <case id="case5" selected="true">
  1302. <caption id="caption14" class="tit_2" style="left:10px; top:5px; width:163px; height:14px; ">항목별리스트</caption>
  1303. <line id="line2" class="line_1" style="x1:5px; y1:20px; x2:1188px; y2:20px; "/>
  1304. <datagrid id="grd_itemlist" nodeset="/root/main/tattype5" caption="성명^등록번호^바코드번호^검사명^검체명^처방일시^바코드발행일시^채혈일시^가접수일시^접수일시^보고일시^가접수-최종(분)^가접수-최종^바코드-최종(분)^바코드-최종^처방-최종(분)^처방-최종^채혈-최종(분)^채혈-최종^접수-최종(분)^접수-최종^소견사유^검체별지연사유^항목별지연사유^검사코드" colsep="^" colwidth="90, 90, 90, 180, 100, 125, 125, 125, 125, 125, 125, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 200, 135, 135, 80" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="label" style="left:5px; top:25px; width:1183px; height:605px; ">
  1305. <col ref="patnm" style="text-align:center; "/>
  1306. <col ref="pid" style="text-align:center; "/>
  1307. <col ref="bcno" type="input" style="text-align:center; "/>
  1308. <col ref="tclsnm" style="text-align:left; "/>
  1309. <col ref="spcnm" style="text-align:center; "/>
  1310. <col ref="prcprgstdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1311. <col ref="barcdprntdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1312. <col ref="bcolldt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1313. <col ref="spcpseuacptdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1314. <col ref="spcacptdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  1315. <col ref="lastreptdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
  1316. <col ref="spcpgaplast" style="text-align:right; "/>
  1317. <col ref="spcpgaplastday" style="text-align:right; "/>
  1318. <col ref="barcdgaplast" style="text-align:right; "/>
  1319. <col ref="barcdgaplastday" style="text-align:right; "/>
  1320. <col ref="prcpgaplast" style="text-align:right; "/>
  1321. <col ref="prcpgaplastday" style="text-align:right; "/>
  1322. <col ref="bcollgaplast" style="text-align:right; "/>
  1323. <col ref="bcollgaplastday" style="text-align:right; "/>
  1324. <col ref="acptgaplast" style="text-align:right; "/>
  1325. <col ref="acptgaplastday" style="text-align:right; "/>
  1326. <col ref="resncdlist" style="text-align:left; "/>
  1327. <col disabled="true" ref="testcmtcd" type="combo" style="text-align:right; ">
  1328. <choices>
  1329. <itemset nodeset="/root/init/LB0404">
  1330. <label ref="nm"/>
  1331. <value ref="cd"/>
  1332. </itemset>
  1333. </choices>
  1334. </col>
  1335. <col ref="testresncmtcd" type="combo" style="text-align:right; ">
  1336. <choices>
  1337. <itemset nodeset="/root/init/LB0404">
  1338. <label ref="nm"/>
  1339. <value ref="cd"/>
  1340. </itemset>
  1341. </choices>
  1342. </col>
  1343. <col ref="testcd" visibility="hidden" style="text-align:left; "/>
  1344. <script type="javascript" ev:event="ondblclick">
  1345. <![CDATA[
  1346. if(grd_itemlist.isCell(event.target) && grd_itemlist.row >= grd_itemlist.fixedRows ){
  1347. if(grd_itemlist.col == grd_itemlist.colRef("bcno")){
  1348. window.clipBoardData = grd_itemlist.valueMatrix(grd_itemlist.row, grd_itemlist.colRef("bcno"));
  1349. }
  1350. }
  1351. ]]>
  1352. </script>
  1353. <script type="javascript" ev:event="onmouseup">
  1354. <![CDATA[
  1355. //검체 사유 일괄지정 드래그
  1356. if ( (grd_itemlist.row >= grd_itemlist.fixedRows) && (grd_itemlist.isCell(event.target))) {
  1357. if (grd_itemlist.row >4 && grd_itemlist.col == grd_itemlist.colRef("testresncmtcd")){ // (grd_itemlist.col == grd_itemlist.colRef("testcmtcd") ||)
  1358. var sCmtCd = model.getValue("/root/hidden/ref/resnlist");
  1359. var sCmtNm = cmb_resn.label;
  1360. var sBcno, sTestcd;
  1361. if(sCmtCd == "" || sCmtNm == ""){
  1362. messageBox("지정할 사유를 선택 후 사용하세요", "I");
  1363. return;
  1364. }
  1365. /*if(grd_itemlist.col == grd_itemlist.colRef("testcmtcd")){ //검체별
  1366. messageBox("검체별 사유는 검채별탭에서 등록하세요", "I");
  1367. for ( var i =0 ; i < grd_itemlist.selectedRows;i++){
  1368. sBcno = grd_itemlist.valueMatrix(grd_itemlist.selectedRow(i), grd_itemlist.colRef("bcno"));
  1369. sTestcd = grd_itemlist.valueMatrix(grd_itemlist.selectedRow(i), grd_itemlist.colRef("testcd"));
  1370. //model.setValue("/root/main/tattype5[" + grd_itemlist.selectedRow(i) + "]/testcmtcd", sCmtCd);
  1371. model.setValue("/root/main/tattype5[bcno = '" + sBcno + "' and testcd = '" + sTestcd + "' ]/testcmtcd", sCmtCd);
  1372. }
  1373. }else{*/
  1374. for ( var i =0 ; i < grd_itemlist.selectedRows;i++){ //항목별
  1375. sBcno = grd_itemlist.valueMatrix(grd_itemlist.selectedRow(i), grd_itemlist.colRef("bcno"));
  1376. sTestcd = grd_itemlist.valueMatrix(grd_itemlist.selectedRow(i), grd_itemlist.colRef("testcd"));
  1377. //model.setValue("/root/main/tattype5[" + grd_itemlist.selectedRow(i) + "]/testresncmtcd", sCmtCd);
  1378. model.setValue("/root/main/tattype5[bcno = '" + sBcno + "' and testcd = '" + sTestcd + "' ]/testresncmtcd", sCmtCd);
  1379. }
  1380. //}
  1381. model.refresh();
  1382. }
  1383. }
  1384. ]]>
  1385. </script>
  1386. </datagrid>
  1387. </case>
  1388. </switch>
  1389. <group id="grp_wait" visibility="hidden" style="left:465px; top:255px; width:313px; height:104px; ">
  1390. <img id="img2" src="../../../com/commonweb/images/loadingBar.gif" style="left:1px; top:1px; width:311px; height:102px; "/>
  1391. <output id="opt_msg" ref="/root/hidden/waitmsg" style="left:110px; top:30px; width:175px; height:19px; font-size:11pt; font-weight:bold; color:#33cccc; "/>
  1392. </group>
  1393. <button id="btn_excel" class="btn2_letter2" style="left:1147px; top:88px; width:42px; height:19px; ">
  1394. <caption>엑셀</caption>
  1395. <script type="javascript" ev:event="DOMActivate">
  1396. <![CDATA[
  1397. fExeSaveToExcel();
  1398. ]]>
  1399. </script>
  1400. </button>
  1401. <group id="grp_reref" visibility="visible" scroll="auto" style="left:895px; top:111px; width:295px; height:20px; ">
  1402. <button id="btn_recalc" class="btn2_letter3" style="left:185px; top:0px; width:53px; height:19px; ">
  1403. <caption>재계산</caption>
  1404. <script type="javascript" ev:event="DOMActivate">
  1405. <![CDATA[
  1406. fReCalc("");
  1407. ]]>
  1408. </script>
  1409. </button>
  1410. <button id="btn_re" class="btn2_letter3" visibility="visible" style="left:240px; top:0px; width:53px; height:19px; ">
  1411. <caption>재조회</caption>
  1412. <script type="javascript" ev:event="DOMActivate">
  1413. <![CDATA[
  1414. var grdObj = "Nodeset";
  1415. fReCalc(grdObj);
  1416. model.refresh();
  1417. ]]>
  1418. </script>
  1419. </button>
  1420. <select id="chk_calcchk" ref="/root/hidden/calcchk" overflow="visible" appearance="full" style="left:140px; top:3px; width:45px; height:15px; border-style:none; ">
  1421. <choices>
  1422. <item>
  1423. <label>전체</label>
  1424. <value>Y</value>
  1425. </item>
  1426. </choices>
  1427. </select>
  1428. <caption id="cap_re" class="tit_2" style="left:41px; top:4px; width:97px; height:13px; ">결과 내 필터:</caption>
  1429. </group>
  1430. <button id="pattype_btn" class="btn_sw" group="tab" selected="true" style="left:0px; top:89px; width:70px; height:22px; ">
  1431. <caption>검사별</caption>
  1432. <script type="javascript" ev:event="DOMActivate">
  1433. <![CDATA[
  1434. fGridInit();
  1435. ]]>
  1436. </script>
  1437. </button>
  1438. <button id="codetype_btn" class="btn_sw" group="tab" selected="false" style="left:70px; top:89px; width:70px; height:22px; ">
  1439. <caption>시간대별</caption>
  1440. <script type="javascript" ev:event="DOMActivate">
  1441. <![CDATA[
  1442. fGridInit();
  1443. ]]>
  1444. </script>
  1445. </button>
  1446. <datagrid id="grd_searchtest" nodeset="/root/main/searchtest" visibility="hidden" caption="중분류^검사코드^검사명" colsep="^" colwidth="46, 85, 290" mergecellsfixedrows="bycolrec" rowsep="|" style="left:380px; top:195px; width:441px; height:150px; ">
  1447. <col ref="mdlnm"/>
  1448. <col ref="tclscd"/>
  1449. <col ref="tclsnm"/>
  1450. <script type="javascript" ev:event="ondblclick">
  1451. <![CDATA[
  1452. if(grd_searchtest.isCell(event.target) && grd_searchtest.row >= grd_searchtest.fixedRows ){
  1453. fGetTcls(grd_searchtest.row);
  1454. }
  1455. ]]>
  1456. </script>
  1457. </datagrid>
  1458. <button id="bcnotype_btn" class="btn_sw" group="tab" selected="false" style="left:140px; top:89px; width:70px; height:22px; ">
  1459. <caption>검체별</caption>
  1460. <script type="javascript" ev:event="DOMActivate">
  1461. <![CDATA[
  1462. fGridInit();
  1463. ]]>
  1464. </script>
  1465. </button>
  1466. <button id="depttype_btn" class="btn_sw" group="tab" selected="false" style="left:210px; top:89px; width:70px; height:22px; ">
  1467. <caption>부서별</caption>
  1468. <script type="javascript" ev:event="DOMActivate">
  1469. <![CDATA[
  1470. fGridInit();
  1471. ]]>
  1472. </script>
  1473. </button>
  1474. <button id="itemtype_btn" class="btn_sw" group="tab" selected="false" style="left:280px; top:89px; width:70px; height:22px; ">
  1475. <caption>항목별</caption>
  1476. <script type="javascript" ev:event="DOMActivate">
  1477. <![CDATA[
  1478. fGridInit();
  1479. ]]>
  1480. </script>
  1481. </button>
  1482. <button id="btn_spc" class="btn2_letter5" visibility="hidden" style="left:372px; top:90px; width:75px; height:19px; ">
  1483. <caption>검체선택</caption>
  1484. <script type="javascript" ev:event="DOMActivate">
  1485. <![CDATA[
  1486. group6.visible = true;
  1487. model.setValue("/root/send/go/tclscdlist" , model.getvalue("/root/hidden/ref/tclscdlist/tclscdlist"));
  1488. submit("TRLMR91000");
  1489. model.refresh();
  1490. ]]>
  1491. </script>
  1492. </button>
  1493. <group id="group6" visibility="hidden" style="left:370px; top:110px; width:385px; height:345px; border-color:#000000; border-width:1px; border-style:solid; ">
  1494. <caption id="caption20" class="search_name" style="left:5px; top:10px; width:115px; height:17px; ">검체 선택</caption>
  1495. <select1 id="radio2" ref="/root/hidden/ref/code" appearance="full" cols="2" overflow="visible" style="left:95px; top:10px; width:90px; height:20px; border-style:none; ">
  1496. <choices>
  1497. <item>
  1498. <label>코드</label>
  1499. <value>1</value>
  1500. </item>
  1501. <item>
  1502. <label>명칭</label>
  1503. <value>2</value>
  1504. </item>
  1505. </choices>
  1506. </select1>
  1507. <input id="input4" ref="/root/hidden/ref/code2" style="left:190px; top:10px; width:135px; height:19px; "/>
  1508. <button id="button3" class="btn2_letter2" style="left:335px; top:10px; width:42px; height:19px; ">
  1509. <caption>검색</caption>
  1510. <script type="javascript" ev:event="DOMActivate">
  1511. <![CDATA[
  1512. model.setValue("/root/send/go/code", model.getValue("/root/hidden/ref/code"));
  1513. model.setValue("/root/send/go/code2", model.getValue("/root/hidden/ref/code2"));
  1514. submit("TRLMR91000");
  1515. model.refresh();
  1516. ]]>
  1517. </script>
  1518. </button>
  1519. <datagrid id="datagrid5" nodeset="/root/main/spccd" caption="^검체코드^검체명" colsep="^" colwidth="25, 55, 217" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:4px; top:34px; width:375px; height:275px; ">
  1520. <col checkvalue="true,false" ref="chk" type="checkbox"/>
  1521. <col ref="spccd"/>
  1522. <col ref="spcnm"/>
  1523. </datagrid>
  1524. <button id="button4" class="btn4_letter2" style="left:259px; top:314px; width:56px; height:22px; ">
  1525. <caption>조회</caption>
  1526. <script type="javascript" ev:event="DOMActivate">
  1527. <![CDATA[
  1528. var spccdlist = "";
  1529. for (i = 1; i < datagrid5.rows; i++){
  1530. if(model.getValue("/root/main/spccd[" + i + "]/chk" ) == "true"){
  1531. spccdlist = spccdlist + "," + model.getValue("/root/main/spccd[" + i + "]/spccd");
  1532. }
  1533. }
  1534. model.setValue("/root/send/spccdlist", spccdlist);
  1535. //alert(model.getValue("/root/send/spccdlist"));
  1536. group6.visible = false;
  1537. fGetTatTypeList();
  1538. model.setValue("/root/send/go/code", "");
  1539. model.setValue("/root/send/go/code2", "");
  1540. model.setValue("/root/send/go/tclscdlist", "");
  1541. model.setValue("/root/send/spccdlist", "");
  1542. model.refresh();
  1543. ]]>
  1544. </script>
  1545. </button>
  1546. <button id="button5" class="btn4_letter2" style="left:319px; top:314px; width:56px; height:22px; ">
  1547. <caption>취소</caption>
  1548. <script type="javascript" ev:event="DOMActivate">
  1549. <![CDATA[
  1550. group6.visible = false;
  1551. model.setValue("/root/send/go/code", "");
  1552. model.setValue("/root/send/go/code2", "");
  1553. model.setValue("/root/send/go/tclscdlist", "");
  1554. model.setValue("/root/send/spccdlist", "");
  1555. model.refresh();
  1556. ]]>
  1557. </script>
  1558. </button>
  1559. </group>
  1560. </group>
  1561. <group id="grp_resn" visibility="hidden" scroll="auto" style="left:897px; top:128px; width:240px; height:20px; ">
  1562. <caption id="cap_resn" class="tit_2" style="left:1px; top:4px; width:110px; height:14px; ">사유일괄지정 :</caption>
  1563. <select1 id="cmb_resn" ref="/root/hidden/ref/resnlist" appearance="minimal" style="left:110px; top:0px; width:127px; height:19px; ">
  1564. <choices>
  1565. <itemset nodeset="/root/init/LB0404">
  1566. <label ref="nm"/>
  1567. <value ref="cd"/>
  1568. </itemset>
  1569. </choices>
  1570. </select1>
  1571. </group>
  1572. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  1573. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  1574. <caption>초기화</caption>
  1575. <script type="javascript" ev:event="DOMActivate">
  1576. <![CDATA[
  1577. fSetInit();
  1578. ]]>
  1579. </script>
  1580. </button>
  1581. <line id="line6" class="line_2" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  1582. <button id="btn_saveresn" class="btn4_letter4" visibility="hidden" style="left:1044px; top:3px; width:80px; height:22px; ">
  1583. <caption>사유저장</caption>
  1584. <script type="javascript" ev:event="DOMActivate">
  1585. <![CDATA[
  1586. fSetResnSave();
  1587. ]]>
  1588. </script>
  1589. </button>
  1590. </group>
  1591. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  1592. <caption id="caption15" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">TAT 조회</caption>
  1593. </group>
  1594. </xhtml:body>
  1595. </xhtml:html>