SMMRI02800_미비기록관리ER.xrw 69 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>미비기록관리(응급실)</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <unpreprecinfo>
  11. <unprepreclist>
  12. <status/>
  13. <indschflag/>
  14. <pid/>
  15. <hngnm/>
  16. <dschdd/>
  17. <indd/>
  18. <unprepstat/>
  19. <doctkindflag/>
  20. <unprepdrnm/>
  21. <unprepdeptnm/>
  22. <formnm/>
  23. <degnitemnm/>
  24. <formrecdd/>
  25. <medirecalertcnts/>
  26. <drcnfmdt/>
  27. <dralertcnts/>
  28. <fstrgstrnm/>
  29. <fstrgstdt/>
  30. <lastupdtrnm/>
  31. <lastupdtdt/>
  32. </unprepreclist>
  33. <unprepreccnt>
  34. <patcnt/>
  35. <unprepcnt/>
  36. </unprepreccnt>
  37. </unpreprecinfo>
  38. <cond>
  39. <unpreppatbase>
  40. <pid/>
  41. <hngnm/>
  42. <chosinfo/>
  43. <indd/>
  44. <cretno/>
  45. <orderby/>
  46. <scrnflag/>
  47. </unpreppatbase>
  48. <unprepdrbase>
  49. <dschflag>E</dschflag>
  50. <unprepstat>1 3</unprepstat>
  51. <unprepdrnm/>
  52. <unprepdrid/>
  53. <doctkindflag>-</doctkindflag>
  54. <srchflag>dsch</srchflag>
  55. <fromdd/>
  56. <todd/>
  57. <deptflag>unprep</deptflag>
  58. <orddeptcd>-</orddeptcd>
  59. <unprepstatlist/>
  60. <unprepsign/>
  61. <dayflag>N</dayflag>
  62. <orderby/>
  63. <scrnflag/>
  64. <detldept/>
  65. <detldeptcd/>
  66. </unprepdrbase>
  67. <srchflag/>
  68. <patcnt/>
  69. <reccnt/>
  70. <excelcond>
  71. <startdate/>
  72. <enddate/>
  73. <steps>3</steps>
  74. </excelcond>
  75. </cond>
  76. <patinfo>
  77. <pathistlist/>
  78. </patinfo>
  79. <unprepdrinfo>
  80. <unprepdrlist>
  81. <checkflag/>
  82. <orddeptnm/>
  83. <orddeptcd/>
  84. <jobposnm/>
  85. <orddrid/>
  86. <orddrnm/>
  87. </unprepdrlist>
  88. </unprepdrinfo>
  89. <delivefact>
  90. <medirecalertcnts/>
  91. <dralertcnts/>
  92. </delivefact>
  93. <unprepiteminfo>
  94. <unprepiteminfo/>
  95. </unprepiteminfo>
  96. <patreclist>
  97. <patreclist/>
  98. </patreclist>
  99. <unprepdeptcd>
  100. <detldeptcd/>
  101. <unprepdeptcd/>
  102. </unprepdeptcd>
  103. <medalertinfo>
  104. <medalertlist/>
  105. </medalertinfo>
  106. <dralertinfo>
  107. <dralertlist/>
  108. </dralertinfo>
  109. </main>
  110. <send/>
  111. <hidden/>
  112. <init>
  113. <orddept/>
  114. <popupmenu>
  115. <menu>
  116. <item>
  117. <name>배치미비</name>
  118. <func>fSetUnPrepRecInfo0</func>
  119. </item>
  120. <item>
  121. <name>미비확인</name>
  122. <func>fSetUnPrepRecInfo1</func>
  123. </item>
  124. <item>
  125. <name>의사확인</name>
  126. <func>fSetUnPrepRecInfo2</func>
  127. </item>
  128. <item>
  129. <name>재미비</name>
  130. <func>fSetUnPrepRecInfo3</func>
  131. </item>
  132. <item>
  133. <name>완료</name>
  134. <func>fSetUnPrepRecInfo4</func>
  135. </item>
  136. <item>
  137. <name>미비삭제</name>
  138. <func>fDelUnPrepRecInfo</func>
  139. </item>
  140. <item>
  141. <name/>
  142. <func/>
  143. </item>
  144. <item>
  145. <name>의사변경</name>
  146. <func>fChngUnPrepDrInfo</func>
  147. </item>
  148. <item>
  149. <name>직종변경(I.)</name>
  150. <func>fChngUnPrepInternPos</func>
  151. </item>
  152. <item>
  153. <name>직종변경(R.)</name>
  154. <func>fChngUnPrepResiPos</func>
  155. </item>
  156. <item>
  157. <name>직종변경(St.)</name>
  158. <func>fChngUnPrepStaffPos</func>
  159. </item>
  160. <item>
  161. <name/>
  162. <func/>
  163. </item>
  164. <item>
  165. <name>미비과변경</name>
  166. <func>fOpenUnPrepDeptCD</func>
  167. </item>
  168. <item>
  169. <name>미비분과변경</name>
  170. <func>fOpenUnPrepDeltDeptCD</func>
  171. </item>
  172. <item>
  173. <name>변경취소</name>
  174. <func>fCnclSetPrepRecInfo</func>
  175. </item>
  176. <item>
  177. <name>기록연결 해제</name>
  178. <func>fCnclFormRecSeq</func>
  179. </item>
  180. <!-- 2010.02.18 이남익(이은영GJ 요청 삭제)
  181. <item>
  182. <name/>
  183. <func/>
  184. </item>
  185. <item>
  186. <name>전달사항 이력관리</name>
  187. <func>fManageAlert</func>
  188. </item>
  189. <item>
  190. <name>의료정보팀</name>
  191. <func>fManageAlertCnts</func>
  192. </item>
  193. <item>
  194. <name>의사</name>
  195. <func>fManageDrAlertCnts</func>
  196. </item>
  197. <item>
  198. <name/>
  199. <func/>
  200. </item>
  201. -->
  202. </menu>
  203. </popupmenu>
  204. <unprepdeptcd/>
  205. <M0501>
  206. </M0501>
  207. <M0502>
  208. </M0502>
  209. <M0503>
  210. </M0503>
  211. <M0504>
  212. <M0504/>
  213. </M0504>
  214. <openday/>
  215. <hardcd/>
  216. <merge>1</merge>
  217. </init>
  218. <temp>
  219. <unpreprecinfo/>
  220. <userinfo/>
  221. </temp>
  222. <tmp>
  223. <pid/>
  224. <hngnm/>
  225. <srchcond/>
  226. <autoflag/>
  227. </tmp>
  228. </root>
  229. </instance>
  230. <submission id="TRMRI02605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/patinfo"/>
  231. <submission id="TRMRI02106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/unpreprecinfo"/>
  232. <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
  233. <submission id="TRMMB04105" mediatype="application/x-www-form-urlencoded" method="post"/>
  234. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  235. <submission id="TRMRI02604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/unprepdrinfo"/>
  236. <submission id="TRMRI02107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/unpreprecinfo"/>
  237. <submission id="TXMRI02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/unpreprecinfo"/>
  238. <submission id="TXMRI01702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/unpreprecinfo"/>
  239. <submission id="TRMRI02108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/excelfile"/>
  240. <submission id="TXMRI01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata"/>
  241. <submission id="TRMRI01703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/unprepiteminfo"/>
  242. <submission id="TRMRI01704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/recreqdata" resultref="/root/main/patreclist"/>
  243. <submission id="TRMRI01706" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/medalertinfo"/>
  244. <submission id="TRMRI01707" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/dralertinfo"/>
  245. <submission id="TRMRI02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/userinfo"/>
  246. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  247. <submission id="TRZBC00104" method="post"/>
  248. <script type="javascript" ev:event="xforms-ready">
  249. <![CDATA[
  250. mmbfGetHardCodeInfoNm("/root/send/reqhardcd", "/root/init/hardcd", 1240);
  251. //미비기록리스트의 merge기본 설정을 false로 처리
  252. grd_unprepreclist.autoMerge = false;
  253. for(var i = 0; i < grd_unprepreclist.cols; i++){
  254. grd_unprepreclist.mergeCol(i) = false;
  255. }
  256. zbcfGetKindCodeList(new Array("M0037"), new Array("M0546"), new Array("/root/init/openday"), false);
  257. //그리드의 짝수행의 색변화를 제거
  258. grd_unprepreclist.backColorAlternate = "#ffffff";
  259. //조회구분일자(퇴원, 작업) 설정
  260. model.setValue("/root/main/cond/unprepdrbase/fromdd", getCurrentDate());
  261. model.setValue("/root/main/cond/unprepdrbase/todd" , getCurrentDate());
  262. //미비과, 퇴원과설정
  263. fGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "A", getCurrentDate());
  264. addComboItem("cmb_orddept", "전체", "-", "above");
  265. addComboItem("cmb_orddept", "호스피스과", "3100000000", "below");
  266. //Count예외 미비항목 조회
  267. reqGetUnPrepBaseExptCnt();
  268. //미비기록리스트 grid 초기화
  269. model.removeNodeset("/root/main/unpreprecinfo/unprepreclist");
  270. model.refresh();
  271. //차트분서관리 화면 연동 처리
  272. if(checkOpener()){
  273. var recvparam = opener.javascript.getParameter("SMMRI01700_Param");
  274. if(recvparam != ""){
  275. recvparam = recvparam.split("▩");
  276. data = recvparam[1].split("▦");
  277. model.setValue("/root/main/cond/unpreppatbase/pid", data[0]);
  278. fReqGetUnPrepPatChosInfo(data[0], "I", "A");
  279. cmb_chosinfo.select(0);
  280. var pid = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/pid");
  281. var indd = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/orddd");
  282. var cretno = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/cretno");
  283. var hngnm = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/hngnm");
  284. model.setValue("/root/main/cond/unpreppatbase/pid" , pid);
  285. model.setValue("/root/main/cond/unpreppatbase/indd" , indd);
  286. model.setValue("/root/main/cond/unpreppatbase/cretno", cretno);
  287. model.setValue("/root/main/cond/unpreppatbase/hngnm" , hngnm);
  288. model.refresh();
  289. }
  290. }
  291. zbcfGetCodeList(new Array("M0501", "M0502", "M0503"), new Array("/root/init/M0501", "/root/init/M0502", "/root/init/M0503"));
  292. ]]>
  293. </script>
  294. <script type="javascript" ev:event="xforms-model-construct-done">
  295. <![CDATA[
  296. group1.attribute("height") = 0;
  297. group3.attribute("height") = 0;
  298. ]]>
  299. </script>
  300. </model>
  301. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  302. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  303. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  304. <script type="javascript" src="../../../emr/unprepmngtweb/js/SMMRI01700.js"/>
  305. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  306. <script type="javascript">
  307. <![CDATA[
  308. /**
  309. * 하드코드 조회
  310. *
  311. * @param
  312. * ref reference path
  313. * rsltref result reference path
  314. * hardcd - 하드코드
  315. */
  316. function mmbfGetHardCodeInfo(ref, rsltref, hardcd){
  317. var mmb_rsltref = "/root/hidden/mmb/hardcd";
  318. model.removeNode(mmb_rsltref);
  319. model.makeNode(mmb_rsltref);
  320. model.removeNode(ref);
  321. model.makeValue(ref + "/hardcd", hardcd);
  322. if(submit("TRMMB04103", "false", ref, mmb_rsltref)==true){
  323. model.copyNode(rsltref, mmb_rsltref); model.removeNode(mmb_rsltref);
  324. }
  325. model.refresh();
  326. }
  327. function mmbfGetHardCodeInfoNm(ref, rsltref, hardcd){
  328. var mmb_rsltref = "/root/hidden/mmb/hardcd";
  329. model.removeNode(mmb_rsltref);
  330. model.makeNode(mmb_rsltref);
  331. model.removeNode(ref);
  332. model.makeValue(ref + "/hardcd", hardcd);
  333. if(submit("TRMMB04105", "false", ref, mmb_rsltref)==true){
  334. model.copyNode(rsltref, mmb_rsltref);
  335. model.removeNode(mmb_rsltref);
  336. }
  337. model.refresh();
  338. }
  339. ]]>
  340. </script>
  341. </xhtml:head>
  342. <xhtml:body guideline="1,1193;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  343. <shape id="roundrect1" appearance="roundrect" style="left:400px; top:14px; width:793px; height:91px; "/>
  344. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">미비기록관리</caption>
  345. <caption id="caption10" class="tit_2" style="left:600px; top:736px; width:131px; height:13px; ">전달사항 From의사</caption>
  346. <textarea id="textarea1" ref="/root/main/delivefact/dralertcnts" style="left:600px; top:749px; width:594px; height:35px; ">
  347. <script type="javascript" ev:event="DOMFocusOut">
  348. <![CDATA[
  349. if(grd_unprepreclist.row > 0){
  350. if(sDRALERT == textarea1.value){
  351. return;
  352. }
  353. }
  354. ]]>
  355. </script>
  356. <script type="javascript" ev:event="DOMFocusIn">
  357. <![CDATA[
  358. sDRALERT = textarea1.value;
  359. ]]>
  360. </script>
  361. </textarea>
  362. <textarea id="textarea2" ref="/root/main/delivefact/medirecalertcnts" style="left:0px; top:749px; width:591px; height:35px; ">
  363. <script type="javascript" ev:event="DOMFocusOut">
  364. <![CDATA[
  365. if(grd_unprepreclist.row > 0){
  366. if(sMEDIALERT == textarea2.value){
  367. return;
  368. }else{
  369. var status = model.getValue(grd_unprepreclist.nodeset + "[" + grd_unprepreclist.row + "]/status");
  370. if(status == ""){
  371. model.setValue(grd_unprepreclist.nodeset + "[" + grd_unprepreclist.row + "]/status", "ua");
  372. }
  373. model.setValue(grd_unprepreclist.nodeset + "[" + grd_unprepreclist.row + "]/medirecalertcnts", textarea2.value);
  374. model.refresh();
  375. }
  376. }
  377. ]]>
  378. </script>
  379. <script type="javascript" ev:event="DOMFocusIn">
  380. <![CDATA[
  381. sMEDIALERT = textarea2.value;
  382. ]]>
  383. </script>
  384. </textarea>
  385. <caption id="caption9" class="tit_2" style="left:0px; top:736px; width:170px; height:13px; ">전달사항 From의료정보팀</caption>
  386. <button id="btn_unprepcert" class="btn2_letter4" style="left:932px; top:109px; width:64px; height:19px; ">
  387. <caption>미비추가</caption>
  388. <script type="javascript" ev:event="DOMActivate">
  389. <![CDATA[
  390. //등록번호, 진료일자(입원일자), 생성번호, 진료과, 진료의, 입퇴원구분
  391. var currow = grd_unprepreclist.row;
  392. if(currow > 0){
  393. var pid = model.getValue(grd_unprepreclist.nodeset + "[" + currow + "]/pid");
  394. var orddd = "";
  395. var cretno = model.getValue(grd_unprepreclist.nodeset + "[" + currow + "]/cretno");
  396. var indschflag = model.getValue("/root/main/condition/indschflag");
  397. if(indschflag != "O"){
  398. orddd = model.getValue(grd_unprepreclist.nodeset + "[" + currow + "]/indd");
  399. }else{
  400. orddd = model.getValue(grd_unprepreclist.nodeset + "[" + currow + "]/orddd");
  401. }
  402. //퇴원일자가 99991231이 아닌 경우는 퇴원처리, 그 이외는 입원
  403. var dschdd = model.getValue(grd_unprepreclist.nodeset + "[" + currow + "]/dschdd");
  404. if(dschdd != '99991231'){
  405. indschflag = "D";
  406. }else{
  407. indschflag = "I";
  408. }
  409. indschflag = model.getValue("/root/main/cond/unprepdrbase/dschflag"); //2010.01.07 이남익 추가
  410. }else{
  411. if(pid != model.getValue("/root/main/cond/unpreppatbase/pid")){
  412. //alert(cmb_chosinfo.value);
  413. if(cmb_chosinfo.value != ""){
  414. var pid = model.getValue("/root/main/patinfo/pathistlist[" + cmb_chosinfo.value + "]/pid");
  415. var orddd = model.getValue("/root/main/patinfo/pathistlist[" + cmb_chosinfo.value + "]/orddd");
  416. var cretno = model.getValue("/root/main/patinfo/pathistlist[" + cmb_chosinfo.value + "]/cretno");
  417. var dschdd = model.getValue("/root/main/patinfo/pathistlist[" + cmb_chosinfo.value + "]/dschdd");
  418. if(dschdd == "99991231"){
  419. indschflag = "I";
  420. }else{
  421. indschflag = "D";
  422. }
  423. indschflag = model.getValue("/root/main/cond/unprepdrbase/dschflag"); //2010.01.07 이남익 추가
  424. }
  425. }
  426. }
  427. var wndobj = getOpenWindow("SPMRI02600");
  428. if(wndobj == null){
  429. setParameter("SPMRI02600_pid" , pid);
  430. setParameter("SPMRI02600_orddd" , orddd);
  431. setParameter("SPMRI02600_cretno" , cretno);
  432. setParameter("SPMRI02600_dschflag" , indschflag);
  433. open("SPMRI02600");
  434. }else{
  435. wndobj.javascript.gRecLoad = "N";
  436. wndobj.javascript.fSetPatInfo(pid, orddd, cretno, indschflag);
  437. }
  438. /*
  439. if(getParameter("SPMRI02600_useyn")=="Y"){
  440. var sCSV = model.getValue("/root/temp/unpreprecinfo");
  441. model.setValue("/root/temp/unpreprecinfo", "");
  442. setCSVToNode("/root/temp/unpreprecinfo", sCSV, "unprepreclist");
  443. fSetUnPrepSaveInfo();
  444. }
  445. */
  446. //미비기록 추가 화면에서 처리된 내용이 있는 경우, 바로 재조회 처리함
  447. /*
  448. if(getParameter("SPMRI02600_useyn")=="Y"){
  449. var srchflag = model.getValue("/root/main/cond/srchflag");
  450. if(srchflag == "dr"){
  451. btn_requnprepdrbase.dispatch("DOMActivate");
  452. btn_requnpreppatbase.dispatch("DOMActivate");
  453. }
  454. }*/
  455. ]]>
  456. </script>
  457. </button>
  458. <button id="btn_ex" class="btn2_letter2" style="left:1105px; top:109px; width:42px; height:19px; ">
  459. <caption>엑셀</caption>
  460. <script type="javascript" ev:event="DOMActivate">
  461. <![CDATA[
  462. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  463. if (fileName != ""){
  464. grd_unprepreclist.saveExcel(fileName, "colhiddenextend:false;col_0:label;col_1:label;col_2:label;col_3:label;col_4:label;col_5:label;col_6:label;col_7:label;col_8:label;col_9:label;col_10:label;col_11:label;col_12:label;col_13:label;col_14:label;col_15:label;col_16:label;col_17:label;col_18:label;col_19:label;col_20:label;col_21:label;col_22:label;col_23:label;col_24:label;col_25:label;col_26:label;col_27:label;col_28:label;col_29:label;col_30:label;col_31:label;col_32:label;col_33:label;col_34:label;");
  465. }
  466. ]]>
  467. </script>
  468. </button>
  469. <button id="btn_del" class="btn2_letter4" style="left:997px; top:109px; width:64px; height:19px; ">
  470. <caption>미비삭제</caption>
  471. <script type="javascript" ev:event="DOMActivate">
  472. <![CDATA[
  473. fDelUnPrepRecInfo();
  474. ]]>
  475. </script>
  476. </button>
  477. <button id="btn_save" class="btn5_letter2" disabled="false" style="left:1148px; top:109px; width:42px; height:19px; ">
  478. <caption>저장</caption>
  479. <script type="javascript" ev:event="DOMActivate">
  480. <![CDATA[
  481. fSaveUnPrepInfo();
  482. /*
  483. var savenodelist = model.instances(0).selectNodes("/root/main/unpreprecinfo/unprepreclist[status!='']");
  484. var srchflag = model.getValue("/root/main/cond/srchflag");
  485. if(srchflag == "pat"){
  486. var srchnodelist = model.instances(0).selectNodes("/root/main/cond/unpreppatbase");
  487. }else{
  488. var srchnodelist = model.instances(0).selectNodes("/root/main/cond/unprepdrbase");
  489. }
  490. //var srchnodelist = model.instances(0).selectNodes("/root/send/reqdata");
  491. if(savenodelist.length == 0){
  492. messageBox("저장할 정보가", "I004");
  493. return;
  494. }else{
  495. grd_patreclist.attribute("visibility") = "hidden";
  496. var savedata = getNodeListCSV(savenodelist);
  497. var srchdata = getNodeListCSV(srchnodelist);
  498. model.removeNodeset("/root/send/savedata");
  499. model.makeNode("/root/send/savedata");
  500. model.makeValue("/root/send/savedata", savedata);
  501. model.makeValue("/root/send/srchdata", srchdata);
  502. if(submit("TXMRI02101")){
  503. grd_unprepreclist.allstyle("data", "color") = "#000000";
  504. grd_unprepreclist.allstyle("data", "font-sytle") = "";
  505. var patcnt = 0;
  506. var reccnt = 0;
  507. var icnt = 0;
  508. var startrow = 1;
  509. var color = "#ffffcc";
  510. var checkcol = grd_unprepreclist.colRef("check");
  511. for(var i = 1; i < grd_unprepreclist.rows; i++){
  512. var unprepitemcd = model.getValue(grd_unprepreclist.nodeset + "[" + i + "]/unprepitemcd");
  513. var result = model.getValue("/root/main/unprepiteminfo/unprepiteminfo[unprepitemcd='" + unprepitemcd + "']/unprepitemcd");
  514. if(result == ""){
  515. reccnt++;
  516. }
  517. if(i == 1){
  518. patcnt++;
  519. var orgpid = model.getValue(grd_unprepreclist.nodeset + "[" + i + "]/pid");
  520. var orgdschdd = model.getValue(grd_unprepreclist.nodeset + "[" + i + "]/dschdd");
  521. var orgindd = model.getValue(grd_unprepreclist.nodeset + "[" + i + "]/indd");
  522. startrow = 1;
  523. grd_unprepreclist.rowStyle(i, "data", "background-color")= color;
  524. continue;
  525. }
  526. var pid = model.getValue(grd_unprepreclist.nodeset + "[" + i + "]/pid");
  527. var indd = model.getValue(grd_unprepreclist.nodeset + "[" + i + "]/indd");
  528. var dschdd = model.getValue(grd_unprepreclist.nodeset + "[" + i + "]/dschdd");
  529. if(orgpid == pid && orgdschdd == dschdd && orgindd == indd){
  530. grd_unprepreclist.mergeByFree(startrow, grd_unprepreclist.colRef("pid") , i, grd_unprepreclist.colRef("pid"));
  531. grd_unprepreclist.mergeByFree(startrow, grd_unprepreclist.colRef("hngnm") , i, grd_unprepreclist.colRef("hngnm"));
  532. grd_unprepreclist.mergeByFree(startrow, grd_unprepreclist.colRef("dschdd") , i, grd_unprepreclist.colRef("dschdd"));
  533. grd_unprepreclist.mergeByFree(startrow, grd_unprepreclist.colRef("dschdeptnm"), i, grd_unprepreclist.colRef("dschdeptnm"));
  534. grd_unprepreclist.mergeByFree(startrow, grd_unprepreclist.colRef("medispclnm"), i, grd_unprepreclist.colRef("medispclnm"));
  535. }else{
  536. patcnt++;
  537. var orgpid = model.getValue(grd_unprepreclist.nodeset + "[" + i + "]/pid");
  538. var orgdschdd = model.getValue(grd_unprepreclist.nodeset + "[" + i + "]/dschdd");
  539. var orgindd = model.getValue(grd_unprepreclist.nodeset + "[" + i + "]/indd");
  540. startrow = i;
  541. if(color == "#ffffcc"){
  542. color = "#ffffff";
  543. }else{
  544. color = "#ffffcc";
  545. }
  546. }
  547. grd_unprepreclist.rowStyle(i, "data", "background-color")= color;
  548. var formrecseq = model.getValue(grd_unprepreclist.nodeset + "[" + i + "]/formrecseq");
  549. if(formrecseq <= 0){
  550. grd_unprepreclist.cellStyle("background-color", i, checkcol, i, checkcol) = "#ff0000";
  551. }
  552. }
  553. model.setValue("/root/main/cond/patcnt", patcnt);
  554. model.setValue("/root/main/cond/reccnt", reccnt);
  555. model.refresh();
  556. }
  557. }
  558. */
  559. ]]>
  560. </script>
  561. </button>
  562. <line id="line1" class="line_1" style="x1:0px; y1:130px; x2:1194px; y2:130px; "/>
  563. <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:15px; width:395px; height:90px; color:#3366ff; "/>
  564. <select id="chk_unprepflagR" ref="/root/main/cond/unprepdrbase/unprepstat" overflow="visible" appearance="full" style="left:736px; top:61px; width:56px; height:20px; border-style:none; ">
  565. <choices>
  566. <item>
  567. <label>재미비</label>
  568. <value>3</value>
  569. </item>
  570. </choices>
  571. <script type="javascript" ev:event="xforms-select">
  572. <![CDATA[
  573. chk_unprepflagDel.deselect(0);
  574. chk_unprepflagA.deselect(0);
  575. ]]>
  576. </script>
  577. </select>
  578. <select id="chk_unprepflagA" ref="/root/main/cond/unprepdrbase/unprepstat" overflow="visible" appearance="full" style="left:493px; top:61px; width:45px; height:20px; border-style:none; ">
  579. <choices>
  580. <item>
  581. <label>전체</label>
  582. <value>-</value>
  583. </item>
  584. </choices>
  585. <script type="javascript" ev:event="xforms-select">
  586. <![CDATA[
  587. chk_unprepflagB.disabled = true;
  588. chk_unprepflagB.deselect(0);
  589. chk_unprepflagC.disabled = true;
  590. chk_unprepflagC.deselect(0);
  591. chk_unprepflagD.disabled = true;
  592. chk_unprepflagD.deselect(0);
  593. chk_unprepflagR.disabled = true;
  594. chk_unprepflagR.deselect(0);
  595. chk_unprepflagS.disabled = true;
  596. chk_unprepflagS.deselect(0);
  597. chk_unprepflagDel.disabled = true;
  598. chk_unprepflagDel.deselect(0);
  599. ]]>
  600. </script>
  601. <script type="javascript" ev:event="xforms-deselect">
  602. <![CDATA[
  603. chk_unprepflagB.disabled = false;
  604. chk_unprepflagC.disabled = false;
  605. chk_unprepflagD.disabled = false;
  606. chk_unprepflagR.disabled = false;
  607. chk_unprepflagS.disabled = false;
  608. chk_unprepflagDel.disabled = false;
  609. ]]>
  610. </script>
  611. </select>
  612. <button id="btn_patreq" class="icon_search" visibility="visible" style="left:158px; top:29px; width:16px; height:16px; ">
  613. <caption/>
  614. <script type="javascript" ev:event="DOMActivate">
  615. <![CDATA[
  616. model.setValue("/root/tmp/pid" , model.getValue("/root/main/cond/unpreppatbase/pid"));
  617. model.setValue("/root/tmp/hngnm" , model.getValue("/root/main/cond/unpreppatbase/hngnm"));
  618. if(model.getValue("/root/main/cond/unpreppatbase/pid") == ""){
  619. model.setValue("/root/tmp/srchcond", 1);
  620. }else{
  621. model.setValue("/root/tmp/srchcond", 2);
  622. }
  623. model.setValue("/root/tmp/autoflag", "Y");
  624. model.refresh();
  625. modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/tmp", "/root/send");
  626. ]]>
  627. </script>
  628. </button>
  629. <select id="chk_unprepflagS" ref="/root/main/cond/unprepdrbase/unprepstat" overflow="visible" appearance="full" style="left:793px; top:61px; width:46px; height:20px; border-style:none; ">
  630. <choices>
  631. <item>
  632. <label>완료</label>
  633. <value>4</value>
  634. </item>
  635. </choices>
  636. <script type="javascript" ev:event="xforms-select">
  637. <![CDATA[
  638. chk_unprepflagDel.deselect(0);
  639. chk_unprepflagA.deselect(0);
  640. ]]>
  641. </script>
  642. </select>
  643. <select id="chk_unprepflagB" ref="/root/main/cond/unprepdrbase/unprepstat" overflow="visible" appearance="full" style="left:539px; top:61px; width:65px; height:20px; border-style:none; ">
  644. <choices>
  645. <item>
  646. <label>배치미비</label>
  647. <value>0</value>
  648. </item>
  649. </choices>
  650. <script type="javascript" ev:event="xforms-select">
  651. <![CDATA[
  652. chk_unprepflagDel.deselect(0);
  653. chk_unprepflagA.deselect(0);
  654. ]]>
  655. </script>
  656. </select>
  657. <select id="chk_unprepflagC" ref="/root/main/cond/unprepdrbase/unprepstat" overflow="visible" appearance="full" style="left:604px; top:61px; width:66px; height:20px; border-style:none; ">
  658. <choices>
  659. <item>
  660. <label>미비확인</label>
  661. <value>1</value>
  662. </item>
  663. </choices>
  664. <script type="javascript" ev:event="xforms-select">
  665. <![CDATA[
  666. chk_unprepflagDel.deselect(0);
  667. chk_unprepflagA.deselect(0);
  668. ]]>
  669. </script>
  670. </select>
  671. <select1 id="cmb_inoutddflag" ref="/root/main/cond/unprepdrbase/srchflag" disabled="true" appearance="minimal" style="left:571px; top:83px; width:78px; height:19px; ">
  672. <choices>
  673. <item>
  674. <label>퇴원일자</label>
  675. <value>dsch</value>
  676. </item>
  677. <item>
  678. <label>입원일자</label>
  679. <value>indd</value>
  680. </item>
  681. <item>
  682. <label>진료일자</label>
  683. <value>orddd</value>
  684. </item>
  685. </choices>
  686. </select1>
  687. <select id="chk_unprepflagD" ref="/root/main/cond/unprepdrbase/unprepstat" overflow="visible" appearance="full" style="left:670px; top:61px; width:65px; height:20px; color:transparent; border-style:none; ">
  688. <choices>
  689. <item>
  690. <label>의사확인</label>
  691. <value>2</value>
  692. </item>
  693. </choices>
  694. <script type="javascript" ev:event="xforms-select">
  695. <![CDATA[
  696. chk_unprepflagDel.deselect(0);
  697. chk_unprepflagA.deselect(0);
  698. ]]>
  699. </script>
  700. </select>
  701. <input id="ipt_unprepdrnm" ref="/root/main/cond/unprepdrbase/unprepdrnm" style="left:494px; top:19px; width:77px; height:19px; ">
  702. <script type="javascript" ev:event="onkeydown">
  703. <![CDATA[
  704. //enter입력시
  705. if(event.keyCode == 13){
  706. model.setValue("/root/main/cond/unprepdrbase/unprepdrnm", ipt_unprepdrnm.currentText);
  707. var unprepdrnm = ipt_unprepdrnm.currentText;
  708. if(isNumber(unprepdrnm.charAt(0))){
  709. fReqGetUnPrepDrSmplList("id", unprepdrnm);
  710. }else{
  711. fReqGetUnPrepDrSmplList("nm", unprepdrnm);
  712. }
  713. var nodelist = model.instances(0).selectNodes("/root/temp/userinfo/usercombo");
  714. if(nodelist.length == 0){
  715. messageBox("의사 정보가", "I004");
  716. return;
  717. }else if(nodelist.length == 1){
  718. model.setValue("/root/main/cond/unprepdrbase/unprepdrid", model.getValue("/root/temp/userinfo/usercombo/userid"));
  719. model.setValue("/root/main/cond/unprepdrbase/unprepdrnm", model.getValue("/root/temp/userinfo/usercombo/usernm"));
  720. }else if(nodelist.length > 1){
  721. setParameter("SPMRI02900_stnddd" , getCurrentDate());
  722. setParameter("SPMRI02900_orddrnm", ipt_unprepdrnm.currentText);
  723. modal("SPMRI02900");
  724. if(getParameter("SPMRI02900_useyn")=="Y"){
  725. var doctinfo = getParameter("SPMRI02900_rtnparam");
  726. doctinfo = doctinfo.split("^");
  727. model.setValue("root/main/cond/unprepdrbase/unprepdrid", doctinfo[3]);
  728. model.setValue("root/main/cond/unprepdrbase/unprepdrnm", doctinfo[4]);
  729. }
  730. }else{
  731. model.setValue("root/main/cond/unprepdrbase/unprepdrid", model.getValue("/root/main/unprepdrinfo/unprepdrlist/orddrid"));
  732. model.setValue("root/main/cond/unprepdrbase/unprepdrnm", model.getValue("/root/main/unprepdrinfo/unprepdrlist/orddrnm"));
  733. }
  734. model.refresh();
  735. }
  736. ]]>
  737. </script>
  738. </input>
  739. <input id="ipt_pid" ref="/root/main/cond/unpreppatbase/pid" class="input_search" style="left:89px; top:28px; width:65px; height:19px; ">
  740. <script type="javascript" ev:event="onkeypress">
  741. <![CDATA[
  742. if(event.keycode == 13){
  743. // sOrdType 추가 2010.01.07 이남익
  744. var sOrdType = model.getValue("/root/main/cond/unprepdrbase/dschflag");
  745. if(sOrdType ==""){
  746. sOrdType ="A";
  747. }
  748. fReqGetUnPrepPatChosInfo(ipt_pid.currentText, "I", sOrdType);
  749. cmb_chosinfo.select(0);
  750. var pid = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/pid");
  751. var indd = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/orddd");
  752. var cretno = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/cretno");
  753. var hngnm = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/hngnm");
  754. var dschdd = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/dschdd");
  755. if(dschdd != '재원중'){
  756. indschflag = "D";
  757. }else{
  758. indschflag = "I";
  759. }
  760. model.setValue("/root/main/cond/unpreppatbase/pid" , pid);
  761. model.setValue("/root/main/cond/unpreppatbase/indd" , indd);
  762. model.setValue("/root/main/cond/unpreppatbase/cretno", cretno);
  763. model.setValue("/root/main/cond/unpreppatbase/hngnm" , hngnm);
  764. model.setValue("/root/main/delivefact/medirecalertcnts", "");
  765. model.setValue("/root/main/delivefact/dralertcnts", "");
  766. model.refresh();
  767. btn_requnpreppatbase.dispatch("DOMActivate");
  768. var wndobj = getOpenWindow("SPMRI02700");
  769. if(wndobj != null){
  770. setParameter("SPMRI02700_pid", pid);
  771. wndobj.javascript.fReqGetUnPrepOpList();
  772. wndobj.model.setFocus("grd_unprepoplist");
  773. wndobj.model.refresh();
  774. }
  775. var wndobj2 = getOpenWindow("SPMRI02600");
  776. if(wndobj2 != null){
  777. wndobj2.javascript.gRecLoad = "N";
  778. wndobj2.javascript.fSetPatInfo(pid, indd, cretno, indschflag);
  779. }
  780. //미비기록 연동창이 떠 있는 경우, 재조회 처리함
  781. //2009. 02. 18 오지훈
  782. if(grd_patreclist.visible == true){
  783. fReqGetPatRecList(pid, indd, cretno);
  784. sBFPID = pid;
  785. sBFORDDD = indd;
  786. sBFCRETNO = cretno;
  787. }
  788. }
  789. ]]>
  790. </script>
  791. </input>
  792. <caption id="caption1" style="left:742px; top:83px; width:15px; height:15px; ">~</caption>
  793. <caption id="caption2" class="search_name" style="left:407px; top:39px; width:86px; height:17px; ">재원구분 :</caption>
  794. <select1 id="rdo_inoutflag" ref="/root/main/cond/unprepdrbase/dschflag" appearance="full" cellspacing="3" cols="4" rows="1" overflow="visible" style="left:494px; top:39px; width:199px; height:20px; border-style:none; ">
  795. <choices>
  796. <item>
  797. <label>응급실</label>
  798. <value>E</value>
  799. </item>
  800. </choices>
  801. <script type="javascript" ev:event="xforms-value-changed">
  802. <![CDATA[
  803. //재원구분 퇴원
  804. if(rdo_inoutflag.value == "D"){
  805. model.setValue("/root/main/cond/unprepdrbase/srchflag", "dsch");
  806. }else if(rdo_inoutflag.value == "I"){
  807. model.setValue("/root/main/cond/unprepdrbase/srchflag", "indd");
  808. }else if(rdo_inoutflag.value == "O"){
  809. model.setValue("/root/main/cond/unprepdrbase/srchflag", "orddd");
  810. }else if(rdo_inoutflag.value == "E"){
  811. model.setValue("/root/main/cond/unprepdrbase/srchflag", "orddd");
  812. }
  813. model.refresh();
  814. ]]>
  815. </script>
  816. </select1>
  817. <caption id="caption3" class="search_name" style="left:4px; top:52px; width:86px; height:17px; ">내원정보</caption>
  818. <select1 id="combo2" ref="/root/main/cond/unprepdrbase/doctkindflag" appearance="minimal" style="left:668px; top:19px; width:70px; height:19px; ">
  819. <choices>
  820. <item>
  821. <label>전체</label>
  822. <value>-</value>
  823. </item>
  824. <item>
  825. <label>스태프</label>
  826. <value>St</value>
  827. </item>
  828. <item>
  829. <label>레지던트</label>
  830. <value>R</value>
  831. </item>
  832. <item>
  833. <label>인턴</label>
  834. <value>I</value>
  835. </item>
  836. </choices>
  837. </select1>
  838. <caption id="caption4" class="search_name" style="left:407px; top:61px; width:86px; height:17px; ">미비구분 :</caption>
  839. <caption id="caption5" class="search_name" style="left:4px; top:28px; width:86px; height:17px; ">등록번호 :</caption>
  840. <input id="ipt_todd" ref="/root/main/cond/unprepdrbase/todd" disabled="true" inputtype="date" style="left:755px; top:83px; width:90px; height:19px; "/>
  841. <caption id="cap_reqflag" class="search_name" style="left:406px; top:83px; width:86px; height:17px; ">조회구분 :</caption>
  842. <caption id="caption6" class="search_name" style="left:581px; top:19px; width:99px; height:17px; ">의사구분 :</caption>
  843. <caption id="caption8" class="search_name" style="left:407px; top:19px; width:89px; height:17px; ">미비의사 :</caption>
  844. <select1 id="cmb_orddept" ref="/root/main/cond/unprepdrbase/orddeptcd" class="combo_search" appearance="minimal" editmode="inputsearch" style="left:861px; top:18px; width:107px; height:19px; ">
  845. <choices>
  846. <itemset nodeset="/root/init/orddept/dept">
  847. <label ref="depthngnm"/>
  848. <value ref="deptcd"/>
  849. </itemset>
  850. </choices>
  851. <script type="javascript" ev:event="xforms-value-changed">
  852. <![CDATA[
  853. // 외과, 소아청소년과, 산부인과 세부 분과 활성화함.
  854. var orddeptcd = model.getValue("/root/main/cond/unprepdrbase/orddeptcd");
  855. if(orddeptcd == "2040000000"
  856. || orddeptcd == "2110000000"
  857. || orddeptcd == "2100000000")
  858. {
  859. radio_detldept.disabled = false;
  860. radio_detldept.value = "Y";
  861. cmb_detldept.disabled = false;
  862. //미비과에 따라 미비분과 combo정보를 변경
  863. if(orddeptcd == "2040000000"){ //외과
  864. cmb_detldept.choices.itemset.attribute("nodeset") = "/root/init/M0501/M0501";
  865. }else if(orddeptcd == "2100000000"){ //산부인과
  866. cmb_detldept.choices.itemset.attribute("nodeset") = "/root/init/M0502/M0502";
  867. }else if(orddeptcd == "2110000000"){ //소아과
  868. cmb_detldept.choices.itemset.attribute("nodeset") = "/root/init/M0503/M0503";
  869. }
  870. addComboItem("cmb_detldept", "전체", "ALL", "above");
  871. cmb_detldept.select(0);
  872. cmb_detldept.refresh();
  873. }
  874. else
  875. {
  876. radio_detldept.disabled = true;
  877. radio_detldept.value = "N";
  878. cmb_detldept.choices.itemset.attribute("nodeset") = "/root/init/M0504/M0504";
  879. model.setValue("/root/main/cond/unprepdrbase/detldeptcd", "");
  880. cmb_detldept.disabled = true;
  881. cmb_detldept.refresh();
  882. }
  883. ]]>
  884. </script>
  885. </select1>
  886. <select1 id="rdo_deptflag" ref="/root/main/cond/unprepdrbase/deptflag" appearance="full" cols="4" rows="1" overflow="visible" style="left:748px; top:19px; width:113px; height:21px; border-style:none; ">
  887. <choices>
  888. <item>
  889. <label>미비과</label>
  890. <value>unprep</value>
  891. </item>
  892. <item>
  893. <label>퇴원과</label>
  894. <value>dsch</value>
  895. </item>
  896. </choices>
  897. </select1>
  898. <line id="line5" style="x1:1037px; y1:20px; x2:1037px; y2:96px; border-color:#ffe4bb; border-left-style:solid; "/>
  899. <input id="ipt_fromdd" ref="/root/main/cond/unprepdrbase/fromdd" disabled="true" inputtype="date" style="left:651px; top:83px; width:90px; height:19px; "/>
  900. <caption id="caption20" class="tit_2" style="left:3px; top:114px; width:108px; height:13px; ">
  901. <![CDATA[미비기록리스트]]>
  902. <script type="javascript" ev:event="ondblclick">
  903. <![CDATA[
  904. if(chk_merge.visible == false)
  905. {
  906. chk_merge.visible = true;
  907. return;
  908. }
  909. if(chk_merge.visible == true)
  910. {
  911. chk_merge.visible = false;
  912. return;
  913. }
  914. ]]>
  915. </script>
  916. </caption>
  917. <input id="input1" ref="/root/main/cond/unpreppatbase/hngnm" class="input_search" style="left:177px; top:28px; width:70px; height:19px; ">
  918. <script type="javascript" ev:event="onkeypress">
  919. <![CDATA[
  920. ]]>
  921. </script>
  922. </input>
  923. <select1 id="cmb_chosinfo" ref="/root/main/cond/unpreppatbase/chosinfo" appearance="minimal" style="left:12px; top:74px; width:370px; height:19px; ">
  924. <choices>
  925. <itemset nodeset="/root/main/patinfo/pathistlist">
  926. <label ref="chosinfo"/>
  927. <value ref="rowcnt"/>
  928. </itemset>
  929. </choices>
  930. <script type="javascript" ev:event="xforms-value-changed">
  931. <![CDATA[
  932. var pid = model.getValue("/root/main/patinfo/pathistlist[rowcnt ='" + cmb_chosinfo.value + "']/pid");
  933. var indd= model.getValue("/root/main/patinfo/pathistlist[rowcnt ='" + cmb_chosinfo.value + "']/orddd");
  934. var cretno= model.getValue("/root/main/patinfo/pathistlist[rowcnt ='" + cmb_chosinfo.value + "']/cretno");
  935. var dschdd= model.getValue("/root/main/patinfo/pathistlist[rowcnt ='" + cmb_chosinfo.value + "']/dschdd");
  936. model.setValue("/root/main/cond/unpreppatbase/pid" , pid);
  937. model.setValue("/root/main/cond/unpreppatbase/indd" , indd);
  938. model.setValue("/root/main/cond/unpreppatbase/cretno" , cretno);
  939. model.refresh();
  940. btn_requnpreppatbase.dispatch("DOMActivate");
  941. if(dschdd != '재원중'){
  942. indschflag = "D";
  943. }else{
  944. indschflag = "I";
  945. }
  946. var wndobj = getOpenWindow("SPMRI02700");
  947. if(wndobj != null){
  948. setParameter("SPMRI02700_pid", pid);
  949. wndobj.javascript.fReqGetUnPrepOpList();
  950. wndobj.model.setFocus("grd_unprepoplist");
  951. wndobj.model.refresh();
  952. }
  953. var wndobj2 = getOpenWindow("SPMRI02600");
  954. if(wndobj2 != null){
  955. wndobj2.javascript.gRecLoad = "N";
  956. wndobj2.javascript.fSetPatInfo(pid, indd, cretno, indschflag);
  957. }
  958. //미비기록 연동창이 떠 있는 경우, 재조회 처리함
  959. //2009. 02. 18 오지훈
  960. if(grd_patreclist.visible == true){
  961. fReqGetPatRecList(pid, indd, cretno);
  962. sBFPID = pid;
  963. sBFORDDD = indd;
  964. sBFCRETNO = cretno;
  965. }
  966. ]]>
  967. </script>
  968. </select1>
  969. <button id="btn_requnpreppatbase" class="btn1_letter2" style="left:327px; top:34px; width:56px; height:22px; ">
  970. <caption>조회</caption>
  971. <script type="javascript" ev:event="DOMActivate">
  972. <![CDATA[
  973. fReqGetUnPrepRecList();
  974. model.setValue("/root/main/delivefact/medirecalertcnts", "");
  975. model.setValue("/root/main/delivefact/dralertcnts", "");
  976. ]]>
  977. </script>
  978. </button>
  979. <line id="line2" style="x1:318px; y1:25px; x2:318px; y2:65px; border-color:#ffe4bb; border-left-style:solid; "/>
  980. <datagrid id="grd_unprepreclist" nodeset="/root/main/unpreprecinfo/unprepreclist" caption="status^^delyn^^등록번호^cretno^환자명^formrecseq^dschdeptcd^퇴원과^미비번호^퇴원일^입원일^전문의^원미비상태^미비상태^직종^orgdoctkindflag^미비의사^orgunprepdrnm^미비과^미비분과^orgdetldeptnm^detldeptcd^orgdetldeptcd^orgunprepdeptnm^orddeptcd^orgorddeptcd^unprepdrid^orgunprepdrid^formcd^서식명^oprsrvno^항목명^진료일자^unprepitemcd^전달사항 From 의료정보팀^전달사항 From의사^의사확인일시^srcformcd^최초생성자^최초생성일시^최종수정자^최종수정일시^최종삭제자^최종삭제자ID^최종삭제일시" colsep="^" colwidth="0, 30, 0, 0, 80, 0, 65, 0, 0, 45, 100, 75, 75, 55, 0, 64, 35, 0, 66, 0, 48, 68, 11, 11, 10, 0, 0, 0, 0, 0, 0, 130, 0, 60, 75, 0, 152, 125, 100, 0, 75, 120, 75, 120, 75, 75, 120" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:135px; width:1194px; height:595px; ">
  981. <col disabled="true" ref="status" type="combo">
  982. <choices>
  983. <item>
  984. <label>신규</label>
  985. <value>i</value>
  986. </item>
  987. <item>
  988. <label>수정</label>
  989. <value>u</value>
  990. </item>
  991. <item>
  992. <label>삭제</label>
  993. <value>d</value>
  994. </item>
  995. <item>
  996. <label>수정</label>
  997. <value>ua</value>
  998. </item>
  999. <item>
  1000. <label>수정</label>
  1001. <value>ud</value>
  1002. </item>
  1003. <item>
  1004. <label>수정</label>
  1005. <value>uo</value>
  1006. </item>
  1007. <item>
  1008. <label>수정</label>
  1009. <value>up</value>
  1010. </item>
  1011. </choices>
  1012. </col>
  1013. <col ref="check" type="output"/>
  1014. <col ref="delyn" visibility="hidden"/>
  1015. <col ref="indschflag" type="output" visibility="hidden"/>
  1016. <col ref="pid" style="vertical-align:top; "/>
  1017. <col ref="cretno" visibility="hidden"/>
  1018. <col ref="hngnm" style="vertical-align:top; "/>
  1019. <col ref="formrecseq" visibility="hidden"/>
  1020. <col ref="dschdeptcd" visibility="hidden"/>
  1021. <col ref="dschdeptnm" style="vertical-align:top; "/>
  1022. <col ref="unprepno" visibility="hidden"/>
  1023. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; vertical-align:top; "/>
  1024. <col ref="indd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; vertical-align:top; "/>
  1025. <col ref="medispclnm" style="vertical-align:top; "/>
  1026. <col ref="orgunprepstat" visibility="hidden"/>
  1027. <col disabled="true" ref="unprepstat" type="combo">
  1028. <choices>
  1029. <item>
  1030. <label>배치미비</label>
  1031. <value>0</value>
  1032. </item>
  1033. <item>
  1034. <label>미비확인</label>
  1035. <value>1</value>
  1036. </item>
  1037. <item>
  1038. <label>의사확인</label>
  1039. <value>2</value>
  1040. </item>
  1041. <item>
  1042. <label>재미비</label>
  1043. <value>3</value>
  1044. </item>
  1045. <item>
  1046. <label>완료</label>
  1047. <value>4</value>
  1048. </item>
  1049. <item>
  1050. <label>기록삭제</label>
  1051. <value>8</value>
  1052. </item>
  1053. </choices>
  1054. </col>
  1055. <col ref="doctkindflag"/>
  1056. <col ref="orgdoctkindflag" visibility="hidden"/>
  1057. <col ref="unprepdrnm" style="text-align:center; "/>
  1058. <col ref="orgunprepdrnm" visibility="hidden"/>
  1059. <col ref="unprepdeptnm" style="text-align:left; "/>
  1060. <col ref="detldeptnm" style="text-align:left; "/>
  1061. <col ref="orgdetldeptnm" visibility="hidden"/>
  1062. <col ref="detldeptcd" visibility="hidden"/>
  1063. <col ref="orgdetldeptcd" visibility="hidden"/>
  1064. <col ref="orgunprepdeptnm" visibility="hidden"/>
  1065. <col ref="orddeptcd" visibility="hidden"/>
  1066. <col ref="orgorddeptcd" visibility="hidden"/>
  1067. <col ref="unprepdrid" visibility="hidden"/>
  1068. <col ref="orgunprepdrid" visibility="hidden"/>
  1069. <col ref="formcd" visibility="hidden"/>
  1070. <col ref="formnm" style="text-align:left; "/>
  1071. <col ref="oprsrvno" visibility="hidden"/>
  1072. <col ref="unprepitemnm"/>
  1073. <col ref="formrecdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1074. <col ref="unprepitemcd" visibility="hidden"/>
  1075. <col ref="medirecalertcnts" type="inputbutton"/>
  1076. <col editable="false" ref="dralertcnts" type="output"/>
  1077. <col ref="drcnfmdt" format="yyyy-mm-dd hh:nn"/>
  1078. <col ref="srcformcd"/>
  1079. <col ref="fstrgstrnm"/>
  1080. <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn"/>
  1081. <col ref="lastupdtrnm"/>
  1082. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn"/>
  1083. <col ref="delusernm"/>
  1084. <col ref="deluserid" visibility="hidden"/>
  1085. <col ref="deldt" format="yyyy-mm-dd hh:nn"/>
  1086. <script type="javascript" ev:event="onbuttonclick">
  1087. <![CDATA[
  1088. //의무기록 전달사항 설정
  1089. var currow = grd_unprepreclist.row;
  1090. var curcol = grd_unprepreclist.col;
  1091. if(curcol == grd_unprepreclist.colRef("medirecalertcnts")){
  1092. var medirecalertcnts = model.getValue(grd_unprepreclist.nodeset + "[" + currow + "]/medirecalertcnts");
  1093. setParameter("SPMRI01900_scrnflag" , "m");
  1094. setParameter("SPMRI01900_alertcnts", medirecalertcnts);
  1095. modal("SPMRI01900");
  1096. if(getParameter("SPMRI01900_useyn") == "Y"){
  1097. model.setValue(grd_unprepreclist.nodeset + "[" + currow + "]/medirecalertcnts", getParameter("SPMRI01900_alertcnts"));
  1098. }
  1099. //의사 전달사항 설정
  1100. }else if(curcol == grd_unprepreclist.colRef("dralertcnts")){
  1101. var dralertcnts = model.getValue(grd_unprepreclist.nodeset + "[" + currow + "]/dralertcnts");
  1102. setParameter("SPMRI01900_scrnflag" , "d");
  1103. setParameter("SPMRI01900_alertcnts", dralertcnts);
  1104. modal("SPMRI01900");
  1105. if(getParameter("SPMRI01900_useyn") == "Y"){
  1106. model.setValue(grd_unprepreclist.nodeset + "[" + currow + "]/dralertcnts", getParameter("SPMRI01900_alertcnts"));
  1107. }
  1108. }
  1109. //의무기록, 의사전달사항이 수정된 경우, 의무기록 수정(ua)으로 변경
  1110. //u는 미비상태변경을 의미, ua는 의무기록, 의사전달사항 변경을 의미한다.
  1111. if(getParameter("SPMRI01900_useyn") == "Y"){
  1112. var status = model.getValue(grd_unprepreclist.nodeset + "[" + currow + "]/status");
  1113. if(status != "i" || status != "u" || status !="d"){
  1114. model.setValue(grd_unprepreclist.nodeset + "[" + currow + "]/status", "ua");
  1115. model.refresh();
  1116. }
  1117. }
  1118. ]]>
  1119. </script>
  1120. <script type="javascript" ev:event="onclick">
  1121. <![CDATA[
  1122. var currow = grd_unprepreclist.row;
  1123. var curcol = grd_unprepreclist.col;
  1124. if(isDataCell()){
  1125. var medirecalertcnts = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/medirecalertcnts");
  1126. var dralertcnts = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/dralertcnts");
  1127. model.setValue("/root/main/delivefact/medirecalertcnts", medirecalertcnts);
  1128. model.setValue("/root/main/delivefact/dralertcnts" , dralertcnts);
  1129. //미비기록관리 check 컬럼을 클릭한 경우, 환자의 기록을 조회
  1130. //이전 환자수진 정보와 동일한 경우, 조회하지 않는다.
  1131. //2008. 1. 7 오지훈
  1132. if(curcol == grd_unprepreclist.colRef("check")){
  1133. var pid = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/pid");
  1134. var orddd = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/indd");
  1135. var cretno = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/cretno");
  1136. if(pid != sBFPID ||
  1137. (sBFPID == "" && sBFORDDD == "" && sBFCRETNO == "") ||
  1138. (pid == sBFPID && (orddd != sBFORDDD || cretno != sBFCRETNO)))
  1139. {
  1140. fReqGetPatRecList(pid, orddd, cretno);
  1141. sBFPID = pid;
  1142. sBFORDDD = orddd;
  1143. sBFCRETNO = cretno;
  1144. }
  1145. grd_patreclist.attribute("visibility")="visible";
  1146. }
  1147. model.refresh();
  1148. }else{
  1149. //그리드 Header를 클릭한 경우,
  1150. if(currow == 0){
  1151. var srchflag = model.getValue("/root/main/cond/srchflag");
  1152. if(sORDERBY == "desc"){
  1153. sORDERBY = "asc";
  1154. }else{
  1155. sORDERBY = "desc";
  1156. }
  1157. var orderby = grd_unprepreclist.colAttribute(curcol, "ref") + " " + sORDERBY;
  1158. if(srchflag == "dr"){
  1159. model.setValue("/root/main/cond/unprepdrbase/orderby", orderby);
  1160. fReqGetUnPrepRecDrBaseList(model.getValue("/root/main/cond/unprepdrbase/unprepsign"));
  1161. }else if(srchflag == "pat"){
  1162. model.setValue("/root/main/cond/unpreppatbase/orderby", orderby);
  1163. fReqGetUnPrepRecList();
  1164. }
  1165. }
  1166. }
  1167. ]]>
  1168. </script>
  1169. <script type="javascript" ev:event="onmousedown">
  1170. <![CDATA[
  1171. setPopupMenu("grd_unprepreclist", false, "/root/init/popupmenu/menu/item", "name", "func");
  1172. ]]>
  1173. </script>
  1174. <script type="javascript" ev:event="DOMFocusOut">
  1175. <![CDATA[
  1176. initPopupMenu();
  1177. ]]>
  1178. </script>
  1179. <script type="javascript" ev:event="onendedit">
  1180. <![CDATA[
  1181. var medirecalertcnts = grd_unprepreclist.valueMatrix(grd_unprepreclist.row, grd_unprepreclist.col);
  1182. if(medirecalertcnts != ""){
  1183. model.removeNode("/root/send/savedata");
  1184. model.makeNode("/root/send/savedata");
  1185. model.copyNode("/root/send/savedata", grd_unprepreclist.nodeset + "[" + grd_unprepreclist.row + "]");
  1186. model.makeValue("/root/send/savedata/setuseflag", "medi");
  1187. if(submit("TXMRI01802")){
  1188. }
  1189. }
  1190. ]]>
  1191. </script>
  1192. <script type="javascript" ev:event="ondblclick">
  1193. <![CDATA[
  1194. // 기록삭제 조회내용에서 더블클릭한 경우 진료기록을 열지 않음.
  1195. // 2009. 8. 26 이경희
  1196. var currow = grd_unprepreclist.row;
  1197. //서식명을 더블클릭한 경우, 메인화면에 진료기록을 open
  1198. //2008. 1. 16 오지훈
  1199. var curcol = grd_unprepreclist.col;
  1200. if(curcol == grd_unprepreclist.colRef("formnm")){
  1201. var delyn = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/delyn");
  1202. if(delyn == "Y")
  1203. return;
  1204. fLoadUnPrepFormRec();
  1205. }
  1206. ]]>
  1207. </script>
  1208. </datagrid>
  1209. <button id="btn_requnprepdrbase" class="btn1_letter4" style="left:1044px; top:25px; width:80px; height:22px; ">
  1210. <caption>미비조회</caption>
  1211. <script type="javascript" ev:event="DOMActivate">
  1212. <![CDATA[
  1213. model.setValue("/root/main/cond/unprepdrbase/orderby", "");
  1214. model.setValue("/root/main/delivefact/medirecalertcnts", "");
  1215. model.setValue("/root/main/delivefact/dralertcnts", "");
  1216. model.refresh();
  1217. fReqGetUnPrepRecDrBaseList("N");
  1218. ]]>
  1219. </script>
  1220. </button>
  1221. <button id="button5" class="btn2_letter4" visibility="hidden" style="left:468px; top:108px; width:64px; height:19px; ">
  1222. <caption>배치생성</caption>
  1223. <script type="javascript" ev:event="DOMActivate">
  1224. <![CDATA[
  1225. modal("SPMRI02300");
  1226. ]]>
  1227. </script>
  1228. </button>
  1229. <output id="opt_formcd" ref="/root/main/cond/reccnt" class="output_fix" appearance="output" style="left:373px; top:109px; width:30px; height:19px; "/>
  1230. <caption id="caption7" class="search_name" style="left:116px; top:110px; width:99px; height:17px; ">미비환자수 :</caption>
  1231. <output id="opt_pid" ref="/root/main/cond/patcnt" class="output_fix" appearance="output" style="left:213px; top:109px; width:30px; height:19px; "/>
  1232. <caption id="caption11" class="search_name" style="left:261px; top:110px; width:112px; height:17px; ">미비기록건수 :</caption>
  1233. <group id="group1" style="left:812px; top:183px; width:218px; height:55px; background-color:#99ccff; border-color:#3366ff; border-style:solid; ">
  1234. <caption id="caption12" style="left:5px; top:5px; width:41px; height:20px; font-weight:bold; vertical-align:middle; ">미비과</caption>
  1235. <button id="btn_cnfm" class="btn2_letter2" style="left:122px; top:26px; width:42px; height:19px; ">
  1236. <caption>확인</caption>
  1237. <script type="javascript" ev:event="DOMActivate">
  1238. <![CDATA[
  1239. grd_unprepreclist.disabled = false;
  1240. btn_requnpreppatbase.disabled = false;
  1241. btn_requnprepdrbase.disabled = false;
  1242. btn_realunprep.disabled = false;
  1243. btn_opinfo.disabled = false;
  1244. btn_totrec.disabled = false;
  1245. btn_unprepcert.disabled = false;
  1246. btn_del.disabled = false;
  1247. btn_ex.disabled = false;
  1248. btn_save.disabled = false;
  1249. group1.attribute("height") = 0;
  1250. fReqSetUnPrepDeptCD();
  1251. ]]>
  1252. </script>
  1253. </button>
  1254. <button id="button6" class="btn2_letter2" style="left:166px; top:26px; width:42px; height:19px; ">
  1255. <caption>취소</caption>
  1256. <script type="javascript" ev:event="DOMActivate">
  1257. <![CDATA[
  1258. grd_unprepreclist.disabled = false;
  1259. btn_requnpreppatbase.disabled = false;
  1260. btn_requnprepdrbase.disabled = false;
  1261. btn_realunprep.disabled = false;
  1262. btn_opinfo.disabled = false;
  1263. btn_totrec.disabled = false;
  1264. btn_unprepcert.disabled = false;
  1265. btn_del.disabled = false;
  1266. btn_ex.disabled = false;
  1267. btn_save.disabled = false;
  1268. group1.attribute("height") = 0;
  1269. ]]>
  1270. </script>
  1271. </button>
  1272. <select1 id="combo1" ref="/root/init/unprepdeptcd" appearance="minimal" style="left:52px; top:5px; width:156px; height:19px; ">
  1273. <choices>
  1274. <itemset nodeset="/root/init/orddept/dept">
  1275. <label ref="depthngnm"/>
  1276. <value ref="deptcd"/>
  1277. </itemset>
  1278. </choices>
  1279. </select1>
  1280. </group>
  1281. <button id="btn_realunprep" class="btn1_letter9" visibility="hidden" style="left:1044px; top:50px; width:140px; height:22px; ">
  1282. <caption>StaffSign미비조회</caption>
  1283. <script type="javascript" ev:event="DOMActivate">
  1284. <![CDATA[
  1285. model.setValue("/root/main/cond/unprepdrbase/orderby", "");
  1286. model.setValue("/root/main/delivefact/medirecalertcnts", "");
  1287. model.setValue("/root/main/delivefact/dralertcnts", "");
  1288. model.refresh();
  1289. fReqGetUnPrepRecDrBaseList("TOBE");
  1290. ]]>
  1291. </script>
  1292. </button>
  1293. <button id="btn_opinfo" class="btn2_letter6" visibility="hidden" style="left:626px; top:109px; width:86px; height:19px; ">
  1294. <caption>수술정보조회</caption>
  1295. <script type="javascript" ev:event="DOMActivate">
  1296. <![CDATA[
  1297. var pid = "";
  1298. if(model.getValue("/root/init/hardcd/hardcd/hardcd") == "Y")
  1299. {
  1300. if(grd_unprepreclist.rows > 0)
  1301. {
  1302. var currow = grd_unprepreclist.row;
  1303. if(currow > 0)
  1304. pid = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/pid"); // 미비조회 버튼으로 조회한 환자의 PID로 검색
  1305. else
  1306. pid = model.getValue("/root/main/cond/unpreppatbase/pid"); // PID로 조회한 환자의 PID로 수술정보를 검색
  1307. }
  1308. }
  1309. else
  1310. {
  1311. pid = model.getValue("/root/main/cond/unpreppatbase/pid"); // 조회한 환자의 PID로 검색
  1312. }
  1313. if(pid != ""){
  1314. setParameter("SPMRI02700_pid", pid);
  1315. open("SPMRI02700", 1, 400, 0);
  1316. }else{
  1317. messageBox("등록번호를", "C001");
  1318. return;
  1319. }
  1320. ]]>
  1321. </script>
  1322. </button>
  1323. <button id="btn_totrec" class="btn2_letter6" style="left:845px; top:109px; width:86px; height:19px; ">
  1324. <caption>통합기록조회</caption>
  1325. <script type="javascript" ev:event="DOMActivate">
  1326. <![CDATA[
  1327. var currow = grd_unprepreclist.row;
  1328. var pid = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/pid");
  1329. if(pid == ""){
  1330. messageBox("통합기록조회를 검색할 환자를", "C002");
  1331. return;
  1332. }
  1333. var monitorNumber = app.monitorNumber;
  1334. var monitorResolutions = app.monitorResolution;
  1335. var monitorResolutionsArr = monitorResolutions.split('|');
  1336. var resolution = monitorResolutionsArr[monitorNumber-1];
  1337. var resolution_width = resolution.split(',')[0];
  1338. var resolution_height = resolution.split(',')[1];
  1339. var wndobj = getOpenWindow("SMMRI00400");
  1340. if(wndobj != null){
  1341. setParameter("SMMRI00400_param_pid", pid);
  1342. wndobj.javascript.fInitalize();
  1343. }else{
  1344. setParameter("SMMRI00400_param_pid", pid);
  1345. open("SMMRI00400", monitorNumber, 0, 0);
  1346. }
  1347. ]]>
  1348. </script>
  1349. </button>
  1350. <bool id="bool1" checkvalue="Y,N" ref="/root/main/cond/unprepdrbase/dayflag" style="left:491px; top:82px; width:30px; height:20px; ">
  1351. <script type="javascript" ev:event="xforms-value-changed">
  1352. <![CDATA[
  1353. if(bool1.value == "Y"){
  1354. cmb_inoutddflag.disabled = false;
  1355. ipt_fromdd.disabled = false;
  1356. ipt_todd.disabled = false;
  1357. }else{
  1358. cmb_inoutddflag.disabled = true;
  1359. ipt_fromdd.disabled = true;
  1360. ipt_todd.disabled = true;
  1361. }
  1362. model.refresh();
  1363. ]]>
  1364. </script>
  1365. </bool>
  1366. <caption id="caption15" style="left:516px; top:83px; width:50px; height:20px; ">날짜조회</caption>
  1367. <button id="button1" class="btn1_letter4" visibility="hidden" style="left:1044px; top:75px; width:80px; height:22px; ">
  1368. <caption>전체조회</caption>
  1369. <script type="javascript" ev:event="DOMActivate">
  1370. <![CDATA[
  1371. grd_unprepreclist.disabled = true;
  1372. btn_requnpreppatbase.disabled = true;
  1373. btn_requnprepdrbase.disabled = true;
  1374. btn_realunprep.disabled = true;
  1375. btn_opinfo.disabled = true;
  1376. btn_totrec.disabled = true;
  1377. btn_unprepcert.disabled = true;
  1378. btn_del.disabled = true;
  1379. btn_ex.disabled = true;
  1380. btn_save.disabled = true;
  1381. group2.attribute("height") = 70;
  1382. model.setValue("/root/main/delivefact/medirecalertcnts", "");
  1383. model.setValue("/root/main/delivefact/dralertcnts", "");
  1384. model.refresh();
  1385. //model.setValue("/root/main/cond/excelcond/startdate", "20070101");
  1386. //model.setValue("/root/main/cond/excelcond/enddate" , getCurrentDate());
  1387. //group2.refresh();
  1388. // 2009-07-25 이경희
  1389. // 엑셀저장시 2009/07/01로 고정된 부분을 수정.
  1390. var opendd = model.getValue("/root/init/openday/M0037M0546/cdid"); // 병원별 오픈일
  1391. var startDate = opendd.toDate().getDateFormat("YYYYMM") + "01"; // 오픈한 달의 첫날부터로 설정
  1392. model.setValue("/root/main/cond/excelcond/startdate", startDate);
  1393. model.setValue("/root/main/cond/excelcond/enddate" , getCurrentDate());
  1394. group2.refresh();
  1395. ]]>
  1396. </script>
  1397. </button>
  1398. <button id="button4" style="left:440px; top:108px; width:28px; height:20px; background-image:../../../com/commonweb/images/btn_send_right.gif; ">
  1399. <caption/>
  1400. <script type="javascript" ev:event="DOMActivate">
  1401. <![CDATA[
  1402. grd_unprepreclist.colHidden(grd_unprepreclist.colRef("indd")) = false;
  1403. grd_unprepreclist.refresh();
  1404. ]]>
  1405. </script>
  1406. </button>
  1407. <button id="button2" style="left:412px; top:108px; width:28px; height:20px; background-image:../../../com/commonweb/images/btn_send_left.gif; ">
  1408. <caption/>
  1409. <script type="javascript" ev:event="DOMActivate">
  1410. <![CDATA[
  1411. grd_unprepreclist.colHidden(grd_unprepreclist.colRef("indd")) = true;
  1412. grd_unprepreclist.refresh();
  1413. ]]>
  1414. </script>
  1415. </button>
  1416. <button id="button3" class="btn2_letter2" style="left:1062px; top:109px; width:42px; height:19px; ">
  1417. <caption>출력</caption>
  1418. <script type="javascript" ev:event="DOMActivate">
  1419. <![CDATA[
  1420. exeReportPreview("RPMRI01700", "XMLSTR");
  1421. ]]>
  1422. </script>
  1423. </button>
  1424. <datagrid id="grd_patreclist" nodeset="/root/main/patreclist/patreclist" visibility="hidden" caption="X^formrecseq^기록일시^시간^oprsrvno^srcformcd^formcd^서식명^확정^StaffSign^caption1^작성과^caption2^작성자" colsep="^" colwidth="26, 0, 71, 41, 0, 0, 0, 143, 53, 62, 0, 61, 0, 62" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:664px; top:180px; width:529px; height:489px; ">
  1425. <col ref="check" type="output"/>
  1426. <col ref="formrecseq"/>
  1427. <col ref="formrecdd" format="yyyy-mm-dd"/>
  1428. <col ref="formrechm" format="hh:nn"/>
  1429. <col ref="oprsrvno"/>
  1430. <col ref="srcformcd"/>
  1431. <col ref="formcd"/>
  1432. <col ref="formnm"/>
  1433. <col ref="certyn"/>
  1434. <col ref="cosignyn"/>
  1435. <col ref="formrecdeptcd" visibility="hidden"/>
  1436. <col ref="formrecdeptnm"/>
  1437. <col ref="formrecuserid" visibility="hidden"/>
  1438. <col ref="formrecusernm"/>
  1439. <script type="javascript" ev:event="onclick">
  1440. <![CDATA[
  1441. var currow = grd_patreclist.row;
  1442. var curcol = grd_patreclist.col;
  1443. // 그리드 header의 X를 클릭하면 그리드 hidden
  1444. if(currow == 0 && curcol == grd_patreclist.colRef("check")){
  1445. grd_patreclist.attribute("visibility") = "hidden";
  1446. }
  1447. model.refresh();
  1448. ]]>
  1449. </script>
  1450. <script type="javascript" ev:event="onkeypress">
  1451. <![CDATA[
  1452. if(event.keyCode == 13){
  1453. var trgtrow = grd_unprepreclist.row;
  1454. var srcrow = grd_patreclist.row;
  1455. if(srcrow > 0){
  1456. var srcformcd = model.getValue(grd_patreclist.nodeset + "[" + srcrow + "]/srcformcd");
  1457. var trgtsrcformcd = model.getValue(grd_unprepreclist.nodeset + "[" + srcrow + "]/srcformcd");
  1458. }
  1459. }
  1460. ]]>
  1461. </script>
  1462. <script type="javascript" ev:event="ondblclick">
  1463. <![CDATA[
  1464. if(isDataCell()){
  1465. var trgtrow = grd_unprepreclist.row;
  1466. var srcrow = grd_patreclist.row;
  1467. var trgtformrecseq = model.getValue(grd_unprepreclist.nodeset + "[" + trgtrow + "]/formrecseq");
  1468. var trgtsrcformcd = model.getValue(grd_unprepreclist.nodeset + "[" + trgtrow + "]/srcformcd");
  1469. var formrecseq = model.getValue(grd_patreclist.nodeset + "[" + srcrow + "]/formrecseq");
  1470. var srcformcd = model.getValue(grd_patreclist.nodeset + "[" + srcrow + "]/srcformcd");
  1471. var oprsrvno = model.getValue(grd_patreclist.nodeset + "[" + srcrow + "]/oprsrvno");
  1472. if(formrecseq <= 0){
  1473. return;
  1474. }
  1475. if(trgtsrcformcd == srcformcd){
  1476. var checkcol = grd_unprepreclist.colRef("check");
  1477. model.setValue(grd_unprepreclist.nodeset + "[" + trgtrow + "]/formrecseq", formrecseq);
  1478. model.setValue(grd_unprepreclist.nodeset + "[" + trgtrow + "]/check" , "V");
  1479. model.setValue(grd_unprepreclist.nodeset + "[" + trgtrow + "]/status", "uf");
  1480. model.setValue(grd_unprepreclist.nodeset + "[" + trgtrow + "]/oprsrvno", oprsrvno);
  1481. model.setValue(grd_patreclist.nodeset + "[" + srcrow + "]/check", "<<");
  1482. grd_unprepreclist.cellStyle("background-color", trgtrow, checkcol, trgtrow, checkcol) = "#800080";
  1483. }else{
  1484. messageBox("서로 다른 서식", "I009");
  1485. return;
  1486. }
  1487. model.refresh();
  1488. }
  1489. ]]>
  1490. </script>
  1491. <script type="javascript" ev:event="onaftersort">
  1492. <![CDATA[
  1493. grd_patreclist.gridToInstance();
  1494. ]]>
  1495. </script>
  1496. </datagrid>
  1497. <script type="javascript" ev:event="onkeypress">
  1498. <![CDATA[
  1499. // ESC 키 이벤트
  1500. if(event.KeyCode == 27){
  1501. var cloakval = grd_patreclist.attribute("visibility");
  1502. if(cloakval == "visible"){
  1503. grd_patreclist.attribute("visibility")="hidden";
  1504. }else{
  1505. var currow = grd_unprepreclist.row;
  1506. var pid = model.getValue(grd_unprepreclist.nodeset + "[" + currow + "]/pid");
  1507. var orddd = model.getValue(grd_unprepreclist.nodeset + "[" + currow + "]/indd");
  1508. var cretno= model.getValue(grd_unprepreclist.nodeset + "[" + currow + "]/cretno");
  1509. if(pid != sBFPID ||
  1510. (sBFPID == "" && sBFORDDD == "" && sBFCRETNO == "") ||
  1511. (pid == sBFPID && (orddd != sBFORDDD || cretno != sBFCRETNO)))
  1512. {
  1513. fReqGetPatRecList(pid, orddd, cretno);
  1514. sBFPID = pid;
  1515. sBFORDDD = orddd;
  1516. sBFCRETNO= cretno;
  1517. }
  1518. grd_patreclist.attribute("visibility")="visible";
  1519. grd_patreclist.attribute("visibility")="visible";
  1520. }
  1521. grd_patreclist.refresh();
  1522. }
  1523. ]]>
  1524. </script>
  1525. <group id="group2" style="left:480px; top:305px; width:245px; height:0px; border-style:solid; ">
  1526. <button id="button7" class="btn2_letter2" style="left:149px; top:39px; width:42px; height:19px; ">
  1527. <caption>확인</caption>
  1528. <script type="javascript" ev:event="DOMActivate">
  1529. <![CDATA[
  1530. grd_unprepreclist.disabled = false;
  1531. btn_requnpreppatbase.disabled = false;
  1532. btn_requnprepdrbase.disabled = false;
  1533. btn_realunprep.disabled = false;
  1534. btn_opinfo.disabled = false;
  1535. btn_totrec.disabled = false;
  1536. btn_unprepcert.disabled = false;
  1537. btn_del.disabled = false;
  1538. btn_ex.disabled = false;
  1539. btn_save.disabled = false;
  1540. group2.attribute("height") = 0;
  1541. reqGetUnPrepCreateExcelFile();
  1542. ]]>
  1543. </script>
  1544. </button>
  1545. <button id="button8" class="btn2_letter2" style="left:194px; top:39px; width:42px; height:19px; ">
  1546. <caption>취소</caption>
  1547. <script type="javascript" ev:event="DOMActivate">
  1548. <![CDATA[
  1549. grd_unprepreclist.disabled = false;
  1550. btn_requnpreppatbase.disabled = false;
  1551. btn_requnprepdrbase.disabled = false;
  1552. btn_realunprep.disabled = false;
  1553. btn_opinfo.disabled = false;
  1554. btn_totrec.disabled = false;
  1555. btn_unprepcert.disabled = false;
  1556. btn_del.disabled = false;
  1557. btn_ex.disabled = false;
  1558. btn_save.disabled = false;
  1559. group2.attribute("height") = 0;
  1560. ]]>
  1561. </script>
  1562. </button>
  1563. <select1 id="radio1" ref="/root/main/cond/excelcond/steps" appearance="full" cellspacing="5" cols="4" overflow="visible" style="left:4px; top:19px; width:185px; height:20px; font-weight:bold; border-style:none; ">
  1564. <choices>
  1565. <item>
  1566. <label>1개월</label>
  1567. <value>1</value>
  1568. </item>
  1569. <item>
  1570. <label>2개월</label>
  1571. <value>2</value>
  1572. </item>
  1573. <item>
  1574. <label>3개월</label>
  1575. <value>3</value>
  1576. </item>
  1577. </choices>
  1578. </select1>
  1579. <caption id="caption14" class="tit_2" style="left:4px; top:4px; width:218px; height:13px; ">excel화일 생성 기간지정</caption>
  1580. <caption id="caption13" class="search_name" visibility="hidden" style="left:-1px; top:44px; width:86px; height:17px; ">시작일자 :</caption>
  1581. <caption id="caption16" class="search_name" visibility="hidden" style="left:-1px; top:39px; width:86px; height:17px; ">종료일자 :</caption>
  1582. <input id="input2" ref="/root/main/cond/excelcond/startdate" visibility="hidden" inputtype="date" style="left:89px; top:44px; width:90px; height:19px; "/>
  1583. <input id="input3" ref="/root/main/cond/excelcond/enddate" visibility="hidden" inputtype="date" style="left:89px; top:39px; width:90px; height:19px; "/>
  1584. </group>
  1585. <group id="group3" style="left:870px; top:230px; width:218px; height:55px; background-color:#99ccff; border-color:#3366ff; border-style:solid; ">
  1586. <caption id="caption17" style="left:5px; top:5px; width:54px; height:20px; font-weight:bold; vertical-align:middle; ">미비분과</caption>
  1587. <button id="button9" class="btn2_letter2" style="left:122px; top:26px; width:42px; height:19px; ">
  1588. <caption>확인</caption>
  1589. <script type="javascript" ev:event="DOMActivate">
  1590. <![CDATA[
  1591. grd_unprepreclist.disabled = false;
  1592. btn_requnpreppatbase.disabled = false;
  1593. btn_requnprepdrbase.disabled = false;
  1594. btn_realunprep.disabled = false;
  1595. btn_opinfo.disabled = false;
  1596. btn_totrec.disabled = false;
  1597. btn_unprepcert.disabled = false;
  1598. btn_del.disabled = false;
  1599. btn_ex.disabled = false;
  1600. btn_save.disabled = false;
  1601. group3.attribute("height") = 0;
  1602. fSetDetlDeptCD();
  1603. ]]>
  1604. </script>
  1605. </button>
  1606. <button id="button10" class="btn2_letter2" style="left:166px; top:26px; width:42px; height:19px; ">
  1607. <caption>취소</caption>
  1608. <script type="javascript" ev:event="DOMActivate">
  1609. <![CDATA[
  1610. grd_unprepreclist.disabled = false;
  1611. btn_requnpreppatbase.disabled = false;
  1612. btn_requnprepdrbase.disabled = false;
  1613. btn_realunprep.disabled = false;
  1614. btn_opinfo.disabled = false;
  1615. btn_totrec.disabled = false;
  1616. btn_unprepcert.disabled = false;
  1617. btn_del.disabled = false;
  1618. btn_ex.disabled = false;
  1619. btn_save.disabled = false;
  1620. group3.attribute("height") = 0;
  1621. ]]>
  1622. </script>
  1623. </button>
  1624. <select1 id="cmb_detldeptcd" ref="/root/main/unprepdeptcd/detldeptcd" appearance="minimal" style="left:64px; top:5px; width:144px; height:19px; ">
  1625. <choices>
  1626. <itemset>
  1627. <label ref="cdnm"/>
  1628. <value ref="cdid"/>
  1629. </itemset>
  1630. </choices>
  1631. </select1>
  1632. </group>
  1633. <select1 id="radio_detldept" ref="/root/main/cond/unprepdrbase/detldept" disabled="true" visibility="hidden" appearance="full" overflow="visible" checkvalue="Y,N" style="left:950px; top:40px; width:73px; height:20px; border-style:none; ">
  1634. <choices>
  1635. <item>
  1636. <label>미비분과</label>
  1637. <value>Y</value>
  1638. </item>
  1639. </choices>
  1640. </select1>
  1641. <select1 id="cmb_detldept" ref="/root/main/cond/unprepdrbase/detldeptcd" disabled="true" appearance="minimal" style="left:971px; top:18px; width:62px; height:19px; ">
  1642. <choices>
  1643. <itemset>
  1644. <label ref="cdnm"/>
  1645. <value ref="cdid"/>
  1646. </itemset>
  1647. </choices>
  1648. </select1>
  1649. <select id="chk_unprepflagDel" ref="/root/main/cond/unprepdrbase/unprepstat" overflow="visible" appearance="full" style="left:843px; top:61px; width:75px; height:20px; border-style:none; ">
  1650. <choices>
  1651. <item>
  1652. <label>기록삭제</label>
  1653. <value>8</value>
  1654. </item>
  1655. </choices>
  1656. <script type="javascript" ev:event="xforms-select">
  1657. <![CDATA[
  1658. chk_unprepflagA.deselect(0);
  1659. chk_unprepflagB.deselect(0);
  1660. chk_unprepflagC.deselect(0);
  1661. chk_unprepflagD.deselect(0);
  1662. chk_unprepflagR.deselect(0);
  1663. chk_unprepflagS.deselect(0);
  1664. ]]>
  1665. </script>
  1666. </select>
  1667. <select id="chk_merge" ref="/root/init/merge" visibility="hidden" overflow="visible" appearance="full" style="left:570px; top:110px; width:100px; height:20px; border-style:none; ">
  1668. <choices>
  1669. <item>
  1670. <label>셀머지</label>
  1671. <value>1</value>
  1672. </item>
  1673. </choices>
  1674. <script type="javascript" ev:event="xforms-select">
  1675. <![CDATA[
  1676. fDoMergeUnPrepRecList();
  1677. ]]>
  1678. </script>
  1679. <script type="javascript" ev:event="xforms-deselect">
  1680. <![CDATA[
  1681. fDoUnMergeUnPrepRecList();
  1682. ]]>
  1683. </script>
  1684. </select>
  1685. <datagrid id="grd_medalertlist" nodeset="/root/main/medalertinfo/medalertlist" visibility="hidden" autoresize="true" caption="작성일자^전달사항 From 의료정보팀" colsep="^" colwidth="120, 250" mergecellsfixedrows="bycolrec" rowsep="|" style="left:65px; top:320px; width:395px; height:240px; ">
  1686. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  1687. <col ref="medirecalertcnts"/>
  1688. </datagrid>
  1689. <datagrid id="grd_dralertlist" nodeset="/root/main/dralertinfo/dralertlist" visibility="hidden" autoresize="true" caption="작성일자^전달사항 From 의사" colsep="^" colwidth="120, 250" mergecellsfixedrows="bycolrec" rowsep="|" style="left:470px; top:320px; width:395px; height:240px; ">
  1690. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  1691. <col ref="dralertcnts"/>
  1692. </datagrid>
  1693. <button id="btn_ErStaff" class="btn2_letter10" style="left:714px; top:109px; width:130px; height:19px; ">
  1694. <caption>응급의학과Staff관리</caption>
  1695. <script type="javascript" ev:event="onclick">
  1696. <![CDATA[
  1697. modal("SPMRI03200", "", "", "", "SPMRI03200");
  1698. ]]>
  1699. </script>
  1700. </button>
  1701. </xhtml:body>
  1702. </xhtml:html>