123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : 바코드테스트.xrw
- * 설 명 :
- * 설 계 자 : (주)에이씨케이 - Jin Hwa Ji
- * 작 성 자 : (주)에이씨케이 - Jin Hwa Ji
- * 작 성 일 : 2007.05.08
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- </main>
- <send>
- </send>
- <init>
- </init>
- <hidden>
- <Message/>
- <barprntinfo>
- <comport>1</comport>
- <setting>9600,n,8,1</setting>
- <ip/>
- </barprntinfo>
- </hidden>
- </root>
- </instance>
- </model>
- <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 바코드OCX 생성
- lzzfMakeBrcdPrntObj("CommAX");
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; "/>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <!--<object id="CommAX" visibility="hidden" clsid="{dc53f18a-7b68-4ca7-9c9d-b3f20e327186}" style="left:20px; top:160px; width:45px; height:45px; "/>-->
- <!--<object id="CommAX" visibility="hidden" clsid="{35cc9cfa-e6f8-4b22-b6d2-fe7cd108f943}" style="left:0px; top:0px; width:45px; height:45px; "/>-->
- <!--<object id="CommAX" clsid="{AD952C59-FBD8-4EB9-8960-7CE23A898328}" style="left:15px; top:15px; width:45px; height:45px; "/>-->
- <caption id="caption2" class="tit_2" style="left:5px; top:60px; width:145px; height:13px; ">전송결과</caption>
- <output id="output1" ref="/root/hidden/Message" style="left:20px; top:81px; width:335px; height:19px; "/>
- <button id="button2" class="btn4_letter5" style="left:1095px; top:75px; width:92px; height:22px; ">
- <caption>바코드출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var oZBPrint = new Object("ZBPrint");
- var ID = "";
-
- ID=ZBPrint.ZPL_CommPortSetting(1,9600,8,"N",1);
- 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");
-
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:145px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">기본설정</caption>
- <select1 id="combo1" ref="/root/hidden/barprntinfo/comport" appearance="minimal" style="left:25px; top:25px; width:110px; height:19px; ">
- <choices>
- <item>
- <label>COM1</label>
- <value>1</value>
- </item>
- <item>
- <label>COM2</label>
- <value>2</value>
- </item>
- <item>
- <label>COM3</label>
- <value>3</value>
- </item>
- <item>
- <label>COM4</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- <input id="input1" ref="/root/hidden/barprntinfo/setting" style="left:140px; top:25px; width:75px; height:19px; "/>
- <line id="line7" class="line_1" style="x1:0px; y1:20px; x2:1194px; y2:20px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:1194px; y2:75px; "/>
- <button id="button1" class="btn4_letter8" style="left:20px; top:110px; width:128px; height:22px; ">
- <caption>바코드출력(COM)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var sSndMsg = "";
- var sBcNo = "200611140";
- // Comm 설정
- CommAX.CommPort = model.getValue("/root/hidden/barprntinfo/comport"); // 출력 Port
- CommAX.Settings = model.getValue("/root/hidden/barprntinfo/setting"); // Comm 설정
- //시작(X, Y)
- sSndMsg += lzzfBP_StartFormat(0, 20);
-
- //바코드
- sSndMsg += lzzfBP_ChangeFont("F", 10, 10);
- sSndMsg += lzzfBP_BarCode_Code39(10, 50, "N", 50, sBcNo);
- //실제바코드내용
- sSndMsg += lzzfBP_ChangeFont("C", 10, 10);
- sSndMsg += lzzfBP_FieldDataA(100, 25, "*" + sBcNo + "*");
- //실제바코드내용(반전)
- sSndMsg += lzzfBP_GraphicBox(95, 155, 150, 20, 10);
- sSndMsg += lzzfBP_ChangeFont("C", 10, 10);
- sSndMsg += lzzfBP_FieldDataA(100, 160, "*" + sBcNo + "*", "Y");
-
- //환자명
- sSndMsg += lzzfBP_ChangeFont("A", 10, 10);
- sSndMsg += CommAX.PrtImgOut("GRAPH003", "테스트1");
- sSndMsg += lzzfBP_FiendOrigin(0, 160)
- sSndMsg += "^XGGRAPH003,1,1^FS";
- //sSngMsg += lzzfBP_FieldDataH(0, 160, "GRAPH003", "테스트1");
- //실제바코드내용(반전)
- //sSndMsg += lzzfBP_GraphicBox(0, 195, 100, 30, 10);
- //sSndMsg += lzzfBP_ChangeFont("A", 10, 10);
- //sSngMsg += lzzfBP_FieldDataH(0, 200, "GRAPH003", "테스트1", "Y");
-
- //종료(매수)
- sSndMsg += lzzfBP_EndFormat();
- // 전송
- CommAX.SendMessage(sSndMsg);
-
- model.setValue("/root/hidden/Message", CommAX.Message);
- model.refresh();
-
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- ]]>
- </script>
- </button>
- <line id="line15" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- <group id="group5" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">바코드출력 테스트</caption>
- </group>
- <button id="button3" class="btn4_letter8" style="left:20px; top:185px; width:128px; height:22px; ">
- <caption>바코드출력(LPT)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sSndMsg = "";
- var sBcNo = "200611140";
- //시작(X, Y)
- sSndMsg += lzzfBP_StartFormat(0, 20);
-
- //바코드
- sSndMsg += lzzfBP_ChangeFont("F", 10, 10);
- sSndMsg += lzzfBP_BarCode_Code39(10, 50, "N", 50, sBcNo);
- //실제바코드내용
- sSndMsg += lzzfBP_ChangeFont("C", 10, 10);
- sSndMsg += lzzfBP_FieldDataA(100, 25, "*" + sBcNo + "*");
- //실제바코드내용(반전)
- sSndMsg += lzzfBP_GraphicBox(95, 155, 150, 20, 10);
- sSndMsg += lzzfBP_ChangeFont("C", 10, 10);
- sSndMsg += lzzfBP_FieldDataA(100, 160, "*" + sBcNo + "*", "Y");
-
- //환자명
- sSndMsg += lzzfBP_ChangeFont("A", 10, 10);
- sSndMsg += CommAX.PrtImgOut("GRAPH003", "테스트1");
- sSndMsg += lzzfBP_FiendOrigin(0, 160)
- sSndMsg += "^XGGRAPH003,1,1^FS";
- //sSngMsg += lzzfBP_FieldDataH(0, 160, "GRAPH003", "테스트1");
- //실제바코드내용(반전)
- //sSndMsg += lzzfBP_GraphicBox(0, 195, 100, 30, 10);
- //sSndMsg += lzzfBP_ChangeFont("A", 10, 10);
- //sSngMsg += lzzfBP_FieldDataH(0, 200, "GRAPH003", "테스트1", "Y");
-
- //종료(매수)
- sSndMsg += lzzfBP_EndFormat();
- //전송
- CommAX.SendMessageToLPT(sSndMsg);
- model.setValue("/root/hidden/Message", CommAX.Message);
- model.refresh();
-
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|