SPLLC90100_바코드프린터설정.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLLC90100_바코드프린터설정.xrw
  4. * 설 명 : 바코드프린터설정
  5. * 설 계 자 : (주)에이씨케이 Jin Hwa Ji
  6. * 작 성 자 : (주)에이씨케이 Jin Hwa Ji
  7. * 작 성 일 : 2006.11.11
  8. * 수정이력 : 2007-05-23 Jin Hwa Ji
  9. - UI 구성 변경
  10. * 기 타 :
  11. -->
  12. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  13. <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">
  14. <xhtml:head>
  15. <xhtml:title>출력바코드프린터설정</xhtml:title>
  16. <model id="model1">
  17. <instance id="instance1">
  18. <root xmlns="">
  19. <main>
  20. <barcdprntsetup>
  21. <prntsetupinfo>
  22. <setupinfo/>
  23. </prntsetupinfo>
  24. </barcdprntsetup>
  25. </main>
  26. <send>
  27. <prntsetup/>
  28. <scrnid/>
  29. </send>
  30. <init/>
  31. <hidden>
  32. <barcdprntsinfo>
  33. <scrnid/>
  34. <prntsetupinfo/>
  35. <flag/>
  36. </barcdprntsinfo>
  37. <setupinfo>
  38. <prntkind/>
  39. <commkind/>
  40. <comm01>
  41. <setupval/>
  42. </comm01>
  43. <comm02>
  44. <comm/>
  45. <databit/>
  46. <stopbit/>
  47. <baudrate/>
  48. <parity/>
  49. <setupval/>
  50. </comm02>
  51. <comm03>
  52. <setupval/>
  53. </comm03>
  54. <blank>
  55. <left/>
  56. <top/>
  57. <b472size>1</b472size>
  58. </blank>
  59. </setupinfo>
  60. </hidden>
  61. </root>
  62. </instance>
  63. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  66. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  67. <script type="javascript" ev:event="xforms-model-construct-done">
  68. <![CDATA[
  69. fGetSetUpInfo();
  70. fInitionalData();
  71. fCommKind_Select();
  72. model.refresh();
  73. ]]>
  74. </script>
  75. <submission id="TXLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prntsetup" replace="instance"/>
  76. <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
  77. </model>
  78. <script type="javascript">
  79. <![CDATA[
  80. //초기화
  81. function fInitionalData() {
  82. var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
  83. if(count == 0 && getUserInfo("dutplceinstcd") != "012") {
  84. model.setValue("/root/hidden/setupinfo/prntkind", "0");
  85. model.setValue("/root/hidden/setupinfo/commkind", "01");
  86. model.setValue("/root/hidden/setupinfo/comm01/setupval", "");
  87. model.setValue("/root/hidden/setupinfo/comm02/comm", "1");
  88. model.setValue("/root/hidden/setupinfo/comm02/databit", "8");
  89. model.setValue("/root/hidden/setupinfo/comm02/stopbit", "1");
  90. model.setValue("/root/hidden/setupinfo/comm02/baudrate", "9600");
  91. model.setValue("/root/hidden/setupinfo/comm02/parity", "n");
  92. model.setValue("/root/hidden/setupinfo/comm02/setupval", "");
  93. model.setValue("/root/hidden/setupinfo/comm03/setupval", "");
  94. model.setValue("/root/hidden/setupinfo/blank/left", "0");
  95. model.setValue("/root/hidden/setupinfo/blank/top", "0");
  96. }else if(count == 0 && getUserInfo("dutplceinstcd") == "012") {
  97. model.setValue("/root/hidden/setupinfo/prntkind", "1");
  98. model.setValue("/root/hidden/setupinfo/commkind", "02");
  99. model.setValue("/root/hidden/setupinfo/comm01/setupval", "");
  100. model.setValue("/root/hidden/setupinfo/comm02/comm", "2");
  101. model.setValue("/root/hidden/setupinfo/comm02/databit", "8");
  102. model.setValue("/root/hidden/setupinfo/comm02/stopbit", "1");
  103. model.setValue("/root/hidden/setupinfo/comm02/baudrate", "9600");
  104. model.setValue("/root/hidden/setupinfo/comm02/parity", "n");
  105. model.setValue("/root/hidden/setupinfo/comm02/setupval", "");
  106. model.setValue("/root/hidden/setupinfo/comm03/setupval", "");
  107. model.setValue("/root/hidden/setupinfo/blank/left", "0");
  108. model.setValue("/root/hidden/setupinfo/blank/top", "0");
  109. }
  110. }
  111. //프린터선택
  112. function fCommKind_Select() {
  113. var vSel = model.getValue("/root/hidden/setupinfo/commkind");
  114. if ( vSel == "01" ) {
  115. grp_comm01.visible = true;
  116. grp_comm02.visible = false;
  117. grp_comm03.visible = false;
  118. model.setfocus("ipt_setupval01");
  119. } else if (vSel == "02") {
  120. grp_comm01.visible = false;
  121. grp_comm02.visible = true;
  122. grp_comm03.visible = false;
  123. } else if (vSel == "03") {
  124. grp_comm01.visible = false;
  125. grp_comm02.visible = false;
  126. grp_comm03.visible = true;
  127. model.setfocus("ipt_setupval03");
  128. }
  129. }
  130. //조회
  131. function fGetSetUpInfo() {
  132. copyNodeType("/root/hidden/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  133. if(getNodesetCount("/root/hidden/setupinfo/blank") == 0) {
  134. model.makeNode("/root/hidden/setupinfo/blank");
  135. model.makeValue("/root/hidden/setupinfo/blank/left", "0");
  136. model.makeValue("/root/hidden/setupinfo/blank/top", "0");
  137. }
  138. if(model.getValue("/root/hidden/setupinfo/prntkind")=="8"){
  139. cap_b472.visible = true;
  140. rdo_b472.visible = true;
  141. }
  142. if(model.getValue("/root/hidden/setupinfo/blank/b472size")==""){
  143. model.makeValue("/root/hidden/setupinfo/blank/b472size", "1");
  144. }
  145. }
  146. //저장
  147. function fSetbarcdprt(){
  148. var node = instance1.selectSingleNode("/root/hidden/setupinfo");
  149. var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
  150. model.setValue("/root/hidden/barcdprntsinfo/scrnid", opener.javascript.getScreenID());
  151. model.setValue("/root/hidden/barcdprntsinfo/prntsetupinfo", node.xml, true);
  152. if(count > 0) {
  153. model.setValue("/root/hidden/barcdprntsinfo/flag", "1");
  154. } else {
  155. model.setValue("/root/hidden/barcdprntsinfo/flag", "0");
  156. }
  157. copyNodeType("/root/send/prntsetup","/root/hidden/barcdprntsinfo");
  158. if (!submit("TXLLC90101")) {
  159. messageBox("바코드프린터 설정에", "E009");
  160. }
  161. model.copyNode(opener.root.main.barcdprntsetup.prntsetupinfo.setupinfo, root.hidden.setupinfo);
  162. window.close();
  163. }
  164. function fSetB472size(){
  165. if(model.getValue("/root/hidden/setupinfo/prntkind")=="8"){
  166. cap_b472.visible = true;
  167. rdo_b472.visible = true;
  168. }else{
  169. cap_b472.visible = false;
  170. rdo_b472.visible = false;
  171. }
  172. }
  173. ]]>
  174. </script>
  175. </xhtml:head>
  176. <xhtml:body pagewidth="360" pageheight="340" guideline="1,1194;" style="font-family:굴림체; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  177. <group id="group2" style="left:0px; top:270px; width:311px; height:27px; ">
  178. <button id="btn_cnfm" class="btn4_letter2" style="left:195px; top:5px; width:56px; height:22px; ">
  179. <caption>확인</caption>
  180. <script type="javascript" ev:event="DOMActivate">
  181. <![CDATA[
  182. fSetbarcdprt();
  183. ]]>
  184. </script>
  185. </button>
  186. <button id="btn_cancle" class="btn4_letter2" style="left:254px; top:5px; width:56px; height:22px; ">
  187. <caption>취소</caption>
  188. <script type="javascript" ev:event="DOMActivate">
  189. <![CDATA[
  190. window.close();
  191. ]]>
  192. </script>
  193. </button>
  194. <line id="line2" class="line_6" style="x1:0px; y1:0px; x2:311px; y2:0px; "/>
  195. </group>
  196. <group id="group1" style="left:0px; top:0px; width:310px; height:270px; ">
  197. <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:310; y2:26px; "/>
  198. <line id="line4" class="line_2" style="x1:0px; y1:53px; x2:310px; y2:53px; "/>
  199. <caption id="caption1" class="tit_2" style="left:5px; top:11px; width:126px; height:14px; ">바코드프린터 설정</caption>
  200. <caption id="caption3" class="cell_1" style="left:0px; top:31px; width:100px; height:23px; ">프린터종류</caption>
  201. <caption id="caption4" class="cell_1" style="left:0px; top:55px; width:100px; height:23px; ">통신유형</caption>
  202. <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; ">
  203. <choices>
  204. <item>
  205. <label>PRT</label>
  206. <value>01</value>
  207. </item>
  208. <item>
  209. <label>COM</label>
  210. <value>02</value>
  211. </item>
  212. <item>
  213. <label>TCP/IP</label>
  214. <value>03</value>
  215. </item>
  216. </choices>
  217. <script type="javascript" ev:event="xforms-select">
  218. <![CDATA[
  219. fCommKind_Select();
  220. ]]>
  221. </script>
  222. </select1>
  223. <select1 id="cmb_prntkind" ref="/root/hidden/setupinfo/prntkind" class="combo_default" appearance="minimal" style="left:103px; top:32px; width:207px; height:19px; ">
  224. <choices>
  225. <item>
  226. <label>없음</label>
  227. <value>0</value>
  228. </item>
  229. <item>
  230. <label>Zebra</label>
  231. <value>1</value>
  232. </item>
  233. <item>
  234. <label>Zebra(한글내장형)</label>
  235. <value>5</value>
  236. </item>
  237. <item>
  238. <label>SATO</label>
  239. <value>2</value>
  240. </item>
  241. <item>
  242. <label>SATO(CT400)</label>
  243. <value>6</value>
  244. </item>
  245. <item>
  246. <label>Auto labeler</label>
  247. <value>3</value>
  248. </item>
  249. <item>
  250. <label>SATO(old)</label>
  251. <value>7</value>
  252. </item>
  253. <item>
  254. <label>B472</label>
  255. <value>8</value>
  256. </item>
  257. <item>
  258. <label>Zebra(300dpi)</label>
  259. <value>9</value>
  260. </item>
  261. <item>
  262. <label>Zebra(200dpi)</label>
  263. <value>11</value>
  264. </item>
  265. <item>
  266. <label>Zebra(EPL)</label>
  267. <value>10</value>
  268. </item>
  269. </choices>
  270. <script type="javascript" ev:event="xforms-value-changed">
  271. <![CDATA[
  272. fSetB472size();
  273. ]]>
  274. </script>
  275. </select1>
  276. <caption id="caption2" class="tit_2" style="left:5px; top:131px; width:95px; height:13px; ">설정정보</caption>
  277. <line id="line5" class="line_1" style="x1:0px; y1:146px; x2:310px; y2:146px; "/>
  278. <line id="line3" class="line_3" style="x1:0px; y1:77px; x2:310px; y2:77px; "/>
  279. <group id="grp_comm03" style="left:0px; top:150px; width:310px; height:120px; ">
  280. <caption id="caption6" class="cell_1" style="left:0px; top:0px; width:100px; height:23px; ">IP Address</caption>
  281. <line id="line7" class="line_3" style="x1:0px; y1:22px; x2:310px; y2:22px; "/>
  282. <input id="ipt_setupval03" ref="/root/hidden/setupinfo/comm03/setupval" style="left:103px; top:1px; width:207px; height:19px; "/>
  283. </group>
  284. <group id="grp_comm01" style="left:0px; top:150px; width:310px; height:120px; ">
  285. <caption id="caption5" class="cell_1" style="left:0px; top:0px; width:100px; height:23px; ">설정정보</caption>
  286. <line id="line6" class="line_3" style="x1:0px; y1:22px; x2:310px; y2:22px; "/>
  287. <input id="ipt_setupval01" ref="/root/hidden/setupinfo/comm01/setupval" style="left:103px; top:1px; width:207px; height:19px; "/>
  288. </group>
  289. <group id="grp_comm02" style="left:0px; top:150px; width:310px; height:120px; ">
  290. <line id="line12" class="line_2" style="x1:0px; y1:47px; x2:310px; y2:47px; "/>
  291. <caption id="caption10" class="cell_1" style="left:0px; top:25px; width:100px; height:23px; ">Data bit</caption>
  292. <line id="line13" class="line_2" style="x1:0px; y1:71px; x2:310px; y2:71px; "/>
  293. <caption id="caption11" class="cell_1" style="left:0px; top:49px; width:100px; height:23px; ">Stop Bit</caption>
  294. <line id="line14" class="line_2" style="x1:0px; y1:95px; x2:310px; y2:95px; "/>
  295. <caption id="caption12" class="cell_1" style="left:0px; top:73px; width:100px; height:23px; ">Baud Rate</caption>
  296. <caption id="caption13" class="cell_1" style="left:0px; top:97px; width:100px; height:23px; ">Parity</caption>
  297. <select1 id="cmb_stopbit" ref="/root/hidden/setupinfo/comm02/stopbit" class="combo_default" appearance="minimal" style="left:103px; top:50px; width:207px; height:19px; ">
  298. <choices>
  299. <item>
  300. <label>1 bit</label>
  301. <value>1</value>
  302. </item>
  303. <item>
  304. <label>2 bit</label>
  305. <value>2</value>
  306. </item>
  307. </choices>
  308. </select1>
  309. <select1 id="cmb_parity" ref="/root/hidden/setupinfo/comm02/parity" class="combo_default" appearance="minimal" style="left:103px; top:98px; width:207px; height:19px; ">
  310. <choices>
  311. <item>
  312. <label>None</label>
  313. <value>n</value>
  314. </item>
  315. <item>
  316. <label>Even</label>
  317. <value>e</value>
  318. </item>
  319. <item>
  320. <label>Odd</label>
  321. <value>o</value>
  322. </item>
  323. </choices>
  324. </select1>
  325. <select1 id="cmb_databit" ref="/root/hidden/setupinfo/comm02/databit" class="combo_default" appearance="minimal" style="left:103px; top:27px; width:207px; height:19px; ">
  326. <choices>
  327. <item>
  328. <label>7 bit</label>
  329. <value>7</value>
  330. </item>
  331. <item>
  332. <label>8 bit</label>
  333. <value>8</value>
  334. </item>
  335. </choices>
  336. </select1>
  337. <line id="line16" class="line_2" style="x1:0px; y1:23px; x2:310px; y2:23px; "/>
  338. <caption id="caption14" class="cell_1" style="left:0px; top:1px; width:100px; height:23px; ">COM Port</caption>
  339. <select1 id="cmb_comport" ref="/root/hidden/setupinfo/comm02/comm" class="combo_default" appearance="minimal" style="left:103px; top:3px; width:207px; height:19px; ">
  340. <choices>
  341. <item>
  342. <label>COM1</label>
  343. <value>1</value>
  344. </item>
  345. <item>
  346. <label>COM2</label>
  347. <value>2</value>
  348. </item>
  349. <item>
  350. <label>COM3</label>
  351. <value>3</value>
  352. </item>
  353. <item>
  354. <label>COM4</label>
  355. <value>4</value>
  356. </item>
  357. <item>
  358. <label>COM5</label>
  359. <value>5</value>
  360. </item>
  361. <item>
  362. <label>COM6</label>
  363. <value>6</value>
  364. </item>
  365. <item>
  366. <label>COM7</label>
  367. <value>7</value>
  368. </item>
  369. </choices>
  370. </select1>
  371. <line id="line15" class="line_3" style="x1:0px; y1:119px; x2:310px; y2:119px; "/>
  372. <input id="ipt_raudrate" ref="/root/hidden/setupinfo/comm02/baudrate" style="left:103px; top:75px; width:207px; height:19px; "/>
  373. </group>
  374. <caption id="caption7" class="tit_2" style="left:0px; top:85px; width:95px; height:14px; ">여백</caption>
  375. <line id="line8" class="line_1" style="x1:0px; y1:100px; x2:310px; y2:100px; "/>
  376. <caption id="caption8" class="cell_1" style="left:0px; top:105px; width:60px; height:23px; ">LEFT</caption>
  377. <input id="input1" ref="/root/hidden/setupinfo/blank/left" style="left:63px; top:107px; width:72px; height:19px; "/>
  378. <input id="input2" ref="/root/hidden/setupinfo/blank/top" style="left:216px; top:107px; width:72px; height:19px; "/>
  379. <caption id="caption9" class="cell_1" style="left:153px; top:105px; width:60px; height:23px; ">TOP</caption>
  380. <caption id="cap_b472" visibility="hidden" style="left:100px; top:80px; width:60px; height:20px; color:#000000; ">용지size</caption>
  381. <select1 id="rdo_b472" ref="/root/hidden/setupinfo/blank/b472size" visibility="hidden" appearance="full" cellspacing="14" cols="2" overflow="visible" style="left:160px; top:81px; width:150px; height:20px; border-style:none; ">
  382. <choices>
  383. <item>
  384. <label>3.5 X 5.5</label>
  385. <value>1</value>
  386. </item>
  387. <item>
  388. <label>3.2 X 6.3</label>
  389. <value>2</value>
  390. </item>
  391. </choices>
  392. </select1>
  393. </group>
  394. </xhtml:body>
  395. </xhtml:html>