SMLRP00700_특수검사의뢰서조회.xrw 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLP00700_특수검사의뢰서조회.xrw
  4. * 설 명 : 특수검사의뢰서조회
  5. * 설 계 자 : (주)에이씨케이 - 윤재한
  6. * 작 성 자 : (주)에이씨케이 -
  7. * 작 성 일 : 2007.08.27
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  13. <xhtml:head>
  14. <xhtml:title>특수검사의뢰서조회</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <getspcltestlist>
  20. <chk/>
  21. <spcltestno/>
  22. <pid/>
  23. <patnm/>
  24. <sexage/>
  25. <brthdate/>
  26. <reqdr/>
  27. <orddeptnm/>
  28. <wardroom/>
  29. <tclsnm/>
  30. <spcnm/>
  31. <reqfrmcd/>
  32. <rrgstno/>
  33. <spcacptdt/>
  34. <reqcnts/>
  35. <descrslt/>
  36. <termhngnm/>
  37. <usernm/>
  38. <medispcdt/>
  39. <tclscd/>
  40. <spccd/>
  41. <deptengabbr/>
  42. <rack/>
  43. </getspcltestlist>
  44. <detltestlist>
  45. </detltestlist>
  46. <rsltlist>
  47. <rslt/>
  48. <cf/>
  49. </rsltlist>
  50. </main>
  51. <send>
  52. <codeflag/>
  53. <refflag/>
  54. <acptsdd/>
  55. <acptedd/>
  56. <spcltestgrup/>
  57. <seqsno/>
  58. <seqeno/>
  59. <worksdd/>
  60. <workedd/>
  61. <tclscdlist/>
  62. <tclsnmlist/>
  63. <tclscd/>
  64. <spccd/>
  65. <userdeptflagcd/>
  66. <pid/>
  67. <instcd/>
  68. </send>
  69. <init>
  70. </init>
  71. <hidden>
  72. <ref>
  73. <acptsdd/>
  74. <acptedd/>
  75. <spcltestgrup/>
  76. <seqsno/>
  77. <seqeno/>
  78. <worksdd/>
  79. <workedd/>
  80. <tclscdlist>
  81. <tclscdlist/>
  82. <tclsnmlist/>
  83. <tclscdlist2/>
  84. <testgrup/>
  85. </tclscdlist>
  86. </ref>
  87. <report/>
  88. </hidden>
  89. <temp>
  90. <slide/>
  91. <ip/>
  92. </temp>
  93. </root>
  94. </instance>
  95. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  98. <script type="javascript" ev:event="xforms-ready">
  99. <![CDATA[
  100. fSetInit();
  101. ]]>
  102. </script>
  103. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0901"/>
  104. <submission id="TRLRP00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spcltestlist"/>
  105. <submission id="TRLLF90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testgrupdetl"/>
  106. <submission id="TRLRP00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/detltestlist"/>
  107. <submission id="TRLRP00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsltlist"/>
  108. <submission id="TRLRP00704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/"/>
  109. </model>
  110. <script type="javascript">
  111. <![CDATA[
  112. //초기화
  113. function fSetInit(ref) {
  114. if(ref != 2) {
  115. var today = getCurrentDate();
  116. model.setValue("/root/hidden/ref/acptsdd", today);
  117. model.setValue("/root/hidden/ref/acptedd", today);
  118. model.setValue("/root/hidden/ref/spcltestgrup", "00");
  119. model.setValue("/root/hidden/ref/seqsno", "");
  120. model.setValue("/root/hidden/ref/seqeno", "");
  121. model.setValue("/root/hidden/ref/worksdd", today);
  122. model.setValue("/root/hidden/ref/workedd", today);
  123. model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", "");
  124. model.removeNodeset("/root/main/getspcltestlist");
  125. model.removeNodeset("/root/init/LB0005");
  126. model.removeNodeset("/root/hidden/report");
  127. grd_spcltestlist.fixedcellcheckbox(0, 1) = true;
  128. model.toggle("spcltestno");
  129. btn_spcltestno.selected = true;
  130. }
  131. model.removeNodeset("root/init");
  132. model.setValue("/root/send/codeflag", "0005|0000|0103|0124|"); //0005 : 의뢰서 서식, 0000 : 유저 과플래그 조회, 0103 : 사용자별검사그룹
  133. model.makeValue("/root/send/basecdid", "spcl"); //0005 : 의뢰서 서식, 0000 : 유저 과플래그 조회, 0103 : 사용자별검사그룹
  134. submit("TRLZZ00101");
  135. model.refresh();
  136. }
  137. //조회
  138. function fGetSpclTestList() {
  139. model.removeNodeset("/root/main/getspcltestlist");
  140. if(btn_spcltestno.selected) {
  141. model.setValue("/root/send/acptsdd", model.getValue("/root/hidden/ref/acptsdd"));
  142. model.setValue("/root/send/acptedd", model.getValue("/root/hidden/ref/acptedd"));
  143. model.setValue("/root/send/spcltestgrup", model.getValue("/root/hidden/ref/spcltestgrup"));
  144. model.setValue("/root/send/seqsno", model.getValue("/root/hidden/ref/seqsno"));
  145. model.setValue("/root/send/seqeno", model.getValue("/root/hidden/ref/seqeno"));
  146. model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
  147. model.setValue("/root/send/refflag", "1");
  148. } else if(btn_testitem.selected) {
  149. model.setValue("/root/send/worksdd", model.getValue("/root/hidden/ref/worksdd"));
  150. model.setValue("/root/send/workedd", model.getValue("/root/hidden/ref/workedd"));
  151. model.setValue("/root/send/tclscdlist", model.getValue("/root/hidden/ref/tclscdlist/tclscdlist"));
  152. model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
  153. model.setValue("/root/send/refflag", "2");
  154. }
  155. submit("TRLRP00701");
  156. }
  157. //검사그룹조회
  158. function fSelectTestGrup(){
  159. model.makeValue("/root/send/testgrupnm", cmb_testitem.label);
  160. submit("TRLLF90401" ,false);
  161. fSetPopUpTclscdList();
  162. }
  163. function fSetPopUpTclscdList(){
  164. var count = getNodesetCount("/root/main/testgrupdetl");
  165. if(count > 0){
  166. var sendtclsnm = model.getValue("/root/main/testgrupdetl[1]/tclsnm");
  167. var sendtclscd = model.getValue("/root/main/testgrupdetl[1]/tclscd");
  168. var sendtclscd2 = model.getValue("/root/main/testgrupdetl[1]/tclscd");
  169. // 검사그룹 상세 목록 없을때
  170. if(sendtclsnm == ""){
  171. model.setValue("/root/hidden/tclscdlist/tclscdlist", "");
  172. model.setValue("/root/hidden/tclscdlist/tclsnmlist", "");
  173. }else{ // 검사그룹 상세 목록 있을때
  174. for(i=2; i<= count; i++){
  175. sendtclsnm = sendtclsnm + ", " + model.getValue("/root/main/testgrupdetl["+i+"]/tclsnm");
  176. //sendtclscd = sendtclscd + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  177. sendtclscd = sendtclscd + "','" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  178. sendtclscd2 = sendtclscd2 + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  179. }
  180. model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", sendtclsnm);
  181. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "'" + sendtclscd + "'");
  182. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist2", sendtclscd2);
  183. }
  184. model.refresh();
  185. }
  186. }
  187. //출력
  188. function fPrint(){
  189. var find = null;
  190. model.removeNodeset("/root/hidden/report");
  191. model.makeNode("/root/hidden/report");
  192. for(i=1; i < grd_spcltestlist.rows; i++) {
  193. model.removeNodeset("/root/main/rslt");
  194. model.removeNodeset("/root/main/cf");
  195. find = grd_spcltestlist.findRow("Y", i, 1, true);
  196. if(find < 0 ) {
  197. break;
  198. }
  199. //골수 결과
  200. if(model.getValue("/root/main/getspcltestlist["+find+"]/reqcnts/reqfrminfo/inptitem01/initial") == "Initial") {
  201. model.setValue("/root/main/getspcltestlist["+find+"]/reqcnts/reqfrminfo/inptitem01/initial", "Initial");
  202. } else if(model.getValue("/root/main/getspcltestlist["+find+"]/reqcnts/reqfrminfo/inptitem01/fu") == "F/U") {
  203. model.setValue("/root/main/getspcltestlist["+find+"]/reqcnts/reqfrminfo/inptitem01/initial", "F/U");
  204. } else if(model.getValue("/root/main/getspcltestlist["+find+"]/reqcnts/reqfrminfo/inptitem01/others") == "Others") {
  205. model.setValue("/root/main/getspcltestlist["+find+"]/reqcnts/reqfrminfo/inptitem01/initial", "Others");
  206. }
  207. copyNodeListType("/root/hidden/report", "/root/main/getspcltestlist["+ find +"]", "after");
  208. var report = getNodesetCount("/root/hidden/report/getspcltestlist");
  209. model.setValue("/root/send/pid", model.getValue("/root/main/getspcltestlist["+ find +"]/pid"));
  210. model.makeValue("/root/send/bcno", model.getValue("/root/main/getspcltestlist["+ find +"]/bcno"));
  211. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  212. //model.setValue("/root/send/instcd", "012");
  213. submit("TRLRP00703");
  214. //CBC 검사결과
  215. model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/tcls");
  216. model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/rslt");
  217. model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/tcls2");
  218. model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/rslt2");
  219. var count = getNodesetCount("/root/main/rslt");
  220. var tclslist = "";
  221. var rsltlist = "";
  222. var tclslist2 = "";
  223. var rsltlist2 = "";
  224. var tcls = "";
  225. var lastreptdt = 0;
  226. for(j = 1; j <= count; j++) {
  227. tcls = model.getValue("/root/main/rslt["+ j +"]/tclscd");
  228. if(tcls.substr(3, 3) != "105") {
  229. tclslist = tclslist + model.getValue("/root/main/rslt["+ j +"]/tclsnm") + "\n";
  230. rsltlist = rsltlist + model.getValue("/root/main/rslt["+ j +"]/reptrslt") + "\n";
  231. } else if(tcls.substr(3, 3) == "105") {
  232. tclslist2 = tclslist2 + model.getValue("/root/main/rslt["+ j +"]/tclsnm") + "\n";
  233. rsltlist2 = rsltlist2 + model.getValue("/root/main/rslt["+ j +"]/reptrslt") + "\n";
  234. }
  235. lastreptdt = Math.max(lastreptdt, parseInt(model.getValue("/root/main/rslt["+ j +"]/lastreptdt"))); //결과 보고일은 가장 최근 일자
  236. }
  237. model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/tcls", tclslist);
  238. model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/rslt", rsltlist);
  239. model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/tcls2", tclslist2);
  240. model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/rslt2", rsltlist2);
  241. model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/tm");
  242. model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/tm", lastreptdt);
  243. //CF 검사결과
  244. /* model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/ptno");
  245. model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/inter");
  246. model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/readdd");
  247. model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/rbc/drnm");
  248. var count = getNodesetCount("/root/main/cf");
  249. var ptno = "";
  250. var inter = "";
  251. var readdd = "";
  252. var drnm = "";
  253. for(j = 1; j <= count; j++) {
  254. ptno = ptno + model.getValue("/root/main/cf["+ j +"]/dispptno") + "\n";
  255. inter = inter + model.getValue("/root/main/cf["+ j +"]/inter") + "\n";
  256. readdd = readdd + model.getValue("/root/main/cf["+ j +"]/readdd") + "\n";
  257. drnm = drnm + model.getValue("/root/main/cf["+ j +"]/readdrnm") + "\n";
  258. }
  259. model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/ptno", ptno);
  260. model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/inter", inter);
  261. model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/readdd", readdd);
  262. model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/rbc/drnm", drnm);*/
  263. var count = getNodesetCount("/root/main/cf");
  264. var ptno = "";
  265. var inter = "";
  266. var readdd = "";
  267. var drnm = "";
  268. for(j = 1; j <= count; j++) {
  269. model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/cf["+ j +"]");
  270. copyNodeType("/root/hidden/report/getspcltestlist["+ report +"]/cf["+ j +"]", "/root/main/cf["+ j +"]");
  271. }
  272. //model.setValue("/root/send/tclscd", model.getValue("/root/main/getspcltestlist["+ find +"]/tclscd"));
  273. model.setValue("/root/send/spccd", model.getValue("/root/main/getspcltestlist["+ find +"]/spccd"));
  274. model.makeValue("/root/send/prcpgenrflag", model.getValue("/root/main/getspcltestlist["+ find +"]/prcpgenrflag"));
  275. model.makeValue("/root/send/bcno", model.getValue("/root/main/getspcltestlist["+ find +"]/bcno"));
  276. submit("TRLRP00702");
  277. model.makeValue("/root/hidden/report/getspcltestlist["+ report +"]/termengnm", model.getValue("/root/main/detltestlist/termengnm"));
  278. model.makeValue("/root/hidden/report/getspcltestlist["+ report +"]/sepotel", model.getvalue("/root/init/LB0124/etc03")); // 세포유전 전화번호
  279. //검사명
  280. //model.makeNode("/root/hidden/report/getspcltestlist["+ report +"]/tclsnm");
  281. //var count = getNodesetCount("/root/main/detltestlist");
  282. //var testlist = "";
  283. //for(j = 1; j <= count; j++) {
  284. // testlist = testlist + model.getValue("/root/main/detltestlist["+j+"]/tclsnm") + "\n";
  285. //}
  286. // model.setValue("/root/hidden/report/getspcltestlist["+ report +"]/tclsnm", testlist);
  287. i = find;
  288. }
  289. var flag = model.getValue("/root/hidden/report/getspcltestlist/reqfrmcd");
  290. /* switch(flag) {
  291. case "01" :
  292. exeReportPreview("RPLRP00100", "XMLSTR", "/root/hidden/report"); //골수검사의뢰서
  293. break;
  294. case "02" :
  295. exeReportPreview("RPLRP00200", "XMLSTR", "/root/hidden/report"); //분자생물학부의뢰서
  296. break;
  297. case "03" :
  298. exeReportPreview("RPLRP00300", "XMLSTR", "/root/hidden/report"); //산전검사의뢰서
  299. break;
  300. case "04" :
  301. exeReportPreview("RPLRP00400", "XMLSTR", "/root/hidden/report"); //세포유전학검사의뢰서
  302. break;
  303. case "05" :
  304. exeReportPreview("RPLRP00500", "XMLSTR", "/root/hidden/report"); //장기이식의뢰서
  305. break;
  306. case "06" :
  307. exeReportPreview("RPLRP00600", "XMLSTR", "/root/hidden/report"); //TDM 의뢰서
  308. break;
  309. }*/
  310. // if(flag == "01") {
  311. if(flag == "13"){
  312. exeReportPreview("RPLRP92000", "XMLSTR", "/root/hidden/report"); //13_아산병원유전자검사의뢰서
  313. }
  314. else if(flag == "01"){
  315. exeReportPreview("RPLRP90100", "XMLSTR", "/root/hidden/report"); //01_골수검사의뢰서
  316. }
  317. else if(flag == "02"){
  318. exeReportPreview("RPLRR90200", "XMLSTR", "/root/hidden/report"); //02_분자생물학부의뢰서
  319. }
  320. else if(flag == "03"){
  321. exeReportPreview("RPLRR90300", "XMLSTR", "/root/hidden/report"); //03_산전검사의뢰서
  322. }
  323. else if(flag == "04"){
  324. exeReportPreview("RPLRR90400", "XMLSTR", "/root/hidden/report"); //04_세포유전학검사의뢰서
  325. }
  326. else if(flag == "05"){
  327. exeReportPreview("RPLRP90500", "XMLSTR", "/root/hidden/report"); //05_장기이식검사의뢰서
  328. }
  329. else if(flag == "06"){
  330. exeReportPreview("RPLRP90600", "XMLSTR", "/root/hidden/report"); //06_TDM의뢰서
  331. }
  332. else if(flag == "09"){
  333. exeReportPreview("RPLRR91300", "XMLSTR", "/root/hidden/report"); //09_염색체검사의뢰서
  334. }
  335. else if(flag == "11"){
  336. exeReportPreview("RPLRP91900", "XMLSTR", "/root/hidden/report"); //11_AMH 검사의뢰서
  337. }
  338. else if(flag == "12"){
  339. exeReportPreview("RPLRP92100", "XMLSTR", "/root/hidden/report"); //12_서울대유전자검사의뢰서
  340. }
  341. else if(flag == "14"){
  342. exeReportPreview("RPLRP92200", "XMLSTR", "/root/hidden/report"); //14_삼성서울병원유전자검사의뢰서
  343. }
  344. else if(flag == "15"){
  345. exeReportPreview("RPLRP91800", "XMLSTR", "/root/hidden/report"); //15_기생충항체검사의뢰서
  346. }
  347. else if(flag == "16"){
  348. exeReportPreview("RPLRP92300", "XMLSTR", "/root/hidden/report"); //16_삼성서울병원 약물의뢰서
  349. }
  350. else if(flag == "17"){
  351. exeReportPreview("RPLRP92400", "XMLSTR", "/root/hidden/report"); //17_말라리아검사의뢰서
  352. }
  353. else{
  354. exeReportPreview("RPLRP00100", "XMLSTR", "/root/hidden/report"); //10_PB M의뢰서
  355. }
  356. /* }
  357. if(flag == "02") {
  358. exeReportPreview("RPLRP00200", "XMLSTR", "/root/hidden/report"); //분자생물학부의뢰서
  359. }
  360. if(flag == "03") {
  361. exeReportPreview("RPLRP00300", "XMLSTR", "/root/hidden/report"); //산전검사의뢰서
  362. }
  363. if(flag == "04") {
  364. exeReportPreview("RPLRP00400", "XMLSTR", "/root/hidden/report"); //세포유전학검사의뢰서
  365. }
  366. if(flag == "05") {
  367. exeReportPreview("RPLRP00500", "XMLSTR", "/root/hidden/report"); //장기이식의뢰서
  368. }
  369. if(flag == "06") {
  370. exeReportPreview("RPLRP00600", "XMLSTR", "/root/hidden/report"); //TDM 의뢰서
  371. }*/
  372. }
  373. function fListPrint(){
  374. model.removeNodeset("/root/hidden/report");
  375. model.makeNode("/root/hidden/report");
  376. // model.makeValue("/root/hidden/report/no","");
  377. // model.makeValue("/root/hidden/report/spcltestno","");
  378. // model.makeValue("/root/hidden/report/pid","");
  379. // model.makeValue("/root/hidden/report/patnm","");
  380. // model.makeValue("/root/hidden/report/sexage","");
  381. // model.makeValue("/root/hidden/report/brthdate","");
  382. // model.makeValue("/root/hidden/report/reqdr","");
  383. // model.makeValue("/root/hidden/report/orddeptnm","");
  384. // model.makeValue("/root/hidden/report/wardroom","");
  385. // model.makeValue("/root/hidden/report/tclsnm","");
  386. // model.makeValue("/root/hidden/report/spcnm","");
  387. /*
  388. model.setValue("/root/send/deptgbn", model.getValue("/root/hidden/ref/deptgbn"));
  389. model.setValue("/root/send/deptL", model.getValue("/root/hidden/ref/deptL"));
  390. model.setValue("/root/send/deptM", model.getValue("/root/hidden/ref/deptM"));
  391. model.setValue("/root/send/worklistdd", model.getValue("/root/hidden/ref/worklistdd"));
  392. model.setValue("/root/send/worklisttodd", model.getValue("/root/hidden/ref/worklisttodd"));
  393. model.setValue("/root/send/worklistsno", model.getValue("/root/hidden/ref/worklistsno"));
  394. model.setValue("/root/send/worklisteno", model.getValue("/root/hidden/ref/worklisteno"));
  395. // 검사항목 cd, nm
  396. model.setValue("/root/send/tclscdlist", model.getValue("/root/hidden/ref/tclscdlist/tclscdlist"));
  397. model.setValue("/root/send/tclsnmlist", model.getValue("/root/hidden/ref/tclscdlist/tclsnmlist"));
  398. */
  399. //var bcno = "''";
  400. var bcno = "";
  401. count = 0;
  402. for(i = 1; i <= getNodesetCount("/root/main/getspcltestlist"); i++) {
  403. var find = grd_spcltestlist.findRow("Y", i, 1, true, true);
  404. bcno = model.getValue("/root/main/getspcltestlist[" + i + "]/bcno");
  405. if(find < 0) {
  406. break;
  407. }else{
  408. //bcno = bcno + ",'" + model.getValue("/root/main/worklistdetl["+ find +"]/bcno") + "'";
  409. if( bcno == model.getValue("/root/main/getspcltestlist[" + find + "]/bcno")){
  410. ++count;
  411. model.makeValue("/root/hidden/report["+ count +"]/no", count);
  412. model.makeValue("/root/hidden/report["+ count +"]/spcltestno",model.getValue("/root/main/getspcltestlist["+ i +"]/spcltestno"));
  413. model.makeValue("/root/hidden/report["+ count +"]/pid",model.getValue("/root/main/getspcltestlist["+ i +"]/pid"));
  414. model.makeValue("/root/hidden/report["+ count +"]/patnm",model.getValue("/root/main/getspcltestlist["+ i +"]/patnm"));
  415. model.makeValue("/root/hidden/report["+ count +"]/sexage",model.getValue("/root/main/getspcltestlist["+ i +"]/sexage"));
  416. model.makeValue("/root/hidden/report["+ count +"]/brthdate",model.getValue("/root/main/getspcltestlist["+ i +"]/brthdate"));
  417. model.makeValue("/root/hidden/report["+ count +"]/reqdr",model.getValue("/root/main/getspcltestlist["+ i +"]/reqdr"));
  418. model.makeValue("/root/hidden/report["+ count +"]/orddeptnm",model.getValue("/root/main/getspcltestlist["+ i +"]/orddeptnm"));
  419. model.makeValue("/root/hidden/report["+ count +"]/wardroom",model.getValue("/root/main/getspcltestlist["+ i +"]/wardroom"));
  420. model.makeValue("/root/hidden/report["+ count +"]/tclsnm",model.getValue("/root/main/getspcltestlist["+ i +"]/tclsprntnm"));
  421. model.makeValue("/root/hidden/report["+ count +"]/spcnm",model.getValue("/root/main/getspcltestlist["+ i +"]/spcnm"));
  422. model.makeValue("/root/hidden/report["+ count +"]/rack",model.getValue("/root/main/getspcltestlist["+ i +"]/rack"));
  423. }
  424. else{}
  425. // i = find;
  426. //// alert(bcno);
  427. // count++;
  428. }
  429. }
  430. if(count < 1){
  431. messageBox("출력할", "E013");
  432. return;
  433. }
  434. //model.makeValue("/root/send/bcno", bcno);
  435. //copyNodeListType("/root/hidden/report", "/root/main/worklistdetl");
  436. //var count = getNodesetCount("/root/hidden/report/worklistdetl");
  437. // for(i = 1; i <= count; i++) {
  438. // var spc = grd_worklistdetl.labelMatrix(i, 9);
  439. // var length = spc.length;
  440. // model.setValue("/root/hidden/report/worklistdetl["+ i +"]/spccd", spc.substr(6, length));
  441. // }
  442. exeReportPreview("RPLRP00500", "XMLSTR");
  443. }
  444. function fSlidePrint(){
  445. model.removeNodeset("/root/temp/slide");
  446. model.removeNodeset("/root/temp/ip");
  447. var pidno = "";
  448. var spcltestno = "";
  449. var count = 0;
  450. for(i = 1 ; i < grd_spcltestlist.rows ; i++){
  451. var chk = model.getValue("/root/main/getspcltestlist["+i+"]/chk");
  452. if(chk == "Y"){
  453. pidno = model.getValue("/root/main/getspcltestlist["+i+"]/pid");
  454. spcltestno = model.getValue("/root/main/getspcltestlist["+i+"]/spcltestno");
  455. count ++;
  456. }
  457. if(count > 1){
  458. alert("슬라이드 출력은 한개만 가능 합니다.");
  459. return;
  460. }
  461. }
  462. model.makeValue("/root/send/slidegbn", "1");
  463. model.makeValue("/root/send/pidno", pidno);
  464. model.makeValue("/root/send/spcltestno", spcltestno);
  465. submit("TRLRP00704");
  466. var slideprnt = getNodesetCount("/root/temp/slide");
  467. if(slideprnt > 0){
  468. sSlidBcIP = model.getValue("/root/temp/ip/slideip");
  469. sSlidBcPort = model.getValue("/root/temp/ip/slideport");
  470. //----------------------------------------
  471. if (sSlidBcIP == "" || sSlidBcIP == "-") {
  472. messageBox("슬라이드 라벨지 장비의 IP주소가 없습니다. 병원별 환경설정에서 ", "C001");
  473. return false;
  474. }
  475. //--------------------------------------------
  476. if (sSlidBcPort == "" || sSlidBcPort == "-"){
  477. messageBox("슬라이드 라벨지 장비의 Port번호가 없습니다. 병원별 환경설정에서 ", "C001");
  478. return false;
  479. }
  480. //-------------------------------------
  481. socket.connect(sSlidBcIP, sSlidBcPort);
  482. }
  483. }
  484. function fEXESlidePrint(){
  485. var iMaxRowCnt = 0;
  486. var sSlidNode = "/root/temp/slide";
  487. //--------------------------------------
  488. iMaxRowCnt = getNodesetCount(sSlidNode);
  489. for (var iRowNo=1; iRowNo <= iMaxRowCnt; iRowNo++) {
  490. for(var i = 1 ; i <= model.getValue(sSlidNode+"["+iRowNo+"]/prntcnt") ; i++){
  491. var patnm= getNameInitial(model.getValue(sSlidNode+"["+iRowNo+"]/patnm"))
  492. var etc1 = model.getValue(sSlidNode+"["+iRowNo+"]/etc1");
  493. if(etc1 == ""){
  494. etc1 = "-";
  495. }
  496. sSendMsg = "S▦"; //슬라이드구분
  497. sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/spclno") + "▦"; // 특수검사연번호
  498. sSendMsg += patnm + "▦"; // 환자명
  499. sSendMsg += etc1 + "▦";
  500. sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/workdd") + "▦"; // 접수일시
  501. sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/etc2") + "▦";
  502. sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/hospnm") + "▩"; // 병원명
  503. //sSendMsg += "▩";
  504. socket.sendString(sSendMsg);
  505. }
  506. }
  507. socket.close();
  508. }
  509. function fBlockPrint(){
  510. model.removeNodeset("/root/temp/slide");
  511. model.removeNodeset("/root/temp/ip");
  512. var pidno = "";
  513. var spcltestno = "";
  514. var count = 0;
  515. for(i = 1 ; i < grd_spcltestlist.rows ; i++){
  516. var chk = model.getValue("/root/main/getspcltestlist["+i+"]/chk");
  517. if(chk == "Y"){
  518. pidno = model.getValue("/root/main/getspcltestlist["+i+"]/pid");
  519. spcltestno = model.getValue("/root/main/getspcltestlist["+i+"]/spcltestno");
  520. count ++;
  521. }
  522. if(count > 1){
  523. alert("블럭 출력은 한개만 가능 합니다.");
  524. return;
  525. }
  526. }
  527. model.makeValue("/root/send/slidegbn", "2");
  528. model.makeValue("/root/send/pidno", pidno);
  529. model.makeValue("/root/send/spcltestno", spcltestno);
  530. submit("TRLRP00704");
  531. var slideprnt = getNodesetCount("/root/temp/slide");
  532. if(slideprnt > 0){
  533. sSlidBcIP = model.getValue("/root/temp/ip/casetip");
  534. sSlidBcPort = model.getValue("/root/temp/ip/casetport");
  535. //----------------------------------------
  536. if (sSlidBcIP == "" || sSlidBcIP == "-") {
  537. messageBox("슬라이드 라벨지 장비의 IP주소가 없습니다. 병원별 환경설정에서 ", "C001");
  538. return false;
  539. }
  540. //--------------------------------------------
  541. if (sSlidBcPort == "" || sSlidBcPort == "-"){
  542. messageBox("슬라이드 라벨지 장비의 Port번호가 없습니다. 병원별 환경설정에서 ", "C001");
  543. return false;
  544. }
  545. //-------------------------------------
  546. socket2.connect(sSlidBcIP, sSlidBcPort);
  547. }
  548. }
  549. function fEXEBlockPrint(){
  550. var iMaxRowCnt = 0;
  551. var sSlidNode = "/root/temp/slide";
  552. //--------------------------------------
  553. iMaxRowCnt = getNodesetCount(sSlidNode);
  554. for (var iRowNo=1; iRowNo <= iMaxRowCnt; iRowNo++) {
  555. var patnm= getNameInitial(model.getValue(sSlidNode+"["+iRowNo+"]/patnm"))
  556. var etcvalue = model.getValue(sSlidNode+"["+iRowNo+"]/etc");
  557. var etcMark = "";
  558. if(etcvalue.indexOf("C") == -1){
  559. etcMark = "1";
  560. }
  561. else{
  562. etcMark = "2";
  563. }
  564. sSendMsg = "C▦"; //카세트구분
  565. sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/spclno") + "▦"; // 특수검사연번호
  566. sSendMsg += etcMark + "▦"; //후퍼
  567. sSendMsg += model.getValue(sSlidNode+"["+iRowNo+"]/etc") + "▦";
  568. sSendMsg += patnm + "▩"; // 환자명
  569. //sSendMsg += "▩";
  570. socket2.sendString(sSendMsg);
  571. }
  572. socket2.close();
  573. }
  574. function getNameInitial(nameStr){
  575. //받은 이름 문자열을 스페이스바로 분리
  576. var part = nameStr.split(' ');
  577. var str = "";
  578. var nameChr = "";
  579. var chr;
  580. var cnt = 3;
  581. //영문이름을 위한 대문자 변환
  582. nameStr = nameStr.toUpperCase();
  583. //스페이스로 구분되어 있는 이름(영문)의 경우 첫단어와 마지막 단어의 이니셜만 처리
  584. if(part.length>1){
  585. if(part[0].length == 0) part[0] = " ";
  586. if(part[part.length-1].length == 0) part[part.length-1] = " ";
  587. nameChr = part[0].substr(0,1) + "." + part[part.length-1].substr(0,1);
  588. }
  589. else{
  590. nameChr = part[0];
  591. }
  592. //변환할 값이 0보다 큰지 확인
  593. if(nameChr.length < cnt) cnt = nameChr.length;
  594. if(cnt <= 0) return str;
  595. //영문일 때를 위해 대문자로 변환
  596. nameChr = nameChr.toUpperCase();
  597. for(i=0;i<cnt;i++){
  598. chr = nameChr.substr(i,1).charCodeAt(0);
  599. if(chr<128) str = str + nameChr.substr(i,1);
  600. else{
  601. switch(nameChr.substr(i,1)){
  602. case "박":
  603. str = str + "P";
  604. break;
  605. case "김":
  606. str = str + "K";
  607. break;
  608. case "이":
  609. if(i==0) str = str + "L";
  610. else str = str + "I";
  611. break;
  612. default :
  613. if(chr>=44032 && chr<45208) str = str + "G";
  614. else if(chr>=45208 && chr<45796) str = str + "N";
  615. else if(chr>=45796 && chr<46972) str = str + "D";
  616. else if(chr>=46972 && chr<47560) str = str + "R";
  617. else if(chr>=47560 && chr<48148) str = str + "M";
  618. else if(chr>=48148 && chr<49324) str = str + "B";
  619. else if(chr>=49324 && chr<50500) str = str + "S";
  620. else if(chr>=50500 && chr<50556) str = str + "A";
  621. else if(chr>=50556 && chr<50612) str = str + "Y";
  622. else if(chr>=50612 && chr<50668) str = str + "E";
  623. else if(chr>=50668 && chr<50724) str = str + "Y";
  624. else if(chr>=50724 && chr<50752) str = str + "O";
  625. else if(chr>=50752 && chr<50808) str = str + "W";
  626. else if(chr>=50808 && chr<50836) str = str + "O";
  627. else if(chr>=50836 && chr<50864) str = str + "Y";
  628. else if(chr>=50864 && chr<50892) str = str + "U";
  629. else if(chr>=50892 && chr<50976) str = str + "W";
  630. else if(chr>=50976 && chr<51004) str = str + "Y";
  631. else if(chr>=51004 && chr<51032) str = str + "E";
  632. else if(chr>=51032 && chr<51060) str = str + "U";
  633. else if(chr>=51060 && chr<51088) str = str + "I";
  634. else if(chr>=51088 && chr<52264) str = str + "J";
  635. else if(chr>=52264 && chr<52852) str = str + "C";
  636. else if(chr>=52852 && chr<53440) str = str + "K";
  637. else if(chr>=53440 && chr<54028) str = str + "T";
  638. else if(chr>=54028 && chr<54616) str = str + "P";
  639. else if(chr>=54616 && chr<55203) str = str + "H";
  640. else str = str + " ";
  641. break;
  642. }
  643. }
  644. }
  645. return str;
  646. }
  647. ]]>
  648. </script>
  649. </xhtml:head>
  650. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  651. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  652. <line id="line1" class="line_1" style="x1:0px; y1:102px; x2:1194px; y2:102px; "/>
  653. <caption id="caption1" class="tit_2" style="left:5px; top:87px; width:139px; height:13px; ">특수검사의뢰 리스트</caption>
  654. <button id="btn_spcltestno" class="btn_sw" group="ㅅtab" style="left:0px; top:10px; width:100px; height:22px; color:#000000; ">
  655. <caption>특수검사번호별</caption>
  656. <toggle case="spcltestno" ev:event="DOMActivate"/>
  657. </button>
  658. <button id="btn_testitem" class="btn_sw" group="ㅅtab" style="left:99px; top:10px; width:100px; height:22px; color:#000000; ">
  659. <caption>검사항목별</caption>
  660. <toggle case="testitem" ev:event="DOMActivate"/>
  661. </button>
  662. <switch id="switch1" class="sw_box" style="left:0px; top:30px; width:1195px; height:47px; ">
  663. <case id="spcltestno" selected="true">
  664. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:5px; top:5px; width:1183px; height:35px; "/>
  665. <caption id="caption5" class="search_name" style="left:20px; top:14px; width:99px; height:17px; ">접수일자 :</caption>
  666. <caption id="caption8" class="search_name" style="left:315px; top:14px; width:112px; height:17px; ">의뢰서 서식 :</caption>
  667. <caption id="caption9" class="search_name" style="left:560px; top:14px; width:92px; height:17px; ">일련번호 :</caption>
  668. <button id="btn_ref" class="btn1_letter2" style="left:1117px; top:12px; width:56px; height:22px; ">
  669. <caption>조회</caption>
  670. <script type="javascript" ev:event="DOMActivate">
  671. <![CDATA[
  672. fGetSpclTestList();
  673. ]]>
  674. </script>
  675. </button>
  676. <line id="line3" class="line_4" style="x1:1102px; y1:11px; x2:1102px; y2:33px; "/>
  677. <input id="acptsdd" ref="/root/hidden/ref/acptsdd" class="input_search" inputtype="date" style="left:110px; top:13px; width:85px; height:19px; "/>
  678. <input id="acptedd" ref="/root/hidden/ref/acptedd" class="input_search" inputtype="date" style="left:215px; top:13px; width:85px; height:19px; "/>
  679. <caption id="caption10" class="search_no_b" style="left:200px; top:15px; width:15px; height:20px; ">~</caption>
  680. <select1 id="cmb_spcltestgrup" ref="/root/hidden/ref/spcltestgrup" class="combo_s_essential" appearance="minimal" style="left:430px; top:13px; width:110px; height:19px; ">
  681. <choices>
  682. <itemset nodeset="/root/init/LB0005">
  683. <label ref="nm"/>
  684. <value ref="cd"/>
  685. </itemset>
  686. </choices>
  687. </select1>
  688. <caption id="caption11" class="search_no_b" style="left:738px; top:15px; width:15px; height:17px; ">~</caption>
  689. <input id="seqsno" ref="/root/hidden/ref/seqsno" class="input_search" style="left:650px; top:13px; width:85px; height:19px; "/>
  690. <input id="seqeno" ref="/root/hidden/ref/seqeno" class="input_search" style="left:755px; top:13px; width:85px; height:19px; "/>
  691. </case>
  692. <case id="testitem">
  693. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:5px; top:5px; width:1183px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  694. <button id="button1" class="btn1_letter2" style="left:1117px; top:12px; width:56px; height:22px; ">
  695. <caption>조회</caption>
  696. <script type="javascript" ev:event="DOMActivate">
  697. <![CDATA[
  698. fGetSpclTestList();
  699. ]]>
  700. </script>
  701. </button>
  702. <line id="line4" class="line_4" style="x1:1102px; y1:11px; x2:1102px; y2:33px; "/>
  703. <caption id="caption12" class="search_no_b" style="left:200px; top:15px; width:15px; height:20px; ">~</caption>
  704. <caption id="caption13" class="search_name" style="left:20px; top:14px; width:89px; height:17px; ">작업일자 :</caption>
  705. <input id="worksdd" ref="/root/hidden/ref/worksdd" class="input_search" inputtype="date" style="left:110px; top:13px; width:85px; height:19px; "/>
  706. <input id="workedd" ref="/root/hidden/ref/workedd" class="input_search" inputtype="date" style="left:215px; top:13px; width:85px; height:19px; "/>
  707. <caption id="caption14" class="search_name" style="left:315px; top:14px; width:89px; height:17px; ">검사항목 :</caption>
  708. <img id="img1" class="icon_search" style="left:947px; top:15px; width:16px; height:16px; ">
  709. <script type="javascript" ev:event="onclick">
  710. <![CDATA[
  711. modal("SMLLF90400", 200, 300, 200, "", "/root/hidden/ref/tclscdlist/testgrup", "/root/hidden/tclscdlist/testgrup");
  712. ]]>
  713. </script>
  714. </img>
  715. <input id="ipt_tclscdlist" ref="/root/hidden/ref/tclscdlist/tclsnmlist" class="input_s_essential" style="left:546px; top:13px; width:396px; height:19px; "/>
  716. <select1 id="cmb_testitem" ref="/root/hidden/ref/tclscdlist/testgrup" class="combo_search" appearance="minimal" style="left:407px; top:13px; width:136px; height:19px; ">
  717. <choices>
  718. <itemset nodeset="/root/init/LB0103">
  719. <label ref="nm"/>
  720. <value ref="cd"/>
  721. </itemset>
  722. </choices>
  723. <script type="javascript" ev:event="xforms-value-changed">
  724. <![CDATA[
  725. fSelectTestGrup();
  726. ]]>
  727. </script>
  728. </select1>
  729. </case>
  730. </switch>
  731. <datagrid id="grd_spcltestlist" nodeset="/root/main/getspcltestlist" caption="^접수일시^특수검사번호^등록번호^성명^성별/나이^생년월일^의뢰의사^진료과^병동/병실^검사명^검체명^의뢰서양식코드^주민등록번호^접수일자^의뢰내용^서술결과^상병명^전문의^전문일시" colsep="^" colwidth="40, 120, 130, 80, 80, 60, 80, 78, 78, 98, 200, 150, 0, 0, 0, 0, 0, 0, 0" dataheight="23" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:107px; width:1194px; height:621px; ">
  732. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  733. <col ref="spcacptdt" format="yyyy-mm-dd hh:nn"/>
  734. <col ref="spcltestno"/>
  735. <col ref="pid"/>
  736. <col ref="patnm"/>
  737. <col ref="sexage" style="text-align:center; "/>
  738. <col ref="brthdate" format="yyyy-mm-dd" style="text-align:center; "/>
  739. <col ref="reqdr"/>
  740. <col ref="orddeptnm"/>
  741. <col ref="wardroom"/>
  742. <col ref="tclsnm"/>
  743. <col ref="spcnm"/>
  744. <col ref="reqfrmcd"/>
  745. <col ref="rrgstno"/>
  746. <col ref="reqcnts"/>
  747. <col ref="descrslt"/>
  748. <col ref="termhngnm"/>
  749. <col ref="usernm"/>
  750. <col ref="medispcdt"/>
  751. </datagrid>
  752. <datagrid id="grd_print" nodeset="/root/hidden/report" visibility="hidden" caption="NO^특수검사번호^등록번호^성명^성별/나이^생년월일^의뢰의사^진료과^병동/병실^검사명^검체명" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:365px; top:185px; width:645px; height:150px; ">
  753. <col ref="no"/>
  754. <col ref="spcltestno"/>
  755. <col ref="pid"/>
  756. <col ref="patnm"/>
  757. <col ref="sexage" style="text-align:center; "/>
  758. <col ref="brthdate" format="yyyy-mm-dd" style="text-align:center; "/>
  759. <col ref="reqdr"/>
  760. <col ref="orddeptnm"/>
  761. <col ref="wardroom"/>
  762. <col ref="tclsnm"/>
  763. <col ref="spcnm"/>
  764. <col ref="reqfrmcd"/>
  765. <col ref="rrgstno"/>
  766. <col ref="spcacptdt"/>
  767. <col ref="reqcnts"/>
  768. <col ref="descrslt"/>
  769. <col ref="termhngnm"/>
  770. <col ref="usernm"/>
  771. <col ref="medispcdt"/>
  772. </datagrid>
  773. <object id="socket" clsid="{81e9de7e-90be-4958-bbda-ac731c05aba8}" visibility="hidden" style="left:320px; top:5px; width:35px; height:30px; ">
  774. <!-- 소켓 받은 메시지 이벤트 -->
  775. <script type="javascript" ev:event="OnReceive(nDataLength, szID)">
  776. <![CDATA[
  777. ]]>
  778. </script>
  779. <!-- 소켓 에러 이벤트 -->
  780. <script type="javascript" ev:event="OnError(lError, szMsg)">
  781. <![CDATA[
  782. alert("Error code = " + lError+"\nError Message : "+szMsg);
  783. socket.close(); // 소켓 닫기
  784. isConnected = false; // 접속 여부 false
  785. ]]>
  786. </script>
  787. <!-- 소켓 연결 이벤트 -->
  788. <script type="javascript" ev:event="OnConnect(szID)">
  789. <![CDATA[
  790. fEXESlidePrint();
  791. ]]>
  792. </script>
  793. <!-- 소켓 close 이벤트 -->
  794. <script type="javascript" ev:event="OnClose(szID)">
  795. <![CDATA[
  796. isConnected = false; // 접속 여부 false
  797. ]]>
  798. </script>
  799. </object>
  800. <object id="socket2" clsid="{81e9de7e-90be-4958-bbda-ac731c05aba8}" visibility="hidden" style="left:355px; top:5px; width:35px; height:30px; ">
  801. <!-- 소켓 받은 메시지 이벤트 -->
  802. <script type="javascript" ev:event="OnReceive(nDataLength, szID)">
  803. <![CDATA[
  804. ]]>
  805. </script>
  806. <!-- 소켓 에러 이벤트 -->
  807. <script type="javascript" ev:event="OnError(lError, szMsg)">
  808. <![CDATA[
  809. alert("Error code = " + lError+"\nError Message : "+szMsg);
  810. socket.close(); // 소켓 닫기
  811. //isConnected = false; // 접속 여부 false
  812. ]]>
  813. </script>
  814. <!-- 소켓 연결 이벤트 -->
  815. <script type="javascript" ev:event="OnConnect(szID)">
  816. <![CDATA[
  817. fEXEBlockPrint();
  818. ]]>
  819. </script>
  820. <!-- 소켓 close 이벤트
  821. <script ev:event="OnClose(szID)" type="javascript">
  822. <![CDATA[
  823. isConnected = false; // 접속 여부 false
  824. ]]>
  825. </script>
  826. -->
  827. </object>
  828. </group>
  829. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  830. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:26px; "/>
  831. <button id="btn_print" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  832. <caption>출력</caption>
  833. <script type="javascript" ev:event="DOMActivate">
  834. <![CDATA[
  835. fPrint();
  836. ]]>
  837. </script>
  838. </button>
  839. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:5px; width:68px; height:22px; ">
  840. <caption>초기화</caption>
  841. <script type="javascript" ev:event="DOMActivate">
  842. <![CDATA[
  843. fSetInit();
  844. ]]>
  845. </script>
  846. </button>
  847. <button id="button2" class="btn6_letter5" style="left:59px; top:5px; width:92px; height:22px; ">
  848. <caption>리스트출력</caption>
  849. <script type="javascript" ev:event="DOMActivate">
  850. <![CDATA[
  851. fListPrint();
  852. ]]>
  853. </script>
  854. </button>
  855. <button id="button3" class="btn6_letter5" style="left:154px; top:5px; width:92px; height:22px; ">
  856. <caption>Slide출력</caption>
  857. <script type="javascript" ev:event="DOMActivate">
  858. <![CDATA[
  859. fSlidePrint();
  860. ]]>
  861. </script>
  862. </button>
  863. <button id="button4" class="btn6_letter5" style="left:249px; top:5px; width:92px; height:22px; ">
  864. <caption>Block출력</caption>
  865. <script type="javascript" ev:event="DOMActivate">
  866. <![CDATA[
  867. fBlockPrint();
  868. ]]>
  869. </script>
  870. </button>
  871. </group>
  872. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  873. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">특수검사의뢰서조회</caption>
  874. </group>
  875. </xhtml:body>
  876. </xhtml:html>