SMLLP01900_슬라이드라벨출력.xrw 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLP00300_세포유전대장.xrw
  4. * 설 명 : 세포유전대장
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 송요셉
  7. * 작 성 일 : 2009.03.17
  8. * 수정이력 : worksheet 수정해야함
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>슬라이드라벨출력</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <slidelist>
  20. <chk/>
  21. <spcacptdt/>
  22. <workno/>
  23. <pid/>
  24. <patnm/>
  25. <sexage/>
  26. <spcnm/>
  27. <tclsnm/>
  28. <prntcnt/>
  29. </slidelist>
  30. </main>
  31. <send>
  32. <codeflag/>
  33. <data/>
  34. <scrnid/>
  35. </send>
  36. <init>
  37. </init>
  38. <hidden>
  39. <ref>
  40. <fromdd/>
  41. <todd/>
  42. <execdeptcd>D1</execdeptcd>
  43. <getgbn>1</getgbn>
  44. <pattext/>
  45. <bcno/>
  46. <tclscdlist>
  47. <tclsnmlist/>
  48. <tclscdlist/>
  49. <tclscdlist2/>
  50. <testgrup/>
  51. <tclsnmlist2/>
  52. </tclscdlist>
  53. </ref>
  54. <barcd/>
  55. </hidden>
  56. <temp>
  57. <printlabel/>
  58. </temp>
  59. </root>
  60. </instance>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  65. <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
  66. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  67. <script type="javascript" ev:event="xforms-ready">
  68. <![CDATA[
  69. fSetInit();
  70. model.setValue("/root/send/scrnid", getScreenID());
  71. lzzfMakeBrcdPrntObjHanDo("CommAX");
  72. submit("TRLLC90101");
  73. ]]>
  74. </script>
  75. <submission id="TRLLF90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testgrupdetl"/>
  76. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/codeflag" replace="instance" resultref="/root/LB"/>
  77. <submission id="TRLLP01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/slidelist"/>
  78. <submission id="TRLZZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/LB01032"/>
  79. <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
  80. </model>
  81. <script type="javascript">
  82. <![CDATA[
  83. // 초기화
  84. function fSetInit(){
  85. var toDay = getCurrentDate();
  86. model.setValue("/root/hidden/ref/fromdd", toDay);
  87. model.setValue("/root/hidden/ref/todd", toDay);
  88. fBaseInfoRef("0103|0106|");
  89. model.removenode("/root/init/LB0106[1]");
  90. model.removeNodeset("/root/main/slidelist");
  91. grd_slidelist.fixedcellcheckbox(0, 1) = true;
  92. model.refresh();
  93. }
  94. // 조회
  95. function fGetSlideLabelList(){
  96. var tclscdlist = model.getValue("/root/hidden/ref/tclscdlist/tclscdlist");
  97. var pattext = model.getValue("/root/hidden/ref/pattext");
  98. model.setValue("/root/hidden/ref/bcno", "");
  99. if(pattext == ""){
  100. if(tclscdlist == ""){
  101. alert("환자명이나 등록번호 조회가 아닐 때에는 검사그룹은 필수 입니다.");
  102. return;
  103. }
  104. }
  105. model.copyNode("/root/send/data", "/root/hidden/ref");
  106. model.removeNodeset("/root/main/slidelist");
  107. submit("TRLLP01901");
  108. }
  109. function fGetSlideLabelListBcno(){
  110. model.setValue("/root/hidden/ref/pattext", "");
  111. model.copyNode("/root/send/data", "/root/hidden/ref");
  112. //model.removeNodeset("/root/main/slidelist");
  113. submit("TRLLP01901");
  114. }
  115. //엑셀저장
  116. function fExeExcel(pGridId) {
  117. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  118. if (fileName != "")
  119. {
  120. pGridId.saveExcel(fileName);
  121. }
  122. }
  123. function fSelectTestGrup(){
  124. model.makeValue("/root/send/testgrupnm", combo3.label);
  125. submit("TRLLF90401" ,false);
  126. fSetPopUpTclscdList();
  127. }
  128. function fSetPopUpTclscdList(){
  129. var count = getNodesetCount("/root/main/testgrupdetl")
  130. if(count > 0){
  131. var sendtclsnm = model.getValue("/root/main/testgrupdetl[1]/tclsnm");
  132. var sendtclsnm2 = model.getValue("/root/main/testgrupdetl[1]/tclsnm");
  133. var sendtclscd = model.getValue("/root/main/testgrupdetl[1]/tclscd");
  134. var sendtclscd2 = model.getValue("/root/main/testgrupdetl[1]/tclscd");
  135. // 검사그룹 상세 목록 없을때
  136. if(sendtclsnm == ""){
  137. model.setValue("/root/hidden/tclscdlist/tclscdlist", "");
  138. model.setValue("/root/hidden/tclscdlist/tclsnmlist", "");
  139. }else{ // 검사그룹 상세 목록 있을때
  140. for(i=2; i<= count; i++){
  141. sendtclsnm = sendtclsnm + ", " + model.getValue("/root/main/testgrupdetl["+i+"]/tclsnm");
  142. sendtclsnm2 = sendtclsnm2 + "▦ " + model.getValue("/root/main/testgrupdetl["+i+"]/tclsnm");
  143. //sendtclscd = sendtclscd + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  144. sendtclscd = sendtclscd + "','" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  145. sendtclscd2 = sendtclscd2 + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  146. }
  147. model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", sendtclsnm);
  148. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "'" + sendtclscd + "'");
  149. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist2", sendtclscd2);
  150. model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist2", sendtclsnm2);
  151. }
  152. model.refresh();
  153. }
  154. }
  155. function fSetTclscdClean(){
  156. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "");
  157. }
  158. function fExeSlideLabelPrint(){
  159. var totalcnt = 0;
  160. var rowcnt = 1;
  161. model.removeNodeset("/root/hidden/barcode");
  162. for(var sRow = 1; sRow < grd_slidelist.rows ; sRow++){
  163. var chk = model.getValue("/root/main/slidelist["+sRow+"]/chk");
  164. var etc = model.getValue("/root/main/slidelist["+sRow+"]/etc");
  165. if( chk == "true" && etc == ""){
  166. var prntcnt = model.getValue("/root/main/slidelist["+sRow+"]/prntcnt");
  167. for(var pCnt = 0 ; pCnt < prntcnt ; pCnt++){
  168. totalcnt ++;
  169. if(totalcnt%4 == 1){
  170. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno", model.getValue("/root/main/slidelist["+sRow+"]/worknoprnt"));
  171. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm", model.getValue("/root/main/slidelist["+sRow+"]/patnm"));
  172. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage", model.getValue("/root/main/slidelist["+sRow+"]/sexage"));
  173. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm", model.getValue("/root/main/slidelist["+sRow+"]/lblnm"));
  174. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt", pCnt+1);
  175. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno2", "");
  176. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm2", "");
  177. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage2", "");
  178. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm2", "");
  179. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt2", "");
  180. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno3", "");
  181. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm3", "");
  182. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage3", "");
  183. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm3", "");
  184. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt3", "");
  185. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno4", "");
  186. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm4", "");
  187. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage4", "");
  188. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm4", "");
  189. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt4", "");
  190. }else if(totalcnt%4 == 2){
  191. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno2", model.getValue("/root/main/slidelist["+sRow+"]/worknoprnt"));
  192. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm2", model.getValue("/root/main/slidelist["+sRow+"]/patnm"));
  193. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage2", model.getValue("/root/main/slidelist["+sRow+"]/sexage"));
  194. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm2", model.getValue("/root/main/slidelist["+sRow+"]/lblnm"));
  195. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt2", pCnt+1);
  196. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno3", "");
  197. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm3", "");
  198. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage3", "");
  199. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm3", "");
  200. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt3", "");
  201. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno4", "");
  202. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm4", "");
  203. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage4", "");
  204. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm4", "");
  205. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt4", "");
  206. }else if(totalcnt%4 == 3){
  207. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno3", model.getValue("/root/main/slidelist["+sRow+"]/worknoprnt"));
  208. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm3", model.getValue("/root/main/slidelist["+sRow+"]/patnm"));
  209. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage3", model.getValue("/root/main/slidelist["+sRow+"]/sexage"));
  210. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm3", model.getValue("/root/main/slidelist["+sRow+"]/lblnm"));
  211. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt3", pCnt+1);
  212. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno4", "");
  213. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm4", "");
  214. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage4", "");
  215. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm4", "");
  216. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt4", "");
  217. }else if(totalcnt%4 == 0){
  218. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno4", model.getValue("/root/main/slidelist["+sRow+"]/worknoprnt"));
  219. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm4", model.getValue("/root/main/slidelist["+sRow+"]/patnm"));
  220. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage4", model.getValue("/root/main/slidelist["+sRow+"]/sexage"));
  221. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm4", model.getValue("/root/main/slidelist["+sRow+"]/lblnm"));
  222. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt4", pCnt+1);
  223. rowcnt++;
  224. }
  225. } // for(var pCnt = 0 ; pCnt < prntcnt ; pCnt++)
  226. } // if( chk == "true")
  227. }// for(var sRow = 1; sRow < grd_slidelist.rows ; sRow++)
  228. copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
  229. fLisSpcSlideLabelPrint("/root/hidden/barcode/barcodeinfo", "1");
  230. }
  231. function fExeSlideLabelPrintH(){
  232. var totalcnt = 0;
  233. var rowcnt = 1;
  234. model.removeNodeset("/root/hidden/barcode");
  235. for(var sRow = 1; sRow < grd_slidelist.rows ; sRow++){
  236. var chk = model.getValue("/root/main/slidelist["+sRow+"]/chk");
  237. var etc = model.getValue("/root/main/slidelist["+sRow+"]/etc");
  238. var patnm = model.getValue("/root/main/slidelist["+sRow+"]/patnm");
  239. patnm = getNameInitial(patnm);
  240. if( chk == "true" && etc != ""){
  241. var prntcnt = model.getValue("/root/main/slidelist["+sRow+"]/prntcnt");
  242. for(var pCnt = 0 ; pCnt < prntcnt ; pCnt++){
  243. totalcnt ++;
  244. if(totalcnt%4 == 1){
  245. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno", model.getValue("/root/main/slidelist["+sRow+"]/spclno"));
  246. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm", patnm);
  247. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage", model.getValue("/root/main/slidelist["+sRow+"]/etc1"));
  248. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm", model.getValue("/root/main/slidelist["+sRow+"]/spclworkdd"));
  249. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt", model.getValue("/root/main/slidelist["+sRow+"]/etc2"));
  250. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno2", "");
  251. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm2", "");
  252. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage2", "");
  253. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm2", "");
  254. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt2", "");
  255. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno3", "");
  256. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm3", "");
  257. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage3", "");
  258. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm3", "");
  259. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt3", "");
  260. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno4", "");
  261. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm4", "");
  262. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage4", "");
  263. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm4", "");
  264. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt4", "");
  265. }else if(totalcnt%4 == 2){
  266. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno2", model.getValue("/root/main/slidelist["+sRow+"]/spclno"));
  267. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm2", patnm);
  268. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage2", model.getValue("/root/main/slidelist["+sRow+"]/etc1"));
  269. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm2", model.getValue("/root/main/slidelist["+sRow+"]/spclworkdd"));
  270. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt2", model.getValue("/root/main/slidelist["+sRow+"]/etc2"));
  271. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno3", "");
  272. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm3", "");
  273. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage3", "");
  274. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm3", "");
  275. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt3", "");
  276. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno4", "");
  277. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm4", "");
  278. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage4", "");
  279. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm4", "");
  280. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt4", "");
  281. }else if(totalcnt%4 == 3){
  282. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno3", model.getValue("/root/main/slidelist["+sRow+"]/spclno"));
  283. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm3", patnm);
  284. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage3", model.getValue("/root/main/slidelist["+sRow+"]/etc1"));
  285. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm3", model.getValue("/root/main/slidelist["+sRow+"]/spclworkdd"));
  286. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt3", model.getValue("/root/main/slidelist["+sRow+"]/etc2"));
  287. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno4", "");
  288. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm4", "");
  289. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage4", "");
  290. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm4", "");
  291. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt4", "");
  292. }else if(totalcnt%4 == 0){
  293. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/workno4", model.getValue("/root/main/slidelist["+sRow+"]/spclno"));
  294. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/patnm4", patnm);
  295. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/sexage4", model.getValue("/root/main/slidelist["+sRow+"]/etc1"));
  296. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/lblnm4", model.getValue("/root/main/slidelist["+sRow+"]/spclworkdd"));
  297. model.makeValue("/root/hidden/barcode/barcodeinfo["+rowcnt+"]/cnt4", model.getValue("/root/main/slidelist["+sRow+"]/etc2"));
  298. rowcnt++;
  299. }
  300. } // for(var pCnt = 0 ; pCnt < prntcnt ; pCnt++)
  301. } // if( chk == "true")
  302. }// for(var sRow = 1; sRow < grd_slidelist.rows ; sRow++)
  303. copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
  304. fLisSpcSlideLabelPrint("/root/hidden/barcode/barcodeinfo", "2");
  305. }
  306. function getNameInitial(nameStr){
  307. //받은 이름 문자열을 스페이스바로 분리
  308. var part = nameStr.split(' ');
  309. var str = "";
  310. var nameChr = "";
  311. var chr;
  312. var cnt = 3;
  313. //영문이름을 위한 대문자 변환
  314. nameStr = nameStr.toUpperCase();
  315. //스페이스로 구분되어 있는 이름(영문)의 경우 첫단어와 마지막 단어의 이니셜만 처리
  316. if(part.length>1){
  317. if(part[0].length == 0) part[0] = " ";
  318. if(part[part.length-1].length == 0) part[part.length-1] = " ";
  319. nameChr = part[0].substr(0,1) + "." + part[part.length-1].substr(0,1);
  320. }
  321. else{
  322. nameChr = part[0];
  323. }
  324. //변환할 값이 0보다 큰지 확인
  325. if(nameChr.length < cnt) cnt = nameChr.length;
  326. if(cnt <= 0) return str;
  327. //영문일 때를 위해 대문자로 변환
  328. nameChr = nameChr.toUpperCase();
  329. for(i=0;i<cnt;i++){
  330. chr = nameChr.substr(i,1).charCodeAt(0);
  331. if(chr<128) str = str + nameChr.substr(i,1);
  332. else{
  333. switch(nameChr.substr(i,1)){
  334. case "박":
  335. str = str + "P";
  336. break;
  337. case "김":
  338. str = str + "K";
  339. break;
  340. case "이":
  341. if(i==0) str = str + "L";
  342. else str = str + "I";
  343. break;
  344. default :
  345. if(chr>=44032 && chr<45208) str = str + "G";
  346. else if(chr>=45208 && chr<45796) str = str + "N";
  347. else if(chr>=45796 && chr<46972) str = str + "D";
  348. else if(chr>=46972 && chr<47560) str = str + "R";
  349. else if(chr>=47560 && chr<48148) str = str + "M";
  350. else if(chr>=48148 && chr<49324) str = str + "B";
  351. else if(chr>=49324 && chr<50500) str = str + "S";
  352. else if(chr>=50500 && chr<50556) str = str + "A";
  353. else if(chr>=50556 && chr<50612) str = str + "Y";
  354. else if(chr>=50612 && chr<50668) str = str + "E";
  355. else if(chr>=50668 && chr<50724) str = str + "Y";
  356. else if(chr>=50724 && chr<50752) str = str + "O";
  357. else if(chr>=50752 && chr<50808) str = str + "W";
  358. else if(chr>=50808 && chr<50836) str = str + "O";
  359. else if(chr>=50836 && chr<50864) str = str + "Y";
  360. else if(chr>=50864 && chr<50892) str = str + "U";
  361. else if(chr>=50892 && chr<50976) str = str + "W";
  362. else if(chr>=50976 && chr<51004) str = str + "Y";
  363. else if(chr>=51004 && chr<51032) str = str + "E";
  364. else if(chr>=51032 && chr<51060) str = str + "U";
  365. else if(chr>=51060 && chr<51088) str = str + "I";
  366. else if(chr>=51088 && chr<52264) str = str + "J";
  367. else if(chr>=52264 && chr<52852) str = str + "C";
  368. else if(chr>=52852 && chr<53440) str = str + "K";
  369. else if(chr>=53440 && chr<54028) str = str + "T";
  370. else if(chr>=54028 && chr<54616) str = str + "P";
  371. else if(chr>=54616 && chr<55203) str = str + "H";
  372. else str = str + " ";
  373. break;
  374. }
  375. }
  376. }
  377. return str;
  378. }
  379. function fSetPrint() {
  380. var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  381. if(count == 0) {
  382. model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  383. }
  384. open("SPLLC90100_바코드프린터설정.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  385. }
  386. ]]>
  387. </script>
  388. </xhtml:head>
  389. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  390. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  391. <line id="line1" class="line_1" style="x1:0px; y1:105px; x2:1194px; y2:105px; "/>
  392. <caption id="caption1" class="tit_2" style="left:5px; top:90px; width:75px; height:13px; ">결과대장</caption>
  393. <group id="group1" style="left:0px; top:10px; width:1195px; height:70px; ">
  394. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:70px; "/>
  395. <button id="btn_ref" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
  396. <caption>조회</caption>
  397. <script type="javascript" ev:event="DOMActivate">
  398. <![CDATA[
  399. fGetSlideLabelList();
  400. ]]>
  401. </script>
  402. </button>
  403. <line id="line3" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; "/>
  404. <caption id="caption5" class="search_name" style="left:15px; top:12px; width:117px; height:17px; ">작업일자 :</caption>
  405. <caption id="caption8" style="left:201px; top:12px; width:15px; height:20px; vertical-align:middle; ">~</caption>
  406. <input id="ipt_usdd" ref="/root/hidden/ref/fromdd" class="input_search" inputtype="date" style="left:106px; top:11px; width:90px; height:19px; "/>
  407. <input id="ipt_uedd" ref="/root/hidden/ref/todd" class="input_search" inputtype="date" style="left:216px; top:11px; width:90px; height:19px; "/>
  408. <caption id="caption10" class="search_name" style="left:330px; top:12px; width:94px; height:17px; ">시행부서 :</caption>
  409. <select1 id="combo4" ref="/root/hidden/ref/execdeptcd" appearance="minimal" style="left:421px; top:11px; width:114px; height:19px; ">
  410. <choices>
  411. <itemset nodeset="/root/init/LB0106">
  412. <label ref="nm"/>
  413. <value ref="cd"/>
  414. </itemset>
  415. </choices>
  416. </select1>
  417. <select1 id="combo2" ref="/root/hidden/ref/getgbn" appearance="minimal" style="left:645px; top:11px; width:75px; height:19px; ">
  418. <choices>
  419. <item>
  420. <label>환자명</label>
  421. <value>1</value>
  422. </item>
  423. <item>
  424. <label>등록번호</label>
  425. <value>2</value>
  426. </item>
  427. </choices>
  428. </select1>
  429. <caption id="caption7" class="search_name" style="left:556px; top:12px; width:94px; height:17px; ">조회구분 :</caption>
  430. <caption id="caption11" class="search_name" style="left:15px; top:42px; width:100px; height:17px; ">검사그룹 :</caption>
  431. <button id="button61" class="icon_search" style="left:789px; top:41px; width:16px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
  432. <caption/>
  433. <script type="javascript" ev:event="DOMActivate">
  434. <![CDATA[
  435. modal("SMLLF90400", "", "", "", "", "/root/hidden/ref/tclscdlist/testgrup", "/root/hidden/tclscdlist/testgrup");
  436. model.removeNodeset("/root/init/LB01032");
  437. fBaseInfoRef2("01032|");
  438. ]]>
  439. </script>
  440. </button>
  441. <select1 id="combo3" ref="/root/hidden/ref/tclscdlist/testgrup" class="combo_search" appearance="minimal" style="left:106px; top:41px; width:119px; height:19px; ">
  442. <choices>
  443. <itemset nodeset="/root/init/LB0103">
  444. <label ref="nm"/>
  445. <value ref="cd"/>
  446. </itemset>
  447. </choices>
  448. <script type="javascript" ev:event="xforms-value-changed">
  449. <![CDATA[
  450. fSelectTestGrup();
  451. ]]>
  452. </script>
  453. </select1>
  454. <input id="input1" ref="/root/hidden/ref/pattext" style="left:724px; top:11px; width:105px; height:19px; ">
  455. <script type="javascript" ev:event="onkeypress">
  456. <![CDATA[
  457. if(event.keyCode == "13"){
  458. model.setvalue("/root/hidden/ref/pattext",input1.currentText);
  459. fGetSlideLabelList();
  460. }
  461. ]]>
  462. </script>
  463. </input>
  464. <input id="ipt_tclscdlist" ref="/root/hidden/ref/tclscdlist/tclsnmlist" class="input_search" rclass="input_search" style="left:228px; top:41px; width:557px; height:19px; ">
  465. <script type="javascript" ev:event="xforms-value-changed">
  466. <![CDATA[
  467. // 검사항목 지웠을때
  468. fSetTclscdClean();
  469. ]]>
  470. </script>
  471. </input>
  472. <input id="ipt_text" ref="/root/hidden/ref/bcno" class="input_s_button" inputtype="button" style="left:968px; top:41px; width:135px; height:19px; ">
  473. <script type="javascript" ev:event="onbuttonclick">
  474. <![CDATA[
  475. model.setValue("/root/hidden/ref/bcno", (ipt_text.currentText).toUpperCase());
  476. fGetSlideLabelListBcno();
  477. ]]>
  478. </script>
  479. </input>
  480. <caption id="caption2" class="search_name" style="left:865px; top:42px; width:102px; height:17px; ">바코드번호 :</caption>
  481. </group>
  482. <button id="btn_excel" class="btn2_letter2" visibility="hidden" style="left:1152px; top:84px; width:42px; height:19px; ">
  483. <caption>엑셀</caption>
  484. <script type="javascript" ev:event="DOMActivate">
  485. <![CDATA[
  486. fExeExcel(grd_rsltregst);
  487. ]]>
  488. </script>
  489. </button>
  490. <datagrid id="grd_slidelist" nodeset="/root/main/slidelist" caption="^접수일시^작업번호^등록번호^환자명^성별/나이^검체명^검사항목명^출력매수^etc" colsep="^" colwidth="30, 125, 120, 90, 105, 90, 115, 250, 85" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:110px; width:1194px; height:620px; text-align:center; ">
  491. <col checkvalue="true,false" ref="chk" type="checkbox"/>
  492. <col ref="spcacptdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  493. <col ref="workno"/>
  494. <col ref="pid"/>
  495. <col ref="patnm"/>
  496. <col ref="sexage"/>
  497. <col ref="spcnm"/>
  498. <col ref="tclsnm"/>
  499. <col ref="prntcnt" type="combo">
  500. <choices>
  501. <item>
  502. <label>1장</label>
  503. <value>1</value>
  504. </item>
  505. <item>
  506. <label>2장</label>
  507. <value>2</value>
  508. </item>
  509. <item>
  510. <label>3장</label>
  511. <value>3</value>
  512. </item>
  513. <item>
  514. <label>4장</label>
  515. <value>4</value>
  516. </item>
  517. <item>
  518. <label>5장</label>
  519. <value>5</value>
  520. </item>
  521. <item>
  522. <label>6장</label>
  523. <value>6</value>
  524. </item>
  525. <item>
  526. <label>7장</label>
  527. <value>7</value>
  528. </item>
  529. <item>
  530. <label>8장</label>
  531. <value>8</value>
  532. </item>
  533. <item>
  534. <label>9장</label>
  535. <value>9</value>
  536. </item>
  537. <item>
  538. <label>10장</label>
  539. <value>10</value>
  540. </item>
  541. </choices>
  542. </col>
  543. <col ref="etc"/>
  544. <col ref="lblnm" visibility="hidden"/>
  545. <col ref="worknoprnt" visibility="hidden"/>
  546. <col ref="etc1" visibility="hidden"/>
  547. <col ref="etc2" visibility="hidden"/>
  548. <col ref="spclno" visibility="hidden"/>
  549. <col ref="spclworkdd" visibility="hidden"/>
  550. <script type="javascript" ev:event="onaftersort">
  551. <![CDATA[
  552. grd_slidelist.gridToInstance();
  553. ]]>
  554. </script>
  555. </datagrid>
  556. </group>
  557. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  558. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  559. <caption>초기화</caption>
  560. <script type="javascript" ev:event="onclick">
  561. <![CDATA[
  562. fSetInit();
  563. ]]>
  564. </script>
  565. </button>
  566. <button id="btn_print" class="btn6_letter7" style="left:95px; top:3px; width:116px; height:22px; ">
  567. <caption>Slide라벨출력</caption>
  568. <script type="javascript" ev:event="DOMActivate">
  569. <![CDATA[
  570. fExeSlideLabelPrint();
  571. fExeSlideLabelPrintH();
  572. ]]>
  573. </script>
  574. </button>
  575. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  576. <button id="btn_prntset" class="btn3_letter5" style="left:0px; top:3px; width:92px; height:22px; ">
  577. <caption>프린터설정</caption>
  578. <script type="javascript" ev:event="DOMActivate">
  579. <![CDATA[
  580. fSetPrint();
  581. ]]>
  582. </script>
  583. </button>
  584. </group>
  585. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  586. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:132px; height:14px; ">슬라이드라벨출력</caption>
  587. </group>
  588. </xhtml:body>
  589. </xhtml:html>