123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLLC90100_바코드프린터설정.xrw
- * 설 명 : 바코드프린터설정
- * 설 계 자 : (주)에이씨케이 Jin Hwa Ji
- * 작 성 자 : (주)에이씨케이 Jin Hwa Ji
- * 작 성 일 : 2006.11.11
- * 수정이력 : 2007-05-23 Jin Hwa Ji
- - UI 구성 변경
- * 기 타 :
- -->
- <?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>출력바코드프린터설정</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <barcdprntsetup>
- <prntsetupinfo>
- <setupinfo/>
- </prntsetupinfo>
- </barcdprntsetup>
- </main>
- <send>
- <prntsetup/>
- <scrnid/>
- </send>
- <init/>
- <hidden>
- <barcdprntsinfo>
- <scrnid/>
- <prntsetupinfo/>
- <flag/>
- </barcdprntsinfo>
- <setupinfo>
- <prntkind/>
- <commkind/>
- <comm01>
- <setupval/>
- </comm01>
- <comm02>
- <comm/>
- <databit/>
- <stopbit/>
- <baudrate/>
- <parity/>
- <setupval/>
- </comm02>
- <comm03>
- <setupval/>
- <eqmtcd/>
- <autoyn>Y</autoyn>
- <daegiip/>
- </comm03>
- <blank>
- <left/>
- <top/>
- <b472size>1</b472size>
- </blank>
- <genr/>
- <auto/>
- </setupinfo>
- </hidden>
- </root>
- </instance>
- <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/tfHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- fBaseInfoRef("0006|0007|"); //0006 : 외래채혈실 층, 0007 : 오토라벨러 장비코드
-
- fGetSetUpInfo();
- fInitionalData();
- fCommKind_Select();
-
- model.refresh();
- ]]>
- </script>
- <submission id="TXLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prntsetup" replace="instance"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- //초기화
- function fInitionalData() {
- var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
-
- if(count == 0 && getUserInfo("dutplceinstcd") != "012") {
- model.setValue("/root/hidden/setupinfo/prntkind", "0");
- model.setValue("/root/hidden/setupinfo/commkind", "01");
-
- model.setValue("/root/hidden/setupinfo/comm01/setupval", "");
-
- model.setValue("/root/hidden/setupinfo/comm02/comm", "1");
- model.setValue("/root/hidden/setupinfo/comm02/databit", "8");
- model.setValue("/root/hidden/setupinfo/comm02/stopbit", "1");
- model.setValue("/root/hidden/setupinfo/comm02/baudrate", "9600");
- model.setValue("/root/hidden/setupinfo/comm02/parity", "n");
- model.setValue("/root/hidden/setupinfo/comm02/setupval", "");
-
- model.setValue("/root/hidden/setupinfo/comm03/setupval", "");
- model.setValue("/root/hidden/setupinfo/comm03/daegiip", "");
- model.setValue("/root/hidden/setupinfo/comm03/autoyn", "Y");
- model.setValue("/root/hidden/setupinfo/comm03/eqmtcd", "");
-
- model.setValue("/root/hidden/setupinfo/blank/left", "0");
- model.setValue("/root/hidden/setupinfo/blank/top", "0");
- }else if(count == 0 && getUserInfo("dutplceinstcd") == "012") {
- model.setValue("/root/hidden/setupinfo/prntkind", "1");
- model.setValue("/root/hidden/setupinfo/commkind", "02");
-
- model.setValue("/root/hidden/setupinfo/comm01/setupval", "");
-
- model.setValue("/root/hidden/setupinfo/comm02/comm", "2");
- model.setValue("/root/hidden/setupinfo/comm02/databit", "8");
- model.setValue("/root/hidden/setupinfo/comm02/stopbit", "1");
- model.setValue("/root/hidden/setupinfo/comm02/baudrate", "9600");
- model.setValue("/root/hidden/setupinfo/comm02/parity", "n");
- model.setValue("/root/hidden/setupinfo/comm02/setupval", "");
-
- model.setValue("/root/hidden/setupinfo/comm03/setupval", "");
- model.setValue("/root/hidden/setupinfo/comm03/daegiip", "");
- model.setValue("/root/hidden/setupinfo/comm03/autoyn", "Y");
- model.setValue("/root/hidden/setupinfo/comm03/eqmtcd", "");
-
- model.setValue("/root/hidden/setupinfo/blank/left", "0");
- model.setValue("/root/hidden/setupinfo/blank/top", "0");
- }
- }
-
- //프린터선택
- function fCommKind_Select() {
- var vSel = model.getValue("/root/hidden/setupinfo/commkind");
-
- if ( vSel == "01" ) {
- grp_comm01.visible = true;
- grp_comm02.visible = false;
- grp_comm03.visible = false;
-
- model.setfocus("ipt_setupval01");
- } else if (vSel == "02") {
- grp_comm01.visible = false;
- grp_comm02.visible = true;
- grp_comm03.visible = false;
- } else if (vSel == "03") {
- grp_comm01.visible = false;
- grp_comm02.visible = false;
- grp_comm03.visible = true;
-
- if(model.getValue("/root/hidden/setupinfo/prntkind") == "3") {
- radio1.visible = true;
- rdo_abcd.visible = true;
- rdo_13.visible = true;
-
- fChangAutoYN();
- } else {
- radio1.visible = false;
- rdo_abcd.visible = false;
- rdo_13.visible = false;
-
- caption15.attribute("text") = "";
- }
-
- model.setfocus("ipt_setupval03");
- }
-
- fSetB472size();
- }
-
- function fSetB472size(){
- if(model.getValue("/root/hidden/setupinfo/prntkind")=="8"){
- cap_b472.visible = true;
- rdo_b472.visible = true;
- }else{
- cap_b472.visible = false;
- rdo_b472.visible = false;
- }
- }
-
- //조회
- function fGetSetUpInfo() {
- copyNodeType("/root/hidden/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
-
- if(getNodesetCount("/root/hidden/setupinfo/blank") == 0) {
- model.makeNode("/root/hidden/setupinfo/blank");
- model.makeValue("/root/hidden/setupinfo/blank/left", "0");
- model.makeValue("/root/hidden/setupinfo/blank/top", "0");
- }
-
- if(getNodesetCount("/root/hidden/setupinfo/comm03/autoyn") == 0) {
- model.makeNode("/root/hidden/setupinfo/comm03/daegiip");
- model.makeNode("/root/hidden/setupinfo/comm03/eqmtcd");
- model.makeValue("/root/hidden/setupinfo/comm03/autoyn", "Y");
- }
-
- if(model.getValue("/root/hidden/setupinfo/prntkind")=="8"){
- cap_b472.visible = true;
- rdo_b472.visible = true;
- }
- if(model.getValue("/root/hidden/setupinfo/blank/b472size")==""){
- model.makeValue("/root/hidden/setupinfo/blank/b472size", "1");
- }
- }
-
- //저장
- function fSetbarcdprt(){
- var node = instance1.selectSingleNode("/root/hidden/setupinfo");
- var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
-
- model.setValue("/root/hidden/barcdprntsinfo/scrnid", opener.javascript.getScreenID());
- model.setValue("/root/hidden/barcdprntsinfo/prntsetupinfo", node.xml, true);
-
- if(count > 0) {
- model.setValue("/root/hidden/barcdprntsinfo/flag", "1");
- } else {
- model.setValue("/root/hidden/barcdprntsinfo/flag", "0");
- }
-
- copyNodeType("/root/send/prntsetup","/root/hidden/barcdprntsinfo");
- if (!submit("TXLLC90101")) {
- messageBox("바코드프린터 설정에", "E009");
- }
-
- model.copyNode(opener.root.main.barcdprntsetup.prntsetupinfo.setupinfo, root.hidden.setupinfo);
-
- window.close();
- }
-
- //오토라벨시 TCP/IP 장비 설정
- function fChangAutoYN(){
- if(model.getValue("/root/hidden/setupinfo/comm03/autoyn") == "N") {
- rdo_abcd.visible = true;
- rdo_13.visible = false;
- } else {
- rdo_abcd.visible = false;
- rdo_13.visible = true;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="360" pageheight="340" guideline="1,1194;" style="font-family:굴림체; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group2" style="left:0px; top:270px; width:311px; height:27px; ">
- <button id="btn_cnfm" class="btn4_letter5" style="left:159px; top:5px; width:92px; height:22px; ">
- <caption>Auto 저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeNode("/root/hidden/setupinfo/auto");
- copyNodeType("/root/hidden/setupinfo/auto", "/root/hidden/setupinfo");
- model.removeNodeset("/root/hidden/setupinfo/auto/genr");
- model.removeNodeset("/root/hidden/setupinfo/auto/auto");
-
- fSetbarcdprt();
- ]]>
- </script>
- </button>
- <button id="btn_cancle" class="btn4_letter2" style="left:254px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetbarcdprt();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_6" style="x1:0px; y1:0px; x2:311px; y2:0px; "/>
- <button id="button1" class="btn4_letter4" style="left:76px; top:5px; width:80px; height:22px; ">
- <caption>일반저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeNode("/root/hidden/setupinfo/genr");
- copyNodeType("/root/hidden/setupinfo/genr", "/root/hidden/setupinfo");
- model.removeNodeset("/root/hidden/setupinfo/genr/genr");
- model.removeNodeset("/root/hidden/setupinfo/genr/auto");
-
-
- fSetbarcdprt();
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" style="left:0px; top:0px; width:310px; height:270px; ">
- <group id="grp_comm01" style="left:0px; top:150px; width:310px; height:120px; ">
- <caption id="caption5" class="cell_1" style="left:0px; top:0px; width:100px; height:23px; ">설정정보</caption>
- <line id="line6" class="line_3" style="x1:0px; y1:22px; x2:310px; y2:22px; "/>
- <input id="ipt_setupval01" ref="/root/hidden/setupinfo/comm01/setupval" style="left:103px; top:1px; width:207px; height:19px; "/>
- </group>
- <group id="grp_comm02" style="left:0px; top:150px; width:310px; height:120px; ">
- <line id="line12" class="line_2" style="x1:0px; y1:47px; x2:310px; y2:47px; "/>
- <caption id="caption10" class="cell_1" style="left:0px; top:25px; width:100px; height:23px; ">Data bit</caption>
- <line id="line13" class="line_2" style="x1:0px; y1:71px; x2:310px; y2:71px; "/>
- <caption id="caption11" class="cell_1" style="left:0px; top:49px; width:100px; height:23px; ">Stop Bit</caption>
- <line id="line14" class="line_2" style="x1:0px; y1:95px; x2:310px; y2:95px; "/>
- <caption id="caption12" class="cell_1" style="left:0px; top:73px; width:100px; height:23px; ">Baud Rate</caption>
- <caption id="caption13" class="cell_1" style="left:0px; top:97px; width:100px; height:23px; ">Parity</caption>
- <select1 id="cmb_stopbit" ref="/root/hidden/setupinfo/comm02/stopbit" class="combo_default" appearance="minimal" style="left:103px; top:50px; width:207px; height:19px; ">
- <choices>
- <item>
- <label>1 bit</label>
- <value>1</value>
- </item>
- <item>
- <label>2 bit</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_parity" ref="/root/hidden/setupinfo/comm02/parity" class="combo_default" appearance="minimal" style="left:103px; top:98px; width:207px; height:19px; ">
- <choices>
- <item>
- <label>None</label>
- <value>n</value>
- </item>
- <item>
- <label>Even</label>
- <value>e</value>
- </item>
- <item>
- <label>Odd</label>
- <value>o</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_databit" ref="/root/hidden/setupinfo/comm02/databit" class="combo_default" appearance="minimal" style="left:103px; top:27px; width:207px; height:19px; ">
- <choices>
- <item>
- <label>7 bit</label>
- <value>7</value>
- </item>
- <item>
- <label>8 bit</label>
- <value>8</value>
- </item>
- </choices>
- </select1>
- <line id="line16" class="line_2" style="x1:0px; y1:23px; x2:310px; y2:23px; "/>
- <caption id="caption14" class="cell_1" style="left:0px; top:1px; width:100px; height:23px; ">COM Port</caption>
- <select1 id="cmb_comport" ref="/root/hidden/setupinfo/comm02/comm" class="combo_default" appearance="minimal" style="left:103px; top:3px; width:207px; 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>COM5</label>
- <value>5</value>
- </item>
- <item>
- <label>COM6</label>
- <value>6</value>
- </item>
- <item>
- <label>COM7</label>
- <value>7</value>
- </item>
- </choices>
- </select1>
- <line id="line15" class="line_3" style="x1:0px; y1:119px; x2:310px; y2:119px; "/>
- <input id="ipt_raudrate" ref="/root/hidden/setupinfo/comm02/baudrate" style="left:103px; top:75px; width:207px; height:19px; "/>
- </group>
- <group id="grp_comm03" style="left:0px; top:150px; width:310px; height:120px; ">
- <caption id="caption6" class="cell_1" style="left:0px; top:0px; width:100px; height:23px; ">IP Address</caption>
- <line id="line7" class="line_2" style="x1:0px; y1:22px; x2:310px; y2:22px; "/>
- <input id="ipt_setupval03" ref="/root/hidden/setupinfo/comm03/setupval" style="left:103px; top:1px; width:207px; height:19px; "/>
- <select1 id="radio1" ref="/root/hidden/setupinfo/comm03/autoyn" appearance="full" vcellspacing="10" overflow="visible" style="left:5px; top:50px; width:50px; height:55px; border-style:none; ">
- <choices>
- <item>
- <label>고정</label>
- <value>N</value>
- </item>
- <item>
- <label>자동</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChangAutoYN();
- ]]>
- </script>
- </select1>
- <select1 id="rdo_13" ref="/root/hidden/setupinfo/comm03/eqmtcd" appearance="full" vcellspacing="5" overflow="visible" style="left:70px; top:50px; width:80px; height:45px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/LB0006">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rdo_abcd" ref="/root/hidden/setupinfo/comm03/eqmtcd" appearance="full" cellspacing="10" cols="2" vcellspacing="5" overflow="visible" style="left:70px; top:50px; width:80px; height:45px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/LB0007">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption15" class="cell_1" style="left:0px; top:23px; width:100px; height:23px; ">대기자 IP</caption>
- <input id="input3" ref="/root/hidden/setupinfo/comm03/daegiip" style="left:103px; top:24px; width:207px; height:19px; "/>
- <line id="line9" class="line_3" style="x1:0px; y1:45px; x2:310px; y2:45px; "/>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:310; y2:26px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:53px; x2:310px; y2:53px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:11px; width:126px; height:14px; ">바코드프린터 설정</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:31px; width:100px; height:23px; ">프린터종류</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:55px; width:100px; height:23px; ">통신유형</caption>
- <select1 id="rdo_commkind" ref="/root/hidden/setupinfo/commkind" appearance="full" cellspacing="25" cols="3" overflow="visible" style="left:103px; top:56px; width:207px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>PRT</label>
- <value>01</value>
- </item>
- <item>
- <label>COM</label>
- <value>02</value>
- </item>
- <item>
- <label>TCP/IP</label>
- <value>03</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fCommKind_Select();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_prntkind" ref="/root/hidden/setupinfo/prntkind" class="combo_default" appearance="minimal" style="left:103px; top:32px; width:207px; height:19px; ">
- <choices>
- <item>
- <label>없음</label>
- <value>0</value>
- </item>
- <item>
- <label>Zebra</label>
- <value>1</value>
- </item>
- <item>
- <label>Zebra(한글내장형)</label>
- <value>5</value>
- </item>
- <item>
- <label>SATO</label>
- <value>2</value>
- </item>
- <item>
- <label>SATO(CT400)</label>
- <value>6</value>
- </item>
- <item>
- <label>SATO(old)</label>
- <value>7</value>
- </item>
- <item>
- <label>Auto labeler(Ginus)</label>
- <value>3</value>
- </item>
- <item>
- <label>Auto labeler(Robo)</label>
- <value>4</value>
- </item>
- <item>
- <label>B472</label>
- <value>8</value>
- </item>
- <item>
- <label>Zebra(300dpi)</label>
- <value>9</value>
- </item>
- <item>
- <label>Zebra(200dpi)</label>
- <value>11</value>
- </item>
- <item>
- <label>Zebra(EPL)</label>
- <value>10</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCommKind_Select();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="tit_2" style="left:5px; top:131px; width:95px; height:13px; ">설정정보</caption>
- <line id="line5" class="line_1" style="x1:0px; y1:146px; x2:310px; y2:146px; "/>
- <line id="line3" class="line_3" style="x1:0px; y1:77px; x2:310px; y2:77px; "/>
- <caption id="caption7" class="tit_2" style="left:0px; top:85px; width:95px; height:14px; ">여백</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:100px; x2:310px; y2:100px; "/>
- <caption id="caption8" class="cell_1" style="left:0px; top:105px; width:60px; height:23px; ">LEFT</caption>
- <input id="input1" ref="/root/hidden/setupinfo/blank/left" style="left:63px; top:107px; width:72px; height:19px; "/>
- <input id="input2" ref="/root/hidden/setupinfo/blank/top" style="left:216px; top:107px; width:72px; height:19px; "/>
- <caption id="caption9" class="cell_1" style="left:153px; top:105px; width:60px; height:23px; ">TOP</caption>
- </group>
- <caption id="cap_b472" visibility="hidden" style="left:90px; top:80px; width:60px; height:20px; color:#000000; ">용지size</caption>
- <select1 id="rdo_b472" ref="/root/hidden/setupinfo/blank/b472size" visibility="hidden" appearance="full" cellspacing="14" cols="2" overflow="visible" style="left:150px; top:81px; width:155px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>3.5 X 5.5</label>
- <value>1</value>
- </item>
- <item>
- <label>3.2 X 6.3</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- </xhtml:body>
- </xhtml:html>
|