SPLPJ01700_검체접수조회.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLPJ01700.xfm
  4. * 설 명 : 검체접수조회
  5. * 설 계 자 : 설계자가 별도로 존재시 작성
  6. * 작 성 자 : 유동철(ACK)
  7. * 작 성 일 : 2006.12.01
  8. * 수정이력 : 2007.10.1 유동철
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <acptspc>
  20. <acptspclist>
  21. <choi/>
  22. <instcd/>
  23. <spcbarcdno/>
  24. <prcpdd/>
  25. <trandd/>
  26. <acptdd/>
  27. <ptno/>
  28. <dispptno/>
  29. <pid/>
  30. <patnm/>
  31. <orddeptnm/>
  32. <orddrnm/>
  33. <wardroom/>
  34. <prcpdispnm/>
  35. <spcdispnm/>
  36. <maxseqno/>
  37. <reqfrmno/>
  38. <prntprcpdispnm/>
  39. <prntprcpdispnm2/>
  40. <workflagcd/>
  41. <sexage/>
  42. <spcacptseqno/>
  43. <isolabbrcd/>
  44. </acptspclist>
  45. </acptspc>
  46. <barcdprntsetup>
  47. <prntsetupinfo>
  48. <setupinfo/>
  49. </prntsetupinfo>
  50. </barcdprntsetup>
  51. </main>
  52. <send/>
  53. <init>
  54. <ptnocode/>
  55. <fromyear/>
  56. <fromptno/>
  57. <toyear/>
  58. <toptno/>
  59. <acptfromdd/>
  60. <acpttodd/>
  61. <refmthdcd/>
  62. <refval/>
  63. <barcdtype/>
  64. <sysdt>
  65. <sysdtinfo>
  66. <sysdd/>
  67. <systm/>
  68. </sysdtinfo>
  69. </sysdt>
  70. <ptnocd>
  71. <ptnocdlist>
  72. <instcd/>
  73. <ptnocd/>
  74. <ptnonm/>
  75. </ptnocdlist>
  76. </ptnocd>
  77. </init>
  78. <hidden>
  79. <userinfo>
  80. <instcd/>
  81. </userinfo>
  82. <choival/>
  83. </hidden>
  84. </root>
  85. </instance>
  86. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  90. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  91. <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
  92. <script type="javascript" ev:event="xforms-ready">
  93. <![CDATA[
  94. fExeInitialize();
  95. lzzfMakeBrcdPrntObjHanDo("CommAX");
  96. ]]>
  97. </script>
  98. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  99. <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
  100. <submission id="TRLPJ01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/acptspc/acptspclist"/>
  101. <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
  102. </model>
  103. <script type="javascript">
  104. <![CDATA[
  105. /* @group : 검체접수팝업화면
  106. * @ver : 2007.03.09 (CMCDEV-0001)
  107. * @by : 황상미(ACK)
  108. * @-----------------------------------
  109. * @type : function
  110. * @access : public
  111. * @desc : 화면 Initialize함수
  112. */
  113. function fExeInitialize() {
  114. var sCurDate = "";
  115. //----------
  116. // 노드 삭제
  117. model.removeNodeset("/root/send");
  118. model.removeNodeset("/root/main/acptspc/acptspclist"); // 검색리스트
  119. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  120. submit("TRLPZ00102", false);
  121. submit("TRLPZ00109", false);
  122. model.makeValue("/root/send/scrnid", getScreenID());
  123. submit("TRLLC90101", false);
  124. //---------------------------
  125. //접수 조회조건 설정값 초기화
  126. /*
  127. model.makeValue("/root/init/acptfromdd", model.getValue(opener.root.hidden.refenv.prcpfromdd)); // 접수일자(From)
  128. model.makeValue("/root/init/acpttodd", model.getValue(opener.root.hidden.refenv.prcptodd)); // 접수일자(To)
  129. model.makeValue("/root/init/refmthdcd", model.getValue(opener.root.hidden.refenv.srchmthd)); // 검색방법
  130. model.makeValue("/root/init/refval", model.getValue(opener.root.hidden.refenv.srchval)); // 검색값
  131. */
  132. model.makeValue("/root/init/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(From)
  133. model.makeValue("/root/init/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(To)
  134. model.makeValue("/root/init/refmthdcd", "0"); // 검색방법
  135. model.makeValue("/root/init/refval", ""); // 검색값
  136. model.makeValue("/root/init/barcdtype", "0");
  137. model.makeValue("/root/init/ptnocode", "");
  138. model.makeValue("/root/init/fromptno", "");
  139. model.makeValue("/root/init/toptno", "");
  140. //--------------------------------------------------------------
  141. //sCurDate = model.getValue(opener.root.hidden.refenv.prcpfromdd);
  142. sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
  143. model.makeValue("/root/init/fromyear", sCurDate.substr(2,2));
  144. //------------------------------------------------------------
  145. //sCurDate = model.getValue(opener.root.hidden.refenv.prcptodd);
  146. sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
  147. model.makeValue("/root/init/toyear", sCurDate.substr(2,2));
  148. //------------
  149. lpzfTopInfo();
  150. if (model.getValue("/root/paminfo/list/pid") != "") {
  151. model.makeValue("/root/init/refval", model.getValue("/root/paminfo/list/pid"));
  152. }
  153. //------------------------------------------------------------
  154. // 검색값이 존재할 경우 자동으로 검색값에 해당하는 목록을 조회
  155. if (model.getValue("/root/init/refval") != "") {
  156. fGetPatList();
  157. }
  158. grd_acptspclist.fixedcellcheckbox(0,1) = true;
  159. //--------------
  160. model.refresh();
  161. //----------------------------
  162. model.setFocus("ipt_refval");
  163. }
  164. /* @group : 검체접수팝업화면
  165. * @ver : 2007.03.09 (CMCDEV-0001)
  166. * @by : 황상미(ACK)
  167. * @-----------------------------------
  168. * @type : function
  169. * @access : public
  170. * @desc : 환자 검색 리스트
  171. */
  172. function fGetPatList() {
  173. var sTemp = "";
  174. // //----------------------------------------------
  175. // if (model.getValue("/root/init/refval") == "") {
  176. // if(model.getValue("/root/init/ptnocode") == "" || model.getValue("/root/init/refmthdcd") == "0") {
  177. // messageBox("검색값을 입력하여 주십시오! 검색을 ", "E001");
  178. // return false;
  179. // }
  180. // }
  181. //----------
  182. // 노드 삭제
  183. model.removeNodeset("/root/send");
  184. model.removeNodeset("/root/main/acptspc/acptspclist");
  185. //------------------------------------------------
  186. if (model.getValue("/root/init/ptnocode") != "") {
  187. //------------------------------------------------
  188. if (model.getValue("/root/init/fromyear") == "") {
  189. model.makeValue("/root/init/fromyear", sFromDD.substr(2,2));
  190. } else {
  191. sTemp = model.getValue("/root/init/fromyear");
  192. model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
  193. }
  194. //----------------------------------------------
  195. if (model.getValue("/root/init/toyear") == "") {
  196. model.makeValue("/root/init/toyear", sToDD.substr(2,2));
  197. } else {
  198. sTemp = model.getValue("/root/init/toyear");
  199. model.makeValue("/root/init/toyear", sTemp.getLeftPad(2, "0"));
  200. }
  201. //------------------------------------------------
  202. if (model.getValue("/root/init/fromptno") == "") {
  203. model.makeValue("/root/init/fromptno", "000000");
  204. } else {
  205. sTemp = model.getValue("/root/init/fromptno");
  206. model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
  207. }
  208. //----------------------------------------------
  209. if (model.getValue("/root/init/toptno") == "") {
  210. model.makeValue("/root/init/toptno", "999999");
  211. } else {
  212. sTemp = model.getValue("/root/init/toptno");
  213. model.makeValue("/root/init/toptno", sTemp.getLeftPad(6, "0"));
  214. }
  215. }
  216. //--------------------------------------------
  217. sTemp = model.getValue("/root/init/ptnocode");
  218. //--------------------------
  219. //조회환경값 senddata에 설정
  220. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  221. model.makeValue("/root/send/acptfromdd", model.getValue("/root/init/acptfromdd"));
  222. model.makeValue("/root/send/acpttodd", model.getValue("/root/init/acpttodd"));
  223. model.makeValue("/root/send/refmthdcd", model.getValue("/root/init/refmthdcd"));
  224. model.makeValue("/root/send/refval", model.getValue("/root/init/refval"));
  225. model.makeValue("/root/send/barcdtype", model.getValue("/root/init/barcdtype"));
  226. model.makeValue("/root/send/ptnocode", sTemp.replace("-", ""));
  227. model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
  228. model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
  229. model.makeValue("/root/send/toyear", model.getValue("/root/init/toyear"));
  230. model.makeValue("/root/send/toptno", model.getValue("/root/init/toptno"));
  231. //-------------------
  232. submit("TRLPJ01701");
  233. }
  234. /* @group : 검체접수팝업화면
  235. * @ver : 2007.03.09 (CMCDEV-0001)
  236. * @by : 황상미(ACK)
  237. * @-----------------------------------
  238. * @type : function
  239. * @access : public
  240. * @desc : 환자 선택
  241. */
  242. function fExeAcptSpcChoi() {
  243. if(grd_acptspclist.row > 0 && grd_acptspclist.isCell(event.target) && grd_acptspclist.row >= grd_acptspclist.fixedRows) {
  244. }
  245. }
  246. /* @group : 검체접수팝업화면
  247. * @ver : 2007.03.09 (CMCDEV-0001)
  248. * @by : 황상미(ACK)
  249. * @-----------------------------------
  250. * @type : function
  251. * @access : public
  252. * @desc : 화면 닫기
  253. */
  254. function fExeClose() {
  255. model.close();
  256. }
  257. /* @group : 검체접수팝업화면
  258. * @ver : 2007.10.31 (CMCDEV-0001)
  259. * @by : 유동철(ACK)
  260. * @-----------------------------------
  261. * @type : function
  262. * @access : public
  263. * @desc : 검색값 입력 처리
  264. */
  265. function fExeRefValKeyPress() {
  266. var sRefVal = "";
  267. //-----------------------
  268. if(event.keyCode == 13) {
  269. sRefVal = ipt_refval.currentText;
  270. model.makeValue("/root/init/refval", sRefVal.toUpperCase());
  271. ipt_refval.refresh();
  272. //------------
  273. fGetPatList();
  274. }
  275. }
  276. /* @group : 검체접수팝업화면
  277. * @ver : 2007.11.01 (CMCDEV-0001)
  278. * @by : 유동철(ACK)
  279. * @-----------------------------------
  280. * @type : function
  281. * @access : public
  282. * @desc : 바코드 프린터 설정 팝업 호출 처리
  283. */
  284. function fExeBarCdPopupCall() {
  285. var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  286. if(count == 0) {
  287. model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  288. }
  289. modal("SPLLC90100" , "","","","","/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  290. }
  291. //-----------------------------
  292. // 병리과 접수/채혈 바코드 출력
  293. function fExeBarCdPrnt() {
  294. var re = /▨/g; // i:1회실행, g:모두실행, gi:전역실행(대소문자 안가림)
  295. var bState = false;
  296. var iCnt = 1;
  297. var sSrcNode = "/root/main/acptspc/acptspclist";
  298. var sDescNode = "/root/temp/prntinfo/acptspclist";
  299. var sPrcpNm = "";
  300. var sSpcNm = "";
  301. var sPrntPrcpDispNm2 = "";
  302. //-----------------------------
  303. model.removeNodeset(sDescNode);
  304. //---------------------------------------------------------
  305. for (var iNo=1; iNo <= getNodesetCount(sSrcNode); iNo++) {
  306. if (model.getValue(sSrcNode+"["+iNo+"]/choi") == "true") {
  307. //if (model.getValue(sSrcNode+"["+iNo+"]/reqfrmno") != "0") {
  308. //-------------------------------------
  309. model.makeNode(sDescNode+"["+iCnt+"]");
  310. model.makeValue(sDescNode+"["+iCnt+"]/choi", model.getValue(sSrcNode+"["+iNo+"]/choi"));
  311. model.makeValue(sDescNode+"["+iCnt+"]/instcd", model.getValue(sSrcNode+"["+iNo+"]/instcd"));
  312. model.makeValue(sDescNode+"["+iCnt+"]/spcbarcdno", model.getValue(sSrcNode+"["+iNo+"]/spcbarcdno"));
  313. model.makeValue(sDescNode+"["+iCnt+"]/prcpdd", model.getValue(sSrcNode+"["+iNo+"]/prcpdd"));
  314. model.makeValue(sDescNode+"["+iCnt+"]/trandd", model.getValue(sSrcNode+"["+iNo+"]/trandd"));
  315. model.makeValue(sDescNode+"["+iCnt+"]/acptdd", model.getValue(sSrcNode+"["+iNo+"]/acptdd"));
  316. model.makeValue(sDescNode+"["+iCnt+"]/ptno", model.getValue(sSrcNode+"["+iNo+"]/ptno"));
  317. model.makeValue(sDescNode+"["+iCnt+"]/pid", model.getValue(sSrcNode+"["+iNo+"]/pid"));
  318. model.makeValue(sDescNode+"["+iCnt+"]/patnm", model.getValue(sSrcNode+"["+iNo+"]/patnm"));
  319. model.makeValue(sDescNode+"["+iCnt+"]/sexage", model.getValue(sSrcNode+"["+iNo+"]/sexage"));
  320. model.makeValue(sDescNode+"["+iCnt+"]/orddeptnm", model.getValue(sSrcNode+"["+iNo+"]/orddeptnm"));
  321. model.makeValue(sDescNode+"["+iCnt+"]/orddrnm", model.getValue(sSrcNode+"["+iNo+"]/orddrnm"));
  322. model.makeValue(sDescNode+"["+iCnt+"]/wardroom", model.getValue(sSrcNode+"["+iNo+"]/wardroom"));
  323. model.makeValue(sDescNode+"["+iCnt+"]/maxseqno", model.getValue(sSrcNode+"["+iNo+"]/maxseqno"));
  324. model.makeValue(sDescNode+"["+iCnt+"]/reqfrmno", model.getValue(sSrcNode+"["+iNo+"]/reqfrmno"));
  325. model.makeValue(sDescNode+"["+iCnt+"]/workflagcd", model.getValue(sSrcNode+"["+iNo+"]/workflagcd"));
  326. model.makeValue(sDescNode+"["+iCnt+"]/isolabbrcd", model.getValue(sSrcNode+"["+iNo+"]/isolabbrcd"));
  327. // 0:접수바코드, 1:이송(전달)바코드
  328. // 검체순번을 채혈바코드는 검체명 옆에 붙이고, 접수바코드는 병리번호 옆에 붙인다.
  329. if(model.getValue("/root/init/barcdtype") == "1") {
  330. model.makeValue(sDescNode+"["+iCnt+"]/dispptno", model.getValue(sSrcNode+"["+iNo+"]/dispptno"));
  331. sSpcNm = Number(model.getValue(sSrcNode+"["+iNo+"]/spcacptseqno")) + "/";
  332. sSpcNm += Number(model.getValue(sSrcNode+"["+iNo+"]/maxseqno"));
  333. sSpcNm += " " + model.getValue(sSrcNode+"["+iNo+"]/spcdispnm");
  334. model.makeValue(sDescNode+"["+iCnt+"]/spcdispnm", sSpcNm);
  335. model.makeValue(sDescNode+"["+iCnt+"]/prntprcpdispnm", model.getValue(sSrcNode+"["+iNo+"]/prntprcpdispnm")); //원처방표시명
  336. sPrntPrcpDispNm2 = model.getValue(sSrcNode+"["+iNo+"]/prntprcpdispnm2"); //추가처방표시
  337. sPrntPrcpDispNm2 = sPrntPrcpDispNm2.replace("▨", ",");
  338. model.makeValue(sDescNode+"["+iCnt+"]/prntprcpdispnm2", sPrntPrcpDispNm2);
  339. } else {
  340. model.makeValue(sDescNode+"["+iCnt+"]/spcdispnm", model.getValue(sSrcNode+"["+iNo+"]/spcdispnm"));
  341. sSpcNm = model.getValue(sSrcNode+"["+iNo+"]/dispptno") + " ";
  342. sSpcNm += Number(model.getValue(sSrcNode+"["+iNo+"]/spcacptseqno")) + "/";
  343. sSpcNm += Number(model.getValue(sSrcNode+"["+iNo+"]/maxseqno"));
  344. model.makeValue(sDescNode+"["+iCnt+"]/dispptno", sSpcNm);
  345. //--------------------------------------------------------
  346. sPrcpNm = model.getValue(sSrcNode+"["+iNo+"]/prcpdispnm");
  347. //sPrcpNm = sPrcpNm.substr(0, sPrcpNm.length-1);
  348. sPrcpNm = sPrcpNm.replace(re, ",");
  349. model.makeValue(sDescNode+"["+iCnt+"]/prcpdispnm", sPrcpNm);
  350. }
  351. //-----
  352. iCnt++;
  353. bState = true;
  354. //}
  355. }
  356. }
  357. //-----------
  358. if (bState) {
  359. lpzfAcptBarCd(model.getValue("/root/init/barcdtype"), 1,
  360. "/root/temp/prntinfo/acptspclist",
  361. "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  362. }
  363. }
  364. //-----------------------
  365. // 병리과 처방의뢰지 출력
  366. function fExeReqFrmPrnt() {
  367. //-------------
  368. // 의뢰지 출력
  369. for (var iNo=1; iNo <= getNodesetCount("/root/main/acptspc/acptspclist"); iNo++) {
  370. if (model.getValue("/root/main/acptspc/acptspclist["+iNo+"]/choi") == "true") {
  371. if (model.getValue("/root/main/acptspc/acptspclist["+iNo+"]/reqfrmno") != "0") {
  372. model.makeNode("/root/init/prntinfo");
  373. model.makeValue("/root/init/prntinfo/reptflagcd", "0"); // 의뢰지(0), 보고서(1)
  374. model.makeValue("/root/init/prntinfo/prntflagcd", "0"); // 출력(0), 미리보기(1)
  375. model.makeValue("/root/init/prntinfo/copyflagcd", "0"); // 의뢰지/보고서(0), 복사본(1)
  376. lpzfExeFrmPrnt("/root/main/acptspc/acptspclist["+iNo+"]");
  377. }
  378. }
  379. }
  380. }
  381. //-----------------------
  382. // 병리과 처방의뢰지 출력
  383. function fExeReprtFrmPrnt() {
  384. //-------------
  385. // 의뢰지 출력
  386. for (var iNo=1; iNo <= getNodesetCount("/root/main/acptspc/acptspclist"); iNo++) {
  387. if (model.getValue("/root/main/acptspc/acptspclist["+iNo+"]/choi") == "true") {
  388. //if (model.getValue("/root/main/acptspc/acptspclist["+iNo+"]/reqfrmno") != "0") {
  389. model.makeNode("/root/init/prntinfo");
  390. model.makeValue("/root/init/prntinfo/reptflagcd", "1"); // 의뢰지(0), 보고서(1)
  391. model.makeValue("/root/init/prntinfo/prntflagcd", "0"); // 출력(0), 미리보기(1)
  392. model.makeValue("/root/init/prntinfo/copyflagcd", "0"); // 의뢰지/보고서(0), 복사본(1)
  393. model.makeValue("/root/init/prntinfo/scrnid", "SPLPJ01700"); // 화면ID
  394. lpzfExeFrmPrnt("/root/main/acptspc/acptspclist["+iNo+"]");
  395. //}
  396. }
  397. }
  398. }
  399. function fExeBarCodePrnt() {
  400. var sSend = "";
  401. var sFixChar = String.fromCharCode(34);
  402. // sSend = "N" + String.fromCharCode(10) + String.fromCharCode(13);
  403. // sSend += "A460,210,2,1,1,1,N," + String.fromCharCode(34) + "Example 1" + String.fromCharCode(34) + String.fromCharCode(10) + String.fromCharCode(13);
  404. // sSend += "A400,180,2,8,1,1,N," + String.fromCharCode(34) + "가나다라" + String.fromCharCode(34) + String.fromCharCode(10) + String.fromCharCode(13);
  405. // sSend += "P1" + String.fromCharCode(10) + String.fromCharCode(13);
  406. var barcdRef = "/root/main/barcdprntsetup/prntsetupinfo/setupinfo";
  407. var sComm = model.getValue(barcdRef + "[1]/comm02/comm");
  408. var sDataBit = model.getValue(barcdRef + "[1]/comm02/databit");
  409. var sStopBit = model.getValue(barcdRef + "[1]/comm02/stopbit");
  410. var sBaudRate = model.getValue(barcdRef + "[1]/comm02/baudrate");
  411. var sParity = model.getValue(barcdRef + "[1]/comm02/parity");
  412. //alert(sComm);
  413. sSend = "N" + "\r\n";
  414. sSend += "A460,210,2,1,1,1,N," + sFixChar + "Example 1" + sFixChar + "\r\n";
  415. sSend += "A400,180,2,8,1,1,N," + sFixChar + "가나다라" + sFixChar + "\r\n";
  416. sSend += "P1" + "\r\n";
  417. //alert(sSend);
  418. CommAX.CommPort = sComm;
  419. CommAX.Settings = sBaudRate + "," + sParity + "," + sDataBit + "," + sStopBit;
  420. CommAX.PortOpen("true");
  421. CommAX.SendMessage(sSend);
  422. }
  423. ]]>
  424. </script>
  425. </xhtml:head>
  426. <xhtml:body pagewidth="998" pageheight="619" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  427. <group id="grp_biz" style="left:0px; top:0px; width:980; height:574; ">
  428. <caption id="caption1" class="tit_2" autoresize="true" style="left:5px; top:72px; width:205px; height:13px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">바코드번호 목록</caption>
  429. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:1px; width:980px; height:59; background-color:#fffbf2; border-color:#ffd799; "/>
  430. <caption id="caption3" class="search_name" autoresize="true" style="left:15px; top:32px; width:91px; height:17px; vertical-align:middle; ">검색방법 :</caption>
  431. <caption id="caption2" class="search_name" autoresize="true" style="left:569px; top:9px; width:91px; height:17px; vertical-align:middle; ">접수일자 :</caption>
  432. <caption id="caption4" class="search_no_b" style="left:763px; top:8px; width:16px; height:17px; font-size:9pt; text-align:center; vertical-align:middle; ">~</caption>
  433. <input id="ipt_ordddfrom" ref="/root/init/acptfromdd" class="input_s_essential" navindex="6" inputtype="date" style="left:661px; top:8px; width:99px; height:19px; "/>
  434. <input id="ipt_ordddto" ref="/root/init/acpttodd" class="input_s_essential" navindex="7" inputtype="date" style="left:782px; top:8px; width:99px; height:19px; "/>
  435. <line id="line1" class="line_1" style="x1:0px; y1:86px; x2:980px; y2:86px; "/>
  436. <line id="line13" class="line_4" style="x1:894; y1:8px; x2:894; y2:51; border-color:#ffe4bb; border-left-style:solid; "/>
  437. <input id="ipt_refval" ref="/root/init/refval" class="input_search" navindex="9" style="left:209px; top:32px; width:130; height:19px; ">
  438. <script type="javascript" ev:event="onkeypress">
  439. <![CDATA[
  440. fExeRefValKeyPress();
  441. ]]>
  442. </script>
  443. </input>
  444. <select1 id="cmb_srchmthd" ref="/root/init/refmthdcd" class="combo_search" navindex="8" appearance="minimal" style="left:107px; top:32px; width:100px; height:19px; ">
  445. <choices>
  446. <item>
  447. <label>등록번호</label>
  448. <value>0</value>
  449. </item>
  450. <item>
  451. <label>바코드번호</label>
  452. <value>2</value>
  453. </item>
  454. </choices>
  455. </select1>
  456. <datagrid id="grd_acptspclist" nodeset="/root/main/acptspc/acptspclist" class="datagrid2" allowselection="true" autoresize="true" caption="^기관코드^바코드번호^처방일자^이송일자^접수일자^ptno^병리번호^등록번호^환자명^진료과^진료의^병동/병실^처방^검체명^isolabbrcd^최대검체번호^의뢰지번호^prntprcpdispnm^prntprcpdispnm2^workflagcd^sexage^spcacptseqno" colsep="^" colwidth="40, 0, 90, 0, 0, 70, 0, 80, 70, 80, 90, 0, 110, 180, 130, 100, 0, 0, 0, 0, 0, 0, 0" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="11" style="left:0px; top:91px; width:980px; height:483px; ">
  457. <col ref="choi" type="checkbox"/>
  458. <col ref="instcd"/>
  459. <col ref="spcbarcdno"/>
  460. <col ref="prcpdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  461. <col ref="trandd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  462. <col ref="acptdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  463. <col ref="ptno"/>
  464. <col ref="dispptno"/>
  465. <col ref="pid"/>
  466. <col ref="patnm"/>
  467. <col ref="orddeptnm"/>
  468. <col ref="orddrnm"/>
  469. <col ref="wardroom"/>
  470. <col ref="prcpdispnm"/>
  471. <col ref="spcdispnm"/>
  472. <col ref="isolabbrcd" visibility="hidden"/>
  473. <col ref="maxseqno"/>
  474. <col ref="reqfrmno"/>
  475. <col ref="prntprcpdispnm"/>
  476. <col ref="prntprcpdispnm2"/>
  477. <col ref="workflagcd"/>
  478. <col ref="sexage"/>
  479. <col ref="spcacptseqno"/>
  480. <script type="javascript" ev:event="onclick">
  481. <![CDATA[
  482. fExeAcptSpcChoi();
  483. ]]>
  484. </script>
  485. <script type="javascript" ev:event="onaftersort">
  486. <![CDATA[
  487. grd_acptspclist.gridToInstance();
  488. ]]>
  489. </script>
  490. </datagrid>
  491. <button id="btn_sea" class="btn1_letter2" navindex="10" style="left:909; top:19; width:56px; height:22px; ">
  492. <caption>검색</caption>
  493. <script type="javascript" ev:event="DOMActivate">
  494. <![CDATA[
  495. //fExeBarCodePrnt();
  496. fGetPatList();
  497. ]]>
  498. </script>
  499. </button>
  500. <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" navindex="1" appearance="minimal" editmode="search" style="left:107px; top:8px; width:100px; height:19px; ">
  501. <choices>
  502. <itemset nodeset="/root/init/ptnocd/ptnocdlist">
  503. <label ref="ptnonm"/>
  504. <value ref="ptnocd"/>
  505. </itemset>
  506. </choices>
  507. </select1>
  508. <input id="ipt_fromptno" ref="/root/init/fromptno" class="text_center" navindex="3" maxlength="6" style="left:239px; top:8px; width:50px; height:19px; "/>
  509. <caption id="caption5" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">병리번호 :</caption>
  510. <caption id="caption6" class="search_no_b" style="left:292px; top:8px; width:12px; height:17px; ">~</caption>
  511. <input id="input1" ref="/root/init/toptno" class="text_center" navindex="5" maxlength="6" style="left:337px; top:8px; width:50px; height:19px; "/>
  512. <input id="input2" ref="/root/init/toyear" class="text_center" navindex="4" maxlength="2" style="left:307px; top:8px; width:27px; height:19px; "/>
  513. <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="2" maxlength="2" style="left:209px; top:8px; width:27px; height:19px; "/>
  514. <caption id="caption7" class="search_name" autoresize="true" style="left:569px; top:32px; width:91px; height:17px; vertical-align:middle; ">바 코 드 :</caption>
  515. <select1 id="rdo_barcdtype" ref="/root/init/barcdtype" appearance="full" cols="3" overflow="visible" style="left:665px; top:32px; width:220px; height:20px; border-style:none; ">
  516. <choices>
  517. <item>
  518. <label>접수라벨</label>
  519. <value>0</value>
  520. </item>
  521. <item>
  522. <label>바코드</label>
  523. <value>1</value>
  524. </item>
  525. <item>
  526. <label>의뢰지/보고서</label>
  527. <value>2</value>
  528. </item>
  529. </choices>
  530. <script type="javascript" ev:event="xforms-value-changed">
  531. <![CDATA[
  532. model.removeNodeset("/root/main/acptspc/acptspclist");
  533. grd_acptspclist.refresh();
  534. ]]>
  535. </script>
  536. </select1>
  537. </group>
  538. <group id="grp_btn" scroll="auto" style="left:0px; top:574; width:980px; height:27px; ">
  539. <button id="btn_exit" class="btn4_letter2" navindex="12" style="left:924; top:5px; width:56px; height:22px; ">
  540. <caption>닫기</caption>
  541. <script type="javascript" ev:event="DOMActivate">
  542. <![CDATA[
  543. fExeClose();
  544. ]]>
  545. </script>
  546. </button>
  547. <line id="line17" class="line_6" style="x1:0px; y1:0px; x2:395px; y2:0px; "/>
  548. <button id="button26" class="btn3_letter5" style="left:0px; top:5px; width:92px; height:22px; ">
  549. <caption>프린터설정</caption>
  550. <script type="javascript" ev:event="DOMActivate">
  551. <![CDATA[
  552. fExeBarCdPopupCall();
  553. ]]>
  554. </script>
  555. </button>
  556. <button id="btn_prnt" class="btn3_letter5" style="left:94px; top:5px; width:84px; height:22px; ">
  557. <caption>바코드출력</caption>
  558. <script type="javascript" ev:event="DOMActivate">
  559. <![CDATA[
  560. fExeBarCdPrnt();
  561. ]]>
  562. </script>
  563. </button>
  564. <button id="button1" class="btn3_letter5" style="left:188px; top:5px; width:92px; height:22px; ">
  565. <caption>의뢰지출력</caption>
  566. <script type="javascript" ev:event="DOMActivate">
  567. <![CDATA[
  568. fExeReqFrmPrnt();
  569. ]]>
  570. </script>
  571. </button>
  572. <button id="button2" class="btn3_letter5" style="left:281px; top:5px; width:92px; height:22px; ">
  573. <caption>보고서출력</caption>
  574. <script type="javascript" ev:event="DOMActivate">
  575. <![CDATA[
  576. fExeReprtFrmPrnt();
  577. ]]>
  578. </script>
  579. </button>
  580. </group>
  581. </xhtml:body>
  582. </xhtml:html>