SMMNW00100_일반병동메인.xrw 72 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>Nurse main</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <wardcd/>
  12. <orddd/>
  13. <settingrnid/>
  14. <orddeptcd/>
  15. <medispclid/>
  16. <atdoctid/>
  17. <indschacptstat/>
  18. <pid/>
  19. <userid/>
  20. <usernm/>
  21. <prestimportid/>
  22. <printflag/>
  23. <sortflag/>
  24. </cond>
  25. <wardprntpatinfo>
  26. <wardpatlist>
  27. <roomcd/>
  28. <patnm/>
  29. <sexage/>
  30. <orddeptnm/>
  31. <medispclnm/>
  32. <indd/>
  33. <hd/>
  34. </wardpatlist>
  35. </wardprntpatinfo>
  36. <paminfo/>
  37. <precondlist>
  38. <blodpreplist/>
  39. <chngroomaprvlist/>
  40. <anticncrlist/>
  41. <unablspclist/>
  42. </precondlist>
  43. </main>
  44. <send>
  45. </send>
  46. <init>
  47. <ward>
  48. <wardcd/>
  49. <wardnm/>
  50. </ward>
  51. <dept>
  52. <deptcd/>
  53. <depthngnm/>
  54. </dept>
  55. <settingrn>
  56. <settingrnid/>
  57. <settingrnnm/>
  58. </settingrn>
  59. <doctlist>
  60. <medispcl>
  61. <doctid/>
  62. <doctnm/>
  63. </medispcl>
  64. <atdoct>
  65. <doctid/>
  66. <doctnm/>
  67. </atdoct>
  68. </doctlist>
  69. <wardprescondinfo>
  70. <wardprescond>
  71. <kind1/>
  72. <kind2/>
  73. <kind3/>
  74. <kind4/>
  75. <kind5/>
  76. <kind6/>
  77. <isolcnt/>
  78. <inhospcnt/>
  79. <wardbedcnt/>
  80. </wardprescond>
  81. <blodprep>
  82. <patnm/>
  83. </blodprep>
  84. <chngroomaprv>
  85. <patnm/>
  86. </chngroomaprv>
  87. <anticncr>
  88. <patnm/>
  89. </anticncr>
  90. <prcpnotend/>
  91. <unablspc>
  92. <patnm/>
  93. </unablspc>
  94. <wardisolcnt>
  95. <isolcnt/>
  96. <isolcnt2/>
  97. </wardisolcnt>
  98. </wardprescondinfo>
  99. </init>
  100. <hidden>
  101. </hidden>
  102. <dsch_hidden>
  103. <dsch_cond/>
  104. </dsch_hidden>
  105. <code>
  106. </code>
  107. <pw/>
  108. </root>
  109. </instance>
  110. <script type="javascript" ev:event="xforms-ready">
  111. <![CDATA[
  112. fInitialize();
  113. ]]>
  114. </script>
  115. <script type="javascript">
  116. <![CDATA[
  117. var erdeptcd, spcldeptcd, partrtndeptcd, testdeptcd, dscdeptcd, babyicudeptcd, babydeptcd, daildeptcd, hospicedeptcd; // 부서코드_간호하드코딩 테이블 조회_20090415(ByJA)
  118. var hospiceyn="N";
  119. var srchflag = "1"; // 1:메인조회시 2:출력조회시
  120. function fInitialize()
  121. {
  122. if(getScreenMenuParameter() == "hp") {
  123. hospiceyn = "Y";
  124. }
  125. if(getUserInfo("dutplceinstcd") == "032") {
  126. model.makeValue("/root/main/cond/sortflag", "2");
  127. rdo_sortflag.refresh();
  128. } else {
  129. model.makeValue("/root/main/cond/sortflag", "1");
  130. rdo_sortflag.refresh();
  131. }
  132. // model.setValue("/root/main/cond/prestimportid", getScreenMenuParameter()); // 원본
  133. // fInitTopInfo();
  134. if(model.getValue("/root/dsch_hidden/dsch_cond/prestimportid") == "om"){ // 퇴원정리에서 ordermanage를 팝업으로 열 경우 처리로직 추가_20080825(ByJA)
  135. model.setValue("/root/main/cond/prestimportid", "om");
  136. }else{
  137. model.setValue("/root/main/cond/prestimportid", getScreenMenuParameter());
  138. }
  139. var pCode = "'002', '003', '045', '046', '049', '052', '053', '055', '077','146', '044', '124','S01'"; // 조회할 CdGrupID 코드정보
  140. var pDate = getCurrentDate(); //조회기준일자
  141. var uijungbuinstcd="", sunggainstcd="", vincentinstcd=""; // 의정부성모병원, 부천성가병원, 수원빈센트병원 기관코드
  142. fGetNursHardCdInfo(pCode, pDate);
  143. for(var i=1; i<=getNodesetCount("/root/code/codeinfo/codelist"); i++){
  144. switch (model.getValue("/root/code/codeinfo/codelist["+i+"]/cdgrupid")){
  145. case "002": // 응급의료센터
  146. erdeptcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
  147. break;
  148. case "003": // 특수주사실
  149. spcldeptcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
  150. break;
  151. case "044": // 호스피스병동
  152. hospicedeptcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
  153. break;
  154. case "045": // 분만실
  155. partrtndeptcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
  156. break;
  157. case "046": // 영상의학과
  158. testdeptcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
  159. break;
  160. case "049": // 통원수술센터
  161. dscdeptcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
  162. break;
  163. case "052": // 신생아중환자실
  164. babyicudeptcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
  165. break;
  166. case "053": // 신생아실
  167. babydeptcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
  168. break;
  169. case "055": // 인공신장실
  170. daildeptcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
  171. break;
  172. case "077": // 병원별 기관코드
  173. switch(model.getValue("/root/code/codeinfo/codelist["+i+"]/supcdid")){
  174. case "02": // 의정부성모병원 기관코드
  175. uijungbuinstcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
  176. break;
  177. case "03": // 부천성가병원 기관코드
  178. sunggainstcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
  179. break;
  180. case "04": // 수원빈센트병원 기관코드
  181. vincentinstcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
  182. break;
  183. }
  184. }
  185. }
  186. // if (getUserInfo("ipaddr")== "127.0.0.1" ) {
  187. // model.setValue("/root/main/cond/prestimportid", "om");
  188. // }
  189. //오늘 날짜로 초기화 하는 부분.(진료일자를 default로 오늘 날짜로 선택함)
  190. model.setValue("/root/main/cond/userid", getUserId());
  191. model.setValue("/root/main/cond/usernm", getUserName());
  192. model.setValue("/root/main/cond/settingrnid", "");
  193. //if(isNull(getPatientInfoDetail('wardcd'))) {
  194. if(hospiceyn == "Y") {
  195. model.setValue("/root/main/cond/wardcd", hospicedeptcd);
  196. } else {
  197. model.setValue("/root/main/cond/wardcd", getUserInfo("dutplcecd"));
  198. }
  199. //}
  200. //model.setValue("/root/main/cond/wardcd", ( isNull(getPatientInfoDetail('wardcd')) ? getUserInfo("dutplcecd") : getPatientInfoDetail('wardcd')) );
  201. model.setValue("/root/main/cond/orddd", getCurrentDate());
  202. model.setValue("/root/main/cond/orddeptcd", "");
  203. model.setValue("/root/main/cond/medispclid", "");
  204. model.setValue("/root/main/cond/atdoctid", "");
  205. model.setValue("/root/main/cond/indschacptstat", "1");
  206. model.removenode("/root/send");
  207. model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
  208. submit("TRMNW00101");
  209. // 원본_간호하드코딩 테이블 조회_밑으로 옮김_20090415(ByJA) model.removenode("/root/init/ward[wardcd = '2280200000']"); // 응급의료센터 제외
  210. model.setValue("/root/main/cond/settingrnid", "");
  211. for(i = 1; i <= getNodesetCount("/root/init/settingrn"); i++ ) {
  212. if (model.getValue("/root/main/cond/userid") == model.getValue("/root/init/settingrn["+ i +"]/settingrnid")) {
  213. model.setValue("/root/main/cond/settingrnid", model.getValue("/root/main/cond/userid"));
  214. }
  215. }
  216. // 바코드값 설정
  217. // fGetBarCodeInfo("SMMNR00600");//바코드 라벨 초기 설정값 조회 //0921임시로막음
  218. // fSettingBarCode("/root/main_nm/barcdprntsetup/prntsetupinfo/setupinfo"); //0921임시로막음
  219. // lzzfMakeBrcdPrntObjHanDo("CommAX");
  220. // 간호하드코딩 테이블 조회_20090415(ByJA)
  221. /*
  222. // 성빈센트병원의 경우 컬럼설정에 TF오류가 빈번히 발생하여 버튼 hidden_20091108
  223. if(getUserInfo("dutplceinstcd") == vincentinstcd){
  224. button2.visible = false;
  225. }else{
  226. button2.visible = true;
  227. }
  228. button2.refresh();
  229. */
  230. model.removenode("/root/init/ward[wardcd = '"+ erdeptcd +"']"); // 응급의료센터 제외_간호하드코딩 테이블 조회_20090415(ByJA)
  231. var wardcd = model.getValue("/root/main/cond/wardcd");
  232. var node = instance1.selectNodes("/root/init/ward[wardcd='" + wardcd + "']");
  233. if(node.length > 0) {
  234. fInqurySelectedPrgm();
  235. }
  236. model.makeValue("/root/main/cond/wardnm", combo1.label);
  237. }
  238. function fGetWardPrescond()
  239. {
  240. model.removenode("/root/send");
  241. model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
  242. model.makeValue("/root/send/orddd", model.getValue("/root/main/cond/orddd"));
  243. model.makeValue("/root/send/webflag", "nm"); // 화면구분추가_20080921(ByJA)
  244. submit("TRMNW00104");
  245. var blodpreppatlist = "";
  246. var chngroomaprvpatlist = "";
  247. var anticncrlistpatlist = "";
  248. var unablspclistpatlist = "";
  249. //혈액준비환자리스트 조합
  250. for(var i = 1; i <= getNodesetCount("/root/init/wardprescondinfo/blodprep"); i++) {
  251. if (i == 1) {
  252. blodpreppatlist += model.getValue("/root/init/wardprescondinfo/blodprep["+ i +"]/patnm");
  253. } else {
  254. blodpreppatlist += ", " + model.getValue("/root/init/wardprescondinfo/blodprep["+ i +"]/patnm");
  255. }
  256. }
  257. //전실승인환자리스트 조합
  258. for(var i = 1; i <= getNodesetCount("/root/init/wardprescondinfo/chngroomaprv"); i++) {
  259. if (i == 1) {
  260. chngroomaprvpatlist += model.getValue("/root/init/wardprescondinfo/chngroomaprv["+ i +"]/patnm");
  261. } else {
  262. chngroomaprvpatlist += ", " + model.getValue("/root/init/wardprescondinfo/chngroomaprv["+ i +"]/patnm");
  263. }
  264. }
  265. //항암미승인환자리스트 조합
  266. for(var i = 1; i <= getNodesetCount("/root/init/wardprescondinfo/anticncr"); i++) {
  267. if (i == 1) {
  268. anticncrlistpatlist += model.getValue("/root/init/wardprescondinfo/anticncr["+ i +"]/patnm");
  269. } else {
  270. anticncrlistpatlist += ", " + model.getValue("/root/init/wardprescondinfo/anticncr["+ i +"]/patnm");
  271. }
  272. }
  273. //부적합검체 리스트 조합.
  274. for(var i = 1; i <= getNodesetCount("/root/init/wardprescondinfo/unablspc"); i++) {
  275. if (i == 1) {
  276. unablspclistpatlist += model.getValue("/root/init/wardprescondinfo/unablspc["+ i +"]/patnm");
  277. } else {
  278. unablspclistpatlist += ", " + model.getValue("/root/init/wardprescondinfo/unablspc["+ i +"]/patnm");
  279. }
  280. }
  281. // tar_chngroomaprv.value = chngroomaprvpatlist;
  282. // tar_chngroomaprv.value = chngroomaprvpatlist;
  283. // tar_blodprep.value = blodpreppatlist;
  284. model.setValue("/root/main/precondlist/blodpreplist", blodpreppatlist);
  285. model.setValue("/root/main/precondlist/chngroomaprvlist", chngroomaprvpatlist);
  286. model.setValue("/root/main/precondlist/anticncrlist", anticncrlistpatlist);
  287. model.setValue("/root/main/precondlist/unablspclist", unablspclistpatlist);
  288. var vdate = getCurrentDate();
  289. var dt = ((vdate.toDate("YYYYMMDD")).getAddDate(7, "D")).getDateFormat("YYYYMMDD") ;
  290. var dat = ((vdate.toDate("YYYYMMDD")).getAddDate(-7, "D")).getDateFormat("YYYYMMDD") ;
  291. if(model.getValue("/root/main_om/cond/hopedd") ==""){
  292. model.setValue("/root/main_om/cond/hopedd",'1');
  293. model.setValue("/root/main_om/cond/hopefmdd", dat);
  294. model.setValue("/root/main_om/cond/hopetodd", dt);
  295. }
  296. tar_blodprep.refresh();
  297. tar_chngroomaprv.refresh();
  298. tar_anticncrt.refresh();
  299. tar_unablspc.refresh();
  300. }
  301. function fInqurySelectedPrgm()
  302. {
  303. fGetWardPrescond();
  304. switch(model.getValue("/root/main/cond/prestimportid")) {
  305. case "td" :
  306. btn_td.selected = true;
  307. sha_state.visible = true;
  308. cap_state.visible = true;
  309. cap_color.visible = false;
  310. cap_uncnfm.visible = false;
  311. cap_prcp.visible = false;
  312. cap_certcpap.visible = false;
  313. cap_ser.visible = false;
  314. btn_td.visible = true;
  315. btn_om.visible = true;
  316. grp_prcpnotend.visible = false;
  317. model.toggle("case_td");
  318. fGetTodoPatList();
  319. break;
  320. case "om" :
  321. btn_om.selected = true;
  322. sha_state.visible = false;
  323. cap_state.visible = false;
  324. cap_color.visible = true;
  325. cap_uncnfm.visible = true;
  326. cap_prcp.visible = true;
  327. cap_certcpap.visible = true;
  328. cap_ser.visible = false;
  329. cap_color.attribute("left") = "15px";
  330. cap_uncnfm.attribute("left") = "35px";
  331. cap_prcp.attribute("left") = "120px";
  332. cap_prcp.attribute("color") = "#0000ff";
  333. btn_td.visible = true;
  334. btn_om.visible = true;
  335. model.toggle("case_om");
  336. //20090929 김홍점 model.getValue("/root/code/codeinfo/codelist[cdgrupid='146']/cdid"); 가 Y인경우 병동 처방미마감건 블러킹 적용(모든병원 운영만 적용 운영이외의 서버는 N)
  337. //전일 8AM~당일 8AM 사이에 미마감건 존재시 당일 8AM부터 오더매니지 블로킹
  338. if ( model.getValue("/root/code/codeinfo/codelist[cdgrupid='146']/cdid") == 'Y' &&
  339. getCurrentTime().substring(0,2) >= "08" &&
  340. getNodesetCount("/root/init/wardprescondinfo/prcpnotend") > 0 ) {
  341. btn_cnfmcnt.attribute("text") = "미확인처방 환자수";
  342. btn_dschcnt.attribute("text") = "퇴원처방 환자수";
  343. model.setValue("/root/main_om/cond/pid", "등록번호");
  344. model.setValue("/root/main_om/cond/roomcd", "병실");
  345. model.setValue("/root/main_om/cond/sexage", "S/A");
  346. model.setValue("/root/main_om/cond/patnm", "환자명");
  347. //그리드 초기화
  348. model.removeNodeset("/root/main_om/ominfo/ompatinfo/ompatlist");
  349. model.removeNodeset("/root/main_om/ominfo/prcpddinfo");
  350. model.removeNodeset("/root/main_om/ominfo/prcpinfo/prcplist");
  351. //처방일자, 미확인처방일자 초기화
  352. grd_prcpappddlist.allStyle("all", "background-color") = "#ffffff";
  353. grd_prcpappddlist.attribute("background-color") = "#ffffff";
  354. grd_uncnfmprcpddlist.attribute("background-color") = "#ffffff";
  355. grd_uncnfmprcpddlist.allStyle("all", "background-color") = "#ffffff";
  356. grp_prcpnotend.visible = true;
  357. //rtnmsg = messageBox("전일 미마감건이 존재합니다. 마감하시기 바랍니다.","Q011");
  358. }else{
  359. grp_prcpnotend.visible = false;
  360. fGetOMPatList();
  361. }
  362. break;
  363. case "prn" :
  364. btn_om.selected = true;
  365. sha_state.visible = false;
  366. cap_state.visible = false;
  367. cap_color.visible = false;
  368. cap_uncnfm.visible = false;
  369. cap_prcp.visible = true;
  370. cap_certcpap.visible = true;
  371. cap_ser.visible = false;
  372. cap_prcp.attribute("left") = "731px";
  373. cap_prcp.attribute("color") = "#000000";
  374. btn_td.visible = true;
  375. btn_om.visible = true;
  376. model.toggle("case_om");
  377. //20090929 김홍점 model.getValue("/root/code/codeinfo/codelist[cdgrupid='146']/cdid"); 가 Y인경우 병동 처방미마감건 블러킹 적용(모든병원 운영만 적용 운영이외의 서버는 N)
  378. if ( model.getValue("/root/code/codeinfo/codelist[cdgrupid='146']/cdid") == 'Y' &&
  379. getNodesetCount("/root/init/wardprescondinfo/prcpnotend") > 0 ) {
  380. btn_cnfmcnt.attribute("text") = "미확인처방 환자수";
  381. btn_dschcnt.attribute("text") = "퇴원처방 환자수";
  382. model.setValue("/root/main_om/cond/pid", "등록번호");
  383. model.setValue("/root/main_om/cond/roomcd", "병실");
  384. model.setValue("/root/main_om/cond/sexage", "S/A");
  385. model.setValue("/root/main_om/cond/patnm", "환자명");
  386. //그리드 초기화
  387. model.removeNodeset("/root/main_om/ominfo/ompatinfo/ompatlist");
  388. model.removeNodeset("/root/main_om/ominfo/prcpddinfo");
  389. model.removeNodeset("/root/main_om/ominfo/prcpinfo/prcplist");
  390. //처방일자, 미확인처방일자 초기화
  391. grd_prcpappddlist.allStyle("all", "background-color") = "#ffffff";
  392. grd_prcpappddlist.attribute("background-color") = "#ffffff";
  393. grd_uncnfmprcpddlist.attribute("background-color") = "#ffffff";
  394. grd_uncnfmprcpddlist.allStyle("all", "background-color") = "#ffffff";
  395. grp_prcpnotend.visible = true;
  396. //rtnmsg = messageBox("전일 미마감건이 존재합니다. 마감하시기 바랍니다.","Q011");
  397. }else{
  398. grp_prcpnotend.visible = false;
  399. fSetPrnMode();
  400. fGetOMPatList();
  401. }
  402. break
  403. case "N" : // 메뉴파라미터가 "N"일 경우 Nusre Main Tab만 활성화 -> 병동사원메뉴적용하기 위함(변경요청번호:20090331_1325(ByJA))
  404. btn_nm.selected = true;
  405. sha_state.visible = true;
  406. cap_state.visible = true;
  407. cap_color.visible = false;
  408. cap_uncnfm.visible = false;
  409. cap_prcp.visible = true;
  410. cap_ser.visible = true;
  411. cap_certcpap.visible = false;
  412. cap_prcp.attribute("left") = "731px";
  413. cap_prcp.attribute("color") = "#000000";
  414. grd_wardpatlist.visible = true;
  415. btn_td.visible = false;
  416. btn_om.visible = false;
  417. grp_prcpnotend.visible = false;
  418. model.toggle("case_nm");
  419. fGetWardPatList();
  420. break;
  421. default :
  422. btn_nm.selected = true;
  423. sha_state.visible = true;
  424. cap_state.visible = true;
  425. cap_color.visible = false;
  426. cap_uncnfm.visible = false;
  427. cap_prcp.visible = true;
  428. cap_ser.visible = true;
  429. cap_certcpap.visible = false;
  430. cap_prcp.attribute("left") = "731px";
  431. cap_prcp.attribute("color") = "#000000";
  432. grd_wardpatlist.visible = true;
  433. btn_td.visible = true;
  434. btn_om.visible = true;
  435. grp_prcpnotend.visible = false;
  436. model.toggle("case_nm");
  437. fGetWardPatList();
  438. break;
  439. }
  440. }
  441. function fShowPopupMenu(gridID, menuPath)
  442. {
  443. var gridObj = document.controls.item(gridID);
  444. if(event.button == 3) {
  445. if(gridObj.isCell(event.target) && gridObj.mouseRow >= gridObj.fixedrows){
  446. window.setPopupMenu(true, menuPath, "name", "func", false);
  447. }else{
  448. window.setPopupMenu(false);
  449. }
  450. }
  451. }
  452. function fPrint()
  453. {
  454. model.removeNodeset("/root/send");
  455. model.makeNode("/root/send");
  456. //***************** model.getValue("/root/main/cond/prestimportid") 대신 swt_main.selectedIndex(nm:0, td:1, om:2) 로 식별함_20080908(ByJA) ***************//
  457. //************************************ 원본_20080908 ****************************************************************************************************//
  458. // var flag = model.getValue("/root/main/cond/prestimportid"); //nm, td, om
  459. // if (flag == 'nm') {
  460. // model.removenode("/root/send");
  461. // model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
  462. // model.makeValue("/root/send/orddd", model.getValue("/root/main/cond/orddd"));
  463. // model.makeValue("/root/send/indschacptstat", "1");
  464. // model.makeValue("/root/send/settingrnid", "");
  465. //
  466. // submit("TRMNW00103");
  467. // //send 재구성
  468. // model.makeNode("/root/send/ipatgroup");
  469. // model.makeNode("/root/send/ipatgroup/ipat");
  470. //
  471. // var wardnm = model.getValue("/root/init/ward[wardcd = '" + model.getValue("/root/main/cond/wardcd") + "']/wardnm");
  472. // model.makeValue("/root/send/ipatgroup/ipat/wardnm", wardnm);
  473. // model.makeValue("/root/send/ipatgroup/ipat/total", model.getValue("/root/init/wardprescondinfo/wardprescond/inhospcnt"));
  474. // model.makeValue("/root/send/ipatgroup/ipat/orddd", model.getValue("/root/main/cond/orddd"));
  475. //
  476. // //list
  477. // model.makeNode("/root/send/ipatgroup/ipatlist");
  478. // for (var i = 1; i <= getNodesetCount("/root/main/wardprntpatinfo/wardpatlist"); i++) {
  479. // copyNodesetType("/root/send/ipatgroup/ipatlist[" + i + "]", "/root/main/wardprntpatinfo/wardpatlist[" + i + "]", "after");
  480. // }
  481. // model.removenode("/root/send/ipatgroup/ipatlist");
  482. // exeReportPreview("RPMNW00200", "XMLSTR");
  483. //
  484. // } else if (flag == 'td') {
  485. // model.makeValue("/root/send/cond/wardcd", model.getValue("/root/init/ward[wardcd = '" + model.getValue("/root/main/cond/wardcd") + "']/wardnm"));
  486. // model.makeValue("/root/send/cond/orddd", model.getValue("/root/main/cond/orddd"));
  487. // model.makeValue("/root/send/cond/duty", radio1.value);
  488. // model.duplicate("/root/send", "root/main_todo/todoinfo");
  489. // exeReportPreview("RPMNW00400", "XMLSTR");
  490. //
  491. // } else {
  492. // if (model.getValue("/root/main_om/ominfo/prcpinfo/prcplist/flag") != "") {
  493. // model.makeNode("/root/send/ompatgroup");
  494. // model.makeNode("/root/send/ompatgroup/ompat");
  495. // model.copyNode("/root/send/ompatgroup/ompat", "/root/main_om/ominfo/ompatinfo/ompatlist[pid = '" + model.getValue("/root/main_om/cond/pid") + "']");
  496. //
  497. // model.makeNode("/root/send/ompatgroup/cnfmprcpdd");
  498. // var cnfm_color = grd_prcpappddlist.allStyle("all", "background-color");
  499. // var uncnfm_color = grd_uncnfmprcpddlist.allStyle("all", "background-color");
  500. // var prcpheader = "";
  501. // var prcpdd = grd_omprcplist.labelMatrix((grd_omprcplist.rows-1), 24);
  502. //
  503. // if (cnfm_color != "#ffffff") {
  504. // prcpheader = "처방적용일 : ";
  505. //
  506. // } else if (uncnfm_color != "#ffffff") {
  507. // prcpheader = "미확인처방일 : ";
  508. // }
  509. // prcpdd = prcpheader.concat(prcpdd);
  510. // model.makeValue("/root/send/ompatgroup/cnfmprcpdd/cnfmprcpdd", prcpdd);
  511. // model.makeNode("/root/send/ompatgroup/prcplistinfo");
  512. // model.copyNode("/root/send/ompatgroup/prcplistinfo", "/root/main_om/ominfo/prcpinfo");
  513. //
  514. // exeReportPreview("RPMNW00300", "XMLSTR");
  515. //
  516. // } else {
  517. // messageBox("처방을 조회 후 출력하십시오", "I");
  518. // }
  519. // }
  520. //************************************ 원본_20080908 ****************************************************************************************************//
  521. //***************** model.getValue("/root/main/cond/prestimportid") 대신 swt_main.selectedIndex(nm:0, td:1, om:2) 로 식별함_20080908(ByJA) ***************//
  522. var flag = swt_main.selectedIndex; //nm:0, td:1, om:2
  523. if (flag == 0) { // nm
  524. //*****20080915주석처리함***********************************************************************************************************//
  525. /*
  526. model.removenode("/root/send");
  527. model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
  528. model.makeValue("/root/send/orddd", model.getValue("/root/main/cond/orddd"));
  529. model.makeValue("/root/send/indschacptstat", "1");
  530. model.makeValue("/root/send/settingrnid", "");
  531. submit("TRMNW00103");
  532. */
  533. //send 재구성
  534. model.makeNode("/root/send/ipatgroup");
  535. model.makeNode("/root/send/ipatgroup/ipat");
  536. var wardnm = model.getValue("/root/init/ward[wardcd = '" + model.getValue("/root/main/cond/wardcd") + "']/wardnm");
  537. model.makeValue("/root/send/ipatgroup/ipat/wardnm", wardnm);
  538. model.makeValue("/root/send/ipatgroup/ipat/total", model.getValue("/root/init/wardprescondinfo/wardprescond/inhospcnt"));
  539. model.makeValue("/root/send/ipatgroup/ipat/orddd", model.getValue("/root/main/cond/orddd"));
  540. //추가20080915
  541. var indschacptstat = model.getValue("/root/main/cond/indschacptstat");
  542. switch(indschacptstat){
  543. case "1":
  544. model.makeValue("/root/send/ipatgroup/ipat/indschacptstat", "재원");
  545. break;
  546. case "2":
  547. model.makeValue("/root/send/ipatgroup/ipat/indschacptstat", "입원");
  548. break;
  549. case "3":
  550. model.makeValue("/root/send/ipatgroup/ipat/indschacptstat", "퇴원진행");
  551. break;
  552. case "4":
  553. model.makeValue("/root/send/ipatgroup/ipat/indschacptstat", "퇴원");
  554. break;
  555. }
  556. //list
  557. model.makeNode("/root/send/ipatgroup/ipatlistinfo/ipatlist");
  558. //*****20080915주석처리함***********************************************************************************************************//
  559. /*
  560. for (var i = 1; i <= getNodesetCount("/root/main/wardprntpatinfo/wardpatlist"); i++) {
  561. copyNodesetType("/root/send/ipatgroup/ipatlist[" + i + "]", "/root/main/wardprntpatinfo/wardpatlist[" + i + "]", "after");
  562. }
  563. model.removenode("/root/send/ipatgroup/ipatlist");
  564. */
  565. model.copyNode("/root/send/ipatgroup/ipatlistinfo", "/root/main_nm/wardpatinfo"); // 추가20080915
  566. exeReportPreview("RPMNW00200", "XMLSTR");
  567. } else if (flag == 1) { // td
  568. model.makeValue("/root/send/cond/wardcd", model.getValue("/root/init/ward[wardcd = '" + model.getValue("/root/main/cond/wardcd") + "']/wardnm"));
  569. model.makeValue("/root/send/cond/orddd", model.getValue("/root/main/cond/orddd"));
  570. model.makeValue("/root/send/cond/duty", radio1.value);
  571. model.duplicate("/root/send", "root/main_todo/todoinfo");
  572. exeReportPreview("RPMNW00400", "XMLSTR");
  573. } else { // om 20111006_KNUH_Start CareCom.js에 함수로 뺌.(선택한 처방이 있을경우에만 출력)
  574. fPrtPrcpList();
  575. }
  576. //***************** model.getValue("/root/main/cond/prestimportid") 대신 swt_main.selectedIndex(nm:0, td:1, om:2) 로 식별함_20080908(ByJA) ***************//
  577. }
  578. ]]>
  579. </script>
  580. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  581. <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
  582. <script type="javascript" src="../../../lis/commonweb/js/LAZ001.js"/>
  583. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  584. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  585. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  586. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  587. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  588. <script type="javascript" src="../../../pam/ipatmngtweb/js/PMI001.js"/>
  589. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  590. <submission id="TRMNW00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
  591. <submission id="TRMNW00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/doctlist"/>
  592. <submission id="TRMNW00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/wardprntpatinfo"/>
  593. <submission id="TRMNW00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/wardprescondinfo"/>
  594. <submission id="TRMNW00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp1" resultref="/root/temp"/>
  595. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  596. <submission id="TRPMI00115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data17" resultref="/root/hidden/h_receipt"/>
  597. <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main_nm/barcdprntsetup"/>
  598. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
  599. <submission id="TRMNB02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/userscrnenvinfo"/>
  600. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  601. </model>
  602. </xhtml:head>
  603. <xhtml:body guideline="1,1195;1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  604. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  605. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">
  606. <![CDATA[병동/ICU 메인]]>
  607. <script type="javascript" ev:event="onmousedown">
  608. <![CDATA[
  609. /*
  610. var pwcnt = model.getValue("/root/pw");
  611. if(event.button == 3)
  612. {
  613. pwcnt++;
  614. model.setValue("/root/pw", pwcnt);
  615. if(pwcnt == "5"){
  616. open("SPMNW99900");
  617. model.setValue("/root/pw", 0);
  618. }
  619. }
  620. */
  621. ]]>
  622. </script>
  623. </caption>
  624. </group>
  625. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:742px; ">
  626. <button id="btn_nm" class="btn_sw" group="tab" style="left:0px; top:84px; width:100px; height:22px; ">
  627. <caption>Nurse Main</caption>
  628. <script type="javascript" ev:event="onclick">
  629. <![CDATA[
  630. model.setValue("/root/main/cond/prestimportid", "nm");
  631. fInqurySelectedPrgm();
  632. ]]>
  633. </script>
  634. <toggle case="case_nm" ev:event="onclick"/>
  635. </button>
  636. <button id="btn_td" class="btn_sw" visibility="hidden" group="tab" style="left:99px; top:84px; width:100px; height:22px; ">
  637. <caption>To-do List</caption>
  638. <script type="javascript" ev:event="onclick">
  639. <![CDATA[
  640. model.setValue("/root/main/cond/prestimportid", "td");
  641. fInqurySelectedPrgm();
  642. ]]>
  643. </script>
  644. <toggle case="case_td" ev:event="onclick"/>
  645. </button>
  646. <button id="btn_om" class="btn_sw" visibility="hidden" group="tab" style="left:198px; top:84px; width:107px; height:22px; ">
  647. <caption>Order Manage</caption>
  648. <script type="javascript" ev:event="onclick">
  649. <![CDATA[
  650. model.setValue("/root/main/cond/prestimportid", "om");
  651. fInqurySelectedPrgm();
  652. ]]>
  653. </script>
  654. <toggle case="case_om" ev:event="onclick"/>
  655. </button>
  656. <group id="grp_search1" style="left:0px; top:10px; width:1194px; height:65px; vertical-align:top; ">
  657. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  658. <button id="btn_ref" class="btn1_letter2" style="left:1125px; top:23px; width:56px; height:22px; ">
  659. <caption>조회</caption>
  660. </button>
  661. <caption id="caption3" class="search_name" style="left:15px; top:9px; width:60px; height:17px; ">병동 :</caption>
  662. <select1 id="combo10" ref="/root/main/cond/wardcd" class="combo_s_essential" appearance="minimal" style="left:78px; top:8px; width:87px; height:19px; ">
  663. <choices>
  664. <itemset nodeset="/root/init/ward/">
  665. <label ref="wardnm"/>
  666. <value ref="wardcd"/>
  667. </itemset>
  668. </choices>
  669. </select1>
  670. <caption id="caption4" class="search_name" style="left:175px; top:10px; width:107px; height:17px; ">Setting RN :</caption>
  671. <select1 id="combo11" ref="/root/main/cond/settingrnid" class="combo_s_essential" appearance="minimal" style="left:282px; top:8px; width:48px; height:19px; ">
  672. <choices>
  673. <itemset nodeset="/root/init/settingrn">
  674. <label ref="settingrnnm"/>
  675. <value ref="settingrnid"/>
  676. </itemset>
  677. </choices>
  678. </select1>
  679. <select1 id="combo13" ref="/root/main/cond/orddeptcd" class="combo_s_essential" appearance="minimal" style="left:690px; top:8px; width:85px; height:19px; ">
  680. <choices>
  681. <itemset nodeset="/root/init/dept/">
  682. <label ref="deptnm"/>
  683. <value ref="deptcd"/>
  684. </itemset>
  685. </choices>
  686. </select1>
  687. <caption id="caption10" class="search_name" style="left:525px; top:9px; width:74px; height:17px; ">진료과 :</caption>
  688. <caption id="caption21" class="search_name" style="left:345px; top:9px; width:90px; height:17px; ">업무일자 :</caption>
  689. <input id="input3" ref="/root/main/cond/orddd" class="input_s_essential" inputtype="date" style="left:435px; top:8px; width:85px; height:19px; "/>
  690. <select1 id="combo14" ref="/root/main/cond/atdoctid" class="combo_s_essential" appearance="minimal" style="left:867px; top:8px; width:71px; height:19px; ">
  691. <choices/>
  692. </select1>
  693. <select1 id="combo15" ref="/root/main/cond/medispclid" class="combo_s_essential" appearance="minimal" style="left:92px; top:39px; width:71px; height:19px; ">
  694. <choices/>
  695. </select1>
  696. <!--(20101206) 경북대
  697. <caption id="caption27" class="search_name" style="left:790px; top:9px; width:74px; height:17px; ">주치의 :</caption>
  698. <caption id="caption51" class="search_name" style="left:15px; top:40px; width:74px; height:17px; ">담당의 :</caption>
  699. -->
  700. <caption id="caption27" class="search_name" style="left:790px; top:9px; width:74px; height:17px; ">주치의 :</caption>
  701. <caption id="caption51" class="search_name" style="left:15px; top:40px; width:74px; height:17px; ">담당의 :</caption>
  702. <!--(20101206) 경북대 -->
  703. <caption id="caption1" class="search_name" style="left:178px; top:40px; width:91px; height:17px; ">재원구분 :</caption>
  704. <select1 id="radio1" ref="/root/main/cond/indschacptstat" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:266px; top:41px; width:209px; height:13px; border-style:none; ">
  705. <choices>
  706. <item>
  707. <label>재원</label>
  708. <value>1</value>
  709. </item>
  710. <item>
  711. <label>입원</label>
  712. <value>2</value>
  713. </item>
  714. <item>
  715. <label>퇴원진행</label>
  716. <value>3</value>
  717. </item>
  718. <item>
  719. <label>퇴원</label>
  720. <value>4</value>
  721. </item>
  722. </choices>
  723. </select1>
  724. <caption id="caption7" class="search_name" style="left:525px; top:40px; width:93px; height:17px; ">등록번호 :</caption>
  725. <input id="input2" ref="/root/main/cond/pid" class="input_search" style="left:616px; top:37px; width:102px; height:19px; "/>
  726. <line id="line13" class="line_4" style="x1:1027px; y1:22px; x2:1027px; y2:44px; border-color:#ffe4bb; border-left-style:solid; "/>
  727. <button id="button1" class="btn1_letter4" style="left:1041px; top:23px; width:80px; height:22px; ">
  728. <caption>엑셀저장</caption>
  729. </button>
  730. </group>
  731. <switch id="swt_main" style="left:0px; top:105px; width:1195px; height:636px; border-color:#c7a3cf; border-style:solid; ">
  732. <case id="case_nm" selected="true" style="left:0px; top:0px; width:1195px; height:709px; ">
  733. <import id="import1" src="SMMNW00200_Nurse Main.xrw" style="left:0px; top:0px; width:1190px; height:634px; "/>
  734. </case>
  735. <case id="case_td">
  736. <import id="import2" src="SMMNW00400_To-do list.xrw" style="left:0px; top:0px; width:1190px; height:634px; "/>
  737. </case>
  738. <case id="case_om">
  739. <import id="import3" src="SMMNW00300_Order Manage.xrw" style="left:0px; top:0px; width:1190px; height:634px; "/>
  740. </case>
  741. </switch>
  742. <group id="group2" style="left:0px; top:10px; width:1194px; height:65px; vertical-align:top; ">
  743. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  744. <button id="btn_save" class="btn1_letter2" style="left:1016px; top:8px; width:56px; height:22px; ">
  745. <caption>조회</caption>
  746. <script type="javascript" ev:event="DOMActivate">
  747. <![CDATA[
  748. fInqurySelectedPrgm();
  749. ]]>
  750. </script>
  751. </button>
  752. <caption id="caption8" class="search_name" style="left:5px; top:9px; width:60px; height:17px; ">병동:</caption>
  753. <select1 id="combo1" ref="/root/main/cond/wardcd" class="combo_s_essential" appearance="minimal" style="left:61px; top:8px; width:139px; height:19px; ">
  754. <choices>
  755. <itemset nodeset="/root/init/ward/">
  756. <label ref="wardnm"/>
  757. <value ref="wardcd"/>
  758. </itemset>
  759. </choices>
  760. <script type="javascript" ev:event="xforms-value-changed">
  761. <![CDATA[
  762. model.removenode("/root/send");
  763. model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
  764. model.makeValue("/root/main/cond/orddd", getCurrentDate());
  765. model.makeValue("/root/main/cond/settingrnid","");
  766. model.makeValue("/root/main/cond/orddeptcd","");
  767. model.makeValue("/root/main/cond/medispclid","");
  768. model.makeValue("/root/main/cond/atdoctid","");
  769. model.makeValue("/root/main/cond/indschacptstat","1");
  770. submit("TRMNW00101");
  771. // 간호하드코딩 테이블 조회_20090415(ByJA)
  772. //model.removenode("/root/init/ward[wardcd = '2280200000']"); // 응급의료센터 제외
  773. model.removenode("/root/init/ward[wardcd = '"+ erdeptcd +"']"); // 응급의료센터 제외
  774. model.setValue("/root/main/cond/settingrnid", "");
  775. for(i = 1; i <= getNodesetCount("/root/init/settingrn"); i++ ) {
  776. if (model.getValue("/root/main/cond/userid") == model.getValue("/root/init/settingrn["+ i +"]/settingrnid")) {
  777. model.makeValue("/root/main/cond/settingrnid", model.getValue("/root/main/cond/userid"));
  778. }
  779. }
  780. model.makeValue("/root/main/cond/wardnm", combo1.label);
  781. delPatientInfos(); //화면상단정보 삭제
  782. setGlobalVariable("paminfo", ""); //원무정보 reset
  783. //Order Manage 의 환자정보 변경
  784. model.makeValue("/root/main_om/cond/pid", "등록번호");
  785. model.makeValue("/root/main_om/cond/roomcd", "병실");
  786. model.makeValue("/root/main_om/cond/sexage", "S/A");
  787. model.makeValue("/root/main_om/cond/patnm", "환자명");
  788. fInqurySelectedPrgm();
  789. ]]>
  790. </script>
  791. </select1>
  792. <caption id="caption9" class="search_name" style="left:382px; top:9px; width:75px; height:17px; ">내환자:</caption>
  793. <select1 id="cmb_settingrn" ref="/root/main/cond/settingrnid" class="combo_search" appearance="minimal" style="left:450px; top:8px; width:75px; height:19px; ">
  794. <choices>
  795. <itemset nodeset="/root/init/settingrn">
  796. <label ref="settingrnnm"/>
  797. <value ref="settingrnid"/>
  798. </itemset>
  799. </choices>
  800. <script type="javascript" ev:event="xforms-value-changed">
  801. <![CDATA[
  802. fInqurySelectedPrgm();
  803. ]]>
  804. </script>
  805. </select1>
  806. <select1 id="cmb_dept" ref="/root/main/cond/orddeptcd" class="combo_search" appearance="minimal" style="left:596px; top:8px; width:100px; height:19px; ">
  807. <choices>
  808. <itemset nodeset="/root/init/dept/">
  809. <label ref="depthngnm"/>
  810. <value ref="deptcd"/>
  811. </itemset>
  812. </choices>
  813. <script type="javascript" ev:event="xforms-value-changed">
  814. <![CDATA[
  815. // 2013.04.22 전문의,담당의 조회 조건 콤보리스트 진료 하드코딩테이블에서 가져오도록 수정!!
  816. // model.removenode("/root/send");
  817. // model.makeValue("/root/send/orddd", model.getValue("/root/main/cond/orddd"));
  818. // model.makeValue("/root/send/orddeptcd", model.getValue("/root/main/cond/orddeptcd"));
  819. // submit("TRMNW00102");
  820. model.removeNodeset("/root/init/userlist");
  821. model.makeNode("/root/init/userlist/medispclid/usercombo");
  822. model.makeNode("/root/init/userlist/atdoctid/usercombo");
  823. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist/medispclid", cmb_dept.value, "0330", "", "M");
  824. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist/atdoctid", cmb_dept.value, "0330", "", "T");
  825. addComboItem("cmb_medispclnm", "-", "", "above"); //의사콤보 전체항목 추가
  826. addComboItem("cmb_atdoctnm", "-", "", "above"); //의사콤보 전체항목 추가
  827. // cmb_medispclnm.select(0);
  828. // cmb_atdoctnm.select(0);
  829. fInqurySelectedPrgm();
  830. ]]>
  831. </script>
  832. </select1>
  833. <caption id="caption11" class="search_name" style="left:526px; top:9px; width:74px; height:17px; ">진료과:</caption>
  834. <caption id="caption12" class="search_name" style="left:203px; top:9px; width:90px; height:17px; ">업무일자:</caption>
  835. <input id="input4" ref="/root/main/cond/orddd" class="input_s_essential" inputtype="date" style="left:285px; top:8px; width:95px; height:19px; ">
  836. <script type="javascript" ev:event="xforms-value-changed">
  837. <![CDATA[
  838. fInqurySelectedPrgm();
  839. ]]>
  840. </script>
  841. </input>
  842. <select1 id="cmb_medispclnm" ref="/root/main/cond/medispclid" class="combo_search" appearance="minimal" style="left:767px; top:8px; width:70px; height:19px; ">
  843. <choices>
  844. <itemset nodeset="/root/init/userlist/medispclid/usercombo">
  845. <label ref="usernm"/>
  846. <value ref="userid"/>
  847. </itemset>
  848. </choices>
  849. <script type="javascript" ev:event="xforms-value-changed">
  850. <![CDATA[
  851. fInqurySelectedPrgm();
  852. ]]>
  853. </script>
  854. </select1>
  855. <select1 id="cmb_atdoctnm" ref="/root/main/cond/atdoctid" class="combo_search" appearance="minimal" style="left:908px; top:9px; width:80px; height:19px; ">
  856. <choices>
  857. <itemset nodeset="/root/init/userlist/atdoctid/usercombo">
  858. <label ref="usernm"/>
  859. <value ref="userid"/>
  860. </itemset>
  861. </choices>
  862. <script type="javascript" ev:event="xforms-value-changed">
  863. <![CDATA[
  864. fInqurySelectedPrgm();
  865. ]]>
  866. </script>
  867. </select1>
  868. <!--(20101206) 경북대
  869. <caption id="caption13" class="search_name" style="left:698px; top:9px; width:74px; height:17px; ">주치의:</caption>
  870. <caption id="caption52" class="search_name" style="left:840px; top:9px; width:74px; height:17px; ">담당의:</caption>
  871. -->
  872. <caption id="caption13" class="search_name" style="left:698px; top:9px; width:74px; height:17px; ">전문의:</caption>
  873. <caption id="caption52" class="search_name" style="left:840px; top:9px; width:74px; height:17px; ">담당의:</caption>
  874. <!--(20101206) 경북대 -->
  875. <select1 id="radio2" ref="/root/main/cond/indschacptstat" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:5px; top:30px; width:202px; height:13px; border-style:none; ">
  876. <choices>
  877. <item>
  878. <label>재원</label>
  879. <value>1</value>
  880. </item>
  881. <item>
  882. <label>입원</label>
  883. <value>2</value>
  884. </item>
  885. <item>
  886. <label>퇴원진행</label>
  887. <value>3</value>
  888. </item>
  889. <item>
  890. <label>퇴원</label>
  891. <value>4</value>
  892. </item>
  893. </choices>
  894. <script type="javascript" ev:event="xforms-value-changed">
  895. <![CDATA[
  896. fInqurySelectedPrgm();
  897. ]]>
  898. </script>
  899. </select1>
  900. <caption id="caption54" class="search_name" visibility="hidden" style="left:203px; top:40px; width:93px; height:17px; ">등록번호:</caption>
  901. <input id="input5" ref="/root/main/cond/pid" class="input_search" visibility="hidden" maxlength="10" style="left:280px; top:39px; width:50px; height:19px; ">
  902. <script type="javascript" ev:event="onkeypress">
  903. <![CDATA[
  904. if (event.keyCode == 13) {
  905. var i;
  906. for(i=1; i < grd_wardpatlist.rows; i++) {
  907. if ( input5.currentText == model.getValue("/root/main_nm/wardpatinfo/wardpatlist["+i+"]/pid") ) {
  908. grd_wardpatlist.topRow = i;
  909. grd_wardpatlist.select(i,3,i,grd_wardpatlist.cols-1) = true;
  910. break;;
  911. }
  912. }
  913. if (i == grd_wardpatlist.rows) {
  914. messageBox("등록번호가","I004");
  915. }
  916. input5.currentText = "";
  917. model.setValue("/root/main/cond/pid","");
  918. model.refresh();
  919. }
  920. ]]>
  921. </script>
  922. </input>
  923. <line id="line25" class="line_4" style="x1:1006px; y1:8px; x2:1006px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  924. <line id="line30" class="line_3" style="x1:279px; y1:38px; x2:279px; y2:57px; border-color:#ffe4bb; border-left-style:solid; "/>
  925. <line id="line29" class="line_3" style="x1:672px; y1:38px; x2:672px; y2:57px; border-color:#ffe4bb; border-left-style:solid; "/>
  926. <line id="line27" class="line_3" style="x1:279px; y1:38px; x2:672px; y2:38px; "/>
  927. <line id="line28" class="line_3" style="x1:279px; y1:57px; x2:674px; y2:57px; "/>
  928. <caption id="caption59" class="cell_1" style="left:280px; top:39px; width:25px; height:18px; vertical-align:middle; ">1군</caption>
  929. <caption id="caption66" class="cell_1" style="left:324px; top:39px; width:25px; height:18px; vertical-align:middle; ">2군</caption>
  930. <caption id="caption57" class="cell_1" style="left:368px; top:39px; width:25px; height:18px; vertical-align:middle; ">3군</caption>
  931. <caption id="caption58" class="cell_1" style="left:412px; top:39px; width:25px; height:18px; vertical-align:middle; ">4군</caption>
  932. <caption id="caption56" class="cell_1" style="left:456px; top:39px; width:25px; height:18px; vertical-align:middle; ">5군</caption>
  933. <caption id="caption65" class="cell_1" style="left:500px; top:39px; width:25px; height:18px; vertical-align:middle; ">6군</caption>
  934. <caption id="caption67" class="cell_1" style="left:544px; top:39px; width:89px; height:18px; vertical-align:middle; ">격리 신청/승인</caption>
  935. <caption id="caption55" class="cell_1" style="left:676px; top:39px; width:43px; height:18px; vertical-align:middle; ">재원수</caption>
  936. <output id="output31" ref="/root/init/wardprescondinfo/wardprescond/kind1" style="left:305px; top:38px; width:19px; height:19px; text-align:center; "/>
  937. <output id="output32" ref="/root/init/wardprescondinfo/wardprescond/kind2" style="left:349px; top:38px; width:19px; height:19px; text-align:center; "/>
  938. <output id="output33" ref="/root/init/wardprescondinfo/wardprescond/kind3" style="left:393px; top:38px; width:19px; height:19px; text-align:center; "/>
  939. <output id="output34" ref="/root/init/wardprescondinfo/wardprescond/kind4" style="left:437px; top:38px; width:19px; height:19px; text-align:center; "/>
  940. <output id="output35" ref="/root/init/wardprescondinfo/wardprescond/kind5" style="left:481px; top:38px; width:19px; height:19px; text-align:center; "/>
  941. <output id="output36" ref="/root/init/wardprescondinfo/wardprescond/kind6" style="left:525px; top:38px; width:19px; height:19px; text-align:center; "/>
  942. <output id="output38" ref="/root/init/wardprescondinfo/wardprescond/isolcnt" visibility="hidden" style="left:700px; top:20px; width:31px; height:19px; text-align:center; "/>
  943. <output id="output37" ref="/root/init/wardprescondinfo/wardprescond/inhospcnt" style="left:719px; top:38px; width:28px; height:19px; font-weight:bold; text-align:center; "/>
  944. <button id="button4" class="icon_search" disabled="false" visibility="hidden" style="left:332px; top:40px; width:16px; height:16px; ">
  945. <caption/>
  946. <script type="javascript" ev:event="DOMActivate">
  947. <![CDATA[
  948. alert("개발중입니다.");
  949. ]]>
  950. </script>
  951. </button>
  952. <button id="button26" class="btn2_letter7" style="left:849px; top:38px; width:97px; height:19px; ">
  953. <caption>입원/전과/전실</caption>
  954. <script type="javascript" ev:event="DOMActivate">
  955. <![CDATA[
  956. var orddd = model.getValue("/root/main/cond/orddd");
  957. var wardcd = model.getValue("/root/main/cond/wardcd");
  958. var param = orddd + "▩" + wardcd;
  959. setParameter("SMMNW01100_PARAM1", param);
  960. modal("SMMNW01100",1,50,250);
  961. fInqurySelectedPrgm();
  962. ]]>
  963. </script>
  964. </button>
  965. <button id="button23" class="btn2_letter6" disabled="false" style="left:1025px; top:38px; width:86px; height:19px; ">
  966. <caption>간호ITEM세팅</caption>
  967. <script type="javascript" ev:event="DOMActivate">
  968. <![CDATA[
  969. modal("SMMNR04100", 1 , 50, 50);
  970. ]]>
  971. </script>
  972. </button>
  973. <button id="button24" class="btn2_letter5" style="left:1113px; top:38px; width:75px; height:19px; ">
  974. <caption>내환자세팅</caption>
  975. <script type="javascript" ev:event="DOMActivate">
  976. <![CDATA[
  977. setParameter("wardcd", model.getValue("/root/main/cond/wardcd"));
  978. setParameter("userid", model.getValue("/root/main/cond/userid"));
  979. setParameter("usernm", model.getValue("/root/main/cond/usernm"));
  980. modal("SMMNB00400","1" ,"868", "128");
  981. model.removenode("/root/send");
  982. model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
  983. submit("TRMNW00101");
  984. // 간호하드코딩 테이블 조회_20090415(ByJA)
  985. //model.removenode("/root/init/ward[wardcd = '2280200000']"); // 응급의료센터 제외
  986. model.removenode("/root/init/ward[wardcd = '"+ erdeptcd +"']"); // 응급의료센터 제외
  987. model.setValue("/root/main/cond/settingrnid", "");
  988. for(i = 1; i <= getNodesetCount("/root/init/settingrn"); i++ ) {
  989. if (model.getValue("/root/main/cond/userid") == model.getValue("/root/init/settingrn["+ i +"]/settingrnid")) {
  990. model.setValue("/root/main/cond/settingrnid", model.getValue("/root/main/cond/userid"));
  991. }
  992. }
  993. fInqurySelectedPrgm();
  994. ]]>
  995. </script>
  996. </button>
  997. <button id="button9" class="btn1_letter2" style="left:1074px; top:8px; width:56px; height:22px; ">
  998. <caption>엑셀</caption>
  999. <script type="javascript" ev:event="DOMActivate">
  1000. <![CDATA[
  1001. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1002. //***************** model.getValue("/root/main/cond/prestimportid") 대신 swt_main.selectedIndex(nm:0, td:1, om:2) 로 식별함_20080908(ByJA) ***************//
  1003. //************************************ 원본_20080908 ****************************************************************************************************//
  1004. // if (fileName != "") {
  1005. // switch(model.getValue("/root/main/cond/prestimportid")) {
  1006. // case "td":
  1007. // grd_todolist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  1008. // break;
  1009. // case "om":
  1010. // grd_omprcplist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  1011. // break;
  1012. // case "nm":
  1013. // grd_wardpatlist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  1014. // break;
  1015. // default :
  1016. // messageBox("엑셀로 저장할 수 있는 리스트가 선택되지", "E007");
  1017. // }
  1018. //
  1019. // }
  1020. //************************************ 원본_20080908 ****************************************************************************************************//
  1021. //***************** model.getValue("/root/main/cond/prestimportid") 대신 swt_main.selectedIndex(nm:0, td:1, om:2) 로 식별함_20080908(ByJA) ***************//
  1022. if (fileName != "") {
  1023. var selectindex = swt_main.selectedIndex;
  1024. switch(selectindex) {
  1025. case 0: // nm
  1026. grd_wardpatlist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  1027. break;
  1028. case 1: // td
  1029. grd_todolist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  1030. break;
  1031. case 2: // om
  1032. grd_omprcplist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  1033. break;
  1034. default :
  1035. messageBox("엑셀로 저장할 수 있는 리스트가 선택되지", "E007");
  1036. }
  1037. }
  1038. //************************* model.getValue("/root/main/cond/prestimportid") 대신 swt_main.selectedIndex(nm:0, td:1, om:2) 로 식별함_20080908(ByJA) ************************//
  1039. ]]>
  1040. </script>
  1041. </button>
  1042. <button id="button3" class="btn1_letter2" style="left:1132px; top:8px; width:56px; height:22px; ">
  1043. <caption>출력</caption>
  1044. <script type="javascript" ev:event="DOMActivate">
  1045. <![CDATA[
  1046. var flag = swt_main.selectedIndex; //nm:0, td:1, om:2
  1047. if (flag == 0) { // nm
  1048. group4.visible = true;
  1049. }else{
  1050. fPrint();
  1051. }
  1052. ]]>
  1053. </script>
  1054. </button>
  1055. <line id="line1" class="line_3" style="x1:673px; y1:38px; x2:673px; y2:57px; border-color:#ffe4bb; border-left-style:solid; "/>
  1056. <output id="output1" ref="/root/init/wardprescondinfo/wardprescond/wardbedcnt" style="left:815px; top:38px; width:28px; height:19px; font-weight:bold; text-align:center; "/>
  1057. <caption id="caption5" class="cell_1" style="left:747px; top:39px; width:67px; height:18px; vertical-align:middle; ">운영병상수</caption>
  1058. <line id="line2" class="line_3" style="x1:844px; y1:38px; x2:844px; y2:57px; border-color:#ffe4bb; border-left-style:solid; "/>
  1059. <line id="line3" class="line_3" style="x1:676px; y1:38px; x2:844px; y2:38px; "/>
  1060. <line id="line4" class="line_3" style="x1:676px; y1:57px; x2:844px; y2:57px; "/>
  1061. <output id="output2" ref="/root/init/wardprescondinfo/wardisolcnt/isolcnt" style="left:631px; top:38px; width:18px; height:19px; text-align:center; "/>
  1062. <button id="button7" class="btn2_letter5" visibility="hidden" style="left:948px; top:33px; width:75px; height:19px; ">
  1063. <caption>부적합검체</caption>
  1064. <script type="javascript" ev:event="DOMActivate">
  1065. <![CDATA[
  1066. // if (tar_unablespc.value == "") {
  1067. // messageBox("부적합검체 환자가 없습니다.", "I");
  1068. // } else {
  1069. // setParameter("wardcd", model.getValue("/root/main/cond/wardcd"));
  1070. // modal("SMADB01010",1,50,250);
  1071. modal("SMLLP00700",1,50,250);
  1072. fInqurySelectedPrgm();
  1073. // }
  1074. ]]>
  1075. </script>
  1076. </button>
  1077. <caption id="caption15" style="left:648px; top:38px; width:10px; height:20px; ">/</caption>
  1078. <output id="output3" ref="/root/init/wardprescondinfo/wardisolcnt/isolcnt2" style="left:656px; top:38px; width:16px; height:19px; text-align:center; "/>
  1079. <button id="button8" class="btn2_letter5" visibility="visible" style="left:948px; top:38px; width:75px; height:19px; ">
  1080. <caption>팔찌재출력</caption>
  1081. <script type="javascript" ev:event="DOMActivate">
  1082. <![CDATA[
  1083. //설정된 상단정보를 불러옴
  1084. model.removeNode("/root/main/paminfo");
  1085. model.makeNode("/root/main/paminfo");
  1086. var node = getGlobalVariable("paminfo");
  1087. setCSVToNode("/root/main/paminfo", node);
  1088. if (model.getValue("/root/main/paminfo/list/pid") != "") { //상단정보에 환자가 셋팅되어 있을 경우
  1089. var pid, indd, cretno, mskind, histstat;
  1090. //patinfo 정보 셋팅
  1091. //20080905 추가
  1092. //port정보 가져오기
  1093. /*
  1094. // 바코드 라벨 초기 설정값 조회
  1095. //fGetBarCodeInfo(scrnid); // CareCom.js
  1096. var scrnid = "SMMNR00600";
  1097. model.removeNodeset("/root/main_nm/barcdprntsetup");
  1098. model.resetInstanceNode("/root/send/reqdata");
  1099. model.makeValue("/root/send/scrnid", scrnid);
  1100. submit("TRLLC90101");
  1101. // 바코드 라벨 환경설정
  1102. // fSettingBarCode(barcdRef); // CareCom.js
  1103. var sSndMsg = "";
  1104. var portOpenTF = ""; //오픈 성공 여부
  1105. var barcdRef = "/root/main_nm/barcdprntsetup/prntsetupinfo/setupinfo";
  1106. var sPrntKind = model.getValue(barcdRef + "[1]/prntkind");
  1107. var sCommKind = model.getValue(barcdRef + "[1]/commkind");
  1108. if(sCommKind == "01") {
  1109. var sSetUpVal = model.getValue(barcdRef + "[1]/comm01/setupval");
  1110. }else if(sCommKind == "02") {
  1111. var comport = model.getValue(barcdRef + "[1]/comm02/comm");
  1112. var sDataBit = model.getValue(barcdRef + "[1]/comm02/databit");
  1113. var sStopBit = model.getValue(barcdRef + "[1]/comm02/stopbit");
  1114. var sBaudRate = model.getValue(barcdRef + "[1]/comm02/baudrate");
  1115. var sParity = model.getValue(barcdRef + "[1]/comm02/parity");
  1116. var sSetUpVal = model.getValue(barcdRef + "[1]/comm02/setupval"); // 20080802추가(ByJA)
  1117. CommAX.CommPort = sComm;
  1118. CommAX.Settings = sBaudRate + "," + sParity + "," + sDataBit + "," + sStopBit;
  1119. portOpenTF = CommAX.PortOpen(true);
  1120. }else if(sCommKind == "03") {
  1121. var sSetUpVal = model.getValue(barcdRef + "[1]/comm03/setupval");
  1122. }
  1123. */
  1124. model.removenode("/root/send");
  1125. model.removenode("/root/main_nm/barcdprntsetup");
  1126. model.makenode("/root/main_nm/barcdprntsetup");
  1127. model.makeValue("/root/send/scrnid", "SMMNR00600");
  1128. var comport = "1";
  1129. if(submit("TRLLC90101")){
  1130. comport = model.getValue("/root/main_nm/barcdprntsetup/prntsetupinfo/setupinfo[1]/comm02/comm");
  1131. }
  1132. // 바코드OCX 생성
  1133. //2. 바코드 라벨 환경설정
  1134. var barcdRef = "/root/main_nm/barcdprntsetup/prntsetupinfo/setupinfo";
  1135. lzzfMakeBrcdPrntObjHanDo("CommAX", barcdRef);
  1136. // if(document.all("CommAX") == null){
  1137. // lzzfMakeBrcdPrntObjHanDo("CommAX");
  1138. // }
  1139. pid = model.getValue("/root/main/paminfo/list/pid");
  1140. indd = model.getValue("/root/main/paminfo/list/indd");
  1141. cretno = model.getValue("/root/main/paminfo/list/cretno");
  1142. mskind = model.getValue("/root/main/paminfo/list/mskind");
  1143. histstat = model.getValue("/root/main/paminfo/list/histstat");
  1144. model.makeNode("/root/send/data17");
  1145. model.makeNode("/root/hidden/h_receipt");
  1146. model.makeNode("/root/hidden/h_receipt/receipt");
  1147. // model.removeNodeset("/root/hidden/h_receipt");
  1148. // model.removeNodeset("/root/send/data17");
  1149. //원무 메소드 호출
  1150. //fInPatBarCodePrn(pid, indd, cretno, mskind, histstat, comport);
  1151. /* 삭제된 파라미터 : pPort - COM Port 지정값
  1152. * 추가된 파라미터 : pSetyn - 프린터설정정보 셋팅여부
  1153. * pScrid - 프린터설정정보 조회용 화면 아이디
  1154. * pBarcdRef - 설정정보 xpath
  1155. */
  1156. //------(20100914) 경북대 s
  1157. model.makevalue("/root/main/barcdprntsetup/macaddr","별도경로설정");
  1158. //------(20100914) 경북대 e
  1159. pmifPrintBarCode(pid, indd, cretno, mskind, histstat, "N", "SMMNR00600", barcdRef); // 20090527 변경됨.
  1160. //------(20100914) 경북대 s
  1161. model.removeNode("/root/main/barcdprntsetup/macaddr");
  1162. //------(20100914) 경북대 e
  1163. } else {
  1164. messageBox("환자를 선택 후 출력하십시오", "I");
  1165. }
  1166. ]]>
  1167. </script>
  1168. </button>
  1169. <select1 id="rdo_sortflag" ref="/root/main/cond/sortflag" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:5px; top:48px; width:195px; height:12px; border-style:none; ">
  1170. <choices>
  1171. <item>
  1172. <label>환자명순</label>
  1173. <value>1</value>
  1174. </item>
  1175. <item>
  1176. <label>병상순</label>
  1177. <value>2</value>
  1178. </item>
  1179. </choices>
  1180. </select1>
  1181. </group>
  1182. <caption id="caption68" class="search_name" style="left:314px; top:81px; width:90px; height:17px; ">혈액준비 :</caption>
  1183. <caption id="caption2" class="search_name" style="left:528px; top:81px; width:86px; height:17px; ">
  1184. <![CDATA[전실승인 :]]>
  1185. <script type="javascript" ev:event="ondblclick">
  1186. <![CDATA[
  1187. if(model.getValue("/root/main/precondlist/chngroomaprvlist") !="") { //전실승인된 환자가 존재하면
  1188. var orddd = model.getValue("/root/main/cond/orddd");
  1189. var wardcd = model.getValue("/root/main/cond/wardcd");
  1190. var param = orddd + "▩" + wardcd;
  1191. setParameter("SMMNW01100_PARAM1", param);
  1192. modal("SMMNW01100",1,50,250);
  1193. fInqurySelectedPrgm();
  1194. }
  1195. ]]>
  1196. </script>
  1197. </caption>
  1198. <caption id="cap_anticncrt" class="search_name" style="left:740px; top:81px; width:100px; height:17px; ">
  1199. <![CDATA[항암미승인 :]]>
  1200. <script type="javascript" ev:event="ondblclick">
  1201. <![CDATA[
  1202. if (tar_anticncrt.value == "") {
  1203. messageBox("항암미승인 환자가 없습니다.", "I");
  1204. } else {
  1205. setParameter("wardcd", model.getValue("/root/main/cond/wardcd"));
  1206. modal("SMADB01010",1,50,250);
  1207. fInqurySelectedPrgm();
  1208. }
  1209. ]]>
  1210. </script>
  1211. </caption>
  1212. <caption id="cap_unablspc" class="search_name" visibility="visible" style="left:966px; top:81px; width:100px; height:17px; ">
  1213. <![CDATA[부적합검체 :]]>
  1214. <script type="javascript" ev:event="ondblclick">
  1215. <![CDATA[
  1216. if (tar_unablspc.value == "") {
  1217. messageBox("부적합검체 환자가 없습니다.", "I");
  1218. } else {
  1219. // setParameter("wardcd", model.getValue("/root/main/cond/wardcd"));
  1220. // modal("SMADB01010",1,50,250);
  1221. modal("SMLLP00700",1,50,250);
  1222. fInqurySelectedPrgm();
  1223. }
  1224. ]]>
  1225. </script>
  1226. </caption>
  1227. <textarea id="tar_chngroomaprv" ref="/root/main/precondlist/chngroomaprvlist" disabled="false" overflow="scroll" scroll="autovscroll" editable="false" style="left:614px; top:76px; width:120px; height:28px; vertical-align:middle; border-left-width:0; border-top-width:0; border-right-width:0; border-bottom-width:0; "/>
  1228. <textarea id="tar_blodprep" ref="/root/main/precondlist/blodpreplist" disabled="false" overflow="scroll" scroll="autovscroll" editable="false" style="left:402px; top:76px; width:120; height:28px; vertical-align:middle; border-left-width:0; border-top-width:0; border-right-width:0; border-bottom-width:0; "/>
  1229. <textarea id="tar_anticncrt" ref="/root/main/precondlist/anticncrlist" disabled="false" overflow="scroll" scroll="autovscroll" editable="false" style="left:840px; top:76px; width:120px; height:28px; vertical-align:middle; border-left-width:0; border-top-width:0; border-right-width:0; border-bottom-width:0; "/>
  1230. <group id="grp_prcpnotend" visibility="hidden" style="left:1px; top:109px; width:1192px; height:630px; ">
  1231. <datagrid id="grd_prcpnotend" nodeset="/root/init/wardprescondinfo/prcpnotend" caption="caption1^병실^환자명" colsep="^" colwidth="0, 84, 79" mergecellsfixedrows="bycolrec" rowsep="|" style="left:530px; top:35px; width:185px; height:250px; ">
  1232. <col/>
  1233. <col ref="roomcd"/>
  1234. <col ref="hngnm"/>
  1235. </datagrid>
  1236. <caption id="caption14" style="left:540px; top:285px; width:165px; height:45px; ">
  1237. <![CDATA[전일 미마감건이 존재합니다.
  1238. 마감하시기 바랍니다.]]>
  1239. </caption>
  1240. <button id="button5" class="btn2_letter2" style="left:590px; top:325px; width:42px; height:19px; ">
  1241. <caption>확인</caption>
  1242. <script type="javascript" ev:event="DOMActivate">
  1243. <![CDATA[
  1244. setParameter("wardcd", model.getValue("/root/main/cond/wardcd"));
  1245. setParameter("fromdd", getDateTime( model.getValue("/root/main/cond/orddd").toDate().getAddDate(-1,"D") ,"D") );
  1246. setParameter("param", "SMMNW00100");
  1247. modal("SPMNR05400", "","","","", "/root/init/wardprescondinfo" ,"/root/main/wardprescondinfo");
  1248. //재조회해서 재귀호출해야함
  1249. fInqurySelectedPrgm();
  1250. ]]>
  1251. </script>
  1252. </button>
  1253. </group>
  1254. <textarea id="tar_unablspc" ref="/root/main/precondlist/unablspclist" disabled="false" visibility="visible" overflow="scroll" scroll="autovscroll" editable="false" style="left:1066px; top:76px; width:120px; height:28px; vertical-align:middle; border-left-width:0; border-top-width:0; border-right-width:0; border-bottom-width:0; "/>
  1255. </group>
  1256. <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  1257. <caption id="cap_prcp" visibility="hidden" style="left:731px; top:4px; width:94px; height:20px; ">
  1258. <![CDATA[*일반/반환/퇴원]]>
  1259. </caption>
  1260. <caption id="cap_certcpap" visibility="hidden" style="left:250px; top:4px; width:260px; height:20px; color:#0000ff; ">
  1261. <![CDATA[*환자이름 파란색 표기 : 제증명/사본발급 확인]]>
  1262. </caption>
  1263. <caption id="cap_ser" visibility="hidden" style="left:828px; top:1px; width:275px; height:25px; ">중증/희귀난치/중증화상 N : 등록전, Y : 등록완료</caption>
  1264. <caption id="cap_color" class="color_6" visibility="hidden" style="left:730px; top:5px; width:15px; height:15px; background-color:#ffcccc; "/>
  1265. <caption id="cap_uncnfm" visibility="hidden" style="left:750px; top:4px; width:38px; height:20px; ">미확인</caption>
  1266. <shape id="sha_state" visibility="hidden" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:4px; top:3px; width:658px; height:20px; background-color:#fffbf2; border-color:#7cbbdd; "/>
  1267. <caption id="cap_state" visibility="hidden" style="left:7px; top:4px; width:653px; height:20px; ">ⓐ:입원 ⓞ:외출/외박 ⓓ:퇴원예고 ⓖ:예고심사완료 ⓒ:간호사퇴원정리완료 ⓘ:심사중 ⓕ:심사완료 (+):전실옴 (-):전실감</caption>
  1268. <button id="button2" class="btn2_letter4" style="left:1104px; top:4px; width:64px; height:19px; ">
  1269. <caption>컬럼설정</caption>
  1270. <script type="javascript" ev:event="DOMActivate">
  1271. <![CDATA[
  1272. var sWardCD = getScreenMenuParameter();//model.getValue("/root/main/cond/wardcd") //20080725_메뉴설정에 따른 그리드 동적생성으로 변겅(ByJA)
  1273. var prestimportid = model.getValue("/root/main/cond/prestimportid");
  1274. var compscd = "";
  1275. if(prestimportid == "nm") {
  1276. if (sWardCD == "Partrtn") { // 분만
  1277. compscd = "PA";
  1278. } else if(sWardCD == "NBaby"){ // 신생아
  1279. compscd = "NB";
  1280. } else if(sWardCD == "BMT"){ //BMT
  1281. compscd = "BT";
  1282. } else if(sWardCD == "spclinj"){ // 특수주사실
  1283. compscd = "SJ";
  1284. } else {
  1285. compscd = "NM";
  1286. }
  1287. model.makeValue("/root/main/colsetinfo/scrnid", "SMMNW00200");
  1288. model.makeValue("/root/main/colsetinfo/grdid", "grd_wardpatlist");
  1289. } else if (prestimportid == "td") {
  1290. compscd = "TD";
  1291. model.makeValue("/root/main/colsetinfo/scrnid", "SMMNW00400");
  1292. model.makeValue("/root/main/colsetinfo/grdid", "grd_todolist");
  1293. } else if (prestimportid =="om") {
  1294. compscd = "OM";
  1295. model.makeValue("/root/main/colsetinfo/scrnid", "SMMNW00300");
  1296. model.makeValue("/root/main/colsetinfo/grdid", "grd_omprcplist");
  1297. } else {
  1298. if (sWardCD == "Partrtn") { // 분만
  1299. compscd = "PA";
  1300. } else if(sWardCD == "NBaby"){ // 신생아
  1301. compscd = "NB";
  1302. } else if(sWardCD == "BMT"){ //BMT
  1303. compscd = "BT";
  1304. } else if(sWardCD == "spclinj"){ // 특수주사실
  1305. compscd = "SJ";
  1306. } else {
  1307. compscd = "NM";
  1308. }
  1309. model.makeValue("/root/main/colsetinfo/scrnid", "SMMNW00200");
  1310. model.makeValue("/root/main/colsetinfo/grdid", "grd_wardpatlist");
  1311. }
  1312. var grdid = model.getValue("/root/main/colsetinfo/grdid");
  1313. var caseid = model.getValue("/root/main/colsetinfo/caseid");
  1314. var scrnid = model.getValue("/root/main/colsetinfo/scrnid");
  1315. setParameter("SPMMB02400_param_scrnid" , scrnid);
  1316. setParameter("SPMMB02400_param_grdid" , grdid);
  1317. setParameter("SPMMB02400_param_caseid" , model.getValue("/root/main/cond/caseid"));
  1318. setParameter("SPMMB02400_param_compscd" , compscd);
  1319. modal("SPMNB02400");
  1320. var useyn = getParameter("SPMMB02400_rtn_useyn");
  1321. if(useyn == "Y"){
  1322. model.makeValue("/root/chngcol/chngcolflag", "Y");
  1323. fInqurySelectedPrgm();
  1324. }
  1325. ]]>
  1326. </script>
  1327. </button>
  1328. <caption id="caption16" style="left:1169px; top:5px; width:26px; height:15px; ">
  1329. <![CDATA[[표]]]>
  1330. </caption>
  1331. <button id="button6" class="btn5_letter4" visibility="visible" style="left:664px; top:3px; width:64px; height:19px; ">
  1332. <caption>팔찌Test</caption>
  1333. <script type="javascript" ev:event="DOMActivate">
  1334. <![CDATA[
  1335. //설정된 상단정보를 불러옴
  1336. model.removeNode("/root/main/paminfo");
  1337. model.makeNode("/root/main/paminfo");
  1338. var node = getGlobalVariable("paminfo");
  1339. setCSVToNode("/root/main/paminfo", node);
  1340. if (model.getValue("/root/main/paminfo/list/pid") != "") { //상단정보에 환자가 셋팅되어 있을 경우
  1341. var pid, indd, cretno, mskind, histstat;
  1342. model.removenode("/root/send");
  1343. model.removenode("/root/main_nm/barcdprntsetup");
  1344. model.makenode("/root/main_nm/barcdprntsetup");
  1345. model.makeValue("/root/send/scrnid", "SMMNR00600");
  1346. var comport = "1";
  1347. if(submit("TRLLC90101")){
  1348. comport = model.getValue("/root/main_nm/barcdprntsetup/prntsetupinfo/setupinfo[1]/comm02/comm");
  1349. }
  1350. // 바코드OCX 생성
  1351. //2. 바코드 라벨 환경설정
  1352. var barcdRef = "/root/main_nm/barcdprntsetup/prntsetupinfo/setupinfo";
  1353. lzzfMakeBrcdPrntObjHanDo("CommAX", barcdRef);
  1354. // if(document.all("CommAX") == null){
  1355. // lzzfMakeBrcdPrntObjHanDo("CommAX");
  1356. // }
  1357. pid = model.getValue("/root/main/paminfo/list/pid");
  1358. indd = model.getValue("/root/main/paminfo/list/indd");
  1359. cretno = model.getValue("/root/main/paminfo/list/cretno");
  1360. mskind = model.getValue("/root/main/paminfo/list/mskind");
  1361. histstat = model.getValue("/root/main/paminfo/list/histstat");
  1362. model.makeNode("/root/send/data17");
  1363. model.makeNode("/root/hidden/h_receipt");
  1364. model.makeNode("/root/hidden/h_receipt/receipt");
  1365. // model.removeNodeset("/root/hidden/h_receipt");
  1366. // model.removeNodeset("/root/send/data17");
  1367. //원무 메소드 호출
  1368. //fInPatBarCodePrn(pid, indd, cretno, mskind, histstat, comport);
  1369. /* 삭제된 파라미터 : pPort - COM Port 지정값
  1370. * 추가된 파라미터 : pSetyn - 프린터설정정보 셋팅여부
  1371. * pScrid - 프린터설정정보 조회용 화면 아이디
  1372. * pBarcdRef - 설정정보 xpath
  1373. */
  1374. //------(20100914) 경북대 s
  1375. model.makevalue("/root/main/barcdprntsetup/macaddr","별도경로설정");
  1376. //------(20100914) 경북대 e
  1377. pmifPrintBarCode(pid, indd, cretno, mskind, histstat, "N", "SMMNR00600", "N"); // 20090527 변경됨.
  1378. //------(20100914) 경북대 s
  1379. model.removeNode("/root/main/barcdprntsetup/macaddr");
  1380. //------(20100914) 경북대 e
  1381. } else {
  1382. messageBox("환자를 선택 후 출력하십시오", "I");
  1383. }
  1384. ]]>
  1385. </script>
  1386. </button>
  1387. </group>
  1388. <group id="group4" visibility="hidden" style="left:895px; top:60px; width:290px; height:65px; background-color:#87CEFA; ">
  1389. <caption id="caption17" class="tit_2" style="left:0px; top:5px; width:275px; height:15px; ">출력 방법을 선택하십시오.</caption>
  1390. <button id="button10" class="btn5_letter2" navindex="22" style="left:195px; top:25px; width:42px; height:19px; ">
  1391. <caption>확인</caption>
  1392. <script type="javascript" ev:event="DOMActivate">
  1393. <![CDATA[
  1394. var sPrintflag = model.getValue("/root/main/cond/printflag");
  1395. if(sPrintflag == "3"){
  1396. var sOrddd = model.getValue("/root/main/cond/orddd");
  1397. var sWardcd = model.getValue("/root/main/cond/wardcd");
  1398. if(sOrddd == "" || sOrddd == null){
  1399. messageBox("업무일자를 선택하세요", "E", "");
  1400. return;
  1401. }
  1402. if(sWardcd == "" || sWardcd == null){
  1403. messageBox("병동을 선택하세요", "E", "");
  1404. return;
  1405. }
  1406. model.removenode("/root/temp1");
  1407. model.removenode("/root/temp");
  1408. model.makeNode("/root/temp1/infection");
  1409. group4.visible = false;
  1410. model.setValue("/root/main/cond/printflag","");
  1411. model.makeValue("/root/temp1/infection/orddd", sOrddd);
  1412. model.makeValue("/root/temp1/infection/wardcd", sWardcd);
  1413. submit("TRMNW00106");
  1414. exeReportPreview("RPMNW00216", "XMLSTR", "/root/temp"); //미리보기출력
  1415. } else{
  1416. srchflag = "2";
  1417. fInqurySelectedPrgm();
  1418. group4.visible = false;
  1419. fPrint();
  1420. model.setValue("/root/main/cond/printflag","");
  1421. radio3.refresh();
  1422. srchflag = "1";
  1423. }
  1424. ]]>
  1425. </script>
  1426. </button>
  1427. <button id="button11" class="btn5_letter2" navindex="22" style="left:240px; top:25px; width:42px; height:19px; ">
  1428. <caption>취소</caption>
  1429. <script type="javascript" ev:event="DOMActivate">
  1430. <![CDATA[
  1431. group4.visible = false;
  1432. ]]>
  1433. </script>
  1434. </button>
  1435. <select1 id="radio3" ref="/root/main/cond/printflag" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:20px; top:26px; width:170px; height:34px; border-style:none; ">
  1436. <choices>
  1437. <item>
  1438. <label>병실,환자명</label>
  1439. <value>1</value>
  1440. </item>
  1441. <item>
  1442. <label>병실,병상</label>
  1443. <value>2</value>
  1444. </item>
  1445. <item>
  1446. <label>감염정보</label>
  1447. <value>3</value>
  1448. </item>
  1449. </choices>
  1450. </select1>
  1451. </group>
  1452. </xhtml:body>
  1453. </xhtml:html>