SPRPZ00700_바코드프린터설정.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPRPZ00700_바코드프린터설정.xrw
  4. * 설 명 : 바코드프린터설정
  5. * 설 계 자 : (주)현대정보기술 Jung Sungwook
  6. * 작 성 자 : (주)현대정보기술 Jung Sungwook
  7. * 작 성 일 : 2009.06.09
  8. * 수정이력 : 2009.06.09 Jung Sungwook
  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. </blank>
  58. </setupinfo>
  59. </hidden>
  60. </root>
  61. </instance>
  62. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  65. <script type="javascript" src="../../../lis/commonweb/js/MIS.js"/>
  66. <script type="javascript" ev:event="xforms-model-construct-done">
  67. <![CDATA[
  68. fGetSetUpInfo();
  69. fInitionalData();
  70. fCommKind_Select();
  71. model.refresh();
  72. ]]>
  73. </script>
  74. <submission id="TXRPZ00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prntsetup" replace="instance"/>
  75. <submission id="TRRPZ00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
  76. </model>
  77. <script type="javascript">
  78. <![CDATA[
  79. //초기화
  80. function fInitionalData() {
  81. var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
  82. if(count == 0 && getUserInfo("dutplceinstcd") != "012") {
  83. model.setValue("/root/hidden/setupinfo/prntkind", "0");
  84. model.setValue("/root/hidden/setupinfo/commkind", "01");
  85. model.setValue("/root/hidden/setupinfo/comm01/setupval", "");
  86. model.setValue("/root/hidden/setupinfo/comm02/comm", "1");
  87. model.setValue("/root/hidden/setupinfo/comm02/databit", "8");
  88. model.setValue("/root/hidden/setupinfo/comm02/stopbit", "1");
  89. model.setValue("/root/hidden/setupinfo/comm02/baudrate", "9600");
  90. model.setValue("/root/hidden/setupinfo/comm02/parity", "n");
  91. model.setValue("/root/hidden/setupinfo/comm02/setupval", "");
  92. model.setValue("/root/hidden/setupinfo/comm03/setupval", "");
  93. model.setValue("/root/hidden/setupinfo/blank/left", "0");
  94. model.setValue("/root/hidden/setupinfo/blank/top", "0");
  95. }else if(count == 0 && getUserInfo("dutplceinstcd") == "012") {
  96. model.setValue("/root/hidden/setupinfo/prntkind", "1");
  97. model.setValue("/root/hidden/setupinfo/commkind", "02");
  98. model.setValue("/root/hidden/setupinfo/comm01/setupval", "");
  99. model.setValue("/root/hidden/setupinfo/comm02/comm", "2");
  100. model.setValue("/root/hidden/setupinfo/comm02/databit", "8");
  101. model.setValue("/root/hidden/setupinfo/comm02/stopbit", "1");
  102. model.setValue("/root/hidden/setupinfo/comm02/baudrate", "9600");
  103. model.setValue("/root/hidden/setupinfo/comm02/parity", "n");
  104. model.setValue("/root/hidden/setupinfo/comm02/setupval", "");
  105. model.setValue("/root/hidden/setupinfo/comm03/setupval", "");
  106. model.setValue("/root/hidden/setupinfo/blank/left", "0");
  107. model.setValue("/root/hidden/setupinfo/blank/top", "0");
  108. }
  109. }
  110. //프린터선택
  111. function fCommKind_Select() {
  112. var vSel = model.getValue("/root/hidden/setupinfo/commkind");
  113. if ( vSel == "01" ) {
  114. grp_comm01.visible = true;
  115. grp_comm02.visible = false;
  116. grp_comm03.visible = false;
  117. model.setfocus("ipt_setupval01");
  118. } else if (vSel == "02") {
  119. grp_comm01.visible = false;
  120. grp_comm02.visible = true;
  121. grp_comm03.visible = false;
  122. } else if (vSel == "03") {
  123. grp_comm01.visible = false;
  124. grp_comm02.visible = false;
  125. grp_comm03.visible = true;
  126. model.setfocus("ipt_setupval03");
  127. }
  128. }
  129. //조회
  130. function fGetSetUpInfo() {
  131. copyNodeType("/root/hidden/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  132. if(getNodesetCount("/root/hidden/setupinfo/blank") == 0) {
  133. model.makeNode("/root/hidden/setupinfo/blank");
  134. model.makeValue("/root/hidden/setupinfo/blank/left", "0");
  135. model.makeValue("/root/hidden/setupinfo/blank/top", "0");
  136. }
  137. }
  138. //저장
  139. function fSetbarcdprt(){
  140. var node = instance1.selectSingleNode("/root/hidden/setupinfo");
  141. var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
  142. model.setValue("/root/hidden/barcdprntsinfo/scrnid", opener.javascript.getScreenID());
  143. model.setValue("/root/hidden/barcdprntsinfo/prntsetupinfo", node.xml, true);
  144. if(count > 0) {
  145. model.setValue("/root/hidden/barcdprntsinfo/flag", "1");
  146. } else {
  147. model.setValue("/root/hidden/barcdprntsinfo/flag", "0");
  148. }
  149. copyNodeType("/root/send/prntsetup","/root/hidden/barcdprntsinfo");
  150. if (!submit("TXRPZ00701")) {
  151. messageBox("바코드프린터 설정에", "E009");
  152. }
  153. model.copyNode(opener.root.main.barcdprntsetup.prntsetupinfo.setupinfo, root.hidden.setupinfo);
  154. window.close();
  155. }
  156. ]]>
  157. </script>
  158. </xhtml:head>
  159. <xhtml:body pagewidth="360" pageheight="340" guideline="1,1194;" style="font-family:굴림체; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  160. <group id="group2" style="left:0px; top:270px; width:311px; height:27px; ">
  161. <button id="btn_cnfm" class="btn4_letter2" style="left:195px; top:5px; width:56px; height:22px; ">
  162. <caption>확인</caption>
  163. <script type="javascript" ev:event="DOMActivate">
  164. <![CDATA[
  165. fSetbarcdprt();
  166. ]]>
  167. </script>
  168. </button>
  169. <button id="btn_cancle" class="btn4_letter2" style="left:254px; top:5px; width:56px; height:22px; ">
  170. <caption>취소</caption>
  171. <script type="javascript" ev:event="DOMActivate">
  172. <![CDATA[
  173. window.close();
  174. ]]>
  175. </script>
  176. </button>
  177. <line id="line2" class="line_6" style="x1:0px; y1:0px; x2:311px; y2:0px; "/>
  178. </group>
  179. <group id="group1" style="left:0px; top:0px; width:310px; height:270px; ">
  180. <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:310; y2:26px; "/>
  181. <line id="line4" class="line_2" style="x1:0px; y1:53px; x2:310px; y2:53px; "/>
  182. <caption id="caption1" class="tit_2" style="left:5px; top:11px; width:126px; height:14px; ">바코드프린터 설정</caption>
  183. <caption id="caption3" class="cell_1" style="left:0px; top:31px; width:100px; height:23px; ">프린터종류</caption>
  184. <caption id="caption4" class="cell_1" style="left:0px; top:55px; width:100px; height:23px; ">통신유형</caption>
  185. <select1 id="rdo_commkind" ref="/root/hidden/setupinfo/commkind" overflow="visible" appearance="full" cellspacing="25" cols="3" style="left:103px; top:56px; width:207px; height:20px; border-style:none; ">
  186. <choices>
  187. <item>
  188. <label>PRT</label>
  189. <value>01</value>
  190. </item>
  191. <item>
  192. <label>COM</label>
  193. <value>02</value>
  194. </item>
  195. <item>
  196. <label>TCP/IP</label>
  197. <value>03</value>
  198. </item>
  199. </choices>
  200. <script type="javascript" ev:event="xforms-select">
  201. <![CDATA[
  202. fCommKind_Select();
  203. ]]>
  204. </script>
  205. </select1>
  206. <select1 id="cmb_prntkind" ref="/root/hidden/setupinfo/prntkind" class="combo_default" appearance="minimal" style="left:103px; top:32px; width:207px; height:19px; ">
  207. <choices>
  208. <item>
  209. <label>없음</label>
  210. <value>0</value>
  211. </item>
  212. <item>
  213. <label>Zebra</label>
  214. <value>1</value>
  215. </item>
  216. <item>
  217. <label>Zebra(한글내장형)</label>
  218. <value>5</value>
  219. </item>
  220. <item>
  221. <label>SATO</label>
  222. <value>2</value>
  223. </item>
  224. <item>
  225. <label>SATO(CT400)</label>
  226. <value>6</value>
  227. </item>
  228. <item>
  229. <label>Auto labeler</label>
  230. <value>3</value>
  231. </item>
  232. <item>
  233. <label>SATO(old)</label>
  234. <value>7</value>
  235. </item>
  236. </choices>
  237. </select1>
  238. <caption id="caption2" class="tit_2" style="left:5px; top:131px; width:95px; height:13px; ">설정정보</caption>
  239. <line id="line5" class="line_1" style="x1:0px; y1:146px; x2:310px; y2:146px; "/>
  240. <line id="line3" class="line_3" style="x1:0px; y1:77px; x2:310px; y2:77px; "/>
  241. <group id="grp_comm03" style="left:0px; top:150px; width:310px; height:120px; ">
  242. <caption id="caption6" class="cell_1" style="left:0px; top:0px; width:100px; height:23px; ">IP Address</caption>
  243. <line id="line7" class="line_3" style="x1:0px; y1:22px; x2:310px; y2:22px; "/>
  244. <input id="ipt_setupval03" ref="/root/hidden/setupinfo/comm03/setupval" style="left:103px; top:1px; width:207px; height:19px; "/>
  245. </group>
  246. <group id="grp_comm01" style="left:0px; top:150px; width:310px; height:120px; ">
  247. <caption id="caption5" class="cell_1" style="left:0px; top:0px; width:100px; height:23px; ">설정정보</caption>
  248. <line id="line6" class="line_3" style="x1:0px; y1:22px; x2:310px; y2:22px; "/>
  249. <input id="ipt_setupval01" ref="/root/hidden/setupinfo/comm01/setupval" style="left:103px; top:1px; width:207px; height:19px; "/>
  250. </group>
  251. <group id="grp_comm02" style="left:0px; top:150px; width:310px; height:120px; ">
  252. <line id="line12" class="line_2" style="x1:0px; y1:47px; x2:310px; y2:47px; "/>
  253. <caption id="caption10" class="cell_1" style="left:0px; top:25px; width:100px; height:23px; ">Data bit</caption>
  254. <line id="line13" class="line_2" style="x1:0px; y1:71px; x2:310px; y2:71px; "/>
  255. <caption id="caption11" class="cell_1" style="left:0px; top:49px; width:100px; height:23px; ">Stop Bit</caption>
  256. <line id="line14" class="line_2" style="x1:0px; y1:95px; x2:310px; y2:95px; "/>
  257. <caption id="caption12" class="cell_1" style="left:0px; top:73px; width:100px; height:23px; ">Baud Rate</caption>
  258. <caption id="caption13" class="cell_1" style="left:0px; top:97px; width:100px; height:23px; ">Parity</caption>
  259. <select1 id="cmb_stopbit" ref="/root/hidden/setupinfo/comm02/stopbit" class="combo_default" appearance="minimal" style="left:103px; top:50px; width:207px; height:19px; ">
  260. <choices>
  261. <item>
  262. <label>1 bit</label>
  263. <value>1</value>
  264. </item>
  265. <item>
  266. <label>2 bit</label>
  267. <value>2</value>
  268. </item>
  269. </choices>
  270. </select1>
  271. <select1 id="cmb_parity" ref="/root/hidden/setupinfo/comm02/parity" class="combo_default" appearance="minimal" style="left:103px; top:98px; width:207px; height:19px; ">
  272. <choices>
  273. <item>
  274. <label>None</label>
  275. <value>n</value>
  276. </item>
  277. <item>
  278. <label>Even</label>
  279. <value>e</value>
  280. </item>
  281. <item>
  282. <label>Odd</label>
  283. <value>o</value>
  284. </item>
  285. </choices>
  286. </select1>
  287. <select1 id="cmb_databit" ref="/root/hidden/setupinfo/comm02/databit" class="combo_default" appearance="minimal" style="left:103px; top:27px; width:207px; height:19px; ">
  288. <choices>
  289. <item>
  290. <label>7 bit</label>
  291. <value>7</value>
  292. </item>
  293. <item>
  294. <label>8 bit</label>
  295. <value>8</value>
  296. </item>
  297. </choices>
  298. </select1>
  299. <line id="line16" class="line_2" style="x1:0px; y1:23px; x2:310px; y2:23px; "/>
  300. <caption id="caption14" class="cell_1" style="left:0px; top:1px; width:100px; height:23px; ">COM Port</caption>
  301. <select1 id="cmb_comport" ref="/root/hidden/setupinfo/comm02/comm" class="combo_default" appearance="minimal" style="left:103px; top:3px; width:207px; height:19px; ">
  302. <choices>
  303. <item>
  304. <label>COM1</label>
  305. <value>1</value>
  306. </item>
  307. <item>
  308. <label>COM2</label>
  309. <value>2</value>
  310. </item>
  311. </choices>
  312. </select1>
  313. <line id="line15" class="line_3" style="x1:0px; y1:119px; x2:310px; y2:119px; "/>
  314. <input id="ipt_raudrate" ref="/root/hidden/setupinfo/comm02/baudrate" style="left:103px; top:75px; width:207px; height:19px; "/>
  315. </group>
  316. <caption id="caption7" class="tit_2" style="left:0px; top:85px; width:95px; height:14px; ">여백</caption>
  317. <line id="line8" class="line_1" style="x1:0px; y1:100px; x2:310px; y2:100px; "/>
  318. <caption id="caption8" class="cell_1" style="left:0px; top:105px; width:60px; height:23px; ">LEFT</caption>
  319. <input id="input1" ref="/root/hidden/setupinfo/blank/left" style="left:63px; top:107px; width:72px; height:19px; "/>
  320. <input id="input2" ref="/root/hidden/setupinfo/blank/top" style="left:216px; top:107px; width:72px; height:19px; "/>
  321. <caption id="caption9" class="cell_1" style="left:153px; top:105px; width:60px; height:23px; ">TOP</caption>
  322. </group>
  323. </xhtml:body>
  324. </xhtml:html>