SSMRC_Scan.xrw 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <pat>
  11. <patno/>
  12. <class>I</class>
  13. <seq/>
  14. <indexcode/>
  15. <chartpage/>
  16. <instcd/>
  17. </pat>
  18. <treat>
  19. <treatno/>
  20. <class/>
  21. <instcd/>
  22. <chkdate/>
  23. <chkusrid/>
  24. <ocr/>
  25. <old/>
  26. <all/>
  27. </treat>
  28. <scaninfo>
  29. <patid/>
  30. <class/>
  31. <fileno/>
  32. <pathid/>
  33. <scanuser/>
  34. <scandate/>
  35. <scanpage/>
  36. <instcd/>
  37. <page/>
  38. <clincode/>
  39. </scaninfo>
  40. <paget>
  41. <pageno/>
  42. </paget>
  43. <delimage>
  44. <treatno/>
  45. <fileno/>
  46. <instcd/>
  47. <imageno/>
  48. </delimage>
  49. <newElement/>
  50. <ltp>
  51. <active/>
  52. <alias/>
  53. <instcd/>
  54. </ltp>
  55. </send>
  56. <main>
  57. <patientinfo>
  58. <ptnm/>
  59. <sex/>
  60. <jumin/>
  61. </patientinfo>
  62. <treatinfo>
  63. <patid/>
  64. <name/>
  65. <class/>
  66. <clincode/>
  67. <clinname/>
  68. <indate/>
  69. <treatno/>
  70. </treatinfo>
  71. <ltpindexinfo>
  72. <ltpindexserver/>
  73. <ltpindexport/>
  74. <ltpindexuser/>
  75. <ltpindexpath/>
  76. <pathid/>
  77. </ltpindexinfo>
  78. <paget>
  79. <pageno/>
  80. </paget>
  81. </main>
  82. <cond>
  83. <scanload/>
  84. </cond>
  85. <user>
  86. <scanuser/>
  87. <instcd/>
  88. <class/>
  89. <pathid/>
  90. </user>
  91. </root>
  92. </instance>
  93. <submission id="TRMPL03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/pat" replace="instance" resultref="/root/main/patientinfo"/>
  94. <submission id="TRMPL03302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/pat" replace="instance" resultref="/root/main/treatinfo"/>
  95. <submission id="TRMPL03307" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ltp" replace="instance" resultref="/root/main/ltpindexinfo"/>
  96. <submission id="TRMPL03311" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/main/now"/>
  97. <submission id="TXMPL03309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/imageinfo"/>
  98. <submission id="TRMPL03313" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/pat" replace="instance" resultref="/root/main/chartinfo"/>
  99. <submission id="TXMPL03314" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/pat" replace="instance"/>
  100. <submission id="TXMPL03315" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/pat" replace="instance"/>
  101. <submission id="TRMPL03316" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paget" resultref="/root/main/imgpath"/>
  102. <submission id="TXMPL03317" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/delimage/pageno"/>
  103. <submission id="TXMPL03319" method="post" ref="/root/send/delimage/pageno"/>
  104. <submission id="TXMPL03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paget" resultref="/root/main/paget"/>
  105. <submission id="TRMPL03309" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/paget"/>
  106. <submission id="TXMPL03302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paget" resultref="/root/main/paget"/>
  107. <submission id="TXMPL03318" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/delimage"/>
  108. <submission id="TXMPL03316" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/scaninfo"/>
  109. <submission id="TXMPL03307" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/scaninfo"/>
  110. <submission id="TRMPL03310" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond/scanset" resultref="/root/main/scanset"/>
  111. <submission id="TXMPL03312" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/scanset"/>
  112. <submission id="TXMPL03313" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/scanset"/>
  113. <submission id="TXMPL03321" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paget"/>
  114. <submission id="TXMPL03308" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/chartpaget"/>
  115. <submission id="TXMPL03322" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/chartpaget"/>
  116. <submission id="TRMPL03314" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bookmarkindex" resultref="/root/main/bookmarkindex"/>
  117. <submission id="TXMPL03324" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bookmarkindex"/>
  118. <submission id="TXMPL03325" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bookmarkindex"/>
  119. <submission id="TXMPL03326" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bookmarkindex"/>
  120. <submission id="TXMPL03327" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bookmarkindex"/>
  121. <submission id="TXMPL03328" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bookmarkindex"/>
  122. <submission id="TXMPL03330" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/compyn"/>
  123. <submission id="TXMPL03331" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/checkedlogt"/>
  124. <submission id="TXMPL03329" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/delimage"/>
  125. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  126. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  127. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  128. <script type="javascript" src="../../../emr/imgemrweb/js/SSMRC03300.js"/>
  129. <script id="script1" type="javascript" ev:event="xforms-ready">
  130. <![CDATA[
  131. var patid = "93888";
  132. var patnm = "미스포춘";
  133. var ioflag = "O";
  134. var clincode = "2010300000";
  135. var clinname = "테스트";
  136. var indate = "20130507";
  137. var treatno = "171344500";
  138. var formcode = "1300013608";
  139. var server = model.getvalue("/root/main/ltpscaninfo/ltpscanserver");
  140. var port = model.getvalue("/root/main/ltpscaninfo/ltpscanport");
  141. var user = model.getvalue("/root/main/ltpscaninfo/ltpscanuser");
  142. var path = model.getvalue("/root/main/ltpscaninfo/ltpscanpath");
  143. var pathid = model.getvalue("/root/main/ltpscaninfo/pathid");
  144. var indexpath = model.getvalue("/root/main/ltpindexinfo/ltpindexpath");
  145. var instcd = getUserInfo("dutplceinstcd");
  146. var scanuser = getUserInfo("userid");
  147. model.setValue("/root/user/instcd", instcd);
  148. model.setValue("/root/user/scanuser", scanuser);
  149. //submit("TRMPL03311");
  150. //alert(model.getValue("/root/main/now"));
  151. getltpInfo1();
  152. alert(server);
  153. LTPInit(server, port, user)
  154. model.setValue("/root/main/treatinfo/patid", patid);
  155. model.setValue("/root/main/treatinfo/name", patnm);
  156. model.setValue("/root/main/treatinfo/class", ioflag);
  157. model.setValue("/root/main/treatinfo/clincode", clincode);
  158. model.setValue("/root/main/treatinfo/clinname", clinname);
  159. model.setValue("/root/main/treatinfo/indate", indate);
  160. model.setValue("/root/main/treatinfo/treatno", treatno);
  161. iviewer1.window.javascript.scanview_setChartViewerSize(parseInt(iviewer1.attribute("width")), parseInt(iviewer1.attribute("height")), 60, 64);
  162. iviewer1.window.javascript.scanview_setupChart("TV");
  163. //DelLocalFolder();
  164. //model.setvalue("/root/send/treat/chkusrid", parent.model.getValue("/root/user/scanuser"))
  165. //model.setvalue("/root/send/treat/instcd", parent.model.getValue("/root/user/instcd"))
  166. ]]>
  167. </script>
  168. <submission id="TXMPL03334" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/compyn"/>
  169. <submission id="TRMPL03323" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/compyn" resultref="/root/main/compyn"/>
  170. <submission id="TXMPL03335" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/compyn"/>
  171. <submission id="TRMPL03328" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ocstreat"/>
  172. <submission id="TXMPL03340" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bookmarkindex"/>
  173. <submission id="TXMPL03341" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bookmarkindex"/>
  174. <submission id="TXMPL03342" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/treat"/>
  175. </model>
  176. </xhtml:head>
  177. <xhtml:body style="background-color:#a0daf0; ">
  178. <object id="f_preview" clsid="{26a5a05a-2193-4ee2-a064-f04d3c37705a}" style="left:1015px; top:40px; width:0px; height:0px; "/>
  179. <iviewer id="iviewer1" src="./SSMRC11100_View.xrw" style="left:0px; top:165px; width:710px; height:695px; color:#ffffff; background-color:transparent; "/>
  180. <group id="group5" style="left:0px; top:0px; width:710px; height:30px; ">
  181. <group id="group1" style="left:0px; top:0px; width:710px; height:30px; ">
  182. <group id="group2" style="left:0px; top:0px; width:710px; height:30px; ">
  183. <script type="javascript" ev:event="onclick">
  184. <![CDATA[
  185. ]]>
  186. </script>
  187. <shape id="roundrect5" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:710px; height:30px; "/>
  188. <button id="button1" class="btn2_letter4" style="left:120px; top:5px; width:64px; height:19px; ">
  189. <caption>스캔설정</caption>
  190. <script type="javascript" ev:event="onclick">
  191. <![CDATA[
  192. f_Twain.ShowDialogConfig();
  193. ]]>
  194. </script>
  195. </button>
  196. <button id="btn_scanconn" class="btn2_letter4" style="left:45px; top:5px; width:64px; height:19px; ">
  197. <caption>스캔연결</caption>
  198. <script type="javascript" ev:event="onclick">
  199. <![CDATA[
  200. if (chkScanLoad.value == "Y")
  201. {
  202. f_Twain.ScannerUnload();
  203. f_Twain.ShowDialogSelect();
  204. if (f_Twain.ScannerLoad("") == true)
  205. {
  206. chkScanLoad.value = "Y"
  207. }
  208. }
  209. else
  210. {
  211. f_Twain.ShowDialogSelect();
  212. if (f_Twain.ScannerLoad("") == true)
  213. {
  214. chkScanLoad.value = "Y"
  215. }
  216. }
  217. ]]>
  218. </script>
  219. </button>
  220. <button id="button2" class="btn2_letter4" style="left:235px; top:5px; width:64px; height:19px; ">
  221. <caption>스캔하기</caption>
  222. <script type="javascript" ev:event="onclick">
  223. <![CDATA[
  224. var localpath = "C:\\Chrysanthemum.jpg";
  225. model.setValue("/root/send/paget/patid", patid);
  226. model.setValue("/root/send/paget/name", patnm);
  227. model.setValue("/root/send/paget/class", ioflag);
  228. model.setValue("/root/send/paget/clincode", clincode);
  229. model.setValue("/root/send/paget/clinname", clinname);
  230. model.setValue("/root/send/paget/indate", indate);
  231. model.setValue("/root/send/paget/treatno", treatno);
  232. ]]>
  233. </script>
  234. </button>
  235. <select id="chkScanLoad" ref="/root/cond/scanload" overflow="visible" appearance="full" style="left:10px; top:5px; width:25px; height:20px; border-style:none; ">
  236. <choices>
  237. <item>
  238. <label/>
  239. <value>Y</value>
  240. </item>
  241. </choices>
  242. <script type="javascript" ev:event="xforms-value-changed">
  243. <![CDATA[
  244. if (chkScanLoad.value == "")
  245. {
  246. f_Twain.ScannerUnload();
  247. }
  248. ]]>
  249. </script>
  250. </select>
  251. <object id="f_Twain" clsid="{84197cbf-2da9-469c-8bb1-41333e613854}" style="left:470px; top:5px; width:70px; height:25px; ">
  252. <script type="javascript" ev:event="PageEnd(PageSeq, PageInFile, FilePath)">
  253. <![CDATA[
  254. Scan1(FilePath)
  255. ]]>
  256. </script>
  257. </object>
  258. <object id="f_ltp" clsid="{b8637779-ef35-4290-9c7a-f1842f40c2fe}" style="left:575px; top:5px; width:80px; height:20px; "/>
  259. </group>
  260. </group>
  261. </group>
  262. <datagrid id="dg_treat" nodeset="/root/main/treatinfo" caption="환자번호^환자명^IO^진료과^진료과명^진료일^treatno" colsep="^" colwidth="120, 120, 30, 70, 100, 100, 100" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:70px; width:710px; height:95px; ">
  263. <col ref="patid" style="text-align:center; "/>
  264. <col ref="name" style="text-align:center; "/>
  265. <col ref="class" style="text-align:center; "/>
  266. <col ref="clincode" style="text-align:center; "/>
  267. <col ref="clinname" style="text-align:center; "/>
  268. <col ref="indate" style="text-align:center; "/>
  269. <col ref="treatno" style="text-align:center; "/>
  270. <script type="javascript" ev:event="onclick">
  271. <![CDATA[
  272. model.setValue("/root/cond/viewmode", "tv");
  273. if(dg_treat .isCell(event.target) && dg_treat.row >= dg_treat.fixedRows ){
  274. iviewer1.window.javascript.ClearChart();
  275. iviewer2.window.javascript.ClearChart();
  276. model.setvalue("/root/send/scaninfo/patid", dg_treat.valueMatrix(dg_treat.row, dg_treat.colref("patid")))
  277. model.setvalue("/root/send/scaninfo/class", dg_treat.valueMatrix(dg_treat.row, dg_treat.colref("class")))
  278. model.setvalue("/root/send/scaninfo/clincode", dg_treat.valueMatrix(dg_treat.row, dg_treat.colref("clincode")))
  279. model.setvalue("/root/send/treat/treatno", dg_treat.valueMatrix(dg_treat.row, dg_treat.colref("treatno")))
  280. model.setvalue("/root/send/checkedlogt/treatno", dg_treat.valueMatrix(dg_treat.row, dg_treat.colref("treatno")))
  281. model.setvalue("/root/send/beforeclick/treat", dg_treat.row)
  282. model.setvalue("/root/send/paget/treatno", dg_treat.valueMatrix(dg_treat.row, dg_treat.colref("treatno")))
  283. model.setvalue("/root/send/paget/oldtreatno", dg_treat.valueMatrix(dg_treat.row, dg_treat.colref("treatno")))
  284. model.setvalue("/root/send/paget/instcd", parent.model.getValue("/root/user/instcd"))
  285. model.setvalue("/root/send/paget/findrow", "1");
  286. if(submit("TRMPL03308")){
  287. var count = getNodesetCount("/root/main/scaninfo/fileno");
  288. }
  289. //count = iviewer1.window.javascript.f_View.PageTotal;
  290. if (chk_indexlist.value == "Y")
  291. {
  292. submit("TRMPL03303");
  293. }
  294. else
  295. {
  296. submit("TRMPL03304");
  297. }
  298. submit("TRMPL03314");
  299. iviewer1.f_View.PageRemove(0,0);
  300. iviewer1.window.javascript.downloadChart(count, "scan");
  301. iviewer1.window.javascript.imgload(count, "scan");
  302. //iviewer1.model.setValue("/root/main/chartinfo/pagetotal", f1.window.javascript.f_View.PageTotal);
  303. }
  304. if( isDataCell() ){
  305. //alert("그리드 클릭 이벤트 처리할 스크립트");
  306. }
  307. if (dg_treat.valueMatrix(dg_treat.row, dg_treat.colref("checked")) == "Y")
  308. {
  309. btn_compyn1.value = "미완료"
  310. }
  311. else
  312. {
  313. btn_compyn1.value = "완료"
  314. }
  315. ]]>
  316. </script>
  317. </datagrid>
  318. <group id="group_pat" style="left:0px; top:30px; width:710px; height:40px; ">
  319. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:710px; height:37px; background-color:#fffbf2; border-color:#ffd799; "/>
  320. <input id="ipt_pid" ref="/root/send/pat/patno" class="input_s_essential" navindex="1" autonext="false" maxlength="9" style="left:65px; top:10px; width:75px; height:19px; ">
  321. <script type="javascript" ev:event="onkeypress">
  322. <![CDATA[
  323. if (event.keyCode == 13)
  324. {
  325. if (chk_sync.value == "Y")
  326. {
  327. model.setValue("/root/send/ocstreat/instcd", getUserInfo("dutplceinstcd"));
  328. model.setValue("/root/send/ocstreat/pid", ipt_pid.currentText);
  329. submit("TRMPL03328");
  330. }
  331. btn_Search.dispatch("onclick");
  332. }
  333. ]]>
  334. </script>
  335. </input>
  336. <caption id="caption21" class="cell_1" style="left:3px; top:7px; width:60px; height:23px; text-align:center; ">등록번호</caption>
  337. <input id="ipt_hngnm" ref="/root/main/patientinfo/ptnm" class="input_s_essential" navindex="2" autonext="false" imemode="hangul" style="left:145px; top:10px; width:80px; height:19px; ">
  338. <script type="javascript" ev:event="onkeypress">
  339. <![CDATA[
  340. //fPnmKeyPress();
  341. ]]>
  342. </script>
  343. </input>
  344. <button id="btn_Search" style="left:150px; top:10px; width:0px; height:0px; ">
  345. <caption>조회</caption>
  346. <script type="javascript" ev:event="onclick">
  347. <![CDATA[
  348. var ioflag;
  349. var patid;
  350. model.setValue("/root/send/pat/instcd", parent.model.getValue("/root/user/instcd"));
  351. model.setValue("/root/send/treat/instcd", parent.model.getValue("/root/user/instcd"));
  352. model.setValue("/root/send/scaninfo/pathid", parent.model.getValue("/root/user/pathid"));
  353. model.setvalue("/root/send/scaninfo/scanuser", parent.model.getValue("/root/user/scanuser"));
  354. var indexpathid = parent.model.getvalue("/root/main/ltpindexinfo/pathid");
  355. model.setvalue("/root/send/scaninfo/instcd", parent.model.getValue("/root/user/instcd"));
  356. patid = "000000000" + ipt_pid.currentText ;
  357. patid = patid.substr( 9 - (9 - ipt_pid.currentText.length) ,9);
  358. ipt_pid.currentText = patid ;
  359. model.setValue("/root/send/pat/patno", ipt_pid.currentText);
  360. // 환자정보를 얻는다.
  361. if (radioIO.value == "I")
  362. {
  363. ioflag = "I";
  364. model.setValue("/root/send/pat/class", ioflag);
  365. }
  366. else if( radioIO.value == "O")
  367. {
  368. ioflag = "O";
  369. model.setValue("/root/send/pat/class", ioflag);
  370. }
  371. else
  372. {
  373. ioflag = "A";
  374. model.setValue("/root/send/pat/class", ioflag);
  375. }
  376. submit("TRMPL03301");
  377. submit("TRMPL03302");
  378. model.setvalue("/root/send/treat/treatno", dg_treat.valueMatrix(dg_treat.row, dg_treat.colref("treatno")))
  379. submit("TRMPL03304");
  380. dg_treat.row = 1;
  381. model.refresh();
  382. iviewer1.window.javascript.ClearChart();
  383. iviewer2.window.javascript.ClearChart();
  384. model.setvalue("/root/send/scaninfo/patid", dg_treat.valueMatrix(dg_treat.row, dg_treat.colref("patid")))
  385. model.setvalue("/root/send/scaninfo/class", dg_treat.valueMatrix(dg_treat.row, dg_treat.colref("class")))
  386. model.setvalue("/root/send/treat/class", ioflag)
  387. model.setvalue("/root/send/beforeclick/treat", dg_treat.row)
  388. ]]>
  389. </script>
  390. </button>
  391. </group>
  392. <script type="javascript" ev:event="onkeydown">
  393. <![CDATA[
  394. var formcode;
  395. if (event.shiftKey == 1)
  396. {
  397. switch(event.keyCode)
  398. {
  399. case 48:
  400. btn_set0.dispatch("onclick");
  401. break;
  402. case 49:
  403. btn_set1.dispatch("onclick");
  404. break;
  405. case 50:
  406. btn_set2.dispatch("onclick");
  407. break;
  408. case 51:
  409. btn_set3.dispatch("onclick");
  410. break;
  411. case 52:
  412. btn_set4.dispatch("onclick");
  413. break;
  414. case 53:
  415. btn_set5.dispatch("onclick");
  416. break;
  417. case 54:
  418. btn_set6.dispatch("onclick");
  419. break;
  420. case 55:
  421. btn_set7.dispatch("onclick");
  422. break;
  423. case 56:
  424. btn_set8.dispatch("onclick");
  425. break;
  426. case 57:
  427. btn_set9.dispatch("onclick");
  428. break;
  429. case 83:
  430. btn_compyn.dispatch("onclick");
  431. break;
  432. case 82:
  433. //R
  434. break;
  435. case 84:
  436. //T
  437. btn_feed1.disabled = "true";
  438. btn_feed2.disabled = "false";
  439. btn_feed3.disabled = "false";
  440. btn_color1.disabled = "false";
  441. btn_color2.disabled = "true";
  442. btn_color3.disabled = "false";
  443. model.setValue("/root/main/combodpi", "200dpi");
  444. model.setValue("/root/main/combosize", "A4");
  445. model.setValue("/root/main/combofront", "Front0");
  446. model.setValue("/root/main/comboback", "Back0");
  447. btn_scanadd.dispatch("onclick");
  448. break;
  449. case 88:
  450. //X
  451. case 89:
  452. //Y
  453. break;
  454. case 90:
  455. //Z
  456. break;
  457. case 81:
  458. alert("Q");
  459. break;
  460. case 87:
  461. alert("W");
  462. break;
  463. case 69:
  464. alert("E");
  465. break;
  466. case 82:
  467. alert("R");
  468. break;
  469. case 84:
  470. alert("T");
  471. break;
  472. case 89:
  473. alert("Y");
  474. break;
  475. case 85:
  476. alert("U");
  477. break;
  478. case 73:
  479. alert("I");
  480. break;
  481. case 79:
  482. alert("O");
  483. break;
  484. case 80:
  485. alert("P");
  486. break;
  487. }
  488. }
  489. switch(event.keyCode)
  490. {
  491. case 37:
  492. if (iviewer1.model.getValue("/root/cond/rdo_viewmode") == "PV")
  493. {
  494. iviewer1.button10.dispatch("onclick");
  495. }
  496. break;
  497. case 38:
  498. case 39:
  499. if (iviewer1.model.getValue("/root/cond/rdo_viewmode") == "PV")
  500. {
  501. iviewer1.button11.dispatch("onclick");
  502. }
  503. break;
  504. case 40:
  505. case 41:
  506. case 42:
  507. case 113:
  508. case 116:
  509. //F5
  510. btn_scanadd.dispatch("onclick");
  511. break;
  512. case 117:
  513. //F6
  514. btn_scanins.dispatch("onclick");
  515. break;
  516. case 118:
  517. //F7
  518. btn_scanrep.dispatch("onclick");
  519. break;
  520. }
  521. ]]>
  522. </script>
  523. </xhtml:body>
  524. </xhtml:html>