123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <?xml-stylesheet href="C:/CMCProject/application/webapps/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>Bar Code TEST</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <grid>
- <rfcmetpllist/>
- </grid>
- <list>
- <fixaset>
- <fixasetlist>
- <instcd>012</instcd>
- <fixasetcd>
- <![CDATA[E01010034]]>
- </fixasetcd>
- <goodflaghngnm>
- <![CDATA[심전도계]]>
- </goodflaghngnm>
- <goodflagengnm>
- <![CDATA[ELECTROCARDIOGRAPH_ELECTROCARDIOGRAPH]]>
- </goodflagengnm>
- <maineqmt/>
- <goodmodel>
- <![CDATA[Pagewriter Touch]]>
- </goodmodel>
- <goodspec>
- <![CDATA[서울성모건 선납]]>
- </goodspec>
- <installplcecd>
- <![CDATA[2280200000]]>
- </installplcecd>
- <installplcenm>
- <![CDATA[응급의료센터]]>
- </installplcenm>
- <suplplcecd>
- <![CDATA[2118688589]]>
- </suplplcecd>
- <suplplcenm>
- <![CDATA[지피앤피(주)]]>
- </suplplcenm>
- <prodplce>
- <![CDATA[02]]>
- </prodplce>
- <prodcmpy>
- <![CDATA[02964]]>
- </prodcmpy>
- <prodcmpynm>
- <![CDATA[Philips]]>
- </prodcmpynm>
- <possndd>
- <![CDATA[20081024]]>
- </possndd>
- <possnamt>
- <![CDATA[9000000]]>
- </possnamt>
- <mngtdeptcd>
- <![CDATA[2280200000]]>
- </mngtdeptcd>
- <mngtdeptnm>
- <![CDATA[응급의료센터]]>
- </mngtdeptnm>
- <photoyn>
- <![CDATA[N]]>
- </photoyn>
- <suppcustcd/>
- <suppcustnm/>
- <cntrdeptcd>
- <![CDATA[2280000000]]>
- </cntrdeptcd>
- <cntrdeptnm>
- <![CDATA[응급의학과]]>
- </cntrdeptnm>
- <forgncurncyamt>
- <![CDATA[0]]>
- </forgncurncyamt>
- <curncyunit/>
- <barcdprntyn>
- <![CDATA[√]]>
- </barcdprntyn>
- <choice/>
- <chkcnt>
- <![CDATA[√]]>
- </chkcnt>
- <mngtno>
- <![CDATA[US90812882]]>
- </mngtno>
- <oldcd/>
- <acqtflag>
- <![CDATA[2]]>
- </acqtflag>
- <possnflagcd>
- <![CDATA[H]]>
- </possnflagcd>
- <goodflag>
- <![CDATA[E]]>
- </goodflag>
- <tempmngtdeptcd>
- <![CDATA[2280200000]]>
- </tempmngtdeptcd>
- <tempmngtdeptnm>
- <![CDATA[응급의료센터]]>
- </tempmngtdeptnm>
- <incmreptno/>
- <incmpemtno>
- <![CDATA[수허04-214호]]>
- </incmpemtno>
- <mtlmngtno>
- <![CDATA[A26010(2)]]>
- </mtlmngtno>
- <cmt/>
- <cntctel/>
- <dsplflag>
- <![CDATA[0]]>
- </dsplflag>
- <fixasetunit>
- <![CDATA[EA]]>
- </fixasetunit>
- <lrgcd>
- <![CDATA[01]]>
- </lrgcd>
- <mdlcd>
- <![CDATA[01]]>
- </mdlcd>
- <smlcd/>
- <flwgrnttermfr>
- <![CDATA[20081024]]>
- </flwgrnttermfr>
- <flwgrnttermto>
- <![CDATA[20111023]]>
- </flwgrnttermto>
- <acntcd>
- <![CDATA[12205001]]>
- </acntcd>
- <acntnm>
- <![CDATA[의료장비]]>
- </acntnm>
- <cmt/>
- <cntrdeptcd>
- <![CDATA[2280000000]]>
- </cntrdeptcd>
- <windd>
- <![CDATA[20081024]]>
- </windd>
- </fixasetlist>
- <fixasetlist>
- <instcd>012</instcd>
- <fixasetcd>
- <![CDATA[G00010400063]]>
- </fixasetcd>
- <goodflaghngnm>
- <![CDATA[컴퓨터 본체 / Pentium E6550]]>
- </goodflaghngnm>
- <goodflagengnm/>
- <maineqmt/>
- <goodmodel>
- <![CDATA[DC7800P CMT(OCS)]]>
- </goodmodel>
- <goodspec>
- <![CDATA[R2GB/H160G/DVD/on Board]]>
- </goodspec>
- <installplcecd>
- <![CDATA[3240400000]]>
- </installplcecd>
- <installplcenm>
- <![CDATA[외래약국]]>
- </installplcenm>
- <suplplcecd>
- <![CDATA[2148804923]]>
- </suplplcecd>
- <suplplcenm>
- <![CDATA[평화이즈(주)]]>
- </suplplcenm>
- <prodplce/>
- <prodcmpy>
- <![CDATA[02197]]>
- </prodcmpy>
- <prodcmpynm>
- <![CDATA[Hewlett Packard]]>
- </prodcmpynm>
- <possndd>
- <![CDATA[20081031]]>
- </possndd>
- <possnamt>
- <![CDATA[690000]]>
- </possnamt>
- <mngtdeptcd>
- <![CDATA[3242100000]]>
- </mngtdeptcd>
- <mngtdeptnm/>
- <photoyn>
- <![CDATA[N]]>
- </photoyn>
- <suppcustcd/>
- <suppcustnm/>
- <cntrdeptcd>
- <![CDATA[3242100000]]>
- </cntrdeptcd>
- <cntrdeptnm/>
- <forgncurncyamt>
- <![CDATA[0]]>
- </forgncurncyamt>
- <curncyunit/>
- <barcdprntyn>
- <![CDATA[√]]>
- </barcdprntyn>
- <choice/>
- <chkcnt/>
- <mngtno/>
- <oldcd/>
- <acqtflag/>
- <possnflagcd/>
- <goodflag>
- <![CDATA[G]]>
- </goodflag>
- <tempmngtdeptcd/>
- <tempmngtdeptnm/>
- <incmreptno/>
- <incmpemtno/>
- <mtlmngtno/>
- <cmt/>
- <cntctel/>
- <dsplflag>
- <![CDATA[0]]>
- </dsplflag>
- <fixasetunit>
- <![CDATA[EA]]>
- </fixasetunit>
- <lrgcd>
- <![CDATA[00]]>
- </lrgcd>
- <mdlcd>
- <![CDATA[01]]>
- </mdlcd>
- <smlcd>
- <![CDATA[04]]>
- </smlcd>
- <flwgrnttermfr/>
- <flwgrnttermto/>
- <acntcd/>
- <acntnm/>
- <cmt/>
- <cntrdeptcd>
- <![CDATA[3242100000]]>
- </cntrdeptcd>
- <windd>
- <![CDATA[20081120]]>
- </windd>
- </fixasetlist>
- </fixaset>
- </list>
- <barcdprntsetup>
- <prntsetupinfo>
- <setupinfo>
- <prntkind>7</prntkind>
- <commkind>01</commkind>
- <comm01>
- <setupval>SATO CL408e</setupval>
- </comm01>
- <comm02>
- <comm>1</comm>
- <databit>8</databit>
- <stopbit>1</stopbit>
- <baudrate>9600</baudrate>
- <parity>n</parity>
- <setupval/>
- </comm02>
- <comm03>
- <setupval/>
- </comm03>
- <blank>
- <left>0</left>
- <top>0</top>
- </blank>
- </setupinfo>
- </prntsetupinfo>
- </barcdprntsetup>
- </main>
- <send>
- <barcodetarget/>
- </send>
- <init>
- </init>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../mis/purcbaseweb/js/SMRFC00700.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <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/LPZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //바코드 object 선언
- // lzzfMakeBrcdPrntObjHanDo("CommAX");
- ]]>
- </script>
- <submission id="TRRFC00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fixasetlist" resultref="/root/main/list/fixaset"/>
- <submission id="TXRFC00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/barcodetarget" resultref="/root/copytemp"/>
- </model>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- misfGridInit(grd_rfcmetpllist);
-
- misfComboComCdList("Z0007", cmb_instcd); //기관코드
- misfMsterDetailSet(grd_rfcmetpllist, null, "TRRFC00101","Y"); //마스터 설정
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
-
- //화면 권한 설정
- btn_save.disabled = !(checkAuth("X"));
- btn_prt.disabled= !(checkAuth("P"));
- btn_search.dispatch("DOMActivate");
- }
-
- function fsearch(){
-
- var updtdata = getGridUpdateData(grd_rfcmetpllist);
-
- if ( updtdata != "") {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
-
- isRequiredControls("cmb_instcd");
-
- misfMsterDetailRetrieve();
-
- // misfSetReadOnlyCol(grd_rfcmetpllist, "instcd,deptcd,deptnm", true);
- }
-
- //프린터 설정
- function fSetPrint() {
- var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
-
- if(count == 0) {
- model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
- open("SPLLC90100_바코드프린터설정.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
-
- function fBarcodePrt( ) {
- // misfMakeBrcdPrntObjHanDo("CommAX");
- var ref = "/root/main/list/stokasetcnfminfo/stokasetcnfmlist/"
- var barcdRef = "/root/main/barcdprntsetup/prntsetupinfo/setupinfo";
- var sPrntKind = model.getValue(barcdRef + "[1]/prntkind");
- var portOpenCheck = "";
- var LCount = 0;
- var iXPos = 0;
- var iYPos = 0;
- var sSndMsg = "";
-
- if (sPrntKind == 0) return;
- var sCommKind = model.getValue(barcdRef + "[1]/commkind");
- var sLeftBank = model.getValue(barcdRef + "[1]/blank/left");
- var sTopBank = model.getValue(barcdRef + "[1]/blank/top");
- PrnKind =2;
- CommAX.PrnKind =7;
- CommAX.PortNm = 2;
- CommAX.PrtNm = "SATO CL408e";
- //시작(X, Y)
- sSndMsg += misfStartFormat(0, 0);
-
- //////////////////////////////////////////////////
- // 라벨 상단내용 //
- /////////////////////////////////////////////////
- //투약번호
- //sSndMsg += misfPrintOut(30, 30, 6, "test" ,"");
- sSndMsg += misfPrintOut(30, 30, 6, "test" ,"");
- sSndMsg += misfPrintOut(30, 60, 6, "나와라" ,"");
- //종료(매수)
- sSndMsg += misfEndFormat(0);
-
- //CommAX.SendMessage(sSndMsg);
- CommAX.SendMessageToLPT(sSndMsg);
-
- sSndMsg = "";
-
- //fSleep(500);
-
- }
-
- function fGridItemCheck( choiceFlag ) {
- var choiceCnt = 0;
- if (grd_fixasetlist.rows - grd_fixasetlist.fixedRows <= 0 ) {
- messageBox("선택할 데이터가","I004");
- return false;
- }
-
- if ( choiceFlag == "check" ) {
- /*
- var goodflagengnm = "";
- var goodmodel = "";
- var possndd = "";
- var mngtdeptnm = "";
- var fixasetcd = "";
-
- var instcd = "";
- var goodflaghngnm = "";
-
- var installplcecd = "";
- var installplcenm = "";
- var cntrdeptnm = "";
- var suplplcenm = "";
-
- var barcdprntyn = "";
-
- var i = 1;
-
- for( cnt = grd_fixasetlist.fixedRows; cnt < grd_fixasetlist.rows ; cnt++ ) {
- if( grd_fixasetlist.valueMatrix( cnt, grd_fixasetlist.colRef("choice") ) == "Y") {
- choiceCnt = choiceCnt + 1;
-
- grd_barcodetarget.addRow(false); //그리드 열추가
-
- goodflagengnm = model.getValue("/root/main/list/fixaset/fixasetlist["+cnt+"]/goodflagengnm");
- goodmodel = model.getValue("/root/main/list/fixaset/fixasetlist["+cnt+"]/goodmodel");
- possndd = model.getValue("/root/main/list/fixaset/fixasetlist["+cnt+"]/possndd");
- mngtdeptnm = model.getValue("/root/main/list/fixaset/fixasetlist["+cnt+"]/mngtdeptnm");
- fixasetcd = model.getValue("/root/main/list/fixaset/fixasetlist["+cnt+"]/fixasetcd");
-
- instcd = model.getValue("/root/main/list/fixaset/fixasetlist["+cnt+"]/instcd");
- goodflaghngnm = model.getValue("/root/main/list/fixaset/fixasetlist["+cnt+"]/goodflaghngnm");
-
- installplcecd = model.getValue("/root/main/list/fixaset/fixasetlist["+cnt+"]/installplcecd");
- installplcenm = model.getValue("/root/main/list/fixaset/fixasetlist["+cnt+"]/installplcenm");
- cntrdeptnm = model.getValue("/root/main/list/fixaset/fixasetlist["+cnt+"]/cntrdeptnm");
- suplplcenm = model.getValue("/root/main/list/fixaset/fixasetlist["+cnt+"]/suplplcenm");
-
-
- //필요한 항목들을 전부 노드에서 가져와서 변수에 저장한다음 프린트한다.
- /*
- 장비명 goodflagengnm
- 모델명+제조원 goodmodel
- SN+취득일자 ?? + possndd
- 부서명(관리) mngtdeptnm
- 코드번호(바코드번호) fixasetcd
- 바코드
- */
-
- //바코드출력 함수 호출 및 매개변수 넘겨주기
- // BarcodePrtRFCMFACD(goodflagengnm , goodmodel , possndd , mngtdeptnm , fixasetcd);
-
- //선택된 고정자산자료들을 해당 노드에 부어주고 그 엄마 노드를 펑션에 보내서 바코드 출력하는 데 쓴다.
- /*
- model.setValue("/root/send/barcodetarget["+i+"]/fixasetcd" , fixasetcd , true );
- model.setValue("/root/send/barcodetarget["+i+"]/goodflagengnm" , goodflagengnm , true );
- model.setValue("/root/send/barcodetarget["+i+"]/goodmodel" , goodmodel , true );
- model.setValue("/root/send/barcodetarget["+i+"]/possndd" , possndd , true );
- model.setValue("/root/send/barcodetarget["+i+"]/mngtdeptnm" , mngtdeptnm , true );
-
- model.setValue("/root/send/barcodetarget["+i+"]/instcd" , instcd );
- model.setValue("/root/send/barcodetarget["+i+"]/goodflaghngnm" , goodflaghngnm , true );
-
- model.setValue("/root/send/barcodetarget["+i+"]/installplcecd" , installplcecd , true );
- model.setValue("/root/send/barcodetarget["+i+"]/installplcenm" , installplcenm , true );
- model.setValue("/root/send/barcodetarget["+i+"]/cntrdeptnm" , cntrdeptnm , true );
- model.setValue("/root/send/barcodetarget["+i+"]/suplplcenm" , suplplcenm , true );
-
- //출력함수에 해당 노드 첫번째 를 넘기고 출력이 잘 되었다면 그리드의 스테이터스를 update로 하고
- //출력여부를 Y로 셋팅한다.
- //바코드출력 함수 호출 및 매개변수(해당노드) 넘겨주기
- // BarcodePrtRFCMFACD(goodflagengnm , goodmodel , possndd , mngtdeptnm , fixasetcd);
- grd_barcodetarget.rowStatus(i) = 2;
- i = i+1;
-
-
- }
- }
-
- model.refresh();
- */
-
- model.resetInstanceNode("/root/copytemp");
- var varcopy = instance1.selectNodes(grd_fixasetlist.nodeset + "[choice='Y']");
- if ( varcopy.length == 0 ) {
- messageBox("선택한 데이터가","I004");
- return false;
- }
- }
- return true;
- }
-
- /**
- * @group :
- * @ver : 2007.09.18
- * @by : 최경용
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 한글 및 특수문자 Field정의
- * @param : pX = 시작 가로위치 (in dots)
- * @param : pY = 시작 세로위치 (in dots)
- * @param : pFont = 글자크기(1-10)
- * @param : pData = Field Data
- * @param : pReverse = 배경 기준으로 역상으로표시 ( Y:역상으로 )
- * @return :
- * @---------------------------------------------------
- */
-
- /*
- *바코드 출력 함수
- * psRef 바코드프린트 셋팅관련 노드셋
- * pRef 고정자산 프린트 관련 노드셋
- * cvtdate 점검일(오늘날짜)
- * nextcvtdate 다음점검일(현재는 일년뒤로 셋팅되어 있음)
- */
- function BarcodePrtRFCMFACD2(psRef , pRef , cvtdate , nextcvtdate , pKCount , pPCount){
-
- var vInstance = document.models(0).instances(0);
- var cntHR = vInstance.selectNodes(pRef).length; //고정자산 프린트 할 전체 목록의 갯수
- //alert(cntHR);
- //var barcdRef = "/root/main/barcdprntsetup/prntsetupinfo/setupinfo"; //바코드프린터 셋팅관련
-
- var barcdRef = "/root/main/barcdprntsetup";
- /*
- var checkdate = cvtdate.substr(2,6);
- var nextcheckdate = nextcvtdate.substr(2,6);
- */
-
- // var sPrntKind = model.getValue(barcdRef + "[1]/prntkind"); //바코드프린터 종류
-
- var sPrntKind = "1"; //바코드프린터 종류
-
-
- var portOpenTF = "";
-
- // Lcount , Mcont(접수 바코드출력수 , 미생물바코드 출력수)
- var KCount = 0;
- var PCount = 0;
-
- if (pKCount == null || pKCount == ""){
- KCount = 0;
- }else{
- KCount = pKCount;
- }
- if (pPCount == null || pPCount == ""){
- PCount = 0;
- }else{
- PCount = pPCount;
- }
- //
-
- if (cntHR > 0 && sPrntKind != 0){
- //var sCommKind = model.getValue(barcdRef + "[1]/commkind"); //통신유형(PRT , COM , TCP/IP)
-
- var sCommKind = "02"
-
- var sLeftBank = model.getValue(barcdRef + "[1]/blank/left"); //왼쪽여백
- var sTopBank = model.getValue(barcdRef + "[1]/blank/top"); //위쪽여백
-
- if (sCommKind == "01") { //통신유형(PRT)
- var sSetUpVal = model.getValue(barcdRef + "[1]/comm01/setupval");
- } else if (sCommKind == "02") { //통신유형(COM)
- var sComm = model.getValue(barcdRef + "[1]/comm02/comm" ); //COM Port
- var sDataBit = model.getValue(barcdRef + "[1]/comm02/databit" ); //Data Bit
- var sStopBit = model.getValue(barcdRef + "[1]/comm02/stopbit" ); //Stop Bit
- var sBaudRate = model.getValue(barcdRef + "[1]/comm02/baudrate"); //Baud Rate
- var sParity = model.getValue(barcdRef + "[1]/comm02/parity" ); //Parity
-
- // CommAX.CommPort = sComm;
- // CommAX.Settings = sBaudRate + "," + sParity + "," + sDataBit + "," + sStopBit;
-
- CommAX.CommPort = "2";
- CommAX.Settings = "9600" + "," + "n "+ "," + "8" + "," + "1";
-
- if(KCount > 0){
- //이미 포트 오픈 되어 있으므로 "TRUE" 셋팅
- portOpenTF = "TRUE";
- }else if(KCount == 0){
- //port open 반환값 -> String 문자 포트 오픈 성공이면 "TRUE" , 실패하면 "FALSE"
- portOpenTF = CommAX.PortOpen("true");
- }
-
- } else if (sCommKind == "03") { //통신유형(TCP/IP)
- var sSetUpVal = model.getValue(barcdRef + "[1]/comm03/setupval");
- }
-
- //alert(portOpenTF);
- var DeptNm = "";
-
- if ( (portOpenTF == "TRUE" && sCommKind == "02")
- ||(sCommKind == "01") || (sCommKind == "03")){
-
- for (i=1 ; i<= cntHR;i++){
- var goodflag = model.getvalue(pRef+ "["+i+"]/goodflag" );
- var fixasetcd = model.getvalue(pRef+ "["+i+"]/fixasetcd" );
- var goodflagengnm = model.getvalue(pRef+ "["+i+"]/goodflagengnm");
- var goodmodel = model.getvalue(pRef+ "["+i+"]/goodmodel" );
- var possndd = model.getvalue(pRef+ "["+i+"]/possndd" );
- var mngtdeptnm = model.getvalue(pRef+ "["+i+"]/mngtdeptnm" );
- var mngtno = model.getvalue(pRef+ "["+i+"]/mngtno" );
- var instcd = model.getvalue(pRef+ "["+i+"]/instcd" );
- var goodflaghngnm = model.getvalue(pRef+ "["+i+"]/goodflaghngnm");
- var installplcecd = model.getvalue(pRef+ "["+i+"]/installplcecd");
- var installplcenm = model.getvalue(pRef+ "["+i+"]/installplcenm");
- var cntrdeptnm = model.getvalue(pRef+ "["+i+"]/cntrdeptnm" );
- var suplplcenm = model.getvalue(pRef+ "["+i+"]/suplplcenm" );
- var prodcmpynm = model.getvalue(pRef+ "["+i+"]/prodcmpynm" );
-
- var leftmargin = 300;
- var leftmarginother = 10;
-
- //시작 위치 설정
- if (sLeftBank == "" || sLeftBank == "-") sLeftBank = leftmargin; //350
- if (sTopBank == "" || sTopBank == "-") sTopBank = 20;
-
- var sSndMsg = "";
- if(sPrntKind == "1") {
- sSndMsg += misfBP_StartFormat(sLeftBank, sTopBank); // 시작위치 셋팅
- //sSndMsg += misfBP_ChangeFont("A", 0, 0); // 폰트 설정
- //misfBP_FieldDataHNEW(pX, pY, pW, pH, pData)
- //시작(X, Y)
- //sSndMsg += misfBP_StartFormat(0, 30);
- sSndMsg += "^SEE:UHANGUL.DAT^FS^CWQ,E:AAAAA.FNT^FS^CI26^FO10,46^AQN,16,16^FD^FS";
-
- //장비명
- if (goodflag == "EQ"){
- sSndMsg += misfBP_FieldDataHNEW(leftmarginother , 15 , 25 , 25 , goodflagengnm.substr(0,20));
- sSndMsg += misfBP_FieldDataHNEW(leftmarginother , 47 , 25 , 25 , goodflagengnm.substr(20,20));
- }else{
- sSndMsg += misfBP_FieldDataHNEW(leftmarginother , 15 , 25 , 25 , goodflaghngnm.substr(0,20));
- sSndMsg += misfBP_FieldDataHNEW(leftmarginother , 47 , 25 , 25 , goodflaghngnm.substr(20,20));
- }
- //모델명
- sSndMsg += misfBP_FieldDataHNEW(leftmarginother , 75 , 24 , 24 , "- "+goodmodel);
-
- //취득일자(일-월-년 순서로 출력)+SN
- if (goodflag == "GE") {
- sSndMsg += misfBP_FieldDataHNEW(leftmarginother, 105 , 24 , 24 , "- "+possndd.substr(6,2)+possndd.substr(4,2)+possndd.substr(2,2)+mngtno); //82
- } else {
- sSndMsg += misfBP_FieldDataHNEW(leftmarginother, 105 , 24 , 24 , "- "+possndd.substr(6,2)+possndd.substr(4,2)+possndd.substr(2,2)+"_"+mngtno); //82
- }
-
- //부서명(관리부서)
- sSndMsg += misfBP_FieldDataHNEW(leftmarginother , 140 , 24 , 24 , "- "+mngtdeptnm); //100 , mngtdeptnm
- if (goodflag == "EQ"){
- //제조원(장비만...)
- sSndMsg += misfBP_FieldDataHNEW(leftmarginother , 172 , 24 , 24 , "- "+prodcmpynm);
- }else{
- sSndMsg += misfBP_FieldDataHNEW(leftmarginother , 172 , 24 , 24 , "-");
- }
-
- //코드번호
- sSndMsg += misfBP_FieldDataHNEW(leftmarginother , 205 , 24 , 24 , "- "+fixasetcd);
-
- //바코드
- sSndMsg += misfBP_ChangeFont("F", 10, 10);
- sSndMsg += misfBP_BarCode_Code39NEW(0, 240, "N", 50, "*" +fixasetcd + "*"); // 바코드 //114
-
-
- sSndMsg += misfBP_EndFormat();
-
- if(sCommKind == "01") {
- CommAX.SendMessageToLPT(sSndMsg);
- } else if(sCommKind == "02") {
- CommAX.SendMessage(sSndMsg);
- }
- }//end if(sPrntKind == "1")
- }//end for
- //portopen이 true이고 통신유형이 com이고 출력할 병리 바코드가 없을때 port close
- if( portOpenTF == "TRUE" && sCommKind == "02" && PCount == 0){
- CommAX.PortOpen("false");
- }
- }else if((portOpenTF = "FALSE" && sCommKind == "02")){
- messageBox("아래 사항을 확인후 재출력해주십시오."
- + " \n 1.프린트설정 화면에서 통신유형을 com 으로 선택한 경우 port 번호 확인"
- + " \n 2.케이블 확인"
- + " \n 3.먼저 출력중인 바코드 확인(모두 출력된 후 재출력하십시오.)", "I", "");
- return false;
- }
- }//End if
- }//End Function
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">Bar Code Test</caption>
- </group>
- <button id="btn_prntset" class="btn3_letter5" visibility="hidden" style="left:10px; top:45px; width:92px; height:22px; ">
- <caption>프린터설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetPrint();
- ]]>
- </script>
- </button>
- <button id="btn_barcodeprt" class="btn2_letter4" style="left:115px; top:45px; width:64px; height:19px; ">
- <caption>라벨출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fBarcodePrt();
- ]]>
- </script>
- </button>
- <datagrid id="grd_fixasetlist" nodeset="/root/main/list/fixaset/fixasetlist" caption="^기관코드^출력여부^자산코드^품명^품명(영문)^모델^구입일자^사용부서^청구부서^설치장소^설치장소^SERIAL NO^제조원^업체명^연락처" colsep="^" colwidth="29, 60, 84, 85, 170, 170, 130, 79, 120, 120, 80, 120, 100, 100, 153, 100" dataheight="23" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:15px; top:100px; width:1194px; height:95px; ">
- <col checkvalue="Y,N" ref="choice" type="checkbox"/>
- <col ref="instcd"/>
- <col ref="barcdprntyn"/>
- <col ref="fixasetcd" style="text-align:center; "/>
- <col ref="goodflaghngnm"/>
- <col ref="goodflagengnm"/>
- <col ref="goodmodel"/>
- <col disabled="true" ref="possndd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="mngtdeptnm"/>
- <col ref="cntrdeptnm" visibility="hidden"/>
- <col ref="installplcecd"/>
- <col ref="installplcenm"/>
- <col ref="mngtno" visibility="visible"/>
- <col ref="prodcmpynm"/>
- <col ref="suplplcenm"/>
- <col ref="cntctel" visibility="visible"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_fixasetlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_barcodetarget" nodeset="/root/main/barcodetarget" visibility="visible" caption="기관코드^출력여부^코드번호^품명(한글)^품명(영문)^모델명^취득일자^관리부서^SERIAL NO^설치장소^설치장소^귀속부서^업체명^연락처" colsep="^" colwidth="36, 40, 79, 151, 100, 100, 117, 100, 23, 47, 99, 87, 130, 55" dataheight="23" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:15px; top:210px; width:1064px; height:95px; ">
- <col ref="instcd"/>
- <col ref="barcdprntyn"/>
- <col ref="fixasetcd"/>
- <col ref="goodflaghngnm"/>
- <col ref="goodflagengnm"/>
- <col ref="goodmodel"/>
- <col disabled="true" ref="possndd" type="inputdate"/>
- <col ref="mngtdeptnm"/>
- <col ref="mngtno"/>
- <col ref="installplcecd"/>
- <col ref="installplcenm"/>
- <col ref="cntrdeptnm"/>
- <col ref="suplplcenm"/>
- <col/>
- </datagrid>
- <caption id="caption1" class="search_name" style="left:195px; top:45px; width:97px; height:17px; ">COM Port :</caption>
- <select1 id="combo1" ref="/root/main/barcdprntsetup/comm" appearance="minimal" style="left:295px; top:45px; width:116px; 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>
- <object id="CommAX" clsid="{b721f534-d025-466b-8a28-7cf40e700acd}" style="left:40px; top:330px; width:45px; height:45px; "/>
- </xhtml:body>
- </xhtml:html>
|