SMLLF99990_바코드테스트.xrw 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : 바코드테스트.xrw
  4. * 설 명 :
  5. * 설 계 자 : (주)에이씨케이 - Jin Hwa Ji
  6. * 작 성 자 : (주)에이씨케이 - Jin Hwa Ji
  7. * 작 성 일 : 2007.05.08
  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>Untitle</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. </main>
  20. <send>
  21. </send>
  22. <init>
  23. </init>
  24. <hidden>
  25. <Message/>
  26. <barprntinfo>
  27. <!--<comport>4</comport>지과장님자리-->
  28. <comport/>
  29. <!--정은자리-->
  30. <setting>9600,n,8,1</setting>
  31. <ip/>
  32. </barprntinfo>
  33. <b472>
  34. <sendmsg/>
  35. <btest>
  36. <start>{C|}{D0950,0900,0900|}{AX;-000,-000,+00|}</start>
  37. <engA>
  38. <x>0</x>
  39. <y>0</y>
  40. <text/>
  41. <result/>
  42. <w>20</w>
  43. <h>20</h>
  44. </engA>
  45. <engG>
  46. <x>0</x>
  47. <y>0</y>
  48. <text/>
  49. <result/>
  50. </engG>
  51. <han>
  52. <x>0</x>
  53. <y>0</y>
  54. <text/>
  55. <result/>
  56. </han>
  57. <end>{XS;I,1,0002C5101|}</end>
  58. </btest>
  59. <xxxx>
  60. <!--
  61. <barcodeinfo>
  62. <blodno>8110000001</blodno>
  63. <tnsrpid>11409703</tnsrpid>
  64. <tnsrnm>표호영</tnsrnm>
  65. <tnssexage>M / 62</tnssexage>
  66. <tnsrbtype>AB+</tnsrbtype>
  67. <dnornm>표호영</dnornm>
  68. <dnsexage>M / 62</dnsexage>
  69. <dnbtype>AB+</dnbtype>
  70. <panjung/>
  71. <bcolldt>20100302170159</bcolldt>
  72. <prtdd>20100210</prtdd>
  73. <prttm>170220</prttm>
  74. <abocd>8400</abocd>
  75. <blodbarcd>A0001</blodbarcd>
  76. <blodbarnm>Autologous Blood Transfusion</blodbarnm>
  77. <validt>20100405170159</validt>
  78. <blodvol>123</blodvol>
  79. <bcolldd>20100317</bcolldd>
  80. <title>자가 1차</title>
  81. <wardroom> </wardroom>
  82. <bcollnm>LIS사용자</bcollnm>
  83. </barcodeinfo>
  84. -->
  85. </xxxx>
  86. </b472>
  87. </hidden>
  88. </root>
  89. </instance>
  90. </model>
  91. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  92. <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
  93. <!-- <script type="javascript" src="../../../lis/commonweb/js/LZZ002.js"/>-->
  94. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  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/stringHelper.js"/>
  98. <script type="javascript" src="../../../lis/commonweb/js/HanFont24.js"/>
  99. <script type="javascript" src="../../../lis/commonweb/js/HanFont32.js"/>
  100. <script type="javascript" src="../../../lis/commonweb/js/HanFont48.js"/>
  101. <script type="javascript" ev:event="xforms-ready">
  102. <![CDATA[
  103. // 바코드OCX 생성
  104. lzzfMakeBrcdPrntObjHanDo("CommAX");
  105. ]]>
  106. </script>
  107. </xhtml:head>
  108. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  109. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; "/>
  110. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  111. <!--<object id="CommAX" visibility="hidden" clsid="{dc53f18a-7b68-4ca7-9c9d-b3f20e327186}" style="left:20px; top:160px; width:45px; height:45px; "/>-->
  112. <!--<object id="CommAX" visibility="hidden" clsid="{35cc9cfa-e6f8-4b22-b6d2-fe7cd108f943}" style="left:0px; top:0px; width:45px; height:45px; "/>-->
  113. <!--<object id="CommAX" clsid="{AD952C59-FBD8-4EB9-8960-7CE23A898328}" style="left:15px; top:15px; width:45px; height:45px; "/>-->
  114. <caption id="caption2" class="tit_2" style="left:5px; top:60px; width:145px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">전송결과</caption>
  115. <output id="output1" ref="/root/hidden/Message" style="left:20px; top:81px; width:335px; height:19px; "/>
  116. <button id="button2" class="btn4_letter5" disable.background-image="../../../com/commonweb/images/dis_btn4_letter5.gif" style="left:1095px; top:85px; width:92px; height:22px; background-image:../../../com/commonweb/images/btn4_letter5.gif; ">
  117. <caption>바코드출력</caption>
  118. <script type="javascript" ev:event="DOMActivate">
  119. <![CDATA[
  120. var oZBPrint = new Object("ZBPrint");
  121. var ID = "";
  122. ID=ZBPrint.ZPL_CommPortSetting(1,9600,8,"N",1);
  123. ID=ZBPrint.ZPL_Print( "COM1","^XA^FO181,80^BY2,3.0^BCN,172,Y,N,N^FR^FD0000000011123456^FS^FO51,416^A0N,20,20^FDDEST :^FS^FO258,408^A0N,30,30^FD(001)^FS^FO51,509^A0N,20,20^FDV_Code:^FS^FO258,498^A0N,30,30^FD101040^FS^FO51,599^A0N,20,20^FDV_Name:^FS^FO258,589^A0N,30,30^FDCOTTONCLUB^FS^FO51,690^A0N,20,20^FDDATE :^FS^FO258,682^A0N,30,30^FD04-07-01^FS^FO605,549^^A0N,50,50^FDASN SREIAL^FS^FO1,358^GB779,0,4^FS^FO558,360^GB0,422,4^FS^FO1,1^GB779,781,4^FS^PQ1^XZ");
  124. ]]>
  125. </script>
  126. </button>
  127. <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:145px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">기본설정</caption>
  128. <select1 id="combo1" ref="/root/hidden/barprntinfo/comport" appearance="minimal" style="left:25px; top:25px; width:110px; height:19px; ">
  129. <choices>
  130. <item>
  131. <label>COM1</label>
  132. <value>1</value>
  133. </item>
  134. <item>
  135. <label>COM2</label>
  136. <value>2</value>
  137. </item>
  138. <item>
  139. <label>COM3</label>
  140. <value>3</value>
  141. </item>
  142. <item>
  143. <label>COM4</label>
  144. <value>4</value>
  145. </item>
  146. <item>
  147. <label>COM7</label>
  148. <value>7</value>
  149. </item>
  150. </choices>
  151. </select1>
  152. <input id="input1" ref="/root/hidden/barprntinfo/setting" style="left:140px; top:25px; width:75px; height:19px; "/>
  153. <line id="line7" class="line_1" style="x1:0px; y1:20px; x2:1194px; y2:20px; "/>
  154. <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:1194px; y2:75px; "/>
  155. <button id="button1" class="btn4_letter8" disable.background-image="../../../com/commonweb/images/dis_btn4_letter5.gif" style="left:20px; top:110px; width:128px; height:22px; background-image:../../../com/commonweb/images/btn4_letter5.gif; ">
  156. <caption>바코드출력(COM)</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. var sSndMsg = "";
  160. var sBcNo = "200611140";
  161. // Comm 설정
  162. CommAX.CommPort = model.getValue("/root/hidden/barprntinfo/comport"); // 출력 Port
  163. CommAX.Settings = model.getValue("/root/hidden/barprntinfo/setting"); // Comm 설정
  164. //시작(X, Y)
  165. sSndMsg += lzzfBP_StartFormat(0, 20);
  166. //바코드
  167. sSndMsg += lzzfBP_ChangeFont("F", 10, 10);
  168. sSndMsg += lzzfBP_BarCode_Code39(10, 50, "N", 50, sBcNo);
  169. //실제바코드내용
  170. sSndMsg += lzzfBP_ChangeFont("C", 10, 10);
  171. sSndMsg += lzzfBP_FieldDataA(100, 25, "*" + sBcNo + "*");
  172. //실제바코드내용(반전)
  173. sSndMsg += lzzfBP_GraphicBox(95, 155, 150, 20, 10);
  174. sSndMsg += lzzfBP_ChangeFont("C", 10, 10);
  175. sSndMsg += lzzfBP_FieldDataA(100, 160, "*" + sBcNo + "*", "Y");
  176. //환자명
  177. // sSndMsg += lzzfBP_ChangeFont("A", 10, 10);
  178. // sSndMsg += CommAX.PrtImgOut("GRAPH003", "테스트1");
  179. // sSndMsg += lzzfBP_FiendOrigin(0, 160)
  180. // sSndMsg += "^XGGRAPH003,1,1^FS";
  181. //sSngMsg += lzzfBP_FieldDataH(0, 160, "GRAPH003", "테스트1");
  182. //실제바코드내용(반전)
  183. //sSndMsg += lzzfBP_GraphicBox(0, 195, 100, 30, 10);
  184. //sSndMsg += lzzfBP_ChangeFont("A", 10, 10);
  185. //sSngMsg += lzzfBP_FieldDataH(0, 200, "GRAPH003", "테스트1", "Y");
  186. //종료(매수)
  187. sSndMsg += lzzfBP_EndFormat();
  188. // 전송
  189. CommAX.SendMessage(sSndMsg);
  190. model.setValue("/root/hidden/Message", CommAX.Message);
  191. model.refresh();
  192. ]]>
  193. </script>
  194. </button>
  195. <button id="button4" class="btn4_letter8" disable.background-image="../../../com/commonweb/images/dis_btn4_letter5.gif" style="left:290px; top:110px; width:128px; height:22px; background-image:../../../com/commonweb/images/btn4_letter5.gif; ">
  196. <caption>바코드출력2(COM)</caption>
  197. <script type="javascript" ev:event="DOMActivate">
  198. <![CDATA[
  199. var iXPos = 20;
  200. var iYPos = 20;
  201. var sSndMsg = "";
  202. var sBcNo = "200611140";
  203. var bcno = "I23VT0061";
  204. var pid = '21313514';
  205. var sexage = 'F/38';
  206. var deptcd = 'MG/16-112';
  207. var spcnm = 'Serum';
  208. var tube = 'SST 8ml';
  209. var sectcd = 'A1';
  210. var sectnm = '자동화';
  211. var patnm = '지명희';
  212. // Comm 설정
  213. CommAX.CommPort = model.getValue("/root/hidden/barprntinfo/comport"); // 출력 Port
  214. CommAX.Settings = model.getValue("/root/hidden/barprntinfo/setting"); // Comm 설정
  215. portOpenTF = CommAX.PortOpen("true");
  216. // 라벨사이즈
  217. //sSndMsg += lzzfBP_B47_LabelSize("0350", "0550", "0330");
  218. sSndMsg += "{D0350,0550,0330|}";
  219. //sSndMsg += "{T20C30|}"
  220. // 온도
  221. //sSndMsg += "{AY;+4,0|}"
  222. // 버퍼클리어
  223. sSndMsg += "{C|}";
  224. // 피트량
  225. sSndMsg += "{AX;+000,+000,+00|}";
  226. /*
  227. 100, 40, Data, 30, 30
  228. Form1.MSComm1.object.Output = "{PV" & Right("00" + Trim(Str(cCount)), 2) & ";" & Right("0000" + Trim(Str(xPos)), 4) & "," & Right("0000" + Trim(Str(ypos)), 4) & "," & Right("0000" + Trim(Str(ysiz)), 4) & "," & Right("0000" + Trim(Str(xsiz)), 4) & ",A,+000,00,B|}"
  229. Form1.MSComm1.object.Output = "{RV" & Right("00" + Trim(Str(cCount)), 2) & ";" & PrnStr & "|}"
  230. */
  231. //iXPos = iXPos + 120;
  232. //alert("iXPos " + iXPos + " pad= "+ getLeftPad(4, iXPos));
  233. //var pad = xpos.toString().getLeftPad(4, "0");
  234. // *바코드번호*
  235. sSndMsg += "{PV" + "01" + ";" + "0120" + "," + "0020" + "," + "0020" + "," + "0020" + ",B,+000,00,B|}" ;
  236. sSndMsg += "{RV" + "01" + ";*"+ bcno +"*|}";
  237. // 채혈일시
  238. sSndMsg += "{PV" + "02" + ";" + "0310" + "," + "0020" + "," + "0020" + "," + "0020" + ",B,+000,00,B|}" ;
  239. sSndMsg += "{RV" + "02" + ";"+ "01/06 15:55" +"|}";
  240. // code39 바코드
  241. //sSndMsg += "{XB01;0030,0040,3,1,02,02,06,06,02,0,0100,+0000000001,1,00|}"
  242. sSndMsg += "{XB01;0030,0030,3,1,02,02,04,04,02,0,0120,+0000000001,0,00|}"
  243. sSndMsg += "{RB01;"+bcno+"|}"
  244. // 환자번호
  245. sSndMsg += "{PV" + "03" + ";" + "0140" + "," + "0175" + "," + "0020" + "," + "0020" + ",B,+000,00,B|}" ;
  246. sSndMsg += "{RV" + "03" + ";"+ pid +"|}";
  247. // sexage
  248. sSndMsg += "{PV" + "04" + ";" + "0340" + "," + "0175" + "," + "0020" + "," + "0020" + ",B,+000,00,B|}" ;
  249. sSndMsg += "{RV" + "04" + ";"+ sexage +"|}";
  250. // 진료과 병동병실
  251. sSndMsg += "{PV" + "05" + ";" + "0000" + "," + "0210" + "," + "0020" + "," + "0020" + ",B,+000,00,B|}" ;
  252. sSndMsg += "{RV" + "05" + ";"+ deptcd +"|}";
  253. //검체명
  254. sSndMsg += "{PV" + "06" + ";" + "0180" + "," + "0210" + "," + "0020" + "," + "0020" + ",B,+000,00,B|}" ;
  255. sSndMsg += "{RV" + "06" + ";"+ spcnm +"|}";
  256. //용기명
  257. sSndMsg += "{PV" + "07" + ";" + "0320" + "," + "0210" + "," + "0020" + "," + "0020" + ",B,+000,00,B|}" ;
  258. sSndMsg += "{RV" + "07" + ";"+ tube +"|}";
  259. //시행부서 영문
  260. sSndMsg += "{PV" + "08" + ";" + "0000" + "," + "0240" + "," + "0020" + "," + "0020" + ",B,+000,00,B|}" ;
  261. sSndMsg += "{RV" + "08" + ";"+ sectcd +"|}";
  262. // 시행부서 한글 찍어야됨
  263. sSndMsg += "{PV" + "09" + ";" + "0000" + "," + "0020" + "," + "0020" + "," + "0020" + ",B,+000,00,W|}" ;
  264. sSndMsg += "{RV" + "09" + ";"+ "start" +"|}";
  265. // 환자명 한글 찍어야됨
  266. sSndMsg += "{PV" + "09" + ";" + "0000" + "," + "0175" + "," + "0020" + "," + "0020" + ",B,+000,00,W|}" ;
  267. sSndMsg += "{RV" + "09" + ";"+ "patnm" +"|}";
  268. // 한글 테스트
  269. sSndMsg += "{PC001;0000,0280,1,1,B,00,B,+0000000001|}"
  270. sSndMsg += "{RC001;"+ patnm +"|}"
  271. sSndMsg += "{LC;0000,0299,0430,0300,1,9|}";
  272. //sSndMsg += "{LF;|}";
  273. // 한글테스트 2
  274. //sSndMsg += "{SG001;0000,0280,1,1,B,00,B,+0000000001|}"
  275. //sSndMsg += "{PV" + "01" + ";" + "0100" + "," + "0040" + "," + "0020" + "," + "0020" + ",A,+000,00,B|}" ;
  276. //sSndMsg += "{RV" + "01" + ";BC001|}";
  277. //sSndMsg += "{PV" + "02" + ";" + "0100" + "," + "0090" + "," + "0020" + "," + "0020" + ",A,+000,00,W|}" ;
  278. //sSndMsg += "{RV" + "02" + ";BC002|}";
  279. //sSndMsg += "{PC001;0010,0010,1,1,A,00,B,+0000000001|}"
  280. //sSndMsg += "{XB01;0010,0120,3,1,02,02,04,04,02,0,0100,+0000000001,1,00|}"
  281. //sSndMsg += sPV;
  282. //sSndMsg += "{RC001;A0001|}"
  283. sSndMsg += "{XS;I,0001,0002C5101|}";
  284. //alert(sSndMsg);
  285. // 전송
  286. CommAX.SendMessage(sSndMsg);
  287. // Close COM Port
  288. CommAX.PortOpen("false");
  289. ]]>
  290. </script>
  291. </button>
  292. <button id="button6" class="btn4_letter8" disable.background-image="../../../com/commonweb/images/dis_btn4_letter5.gif" style="left:290px; top:145px; width:128px; height:22px; background-image:../../../com/commonweb/images/btn4_letter5.gif; ">
  293. <caption>바코드출력3(COM)</caption>
  294. <script type="javascript" ev:event="DOMActivate">
  295. <![CDATA[
  296. var iXPos = 20;
  297. var iYPos = 20;
  298. var sSndMsg = "";
  299. var sBcNo = "200611140";
  300. var bcno = "I23VT0061";
  301. var pid = '21313514';
  302. var sexage = 'F/38';
  303. var deptcd = 'MG/16-112';
  304. var spcnm = 'Serum';
  305. var tube = 'SST 8ml';
  306. var sectcd = 'A1';
  307. var sectnm = '자동화';
  308. var patnm = '지명희';
  309. // Comm 설정
  310. CommAX.CommPort = model.getValue("/root/hidden/barprntinfo/comport"); // 출력 Port
  311. CommAX.Settings = model.getValue("/root/hidden/barprntinfo/setting"); // Comm 설정
  312. portOpenTF = CommAX.PortOpen("true");
  313. // 라벨사이즈
  314. //sSndMsg += lzzfBP_B47_LabelSize("0350", "0550", "0330");
  315. sSndMsg += "{D0350,0550,0330|}";
  316. //sSndMsg += "{T20C30|}"
  317. // 온도
  318. //sSndMsg += "{AY;+4,0|}"
  319. // 버퍼클리어
  320. sSndMsg += "{C|}";
  321. // 피트량
  322. sSndMsg += "{AX;+000,+000,+00|}";
  323. //sSndMsg += lzzfBP_HanDisp24("가황1AaQ0&최", 10, 20);
  324. //sSndMsg += "{RB01;"+bcno+"|}"
  325. //sSndMsg += "{XB01;"+ "0020" + "," + "0020" +",3,1,02,02,"+"05"+","+"04"+",02,0,"+ "0120" +",+0000000000,0,00|}{RB01;" + "*111111111*" +"|}";
  326. sSndMsg += "{XB01;0110,0050,3,1,02,02,04,04,02,0,0120,+0000000000,0,00|}"
  327. sSndMsg += "{RB01;"+"*XXXXXX*"+"|}"
  328. sSndMsg += "{PC" + "001" + ";" + "0150" + "," + "0200" + ",1,1,G,-02,00,"+ "B" +"|}{RC" + "01" + ";"+ "* XXXXXX *" +"|}" ;
  329. sSndMsg += "{XS;I,0001,0002C5101|}";
  330. //alert(sSndMsg);
  331. // 전송
  332. CommAX.SendMessage(sSndMsg);
  333. // Close COM Port
  334. CommAX.PortOpen("false");
  335. ]]>
  336. </script>
  337. </button>
  338. <button id="button7" class="btn4_letter8" disable.background-image="../../../com/commonweb/images/dis_btn4_letter5.gif" style="left:440px; top:110px; width:128px; height:22px; background-image:../../../com/commonweb/images/btn4_letter5.gif; ">
  339. <caption>바코드출력4(COM)</caption>
  340. <script type="javascript" ev:event="DOMActivate">
  341. <![CDATA[
  342. // 병리 바코드
  343. //var iXPos = 20;
  344. //var iYPos = 20;
  345. var sSndMsg = "";
  346. var sBcNo = "200611140";
  347. var bcno = "I23VT0061";
  348. var pid = '21313514';
  349. var sexage = 'F/38';
  350. var deptcd = 'MG/16-112';
  351. var spcnm = 'Serum';
  352. var tube = 'SST 8ml';
  353. var sectcd = 'A1';
  354. var sectnm = '자동화';
  355. var patnm = '지명희';
  356. var iLeft = 0;
  357. var iTop = 0;
  358. var iXPos = 0;
  359. var iYPos = 0;
  360. var iWidth = 0;
  361. var sBarCdNoH = "20XT40002";
  362. var iPrntCnt = "1";
  363. // Comm 설정
  364. CommAX.CommPort = model.getValue("/root/hidden/barprntinfo/comport"); // 출력 Port
  365. CommAX.Settings = model.getValue("/root/hidden/barprntinfo/setting"); // Comm 설정
  366. portOpenTF = CommAX.PortOpen("true");
  367. // 라벨사이즈
  368. //sSndMsg += lzzfBP_B47_LabelSize("0350", "0550", "0330");
  369. sSndMsg += "{D0350,0550,0330|}";
  370. //sSndMsg += "{T20C30|}"
  371. // 온도
  372. //sSndMsg += "{AY;+4,0|}"
  373. // 버퍼클리어
  374. sSndMsg += "{C|}";
  375. // 피트량
  376. sSndMsg += "{AX;+000,+000,+00|}";
  377. // 내용
  378. sSndMsg += "{PC" + "01" + ";" + "0120" + "," + "0020" + "," + "0020" + "," + "0020" + ",B,+000,00,B|}" ;
  379. sSndMsg += "{RC" + "01" + ";*"+ bcno +"*|}";
  380. /*
  381. iXPos = Number(iLeft)+20 ;
  382. iYPos = Number(iTop)+20;
  383. sSndMsg += lzzfBP_HanDisp24(sectnm, iXPos, iYPos);
  384. iXPos = Number(iLeft)+20 ;
  385. iYPos = Number(iTop) + 100;
  386. sSndMsg += lzzfBP_HanDisp32(sectnm, iXPos, iYPos);
  387. iXPos = Number(iLeft)+20 ;
  388. iYPos = Number(iTop) + 200;
  389. sSndMsg += lzzfBP_HanDisp48(sectnm, iXPos, iYPos);
  390. */
  391. /*
  392. iXPos = Number(iLeft) + 20;
  393. iYPos = Number(iTop) + 5;
  394. var newbcno = sBarCdNoH + (iPrntCnt).toString().getLeftPad(2, "0");
  395. sSndMsg += lzzfBP_BarCode_Code39_B472(iXPos, iYPos, 4, 4, newbcno); // 바코드
  396. iXPos = Number(iLeft) + 140;
  397. iYPos = Number(iTop) + 150;
  398. sSndMsg += lzzfBP_FieldDataA_B472(iXPos, iYPos, 20, 20, newbcno); //바코드번호
  399. iXPos = Number(iLeft);
  400. iYPos = Number(iTop) + 175;
  401. sSndMsg += lzzfBP_FieldDataA_B472(iXPos, iYPos, 20, 20, "PATHOLOGY");
  402. iXPos = Number(iLeft) + 170;
  403. iYPos = Number(iTop) + 175;
  404. sTempStr = deptcd;
  405. sSndMsg += lzzfBP_FieldDataA_B472(iXPos, iYPos, 20, 20, deptcd);
  406. //sSndMsg += lzzfBP_HanDisp24(sTempStr, iXPos, iYPos);
  407. iXPos = Number(iLeft) + 330;
  408. iYPos = Number(iTop) + 175;
  409. sSndMsg += lzzfBP_FieldDataA_B472(iXPos, iYPos, 20, 20, "2010-01-07");
  410. iXPos = Number(iLeft) + 300;
  411. iYPos = Number(iTop) + 175;
  412. sSndMsg += lzzfBP_FieldDataA_B472(iXPos, iYPos, 20, 20, "");
  413. iXPos = Number(iLeft);
  414. iYPos = Number(iTop) + 210;
  415. sSndMsg += lzzfBP_FieldDataA_B472(iXPos, iYPos, 20, 20, pid);
  416. iXPos = Number(iLeft) + 150;
  417. iYPos = Number(iTop) + 190;
  418. sSndMsg += lzzfBP_HanDisp24(patnm, iXPos, iYPos);
  419. iXPos = Number(iLeft) + 310;
  420. iYPos = Number(iTop) + 210;
  421. sSndMsg += lzzfBP_FieldDataA_B472(iXPos, iYPos, 20, 20, "F" + "/" + "33");
  422. iXPos = Number(iLeft) + 400;
  423. iYPos = Number(iTop) + 210;
  424. //수술실이 있을 경우 진료과 옆에 수술방 이름을 표시하여 준다.
  425. sSndMsg += lzzfBP_FieldDataA_B472(iXPos, iYPos, 20, 20, "GS");
  426. iXPos = Number(iLeft);
  427. iYPos = Number(iTop) + 220;
  428. sTempStr = "1/1 Other";
  429. sSndMsg += lzzfBP_HanDisp24(sTempStr, iXPos, iYPos);
  430. */
  431. sSndMsg += "{XS;I,0001,0002C5101|}";
  432. alert(sSndMsg);
  433. // 전송
  434. CommAX.SendMessage(sSndMsg);
  435. // Close COM Port
  436. CommAX.PortOpen("false");
  437. ]]>
  438. </script>
  439. </button>
  440. <button id="button8" class="btn4_letter10" disable.background-image="../../../com/commonweb/images/dis_btn4_letter5.gif" style="left:20px; top:185px; width:158px; height:22px; background-image:../../../com/commonweb/images/btn4_letter5.gif; ">
  441. <caption>zebra 혈액 XX바코드</caption>
  442. <script type="javascript" ev:event="DOMActivate">
  443. <![CDATA[
  444. CommAX.PortOpen("true");
  445. var sSndMsg = "";
  446. var sBcNo = "XXXXXX";
  447. // Comm 설정
  448. CommAX.CommPort = model.getValue("/root/hidden/barprntinfo/comport"); // 출력 Port
  449. CommAX.Settings = model.getValue("/root/hidden/barprntinfo/setting"); // Comm 설정
  450. //시작(X, Y)
  451. sSndMsg += lzzfBP_StartFormat(0, 20);
  452. //sSndMsg += CommAX.PrtImgOut(60, 80, "혈액은행 enter 바코드", 1, 1);
  453. //sSndMsg += CommAX.HanImageData();
  454. //바코드
  455. sSndMsg += lzzfBP_ChangeFont("F", 10, 10);
  456. sSndMsg += lzzfBP_BarCode_Code39(60, 50, "N", 80, sBcNo);
  457. //실제바코드내용
  458. sSndMsg += lzzfBP_ChangeFont("C", 10, 10);
  459. sSndMsg += lzzfBP_FieldDataA(110, 140, "* " + sBcNo + " *");
  460. //실제바코드내용(반전)
  461. //sSndMsg += lzzfBP_GraphicBox(95, 155, 150, 20, 10);
  462. //sSndMsg += lzzfBP_ChangeFont("C", 10, 10);
  463. //sSndMsg += lzzfBP_FieldDataA(100, 160, "*" + sBcNo + "*", "Y");
  464. //환자명
  465. // sSndMsg += lzzfBP_ChangeFont("A", 10, 10);
  466. // sSndMsg += CommAX.PrtImgOut("GRAPH003", "테스트1");
  467. // sSndMsg += lzzfBP_FiendOrigin(0, 160)
  468. // sSndMsg += "^XGGRAPH003,1,1^FS";
  469. //sSngMsg += lzzfBP_FieldDataH(0, 160, "GRAPH003", "테스트1");
  470. //실제바코드내용(반전)
  471. //sSndMsg += lzzfBP_GraphicBox(0, 195, 100, 30, 10);
  472. //sSndMsg += lzzfBP_ChangeFont("A", 10, 10);
  473. //sSngMsg += lzzfBP_FieldDataH(0, 200, "GRAPH003", "테스트1", "Y");
  474. //종료(매수)
  475. sSndMsg += lzzfBP_EndFormat();
  476. // 전송
  477. CommAX.SendMessage(sSndMsg);
  478. model.setValue("/root/hidden/Message", CommAX.Message);
  479. model.refresh();
  480. CommAX.PortOpen("false");
  481. ]]>
  482. </script>
  483. </button>
  484. <textarea id="textarea1" ref="/root/hidden/b472/sendmsg" style="left:105px; top:505px; width:465px; height:165px; "/>
  485. <button id="button9" class="btn4_letter6" style="left:105px; top:675px; width:104px; height:22px; ">
  486. <caption>B 472 출력</caption>
  487. <script type="javascript" ev:event="DOMActivate">
  488. <![CDATA[
  489. CommAX.CommPort = model.getValue("/root/hidden/barprntinfo/comport"); // 출력 Port
  490. CommAX.Settings = model.getValue("/root/hidden/barprntinfo/setting"); // Comm 설정
  491. portOpenTF = CommAX.PortOpen("true");
  492. var sSndMsg = model.getValue("/root/hidden/b472/sendmsg");
  493. // 전송
  494. CommAX.SendMessage(sSndMsg);
  495. // Close COM Port
  496. CommAX.PortOpen("false");
  497. ]]>
  498. </script>
  499. </button>
  500. <caption id="caption3" style="left:105px; top:350px; width:200px; height:30px; font-size:14pt; font-weight:bold; color:#ff0000; ">B-472 테스트용</caption>
  501. <input id="input2" ref="/root/hidden/b472/btest/engA/text" style="left:230px; top:415px; width:100px; height:19px; ">
  502. <script type="javascript" ev:event="onkeypress">
  503. <![CDATA[
  504. // 영문A
  505. var sBuf = "";
  506. var sReverse="";
  507. var ppX = model.getValue("/root/hidden/b472/btest/engA/x").toString().getLeftPad(4, "0");
  508. var ppY = model.getValue("/root/hidden/b472/btest/engA/y").toString().getLeftPad(4, "0");
  509. var ppWs = model.getValue("/root/hidden/b472/btest/engA/w").toString().getLeftPad(4, "0");
  510. var ppHs = model.getValue("/root/hidden/b472/btest/engA/h").toString().getLeftPad(4, "0");
  511. var sText = model.getValue("/root/hidden/b472/btest/engA/text");
  512. sBuf = "{PV" + "01" + ";" + ppX + "," + ppY + "," + ppWs + "," + ppHs + ",B,+000,00,"+ "B" +"|}{RV" + "01" + ";"+ sText +"|}" ;
  513. model.setValue("/root/hidden/b472/btest/engA/result", sBuf);
  514. input4.refresh();
  515. ]]>
  516. </script>
  517. </input>
  518. <input id="input3" ref="/root/hidden/b472/btest/han/text" style="left:230px; top:460px; width:100px; height:19px; ">
  519. <script type="javascript" ev:event="onkeypress">
  520. <![CDATA[
  521. var retVal = "";
  522. var iLen = model.getValue("/root/hidden/b472/btest/han/text").length;
  523. var iXPos = model.getValue("/root/hidden/b472/btest/han/x");
  524. var iYPos = model.getValue("/root/hidden/b472/btest/han/y");
  525. var iYPos2 = model.getValue("/root/hidden/b472/btest/han/y") + 30;
  526. var iTCnt = 40;
  527. var text = "";
  528. for (var i=0; i < iLen; i++) {
  529. var sChar = model.getValue("/root/hidden/b472/btest/han/text").substring(i, i + 1);
  530. var sStrBuff = ""
  531. //alert( i.toString() + " : " + sStr.substring(i, i + 1) + " : " + sChar.charCodeAt());
  532. if (sChar.charCodeAt() < 0 || sChar.charCodeAt() >= 127) {
  533. // 한글
  534. sStrBuff = "{SG;";
  535. sStrBuff += iXPos.toString().getLeftPad(4, "0");
  536. sStrBuff += "," + iYPos.toString().getLeftPad(4, "0") + ",0032,0032,0,";
  537. sStrBuff += lzzfBP_GetHanFont32( sChar );
  538. sStrBuff += "|}";
  539. iXPos += 40
  540. } else {
  541. // 영문, 숫자
  542. ++iTCnt;
  543. sStrBuff = "{PV";
  544. sStrBuff += iTCnt.toString().getLeftPad(2, "0") + ";";
  545. sStrBuff += iXPos.toString().getLeftPad(4, "0");
  546. sStrBuff += "," + iYPos2.toString().getLeftPad(4, "0") + ",0026,0026,B,+000,00,B=";
  547. sStrBuff += sChar;
  548. sStrBuff += "|}";
  549. iXPos += 36
  550. }
  551. retVal += sStrBuff;
  552. //model.setValue( "/root/output", model.getValue("/root/output") + sStrBuff);
  553. }
  554. //return retVal;
  555. model.setValue("/root/hidden/b472/btest/han/result", retVal);
  556. input5.refresh();
  557. ]]>
  558. </script>
  559. </input>
  560. <caption id="caption4" style="left:105px; top:415px; width:40px; height:20px; ">영문A</caption>
  561. <caption id="caption5" style="left:105px; top:460px; width:40px; height:20px; ">한글32</caption>
  562. <input id="input4" ref="/root/hidden/b472/btest/engA/result" style="left:340px; top:415px; width:405px; height:19px; "/>
  563. <input id="input5" ref="/root/hidden/b472/btest/han/result" style="left:340px; top:460px; width:405px; height:19px; "/>
  564. <caption id="caption7" style="left:105px; top:438px; width:40px; height:20px; ">영문G</caption>
  565. <input id="input6" ref="/root/hidden/b472/btest/engG/text" style="left:230px; top:438px; width:100px; height:19px; ">
  566. <script type="javascript" ev:event="onkeypress">
  567. <![CDATA[
  568. var sBuf = "";
  569. //var sReverse="";
  570. var ppX = model.getValue("/root/hidden/b472/btest/engG/x").toString().getLeftPad(4, "0");
  571. var ppY = model.getValue("/root/hidden/b472/btest/engG/y").toString().getLeftPad(4, "0");
  572. var text = model.getValue("/root/hidden/b472/btest/engG/text");
  573. sBuf = "{PC" + "001" + ";" + ppX + "," + ppY + ",1,1,G,-02,00,"+ "B" +"|}{RC" + "01" + ";"+ text +"|}" ;
  574. model.setValue("/root/hidden/b472/btest/engG/result", sBuf);
  575. input7.refresh();
  576. ]]>
  577. </script>
  578. </input>
  579. <input id="input7" ref="/root/hidden/b472/btest/engG/result" style="left:340px; top:438px; width:405px; height:19px; "/>
  580. <caption id="caption8" style="left:105px; top:392px; width:40px; height:20px; ">시작</caption>
  581. <input id="input9" ref="/root/hidden/b472/btest/start" style="left:340px; top:392px; width:405px; height:19px; "/>
  582. <input id="input8" ref="/root/hidden/b472/btest/end" style="left:340px; top:482px; width:405px; height:19px; "/>
  583. <caption id="caption9" style="left:105px; top:482px; width:40px; height:20px; ">끝</caption>
  584. <input id="input10" ref="/root/hidden/b472/btest/engA/x" style="left:150px; top:414px; width:35px; height:19px; "/>
  585. <input id="input11" ref="/root/hidden/b472/btest/engA/y" style="left:190px; top:414px; width:35px; height:19px; "/>
  586. <caption id="caption10" style="left:150px; top:395px; width:137px; height:20px; ">X Y text</caption>
  587. <input id="input12" ref="/root/hidden/b472/btest/engG/x" style="left:150px; top:437px; width:35px; height:19px; "/>
  588. <input id="input13" ref="/root/hidden/b472/btest/engG/y" style="left:190px; top:437px; width:35px; height:19px; "/>
  589. <input id="input14" ref="/root/hidden/b472/btest/han/x" style="left:150px; top:460px; width:35px; height:19px; "/>
  590. <input id="input15" ref="/root/hidden/b472/btest/han/y" style="left:190px; top:460px; width:35px; height:19px; "/>
  591. <input id="input16" ref="/root/hidden/b472/btest/engA/w" style="left:750px; top:415px; width:50px; height:19px; "/>
  592. <input id="input17" ref="/root/hidden/b472/btest/engA/h" style="left:805px; top:415px; width:50px; height:19px; "/>
  593. <textarea id="textarea2" ref="/root/hidden/b472/xxxx" style="left:645px; top:510px; width:535px; height:220px; "/>
  594. <button id="button10" class="btn4_letter10" disable.background-image="../../../com/commonweb/images/dis_btn4_letter5.gif" style="left:20px; top:215px; width:177px; height:22px; background-image:../../../com/commonweb/images/btn4_letter5.gif; ">
  595. <caption>zebra 300 XX바코드</caption>
  596. <script type="javascript" ev:event="DOMActivate">
  597. <![CDATA[
  598. CommAX.PortOpen("true");
  599. var sSndMsg = "";
  600. var sBcNo = "XXXXXX";
  601. // Comm 설정
  602. CommAX.CommPort = model.getValue("/root/hidden/barprntinfo/comport"); // 출력 Port
  603. CommAX.Settings = model.getValue("/root/hidden/barprntinfo/setting"); // Comm 설정
  604. //시작(X, Y)
  605. sSndMsg += lzzfBP_StartFormat(0, 20);
  606. //sSndMsg += CommAX.PrtImgOut(60, 80, "혈액은행 enter 바코드", 1, 1);
  607. //sSndMsg += CommAX.HanImageData();
  608. //바코드
  609. sSndMsg += lzzfBP_ChangeFont("F", 10, 10);
  610. //sSndMsg += lzzfBP_BarCode_Code39(60, 50, "N", 80, sBcNo);
  611. sSndMsg += lzzfBP_BarCode_Code39_300dpi(140, 50, "N", 120, "*" + sBcNo + "*"); // 바코드
  612. //실제바코드내용
  613. sSndMsg += lzzfBP_ChangeFont("C", 20, 20);
  614. sSndMsg += lzzfBP_FieldDataA(210, 190, "* " + sBcNo + " *");
  615. //실제바코드내용(반전)
  616. //sSndMsg += lzzfBP_GraphicBox(95, 155, 150, 20, 10);
  617. //sSndMsg += lzzfBP_ChangeFont("C", 10, 10);
  618. //sSndMsg += lzzfBP_FieldDataA(100, 160, "*" + sBcNo + "*", "Y");
  619. //환자명
  620. // sSndMsg += lzzfBP_ChangeFont("A", 10, 10);
  621. // sSndMsg += CommAX.PrtImgOut("GRAPH003", "테스트1");
  622. // sSndMsg += lzzfBP_FiendOrigin(0, 160)
  623. // sSndMsg += "^XGGRAPH003,1,1^FS";
  624. //sSngMsg += lzzfBP_FieldDataH(0, 160, "GRAPH003", "테스트1");
  625. //실제바코드내용(반전)
  626. //sSndMsg += lzzfBP_GraphicBox(0, 195, 100, 30, 10);
  627. //sSndMsg += lzzfBP_ChangeFont("A", 10, 10);
  628. //sSngMsg += lzzfBP_FieldDataH(0, 200, "GRAPH003", "테스트1", "Y");
  629. //종료(매수)
  630. sSndMsg += lzzfBP_EndFormat();
  631. // 전송
  632. CommAX.SendMessage(sSndMsg);
  633. model.setValue("/root/hidden/Message", CommAX.Message);
  634. model.refresh();
  635. CommAX.PortOpen("false");
  636. ]]>
  637. </script>
  638. </button>
  639. </group>
  640. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  641. <button id="button5" class="btn4_letter3" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1127px; top:3px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  642. <caption>초기화</caption>
  643. <script type="javascript" ev:event="onclick">
  644. <![CDATA[
  645. ]]>
  646. </script>
  647. </button>
  648. <line id="line15" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  649. </group>
  650. <group id="group5" style="left:0px; top:0px; width:1195px; height:13px; ">
  651. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">바코드출력 테스트</caption>
  652. </group>
  653. <button id="button3" class="btn4_letter8" disable.background-image="../../../com/commonweb/images/dis_btn4_letter5.gif" style="left:20px; top:185px; width:128px; height:22px; background-image:../../../com/commonweb/images/btn4_letter5.gif; ">
  654. <caption>바코드출력(LPT)</caption>
  655. <script type="javascript" ev:event="DOMActivate">
  656. <![CDATA[
  657. var sSndMsg = "";
  658. var sBcNo = "200611140";
  659. //시작(X, Y)
  660. sSndMsg += lzzfBP_StartFormat(0, 20);
  661. //바코드
  662. sSndMsg += lzzfBP_ChangeFont("F", 10, 10);
  663. sSndMsg += lzzfBP_BarCode_Code39(10, 50, "N", 50, sBcNo);
  664. //실제바코드내용
  665. sSndMsg += lzzfBP_ChangeFont("C", 10, 10);
  666. sSndMsg += lzzfBP_FieldDataA(100, 25, "*" + sBcNo + "*");
  667. //실제바코드내용(반전)
  668. sSndMsg += lzzfBP_GraphicBox(95, 155, 150, 20, 10);
  669. sSndMsg += lzzfBP_ChangeFont("C", 10, 10);
  670. sSndMsg += lzzfBP_FieldDataA(100, 160, "*" + sBcNo + "*", "Y");
  671. //환자명
  672. sSndMsg += lzzfBP_ChangeFont("A", 10, 10);
  673. sSndMsg += CommAX.PrtImgOut("GRAPH003", "테스트1");
  674. sSndMsg += lzzfBP_FiendOrigin(0, 160)
  675. sSndMsg += "^XGGRAPH003,1,1^FS";
  676. //sSngMsg += lzzfBP_FieldDataH(0, 160, "GRAPH003", "테스트1");
  677. //실제바코드내용(반전)
  678. //sSndMsg += lzzfBP_GraphicBox(0, 195, 100, 30, 10);
  679. //sSndMsg += lzzfBP_ChangeFont("A", 10, 10);
  680. //sSngMsg += lzzfBP_FieldDataH(0, 200, "GRAPH003", "테스트1", "Y");
  681. //종료(매수)
  682. sSndMsg += lzzfBP_EndFormat();
  683. //전송
  684. CommAX.SendMessageToLPT(sSndMsg);
  685. model.setValue("/root/hidden/Message", CommAX.Message);
  686. model.refresh();
  687. ]]>
  688. </script>
  689. </button>
  690. </xhtml:body>
  691. </xhtml:html>