123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865 |
- <?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>4</comport>지과장님자리-->
- <comport/>
- <!--정은자리-->
- <setting>9600,n,8,1</setting>
- <ip/>
- </barprntinfo>
- <b472>
- <sendmsg/>
- <btest>
- <start>{C|}{D0950,0900,0900|}{AX;-000,-000,+00|}</start>
- <engA>
- <x>0</x>
- <y>0</y>
- <text/>
- <result/>
- <w>20</w>
- <h>20</h>
- </engA>
- <engG>
- <x>0</x>
- <y>0</y>
- <text/>
- <result/>
- </engG>
- <han>
- <x>0</x>
- <y>0</y>
- <text/>
- <result/>
- </han>
- <end>{XS;I,1,0002C5101|}</end>
- </btest>
- <xxxx>
- <!--
- <barcodeinfo>
- <blodno>8110000001</blodno>
- <tnsrpid>11409703</tnsrpid>
- <tnsrnm>표호영</tnsrnm>
- <tnssexage>M / 62</tnssexage>
- <tnsrbtype>AB+</tnsrbtype>
- <dnornm>표호영</dnornm>
- <dnsexage>M / 62</dnsexage>
- <dnbtype>AB+</dnbtype>
- <panjung/>
- <bcolldt>20100302170159</bcolldt>
- <prtdd>20100210</prtdd>
- <prttm>170220</prttm>
- <abocd>8400</abocd>
- <blodbarcd>A0001</blodbarcd>
- <blodbarnm>Autologous Blood Transfusion</blodbarnm>
- <validt>20100405170159</validt>
- <blodvol>123</blodvol>
- <bcolldd>20100317</bcolldd>
- <title>자가 1차</title>
- <wardroom> </wardroom>
- <bcollnm>LIS사용자</bcollnm>
- </barcodeinfo>
- -->
- </xxxx>
- </b472>
- </hidden>
- </root>
- </instance>
- </model>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
- <!-- <script type="javascript" src="../../../lis/commonweb/js/LZZ002.js"/>-->
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/HanFont24.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/HanFont32.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/HanFont48.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 바코드OCX 생성
- lzzfMakeBrcdPrntObjHanDo("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; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">전송결과</caption>
- <output id="output1" ref="/root/hidden/Message" style="left:20px; top:81px; width:335px; height:19px; "/>
- <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; ">
- <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>
- <item>
- <label>COM7</label>
- <value>7</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" 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; ">
- <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>
- <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; ">
- <caption>바코드출력2(COM)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var iXPos = 20;
- var iYPos = 20;
- var sSndMsg = "";
- var sBcNo = "200611140";
- var bcno = "I23VT0061";
- var pid = '21313514';
- var sexage = 'F/38';
- var deptcd = 'MG/16-112';
- var spcnm = 'Serum';
- var tube = 'SST 8ml';
- var sectcd = 'A1';
- var sectnm = '자동화';
- var patnm = '지명희';
-
-
- // Comm 설정
- CommAX.CommPort = model.getValue("/root/hidden/barprntinfo/comport"); // 출력 Port
- CommAX.Settings = model.getValue("/root/hidden/barprntinfo/setting"); // Comm 설정
-
- portOpenTF = CommAX.PortOpen("true");
-
-
-
- // 라벨사이즈
- //sSndMsg += lzzfBP_B47_LabelSize("0350", "0550", "0330");
- sSndMsg += "{D0350,0550,0330|}";
- //sSndMsg += "{T20C30|}"
-
- // 온도
- //sSndMsg += "{AY;+4,0|}"
-
- // 버퍼클리어
- sSndMsg += "{C|}";
-
- // 피트량
- sSndMsg += "{AX;+000,+000,+00|}";
-
- /*
- 100, 40, Data, 30, 30
-
- 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|}"
- Form1.MSComm1.object.Output = "{RV" & Right("00" + Trim(Str(cCount)), 2) & ";" & PrnStr & "|}"
- */
- //iXPos = iXPos + 120;
- //alert("iXPos " + iXPos + " pad= "+ getLeftPad(4, iXPos));
- //var pad = xpos.toString().getLeftPad(4, "0");
- // *바코드번호*
- sSndMsg += "{PV" + "01" + ";" + "0120" + "," + "0020" + "," + "0020" + "," + "0020" + ",B,+000,00,B|}" ;
- sSndMsg += "{RV" + "01" + ";*"+ bcno +"*|}";
-
- // 채혈일시
- sSndMsg += "{PV" + "02" + ";" + "0310" + "," + "0020" + "," + "0020" + "," + "0020" + ",B,+000,00,B|}" ;
- sSndMsg += "{RV" + "02" + ";"+ "01/06 15:55" +"|}";
-
- // code39 바코드
- //sSndMsg += "{XB01;0030,0040,3,1,02,02,06,06,02,0,0100,+0000000001,1,00|}"
- sSndMsg += "{XB01;0030,0030,3,1,02,02,04,04,02,0,0120,+0000000001,0,00|}"
- sSndMsg += "{RB01;"+bcno+"|}"
-
- // 환자번호
- sSndMsg += "{PV" + "03" + ";" + "0140" + "," + "0175" + "," + "0020" + "," + "0020" + ",B,+000,00,B|}" ;
- sSndMsg += "{RV" + "03" + ";"+ pid +"|}";
-
- // sexage
- sSndMsg += "{PV" + "04" + ";" + "0340" + "," + "0175" + "," + "0020" + "," + "0020" + ",B,+000,00,B|}" ;
- sSndMsg += "{RV" + "04" + ";"+ sexage +"|}";
-
- // 진료과 병동병실
- sSndMsg += "{PV" + "05" + ";" + "0000" + "," + "0210" + "," + "0020" + "," + "0020" + ",B,+000,00,B|}" ;
- sSndMsg += "{RV" + "05" + ";"+ deptcd +"|}";
-
- //검체명
- sSndMsg += "{PV" + "06" + ";" + "0180" + "," + "0210" + "," + "0020" + "," + "0020" + ",B,+000,00,B|}" ;
- sSndMsg += "{RV" + "06" + ";"+ spcnm +"|}";
-
- //용기명
- sSndMsg += "{PV" + "07" + ";" + "0320" + "," + "0210" + "," + "0020" + "," + "0020" + ",B,+000,00,B|}" ;
- sSndMsg += "{RV" + "07" + ";"+ tube +"|}";
-
- //시행부서 영문
- sSndMsg += "{PV" + "08" + ";" + "0000" + "," + "0240" + "," + "0020" + "," + "0020" + ",B,+000,00,B|}" ;
- sSndMsg += "{RV" + "08" + ";"+ sectcd +"|}";
-
-
- // 시행부서 한글 찍어야됨
- sSndMsg += "{PV" + "09" + ";" + "0000" + "," + "0020" + "," + "0020" + "," + "0020" + ",B,+000,00,W|}" ;
- sSndMsg += "{RV" + "09" + ";"+ "start" +"|}";
-
- // 환자명 한글 찍어야됨
- sSndMsg += "{PV" + "09" + ";" + "0000" + "," + "0175" + "," + "0020" + "," + "0020" + ",B,+000,00,W|}" ;
- sSndMsg += "{RV" + "09" + ";"+ "patnm" +"|}";
-
- // 한글 테스트
- sSndMsg += "{PC001;0000,0280,1,1,B,00,B,+0000000001|}"
- sSndMsg += "{RC001;"+ patnm +"|}"
-
- sSndMsg += "{LC;0000,0299,0430,0300,1,9|}";
- //sSndMsg += "{LF;|}";
- // 한글테스트 2
- //sSndMsg += "{SG001;0000,0280,1,1,B,00,B,+0000000001|}"
-
-
-
- //sSndMsg += "{PV" + "01" + ";" + "0100" + "," + "0040" + "," + "0020" + "," + "0020" + ",A,+000,00,B|}" ;
- //sSndMsg += "{RV" + "01" + ";BC001|}";
-
- //sSndMsg += "{PV" + "02" + ";" + "0100" + "," + "0090" + "," + "0020" + "," + "0020" + ",A,+000,00,W|}" ;
- //sSndMsg += "{RV" + "02" + ";BC002|}";
-
- //sSndMsg += "{PC001;0010,0010,1,1,A,00,B,+0000000001|}"
- //sSndMsg += "{XB01;0010,0120,3,1,02,02,04,04,02,0,0100,+0000000001,1,00|}"
- //sSndMsg += sPV;
-
- //sSndMsg += "{RC001;A0001|}"
-
-
- sSndMsg += "{XS;I,0001,0002C5101|}";
-
-
- //alert(sSndMsg);
- // 전송
- CommAX.SendMessage(sSndMsg);
-
- // Close COM Port
- CommAX.PortOpen("false");
-
- ]]>
- </script>
- </button>
- <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; ">
- <caption>바코드출력3(COM)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var iXPos = 20;
- var iYPos = 20;
- var sSndMsg = "";
- var sBcNo = "200611140";
- var bcno = "I23VT0061";
- var pid = '21313514';
- var sexage = 'F/38';
- var deptcd = 'MG/16-112';
- var spcnm = 'Serum';
- var tube = 'SST 8ml';
- var sectcd = 'A1';
- var sectnm = '자동화';
- var patnm = '지명희';
-
-
- // Comm 설정
- CommAX.CommPort = model.getValue("/root/hidden/barprntinfo/comport"); // 출력 Port
- CommAX.Settings = model.getValue("/root/hidden/barprntinfo/setting"); // Comm 설정
-
- portOpenTF = CommAX.PortOpen("true");
-
-
-
- // 라벨사이즈
- //sSndMsg += lzzfBP_B47_LabelSize("0350", "0550", "0330");
- sSndMsg += "{D0350,0550,0330|}";
- //sSndMsg += "{T20C30|}"
-
- // 온도
- //sSndMsg += "{AY;+4,0|}"
-
- // 버퍼클리어
- sSndMsg += "{C|}";
-
- // 피트량
- sSndMsg += "{AX;+000,+000,+00|}";
-
- //sSndMsg += lzzfBP_HanDisp24("가황1AaQ0&최", 10, 20);
- //sSndMsg += "{RB01;"+bcno+"|}"
- //sSndMsg += "{XB01;"+ "0020" + "," + "0020" +",3,1,02,02,"+"05"+","+"04"+",02,0,"+ "0120" +",+0000000000,0,00|}{RB01;" + "*111111111*" +"|}";
- sSndMsg += "{XB01;0110,0050,3,1,02,02,04,04,02,0,0120,+0000000000,0,00|}"
- sSndMsg += "{RB01;"+"*XXXXXX*"+"|}"
-
- sSndMsg += "{PC" + "001" + ";" + "0150" + "," + "0200" + ",1,1,G,-02,00,"+ "B" +"|}{RC" + "01" + ";"+ "* XXXXXX *" +"|}" ;
-
- sSndMsg += "{XS;I,0001,0002C5101|}";
-
-
- //alert(sSndMsg);
- // 전송
- CommAX.SendMessage(sSndMsg);
-
- // Close COM Port
- CommAX.PortOpen("false");
-
- ]]>
- </script>
- </button>
- <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; ">
- <caption>바코드출력4(COM)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 병리 바코드
- //var iXPos = 20;
- //var iYPos = 20;
- var sSndMsg = "";
- var sBcNo = "200611140";
- var bcno = "I23VT0061";
- var pid = '21313514';
- var sexage = 'F/38';
- var deptcd = 'MG/16-112';
- var spcnm = 'Serum';
- var tube = 'SST 8ml';
- var sectcd = 'A1';
- var sectnm = '자동화';
- var patnm = '지명희';
-
- var iLeft = 0;
- var iTop = 0;
- var iXPos = 0;
- var iYPos = 0;
- var iWidth = 0;
-
- var sBarCdNoH = "20XT40002";
- var iPrntCnt = "1";
- // Comm 설정
- CommAX.CommPort = model.getValue("/root/hidden/barprntinfo/comport"); // 출력 Port
- CommAX.Settings = model.getValue("/root/hidden/barprntinfo/setting"); // Comm 설정
-
- portOpenTF = CommAX.PortOpen("true");
-
-
-
- // 라벨사이즈
- //sSndMsg += lzzfBP_B47_LabelSize("0350", "0550", "0330");
- sSndMsg += "{D0350,0550,0330|}";
- //sSndMsg += "{T20C30|}"
-
- // 온도
- //sSndMsg += "{AY;+4,0|}"
-
- // 버퍼클리어
- sSndMsg += "{C|}";
-
- // 피트량
- sSndMsg += "{AX;+000,+000,+00|}";
-
-
- // 내용
-
- sSndMsg += "{PC" + "01" + ";" + "0120" + "," + "0020" + "," + "0020" + "," + "0020" + ",B,+000,00,B|}" ;
- sSndMsg += "{RC" + "01" + ";*"+ bcno +"*|}";
-
- /*
- iXPos = Number(iLeft)+20 ;
- iYPos = Number(iTop)+20;
- sSndMsg += lzzfBP_HanDisp24(sectnm, iXPos, iYPos);
-
- iXPos = Number(iLeft)+20 ;
- iYPos = Number(iTop) + 100;
- sSndMsg += lzzfBP_HanDisp32(sectnm, iXPos, iYPos);
-
- iXPos = Number(iLeft)+20 ;
- iYPos = Number(iTop) + 200;
- sSndMsg += lzzfBP_HanDisp48(sectnm, iXPos, iYPos);
- */
- /*
- iXPos = Number(iLeft) + 20;
- iYPos = Number(iTop) + 5;
- var newbcno = sBarCdNoH + (iPrntCnt).toString().getLeftPad(2, "0");
- sSndMsg += lzzfBP_BarCode_Code39_B472(iXPos, iYPos, 4, 4, newbcno); // 바코드
-
- iXPos = Number(iLeft) + 140;
- iYPos = Number(iTop) + 150;
- sSndMsg += lzzfBP_FieldDataA_B472(iXPos, iYPos, 20, 20, newbcno); //바코드번호
-
- iXPos = Number(iLeft);
- iYPos = Number(iTop) + 175;
- sSndMsg += lzzfBP_FieldDataA_B472(iXPos, iYPos, 20, 20, "PATHOLOGY");
-
- iXPos = Number(iLeft) + 170;
- iYPos = Number(iTop) + 175;
- sTempStr = deptcd;
- sSndMsg += lzzfBP_FieldDataA_B472(iXPos, iYPos, 20, 20, deptcd);
- //sSndMsg += lzzfBP_HanDisp24(sTempStr, iXPos, iYPos);
-
- iXPos = Number(iLeft) + 330;
- iYPos = Number(iTop) + 175;
- sSndMsg += lzzfBP_FieldDataA_B472(iXPos, iYPos, 20, 20, "2010-01-07");
-
- iXPos = Number(iLeft) + 300;
- iYPos = Number(iTop) + 175;
- sSndMsg += lzzfBP_FieldDataA_B472(iXPos, iYPos, 20, 20, "");
-
- iXPos = Number(iLeft);
- iYPos = Number(iTop) + 210;
- sSndMsg += lzzfBP_FieldDataA_B472(iXPos, iYPos, 20, 20, pid);
-
- iXPos = Number(iLeft) + 150;
- iYPos = Number(iTop) + 190;
- sSndMsg += lzzfBP_HanDisp24(patnm, iXPos, iYPos);
-
- iXPos = Number(iLeft) + 310;
- iYPos = Number(iTop) + 210;
- sSndMsg += lzzfBP_FieldDataA_B472(iXPos, iYPos, 20, 20, "F" + "/" + "33");
-
-
- iXPos = Number(iLeft) + 400;
- iYPos = Number(iTop) + 210;
- //수술실이 있을 경우 진료과 옆에 수술방 이름을 표시하여 준다.
-
- sSndMsg += lzzfBP_FieldDataA_B472(iXPos, iYPos, 20, 20, "GS");
-
- iXPos = Number(iLeft);
- iYPos = Number(iTop) + 220;
- sTempStr = "1/1 Other";
- sSndMsg += lzzfBP_HanDisp24(sTempStr, iXPos, iYPos);
- */
-
-
-
-
- sSndMsg += "{XS;I,0001,0002C5101|}";
-
-
- alert(sSndMsg);
- // 전송
- CommAX.SendMessage(sSndMsg);
-
- // Close COM Port
- CommAX.PortOpen("false");
-
- ]]>
- </script>
- </button>
- <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; ">
- <caption>zebra 혈액 XX바코드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- CommAX.PortOpen("true");
-
- var sSndMsg = "";
- var sBcNo = "XXXXXX";
- // 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 += CommAX.PrtImgOut(60, 80, "혈액은행 enter 바코드", 1, 1);
- //sSndMsg += CommAX.HanImageData();
-
-
- //바코드
- sSndMsg += lzzfBP_ChangeFont("F", 10, 10);
- sSndMsg += lzzfBP_BarCode_Code39(60, 50, "N", 80, sBcNo);
- //실제바코드내용
- sSndMsg += lzzfBP_ChangeFont("C", 10, 10);
- sSndMsg += lzzfBP_FieldDataA(110, 140, "* " + 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();
-
- CommAX.PortOpen("false");
-
- ]]>
- </script>
- </button>
- <textarea id="textarea1" ref="/root/hidden/b472/sendmsg" style="left:105px; top:505px; width:465px; height:165px; "/>
- <button id="button9" class="btn4_letter6" style="left:105px; top:675px; width:104px; height:22px; ">
- <caption>B 472 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- CommAX.CommPort = model.getValue("/root/hidden/barprntinfo/comport"); // 출력 Port
- CommAX.Settings = model.getValue("/root/hidden/barprntinfo/setting"); // Comm 설정
-
- portOpenTF = CommAX.PortOpen("true");
-
- var sSndMsg = model.getValue("/root/hidden/b472/sendmsg");
-
- // 전송
- CommAX.SendMessage(sSndMsg);
-
- // Close COM Port
- CommAX.PortOpen("false");
- ]]>
- </script>
- </button>
- <caption id="caption3" style="left:105px; top:350px; width:200px; height:30px; font-size:14pt; font-weight:bold; color:#ff0000; ">B-472 테스트용</caption>
- <input id="input2" ref="/root/hidden/b472/btest/engA/text" style="left:230px; top:415px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- // 영문A
- var sBuf = "";
- var sReverse="";
-
- var ppX = model.getValue("/root/hidden/b472/btest/engA/x").toString().getLeftPad(4, "0");
- var ppY = model.getValue("/root/hidden/b472/btest/engA/y").toString().getLeftPad(4, "0");
- var ppWs = model.getValue("/root/hidden/b472/btest/engA/w").toString().getLeftPad(4, "0");
- var ppHs = model.getValue("/root/hidden/b472/btest/engA/h").toString().getLeftPad(4, "0");
- var sText = model.getValue("/root/hidden/b472/btest/engA/text");
-
- sBuf = "{PV" + "01" + ";" + ppX + "," + ppY + "," + ppWs + "," + ppHs + ",B,+000,00,"+ "B" +"|}{RV" + "01" + ";"+ sText +"|}" ;
-
- model.setValue("/root/hidden/b472/btest/engA/result", sBuf);
- input4.refresh();
- ]]>
- </script>
- </input>
- <input id="input3" ref="/root/hidden/b472/btest/han/text" style="left:230px; top:460px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
-
- var retVal = "";
- var iLen = model.getValue("/root/hidden/b472/btest/han/text").length;
- var iXPos = model.getValue("/root/hidden/b472/btest/han/x");
- var iYPos = model.getValue("/root/hidden/b472/btest/han/y");
- var iYPos2 = model.getValue("/root/hidden/b472/btest/han/y") + 30;
- var iTCnt = 40;
- var text = "";
-
- for (var i=0; i < iLen; i++) {
- var sChar = model.getValue("/root/hidden/b472/btest/han/text").substring(i, i + 1);
- var sStrBuff = ""
-
- //alert( i.toString() + " : " + sStr.substring(i, i + 1) + " : " + sChar.charCodeAt());
-
- if (sChar.charCodeAt() < 0 || sChar.charCodeAt() >= 127) {
- // 한글
- sStrBuff = "{SG;";
- sStrBuff += iXPos.toString().getLeftPad(4, "0");
- sStrBuff += "," + iYPos.toString().getLeftPad(4, "0") + ",0032,0032,0,";
- sStrBuff += lzzfBP_GetHanFont32( sChar );
- sStrBuff += "|}";
-
- iXPos += 40
-
- } else {
- // 영문, 숫자
- ++iTCnt;
-
- sStrBuff = "{PV";
- sStrBuff += iTCnt.toString().getLeftPad(2, "0") + ";";
- sStrBuff += iXPos.toString().getLeftPad(4, "0");
- sStrBuff += "," + iYPos2.toString().getLeftPad(4, "0") + ",0026,0026,B,+000,00,B=";
- sStrBuff += sChar;
- sStrBuff += "|}";
-
- iXPos += 36
- }
-
- retVal += sStrBuff;
- //model.setValue( "/root/output", model.getValue("/root/output") + sStrBuff);
- }
-
- //return retVal;
- model.setValue("/root/hidden/b472/btest/han/result", retVal);
- input5.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption4" style="left:105px; top:415px; width:40px; height:20px; ">영문A</caption>
- <caption id="caption5" style="left:105px; top:460px; width:40px; height:20px; ">한글32</caption>
- <input id="input4" ref="/root/hidden/b472/btest/engA/result" style="left:340px; top:415px; width:405px; height:19px; "/>
- <input id="input5" ref="/root/hidden/b472/btest/han/result" style="left:340px; top:460px; width:405px; height:19px; "/>
- <caption id="caption7" style="left:105px; top:438px; width:40px; height:20px; ">영문G</caption>
- <input id="input6" ref="/root/hidden/b472/btest/engG/text" style="left:230px; top:438px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- var sBuf = "";
- //var sReverse="";
-
- var ppX = model.getValue("/root/hidden/b472/btest/engG/x").toString().getLeftPad(4, "0");
- var ppY = model.getValue("/root/hidden/b472/btest/engG/y").toString().getLeftPad(4, "0");
- var text = model.getValue("/root/hidden/b472/btest/engG/text");
- sBuf = "{PC" + "001" + ";" + ppX + "," + ppY + ",1,1,G,-02,00,"+ "B" +"|}{RC" + "01" + ";"+ text +"|}" ;
-
- model.setValue("/root/hidden/b472/btest/engG/result", sBuf);
- input7.refresh();
- ]]>
- </script>
- </input>
- <input id="input7" ref="/root/hidden/b472/btest/engG/result" style="left:340px; top:438px; width:405px; height:19px; "/>
- <caption id="caption8" style="left:105px; top:392px; width:40px; height:20px; ">시작</caption>
- <input id="input9" ref="/root/hidden/b472/btest/start" style="left:340px; top:392px; width:405px; height:19px; "/>
- <input id="input8" ref="/root/hidden/b472/btest/end" style="left:340px; top:482px; width:405px; height:19px; "/>
- <caption id="caption9" style="left:105px; top:482px; width:40px; height:20px; ">끝</caption>
- <input id="input10" ref="/root/hidden/b472/btest/engA/x" style="left:150px; top:414px; width:35px; height:19px; "/>
- <input id="input11" ref="/root/hidden/b472/btest/engA/y" style="left:190px; top:414px; width:35px; height:19px; "/>
- <caption id="caption10" style="left:150px; top:395px; width:137px; height:20px; ">X Y text</caption>
- <input id="input12" ref="/root/hidden/b472/btest/engG/x" style="left:150px; top:437px; width:35px; height:19px; "/>
- <input id="input13" ref="/root/hidden/b472/btest/engG/y" style="left:190px; top:437px; width:35px; height:19px; "/>
- <input id="input14" ref="/root/hidden/b472/btest/han/x" style="left:150px; top:460px; width:35px; height:19px; "/>
- <input id="input15" ref="/root/hidden/b472/btest/han/y" style="left:190px; top:460px; width:35px; height:19px; "/>
- <input id="input16" ref="/root/hidden/b472/btest/engA/w" style="left:750px; top:415px; width:50px; height:19px; "/>
- <input id="input17" ref="/root/hidden/b472/btest/engA/h" style="left:805px; top:415px; width:50px; height:19px; "/>
- <textarea id="textarea2" ref="/root/hidden/b472/xxxx" style="left:645px; top:510px; width:535px; height:220px; "/>
- <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; ">
- <caption>zebra 300 XX바코드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- CommAX.PortOpen("true");
-
- var sSndMsg = "";
- var sBcNo = "XXXXXX";
- // 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 += CommAX.PrtImgOut(60, 80, "혈액은행 enter 바코드", 1, 1);
- //sSndMsg += CommAX.HanImageData();
-
-
- //바코드
- sSndMsg += lzzfBP_ChangeFont("F", 10, 10);
- //sSndMsg += lzzfBP_BarCode_Code39(60, 50, "N", 80, sBcNo);
- sSndMsg += lzzfBP_BarCode_Code39_300dpi(140, 50, "N", 120, "*" + sBcNo + "*"); // 바코드
-
- //실제바코드내용
- sSndMsg += lzzfBP_ChangeFont("C", 20, 20);
- sSndMsg += lzzfBP_FieldDataA(210, 190, "* " + 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();
-
- CommAX.PortOpen("false");
-
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <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; ">
- <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; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">바코드출력 테스트</caption>
- </group>
- <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; ">
- <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>
|