54_바코드테스트.xrw 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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>1</comport>
  28. <setting>9600,n,8,1</setting>
  29. <ip/>
  30. </barprntinfo>
  31. </hidden>
  32. </root>
  33. </instance>
  34. </model>
  35. <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  37. <script type="javascript" ev:event="xforms-ready">
  38. <![CDATA[
  39. // 바코드OCX 생성
  40. lzzfMakeBrcdPrntObj("CommAX");
  41. ]]>
  42. </script>
  43. </xhtml:head>
  44. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  45. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; "/>
  46. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  47. <!--<object id="CommAX" visibility="hidden" clsid="{dc53f18a-7b68-4ca7-9c9d-b3f20e327186}" style="left:20px; top:160px; width:45px; height:45px; "/>-->
  48. <!--<object id="CommAX" visibility="hidden" clsid="{35cc9cfa-e6f8-4b22-b6d2-fe7cd108f943}" style="left:0px; top:0px; width:45px; height:45px; "/>-->
  49. <!--<object id="CommAX" clsid="{AD952C59-FBD8-4EB9-8960-7CE23A898328}" style="left:15px; top:15px; width:45px; height:45px; "/>-->
  50. <caption id="caption2" class="tit_2" style="left:5px; top:60px; width:145px; height:13px; ">전송결과</caption>
  51. <output id="output1" ref="/root/hidden/Message" style="left:20px; top:81px; width:335px; height:19px; "/>
  52. <button id="button2" class="btn4_letter5" style="left:1095px; top:75px; width:92px; height:22px; ">
  53. <caption>바코드출력</caption>
  54. <script type="javascript" ev:event="DOMActivate">
  55. <![CDATA[
  56. var oZBPrint = new Object("ZBPrint");
  57. var ID = "";
  58. ID=ZBPrint.ZPL_CommPortSetting(1,9600,8,"N",1);
  59. 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");
  60. ]]>
  61. </script>
  62. </button>
  63. <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:145px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">기본설정</caption>
  64. <select1 id="combo1" ref="/root/hidden/barprntinfo/comport" appearance="minimal" style="left:25px; top:25px; width:110px; height:19px; ">
  65. <choices>
  66. <item>
  67. <label>COM1</label>
  68. <value>1</value>
  69. </item>
  70. <item>
  71. <label>COM2</label>
  72. <value>2</value>
  73. </item>
  74. <item>
  75. <label>COM3</label>
  76. <value>3</value>
  77. </item>
  78. <item>
  79. <label>COM4</label>
  80. <value>4</value>
  81. </item>
  82. </choices>
  83. </select1>
  84. <input id="input1" ref="/root/hidden/barprntinfo/setting" style="left:140px; top:25px; width:75px; height:19px; "/>
  85. <line id="line7" class="line_1" style="x1:0px; y1:20px; x2:1194px; y2:20px; "/>
  86. <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:1194px; y2:75px; "/>
  87. <button id="button1" class="btn4_letter8" style="left:20px; top:110px; width:128px; height:22px; ">
  88. <caption>바코드출력(COM)</caption>
  89. <script type="javascript" ev:event="DOMActivate">
  90. <![CDATA[
  91. var sSndMsg = "";
  92. var sBcNo = "200611140";
  93. // Comm 설정
  94. CommAX.CommPort = model.getValue("/root/hidden/barprntinfo/comport"); // 출력 Port
  95. CommAX.Settings = model.getValue("/root/hidden/barprntinfo/setting"); // Comm 설정
  96. //시작(X, Y)
  97. sSndMsg += lzzfBP_StartFormat(0, 20);
  98. //바코드
  99. sSndMsg += lzzfBP_ChangeFont("F", 10, 10);
  100. sSndMsg += lzzfBP_BarCode_Code39(10, 50, "N", 50, sBcNo);
  101. //실제바코드내용
  102. sSndMsg += lzzfBP_ChangeFont("C", 10, 10);
  103. sSndMsg += lzzfBP_FieldDataA(100, 25, "*" + sBcNo + "*");
  104. //실제바코드내용(반전)
  105. sSndMsg += lzzfBP_GraphicBox(95, 155, 150, 20, 10);
  106. sSndMsg += lzzfBP_ChangeFont("C", 10, 10);
  107. sSndMsg += lzzfBP_FieldDataA(100, 160, "*" + sBcNo + "*", "Y");
  108. //환자명
  109. sSndMsg += lzzfBP_ChangeFont("A", 10, 10);
  110. sSndMsg += CommAX.PrtImgOut("GRAPH003", "테스트1");
  111. sSndMsg += lzzfBP_FiendOrigin(0, 160)
  112. sSndMsg += "^XGGRAPH003,1,1^FS";
  113. //sSngMsg += lzzfBP_FieldDataH(0, 160, "GRAPH003", "테스트1");
  114. //실제바코드내용(반전)
  115. //sSndMsg += lzzfBP_GraphicBox(0, 195, 100, 30, 10);
  116. //sSndMsg += lzzfBP_ChangeFont("A", 10, 10);
  117. //sSngMsg += lzzfBP_FieldDataH(0, 200, "GRAPH003", "테스트1", "Y");
  118. //종료(매수)
  119. sSndMsg += lzzfBP_EndFormat();
  120. // 전송
  121. CommAX.SendMessage(sSndMsg);
  122. model.setValue("/root/hidden/Message", CommAX.Message);
  123. model.refresh();
  124. ]]>
  125. </script>
  126. </button>
  127. </group>
  128. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  129. <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  130. <caption>초기화</caption>
  131. <script type="javascript" ev:event="onclick">
  132. <![CDATA[
  133. ]]>
  134. </script>
  135. </button>
  136. <line id="line15" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  137. </group>
  138. <group id="group5" style="left:0px; top:0px; width:1195px; height:13px; ">
  139. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">바코드출력 테스트</caption>
  140. </group>
  141. <button id="button3" class="btn4_letter8" style="left:20px; top:185px; width:128px; height:22px; ">
  142. <caption>바코드출력(LPT)</caption>
  143. <script type="javascript" ev:event="DOMActivate">
  144. <![CDATA[
  145. var sSndMsg = "";
  146. var sBcNo = "200611140";
  147. //시작(X, Y)
  148. sSndMsg += lzzfBP_StartFormat(0, 20);
  149. //바코드
  150. sSndMsg += lzzfBP_ChangeFont("F", 10, 10);
  151. sSndMsg += lzzfBP_BarCode_Code39(10, 50, "N", 50, sBcNo);
  152. //실제바코드내용
  153. sSndMsg += lzzfBP_ChangeFont("C", 10, 10);
  154. sSndMsg += lzzfBP_FieldDataA(100, 25, "*" + sBcNo + "*");
  155. //실제바코드내용(반전)
  156. sSndMsg += lzzfBP_GraphicBox(95, 155, 150, 20, 10);
  157. sSndMsg += lzzfBP_ChangeFont("C", 10, 10);
  158. sSndMsg += lzzfBP_FieldDataA(100, 160, "*" + sBcNo + "*", "Y");
  159. //환자명
  160. sSndMsg += lzzfBP_ChangeFont("A", 10, 10);
  161. sSndMsg += CommAX.PrtImgOut("GRAPH003", "테스트1");
  162. sSndMsg += lzzfBP_FiendOrigin(0, 160)
  163. sSndMsg += "^XGGRAPH003,1,1^FS";
  164. //sSngMsg += lzzfBP_FieldDataH(0, 160, "GRAPH003", "테스트1");
  165. //실제바코드내용(반전)
  166. //sSndMsg += lzzfBP_GraphicBox(0, 195, 100, 30, 10);
  167. //sSndMsg += lzzfBP_ChangeFont("A", 10, 10);
  168. //sSngMsg += lzzfBP_FieldDataH(0, 200, "GRAPH003", "테스트1", "Y");
  169. //종료(매수)
  170. sSndMsg += lzzfBP_EndFormat();
  171. //전송
  172. CommAX.SendMessageToLPT(sSndMsg);
  173. model.setValue("/root/hidden/Message", CommAX.Message);
  174. model.refresh();
  175. ]]>
  176. </script>
  177. </button>
  178. </xhtml:body>
  179. </xhtml:html>