SMASI00600_미생물배양양성자조회.xrw 61 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>미생물배양양성자조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <condition>
  11. <termflag>R</termflag>
  12. <termfromdd/>
  13. <termtodd/>
  14. <srchpid/>
  15. <srchorddeptcd/>
  16. <srchwardcd/>
  17. <srchspccd/>
  18. <srchspcnm/>
  19. <srchbaccd/>
  20. <srchbacnm/>
  21. <groupflag>A</groupflag>
  22. <viewflag>V</viewflag>
  23. <srchioflag>-</srchioflag>
  24. </condition>
  25. <microtestprotonlist>
  26. <vprotonlist>
  27. <info>
  28. <prcpdd/>
  29. <lastreptdt/>
  30. <prcpwardcd/>
  31. <prcproomcd/>
  32. <pid/>
  33. <hngnm/>
  34. <sex/>
  35. <age/>
  36. <orddept/>
  37. <atdrnm/>
  38. <indd/>
  39. <dschdd/>
  40. <acptdt/>
  41. <wardcd/>
  42. <roomcd/>
  43. <inhospdayno/>
  44. <spcnm/>
  45. <bacnm/>
  46. <antibioref/>
  47. <antibionm/>
  48. <antibiorslt/>
  49. <spccd/>
  50. <baccd/>
  51. <tclscd/>
  52. <testcd/>
  53. <bcno/>
  54. <cretno/>
  55. <seqno/>
  56. <bcolldt/>
  57. <rsltseq/>
  58. <bacseqno/>
  59. <bacnm2/>
  60. </info>
  61. <header/>
  62. </vprotonlist>
  63. <hprotonlist>
  64. <info>
  65. <prcpdd/>
  66. <lastreptdt/>
  67. <prcpwardcd/>
  68. <prcproomcd/>
  69. <pid/>
  70. <hngnm/>
  71. <sex/>
  72. <brthdd/>
  73. <age/>
  74. <orddept/>
  75. <atdoctid/>
  76. <atdrnm/>
  77. <indd/>
  78. <dschdd/>
  79. <wardcd/>
  80. <roomcd/>
  81. <inhospdayno/>
  82. <bcno/>
  83. <tclscd/>
  84. <testcd/>
  85. <spccd/>
  86. <rsltseq/>
  87. <baccd/>
  88. <bacnm/>
  89. <bacseqno/>
  90. <antibiocd/>
  91. <antibiorslt/>
  92. <spcnm/>
  93. <bacnm2/>
  94. <antibionm/>
  95. <antibioref/>
  96. </info>
  97. </hprotonlist>
  98. </microtestprotonlist>
  99. <sortdata>
  100. <sort1>1</sort1>
  101. <cond1>0</cond1>
  102. <cond2>-</cond2>
  103. <sort2>2</sort2>
  104. <cond3>0</cond3>
  105. <cond4>-</cond4>
  106. <sort3>3</sort3>
  107. <cond5>0</cond5>
  108. <cond6>-</cond6>
  109. <sort4>4</sort4>
  110. <cond7>0</cond7>
  111. <cond8>-</cond8>
  112. <sort5>5</sort5>
  113. <cond9>0</cond9>
  114. <cond10>-</cond10>
  115. </sortdata>
  116. <codedata>
  117. <popupmenu>
  118. <grid>
  119. <item>
  120. <name>병원감염보고서 등록</name>
  121. <func>fReportSearch</func>
  122. </item>
  123. <item>
  124. <name>-</name>
  125. <func/>
  126. </item>
  127. <item>
  128. <name>Order 조회</name>
  129. <func>fOrderSearch</func>
  130. </item>
  131. </grid>
  132. </popupmenu>
  133. </codedata>
  134. </main>
  135. <hidden>
  136. <selecteddata>
  137. <selectedpid/>
  138. <selectedindd/>
  139. <selectedrgstdt/>
  140. </selecteddata>
  141. <orddeptlist>
  142. </orddeptlist>
  143. <warddeptlist>
  144. </warddeptlist>
  145. <getdata>
  146. <cd/>
  147. <nm/>
  148. </getdata>
  149. </hidden>
  150. <send>
  151. </send>
  152. <init>
  153. <currentdt>
  154. <currentdate/>
  155. <currenttime/>
  156. </currentdt>
  157. </init>
  158. </root>
  159. </instance>
  160. <script type="javascript" ev:event="xforms-ready">
  161. <![CDATA[
  162. fInitialize();
  163. model.setValue("/root/init/currentdt/currentdate", getCurrentDate());
  164. model.setValue("/root/init/currentdt/currenttime", getCurrentTime());
  165. var idate = new Date();
  166. var peveDate = idate.getAddDate(-1, "D");
  167. //기본 조회는 한달 전 ~ 현재일자 까지 감염된 환자의 리스트
  168. model.setValue("/root/main/condition/termfromdd", peveDate.getDateFormat());
  169. model.setValue("/root/main/condition/termtodd", model.getValue("/root/init/currentdt/currentdate"));
  170. model.refresh();
  171. model.makeNode("/root/send/reqdata");
  172. model.copyNode("/root/send/reqdata", "/root/main/condition");
  173. //submit("TRASI00601");
  174. //grd_vertically.frozencols = 18;
  175. //grd_vertically.mergecol(18) = false;
  176. //for(var i=19; i< grd_vertically.rows;i++ ) {grd_vertically.mergecol(i) = false;}
  177. grd_vertically.mergecells = "never";
  178. /*
  179. var xmlDoc = document.models(0).instances(0);
  180. var root = xmlDoc.documentElement;
  181. model.alert(root.xml);
  182. */
  183. ]]>
  184. </script>
  185. <submission id="TRASI00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/microtestprotonlist/vprotonlist"/>
  186. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  187. </model>
  188. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  189. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  190. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  191. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  192. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  193. <script type="javascript">
  194. <![CDATA[
  195. function fInitialize() {
  196. model.removeNodeset("/root/main/microtestprotonlist/vprotonlist");
  197. // 공통코드를 조회한다.
  198. /*
  199. var instcd = getUserInfo("dutplceinstcd");
  200. var standard_yn = "orduseyn";
  201. var ord_deptflag = 'D';
  202. var rslt_ref = "/root/hidden/orddeptlist";
  203. var sort_field = "depthngnm";
  204. var sort_method = "asc";
  205. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
  206. addComboItem("cmb_orddept","","","above");
  207. standard_yn = "orduseyn";
  208. ord_deptflag = "W";
  209. rslt_ref = "/root/hidden/warddeptlist";
  210. sort_field = "deptcd";
  211. sort_method = "asc";
  212. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
  213. addComboItem("cmb_wardcd","","","above");
  214. */
  215. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/hidden/orddeptlist", "A"); //부서코드 콤보
  216. addComboItem("cmb_orddept","","","above");
  217. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/hidden/warddeptlist", "W"); //부서코드 콤보
  218. addComboItem("cmb_wardcd","","","above");
  219. model.refresh();
  220. }
  221. function fReqOpPatPamInfo(){
  222. var iRow = grd_horizontally.row;
  223. var sPATLIST_PATH = "/root/main/microtestprotonlist/vprotonlist/info";
  224. var hngioflag = model.getValue(sPATLIST_PATH + "[" + iRow + "]/ioflag");
  225. //var ioflag = "I";
  226. var pid = model.getValue(sPATLIST_PATH + "[" + iRow + "]/pid");
  227. var orddd = model.getValue(sPATLIST_PATH + "[" + iRow + "]/indd");
  228. var cretno = model.getValue(sPATLIST_PATH + "[" + iRow + "]/cretno");
  229. var seqno = model.getValue(sPATLIST_PATH + "[" + iRow + "]/seqno");
  230. var instcd = getUserInfo("dutplceinstcd");
  231. var srchdd = model.getValue(sPATLIST_PATH + "[" + iRow + "]/dschdd");
  232. var ioflag = ioflag = model.getValue(sPATLIST_PATH + "[" + iRow + "]/ioflag");
  233. if (srchdd=="" || isNull(srchdd)){
  234. srchdd=getCurrentDate();
  235. }
  236. // var currdd = getCurrentDate();
  237. //
  238. // if (dschdd = ''){
  239. // var srchdd = currdd;
  240. // } else {
  241. // var srchdd = dschdd;
  242. // }
  243. var param = ioflag + "▦"
  244. + pid + "▦"
  245. + orddd + "▦"
  246. + cretno + "▦"
  247. + instcd+ "▦"
  248. + srchdd+"▦";
  249. setParameter("condparam", param);
  250. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  251. }
  252. /* 검체팝업 호출 (2009.07. JJE) */
  253. function fSrchSpc(){
  254. //modal("SPASI02800",0,0,0,"SPASI02800");
  255. model.makeValue("/root/hidden/send/srchnm", model.getValue("/root/main/condition/srchspcnm"));
  256. model.makeValue("/root/hidden/send/srchflag", "N");
  257. modal("SPASI02800",0,0,0,"SPASI02800", "/root/hidden/send", "/root/main/condition");
  258. if(model.getValue("/root/hidden/getdata/cd") != ""){
  259. model.setValue("/root/main/condition/srchspccd", model.getValue("/root/hidden/getdata/cd"));
  260. model.setValue("/root/main/condition/srchspcnm", model.getValue("/root/hidden/getdata/nm"));
  261. model.resetInstanceNode("/root/hidden/getdata");
  262. model.refresh();
  263. }
  264. }
  265. /* 균팝업 호출 (2009.07. JJE) */
  266. function fSrchBac(){
  267. //modal("SPASB00400",0,0,0,"SPASB00400");
  268. model.makeValue("/root/hidden/send/srchnm", model.getValue("/root/main/condition/srchbacnm"));
  269. model.makeValue("/root/hidden/send/srchflag", "N");
  270. modal("SPASB00400",0,0,0,"SPASB00400", "/root/hidden/send", "/root/main/condition");
  271. if(model.getValue("/root/hidden/getdata/cd") != ""){
  272. model.setValue("/root/main/condition/srchbaccd", model.getValue("/root/hidden/getdata/cd"));
  273. model.setValue("/root/main/condition/srchbacnm", model.getValue("/root/hidden/getdata/nm"));
  274. model.resetInstanceNode("/root/hidden/getdata");
  275. model.refresh();
  276. }
  277. }
  278. ]]>
  279. </script>
  280. <script type="javascript">
  281. <![CDATA[
  282. function fReportSearch() {
  283. var sessionPID = getPatientId();
  284. //var iRow=grd_vertically.row;
  285. var iRow=grd_horizontally.row;
  286. if(sessionPID != model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/pid")){
  287. fReqOpPatPamInfo();
  288. }
  289. //검사보고일, 검체코드, 검체명, 균코드, 균명, 항생제내성균코드, 항생제내성균명, 처방일, 채혈일, 검사분류코드, 검사코드, 바코드, 검사실시일시
  290. var rtnmsg_header="lastreptdt▦spccd▦spcnm▦baccd▦bacnm▦nsgbrcd▦nsgbrnm▦prcpdd▦bcolldt▦tclscd▦testcd▦bcno▦spcacptdt▩";
  291. var rtnmsg_data="";
  292. rtnmsg_data+=model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/lastreptdt") +"▦"
  293. + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/spccd") +"▦"
  294. + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/spcnm") +"▦"
  295. + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/baccd") +"▦"
  296. + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/bacnm") +"▦"
  297. + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/nsgbrcd") +"▦"
  298. + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/nsgbrnm") +"▦"
  299. + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/prcpdd") +"▦"
  300. + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/bcolldt") +"▦"
  301. + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/tclscd") +"▦"
  302. + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/testcd") +"▦"
  303. + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/bcno") +"▦"
  304. + model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/bcolldt") +"▩";
  305. setParameter("setVal13", rtnmsg_header+rtnmsg_data);
  306. open("SMASI00100", 1,10,10, "SMASI00100");
  307. //model.close();
  308. }
  309. function fOrderSearch() {
  310. var sessionPID = getPatientId();
  311. var iRow=grd_vertically.row;
  312. //var iRow=grd_horizontally.row;
  313. if(sessionPID != model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+iRow+"]/pid")){
  314. fReqOpPatPamInfo();
  315. }
  316. open("SMMMO02500", 1,10,10, "SMMMO02500");
  317. //model.close();
  318. }
  319. ]]>
  320. </script>
  321. </xhtml:head>
  322. <xhtml:body idprefix="import" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  323. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
  324. <group id="group2" style="left:0px; top:0px; width:1195px; height:784px; vertical-align:top; ">
  325. <line id="line4" class="line_3" style="x1:0px; y1:781px; x2:1194px; y2:781px; "/>
  326. <group id="grp_tle" style="left:0px; top:0px; width:1194; height:13px; ">
  327. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:173px; height:14px; ">미생물배양 양성자조회</caption>
  328. </group>
  329. </group>
  330. </group>
  331. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  332. <button id="button38" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
  333. <caption>초기화</caption>
  334. <script type="javascript" ev:event="DOMActivate">
  335. <![CDATA[
  336. model.removeNodeset("/root/main/microtestprotonlist/vprotonlist");
  337. model.removeNodeset("/root/main/microtestprotonlist/hprotonlist");
  338. ]]>
  339. </script>
  340. </button>
  341. <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:2px; top:3px; width:56px; height:22px; ">
  342. <caption>출력</caption>
  343. <script type="javascript" ev:event="DOMActivate">
  344. <![CDATA[
  345. ]]>
  346. </script>
  347. </button>
  348. </group>
  349. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195; height:742px; ">
  350. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:68px; vertical-align:top; ">
  351. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:68px; background-color:#fffbf2; border-color:#ffd799; "/>
  352. <button id="btn_search" class="btn1_letter2" style="left:1124px; top:22px; width:56px; height:22px; ">
  353. <caption>조회</caption>
  354. <script type="javascript" ev:event="DOMActivate">
  355. <![CDATA[
  356. /*var gridCaptionArray=0;
  357. for( var i = grd_vertically.rightCol; i < gridCaptionArray.length; i-- ) {
  358. grd_vertically.removeColumn(false);
  359. }*/
  360. model.removeNodeset("/root/send/reqdata");
  361. model.makeNode("/root/send/reqdata");
  362. model.copyNode("/root/send/reqdata", "/root/main/condition");
  363. openLoadingBar("미생물배양양성자조회 ") ;//처리중 화면을 오픈한다.
  364. submit("TRASI00601", false);
  365. closeLoadingBar() ;//처리중 화면을 close한다.
  366. //가로모드일때 복사
  367. model.makeNode("/root/hidden/templist/info");
  368. model.copyNode("/root/hidden/templist", "/root/main/microtestprotonlist/vprotonlist");
  369. //동적caption (균명)
  370. var gridCaption = model.getValue("/root/main/microtestprotonlist/vprotonlist/header/caption");
  371. var gridCaptionArray=gridCaption.split("^");
  372. //동적ref (균코드)
  373. var gridColRef = model.getValue("/root/main/microtestprotonlist/vprotonlist/header/colref");
  374. var gridColRefArray=gridColRef.split("^");
  375. //grd_vertically.colwidth(18) = 0; // 균 column 숨기기
  376. grd_vertically.colwidth(30) = 0; // 균 column 숨기기
  377. /*for(var i=1; i < gridCaptionArray.length; i++ ) {
  378. grd_vertically.addColumn("ref:" + gridColRefArray[i] + "; type:output ;", false);
  379. }
  380. grd_vertically.caption= grd_vertically.caption.concat(gridCaption);*/
  381. for(var i=1; i < gridCaptionArray.length; i++ ) {
  382. grd_vertically.addColumn("ref:" + gridColRefArray[i] + "; type:output ;", false);
  383. }
  384. grd_vertically.caption= grd_vertically.caption.concat(gridCaption);
  385. //Grid에 Y/N 설정하기
  386. /*for(var i=1; i < grd_vertically.rows; i++ ) {
  387. var bacnm=model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+ i +"]/bacnm");
  388. for(var j=1; j < gridColRefArray.length; j++) {
  389. if(bacnm == gridCaptionArray[j]) {
  390. model.setValue("/root/main/microtestprotonlist/vprotonlist/info["+ i +"]/" + gridColRefArray[j], "Y");
  391. }
  392. else {
  393. model.setValue("/root/main/microtestprotonlist/vprotonlist/info["+ i +"]/" + gridColRefArray[j], "N");
  394. }
  395. }
  396. }*/
  397. //grid에 감수성결과 설정하기
  398. for(var i=1; i < grd_vertically.rows; i++ ) {
  399. var bacnm=model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+ i +"]/bacnm");
  400. for(var j=1; j < gridColRefArray.length; j++) {
  401. if(bacnm == gridCaptionArray[j]) {
  402. model.setValue("/root/main/microtestprotonlist/vprotonlist/info["+ i +"]/" + gridColRefArray[j], model.getValue("/root/main/microtestprotonlist/vprotonlist/info["+ i +"]/antibioref"));
  403. }
  404. else {
  405. model.setValue("/root/main/microtestprotonlist/vprotonlist/info["+ i +"]/" + gridColRefArray[j], "");
  406. }
  407. }
  408. }
  409. /*model.toggle("horizontally");
  410. model.copyNode("/root/main/microtestprotonlist/hprotonlist", "/root/hidden/templist");
  411. model.refresh();*/
  412. /*model.removeNodeset("/root/send/reqdata");
  413. model.makeNode("/root/send/reqdata");
  414. model.copyNode("/root/send/reqdata", "/root/main/condition");
  415. submit("TRASI00601", false);
  416. var vRowCnt = grd_vertically.rows;
  417. //grd_horizontally : 가로모드 그리드
  418. if(model.getValue("/root/main/condition/viewflag") == "H"){
  419. model.toggle("horizontally");
  420. var vRowCnt = grd_vertically.rows;
  421. var hColCnt = grd_horizontally.cols;
  422. //grd_horizontally : 가로모드 그리드
  423. //인스턴스와 그리드를 초기화한다.
  424. for(var i=hColCnt; i>=18; i--){
  425. grd_horizontally.deleteColumn(i);
  426. }
  427. model.removeNodeset("/root/main/microtestprotonlist/hprotonlist/info");
  428. //기본으로 첫번째줄은 copy한다.
  429. model.makeNode("/root/main/microtestprotonlist/hprotonlist/info");
  430. model.copyNode("/root/main/microtestprotonlist/hprotonlist/info", "/root/main/microtestprotonlist/vprotonlist/info[" + 1 + "]");
  431. var pid = model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + 1 + "]/pid"); //default : 첫번째사람의 등록번호
  432. var antibiocdCnt = 1;
  433. var antibiocdStr = "";
  434. var boolFlag = "false";
  435. var cap = "";
  436. var grd_horizontallyCaption = "처방일^결과보고일^처방병동^처방병실^등록번호^성명^성별^나이^진료과^담당의^입원일^퇴원일^현병동^현병실^재원기간^검체^균";
  437. for(var i=1; i<vRowCnt; i++){
  438. var antibiocd = model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/antibiocd");
  439. boolFlag = "false";
  440. for(var j = 1; j <=antibiocdCnt; j++){
  441. if(antibiocd == antibiocdStr.split("▦")[i]){
  442. boolFlag = "false";
  443. } else {
  444. boolFlag = "true";
  445. }
  446. }
  447. if(boolFlag == "true") {
  448. antibiocdStr = antibiocdStr + antibiocd + "▦";
  449. grd_horizontally.addColumn("ref:" + antibiocd + "; type=output;");
  450. grd_horizontally.colwidth(col) = 40;
  451. antibiocdCnt = antibiocdCnt + 1;
  452. var col = 16 + antibiocdCnt; //추가되는 그리드의 캡션순서
  453. grd_horizontallyCaption= grd_horizontallyCaption + "^" + antibiocd;
  454. }
  455. }
  456. grd_horizontally.caption= grd_horizontallyCaption;
  457. var holRowCnt = 1;
  458. col = grd_horizontally.cols+1; //마지막 컬럼 인덱스
  459. for(var i=1; i<vRowCnt; i++){
  460. if(i != 1 && pid != model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/pid")) {
  461. holRowCnt++;
  462. model.alert( pid );
  463. model.makeNode("/root/main/microtestprotonlist/hprotonlist/info[" + holRowCnt + "]");
  464. model.copyNode("/root/main/microtestprotonlist/hprotonlist/info[" + holRowCnt + "]", "/root/main/microtestprotonlist/vprotonlist/info[" + i + "]");
  465. pid = model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/pid");
  466. }else if(pid == model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/pid")) {
  467. for(j=17; j<=col; j++){
  468. cap = grd_horizontallyCaption.split("^")[j];
  469. if(cap == model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/antibiocd")) {
  470. model.setValue("/root/main/microtestprotonlist/hprotonlist/info[" + holRowCnt + "]/"+cap, model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/antibioref"));
  471. }
  472. }
  473. }
  474. }
  475. grd_horizontally.refresh();
  476. }*/
  477. ]]>
  478. </script>
  479. </button>
  480. <line id="line13" class="line_4" style="x1:1109px; y1:9px; x2:1109px; y2:57px; "/>
  481. <caption id="caption2" class="search_name" style="left:370px; top:40px; width:61px; height:17px; ">균 :</caption>
  482. <caption id="caption4" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기간 :</caption>
  483. <caption id="caption5" class="search_no_b" style="left:262px; top:11px; width:12px; height:17px; ">~</caption>
  484. <select1 id="cmb_termflag" ref="/root/main/condition/termflag" class="combo_default" appearance="minimal" style="left:81px; top:11px; width:87px; height:19px; ">
  485. <choices>
  486. <item>
  487. <label>처방일</label>
  488. <value>O</value>
  489. </item>
  490. <item>
  491. <label>접수일</label>
  492. <value>A</value>
  493. </item>
  494. <item>
  495. <label>결과보고일</label>
  496. <value>R</value>
  497. </item>
  498. </choices>
  499. </select1>
  500. <input id="ipt_srchbacnm" ref="/root/main/condition/srchbacnm" class="input_search" disabled="false" style="left:435px; top:40px; width:185px; height:19px; ">
  501. <script type="javascript" ev:event="onkeydown">
  502. <![CDATA[
  503. if ( event.keycode == 13 ) {
  504. model.setValue("/root/main/condition/srchbacnm", ipt_srchbacnm.currentText);
  505. fSrchBac();
  506. }
  507. ]]>
  508. </script>
  509. <script type="javascript" ev:event="xforms-value-changed">
  510. <![CDATA[
  511. if( isNull(model.getValue("/root/main/condition/srchbacnm")) ){
  512. model.setValue("/root/main/condition/srchbaccd", "");
  513. }
  514. ]]>
  515. </script>
  516. </input>
  517. <caption id="caption7" class="search_name" style="left:15px; top:41px; width:91px; height:17px; ">검체 :</caption>
  518. <caption id="caption12" class="search_name" style="left:910px; top:10px; width:91px; height:17px; ">등록번호 :</caption>
  519. <caption id="caption17" class="search_name" style="left:495px; top:10px; width:86px; height:17px; ">진료과 :</caption>
  520. <caption id="caption20" class="search_name" style="left:718px; top:10px; width:66px; height:17px; ">병동 :</caption>
  521. <input id="ipt_pid" ref="/root/main/condition/srchpid" class="input_search" style="left:1000px; top:9px; width:70px; height:19px; "/>
  522. <input id="ipt_srchspcnm" ref="/root/main/condition/srchspcnm" class="input_search" style="left:81px; top:41px; width:179px; height:19px; ">
  523. <script type="javascript" ev:event="onkeydown">
  524. <![CDATA[
  525. if ( event.keycode == 13 ) {
  526. model.setValue("/root/main/condition/srchspcnm", ipt_srchspcnm.currentText);
  527. fSrchSpc();
  528. }
  529. ]]>
  530. </script>
  531. <script type="javascript" ev:event="xforms-value-changed">
  532. <![CDATA[
  533. if( isNull(model.getValue("/root/main/condition/srchspcnm")) ){
  534. model.setValue("/root/main/condition/srchspccd", "");
  535. }
  536. ]]>
  537. </script>
  538. </input>
  539. <select1 id="cmb_orddept" ref="/root/main/condition/srchorddeptcd" class="combo_default" appearance="minimal" style="left:572px; top:10px; width:139px; height:19px; ">
  540. <choices>
  541. <itemset nodeset="/root/hidden/orddeptlist/dept">
  542. <label ref="depthngnm"/>
  543. <value ref="deptcd"/>
  544. </itemset>
  545. </choices>
  546. </select1>
  547. <select1 id="cmb_wardcd" ref="/root/main/condition/srchwardcd" class="combo_default" appearance="minimal" style="left:783px; top:10px; width:120px; height:19px; ">
  548. <choices>
  549. <itemset nodeset="/root/hidden/warddeptlist/dept">
  550. <label ref="depthngnm"/>
  551. <value ref="deptcd"/>
  552. </itemset>
  553. </choices>
  554. </select1>
  555. <input id="ipt_termfromdd" ref="/root/main/condition/termfromdd" class="input_default" inputtype="date" style="left:176px; top:11px; width:85px; height:19px; "/>
  556. <input id="ipt_termtodd" ref="/root/main/condition/termtodd" class="input_default" inputtype="date" style="left:276px; top:11px; width:85px; height:19px; "/>
  557. <select id="chk_groupflag1" visibility="hidden" overflow="visible" appearance="full" style="left:1025px; top:45px; width:110px; height:20px; border-style:none; ">
  558. <choices>
  559. <item>
  560. <label>환자/검체/균주</label>
  561. <value>SB</value>
  562. </item>
  563. </choices>
  564. <script type="javascript" ev:event="xforms-value-changed">
  565. <![CDATA[
  566. /* if(model.getValue("/root/main/condition/groupflag") == "SB") {
  567. chk_groupflag1.refresh();
  568. chk_groupflag2.refresh();
  569. }*/
  570. model.setValue("/root/main/condition/groupflag", "SB");
  571. ]]>
  572. </script>
  573. </select>
  574. <select id="chk_groupflag2" visibility="hidden" overflow="visible" appearance="full" style="left:1025px; top:30px; width:100px; height:20px; border-style:none; ">
  575. <choices>
  576. <item>
  577. <label>환자/균주</label>
  578. <value>B</value>
  579. </item>
  580. </choices>
  581. <script type="javascript" ev:event="xforms-value-changed">
  582. <![CDATA[
  583. /* if(model.getValue("/root/main/condition/groupflag") == "B") {
  584. chk_groupflag1.refresh();
  585. chk_groupflag2.refresh();
  586. }*/
  587. model.setValue("/root/main/condition/groupflag", "B");
  588. ]]>
  589. </script>
  590. </select>
  591. <select1 id="rdo_groupflag1" ref="/root/main/condition/groupflag" navindex="1" appearance="full" cols="1" overflow="visible" style="left:721px; top:40px; width:80px; height:20px; border-style:none; ">
  592. <choices>
  593. <item>
  594. <label>ALL Dates</label>
  595. <value>A</value>
  596. </item>
  597. </choices>
  598. <script type="javascript" ev:event="xforms-value-changed">
  599. <![CDATA[
  600. if(model.getValue("/root/main/condition/groupflag") == "A") {
  601. rdo_groupflag2.selected = false;
  602. rdo_groupflag3.selected = false;
  603. }
  604. ]]>
  605. </script>
  606. </select1>
  607. <select1 id="rdo_groupflag2" ref="/root/main/condition/groupflag" appearance="full" overflow="visible" style="left:806px; top:40px; width:115px; height:20px; border-style:none; ">
  608. <choices>
  609. <item>
  610. <label>First isolate only</label>
  611. <value>F</value>
  612. </item>
  613. </choices>
  614. <script type="javascript" ev:event="xforms-value-changed">
  615. <![CDATA[
  616. if(model.getValue("/root/main/condition/groupflag") == "F") {
  617. rdo_groupflag1.selected = false;
  618. rdo_groupflag3.selected = false;
  619. }
  620. ]]>
  621. </script>
  622. </select1>
  623. <select1 id="rdo_groupflag3" ref="/root/main/condition/groupflag" appearance="full" overflow="visible" style="left:926px; top:40px; width:120px; height:20px; border-style:none; ">
  624. <choices>
  625. <item>
  626. <label>First isolate only 2</label>
  627. <value>O</value>
  628. </item>
  629. </choices>
  630. <script type="javascript" ev:event="xforms-value-changed">
  631. <![CDATA[
  632. if(model.getValue("/root/main/condition/groupflag") == "O") {
  633. rdo_groupflag1.selected = false;
  634. rdo_groupflag2.selected = false;
  635. }
  636. ]]>
  637. </script>
  638. </select1>
  639. <button id="importbutton1" class="icon_search" style="left:265px; top:43px; width:16px; height:16px; ">
  640. <caption/>
  641. <script type="javascript" ev:event="DOMActivate">
  642. <![CDATA[
  643. fSrchSpc();
  644. ]]>
  645. </script>
  646. </button>
  647. <button id="importbutton2" class="icon_search" style="left:624px; top:41px; width:16px; height:16px; ">
  648. <caption/>
  649. <script type="javascript" ev:event="DOMActivate">
  650. <![CDATA[
  651. fSrchBac();
  652. ]]>
  653. </script>
  654. </button>
  655. <input id="ipt_srchspccd" ref="/root/main/condition/srchspccd" visibility="hidden" style="left:83px; top:40px; width:65px; height:19px; "/>
  656. <input id="ipt_srchbaccd" ref="/root/main/condition/srchbaccd" visibility="hidden" style="left:435px; top:36px; width:65px; height:19px; "/>
  657. <button id="btn_patInfo" class="icon_search" style="left:1075px; top:10px; width:16px; height:16px; ">
  658. <caption/>
  659. <script type="javascript" ev:event="DOMActivate">
  660. <![CDATA[
  661. if( (model.getValue("/root/main/condition/srchpid") != "") || (model.getValue("/root/main/condition/srchpid") != "")) {
  662. model.makeValue("/root/send/reqdata/pid", model.getValue("/root/main/condition/srchpid"));
  663. model.makeValue("/root/send/reqdata/srchcond", "1");
  664. }
  665. model.makeNode("/root/main/patinfo/patinfolist");
  666. modal("SPPMC02500",0,0,0,"SPPMC02500", "/root/send/reqdata", "/root/send");
  667. if(model.getValue("/root/main/patinfo/patinfolist/pid") != ""){
  668. model.setValue("/root/main/condition/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  669. model.refresh();
  670. }
  671. ]]>
  672. </script>
  673. </button>
  674. <caption id="importcaption1" class="search_name" style="left:370px; top:10px; width:66px; height:17px; ">구분 :</caption>
  675. <select1 id="importcombo1" ref="/root/main/condition/srchioflag" class="combo_default" appearance="minimal" style="left:433px; top:10px; width:55px; height:19px; ">
  676. <choices>
  677. <item>
  678. <label>전체</label>
  679. <value>-</value>
  680. </item>
  681. <item>
  682. <label>외래</label>
  683. <value>O</value>
  684. </item>
  685. <item>
  686. <label>입원</label>
  687. <value>I</value>
  688. </item>
  689. </choices>
  690. <script type="javascript" ev:event="xforms-value-changed">
  691. <![CDATA[
  692. if( model.getValue("/root/main/condition/srchioflag") == "O" ){
  693. cmb_wardcd.disabled = true;
  694. }else{
  695. cmb_wardcd.disabled = false;
  696. }
  697. ]]>
  698. </script>
  699. </select1>
  700. </group>
  701. <line id="line6" class="line_3" style="x1:0px; y1:133px; x2:1194px; y2:133px; "/>
  702. <output id="opt_sort4" ref="/root/main/sortdata/sort4" class="output_fix" visibility="hidden" style="left:681px; top:111px; width:30px; height:19px; text-align:center; "/>
  703. <output id="opt_sort5" ref="/root/main/sortdata/sort5" class="output_fix" visibility="hidden" style="left:880px; top:111px; width:30px; height:19px; text-align:center; "/>
  704. <select1 id="cmb_cond8" ref="/root/main/sortdata/cond8" class="combo_search" visibility="hidden" appearance="minimal" style="left:797px; top:111px; width:70px; height:19px; ">
  705. <choices>
  706. <item>
  707. <label>-</label>
  708. <value>-</value>
  709. </item>
  710. <item>
  711. <label>올림</label>
  712. <value>asc</value>
  713. </item>
  714. <item>
  715. <label>내림</label>
  716. <value>desc</value>
  717. </item>
  718. </choices>
  719. </select1>
  720. <select1 id="cmb_cond4" ref="/root/main/sortdata/cond4" class="combo_search" visibility="hidden" appearance="minimal" style="left:399px; top:111px; width:70px; height:19px; ">
  721. <choices>
  722. <item>
  723. <label>-</label>
  724. <value>-</value>
  725. </item>
  726. <item>
  727. <label>올림</label>
  728. <value>asc</value>
  729. </item>
  730. <item>
  731. <label>내림</label>
  732. <value>desc</value>
  733. </item>
  734. </choices>
  735. </select1>
  736. <select1 id="cmb_cond6" ref="/root/main/sortdata/cond6" class="combo_search" visibility="hidden" appearance="minimal" style="left:598px; top:111px; width:70px; height:19px; ">
  737. <choices>
  738. <item>
  739. <label>-</label>
  740. <value>-</value>
  741. </item>
  742. <item>
  743. <label>올림</label>
  744. <value>asc</value>
  745. </item>
  746. <item>
  747. <label>내림</label>
  748. <value>desc</value>
  749. </item>
  750. </choices>
  751. </select1>
  752. <select1 id="cmb_cond1" ref="/root/main/sortdata/cond1" class="combo_search" visibility="hidden" appearance="minimal" style="left:116px; top:111px; width:80px; height:19px; ">
  753. <choices>
  754. <item>
  755. <label>-</label>
  756. <value>0</value>
  757. </item>
  758. <item>
  759. <label>검체</label>
  760. <value>17</value>
  761. </item>
  762. <item>
  763. <label>균</label>
  764. <value>18</value>
  765. </item>
  766. <item>
  767. <label>등록번호</label>
  768. <value>5</value>
  769. </item>
  770. <item>
  771. <label>병동</label>
  772. <value>14</value>
  773. </item>
  774. <item>
  775. <label>병실</label>
  776. <value>15</value>
  777. </item>
  778. <item>
  779. <label>보고일</label>
  780. <value>2</value>
  781. </item>
  782. <item>
  783. <label>성명</label>
  784. <value>6</value>
  785. </item>
  786. <item>
  787. <label>성별</label>
  788. <value>7</value>
  789. </item>
  790. <item>
  791. <label>입원일</label>
  792. <value>11</value>
  793. </item>
  794. <item>
  795. <label>진료과</label>
  796. <value>9</value>
  797. </item>
  798. <item>
  799. <label>채혈일</label>
  800. <value>13</value>
  801. </item>
  802. <item>
  803. <label>퇴원일</label>
  804. <value>12</value>
  805. </item>
  806. </choices>
  807. </select1>
  808. <output id="opt_sort2" ref="/root/main/sortdata/sort2" class="output_fix" visibility="hidden" style="left:282px; top:111px; width:30px; height:19px; text-align:center; "/>
  809. <select1 id="cmb_cond2" ref="/root/main/sortdata/cond2" class="combo_search" visibility="hidden" appearance="minimal" style="left:199px; top:111px; width:70px; height:19px; ">
  810. <choices>
  811. <item>
  812. <label>-</label>
  813. <value>-</value>
  814. </item>
  815. <item>
  816. <label>올림</label>
  817. <value>asc</value>
  818. </item>
  819. <item>
  820. <label>내림</label>
  821. <value>desc</value>
  822. </item>
  823. </choices>
  824. </select1>
  825. <output id="opt_sort3" ref="/root/main/sortdata/sort3" class="output_fix" visibility="hidden" style="left:482px; top:111px; width:30px; height:19px; text-align:center; "/>
  826. <select1 id="cmb_cond10" ref="/root/main/sortdata/cond10" class="combo_search" visibility="hidden" appearance="minimal" style="left:997px; top:111px; width:70px; height:19px; ">
  827. <choices>
  828. <item>
  829. <label>-</label>
  830. <value>-</value>
  831. </item>
  832. <item>
  833. <label>올림</label>
  834. <value>asc</value>
  835. </item>
  836. <item>
  837. <label>내림</label>
  838. <value>desc</value>
  839. </item>
  840. </choices>
  841. </select1>
  842. <output id="opt_sort1" ref="/root/main/sortdata/sort1" class="output_fix" visibility="hidden" style="left:83px; top:111px; width:30px; height:19px; text-align:center; "/>
  843. <button id="btn_sort" class="btn2_letter2" visibility="hidden" style="left:1017px; top:84px; width:42px; height:19px; ">
  844. <caption>정렬</caption>
  845. <script type="javascript" ev:event="DOMActivate">
  846. <![CDATA[
  847. var mode = model.getValue("/root/main/condition/viewflag");
  848. if(mode == "V") {
  849. var tmpCol = model.getValue("/root/main/sortdata/cond1");
  850. var tmpsort = model.getValue("/root/main/sortdata/cond2");
  851. if (tmpsort == "asc" && tmpCol > 0 )
  852. {
  853. grd_vertically.colsort(tmpCol) = "asc";
  854. } else{
  855. grd_vertically.colsort(tmpCol) = "desc";
  856. }
  857. var tmpCol = model.getValue("/root/main/sortdata/cond3");
  858. var tmpsort = model.getValue("/root/main/sortdata/cond4");
  859. if (tmpsort == "asc" && tmpCol > 0 )
  860. {
  861. grd_vertically.colsort(tmpCol) = "asc";
  862. } else{
  863. grd_vertically.colsort(tmpCol) = "desc";
  864. }
  865. var tmpCol = model.getValue("/root/main/sortdata/cond5");
  866. var tmpsort = model.getValue("/root/main/sortdata/cond6");
  867. if (tmpsort == "asc" && tmpCol > 0 )
  868. {
  869. grd_vertically.colsort(tmpCol) = "asc";
  870. } else{
  871. grd_vertically.colsort(tmpCol) = "desc";
  872. }
  873. var tmpCol = model.getValue("/root/main/sortdata/cond7");
  874. var tmpsort = model.getValue("/root/main/sortdata/cond8");
  875. if (tmpsort == "asc" && tmpCol > 0 )
  876. {
  877. grd_vertically.colsort(tmpCol) = "asc";
  878. } else{
  879. grd_vertically.colsort(tmpCol) = "desc";
  880. }
  881. var tmpCol = model.getValue("/root/main/sortdata/cond9");
  882. var tmpsort = model.getValue("/root/main/sortdata/cond10");
  883. if (tmpsort == "asc" && tmpCol > 0 )
  884. {
  885. grd_vertically.colsort(tmpCol) = "asc";
  886. } else{
  887. grd_vertically.colsort(tmpCol) = "desc";
  888. }
  889. grd_vertically.sort(1, 1, grd_vertically.bottomRow, grd_vertically.rightcol)="usersort";
  890. } else if(mode == "H") {
  891. var tmpCol = model.getValue("/root/main/sortdata/cond1");
  892. var tmpsort = model.getValue("/root/main/sortdata/cond2");
  893. if (tmpsort == "asc" && tmpCol > 0 )
  894. {
  895. grd_horizontally.colsort(tmpCol) = "asc";
  896. } else{
  897. grd_horizontally.colsort(tmpCol) = "desc";
  898. }
  899. var tmpCol = model.getValue("/root/main/sortdata/cond3");
  900. var tmpsort = model.getValue("/root/main/sortdata/cond4");
  901. if (tmpsort == "asc" && tmpCol > 0 )
  902. {
  903. grd_horizontally.colsort(tmpCol) = "asc";
  904. } else{
  905. grd_horizontally.colsort(tmpCol) = "desc";
  906. }
  907. var tmpCol = model.getValue("/root/main/sortdata/cond5");
  908. var tmpsort = model.getValue("/root/main/sortdata/cond6");
  909. if (tmpsort == "asc" && tmpCol > 0 )
  910. {
  911. grd_horizontally.colsort(tmpCol) = "asc";
  912. } else{
  913. grd_horizontally.colsort(tmpCol) = "desc";
  914. }
  915. var tmpCol = model.getValue("/root/main/sortdata/cond7");
  916. var tmpsort = model.getValue("/root/main/sortdata/cond8");
  917. if (tmpsort == "asc" && tmpCol > 0 )
  918. {
  919. grd_horizontally.colsort(tmpCol) = "asc";
  920. } else{
  921. grd_horizontally.colsort(tmpCol) = "desc";
  922. }
  923. var tmpCol = model.getValue("/root/main/sortdata/cond9");
  924. var tmpsort = model.getValue("/root/main/sortdata/cond10");
  925. if (tmpsort == "asc" && tmpCol > 0 )
  926. {
  927. grd_horizontally.colsort(tmpCol) = "asc";
  928. } else{
  929. grd_horizontally.colsort(tmpCol) = "desc";
  930. }
  931. grd_horizontally.sort(1, 1, grd_horizontally.bottomRow, grd_horizontally.rightcol)="usersort"
  932. }
  933. model.refresh();
  934. ]]>
  935. </script>
  936. </button>
  937. <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:84px; width:42px; height:19px; ">
  938. <caption>엑셀</caption>
  939. <script type="javascript" ev:event="DOMActivate">
  940. <![CDATA[
  941. var mode = model.getValue("/root/main/condition/viewflag");
  942. if(mode == "V") {
  943. // var fileName = window.fileDialog("save", ",", false, "c", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  944. // if (fileName != "") grd_horizontally.saveExcel(fileName, "미생물배양양성자_세로모드", false, false, "", "", false);
  945. var fileName = window.fileDialog("save", ",", false, "미생물배양양성자", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  946. if (fileName != ""){
  947. grd_horizontally.saveExcel(fileName, "미생물배양양성자_세로모드", true, true, "", "", false);
  948. var s = fileName.lastIndexOf("\\");
  949. var fileName=fileName.substring(s+1);
  950. var rmsg = messageBox("저장된 Excel을", "Q004");
  951. if( rmsg == 6 ){
  952. window.exec("excel.exe", fileName);
  953. }
  954. }
  955. } else if(mode == "H") {
  956. // var fileName = window.fileDialog("save", ",", false, "미생물배양양성자", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  957. // if (fileName != "") grd_horizontally.saveExcel(fileName, "미생물배양양성자_가로모드", false, false, "", "", false);
  958. var fileName = window.fileDialog("save", ",", false, "미생물배양양성자", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  959. if (fileName != ""){
  960. grd_horizontally.saveExcel(fileName, "미생물배양양성자_가로모드", true, true, "", "", false);
  961. var s = fileName.lastIndexOf("\\");
  962. var fileName=fileName.substring(s+1);
  963. var rmsg = messageBox("저장된 Excel을", "Q004");
  964. if( rmsg == 6 ){
  965. window.exec("excel.exe", fileName);
  966. }
  967. }
  968. }
  969. ]]>
  970. </script>
  971. </button>
  972. <line id="line5" class="line_1" style="x1:0px; y1:105px; x2:1194px; y2:105px; "/>
  973. <caption id="caption8" class="cell_1" visibility="hidden" style="left:0px; top:110px; width:79px; height:23px; vertical-align:middle; ">정렬선택</caption>
  974. <select1 id="cmb_cond3" ref="/root/main/sortdata/cond3" class="combo_search" visibility="hidden" appearance="minimal" style="left:315px; top:111px; width:80px; height:19px; ">
  975. <choices>
  976. <item>
  977. <label>-</label>
  978. <value>0</value>
  979. </item>
  980. <item>
  981. <label>검체</label>
  982. <value>17</value>
  983. </item>
  984. <item>
  985. <label>균</label>
  986. <value>18</value>
  987. </item>
  988. <item>
  989. <label>등록번호</label>
  990. <value>5</value>
  991. </item>
  992. <item>
  993. <label>병동</label>
  994. <value>14</value>
  995. </item>
  996. <item>
  997. <label>병실</label>
  998. <value>15</value>
  999. </item>
  1000. <item>
  1001. <label>보고일</label>
  1002. <value>2</value>
  1003. </item>
  1004. <item>
  1005. <label>성명</label>
  1006. <value>6</value>
  1007. </item>
  1008. <item>
  1009. <label>성별</label>
  1010. <value>7</value>
  1011. </item>
  1012. <item>
  1013. <label>입원일</label>
  1014. <value>11</value>
  1015. </item>
  1016. <item>
  1017. <label>진료과</label>
  1018. <value>9</value>
  1019. </item>
  1020. <item>
  1021. <label>채혈일</label>
  1022. <value>13</value>
  1023. </item>
  1024. <item>
  1025. <label>퇴원일</label>
  1026. <value>12</value>
  1027. </item>
  1028. </choices>
  1029. </select1>
  1030. <select1 id="cmb_cond5" ref="/root/main/sortdata/cond5" class="combo_search" visibility="hidden" appearance="minimal" style="left:516px; top:111px; width:80px; height:19px; ">
  1031. <choices>
  1032. <item>
  1033. <label>-</label>
  1034. <value>0</value>
  1035. </item>
  1036. <item>
  1037. <label>검체</label>
  1038. <value>17</value>
  1039. </item>
  1040. <item>
  1041. <label>균</label>
  1042. <value>18</value>
  1043. </item>
  1044. <item>
  1045. <label>등록번호</label>
  1046. <value>5</value>
  1047. </item>
  1048. <item>
  1049. <label>병동</label>
  1050. <value>14</value>
  1051. </item>
  1052. <item>
  1053. <label>병실</label>
  1054. <value>15</value>
  1055. </item>
  1056. <item>
  1057. <label>보고일</label>
  1058. <value>2</value>
  1059. </item>
  1060. <item>
  1061. <label>성명</label>
  1062. <value>6</value>
  1063. </item>
  1064. <item>
  1065. <label>성별</label>
  1066. <value>7</value>
  1067. </item>
  1068. <item>
  1069. <label>입원일</label>
  1070. <value>11</value>
  1071. </item>
  1072. <item>
  1073. <label>진료과</label>
  1074. <value>9</value>
  1075. </item>
  1076. <item>
  1077. <label>채혈일</label>
  1078. <value>13</value>
  1079. </item>
  1080. <item>
  1081. <label>퇴원일</label>
  1082. <value>12</value>
  1083. </item>
  1084. </choices>
  1085. </select1>
  1086. <select1 id="cmb_cond7" ref="/root/main/sortdata/cond7" class="combo_search" visibility="hidden" appearance="minimal" style="left:714px; top:111px; width:80px; height:19px; ">
  1087. <choices>
  1088. <item>
  1089. <label>-</label>
  1090. <value>0</value>
  1091. </item>
  1092. <item>
  1093. <label>검체</label>
  1094. <value>17</value>
  1095. </item>
  1096. <item>
  1097. <label>균</label>
  1098. <value>18</value>
  1099. </item>
  1100. <item>
  1101. <label>등록번호</label>
  1102. <value>5</value>
  1103. </item>
  1104. <item>
  1105. <label>병동</label>
  1106. <value>14</value>
  1107. </item>
  1108. <item>
  1109. <label>병실</label>
  1110. <value>15</value>
  1111. </item>
  1112. <item>
  1113. <label>보고일</label>
  1114. <value>2</value>
  1115. </item>
  1116. <item>
  1117. <label>성명</label>
  1118. <value>6</value>
  1119. </item>
  1120. <item>
  1121. <label>성별</label>
  1122. <value>7</value>
  1123. </item>
  1124. <item>
  1125. <label>입원일</label>
  1126. <value>11</value>
  1127. </item>
  1128. <item>
  1129. <label>진료과</label>
  1130. <value>9</value>
  1131. </item>
  1132. <item>
  1133. <label>채혈일</label>
  1134. <value>13</value>
  1135. </item>
  1136. <item>
  1137. <label>퇴원일</label>
  1138. <value>12</value>
  1139. </item>
  1140. </choices>
  1141. </select1>
  1142. <select1 id="cmb_cond9" ref="/root/main/sortdata/cond9" class="combo_search" visibility="hidden" appearance="minimal" style="left:913px; top:111px; width:80px; height:19px; ">
  1143. <choices>
  1144. <item>
  1145. <label>-</label>
  1146. <value>0</value>
  1147. </item>
  1148. <item>
  1149. <label>검체</label>
  1150. <value>17</value>
  1151. </item>
  1152. <item>
  1153. <label>균</label>
  1154. <value>18</value>
  1155. </item>
  1156. <item>
  1157. <label>등록번호</label>
  1158. <value>5</value>
  1159. </item>
  1160. <item>
  1161. <label>병동</label>
  1162. <value>14</value>
  1163. </item>
  1164. <item>
  1165. <label>병실</label>
  1166. <value>15</value>
  1167. </item>
  1168. <item>
  1169. <label>보고일</label>
  1170. <value>2</value>
  1171. </item>
  1172. <item>
  1173. <label>성명</label>
  1174. <value>6</value>
  1175. </item>
  1176. <item>
  1177. <label>성별</label>
  1178. <value>7</value>
  1179. </item>
  1180. <item>
  1181. <label>입원일</label>
  1182. <value>11</value>
  1183. </item>
  1184. <item>
  1185. <label>진료과</label>
  1186. <value>9</value>
  1187. </item>
  1188. <item>
  1189. <label>채혈일</label>
  1190. <value>13</value>
  1191. </item>
  1192. <item>
  1193. <label>퇴원일</label>
  1194. <value>12</value>
  1195. </item>
  1196. </choices>
  1197. </select1>
  1198. <button id="button3" class="btn2_letter7" visibility="hidden" style="left:815px; top:80px; width:97px; height:19px; ">
  1199. <caption>방사선검사결과</caption>
  1200. </button>
  1201. <button id="button4" class="btn2_letter4" visibility="hidden" style="left:745px; top:80px; width:64px; height:19px; ">
  1202. <caption>Lab결과</caption>
  1203. </button>
  1204. <button id="btc_prcpsearch" class="btn2_letter5" visibility="hidden" style="left:660px; top:80px; width:75px; height:19px; ">
  1205. <caption>처방조회</caption>
  1206. </button>
  1207. <select1 id="radio2" ref="/root/main/condition/viewflag" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:1101px; top:112px; width:90px; height:20px; border-style:none; ">
  1208. <choices>
  1209. <item>
  1210. <label>가로</label>
  1211. <value>H</value>
  1212. </item>
  1213. <item>
  1214. <label>세로</label>
  1215. <value>V</value>
  1216. </item>
  1217. </choices>
  1218. <script type="javascript" ev:event="xforms-value-changed">
  1219. <![CDATA[
  1220. if(model.getValue("/root/main/condition/viewflag") == "H"){
  1221. model.toggle("horizontally");
  1222. model.copyNode("/root/main/microtestprotonlist/hprotonlist", "/root/hidden/templist");
  1223. model.refresh();
  1224. /*var vRowCnt = grd_vertically.rows;
  1225. var hColCnt = grd_horizontally.cols;
  1226. //grd_horizontally : 가로모드 그리드
  1227. //인스턴스와 그리드를 초기화한다.
  1228. //그리드 반영이 작업이 모두 이루어진 후 한꺼번에 반영되어야 함..
  1229. for(var i=hColCnt; i>=18; i--){
  1230. grd_horizontally.deleteColumn(i);
  1231. }
  1232. model.removeNodeset("/root/main/microtestprotonlist/hprotonlist/info");
  1233. //기본으로 첫번째줄은 copy한다.
  1234. model.makeNode("/root/main/microtestprotonlist/hprotonlist/info");
  1235. model.copyNode("/root/main/microtestprotonlist/hprotonlist/info", "/root/main/microtestprotonlist/vprotonlist/info[" + 1 + "]");
  1236. var pid = model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + 1 + "]/pid"); //default : 첫번째사람의 등록번호
  1237. var antibiocdCnt = 1;
  1238. var antibiocdStr = "";
  1239. var boolFlag = "false";
  1240. var cap = "";
  1241. var grd_horizontallyCaption = "처방일^결과보고일^처방병동^처방병실^등록번호^성명^성별^나이^진료과^담당의^입원일^퇴원일^현병동^현병실^재원기간^검체^균";
  1242. for(var i=1; i<vRowCnt; i++){
  1243. var antibiocd = model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/antibiocd");
  1244. boolFlag = "false";
  1245. for(var j = 1; j <=antibiocdCnt; j++){
  1246. if(antibiocd == antibiocdStr.split("▦")[i]){
  1247. boolFlag = "false";
  1248. } else {
  1249. boolFlag = "true";
  1250. }
  1251. }
  1252. if(boolFlag == "true") {
  1253. antibiocdStr = antibiocdStr + antibiocd + "▦";
  1254. grd_horizontally.addColumn("ref:" + antibiocd + "; type=output;");
  1255. grd_horizontally.colwidth(col) = 40;
  1256. antibiocdCnt = antibiocdCnt + 1;
  1257. var col = 16 + antibiocdCnt; //추가되는 그리드의 캡션순서
  1258. grd_horizontallyCaption= grd_horizontallyCaption + "^" + antibiocd;
  1259. }
  1260. }
  1261. //grd_horizontally.rebuild();
  1262. grd_horizontally.caption= grd_horizontallyCaption;
  1263. var holRowCnt = 1;
  1264. col = grd_horizontally.cols+1; //마지막 컬럼 인덱스
  1265. for(var i=1; i<vRowCnt; i++){
  1266. if(i != 1 && pid != model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/pid")) {
  1267. holRowCnt++;
  1268. model.alert( pid );
  1269. model.makeNode("/root/main/microtestprotonlist/hprotonlist/info[" + holRowCnt + "]");
  1270. model.copyNode("/root/main/microtestprotonlist/hprotonlist/info[" + holRowCnt + "]", "/root/main/microtestprotonlist/vprotonlist/info[" + i + "]");
  1271. pid = model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/pid");
  1272. }else if(pid == model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/pid")) {
  1273. for(j=17; j<=col; j++){
  1274. cap = grd_horizontallyCaption.split("^")[j];
  1275. if(cap == model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/antibiocd")) {
  1276. model.setValue("/root/main/microtestprotonlist/hprotonlist/info[" + holRowCnt + "]/"+cap, model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" + i + "]/antibioref"));
  1277. }
  1278. }
  1279. }
  1280. }
  1281. model.copyNode("/root/main/microtestprotonlist/hprotonlist", "/root/hidden/templist");
  1282. grd_horizontally.refresh();*/
  1283. } else if(model.getValue("/root/main/condition/viewflag") == "V"){
  1284. model.toggle("vertically");
  1285. }
  1286. ]]>
  1287. </script>
  1288. </select1>
  1289. <switch id="switch1" style="left:0px; top:110px; width:1194px; height:625px; ">
  1290. <case id="horizontally" selected="true">
  1291. <datagrid id="grd_horizontally" nodeset="/root/main/microtestprotonlist/vprotonlist/info" caption="외래입원구분^균코드순번^결과순번^균이름2^채혈일^항생제판독결과^항균제^결과^spccd^baccd^nsgbrcd^nsgbrnm^tclscd^testcd^bcno^spcacptdt^cretno^seqno^구분^접수일^결과보고일^처방병동^등록번호^성명^나이^성별^작업번호^검체^균^ESBL^ETP^IPM^MEM^OX^VA^AN^AMX^AMC^CAZ^AMB^AM^SAM^ATM^CZ^FEP^CTX^CTT^FOX^OSXF^CPO^CRO^CXM^ROXA^CF^C^CIP^CC^CL^E^FLU^FCT^FOS^FA^GAT^GM^HLG^Gms^HAB^ISP^HLK^LEV^LVX^LNZ^MI^MXF^NET^FD^NOR^OFX^PFX^P^PIP^TZP^PRI^QDA^RA^SPX^HLS^StS^SUL^SYN^TEC^TE^TIC^TIM^TOB^TM^SXT^VRC^VAS^CB^GM500^처방일^진료과^담당의^입원일^퇴원일^처방병동^처방병실^현병동^현병실^재원기간" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56, 75, 75, 80, 65, 60, 35, 35, 72, 130, 230, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 45, 90, 90, 60, 75, 75, 81, 83, 70, 55, 55" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sort" extendlastcol="scroll" frozencols="22" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:0px; width:1192px; height:620px; ">
  1292. <col ref="ioflag" visibility="hidden"/>
  1293. <col ref="bacseqno" visibility="hidden"/>
  1294. <col ref="rsltseq" visibility="hidden"/>
  1295. <col ref="bacnm2" visibility="hidden"/>
  1296. <col ref="bcolldt" visibility="hidden"/>
  1297. <col ref="antibiorslt" visibility="hidden"/>
  1298. <col ref="antibionm" visibility="hidden"/>
  1299. <col ref="antibioref" visibility="hidden"/>
  1300. <col ref="spccd" visibility="hidden"/>
  1301. <col ref="baccd" visibility="hidden"/>
  1302. <col ref="nsgbrcd" visibility="hidden"/>
  1303. <col ref="nsgbrnm" visibility="hidden"/>
  1304. <col ref="tclscd" visibility="hidden"/>
  1305. <col ref="testcd" visibility="hidden"/>
  1306. <col ref="bcno" visibility="hidden"/>
  1307. <col ref="spcacptdt" visibility="hidden"/>
  1308. <col ref="cretno" visibility="hidden"/>
  1309. <col ref="seqno" visibility="hidden"/>
  1310. <col ref="ordtype" style="text-align:center; "/>
  1311. <col ref="spcacptdt" format="yyyy-mm-dd" style="text-align:center; "/>
  1312. <col ref="lastreptdt" format="yyyy-mm-dd" style="text-align:center; "/>
  1313. <col ref="prcpwardcd" style="text-align:center; "/>
  1314. <col ref="pid" style="text-align:center; "/>
  1315. <col ref="hngnm" style="text-align:center; "/>
  1316. <col ref="age" style="text-align:center; "/>
  1317. <col ref="sex" style="text-align:center; "/>
  1318. <col ref="workno" style="text-align:center; "/>
  1319. <col ref="spcnm"/>
  1320. <col ref="bacnm"/>
  1321. <col ref="esbl" style="text-align:center; "/>
  1322. <col ref="etp"/>
  1323. <col ref="ipm" style="text-align:center; "/>
  1324. <col ref="mem" style="text-align:center; "/>
  1325. <col ref="ox" style="text-align:center; "/>
  1326. <col ref="va" style="text-align:center; "/>
  1327. <col ref="an" style="text-align:center; "/>
  1328. <col ref="amx" style="text-align:center; "/>
  1329. <col ref="amc" style="text-align:center; "/>
  1330. <col ref="caz" style="text-align:center; "/>
  1331. <col ref="amb" style="text-align:center; "/>
  1332. <col ref="am" style="text-align:center; "/>
  1333. <col ref="sam" style="text-align:center; "/>
  1334. <col ref="atm" style="text-align:center; "/>
  1335. <col ref="cz" style="text-align:center; "/>
  1336. <col ref="fep" style="text-align:center; "/>
  1337. <col ref="ctx" style="text-align:center; "/>
  1338. <col ref="ctt" style="text-align:center; "/>
  1339. <col ref="fox" style="text-align:center; "/>
  1340. <col ref="osxf" style="text-align:center; "/>
  1341. <col ref="cpo" style="text-align:center; "/>
  1342. <col ref="cro" style="text-align:center; "/>
  1343. <col ref="cxm" style="text-align:center; "/>
  1344. <col ref="roxa" style="text-align:center; "/>
  1345. <col ref="cf" style="text-align:center; "/>
  1346. <col ref="c" style="text-align:center; "/>
  1347. <col ref="cip" style="text-align:center; "/>
  1348. <col ref="cc" style="text-align:center; "/>
  1349. <col ref="cl" style="text-align:center; "/>
  1350. <col ref="e" style="text-align:center; "/>
  1351. <col ref="flu" style="text-align:center; "/>
  1352. <col ref="fct" style="text-align:center; "/>
  1353. <col ref="fos" style="text-align:center; "/>
  1354. <col ref="fa" style="text-align:center; "/>
  1355. <col ref="gat" style="text-align:center; "/>
  1356. <col ref="gm" style="text-align:center; "/>
  1357. <col ref="hlg" style="text-align:center; "/>
  1358. <col ref="gms" style="text-align:center; "/>
  1359. <col ref="hab" style="text-align:center; "/>
  1360. <col ref="isp" style="text-align:center; "/>
  1361. <col ref="hlk" style="text-align:center; "/>
  1362. <col ref="lev" style="text-align:center; "/>
  1363. <col ref="lvx" style="text-align:center; "/>
  1364. <col ref="lnz" style="text-align:center; "/>
  1365. <col ref="mi" style="text-align:center; "/>
  1366. <col ref="mxf" style="text-align:center; "/>
  1367. <col ref="net" style="text-align:center; "/>
  1368. <col ref="fd" style="text-align:center; "/>
  1369. <col ref="nor" style="text-align:center; "/>
  1370. <col ref="ofx" style="text-align:center; "/>
  1371. <col ref="pfx" style="text-align:center; "/>
  1372. <col ref="p" style="text-align:center; "/>
  1373. <col ref="pip" style="text-align:center; "/>
  1374. <col ref="tzp" style="text-align:center; "/>
  1375. <col ref="pri" style="text-align:center; "/>
  1376. <col ref="qda" style="text-align:center; "/>
  1377. <col ref="ra" style="text-align:center; "/>
  1378. <col ref="spx" style="text-align:center; "/>
  1379. <col ref="hls" style="text-align:center; "/>
  1380. <col ref="sts" style="text-align:center; "/>
  1381. <col ref="sul" style="text-align:center; "/>
  1382. <col ref="syn" style="text-align:center; "/>
  1383. <col ref="tec" style="text-align:center; "/>
  1384. <col ref="te" style="text-align:center; "/>
  1385. <col ref="tic" style="text-align:center; "/>
  1386. <col ref="tim" style="text-align:center; "/>
  1387. <col ref="tob" style="text-align:center; "/>
  1388. <col ref="tm" style="text-align:center; "/>
  1389. <col ref="sxt" style="text-align:center; "/>
  1390. <col ref="vrc" style="text-align:center; "/>
  1391. <col ref="vas" style="text-align:center; "/>
  1392. <col ref="cb" style="text-align:center; "/>
  1393. <col ref="gm500" style="text-align:center; "/>
  1394. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1395. <col ref="orddept" style="text-align:center; "/>
  1396. <col ref="atdrnm" style="text-align:center; "/>
  1397. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  1398. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1399. <col ref="prcpwardcd" style="text-align:center; "/>
  1400. <col ref="prcproomcd" style="text-align:center; "/>
  1401. <col ref="wardcd" style="text-align:center; "/>
  1402. <col ref="roomcd" style="text-align:center; "/>
  1403. <col ref="inhospdayno" style="text-align:right; padding-right:5; "/>
  1404. <script type="javascript" ev:event="onmousedown">
  1405. <![CDATA[
  1406. setPopupMenu("grd_horizontally", false, "/root/main/codedata/popupmenu/grid/item", "name", "func");
  1407. ]]>
  1408. </script>
  1409. <script type="javascript" ev:event="DOMFocusOut">
  1410. <![CDATA[
  1411. initPopupMenu();
  1412. ]]>
  1413. </script>
  1414. <script type="javascript" ev:event="onclick">
  1415. <![CDATA[
  1416. var iRow = grd_vertically.row;
  1417. model.resetInstanceNode("/root/hidden/selecteddata");
  1418. model.setValue("/root/hidden/selecteddata/selectedpid", model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" +iRow + "]/pid"));
  1419. model.setValue("/root/hidden/selecteddata/selectedindd", model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" +iRow + "]/indd"));
  1420. ]]>
  1421. </script>
  1422. <script type="javascript" ev:event="ondblclick">
  1423. <![CDATA[
  1424. if( grd_horizontally.isCell(event.target) && grd_horizontally.mouseRow > 0 && grd_horizontally.mouseRow <= grd_horizontally.rows ) {
  1425. fReqOpPatPamInfo();
  1426. }
  1427. ]]>
  1428. </script>
  1429. <script type="javascript" ev:event="onaftersort">
  1430. <![CDATA[
  1431. grd_horizontally.gridToInstance();
  1432. ]]>
  1433. </script>
  1434. </datagrid>
  1435. </case>
  1436. <case id="vertically">
  1437. <datagrid id="grd_vertically" nodeset="/root/main/microtestprotonlist/vprotonlist/info" caption="항균제^결과^spccd^baccd^nsgbrcd^nsgbrnm^tclscd^testcd^bcno^spcacptdt^cretno^seqno^처방일^결과보고일^처방병동^처방병실^등록번호^성명^검체^균^감수성결과^성별^나이^진료과^담당의^입원일^퇴원일^접수일^현병동^현병실^재원기간" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 77, 74, 72, 70, 70, 63, 140, 250, 70, 40, 80, 60, 64, 83, 83, 82, 72, 57, 56" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshow" mergecells="byrow" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:0px; width:1192px; height:600px; ">
  1438. <col ref="antibionm" visibility="hidden"/>
  1439. <col ref="antibioref" visibility="hidden"/>
  1440. <col ref="spccd" visibility="hidden"/>
  1441. <col ref="baccd" visibility="hidden"/>
  1442. <col ref="nsgbrcd" visibility="hidden"/>
  1443. <col ref="nsgbrnm" visibility="hidden"/>
  1444. <col ref="tclscd" visibility="hidden"/>
  1445. <col ref="testcd" visibility="hidden"/>
  1446. <col ref="bcno" visibility="hidden"/>
  1447. <col ref="spcacptdt" visibility="hidden"/>
  1448. <col ref="cretno" visibility="hidden"/>
  1449. <col ref="seqno" visibility="hidden"/>
  1450. <col ref="prcpdd" format="yyyy-mm-dd"/>
  1451. <col ref="lastreptdt" format="yyyy-mm-dd"/>
  1452. <col ref="prcpwardcd" visibility="hidden"/>
  1453. <col ref="prcproomcd" visibility="hidden"/>
  1454. <col ref="pid"/>
  1455. <col ref="hngnm"/>
  1456. <col ref="spcnm"/>
  1457. <col ref="bacnm"/>
  1458. <col ref="antibioref"/>
  1459. <col ref="sex"/>
  1460. <col ref="age"/>
  1461. <col ref="orddeptcd"/>
  1462. <col ref="atdrnm"/>
  1463. <col ref="indd" format="yyyy-mm-dd"/>
  1464. <col ref="dschdd" format="yyyy-mm-dd"/>
  1465. <col ref="acptdt" format="yyyy-mm-dd"/>
  1466. <col ref="wardcd"/>
  1467. <col ref="roomcd"/>
  1468. <col ref="inhospdayno"/>
  1469. <script type="javascript" ev:event="onmousedown">
  1470. <![CDATA[
  1471. if(event.button == 3){
  1472. if(grd_vertically.isCell(event.target) && grd_vertically.mouseRow >= grd_vertically.fixedrows){
  1473. setPopupMenu("grd_vertically", true, "/root/main/codedata/popupmenu/grid/item", "name", "func");
  1474. }else{
  1475. window.setPopupMenu(false);
  1476. }
  1477. }
  1478. ]]>
  1479. </script>
  1480. <script type="javascript" ev:event="DOMFocusOut">
  1481. <![CDATA[
  1482. window.setPopupMenu(false);
  1483. ]]>
  1484. </script>
  1485. <script type="javascript" ev:event="onclick">
  1486. <![CDATA[
  1487. var iRow = grd_vertically.row;
  1488. model.resetInstanceNode("/root/hidden/selecteddata");
  1489. model.setValue("/root/hidden/selecteddata/selectedpid", model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" +iRow + "]/pid"));
  1490. model.setValue("/root/hidden/selecteddata/selectedindd", model.getValue("/root/main/microtestprotonlist/vprotonlist/info[" +iRow + "]/indd"));
  1491. ]]>
  1492. </script>
  1493. <script type="javascript" ev:event="ondblclick">
  1494. <![CDATA[
  1495. if(( grd_vertically.mouseRow > 0) && ( grd_vertically.mouseRow <= grd_vertically.rows )) {
  1496. fReqOpPatPamInfo();
  1497. }
  1498. ]]>
  1499. </script>
  1500. <script type="javascript" ev:event="onaftersort">
  1501. <![CDATA[
  1502. grd_vertically.gridToInstance();
  1503. ]]>
  1504. </script>
  1505. </datagrid>
  1506. </case>
  1507. </switch>
  1508. <caption id="caption25" class="tit_2" style="left:5px; top:90px; width:173px; height:14px; ">미생물배양 양성자 리스트</caption>
  1509. <button id="btc_totrslt" class="btn2_letter6" style="left:1063px; top:84px; width:86px; height:19px; ">
  1510. <caption>통합검사결과</caption>
  1511. <script type="javascript" ev:event="DOMActivate">
  1512. <![CDATA[
  1513. open("SMAER00800", 0, 0, 0, "SMAER00800", "/root/source/pid", "/root/paminfo/list/pid" );
  1514. ]]>
  1515. </script>
  1516. </button>
  1517. <button id="button12" class="btn2_letter4" visibility="hidden" style="left:951px; top:84px; width:64px; height:19px; ">
  1518. <caption>처방조회</caption>
  1519. </button>
  1520. </group>
  1521. </xhtml:body>
  1522. </xhtml:html>