SMLLC00100_외래채혈관리.xrw 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLC00100.xrw
  4. * 설 명 : 외래채혈관리
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 조철형
  7. * 작 성 일 : 2006.02.08
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" ztype="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. <bcoll>
  20. <bcolllist>
  21. <chk/>
  22. <prcpdd/>
  23. <orddeptnm/>
  24. <execdeptnm/>
  25. <ordrsrvdt/>
  26. <pid/>
  27. <prcphopedd/>
  28. <barcdprntdt/>
  29. </bcolllist>
  30. <ordrsrvinfo>
  31. <nm/>
  32. <cd/>
  33. </ordrsrvinfo>
  34. <tnsprcpinfo>
  35. <tnsprcpyn/>
  36. <bftnsprcpyn/>
  37. <today/>
  38. </tnsprcpinfo>
  39. <hngnminfo>
  40. <hngnm/>
  41. </hngnminfo>
  42. <jaewoninfo>
  43. <jaewon/>
  44. </jaewoninfo>
  45. <bloodinfo>
  46. <bloodchk/>
  47. </bloodinfo>
  48. </bcoll>
  49. <patinfo>
  50. <patinfolist/>
  51. </patinfo>
  52. <popupendflag/>
  53. <bbcoll/>
  54. <PatNmBarCdPrint/>
  55. </main>
  56. <send>
  57. <data1/>
  58. <data2/>
  59. </send>
  60. <init>
  61. </init>
  62. <hidden>
  63. <JoHoiFlag>
  64. <refflag>1</refflag>
  65. <regnopatnm/>
  66. <bcollflag>1</bcollflag>
  67. <bizflag>Out</bizflag>
  68. <pid/>
  69. <hdisp/>
  70. <prcpgenrflag/>
  71. <xrwGBN/>
  72. <erflag/>
  73. <arvtime/>
  74. <orddeptcd/>
  75. <bcollflag1>1</bcollflag1>
  76. <ibftest/>
  77. <donorbcoll/>
  78. <prcpkindcd>-</prcpkindcd>
  79. </JoHoiFlag>
  80. <bcoll>
  81. <bcolllist>
  82. <chk/>
  83. <prcpdd/>
  84. <orddeptnm/>
  85. <execdeptnm/>
  86. <ordrsrvdt/>
  87. <pid/>
  88. </bcolllist>
  89. <ordrsrvinfo>
  90. <prestr/>
  91. </ordrsrvinfo>
  92. </bcoll>
  93. <cancelyn>1</cancelyn>
  94. <pflag>3</pflag>
  95. <autoref/>
  96. <ref>
  97. <searchtext/>
  98. <spccho/>
  99. </ref>
  100. <prcprcptyn/>
  101. <prcprcptinfo>
  102. <instcd/>
  103. <pid/>
  104. <flagvalue/>
  105. <flag/>
  106. </prcprcptinfo>
  107. </hidden>
  108. <temp>
  109. <locatelist/>
  110. <locatesend>
  111. <pid/>
  112. <prcpdd/>
  113. </locatesend>
  114. </temp>
  115. <spccdlist>
  116. <tclscd/>
  117. <tclsnm/>
  118. </spccdlist>
  119. </root>
  120. </instance>
  121. <script type="javascript" ev:event="xforms-ready">
  122. <![CDATA[
  123. fBaseInfoRef("8001|0401|9990|0138|0139|");
  124. model.setValue( "/root/hidden/pflag", model.getValue("/root/init/LB9990/cd"))
  125. model.setvalue("/root/hidden/JoHoiFlag/xrwGBN" , "outbcoll");
  126. grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("bcollbarcdprntcnt"))=true; // 바코드갯수
  127. grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("reprntcnt"))=true; // 재출력범위
  128. grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("tclscd"))=true; // 검사코드
  129. grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("prcpdd"))=true; // 처방등록일
  130. grd_BcollInfo.colHidden(grd_BcollInfo.colRef("barcdprntdt"))=true; // 바코드출력일시
  131. grd_BcollInfo.fixedcellcheckbox(0,1) = true;
  132. if(getUserInfo("dutplceinstcd") == "012") {
  133. datagrid1.visible = true;
  134. }
  135. btn_chkn.attribute("visibility") = "visible"; //전체선택해제 보이기
  136. fChangeDonorYN();
  137. model.setValue("/root/hidden/JoHoiFlag/ibftest", model.getValue("/root/init/LB0138/cd"));
  138. fSetBcollFlag();
  139. ]]>
  140. </script>
  141. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  142. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  143. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  144. <submission id="TRLLC00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/locatelist"/>
  145. <submission id="TRLLC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/bcoll"/>
  146. <submission id="TRLLC00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/bbcoll"/>
  147. <submission id="TRLZZ90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/PatNmBarCdPrint"/>
  148. <submission id="TRAEA01100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/prcprcptinfo" replace="instance" resultref="/root/hidden/prcprcptyn"/>
  149. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  150. <submission id="TRLLC90904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/ordlist"/>
  151. </model>
  152. <script type="javascript">
  153. <![CDATA[
  154. // 채혈구분 선택시 버튼영역 변경
  155. function fSetBcollFlag(){
  156. fInitForm_Click();
  157. if(model.getValue("/root/hidden/JoHoiFlag/bcollflag")=="1"){
  158. grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("bcno"))=true; // 바코드번호
  159. grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("canceldesc"))=true; // 취소사유
  160. grd_BcollInfo.colHidden(grd_BcollInfo.colRef("barcdprntdt"))=true; // 바코드출력일
  161. checkbox4.visible = true;
  162. }else{
  163. grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("bcno"))=false; // 바코드번호
  164. grd_TestInfoCnts.colHidden(grd_TestInfoCnts.colRef("canceldesc"))=false; // 취소사유
  165. grd_BcollInfo.colHidden(grd_BcollInfo.colRef("barcdprntdt"))=false; // 바코드출력일
  166. checkbox4.visible = false;
  167. model.setValue("/root/hidden/JoHoiFlag/hdisp", "");
  168. }
  169. if(model.getValue("/root/hidden/JoHoiFlag/bcollflag")=="1"){
  170. group4.attribute("visibility") = "visible";
  171. group6.attribute("visibility") = "hidden";
  172. group7.attribute("visibility") = "hidden";
  173. }else if(model.getValue("/root/hidden/JoHoiFlag/bcollflag")=="2"){
  174. group4.attribute("visibility") = "hidden";
  175. group6.attribute("visibility") = "visible";
  176. group7.attribute("visibility") = "hidden";
  177. }else{
  178. group4.attribute("visibility") = "hidden";
  179. group6.attribute("visibility") = "hidden";
  180. group7.attribute("visibility") = "visible";
  181. }
  182. }
  183. function fInitForm_Click() {
  184. fInitDetailForm();
  185. }
  186. // 외래 환자 채혈 리스트 조회
  187. function fGetOutBCollJoHoi(){
  188. caption1.visible = false;
  189. caption7.visible = false;
  190. if(model.getvalue("/root/hidden/JoHoiFlag/regnopatnm") == ""){
  191. messageBox("등록번호를","C001","") ;
  192. return;
  193. }
  194. /* 2014.7월 30일 수사변경에 따른 작업 */
  195. // if( model.getValue("/root/hidden/JoHoiFlag/bcollflag") == "1" )
  196. // {
  197. // getPrcpRcptCheck(model.getvalue("/root/hidden/JoHoiFlag/regnopatnm"));
  198. // }
  199. /* 2014.7월 30일 수사변경에 따른 작업 */
  200. delPatientInfos(); //새로운 등록번호 치면 상단정보 초기화
  201. fInitDetailForm();
  202. var gbn = model.getvalue("/root/hidden/JoHoiFlag/refflag");
  203. model.setvalue("/root/hidden/JoHoiFlag/regnopatnm", model.getValue("/root/hidden/JoHoiFlag/regnopatnm").getTrim());
  204. model.copyNode("/root/send/data1","/root/hidden/JoHoiFlag");
  205. submit("TRLLC00101");
  206. //messageBox(model.getValue("/root/main/bcoll/jaewon"));
  207. //messageBox(model.getValue("/root/main/bcoll/jaewoninfo/jaewon"),'1010');
  208. // alert(model.getValue("/root/main/bcoll/jaewoninfo/jaewon"));
  209. //=============================================================
  210. //2012 08. 30일 입원유무체크 이재오 추가
  211. //=============================================================
  212. if(model.getValue("/root/main/bcoll/jaewoninfo/jaewon") == "Y") {
  213. messageBox("입원중인 환자입니다. 확인하세요", "1");
  214. }
  215. //=============================================================
  216. //=============================================================
  217. //2012 08. 30일 입원유무체크 이재오 추가
  218. //=============================================================
  219. if(model.getValue("/root/main/bcoll/bloodinfo/bloodchk") == "Y") {
  220. messageBox("사혈 또는 자가채혈이 존재하는 환자입니다. 확인하세요", "1");
  221. }
  222. //=============================================================
  223. //=============================================================
  224. //외래 수혈 처방 존재 여부 메시지 - 2009.04.02 김성희 추가
  225. //=============================================================
  226. if(model.getValue("/root/main/bcoll/tnsprcpinfo/tnsprcpyn") == "Y") {
  227. messageBox("수혈처방이", "I010");
  228. }else if(model.getValue("/root/main/bcoll/tnsprcpinfo/tnsprcpyn") == "N" && model.getValue("/root/main/bcoll/tnsprcpinfo/bftnsprcpyn") == "Y") {
  229. messageBox("한달 이내에 수혈 내역이", "I010");
  230. }
  231. model.removeNodeset("/root/send/data1");
  232. model.makeNode("/root/send/data1");
  233. //진료예약정보 기본선택
  234. cmb_prestr.select(0);
  235. fClick_grdBcollinfo("1");
  236. //========================================================================
  237. //2009.07.01 고시변경에 의한 본인부담 요율변경 대상 환자
  238. //원무 수납 재정산 안내 메시지 및 메시지 출력 여부 (2009.06.30 김성희 추가)
  239. //========================================================================
  240. fGetPrcpRcptInfo(getUserInfo("dutplceinstcd")
  241. , model.getValue("/root/hidden/JoHoiFlag/regnopatnm").getTrim()
  242. , model.getValue("/root/init/LB8001/cd")
  243. , "1");
  244. // 당일검사시 검사희망일 및 처방일 색깔 빨강색으로 둔다
  245. if(grd_BcollInfo.rows > 0) {
  246. for(iRow = 1; iRow < grd_BcollInfo.rows;iRow++)
  247. {
  248. if(model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/prcphopedd") == model.getValue("/root/main/bcoll/tnsprcpinfo/today"))
  249. {
  250. grd_BcollInfo.cellstyle("color", iRow, grd_BcollInfo.colRef("prcphopedd")) = "#ff3300";
  251. grd_BcollInfo.cellstyle("color", iRow, grd_BcollInfo.colRef("prcpdd")) = "#ff3300";
  252. }
  253. }
  254. }
  255. // for(iRow = fRow + 1; iRow < grd_BcollInfo.rows;iRow++){
  256. // if(model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/prcphopedd") == model.getValue("/root/main/bcoll/tnsprcpinfo/today")){
  257. // grd_BcollInfo.cellstyle("color", iRow, grd_BcollInfo.colRef("prcphopedd")) = "#ff3300";
  258. //
  259. // }
  260. // }
  261. }
  262. //리스트 클릭
  263. function fGetTclscdList(row){
  264. btn_chky.attribute("visibility") = "hidden"; //전체선택 숨기기
  265. btn_chkn.attribute("visibility") = "visible"; //전체선택해제 보이기
  266. if(model.getvalue("/root/hidden/JoHoiFlag/hdisp") != "1"){ //통합표시 아닐때.
  267. model.setvalue("/root/hidden/JoHoiFlag/pid",model.getvalue("/root/main/bcoll/bcolllist["+row+"]/pid"));
  268. model.setvalue("/root/hidden/JoHoiFlag/prcpgenrflag",model.getvalue("/root/main/bcoll/bcolllist["+row+"]/prcpgenrflag"));
  269. model.setvalue("/root/hidden/JoHoiFlag/orddeptcd",model.getvalue("/root/main/bcoll/bcolllist["+row+"]/orddeptcd"));
  270. model.copyNode("/root/send/data1","/root/main/bcoll/bcolllist["+row+"]");
  271. model.copyNode("/root/send/data2","/root/hidden/JoHoiFlag");
  272. }
  273. else{ //통합표시일 경우.
  274. if(model.getValue("/root/hidden/JoHoiFlag/bcollflag1") == "1") { //희망일시인 경우.
  275. var prcphopedtList = "";
  276. var orddeptcdList = "";
  277. var orddridList = "";
  278. var prcpddList = "";
  279. if(grd_BcollInfo.rows > 0) {
  280. var fRow = grd_BcollInfo.findRow("true",1,1,true);
  281. if(fRow < 1) return;
  282. prcphopedtList = "'" + model.getvalue("/root/main/bcoll/bcolllist["+fRow+"]/prcphopedd") + "'";
  283. orddeptcdList = "'" + model.getvalue("/root/main/bcoll/bcolllist["+fRow+"]/orddeptcd") + "'";
  284. orddridList = "'" + model.getvalue("/root/main/bcoll/bcolllist["+fRow+"]/orddrid") + "'";
  285. prcpddList = "'" + model.getvalue("/root/main/bcoll/bcolllist["+fRow+"]/prcpdd") + "'";
  286. for(iRow = fRow + 1; iRow < grd_BcollInfo.rows;iRow++){
  287. if(model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/chk") == "true"){
  288. prcphopedtList = prcphopedtList + "," + "'" + model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/prcphopedd") + "'";
  289. orddeptcdList = orddeptcdList + "," + "'" + model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/orddeptcd") + "'";
  290. orddridList = orddridList + "," + "'" + model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/orddrid") + "'";
  291. prcpddList = prcpddList + "," + "'" + model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/prcpdd") + "'";
  292. }
  293. }
  294. model.copyNode("/root/send/data1","/root/main/bcoll/bcolllist["+fRow+"]");
  295. model.copyNode("/root/send/data2","/root/hidden/JoHoiFlag");
  296. model.makeValue("/root/send/data1/prcpdd",prcphopedtList);
  297. model.makeValue("/root/send/data1/orddeptcd",orddeptcdList);
  298. model.makeValue("/root/send/data1/orddrid",orddridList);
  299. model.makeValue("/root/send/data1/prcpdd2",prcpddList); // prcpdd는 이미 쓰이고 있어서 prcpdd2 로... 왜 희망일시를 prcpdd로 셋하는지 모르겠음.
  300. model.refresh();
  301. }
  302. }
  303. }
  304. // alert(model.getValue("/root/main/TestInfo/bfcontrol/bfcontrolyn"));
  305. // 이재오 추가 2013
  306. model.removeNodeset("/root/main/TestInfo/getTestInfoCnts");
  307. model.resetInstanceNode("/root/main/TestInfo/TestspcfInfo");
  308. model.refresh();
  309. submit("TRLLC00102");
  310. //=============================================================
  311. //2013 10. 30일 주의사항 관리 이재오 추가
  312. //=============================================================
  313. var ordList = model.getvalue("/root/main/TestInfo/getTestInfoCnts[0]/tclscd") ; ;
  314. if(grd_TestInfoCnts.rows > 0) {
  315. // alert(grd_TestInfoCnts.rows);
  316. for(iRow = 1; iRow < grd_TestInfoCnts.rows ;iRow++){
  317. ordList = ordList + "','" + model.getvalue("/root/main/TestInfo/getTestInfoCnts["+iRow+"]/tclscd") ;
  318. }
  319. model.makeValue("/root/send/data1/tclscdlist","'" + ordList + "'");
  320. submit("TRLLC90904");
  321. var count = getNodesetCount("/root/spccdlist");
  322. if(count > 0){
  323. for(i=1; i<= count; i++){
  324. var tclscd = model.getValue("/root/spccdlist["+i+"]/tclscd");
  325. var tclscdnm = model.getValue("/root/spccdlist["+i+"]/tclsnm");
  326. if(model.getValue("/root/hidden/JoHoiFlag/bcollflag") == "1") { //미채혈 일때
  327. if (tclscd != "" ){
  328. messageBox("주의! " + tclscd + " : " + tclscdnm, "I007");
  329. }
  330. }
  331. }
  332. }
  333. model.removeNodeset("/root/spccdlist");
  334. }
  335. //=============================================================
  336. //2012 08. 30일 사전체크 이재오 추가
  337. //=============================================================
  338. if(model.getValue("/root/main/TestInfo/bfcontrol/bfcontrolyn") == "Y") {
  339. messageBox("최근 90일 이내에 실시된 검사가 있습니다. HbA1c는 3~4개월에 1회만 보험인정됩니다", "I007");
  340. }
  341. //=============================================================
  342. //2014 07. 31일 수가변경에 따른 검사오더 검증 사전체크 이재오 추가
  343. //=============================================================
  344. iMaxRowCnt = getNodesetCount("/root/main/TestInfo/getTestInfoCnts");
  345. if( model.getValue("/root/hidden/JoHoiFlag/bcollflag") == "1" && iMaxRowCnt > 0 ) {
  346. for(iRow = 1; iRow <= iMaxRowCnt ;iRow++){
  347. var pid = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+iRow+"]/pid") ;
  348. var prcpdd = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+iRow+"]/prcpdd") ;
  349. var execprcpuniqno = model.getvalue("/root/main/TestInfo/getTestInfoCnts["+iRow+"]/execprcpuniqno") ;
  350. var cnt = getPrcpRcptCheck('LIS', pid, '', '', prcpdd, execprcpuniqno);
  351. if ( cnt > 0 ) break;
  352. }
  353. }
  354. model.removeNodeset("/root/send/data1");
  355. model.removeNodeset("/root/send/data2");
  356. model.makeNode("/root/send/data1");
  357. model.makeNode("/root/send/data2");
  358. fGridReMake();
  359. model.refresh();
  360. }
  361. function fClick_grdBcollinfo (flag){
  362. if(flag == "1"){
  363. if(grd_BcollInfo.rows > 1) {
  364. grd_BcollInfo.row= 1;
  365. fGetBBcoll(1);
  366. fGetTclscdList(1);
  367. fGetPopupLocate(1);
  368. }else{
  369. //채혈정보 존재하지 않으면 탑정보 초기화.
  370. //delPatientInfos(); //미채혈 화면에서 환자 바코드 출력후 환자의 검사 정보가 바로 채혈화면으로
  371. //활성화 되지 않고 다음번 행위부터 활성화요청 바람.( 화면이 사라지지 않게 바람
  372. //라는 요구사항(상단 탑정보 초기화 하지 않길 원함 변경요청 10763 20100211수정
  373. fGetPopupLocate(1);
  374. return;
  375. }
  376. }
  377. else{
  378. var row = grd_BcollInfo.row;
  379. if(grd_BcollInfo.isCell(event.target) && grd_BcollInfo.row >= grd_BcollInfo.fixedRows ){
  380. if(row > 0){
  381. fGetBBcoll(row)
  382. fGetTclscdList(row);
  383. fGetPopupLocate(1);
  384. }
  385. }
  386. }
  387. }
  388. //성가병원 가야할 곳
  389. function fGetPopupLocate(row){
  390. iPopupLocateCount= getNodesetCount("/root/init/LB0401");
  391. caption1.visible = false;
  392. caption7.visible = false;
  393. if(iPopupLocateCount > 0){
  394. var prcpdd = model.getvalue("/root/main/bcoll/bcolllist["+row+"]/prcphopedd");
  395. if(prcpdd == ""){
  396. var toDay = getCurrentDate();
  397. model.setValue("/root/temp/locatesend/prcpdd", toDay);
  398. }else{
  399. model.setValue("/root/temp/locatesend/prcpdd", prcpdd);
  400. }
  401. model.setValue("/root/temp/locatesend/pid", model.getValue("/root/hidden/JoHoiFlag/regnopatnm"));
  402. model.copyNode("/root/send/data2","/root/temp/locatesend");
  403. submit("TRLLC00104");
  404. model.removeNodeset("/root/send/data2");
  405. model.makeNode("/root/send/data2");
  406. var ekg = model.getValue("/root/temp/locatelist/ekg");
  407. var inject = model.getValue("/root/temp/locatelist/inject");
  408. var pat = model.getValue("/root/temp/locatelist/pat");
  409. var exam = model.getValue("/root/temp/locatelist/exam");
  410. var inpt = model.getValue("/root/temp/locatelist/inpt");
  411. var PopLocate = "";
  412. var InptLocate = "";
  413. if(ekg != "N"){
  414. PopLocate = PopLocate + ekg;
  415. }
  416. if(inject != "N"){
  417. if(PopLocate == ""){
  418. PopLocate = PopLocate + inject;
  419. }else{
  420. PopLocate = PopLocate + ", " + inject;
  421. }
  422. }
  423. if(pat != "N"){
  424. if(PopLocate == ""){
  425. PopLocate = PopLocate + pat;
  426. }else{
  427. PopLocate = PopLocate + ", " + pat;
  428. }
  429. }
  430. if(exam != "N"){
  431. if(PopLocate == ""){
  432. PopLocate = PopLocate + exam;
  433. }else{
  434. PopLocate = PopLocate + ", " + exam;
  435. }
  436. }
  437. if(inpt != "N"){
  438. InptLocate = inpt;
  439. }
  440. if(PopLocate != ""){
  441. PopLocate = PopLocate + "\n처방이 있습니다.";
  442. caption1.value = PopLocate;
  443. caption1.visible = true;
  444. caption1.refresh();
  445. }
  446. if(InptLocate != ""){
  447. InptLocate = InptLocate;
  448. caption7.value = InptLocate;
  449. caption7.visible = true;
  450. caption7.refresh();
  451. }
  452. }
  453. model.setFocus("iptSearch");
  454. }
  455. //오늘 채혈한 환자 조회
  456. function fGetBBcoll(row) {
  457. if(model.getValue("/root/hidden/JoHoiFlag/bcollflag") == "1") {
  458. model.makeValue("/root/send/pid", model.getValue("/root/main/bcoll/bcolllist["+ row +"]/pid"));
  459. submit("TRLLC00103");
  460. if(getNodesetCount("/root/main/bbcoll") > 0) {
  461. messageBox("오늘 채혈한 항목이 있습니다.", "I");
  462. }
  463. if(model.getvalue("/root/main/bcoll/bcolllist["+row+"]/prcphopedd") == model.getValue("/root/main/bcoll/tnsprcpinfo/today"))
  464. {
  465. if(getUserInfo("dutplceinstcd") == "031") {
  466. model.setValue("//root/hidden/JoHoiFlag/erflag", '1');
  467. }
  468. }
  469. }
  470. model.removenode("/root/send/pid");
  471. }
  472. //Donor 채혈 선택, 해제에 따른 환자명 보이기
  473. function fChangeDonorYN(row) {
  474. if(model.getValue("/root/hidden/JoHoiFlag/donorbcoll") == "Y") { //donor채혈이면 공여자명 보임
  475. grd_BcollInfo.colHidden(grd_BcollInfo.colRef("hngnm")) = false;
  476. } else {
  477. grd_BcollInfo.colHidden(grd_BcollInfo.colRef("hngnm")) = true;
  478. }
  479. model.refresh();
  480. }
  481. //바코드 일반이냐 자동이냐에 따라 프린터 설정 값 변경.
  482. function fPrintSetChange() {
  483. if(radio1.value == "1") {
  484. if(getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/genr") == 0) {
  485. messageBox("일반프린터 설정이 되어 있지 않습니다. 일반프린터 설정을", "I008");
  486. return;
  487. }
  488. copyNodeType("/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/genr");
  489. }else if(radio1.value == "3") {
  490. if(getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/auto") == 0) {
  491. messageBox("Auto프린터 설정이 되어 있지 않습니다. Auto프린터 설정을", "I008");
  492. return;
  493. }
  494. copyNodeType("/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/auto");
  495. }
  496. model.refresh();
  497. }
  498. //통합표시 체크박스 선택시에
  499. function fAllDisp(){
  500. if(model.getvalue("/root/hidden/JoHoiFlag/hdisp") == "1"){
  501. var pid = "";
  502. iCnt = 0;
  503. if(grd_BcollInfo.rows > 0){
  504. for(iRow = 1; iRow < grd_BcollInfo.rows;iRow++){
  505. if(model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/chk") =="true" && iCnt == 0){
  506. pid= model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/pid");
  507. iCnt ++;
  508. }
  509. if(iCnt != 0){
  510. if(model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/chk") =="true"){
  511. if(model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/pid") != pid){
  512. grd_BcollInfo.fixedcellischeck(0,1) = "false";
  513. messageBox("다른환자의 선택으로 통합표시를 할수 없습니다.", "I");
  514. return;
  515. }
  516. }
  517. }
  518. }
  519. if(iCnt !=0){
  520. fGetTclscdList(grd_BcollInfo.row); //다른환자가 없을시에는 통합조회한다.
  521. }
  522. }
  523. }
  524. else{
  525. model.removeNodeset("/root/main/TestInfo/getTestInfoCnts");
  526. model.refresh();
  527. }
  528. }
  529. //타이머
  530. var gTimerID;
  531. function fTimer(){
  532. gTimerID = window.setInterval( "fDaeGiCnt()", 5 * 1000 ); //5초 마다 대기인수 바뀜.
  533. }
  534. function fDaeGiCnt() {
  535. model.setValue("/root/hidden/JoHoiFlag/regnopatnm", iptSearch.currentText);
  536. model.removeNodeset("/root/main/daegicnt");
  537. datagrid1.refresh();
  538. var sSetUpVal = model.getValue("/root/main/barcdprntsetup/prntsetupinfo/auto[1]/comm03/daegiip");
  539. var sReturn = AutoLabel.WAITDATA(0, sSetUpVal);
  540. //var sReturn = "A|1|10|1-1001,2-1002,|^B|1|20|1-2001,2-2002,3-2003,|^C|3|15|1-3001,2-3002,3-3003,4-3004,|^D|1|16|1-4001,2-4002,3-4003,|^"
  541. /* A|1|10|1-1001,2-1002,|^
  542. B|1|20|1-2001,2-2002,3-2003,|^
  543. C|3|15|1-3001,2-3002,3-3003,4-3004,|^
  544. D|1|16|1-4001,2-4002,3-4003,|^
  545. */
  546. //alert(sReturn);
  547. if(sReturn != "") { //오류가 나지 않았다면.
  548. var vJangBi = sReturn.split("^");
  549. datagrid1.addRow();
  550. model.makeNode("/root/main/daegicnt");
  551. for(i = 0; i < vJangBi.length-1; i++) {
  552. var vDaegi = vJangBi[i].split("|");
  553. model.makeValue("/root/main/daegicnt/jangbi" + i, vDaegi[2]);
  554. }
  555. }
  556. datagrid1.refresh();
  557. }
  558. //자동장비대기건수 조회
  559. function fAutoRefYN() {
  560. if(model.getValue("/root/hidden/autoref") == "Y") {
  561. fDaeGiCnt();
  562. fTimer();
  563. } else {
  564. if (gTimerID != "") window.clearInterval(gTimerID);
  565. model.removeNodeset("/root/main/daegicnt");
  566. }
  567. model.refresh();
  568. }
  569. /* @group : 환자명 바코드 출력 기능
  570. * @ver : 2009.04.07
  571. * @by : 김성희
  572. * @-----------------------------------
  573. * @type : function
  574. * @access : public
  575. * @desc : 환자명 바코드 출력
  576. */
  577. function fGetPatNmBarCdPrint(){
  578. var pid = "";
  579. var toppid = getPatientInfo("pid");
  580. //top 정보가 없으면 조회조건에 입력한 환자번호
  581. if(toppid == ""){
  582. pid = model.getValue("/root/hidden/JoHoiFlag/regnopatnm");
  583. //top 정보가 있으면 탑정보의 환자번호
  584. }else{
  585. pid = toppid;
  586. }
  587. if(pid==""){
  588. messageBox("환자등록번호를 확인해주세요." , "I");
  589. return;
  590. }
  591. if(toppid != "" && toppid != model.getValue("/root/hidden/JoHoiFlag/regnopatnm")){
  592. messageBox("조건의 등록번호와 상단정보가 일치하지 않습니다." , "I");
  593. return;
  594. }
  595. model.removeNodeset("/root/send/data1");
  596. model.makeValue("/root/send/data1" , pid);
  597. submit("TRLZZ90101");
  598. if(getNodesetCount("/root/main/PatNmBarCdPrint/printinfo") > 0){
  599. var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
  600. var portnm = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/commkind");
  601. if( (prtkind == "9" && portnm == "01") || (prtkind == "11" && portnm == "01") || prtkind == "10" || prtkind == "2" || prtkind == "6" || prtkind == "7" ){
  602. fPatNmBarCdLabelSaTo("/root/main/PatNmBarCdPrint/printinfo");
  603. }else if( prtkind == "8"){
  604. fPatNmBarCdLabel_B472("/root/main/PatNmBarCdPrint/printinfo");
  605. }else{
  606. fPatNmBarCdLabel("/root/main/PatNmBarCdPrint/printinfo");
  607. }
  608. }
  609. }
  610. function fGetPatNmBarCdPrint_in(){
  611. var pid = "";
  612. var toppid = getPatientInfo("pid");
  613. //alert("바코드 분기1");
  614. //top 정보가 없으면 조회조건에 입력한 환자번호
  615. if(toppid == ""){
  616. pid = model.getValue("/root/hidden/JoHoiFlag/regnopatnm");
  617. //top 정보가 있으면 탑정보의 환자번호
  618. }else{
  619. pid = toppid;
  620. }
  621. if(pid==""){
  622. messageBox("환자등록번호를 확인해주세요." , "I");
  623. return;
  624. }
  625. if(toppid != "" && toppid != model.getValue("/root/hidden/JoHoiFlag/regnopatnm")){
  626. messageBox("조건의 등록번호와 상단정보가 일치하지 않습니다." , "I");
  627. return;
  628. }
  629. //alert("바코드 분기1");
  630. model.removeNodeset("/root/send/data1");
  631. model.makeValue("/root/send/data1" , pid);
  632. //alert("바코드 분기2");
  633. submit("TRLZZ90101");
  634. if(getNodesetCount("/root/main/PatNmBarCdPrint/printinfo") > 0){
  635. var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
  636. if( prtkind == "2" || prtkind == "6" || prtkind == "7" ){
  637. fPatNmBarCdLabelSaTo("/root/main/PatNmBarCdPrint/printinfo");
  638. }else if(prtkind == "8"){
  639. fPatNmBarCdLabel_B472("/root/main/PatNmBarCdPrint/printinfo");
  640. }else{
  641. //alert("바코드 분기3");
  642. fPatNmBarCdLabel("/root/main/PatNmBarCdPrint/printinfo");
  643. }
  644. }
  645. }
  646. function fPrintPatnm(){
  647. var pid = "";
  648. var toppid = getPatientInfo("pid");
  649. //top 정보가 없으면 조회조건에 입력한 환자번호
  650. if(toppid == ""){
  651. pid = model.getValue("/root/hidden/JoHoiFlag/regnopatnm");
  652. //top 정보가 있으면 탑정보의 환자번호
  653. }else{
  654. pid = toppid;
  655. }
  656. if(pid==""){
  657. messageBox("환자등록번호를 확인해주세요." , "I");
  658. return;
  659. }
  660. if(toppid != "" && toppid != model.getValue("/root/hidden/JoHoiFlag/regnopatnm")){
  661. messageBox("조건의 등록번호와 상단정보가 일치하지 않습니다." , "I");
  662. return;
  663. }
  664. model.removeNodeset("/root/send/data1");
  665. model.makeValue("/root/send/data1" , pid);
  666. submit("TRLZZ90101");
  667. var orddd = model.getvalue("/root/main/PatNmBarCdPrint/printinfo/printdt");
  668. var orddday = orddd.substr(0,4) + orddd.substr(5,2) + orddd.substr(8,2);
  669. model.makeValue("/root/temp2/printdata/patname/orddd", orddday);
  670. model.makeValue("/root/temp2/printdata/patname/patnm", model.getvalue("/root/main/PatNmBarCdPrint/printinfo/patnm"));
  671. model.makeValue("/root/temp2/printdata/patname/pid", pid);
  672. model.makeValue("/root/temp2/printdata/patname/sexage", model.getvalue("/root/main/PatNmBarCdPrint/printinfo/patsexage"));
  673. exeReportPreview("RPMNO00111", "XMLSTR", "", "", "true", "false", "", "", "", "true");
  674. // model.makeValue("/root/temp2/printdata/patname/orddrnm", orddrnm);
  675. // model.makeValue("/root/temp2/printdata/patname/orddeptnm", orddeptnm);
  676. }
  677. ]]>
  678. </script>
  679. </xhtml:head>
  680. <xhtml:body guideline="1,200;1,79;1,340;1,193;1,379;1,147;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  681. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  682. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:98px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">외래채혈</caption>
  683. </group>
  684. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  685. <import id="import1" disabled="false" visibility="visible" instancetype="merge" src="SSLLC80100_채혈검사처방상세.xrw" style="left:325px; top:10px; width:870px; height:734px; "/>
  686. <caption id="caption3" class="tit_2" style="left:0px; top:230px; width:115px; height:13px; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">채혈정보</caption>
  687. <line id="line1" class="line_1" style="x1:0px; y1:245px; x2:320px; y2:245px; "/>
  688. <group id="group2" style="left:0px; top:10px; width:325px; height:85px; ">
  689. <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:320px; height:85px; background-color:#fffbf2; border-color:#ffd799; "/>
  690. <caption id="caption4" class="search_name" style="left:15px; top:32px; width:94px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호</caption>
  691. <select1 id="combo3" ref="/root/hidden/JoHoiFlag/bcollflag" class="combo_search" appearance="minimal" style="left:105px; top:8px; width:200px; height:19px; ">
  692. <choices>
  693. <item>
  694. <label>전체조회</label>
  695. <value>0</value>
  696. </item>
  697. <item>
  698. <label>미채혈</label>
  699. <value>1</value>
  700. </item>
  701. <item>
  702. <label>채혈</label>
  703. <value>2</value>
  704. </item>
  705. </choices>
  706. <script type="javascript" ev:event="xforms-select">
  707. <![CDATA[
  708. fSetBcollFlag();
  709. ]]>
  710. </script>
  711. </select1>
  712. <caption id="caption5" class="search_name" style="left:15px; top:9px; width:94px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">채혈구분 :</caption>
  713. <input id="iptSearch" ref="/root/hidden/JoHoiFlag/regnopatnm" class="input_s_button" navindex="1" inputtype="button" style="left:105px; top:32px; width:95px; height:19px; ">
  714. <script type="javascript" ev:event="onbuttonclick">
  715. <![CDATA[
  716. fGetOutBCollJoHoi();
  717. ]]>
  718. </script>
  719. </input>
  720. <output id="ipt_hngnm" ref="/root/main/bcoll/hngnminfo/hngnm" class="output_fix" style="left:201px; top:32px; width:85px; height:19px; "/>
  721. <caption id="caption2" class="search_name" style="left:15px; top:58px; width:117px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">도착시간등록 :</caption>
  722. <input id="iptArv" ref="/root/hidden/JoHoiFlag/arvtime" format="9999-99-99 99:99:99" style="left:130px; top:57px; width:100px; height:19px; "/>
  723. </group>
  724. <datagrid id="grd_BcollInfo" nodeset="/root/main/bcoll/bcolllist" allowselection="false" caption="^처방일자^Donor 명^진료과^검사희망일^채혈일^진료예약일^등록번호^testdeptcd^testdeptflagcd^tnsyn" colsep="^" colwidth="22, 60, 80, 70, 70, 70, 76, 100, 10, 10, 100" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" selectionmode="byrow" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:250px; width:320px; height:470px; border-color:#c0c0c0; ">
  725. <col checkvalue="true,false" ref="chk" type="checkbox" style="text-align:center; "/>
  726. <col ref="prcpdd"/>
  727. <col ref="hngnm"/>
  728. <col ref="orddeptnm"/>
  729. <col ref="prcphopedd" format="yyyy-mm-dd"/>
  730. <col ref="barcdprntdt" format="yyyy-mm-dd"/>
  731. <col ref="ordrsrvdt" format="yyyy-mm-dd"/>
  732. <col ref="pid"/>
  733. <col ref="testdeptcd" visibility="hidden"/>
  734. <col ref="testdeptflagcd" visibility="hidden"/>
  735. <col ref="tnsyn" visibility="hidden"/>
  736. <script type="javascript" ev:event="onclick">
  737. <![CDATA[
  738. fClick_grdBcollinfo();
  739. ]]>
  740. </script>
  741. </datagrid>
  742. <select id="checkbox1" ref="/root/hidden/JoHoiFlag/erflag" overflow="visible" appearance="full" style="left:235px; top:68px; width:76px; height:20px; font-weight:bold; border-style:none; ">
  743. <choices>
  744. <item>
  745. <label>응급채혈</label>
  746. <value>1</value>
  747. </item>
  748. </choices>
  749. </select>
  750. <button id="button61" class="icon_search" style="left:288px; top:43px; width:16px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
  751. <caption/>
  752. <script type="javascript" ev:event="DOMActivate">
  753. <![CDATA[
  754. // modal("SPPMC02500");
  755. model.makeValue("/root/source/srchcond", "3");
  756. modal("SPPMC02500", 1,"150", "150", "SPPMC02500", "/root/source", "/root/send");
  757. var pid = model.getValue ( "/root/main/patinfo/patinfolist/pid" );
  758. if ( !isNull (pid )) { //받아온 값이 있으면 조회
  759. model.setvalue("/root/hidden/JoHoiFlag/regnopatnm" , pid);
  760. fGetOutBCollJoHoi();
  761. }
  762. ]]>
  763. </script>
  764. </button>
  765. <select1 id="cmb_prestr" ref="/root/hidden/bcoll/ordrsrvinfo/prestr" visibility="hidden" appearance="minimal" lass="combo_search" style="left:285px; top:230px; width:32px; height:10px; ">
  766. <choices>
  767. <itemset nodeset="/root/main/bcoll/ordrsrvinfo">
  768. <label ref="nm"/>
  769. <value ref="cd"/>
  770. </itemset>
  771. </choices>
  772. </select1>
  773. <select id="checkbox4" ref="/root/hidden/JoHoiFlag/hdisp" overflow="visible" appearance="full" style="left:81px; top:230px; width:70px; height:15px; border-style:none; ">
  774. <choices>
  775. <item>
  776. <label>통합표시</label>
  777. <value>1</value>
  778. </item>
  779. </choices>
  780. <script type="javascript" ev:event="onclick">
  781. <![CDATA[
  782. fGetBBcoll(grd_BcollInfo.row);
  783. fGetTclscdList(grd_BcollInfo.row);
  784. ]]>
  785. </script>
  786. </select>
  787. <button id="button4" class="btn5_letter6" visibility="visible" style="left:235px; top:723px; width:86px; height:19px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  788. <caption>환자명바코드</caption>
  789. <script type="javascript" ev:event="DOMActivate">
  790. <![CDATA[
  791. //
  792. if(getUserInfo("dutplceinstcd") == "031") {
  793. fGetPatNmBarCdPrint();
  794. model.setFocus("iptSearch");
  795. }else{
  796. fGetPatNmBarCdPrint_in();
  797. model.setFocus("iptSearch");
  798. }
  799. ]]>
  800. </script>
  801. </button>
  802. <caption id="caption1" visibility="hidden" style="left:465px; top:265px; width:360px; height:70px; font-size:16pt; text-align:center; background-color:#ffff99; border-color:#ffcc00; border-width:2px; border-style:solid; ">
  803. <script type="javascript" ev:event="ondblclick">
  804. <![CDATA[
  805. caption1.visible = false;
  806. caption1.refresh();
  807. ]]>
  808. </script>
  809. </caption>
  810. <caption id="caption7" visibility="hidden" style="left:465px; top:335px; width:360px; height:70px; font-size:16pt; text-align:center; background-color:#ccffff; border-color:#33cccc; border-width:2px; border-style:solid; ">
  811. <script type="javascript" ev:event="ondblclick">
  812. <![CDATA[
  813. caption7.visible = false;
  814. caption7.refresh();
  815. ]]>
  816. </script>
  817. </caption>
  818. <datagrid id="datagrid2" nodeset="/root/main/bcoll/ordrsrvinfo" allowselection="false" caption="번호^예약일" colsep="^" colwidth="30, 200" mergecellsfixedrows="bycolrec" rowsep="|" style="left:55px; top:100px; width:250px; height:125px; ">
  819. <col ref="cd" style="text-align:center; "/>
  820. <col ref="nm" style="text-align:center; "/>
  821. </datagrid>
  822. <caption id="caption8" class="tit_2" style="left:5px; top:100px; width:45px; height:13px; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">진료</caption>
  823. <caption id="caption9" style="left:20px; top:120px; width:30px; height:13px; font-weight:bold; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">예약</caption>
  824. <caption id="caption10" style="left:20px; top:145px; width:30px; height:13px; font-weight:bold; vertical-align:middle; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">정보</caption>
  825. <button id="button6" visibility="hidden" style="left:5px; top:180px; width:45px; height:20px; ">
  826. <caption>button6</caption>
  827. <script type="javascript" ev:event="DOMActivate">
  828. <![CDATA[
  829. var fRow = grd_BcollInfo.findRow("true",1,1,true);
  830. // for(iRow = fRow + 1; iRow < grd_BcollInfo.rows;iRow++){
  831. if(grd_BcollInfo.rows > 0) {
  832. for(iRow = 1; iRow < grd_BcollInfo.rows;iRow++){
  833. if(model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/prcphopedd") == model.getValue("/root/main/bcoll/tnsprcpinfo/today")){
  834. // if(model.getvalue("/root/main/bcoll/bcolllist["+iRow+"]/prcphopedd") == '20140107'){
  835. grd_BcollInfo.cellstyle("color", iRow, grd_BcollInfo.colRef("prcphopedd")) = "#ff3300";
  836. grd_BcollInfo.cellstyle("color", iRow, grd_BcollInfo.colRef("prcpdd")) = "#ff3300";
  837. }
  838. }
  839. }
  840. ]]>
  841. </script>
  842. </button>
  843. <button id="button7" class="btn5_letter6" visibility="visible" style="left:110px; top:723px; width:105px; height:19px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  844. <caption>이름표출력</caption>
  845. <script type="javascript" ev:event="DOMActivate">
  846. <![CDATA[
  847. fPrintPatnm();
  848. model.setFocus("iptSearch");
  849. ]]>
  850. </script>
  851. </button>
  852. <button id="button9" class="btn5_letter6" visibility="visible" style="left:0px; top:723px; width:87px; height:19px; background-image:../../../com/commonweb/images/btn3_letter8.gif; ">
  853. <caption>환자명 프린터</caption>
  854. <script type="javascript" ev:event="DOMActivate">
  855. <![CDATA[
  856. fGetPatNmBarCdPrint_in();
  857. model.setFocus("iptSearch");
  858. ]]>
  859. </script>
  860. </button>
  861. </group>
  862. <group id="group5" scroll="auto" style="left:0px; top:13px; width:1195px; height:32px; ">
  863. <button id="button26" class="btn3_letter5" style="left:1px; top:2px; width:92px; height:22px; background-image:../../../com/commonweb/images/btn3_letter5.gif; ">
  864. <caption>프린터설정</caption>
  865. <script type="javascript" ev:event="DOMActivate">
  866. <![CDATA[
  867. var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  868. if(count == 0) {
  869. model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  870. }
  871. count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/genr"); //프린터 설정 안에 일반설정이 있을경우
  872. if(count != 0) {
  873. model.removeNodeset("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/genr"); //새 설정으로 바꾸기 위해 삭제..
  874. }
  875. count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/auto"); //프린터 설정 안에 auto설정이 있을경우
  876. if(count != 0) {
  877. model.removeNodeset("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/auto"); //새 설정으로 바꾸기 위해 삭제
  878. }
  879. copyNodeListType("/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/genr", "after");
  880. copyNodeListType("/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/auto", "after");
  881. modal("SPLLC91000" , "","","","","/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  882. count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/genr"); //일반 프린터 설정이 있을경우..
  883. if(count != 0) {
  884. model.removeNodeset("/root/main/barcdprntsetup/prntsetupinfo/genr"); //새 설정으로 바꾸기 위해 삭제..
  885. }
  886. count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/auto"); //auto 프린터 설정이 있을경우..
  887. if(count != 0) {
  888. model.removeNodeset("/root/main/barcdprntsetup/prntsetupinfo/auto"); //새 설정으로 바꾸기 위해 삭제
  889. }
  890. //새 설정으로 바꿈.
  891. copyNodeListType("/root/main/barcdprntsetup/prntsetupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo/genr", "after");
  892. copyNodeListType("/root/main/barcdprntsetup/prntsetupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo/auto", "after");
  893. fPrintSetChange();
  894. model.refresh();
  895. ]]>
  896. </script>
  897. </button>
  898. <button id="button5" class="btn3_letter6" style="left:96px; top:2px; width:104px; height:22px; background-image:../../../com/commonweb/images/btn3_letter6.gif; ">
  899. <caption>채취일시등록</caption>
  900. <script type="javascript" ev:event="DOMActivate">
  901. <![CDATA[
  902. open("SPLLC90300");
  903. ]]>
  904. </script>
  905. </button>
  906. <button id="button8" class="btn3_letter4" style="left:203px; top:2px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
  907. <caption>이력조회</caption>
  908. <script type="javascript" ev:event="DOMActivate">
  909. <![CDATA[
  910. if(model.getvalue("/root/hidden/JoHoiFlag/regnopatnm") ==""){
  911. setParameter ( "SMMMO02500_cond", getPatientInfo("pid"));
  912. }else{
  913. setParameter ( "SMMMO02500_cond", model.getvalue("/root/hidden/JoHoiFlag/regnopatnm"));
  914. }
  915. open ( "SMMMO02500" );
  916. ]]>
  917. </script>
  918. </button>
  919. <line id="line7" class="line_3" style="x1:0px; y1:26px; x2:320px; y2:26px; "/>
  920. <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  921. <button id="button2" class="btn3_letter4" style="left:390px; top:2px; width:104px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
  922. <caption>수혈처방</caption>
  923. <script type="javascript" ev:event="DOMActivate">
  924. <![CDATA[
  925. open("SPLBT90400");
  926. ]]>
  927. </script>
  928. </button>
  929. <group id="group7" style="left:819px; top:0px; width:370px; height:25px; ">
  930. <button id="btn_can3" class="btn4_letter3" style="left:302px; top:1px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  931. <caption>초기화</caption>
  932. <script type="javascript" ev:event="DOMActivate">
  933. <![CDATA[
  934. fExeClear();
  935. model.setFocus("iptSearch");
  936. ]]>
  937. </script>
  938. </button>
  939. </group>
  940. <button id="button3" class="btn3_letter6" style="left:285px; top:2px; width:104px; height:22px; background-image:../../../com/commonweb/images/btn3_letter4.gif; ">
  941. <caption>전환검체변경</caption>
  942. <script type="javascript" ev:event="DOMActivate">
  943. <![CDATA[
  944. if(model.getvalue("/root/hidden/JoHoiFlag/regnopatnm") ==""){
  945. model.setValue("/root/hidden/ref/searchtext" , getPatientInfo("pid"));
  946. }else{
  947. model.setValue("/root/hidden/ref/searchtext" , model.getvalue("/root/hidden/JoHoiFlag/regnopatnm"));
  948. }
  949. modal("SPLLC90900","","","","","/root/hidden/ref","/root/hidden/ref");
  950. ]]>
  951. </script>
  952. </button>
  953. <group id="group6" style="left:820px; top:0px; width:370px; height:25px; ">
  954. <button id="button1" class="btn4_letter3" style="left:231px; top:1px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter4.gif; ">
  955. <caption>재출력</caption>
  956. <script type="javascript" ev:event="DOMActivate">
  957. <![CDATA[
  958. lzzfBarCodeRePrinf();
  959. model.setFocus("iptSearch");
  960. ]]>
  961. </script>
  962. </button>
  963. <button id="btn_bcollcan" class="btn4_letter4" style="left:148px; top:1px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn4_letter4.gif; ">
  964. <caption>채혈취소</caption>
  965. <script type="javascript" ev:event="DOMActivate">
  966. <![CDATA[
  967. fExeBcollCan();
  968. model.setFocus("iptSearch");
  969. ]]>
  970. </script>
  971. </button>
  972. <button id="btn_can2" class="btn4_letter3" style="left:301px; top:1px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  973. <caption>초기화</caption>
  974. <script type="javascript" ev:event="DOMActivate">
  975. <![CDATA[
  976. fExeClear();
  977. model.setFocus("iptSearch");
  978. ]]>
  979. </script>
  980. </button>
  981. <select1 id="radio2" ref="/root/hidden/pflag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:5px; top:3px; width:143px; height:20px; border-style:none; ">
  982. <choices>
  983. <item>
  984. <label>일반</label>
  985. <value>1</value>
  986. </item>
  987. <item>
  988. <label>Auto Label</label>
  989. <value>3</value>
  990. </item>
  991. </choices>
  992. <script type="javascript" ev:event="xforms-value-changed">
  993. <![CDATA[
  994. fPrintSetChange();
  995. ]]>
  996. </script>
  997. </select1>
  998. </group>
  999. <group id="group4" style="left:820px; top:0px; width:370px; height:25px; ">
  1000. <button id="btn_cle" class="btn4_letter3" style="left:301px; top:1px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  1001. <caption>초기화</caption>
  1002. <script type="javascript" ev:event="DOMActivate">
  1003. <![CDATA[
  1004. fExeClear();
  1005. model.setFocus("iptSearch");
  1006. ]]>
  1007. </script>
  1008. </button>
  1009. <button id="btn_bcoll" class="btn4_letter2" style="left:241px; top:1px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  1010. <caption>채혈</caption>
  1011. <script type="javascript" ev:event="DOMActivate">
  1012. <![CDATA[
  1013. fExeBcoll();
  1014. model.setFocus("iptSearch");
  1015. ]]>
  1016. </script>
  1017. </button>
  1018. <select1 id="radio1" ref="/root/hidden/pflag" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:60px; top:4px; width:145px; height:20px; border-style:none; ">
  1019. <choices>
  1020. <item>
  1021. <label>일반</label>
  1022. <value>1</value>
  1023. </item>
  1024. <item>
  1025. <label>Auto Label</label>
  1026. <value>3</value>
  1027. </item>
  1028. </choices>
  1029. <script type="javascript" ev:event="xforms-value-changed">
  1030. <![CDATA[
  1031. fPrintSetChange();
  1032. ]]>
  1033. </script>
  1034. </select1>
  1035. </group>
  1036. <select id="checkbox5" ref="/root/hidden/autoref" overflow="visible" appearance="full" style="left:475px; top:4px; width:115px; height:20px; border-style:none; ">
  1037. <choices>
  1038. <item>
  1039. <label>자동대기건수조회</label>
  1040. <value>Y</value>
  1041. </item>
  1042. </choices>
  1043. <script type="javascript" ev:event="xforms-value-changed">
  1044. <![CDATA[
  1045. fAutoRefYN();
  1046. ]]>
  1047. </script>
  1048. </select>
  1049. </group>
  1050. <script type="javascript" ev:event="onkeypress">
  1051. <![CDATA[
  1052. fKeyEvent();
  1053. ]]>
  1054. </script>
  1055. <select id="checkbox2" ref="/root/hidden/JoHoiFlag/ibftest" visibility="hidden" overflow="visible" appearance="full" style="left:250px; top:265px; width:23px; height:15px; font-weight:bold; border-style:none; ">
  1056. <choices>
  1057. <item>
  1058. <label>입원전검사실 제외</label>
  1059. <value>Y</value>
  1060. </item>
  1061. </choices>
  1062. </select>
  1063. <select id="checkbox3" ref="/root/hidden/JoHoiFlag/donorbcoll" visibility="hidden" overflow="visible" appearance="full" style="left:220px; top:265px; width:25px; height:20px; font-weight:bold; border-style:none; ">
  1064. <choices>
  1065. <item>
  1066. <label>Donor 채혈</label>
  1067. <value>Y</value>
  1068. </item>
  1069. </choices>
  1070. <script type="javascript" ev:event="xforms-value-changed">
  1071. <![CDATA[
  1072. fChangeDonorYN(); //공여자명 보이고 안 보이고
  1073. model.refresh();
  1074. ]]>
  1075. </script>
  1076. </select>
  1077. <datagrid id="datagrid1" nodeset="/root/main/daegicnt" visibility="hidden" caption="A^B^C^D" colsep="^" colwidth="55, 55, 55, 55" mergecellsfixedrows="bycolrec" rowsep="|" style="left:595px; top:0px; width:222px; height:50px; text-align:center; ">
  1078. <col ref="jangbi0"/>
  1079. <col ref="jangbi1"/>
  1080. <col ref="jangbi2"/>
  1081. <col ref="jangbi3"/>
  1082. </datagrid>
  1083. </xhtml:body>
  1084. <script type="javascript" ev:event="onkeyup">
  1085. <![CDATA[
  1086. if(event.keyCode == 27){
  1087. caption1.visible = false;
  1088. caption7.visible = false;
  1089. caption1.refresh();
  1090. }
  1091. ]]>
  1092. </script>
  1093. </xhtml:html>