SPAER00201_환자별바코드출력.xrw 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>환자별바코드출력</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <patinfo>
  11. <patinfolist/>
  12. </patinfo>
  13. </main>
  14. <send>
  15. <srchcond/>
  16. <pid/>
  17. <hngnm/>
  18. <rrgstno1/>
  19. <rrgstno2/>
  20. <acptdd/>
  21. <globalinstance>
  22. <instance1/>
  23. </globalinstance>
  24. <data>
  25. <cmb_info>
  26. <initexcuroomgrp>
  27. <excuroomgrpcdid/>
  28. </initexcuroomgrp>
  29. </cmb_info>
  30. </data>
  31. </send>
  32. <init>
  33. <P0350list>
  34. <P0350>
  35. <cdnm/>
  36. <cdid/>
  37. </P0350>
  38. </P0350list>
  39. <orddeptcd>
  40. <orddeptcdlist>
  41. <cd/>
  42. <nm/>
  43. </orddeptcdlist>
  44. </orddeptcd>
  45. <orddrid>
  46. <orddridlist>
  47. <cd/>
  48. <nm/>
  49. <dp/>
  50. <sp/>
  51. </orddridlist>
  52. </orddrid>
  53. <cmb_info>
  54. <initexcuroomgrp>
  55. <excuroomgrpcdid/>
  56. <excuroomgrpcdnm/>
  57. </initexcuroomgrp>
  58. </cmb_info>
  59. <comportctl>출력포트입력 :</comportctl>
  60. <outputcnt>출력매수입력 :</outputcnt>
  61. <outputcntval>1</outputcntval>
  62. </init>
  63. <hidden>
  64. <uid>
  65. <myself/>
  66. <opener/>
  67. </uid>
  68. <tmp/>
  69. <barprntinfo>
  70. <comport>2</comport>
  71. <setting>9600,n,8,1</setting>
  72. <ip/>
  73. <patdonor>1</patdonor>
  74. </barprntinfo>
  75. <Message/>
  76. </hidden>
  77. </root>
  78. </instance>
  79. <script type="javascript" ev:event="xforms-ready">
  80. <![CDATA[
  81. zbcfGetCodeList(new Array("P0350"), new Array("/root/init/P0350list"));
  82. //진료과코드 진료의사ID 조회
  83. pamGetDeptCDDrIDList();
  84. // if( getNodesetCount("/root/send/srchcond") > 0 ){
  85. // if( model.getValue("/root/send/checkfnexam") != "1" ){
  86. // //조회조건에서 '예약일시'를 제거한다.
  87. // cmb_cond.choices.itemset.attribute("nodeset") = "/root/init/P0350list/P0350[cdid != '5' ]";
  88. // }
  89. //
  90. // fChangeSearchCondition( '1' );
  91. // model.refresh();
  92. //
  93. // //값이 부모창에서 입력되었을 경우 조회한다.
  94. // if(model.getValue("/root/send/srchcond") != '5' && fInputValueCheckXformsReady() ){
  95. // //if( fInputValueCheckXformsReady() ){
  96. // if( submit("TRPMC02500") ){
  97. // if( grd_patinfo.rows == 2 ){
  98. // if( model.getValue("/root/send/autoflag").toUpperCase() == "Y" ){
  99. // model.setFocus("grd_patinfo");
  100. // btn_confirm.dispatch("DOMActivate");
  101. // window.close();
  102. // }
  103. // }
  104. // if( grd_patinfo.rows > 1 ){
  105. // model.setFocus("grd_patinfo");
  106. // }else{
  107. // fChangeSearchCondition( cmb_cond.value );
  108. // }
  109. // }
  110. // }
  111. // }else{
  112. // //조회조건에서 '예약일시'를 제거한다.
  113. // cmb_cond.choices.itemset.attribute("nodeset") = "/root/init/P0350list/P0350[cdid != '5' ]";
  114. //
  115. // model.makeNode("/root/send/srchcond");
  116. // model.makeNode("/root/send/pid");
  117. // model.makeNode("/root/send/hngnm");
  118. // model.makeNode("/root/send/rrgstno1");
  119. // model.makeNode("/root/send/rrgstno2");
  120. // model.makeNode("/root/send/acptdd");
  121. //
  122. // model.refresh();
  123. // }
  124. aezfSetSuppDeptcd();
  125. submit("TRAEA01301", false);
  126. // 라벨출력 초기화
  127. lzzfMakeBrcdPrntObjHanDo("CommAX");
  128. model.setValue("/root/send/srchcond" , "1");
  129. cmb_cond.dispatch("xforms-value-changed");
  130. model.removeNode("/root/init/P0350list/P0350[cdid='5']"); // 원무기준 예약일자 는 제외
  131. model.refresh();
  132. ]]>
  133. </script>
  134. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  135. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  136. <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinfo"/>
  137. <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
  138. </model>
  139. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  140. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  141. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  142. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  143. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  144. <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
  145. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  146. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  147. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  148. <script type="javascript">
  149. <![CDATA[
  150. //창 생성시 부모창으로 부터 받은 입력값의 유효범위 체크
  151. function fInputValueCheckXformsReady(){
  152. var cond = model.getValue("/root/send/srchcond");
  153. switch(cond){
  154. case '1':
  155. //환자등록번호 체크
  156. if(ipt_pid.currentText.length >= 1 ){
  157. model.setValue("/root/send/pid", ipt_pid.currentText);
  158. return (true);
  159. }else{
  160. messageBox("환자등록번호를 정확히", "C001");
  161. return (false);
  162. }
  163. break;
  164. case '2':
  165. //환자이름 체크
  166. //if( ipt_hngnm.currentText.length >= 2 ) return (true);
  167. if(ipt_hngnm.currentText.length >= 2 ){
  168. model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
  169. return (true);
  170. }else{
  171. messageBox("환자이름을 2자리 이상", "C001");
  172. return (false);
  173. }
  174. break;
  175. case '3':
  176. //환자 주민번호 체크
  177. if( ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1){
  178. model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
  179. model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
  180. return (true);
  181. }else{
  182. messageBox("환자 주민번호를", "C001");
  183. return (false);
  184. }
  185. break;
  186. case '4':
  187. //환자이름 유효성 체크.
  188. if(ipt_hngnm.currentText.length >= 2 ){
  189. model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
  190. }else{
  191. messageBox("환자이름을 2자리 이상", "C001");
  192. return (false);
  193. }
  194. //환자 주민번호 체크
  195. if( ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1){
  196. model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
  197. model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
  198. }else{
  199. messageBox("환자 주민번호를", "C001");
  200. return (false);
  201. }
  202. return( true );
  203. break;
  204. case '5':
  205. //예약일자 유효성 체크 --
  206. if( isValidDateTime( model.getValue("/root/send/acptdd"), "YYYYMMDD") ){
  207. model.setValue("/root/send/acptdd", model.getValue("/root/send/acptdd"));
  208. //model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
  209. //alert("aaaa");
  210. return (true);
  211. }else{
  212. messageBox("예약일자를 정확히", "C001");
  213. return (false);
  214. }
  215. break;
  216. default :
  217. model.setFocus("cmb_cond");
  218. return( false );
  219. break;
  220. }
  221. }
  222. //입력값의 유효범위 체크
  223. function fInputValueCheck(){
  224. var cond = model.getValue("/root/send/srchcond");
  225. switch(cond){
  226. case '1':
  227. //환자등록번호 체크
  228. if(ipt_pid.currentText.length >= 1 ){
  229. model.setValue("/root/send/pid", ipt_pid.currentText);
  230. return (true);
  231. }else{
  232. messageBox("환자등록번호를 정확히", "C001");
  233. return (false);
  234. }
  235. break;
  236. case '2':
  237. //환자이름 체크
  238. //if( ipt_hngnm.currentText.length >= 2 ) return (true);
  239. if(ipt_hngnm.currentText.length >= 2 ){
  240. model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
  241. return (true);
  242. }else{
  243. messageBox("환자이름을 2자리 이상", "C001");
  244. return (false);
  245. }
  246. break;
  247. case '3':
  248. //환자 주민번호 체크
  249. if( ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1 ){
  250. model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
  251. model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
  252. return (true);
  253. }else{
  254. messageBox("환자 주민번호를", "C001");
  255. return (false);
  256. }
  257. break;
  258. case '4':
  259. //환자이름 유효성 체크.
  260. if(ipt_hngnm.currentText.length>= 2 ){
  261. model.setValue("/root/send/hngnm", ipt_hngnm.currentText);
  262. }else{
  263. messageBox("환자이름을 2자리 이상", "C001");
  264. return (false);
  265. }
  266. //환자 주민번호 체크
  267. if( ipt_rrgstno1.currentText.length >= 1 || ipt_rrgstno2.currentText.length >= 1){
  268. model.setValue("/root/send/rrgstno1", ipt_rrgstno1.currentText);
  269. model.setValue("/root/send/rrgstno2", ipt_rrgstno2.currentText);
  270. }else{
  271. messageBox("환자 주민번호를", "C001");
  272. return (false);
  273. }
  274. return( true );
  275. break;
  276. case '5':
  277. //예약일자 유효성 체크 --
  278. model.refresh();
  279. if( isValidDateTime( model.getValue("/root/send/acptdd"), "YYYYMMDD") ){
  280. //alert(model.getValue("/root/send/acptdd"));
  281. return (true);
  282. }else{
  283. messageBox("예약일자를 정확히", "C001");
  284. return (false);
  285. }
  286. break;
  287. default :
  288. messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
  289. model.setFocus("cmb_cond");
  290. return( false );
  291. break;
  292. }
  293. }
  294. //조회 조건에 맞는 input 컨트롤을 세팅해 준다.
  295. function fChangeSearchCondition( cond){
  296. switch(cond){
  297. case '1':
  298. model.makeNode("/root/send/pid");
  299. ipt_pid.attribute("visibility") = "visible";
  300. ipt_pid.attribute("left") = "219px";
  301. ipt_pid.attribute("top") = "8px";
  302. ipt_hngnm.attribute("visibility") = "hidden";
  303. ipt_rrgstno1.attribute("visibility") = "hidden";
  304. ipt_rrgstno2.attribute("visibility") = "hidden";
  305. ipt_acptdd.attribute("visibility") = "hidden";
  306. model.setFocus("ipt_pid");
  307. break;
  308. case '2':
  309. model.makeNode("/root/send/hngnm");
  310. ipt_hngnm.attribute("visibility") = "visible";
  311. ipt_hngnm.attribute("left") = "219px";
  312. ipt_hngnm.attribute("top") = "8px";
  313. ipt_pid.attribute("visibility") = "hidden";
  314. ipt_rrgstno1.attribute("visibility") = "hidden";
  315. ipt_rrgstno2.attribute("visibility") = "hidden";
  316. ipt_acptdd.attribute("visibility") = "hidden";
  317. model.setFocus("ipt_hngnm");
  318. break;
  319. case '3':
  320. model.makeNode("/root/send/rrgstno1");
  321. model.makeNode("/root/send/rrgstno2");
  322. ipt_rrgstno1.attribute("visibility") = "visible";
  323. ipt_rrgstno2.attribute("visibility") = "visible";
  324. ipt_rrgstno1.attribute("left") = "219px";
  325. ipt_rrgstno1.attribute("top") = "8px";
  326. ipt_rrgstno2.attribute("left") = "307px";
  327. ipt_rrgstno2.attribute("top") = "8px";
  328. ipt_hngnm.attribute("visibility") = "hidden";
  329. ipt_pid.attribute("visibility") = "hidden";
  330. ipt_acptdd.attribute("visibility") = "hidden";
  331. model.setFocus("ipt_rrgstno1");
  332. break;
  333. case '4':
  334. //model.makeNode("/root/send/pid");
  335. model.makeNode("/root/send/hngnm");
  336. model.makeNode("/root/send/rrgstno1");
  337. model.makeNode("/root/send/rrgstno2");
  338. ipt_hngnm.attribute("visibility") = "visible";
  339. ipt_hngnm.attribute("left") = "219px";
  340. ipt_hngnm.attribute("top") = "8px";
  341. ipt_pid.attribute("visibility") = "hidden";
  342. ipt_rrgstno1.attribute("visibility") = "visible";
  343. ipt_rrgstno1.attribute("left") = "352px";
  344. ipt_rrgstno1.attribute("top") = "8px";
  345. ipt_rrgstno2.attribute("visibility") = "visible";
  346. ipt_rrgstno2.attribute("left") = "440px";
  347. ipt_rrgstno2.attribute("top") = "8px";
  348. ipt_acptdd.attribute("visibility") = "hidden";
  349. model.setFocus("ipt_hngnm");
  350. break;
  351. case '5':
  352. model.makeNode("/root/send/acptdd");
  353. ipt_acptdd.attribute("visibility") = "visible";
  354. ipt_acptdd.attribute("left") = "219px";
  355. ipt_acptdd.attribute("top") = "8px";
  356. ipt_hngnm.attribute("visibility") = "hidden";
  357. ipt_pid.attribute("visibility") = "hidden";
  358. ipt_rrgstno1.attribute("visibility") = "hidden";
  359. ipt_rrgstno2.attribute("visibility") = "hidden";
  360. model.setFocus("ipt_acptdd");
  361. break;
  362. default :
  363. //messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
  364. break;
  365. }
  366. }
  367. function fLabelPrint()
  368. {
  369. var sSndMsg = "";
  370. var sBcNo = "";
  371. var iprintcnt = 0;
  372. if ( model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid") == "" ) {
  373. messageBox("검사실그룹이 선택되지 ", "E007");
  374. return;
  375. }
  376. var pid = model.getValue("/root/main/patinfo/patinfolist["+grd_patinfo.row+"]/pid");
  377. var patnm = model.getValue("/root/main/patinfo/patinfolist["+grd_patinfo.row+"]/hngnm");
  378. var gbn = model.getValue("/root/main/patinfo/patinfolist["+grd_patinfo.row+"]/rrgstno2").substring(0, 1);
  379. var rrgstno1 = model.getValue("/root/main/patinfo/patinfolist["+grd_patinfo.row+"]/rrgstno1");
  380. var rrgstno2 = model.getValue("/root/main/patinfo/patinfolist["+grd_patinfo.row+"]/rrgstno2");
  381. var barpid = pid;
  382. var excugrp= model.getValue("/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid");
  383. var currentdate = getCurrentDate();
  384. if ( gbn == "1" ) {
  385. var sex = "M";
  386. // var age = getFullAge(rrgstno1+rrgstno2, currentdate, "A"); // 12개월 미만의 나이는 계산못함. 향후 체크해야 함. 장준원
  387. var age = aezfgetFullAge(rrgstno1+rrgstno2);
  388. }else {
  389. var sex = "F";
  390. // var age = getFullAge(rrgstno1+rrgstno2, currentdate, "A");
  391. var age = aezfgetFullAge(rrgstno1+rrgstno2);
  392. }
  393. if ( pid == "" ) {
  394. messageBox("처방목록이 선택되지 ", "E007");
  395. return;
  396. }
  397. //alert('pid->'+pid+', patnm->'+patnm+', gbn->'+gbn+', rrgstno1->'+rrgstno1+', sex->'+sex+', age->'+age);
  398. //var curdata = getCurrentDate();
  399. //var curtm = getCurrentTime();
  400. //var prcpnm = model.getValue("/root/main/subordlist/subordlist1["+grd_subordlist1.row+"]/prcpnm");
  401. // Comm 설정
  402. //alert(model.getValue("/root/hidden/barprntinfo/comport"));
  403. //CommAX.CommPort = model.getValue("/root/hidden/barprntinfo/comport"); // 출력 Port
  404. //CommAX.Settings = model.getValue("/root/hidden/barprntinfo/setting"); // Comm 설정
  405. sSndMsg = "";
  406. //시작(X, Y)
  407. sSndMsg += lzzfBP_StartFormat(0, 0);
  408. sSndMsg += "^BY2,2.5^FO" + "200" + "," + "30"; // 바코드 Width 조절
  409. sSndMsg += "^BCN,70,N,N,N^FD" + "*"+barpid+excugrp+"*" + "^FS";
  410. //sSndMsg += "^BCN,70,N,N,N^FD" + "*"+barpid+"*"+ "^FS";
  411. // 등록번호 + 그룹코드
  412. sSndMsg += lzzfBP_ChangeFont("C", 7, 7); // 폰트 설정
  413. sSndMsg += lzzfBP_FieldDataA(265, 105, "*"+pid+' '+excugrp+"*" );
  414. // 등록번호 --
  415. sSndMsg += lzzfBP_ChangeFont("C", 45, 15); // 폰트 설정
  416. sSndMsg += lzzfBP_FieldDataA(85, 150, pid );
  417. //환자명 --
  418. sSndMsg += lzzfBP_ChangeFont("C", 45, 15); // 폰트 설정
  419. //sSndMsg += CommAX.PrtImgOut("GRAPH003", patnm);
  420. //sSndMsg += lzzfBP_FiendOrigin(100, 210)
  421. //sSndMsg += "^XGGRAPH003,2,2^FS";
  422. sSndMsg += CommAX.PrtImgOut(100, 210, patnm, 2, 2); //가로시작위치, 세로시작위치, 출력할문자열, 1,1 (비율)
  423. sSndMsg += CommAX.HanImageData();
  424. // 성별
  425. sSndMsg += lzzfBP_ChangeFont("C", 45, 15); // 폰트 설정
  426. sSndMsg += lzzfBP_FieldDataA(400, 210, sex );
  427. // 나이
  428. sSndMsg += lzzfBP_ChangeFont("C", 45, 15); // 폰트 설정
  429. sSndMsg += lzzfBP_FieldDataA(550, 210, age );
  430. // 그룹코드
  431. sSndMsg += lzzfBP_ChangeFont("C", 45, 15); // 폰트 설정
  432. sSndMsg += lzzfBP_FieldDataA(550, 150, excugrp );
  433. // 주민번호
  434. sSndMsg += lzzfBP_ChangeFont("C", 35, 15); // 폰트 설정
  435. sSndMsg += lzzfBP_FieldDataA(400, 270, rrgstno1+"-"+gbn );
  436. // 초음파실
  437. //sSndMsg += fCarePrintOutH(480, 5, 2, "N", "초음파실" , "");
  438. // 처방명
  439. //sSndMsg += fCarePrintOutH(5, 180, 1, "Y", prcpnm , "");
  440. //sSndMsg += lzzfBP_ChangeFont("C", 40, 15);
  441. //sSndMsg += lzzfBP_FieldDataA(5, 180, prcpnm);
  442. //종료(매수)
  443. sSndMsg += lzzfBP_EndFormat();
  444. CommAX.SendMessage(sSndMsg);
  445. model.setValue("/root/hidden/Message", CommAX.Message);
  446. model.refresh();
  447. }
  448. ]]>
  449. </script>
  450. </xhtml:head>
  451. <xhtml:body pagewidth="634" pageheight="343" guideline="2,343;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  452. <group id="group3" scroll="auto" style="left:0px; top:0px; width:618px; height:316px; ">
  453. <group id="group2" style="left:0px; top:0px; width:618px; height:35px; ">
  454. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:617px; height:35px; "/>
  455. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
  456. <button id="btn_search" class="btn1_letter2" navindex="6" style="left:545px; top:7px; width:56px; height:22px; ">
  457. <caption>조회</caption>
  458. <script type="javascript" ev:event="DOMActivate">
  459. <![CDATA[
  460. if( fInputValueCheck() ){
  461. if( submit("TRPMC02500") ){
  462. if( grd_patinfo.rows > 1 ){
  463. model.setFocus("grd_patinfo");
  464. }else{
  465. fChangeSearchCondition( cmb_cond.value );
  466. }
  467. }
  468. }
  469. ]]>
  470. </script>
  471. </button>
  472. <line id="line13" class="line_4" style="x1:529px; y1:7px; x2:529px; y2:29px; border-color:#ffe4bb; "/>
  473. <input id="ipt_hngnm" ref="/root/send/hngnm" class="input_search" navindex="1" visibility="hidden" autonext="false" imemode="hangul" style="left:224px; top:8px; width:130px; height:19px; ">
  474. <script type="javascript" ev:event="onkeypress">
  475. <![CDATA[
  476. inputEnterKey("btn_search", "DOMActivate");
  477. ]]>
  478. </script>
  479. </input>
  480. <input id="ipt_rrgstno1" ref="/root/send/rrgstno1" class="input_search" navindex="2" visibility="hidden" format="999999" style="left:247px; top:8px; width:85px; height:19px; ">
  481. <script type="javascript" ev:event="onkeypress">
  482. <![CDATA[
  483. inputEnterKey("btn_search", "DOMActivate");
  484. ]]>
  485. </script>
  486. </input>
  487. <select1 id="cmb_cond" ref="/root/send/srchcond" class="combo_search" navindex="10" appearance="minimal" style="left:106px; top:8px; width:110px; height:19px; ">
  488. <choices>
  489. <itemset nodeset="/root/init/P0350list/P0350">
  490. <label ref="cdnm"/>
  491. <value ref="cdid"/>
  492. </itemset>
  493. </choices>
  494. <script type="javascript" ev:event="xforms-value-changed">
  495. <![CDATA[
  496. var cond = model.getValue("/root/send/srchcond");
  497. //model.refresh();
  498. fChangeSearchCondition( cond );
  499. ]]>
  500. </script>
  501. </select1>
  502. <input id="ipt_rrgstno2" ref="/root/send/rrgstno2" class="input_search" navindex="3" visibility="hidden" autonext="false" format="9999999" style="left:285px; top:8px; width:85px; height:19px; ">
  503. <script type="javascript" ev:event="onkeypress">
  504. <![CDATA[
  505. inputEnterKey("btn_search", "DOMActivate");
  506. ]]>
  507. </script>
  508. </input>
  509. <input id="ipt_pid" ref="/root/send/pid" class="input_search" navindex="4" visibility="hidden" autonext="false" style="left:325px; top:8px; width:130px; height:19px; ">
  510. <script type="javascript" ev:event="onkeypress">
  511. <![CDATA[
  512. inputEnterKey("btn_search", "DOMActivate");
  513. ]]>
  514. </script>
  515. </input>
  516. <input id="ipt_acptdd" ref="/root/send/acptdd" class="input_search" navindex="5" visibility="hidden" autonext="false" inputtype="date" style="left:390px; top:8px; width:130px; height:19px; ">
  517. <script type="javascript" ev:event="onkeypress">
  518. <![CDATA[
  519. inputEnterKey("btn_search", "DOMActivate");
  520. ]]>
  521. </script>
  522. </input>
  523. </group>
  524. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:95px; height:14px; ">인적사항</caption>
  525. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:617px; y2:60px; "/>
  526. <datagrid id="grd_patinfo" nodeset="/root/main/patinfo/patinfolist" caption="등록번호^기관코드^환자성명^영문이름^한문이름^주민등록번호^주민등록번호^집전화번호^휴대전화번호^최근내원일^최근내원과^외래미수금^퇴원미수금^생년월일^성별^나이^합본등록번호^기타전화번호1^기타전화번호2^sms전송승인 여부^이메일 계정^우편번호^우편번호^우편번호순서^주소^상세주소^혈액형^RH혈액형^외국인여부^국적^여권번호^추천여부^추천인ID^추천인명^추천인관계^VIP여부^VIP비고^종교코드^세례명^성당명^사망여부^사망시각^사망일자^사망시간^내원사유^동물여부^원외예외사유코드^재원여부^장애인여부^특이/문제환자^당일퇴원여부^참고사항^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="60, 100, 65, 65, 65, 50, 50, 85, 100, 100, 100, 100, 100, 75, 100, 100, 100, 100, 100, 120, 100, 50, 50, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 119, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" navindex="7" style="left:0px; top:65px; width:617px; height:250px; ">
  527. <col ref="pid"/>
  528. <col ref="instcd" visibility="hidden"/>
  529. <col ref="hngnm"/>
  530. <col ref="engnm" visibility="hidden"/>
  531. <col ref="chinm" visibility="hidden"/>
  532. <col ref="rrgstno1"/>
  533. <col ref="rrgstno2"/>
  534. <col ref="hometel"/>
  535. <col ref="mpphontel"/>
  536. <col ref="lastorddd" format="yyyy-mm-dd"/>
  537. <col disabled="true" ref="lastorddeptcd" type="combo">
  538. <choices>
  539. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  540. <label ref="nm"/>
  541. <value ref="cd"/>
  542. </itemset>
  543. </choices>
  544. </col>
  545. <col ref="outuncoamt" visibility="hidden"/>
  546. <col ref="dschuncoamt" visibility="hidden"/>
  547. <col ref="brthdd" visibility="hidden" format="yyyy-mm-dd"/>
  548. <col ref="sex" visibility="hidden"/>
  549. <col ref="age" visibility="hidden"/>
  550. <col ref="bindpid" visibility="hidden"/>
  551. <col ref="etctel1" visibility="hidden"/>
  552. <col ref="etctel2" visibility="hidden"/>
  553. <col ref="smsaprvyn" visibility="hidden"/>
  554. <col ref="email" visibility="hidden"/>
  555. <col ref="zipcd1" visibility="hidden"/>
  556. <col ref="zipcd2" visibility="hidden"/>
  557. <col ref="zipcdseq" visibility="hidden"/>
  558. <col ref="addr"/>
  559. <col ref="detladdr"/>
  560. <col ref="btype" visibility="hidden"/>
  561. <col ref="rh" visibility="hidden"/>
  562. <col ref="forgeryn" visibility="hidden"/>
  563. <col ref="nati" visibility="hidden"/>
  564. <col ref="psptno" visibility="hidden"/>
  565. <col ref="recmyn" visibility="hidden"/>
  566. <col ref="recmerid" visibility="hidden"/>
  567. <col ref="recmernm" visibility="hidden"/>
  568. <col ref="recmerrela" visibility="hidden"/>
  569. <col ref="vipyn" visibility="hidden"/>
  570. <col ref="viprem" visibility="hidden"/>
  571. <col ref="religncd" visibility="hidden"/>
  572. <col ref="baptnm" visibility="hidden"/>
  573. <col ref="chchnm" visibility="hidden"/>
  574. <col ref="dethyn" visibility="hidden"/>
  575. <col ref="dethdt" visibility="hidden"/>
  576. <col ref="dethdd" visibility="hidden"/>
  577. <col ref="dethtm" visibility="hidden"/>
  578. <col ref="chosresn" visibility="hidden"/>
  579. <col ref="animyn" visibility="hidden"/>
  580. <col ref="exptresncd" visibility="hidden"/>
  581. <col ref="inhospyn" visibility="hidden"/>
  582. <col ref="handicapryn" visibility="hidden"/>
  583. <col ref="patspcfyn" visibility="hidden"/>
  584. <col ref="tdaydsch" visibility="hidden"/>
  585. <col ref="remfact" visibility="hidden"/>
  586. <col ref="acptdd" visibility="hidden"/>
  587. <col ref="acptno" visibility="hidden"/>
  588. <col ref="lastupdtrid" visibility="hidden"/>
  589. <col ref="lastupdtdt" visibility="hidden"/>
  590. <script type="javascript" ev:event="ondblclick">
  591. <![CDATA[
  592. // if ( checkOpener() ) {
  593. // row = grd_patinfo.row;
  594. //
  595. // if( row > 0 ){
  596. // if( getNodesetCount("/root/main/patinfo/patinfolist") > 0 ){
  597. // opener.model.copyNode("/root/main/patinfo/patinfolist", grd_patinfo.getNode( row ));
  598. // opener.model.makeNode("/root/main/popupendflag");
  599. // opener.model.setValue("/root/main/popupendflag", "ok");
  600. //
  601. // opener.model.refresh();
  602. // window.close();
  603. // }
  604. // }
  605. // } else {
  606. // messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  607. // }
  608. btn_confirm.dispatch("DOMActivate");
  609. ]]>
  610. </script>
  611. <script type="javascript" ev:event="onclick">
  612. <![CDATA[
  613. /*
  614. if ( checkOpener() ) {
  615. row = grd_patinfo.row;
  616. if( row > 0 ){
  617. if( getNodesetCount("/root/main/patinfo/patinfolist") > 1 ){
  618. opener.model.copyNode("/root/main/patinfo/patinfolist", grd_patinfo.getNode( row ));
  619. opener.model.refresh();
  620. }
  621. }
  622. } else {
  623. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  624. }
  625. */
  626. ]]>
  627. </script>
  628. <script type="javascript" ev:event="onkeypress">
  629. <![CDATA[
  630. if( event.keyCode == 13 ){
  631. btn_confirm.dispatch("DOMActivate");
  632. }
  633. //alert("aaa");
  634. ]]>
  635. </script>
  636. </datagrid>
  637. </group>
  638. <group id="group1" scroll="auto" style="left:0px; top:316px; width:618px; height:27px; ">
  639. <button id="btn_confirm" class="btn4_letter2" navindex="8" style="left:502px; top:5px; width:56px; height:22px; ">
  640. <caption>출력</caption>
  641. <script type="javascript" ev:event="DOMActivate">
  642. <![CDATA[
  643. var cnt = model.getValue("/root/init/outputcntval");
  644. //alert('cnt->'+cnt);
  645. if ( cnt < 1 ) {
  646. messageBox("출력매수가 정확하지 않습니다.","I999");
  647. return;
  648. }
  649. //for (var i = 1; i <= cnt; i++) {
  650. // fLabelPrint();
  651. //alert(i);
  652. //}
  653. var portOpenTF = ""; //오픈 성공 여부
  654. CommAX.CommPort = model.getValue("/root/hidden/barprntinfo/comport"); // 출력 Port
  655. CommAX.Settings = model.getValue("/root/hidden/barprntinfo/setting"); // Comm 설정
  656. portOpenTF = CommAX.PortOpen("true");
  657. if(portOpenTF == "TRUE"){
  658. for (var i = 1; i <= cnt; i++) {
  659. fLabelPrint();
  660. //alert(i);
  661. }
  662. CommAX.PortOpen("false");
  663. }else {
  664. messageBox("아래 사항을 확인후 재출력해주십시오."
  665. + " \n 1.프린트설정 화면에서 통신유형을 com 으로 선택한 경우 port 번호 확인"
  666. + " \n 2.케이블 확인"
  667. + " \n 3.먼저 출력중인 바코드 확인(모두 출력된 후 재출력하십시오.)", "I", "");
  668. return;
  669. }
  670. ]]>
  671. </script>
  672. </button>
  673. <button id="btn_cancel" class="btn4_letter2" navindex="9" style="left:561px; top:5px; width:56px; height:22px; ">
  674. <caption>닫기</caption>
  675. <script type="javascript" ev:event="DOMActivate">
  676. <![CDATA[
  677. // opener.model.makeNode("/root/main/popupendflag");
  678. // opener.model.setValue("/root/main/popupendflag", "cancel");
  679. window.close();
  680. ]]>
  681. </script>
  682. </button>
  683. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:618px; y2:0px; "/>
  684. <select1 id="combo1" ref="/root/send/data/cmb_info/initexcuroomgrp/excuroomgrpcdid" class="combo_s_essential" appearance="minimal" style="left:370px; top:5px; width:120px; height:19px; ">
  685. <choices>
  686. <itemset nodeset="/root/init/cmb_info/initexcuroomgrp">
  687. <label ref="excuroomgrpcdnm"/>
  688. <value ref="excuroomgrpcdid"/>
  689. </itemset>
  690. </choices>
  691. </select1>
  692. <input id="input1" ref="/root/hidden/barprntinfo/comport" class="input_search" format="#,###" style="left:186px; top:5px; width:30px; height:19px; "/>
  693. <output id="output1" ref="/root/init/comportctl" style="left:95px; top:5px; width:90px; height:19px; font-weight:bold; text-align:center; "/>
  694. <output id="output2" ref="/root/init/outputcnt" style="left:235px; top:5px; width:95px; height:19px; font-weight:bold; text-align:center; "/>
  695. <input id="input2" ref="/root/init/outputcntval" format="#,###" style="left:331px; top:5px; width:35px; height:19px; "/>
  696. </group>
  697. </xhtml:body>
  698. </xhtml:html>