SMMRI01700_미비기록관리.xrw 69 KB

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