SPMRI03800_환자별미비상세조회.xrw 57 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494
  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>D</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. //
  274. // var recvparam = opener.javascript.getParameter("SMMRI01700_Param");
  275. // if(recvparam != ""){
  276. // recvparam = recvparam.split("▩");
  277. // data = recvparam[1].split("▦");
  278. // model.setValue("/root/main/cond/unpreppatbase/pid", data[0]);
  279. //
  280. // fReqGetUnPrepPatChosInfo(data[0], "I", "A");
  281. //
  282. // cmb_chosinfo.select(0);
  283. // var pid = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/pid");
  284. // var indd = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/orddd");
  285. // var cretno = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/cretno");
  286. // var hngnm = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/hngnm");
  287. // model.setValue("/root/main/cond/unpreppatbase/pid" , pid);
  288. // model.setValue("/root/main/cond/unpreppatbase/indd" , indd);
  289. // model.setValue("/root/main/cond/unpreppatbase/cretno", cretno);
  290. // model.setValue("/root/main/cond/unpreppatbase/hngnm" , hngnm);
  291. // model.refresh();
  292. // }
  293. // }
  294. zbcfGetCodeList(new Array("M0501", "M0502", "M0503"), new Array("/root/init/M0501", "/root/init/M0502", "/root/init/M0503"));
  295. var ls_pid = opener.javascript.getParameter("SPMRI03800_pid");
  296. // knuh_20110801_추가
  297. var ls_indd = opener.javascript.getParameter("SPMRI03800_indd");
  298. if (ls_pid != "")
  299. {
  300. model.setValue("/root/main/cond/unpreppatbase/pid", ls_pid);
  301. // knuh_20110801_추가
  302. model.setValue("/root/main/cond/unpreppatbase/indd", ls_indd);
  303. model.refresh();
  304. // btn_requnpreppatbase.dispatch("DOMActivate");
  305. chk_unprepflagA.dispatch("xforms-select");
  306. ipt_pid.dispatch("onkeypress");
  307. }
  308. ]]>
  309. </script>
  310. <script type="javascript" ev:event="xforms-model-construct-done">
  311. <![CDATA[
  312. group1.attribute("height") = 0;
  313. group3.attribute("height") = 0;
  314. ]]>
  315. </script>
  316. </model>
  317. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  318. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  319. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  320. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  321. <script type="javascript" src="../../../emr/unprepmngtweb/js/SPMRI03800.js"/>
  322. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  323. <script type="javascript">
  324. <![CDATA[
  325. /**
  326. * 하드코드 조회
  327. *
  328. * @param
  329. * ref reference path
  330. * rsltref result reference path
  331. * hardcd - 하드코드
  332. */
  333. function mmbfGetHardCodeInfo(ref, rsltref, hardcd){
  334. var mmb_rsltref = "/root/hidden/mmb/hardcd";
  335. model.removeNode(mmb_rsltref);
  336. model.makeNode(mmb_rsltref);
  337. model.removeNode(ref);
  338. model.makeValue(ref + "/hardcd", hardcd);
  339. if(submit("TRMMB04103", "false", ref, mmb_rsltref)==true){
  340. model.copyNode(rsltref, mmb_rsltref); model.removeNode(mmb_rsltref);
  341. }
  342. model.refresh();
  343. }
  344. function mmbfGetHardCodeInfoNm(ref, rsltref, hardcd){
  345. var mmb_rsltref = "/root/hidden/mmb/hardcd";
  346. model.removeNode(mmb_rsltref);
  347. model.makeNode(mmb_rsltref);
  348. model.removeNode(ref);
  349. model.makeValue(ref + "/hardcd", hardcd);
  350. if(submit("TRMMB04105", "false", ref, mmb_rsltref)==true){
  351. model.copyNode(rsltref, mmb_rsltref); model.removeNode(mmb_rsltref);
  352. }
  353. model.refresh();
  354. }
  355. ]]>
  356. </script>
  357. </xhtml:head>
  358. <xhtml:body guideline="1,1193;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  359. <shape id="roundrect1" visibility="hidden" appearance="roundrect" style="left:400px; top:14px; width:793px; height:91px; "/>
  360. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">환자별미비상세조회</caption>
  361. <caption id="caption10" class="tit_2" visibility="hidden" style="left:600px; top:736px; width:131px; height:13px; ">전달사항 From의사</caption>
  362. <textarea id="textarea1" ref="/root/main/delivefact/dralertcnts" visibility="hidden" editable="false" style="left:600px; top:749px; width:594px; height:35px; ">
  363. <script type="javascript" ev:event="DOMFocusOut">
  364. <![CDATA[
  365. if(grd_unprepreclist.row > 0){
  366. if(sDRALERT == textarea1.value){
  367. return;
  368. }
  369. }
  370. ]]>
  371. </script>
  372. <script type="javascript" ev:event="DOMFocusIn">
  373. <![CDATA[
  374. sDRALERT = textarea1.value;
  375. ]]>
  376. </script>
  377. </textarea>
  378. <textarea id="textarea2" ref="/root/main/delivefact/medirecalertcnts" visibility="hidden" editable="false" style="left:0px; top:749px; width:591px; height:35px; ">
  379. <script type="javascript" ev:event="DOMFocusOut">
  380. <![CDATA[
  381. if(grd_unprepreclist.row > 0){
  382. if(sMEDIALERT == textarea2.value){
  383. return;
  384. }else{
  385. var status = model.getValue(grd_unprepreclist.nodeset + "[" + grd_unprepreclist.row + "]/status");
  386. if(status == ""){
  387. model.setValue(grd_unprepreclist.nodeset + "[" + grd_unprepreclist.row + "]/status", "ua");
  388. }
  389. model.setValue(grd_unprepreclist.nodeset + "[" + grd_unprepreclist.row + "]/medirecalertcnts", textarea2.value);
  390. model.refresh();
  391. }
  392. }
  393. ]]>
  394. </script>
  395. <script type="javascript" ev:event="DOMFocusIn">
  396. <![CDATA[
  397. sMEDIALERT = textarea2.value;
  398. ]]>
  399. </script>
  400. </textarea>
  401. <caption id="caption9" class="tit_2" visibility="hidden" style="left:0px; top:736px; width:170px; height:13px; ">전달사항 From의료정보팀</caption>
  402. <line id="line1" class="line_1" style="x1:0px; y1:21px; x2:1194px; y2:21px; "/>
  403. <shape id="roundrect2" visibility="hidden" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:15px; width:395px; height:90px; color:#3366ff; "/>
  404. <select id="chk_unprepflagR" ref="/root/main/cond/unprepdrbase/unprepstat" visibility="hidden" overflow="visible" appearance="full" style="left:736px; top:61px; width:56px; height:20px; border-style:none; ">
  405. <choices>
  406. <item>
  407. <label>재미비</label>
  408. <value>3</value>
  409. </item>
  410. </choices>
  411. <script type="javascript" ev:event="xforms-select">
  412. <![CDATA[
  413. chk_unprepflagDel.deselect(0);
  414. chk_unprepflagA.deselect(0);
  415. ]]>
  416. </script>
  417. </select>
  418. <select id="chk_unprepflagA" ref="/root/main/cond/unprepdrbase/unprepstat" visibility="hidden" overflow="visible" appearance="full" style="left:493px; top:61px; width:45px; height:20px; border-style:none; ">
  419. <choices>
  420. <item>
  421. <label>전체</label>
  422. <value>-</value>
  423. </item>
  424. </choices>
  425. <script type="javascript" ev:event="xforms-select">
  426. <![CDATA[
  427. chk_unprepflagB.disabled = true;
  428. chk_unprepflagB.deselect(0);
  429. chk_unprepflagC.disabled = true;
  430. chk_unprepflagC.deselect(0);
  431. chk_unprepflagD.disabled = true;
  432. chk_unprepflagD.deselect(0);
  433. chk_unprepflagR.disabled = true;
  434. chk_unprepflagR.deselect(0);
  435. chk_unprepflagS.disabled = true;
  436. chk_unprepflagS.deselect(0);
  437. chk_unprepflagDel.disabled = true;
  438. chk_unprepflagDel.deselect(0);
  439. ]]>
  440. </script>
  441. <script type="javascript" ev:event="xforms-deselect">
  442. <![CDATA[
  443. chk_unprepflagB.disabled = false;
  444. chk_unprepflagC.disabled = false;
  445. chk_unprepflagD.disabled = false;
  446. chk_unprepflagR.disabled = false;
  447. chk_unprepflagS.disabled = false;
  448. chk_unprepflagDel.disabled = false;
  449. ]]>
  450. </script>
  451. </select>
  452. <button id="btn_patreq" class="icon_search" visibility="hidden" style="left:158px; top:29px; width:16px; height:16px; ">
  453. <caption/>
  454. <script type="javascript" ev:event="DOMActivate">
  455. <![CDATA[
  456. model.setValue("/root/tmp/pid" , model.getValue("/root/main/cond/unpreppatbase/pid"));
  457. model.setValue("/root/tmp/hngnm" , model.getValue("/root/main/cond/unpreppatbase/hngnm"));
  458. if(model.getValue("/root/main/cond/unpreppatbase/pid") == ""){
  459. model.setValue("/root/tmp/srchcond", 1);
  460. }else{
  461. model.setValue("/root/tmp/srchcond", 2);
  462. }
  463. model.setValue("/root/tmp/autoflag", "Y");
  464. model.refresh();
  465. modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/tmp", "/root/send");
  466. ]]>
  467. </script>
  468. </button>
  469. <select id="chk_unprepflagS" ref="/root/main/cond/unprepdrbase/unprepstat" visibility="hidden" overflow="visible" appearance="full" style="left:793px; top:61px; width:46px; height:20px; border-style:none; ">
  470. <choices>
  471. <item>
  472. <label>완료</label>
  473. <value>4</value>
  474. </item>
  475. </choices>
  476. <script type="javascript" ev:event="xforms-select">
  477. <![CDATA[
  478. chk_unprepflagDel.deselect(0);
  479. chk_unprepflagA.deselect(0);
  480. ]]>
  481. </script>
  482. </select>
  483. <select id="chk_unprepflagB" ref="/root/main/cond/unprepdrbase/unprepstat" visibility="hidden" overflow="visible" appearance="full" style="left:539px; top:61px; width:65px; height:20px; border-style:none; ">
  484. <choices>
  485. <item>
  486. <label>배치미비</label>
  487. <value>0</value>
  488. </item>
  489. </choices>
  490. <script type="javascript" ev:event="xforms-select">
  491. <![CDATA[
  492. chk_unprepflagDel.deselect(0);
  493. chk_unprepflagA.deselect(0);
  494. ]]>
  495. </script>
  496. </select>
  497. <select id="chk_unprepflagC" ref="/root/main/cond/unprepdrbase/unprepstat" visibility="hidden" overflow="visible" appearance="full" style="left:604px; top:61px; width:66px; height:20px; border-style:none; ">
  498. <choices>
  499. <item>
  500. <label>미비확인</label>
  501. <value>1</value>
  502. </item>
  503. </choices>
  504. <script type="javascript" ev:event="xforms-select">
  505. <![CDATA[
  506. chk_unprepflagDel.deselect(0);
  507. chk_unprepflagA.deselect(0);
  508. ]]>
  509. </script>
  510. </select>
  511. <select1 id="cmb_inoutddflag" ref="/root/main/cond/unprepdrbase/srchflag" disabled="true" visibility="hidden" appearance="minimal" style="left:571px; top:83px; width:78px; height:19px; ">
  512. <choices>
  513. <item>
  514. <label>퇴원일자</label>
  515. <value>dsch</value>
  516. </item>
  517. <item>
  518. <label>입원일자</label>
  519. <value>indd</value>
  520. </item>
  521. <item>
  522. <label>진료일자</label>
  523. <value>orddd</value>
  524. </item>
  525. </choices>
  526. </select1>
  527. <select id="chk_unprepflagD" ref="/root/main/cond/unprepdrbase/unprepstat" visibility="hidden" overflow="visible" appearance="full" style="left:670px; top:61px; width:65px; height:20px; color:transparent; border-style:none; ">
  528. <choices>
  529. <item>
  530. <label>의사확인</label>
  531. <value>2</value>
  532. </item>
  533. </choices>
  534. <script type="javascript" ev:event="xforms-select">
  535. <![CDATA[
  536. chk_unprepflagDel.deselect(0);
  537. chk_unprepflagA.deselect(0);
  538. ]]>
  539. </script>
  540. </select>
  541. <input id="ipt_unprepdrnm" ref="/root/main/cond/unprepdrbase/unprepdrnm" visibility="hidden" style="left:494px; top:19px; width:77px; height:19px; ">
  542. <script type="javascript" ev:event="onkeydown">
  543. <![CDATA[
  544. //enter입력시
  545. if(event.keyCode == 13){
  546. model.setValue("/root/main/cond/unprepdrbase/unprepdrnm", ipt_unprepdrnm.currentText);
  547. var unprepdrnm = ipt_unprepdrnm.currentText;
  548. if(isNumber(unprepdrnm.charAt(0))){
  549. fReqGetUnPrepDrSmplList("id", unprepdrnm);
  550. }else{
  551. fReqGetUnPrepDrSmplList("nm", unprepdrnm);
  552. }
  553. var nodelist = model.instances(0).selectNodes("/root/temp/userinfo/usercombo");
  554. if(nodelist.length == 0){
  555. messageBox("의사 정보가", "I004");
  556. return;
  557. }else if(nodelist.length == 1){
  558. model.setValue("/root/main/cond/unprepdrbase/unprepdrid", model.getValue("/root/temp/userinfo/usercombo/userid"));
  559. model.setValue("/root/main/cond/unprepdrbase/unprepdrnm", model.getValue("/root/temp/userinfo/usercombo/usernm"));
  560. }else if(nodelist.length > 1){
  561. setParameter("SPMRI02900_stnddd" , getCurrentDate());
  562. setParameter("SPMRI02900_orddrnm", ipt_unprepdrnm.currentText);
  563. modal("SPMRI02900");
  564. if(getParameter("SPMRI02900_useyn")=="Y"){
  565. var doctinfo = getParameter("SPMRI02900_rtnparam");
  566. doctinfo = doctinfo.split("^");
  567. model.setValue("root/main/cond/unprepdrbase/unprepdrid", doctinfo[3]);
  568. model.setValue("root/main/cond/unprepdrbase/unprepdrnm", doctinfo[4]);
  569. }
  570. }else{
  571. model.setValue("root/main/cond/unprepdrbase/unprepdrid", model.getValue("/root/main/unprepdrinfo/unprepdrlist/orddrid"));
  572. model.setValue("root/main/cond/unprepdrbase/unprepdrnm", model.getValue("/root/main/unprepdrinfo/unprepdrlist/orddrnm"));
  573. }
  574. model.refresh();
  575. }
  576. ]]>
  577. </script>
  578. </input>
  579. <input id="ipt_pid" ref="/root/main/cond/unpreppatbase/pid" class="input_search" visibility="hidden" style="left:89px; top:28px; width:65px; height:19px; ">
  580. <script type="javascript" ev:event="onkeypress">
  581. <![CDATA[
  582. // if(event.keycode == 13){
  583. fReqGetUnPrepPatChosInfo(ipt_pid.currentText, "I", "A");
  584. // knuh_20110801_수정
  585. //cmb_chosinfo.select(0);
  586. var indd = model.getValue("/root/main/cond/unpreppatbase/indd");
  587. //alert(model.getValue("/root/main/patinfo/pathistlist[orddd = '" + indd +"']/rowcnt"));
  588. var rowcnt = model.getValue("/root/main/patinfo/pathistlist[orddd = '" + indd +"']/rowcnt");
  589. //alert(rowcnt);
  590. //model.setValue("/root/main/cond/unpreppatbase/chosinfo/rowcnt", rowcnt);
  591. cmb_chosinfo.select(rowcnt-1);
  592. var pid = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/pid");
  593. var indd = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/orddd");
  594. var cretno = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/cretno");
  595. var hngnm = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/hngnm");
  596. var dschdd = model.getValue("/root/main/patinfo/pathistlist[rowcnt='" + cmb_chosinfo.value + "']/dschdd");
  597. if(dschdd != '재원중'){
  598. indschflag = "D";
  599. }else{
  600. indschflag = "I";
  601. }
  602. model.setValue("/root/main/cond/unpreppatbase/pid" , pid);
  603. model.setValue("/root/main/cond/unpreppatbase/indd" , indd);
  604. model.setValue("/root/main/cond/unpreppatbase/cretno", cretno);
  605. model.setValue("/root/main/cond/unpreppatbase/hngnm" , hngnm);
  606. model.setValue("/root/main/delivefact/medirecalertcnts", "");
  607. model.setValue("/root/main/delivefact/dralertcnts", "");
  608. model.refresh();
  609. btn_requnpreppatbase.dispatch("DOMActivate");
  610. // var wndobj = getOpenWindow("SPMRI02700");
  611. // if(wndobj != null){
  612. // setParameter("SPMRI02700_pid", pid);
  613. // wndobj.javascript.fReqGetUnPrepOpList();
  614. // wndobj.model.setFocus("grd_unprepoplist");
  615. // wndobj.model.refresh();
  616. // }
  617. //
  618. // var wndobj2 = getOpenWindow("SPMRI02600");
  619. // if(wndobj2 != null){
  620. // wndobj2.javascript.gRecLoad = "N";
  621. // wndobj2.javascript.fSetPatInfo(pid, indd, cretno, indschflag);
  622. //
  623. // }
  624. //
  625. // //미비기록 연동창이 떠 있는 경우, 재조회 처리함
  626. // //2009. 02. 18 오지훈
  627. // if(grd_patreclist.visible == true){
  628. // fReqGetPatRecList(pid, indd, cretno);
  629. // sBFPID = pid;
  630. // sBFORDDD = indd;
  631. // sBFCRETNO = cretno;
  632. // }
  633. // }
  634. ]]>
  635. </script>
  636. </input>
  637. <caption id="caption1" visibility="hidden" style="left:742px; top:83px; width:15px; height:15px; ">~</caption>
  638. <caption id="caption2" class="search_name" visibility="hidden" style="left:407px; top:39px; width:86px; height:17px; ">재원구분 :</caption>
  639. <select1 id="rdo_inoutflag" ref="/root/main/cond/unprepdrbase/dschflag" visibility="hidden" appearance="full" cellspacing="3" cols="4" rows="1" overflow="visible" style="left:494px; top:39px; width:199px; height:20px; border-style:none; ">
  640. <choices>
  641. <item>
  642. <label>퇴원</label>
  643. <value>D</value>
  644. </item>
  645. <item>
  646. <label>재원</label>
  647. <value>I</value>
  648. </item>
  649. <item>
  650. <label>외래</label>
  651. <value>O</value>
  652. </item>
  653. <item>
  654. <label>응급실</label>
  655. <value>E</value>
  656. </item>
  657. </choices>
  658. <script type="javascript" ev:event="xforms-value-changed">
  659. <![CDATA[
  660. //재원구분 퇴원
  661. if(rdo_inoutflag.value == "D"){
  662. model.setValue("/root/main/cond/unprepdrbase/srchflag", "dsch");
  663. }else if(rdo_inoutflag.value == "I"){
  664. model.setValue("/root/main/cond/unprepdrbase/srchflag", "indd");
  665. }else if(rdo_inoutflag.value == "O"){
  666. model.setValue("/root/main/cond/unprepdrbase/srchflag", "orddd");
  667. }else if(rdo_inoutflag.value == "E"){
  668. model.setValue("/root/main/cond/unprepdrbase/srchflag", "orddd");
  669. }
  670. model.refresh();
  671. ]]>
  672. </script>
  673. </select1>
  674. <caption id="caption3" class="search_name" visibility="hidden" style="left:4px; top:52px; width:86px; height:17px; ">내원정보</caption>
  675. <select1 id="combo2" ref="/root/main/cond/unprepdrbase/doctkindflag" visibility="hidden" appearance="minimal" style="left:668px; top:19px; width:70px; height:19px; ">
  676. <choices>
  677. <item>
  678. <label>전체</label>
  679. <value>-</value>
  680. </item>
  681. <item>
  682. <label>스태프</label>
  683. <value>St</value>
  684. </item>
  685. <item>
  686. <label>레지던트</label>
  687. <value>R</value>
  688. </item>
  689. <item>
  690. <label>인턴</label>
  691. <value>I</value>
  692. </item>
  693. </choices>
  694. </select1>
  695. <caption id="caption4" class="search_name" visibility="hidden" style="left:407px; top:61px; width:86px; height:17px; ">미비구분 :</caption>
  696. <caption id="caption5" class="search_name" visibility="hidden" style="left:4px; top:28px; width:86px; height:17px; ">등록번호 :</caption>
  697. <input id="ipt_todd" ref="/root/main/cond/unprepdrbase/todd" disabled="true" visibility="hidden" inputtype="date" style="left:755px; top:83px; width:90px; height:19px; "/>
  698. <caption id="cap_reqflag" class="search_name" visibility="hidden" style="left:406px; top:83px; width:86px; height:17px; ">조회구분 :</caption>
  699. <caption id="caption6" class="search_name" visibility="hidden" style="left:581px; top:19px; width:99px; height:17px; ">의사구분 :</caption>
  700. <caption id="caption8" class="search_name" visibility="hidden" style="left:407px; top:19px; width:89px; height:17px; ">미비의사 :</caption>
  701. <select1 id="cmb_orddept" ref="/root/main/cond/unprepdrbase/orddeptcd" class="combo_search" visibility="hidden" appearance="minimal" editmode="inputsearch" style="left:861px; top:18px; width:107px; height:19px; ">
  702. <choices>
  703. <itemset nodeset="/root/init/orddept/dept">
  704. <label ref="depthngnm"/>
  705. <value ref="deptcd"/>
  706. </itemset>
  707. </choices>
  708. <script type="javascript" ev:event="xforms-value-changed">
  709. <![CDATA[
  710. // 외과, 소아청소년과, 산부인과 세부 분과 활성화함.
  711. var orddeptcd = model.getValue("/root/main/cond/unprepdrbase/orddeptcd");
  712. if(orddeptcd == "2040000000"
  713. || orddeptcd == "2110000000"
  714. || orddeptcd == "2100000000")
  715. {
  716. radio_detldept.disabled = false;
  717. radio_detldept.value = "Y";
  718. cmb_detldept.disabled = false;
  719. //미비과에 따라 미비분과 combo정보를 변경
  720. if(orddeptcd == "2040000000"){ //외과
  721. cmb_detldept.choices.itemset.attribute("nodeset") = "/root/init/M0501/M0501";
  722. }else if(orddeptcd == "2100000000"){ //산부인과
  723. cmb_detldept.choices.itemset.attribute("nodeset") = "/root/init/M0502/M0502";
  724. }else if(orddeptcd == "2110000000"){ //소아과
  725. cmb_detldept.choices.itemset.attribute("nodeset") = "/root/init/M0503/M0503";
  726. }
  727. addComboItem("cmb_detldept", "전체", "ALL", "above");
  728. cmb_detldept.select(0);
  729. cmb_detldept.refresh();
  730. }
  731. else
  732. {
  733. radio_detldept.disabled = true;
  734. radio_detldept.value = "N";
  735. cmb_detldept.choices.itemset.attribute("nodeset") = "/root/init/M0504/M0504";
  736. model.setValue("/root/main/cond/unprepdrbase/detldeptcd", "");
  737. cmb_detldept.disabled = true;
  738. cmb_detldept.refresh();
  739. }
  740. ]]>
  741. </script>
  742. </select1>
  743. <select1 id="rdo_deptflag" ref="/root/main/cond/unprepdrbase/deptflag" visibility="hidden" appearance="full" cols="4" rows="1" overflow="visible" style="left:748px; top:19px; width:113px; height:21px; border-style:none; ">
  744. <choices>
  745. <item>
  746. <label>미비과</label>
  747. <value>unprep</value>
  748. </item>
  749. <item>
  750. <label>퇴원과</label>
  751. <value>dsch</value>
  752. </item>
  753. </choices>
  754. </select1>
  755. <input id="ipt_fromdd" ref="/root/main/cond/unprepdrbase/fromdd" disabled="true" visibility="hidden" inputtype="date" style="left:651px; top:83px; width:90px; height:19px; "/>
  756. <caption id="caption20" class="tit_2" visibility="hidden" style="left:3px; top:114px; width:108px; height:13px; ">
  757. <![CDATA[미비기록리스트]]>
  758. <script type="javascript" ev:event="ondblclick">
  759. <![CDATA[
  760. if(chk_merge.visible == false)
  761. {
  762. chk_merge.visible = true;
  763. return;
  764. }
  765. if(chk_merge.visible == true)
  766. {
  767. chk_merge.visible = false;
  768. return;
  769. }
  770. ]]>
  771. </script>
  772. </caption>
  773. <input id="input1" ref="/root/main/cond/unpreppatbase/hngnm" class="input_search" visibility="hidden" style="left:177px; top:28px; width:70px; height:19px; ">
  774. <script type="javascript" ev:event="onkeypress">
  775. <![CDATA[
  776. ]]>
  777. </script>
  778. </input>
  779. <select1 id="cmb_chosinfo" ref="/root/main/cond/unpreppatbase/chosinfo" visibility="hidden" appearance="minimal" style="left:12px; top:74px; width:370px; height:19px; ">
  780. <choices>
  781. <itemset nodeset="/root/main/patinfo/pathistlist">
  782. <label ref="chosinfo"/>
  783. <value ref="rowcnt"/>
  784. </itemset>
  785. </choices>
  786. <script type="javascript" ev:event="xforms-value-changed">
  787. <![CDATA[
  788. var pid = model.getValue("/root/main/patinfo/pathistlist[rowcnt ='" + cmb_chosinfo.value + "']/pid");
  789. var indd= model.getValue("/root/main/patinfo/pathistlist[rowcnt ='" + cmb_chosinfo.value + "']/orddd");
  790. var cretno= model.getValue("/root/main/patinfo/pathistlist[rowcnt ='" + cmb_chosinfo.value + "']/cretno");
  791. var dschdd= model.getValue("/root/main/patinfo/pathistlist[rowcnt ='" + cmb_chosinfo.value + "']/dschdd");
  792. model.setValue("/root/main/cond/unpreppatbase/pid" , pid);
  793. model.setValue("/root/main/cond/unpreppatbase/indd" , indd);
  794. model.setValue("/root/main/cond/unpreppatbase/cretno" , cretno);
  795. model.refresh();
  796. btn_requnpreppatbase.dispatch("DOMActivate");
  797. if(dschdd != '재원중'){
  798. indschflag = "D";
  799. }else{
  800. indschflag = "I";
  801. }
  802. var wndobj = getOpenWindow("SPMRI02700");
  803. if(wndobj != null){
  804. setParameter("SPMRI02700_pid", pid);
  805. wndobj.javascript.fReqGetUnPrepOpList();
  806. wndobj.model.setFocus("grd_unprepoplist");
  807. wndobj.model.refresh();
  808. }
  809. var wndobj2 = getOpenWindow("SPMRI02600");
  810. if(wndobj2 != null){
  811. wndobj2.javascript.gRecLoad = "N";
  812. wndobj2.javascript.fSetPatInfo(pid, indd, cretno, indschflag);
  813. }
  814. //미비기록 연동창이 떠 있는 경우, 재조회 처리함
  815. //2009. 02. 18 오지훈
  816. if(grd_patreclist.visible == true){
  817. fReqGetPatRecList(pid, indd, cretno);
  818. sBFPID = pid;
  819. sBFORDDD = indd;
  820. sBFCRETNO = cretno;
  821. }
  822. ]]>
  823. </script>
  824. </select1>
  825. <button id="btn_requnpreppatbase" class="btn1_letter2" visibility="hidden" style="left:327px; top:34px; width:56px; height:22px; ">
  826. <caption>조회</caption>
  827. <script type="javascript" ev:event="DOMActivate">
  828. <![CDATA[
  829. fReqGetUnPrepRecList();
  830. model.setValue("/root/main/delivefact/medirecalertcnts", "");
  831. model.setValue("/root/main/delivefact/dralertcnts", "");
  832. ]]>
  833. </script>
  834. </button>
  835. <line id="line2" visibility="hidden" style="x1:318px; y1:25px; x2:318px; y2:65px; border-color:#ffe4bb; border-left-style:solid; "/>
  836. <output id="opt_formcd" ref="/root/main/cond/reccnt" class="output_fix" visibility="hidden" appearance="output" style="left:373px; top:109px; width:30px; height:19px; "/>
  837. <caption id="caption7" class="search_name" visibility="hidden" style="left:116px; top:110px; width:99px; height:17px; ">미비환자수 :</caption>
  838. <output id="opt_pid" ref="/root/main/cond/patcnt" class="output_fix" visibility="hidden" appearance="output" style="left:213px; top:109px; width:30px; height:19px; "/>
  839. <caption id="caption11" class="search_name" visibility="hidden" style="left:261px; top:110px; width:112px; height:17px; ">미비기록건수 :</caption>
  840. <group id="group1" style="left:812px; top:183px; width:218px; height:55px; background-color:#99ccff; border-color:#3366ff; border-style:solid; ">
  841. <caption id="caption12" style="left:5px; top:5px; width:41px; height:20px; font-weight:bold; vertical-align:middle; ">미비과</caption>
  842. <button id="btn_cnfm" class="btn2_letter2" style="left:122px; top:26px; width:42px; height:19px; ">
  843. <caption>확인</caption>
  844. <script type="javascript" ev:event="DOMActivate">
  845. <![CDATA[
  846. grd_unprepreclist.disabled = false;
  847. btn_requnpreppatbase.disabled = false;
  848. btn_requnprepdrbase.disabled = false;
  849. btn_realunprep.disabled = false;
  850. btn_opinfo.disabled = false;
  851. btn_totrec.disabled = false;
  852. btn_unprepcert.disabled = false;
  853. btn_del.disabled = false;
  854. btn_ex.disabled = false;
  855. btn_save.disabled = false;
  856. group1.attribute("height") = 0;
  857. fReqSetUnPrepDeptCD();
  858. ]]>
  859. </script>
  860. </button>
  861. <button id="button6" class="btn2_letter2" style="left:166px; top:26px; width:42px; height:19px; ">
  862. <caption>취소</caption>
  863. <script type="javascript" ev:event="DOMActivate">
  864. <![CDATA[
  865. grd_unprepreclist.disabled = false;
  866. btn_requnpreppatbase.disabled = false;
  867. btn_requnprepdrbase.disabled = false;
  868. btn_realunprep.disabled = false;
  869. btn_opinfo.disabled = false;
  870. btn_totrec.disabled = false;
  871. btn_unprepcert.disabled = false;
  872. btn_del.disabled = false;
  873. btn_ex.disabled = false;
  874. btn_save.disabled = false;
  875. group1.attribute("height") = 0;
  876. ]]>
  877. </script>
  878. </button>
  879. <select1 id="combo1" ref="/root/init/unprepdeptcd" appearance="minimal" style="left:52px; top:5px; width:156px; height:19px; ">
  880. <choices>
  881. <itemset nodeset="/root/init/orddept/dept">
  882. <label ref="depthngnm"/>
  883. <value ref="deptcd"/>
  884. </itemset>
  885. </choices>
  886. </select1>
  887. </group>
  888. <button id="btn_totrec" class="btn2_letter6" style="left:1063px; top:1px; width:86px; height:19px; ">
  889. <caption>통합기록조회</caption>
  890. <script type="javascript" ev:event="DOMActivate">
  891. <![CDATA[
  892. var currow = grd_unprepreclist.row;
  893. var pid = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/pid");
  894. if(pid == ""){
  895. messageBox("통합기록조회를 검색할 환자를", "C002");
  896. return;
  897. }
  898. var monitorNumber = app.monitorNumber;
  899. var monitorResolutions = app.monitorResolution;
  900. var monitorResolutionsArr = monitorResolutions.split('|');
  901. var resolution = monitorResolutionsArr[monitorNumber-1];
  902. var resolution_width = resolution.split(',')[0];
  903. var resolution_height = resolution.split(',')[1];
  904. var wndobj = getOpenWindow("SMMRI00400");
  905. if(wndobj != null){
  906. setParameter("SMMRI00400_param_pid", pid);
  907. wndobj.javascript.fInitalize();
  908. }else{
  909. setParameter("SMMRI00400_param_pid", pid);
  910. open("SMMRI00400", monitorNumber, 0, 0);
  911. }
  912. ]]>
  913. </script>
  914. </button>
  915. <bool id="bool1" visibility="hidden" checkvalue="Y,N" ref="/root/main/cond/unprepdrbase/dayflag" style="left:491px; top:82px; width:30px; height:20px; ">
  916. <script type="javascript" ev:event="xforms-value-changed">
  917. <![CDATA[
  918. if(bool1.value == "Y"){
  919. cmb_inoutddflag.disabled = false;
  920. ipt_fromdd.disabled = false;
  921. ipt_todd.disabled = false;
  922. }else{
  923. cmb_inoutddflag.disabled = true;
  924. ipt_fromdd.disabled = true;
  925. ipt_todd.disabled = true;
  926. }
  927. model.refresh();
  928. ]]>
  929. </script>
  930. </bool>
  931. <caption id="caption15" visibility="hidden" style="left:516px; top:83px; width:50px; height:20px; ">날짜조회</caption>
  932. <button id="button4" style="left:440px; top:0px; width:28px; height:20px; background-image:../../../com/commonweb/images/btn_send_right.gif; ">
  933. <caption/>
  934. <script type="javascript" ev:event="DOMActivate">
  935. <![CDATA[
  936. grd_unprepreclist.colHidden(grd_unprepreclist.colRef("indd")) = false;
  937. grd_unprepreclist.refresh();
  938. ]]>
  939. </script>
  940. </button>
  941. <button id="button2" style="left:412px; top:0px; width:28px; height:20px; background-image:../../../com/commonweb/images/btn_send_left.gif; ">
  942. <caption/>
  943. <script type="javascript" ev:event="DOMActivate">
  944. <![CDATA[
  945. grd_unprepreclist.colHidden(grd_unprepreclist.colRef("indd")) = true;
  946. grd_unprepreclist.refresh();
  947. ]]>
  948. </script>
  949. </button>
  950. <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; ">
  951. <col ref="check" type="output"/>
  952. <col ref="formrecseq"/>
  953. <col ref="formrecdd" format="yyyy-mm-dd"/>
  954. <col ref="formrechm" format="hh:nn"/>
  955. <col ref="oprsrvno"/>
  956. <col ref="srcformcd"/>
  957. <col ref="formcd"/>
  958. <col ref="formnm"/>
  959. <col ref="certyn"/>
  960. <col ref="cosignyn"/>
  961. <col ref="formrecdeptcd" visibility="hidden"/>
  962. <col ref="formrecdeptnm"/>
  963. <col ref="formrecuserid" visibility="hidden"/>
  964. <col ref="formrecusernm"/>
  965. <script type="javascript" ev:event="onclick">
  966. <![CDATA[
  967. var currow = grd_patreclist.row;
  968. var curcol = grd_patreclist.col;
  969. // 그리드 header의 X를 클릭하면 그리드 hidden
  970. if(currow == 0 && curcol == grd_patreclist.colRef("check")){
  971. grd_patreclist.attribute("visibility") = "hidden";
  972. }
  973. model.refresh();
  974. ]]>
  975. </script>
  976. <script type="javascript" ev:event="onkeypress">
  977. <![CDATA[
  978. if(event.keyCode == 13){
  979. var trgtrow = grd_unprepreclist.row;
  980. var srcrow = grd_patreclist.row;
  981. if(srcrow > 0){
  982. var srcformcd = model.getValue(grd_patreclist.nodeset + "[" + srcrow + "]/srcformcd");
  983. var trgtsrcformcd = model.getValue(grd_unprepreclist.nodeset + "[" + srcrow + "]/srcformcd");
  984. }
  985. }
  986. ]]>
  987. </script>
  988. <script type="javascript" ev:event="ondblclick">
  989. <![CDATA[
  990. if(isDataCell()){
  991. var trgtrow = grd_unprepreclist.row;
  992. var srcrow = grd_patreclist.row;
  993. var trgtformrecseq = model.getValue(grd_unprepreclist.nodeset + "[" + trgtrow + "]/formrecseq");
  994. var trgtsrcformcd = model.getValue(grd_unprepreclist.nodeset + "[" + trgtrow + "]/srcformcd");
  995. var formrecseq = model.getValue(grd_patreclist.nodeset + "[" + srcrow + "]/formrecseq");
  996. var srcformcd = model.getValue(grd_patreclist.nodeset + "[" + srcrow + "]/srcformcd");
  997. var oprsrvno = model.getValue(grd_patreclist.nodeset + "[" + srcrow + "]/oprsrvno");
  998. if(formrecseq <= 0){
  999. return;
  1000. }
  1001. if(trgtsrcformcd == srcformcd){
  1002. var checkcol = grd_unprepreclist.colRef("check");
  1003. model.setValue(grd_unprepreclist.nodeset + "[" + trgtrow + "]/formrecseq", formrecseq);
  1004. model.setValue(grd_unprepreclist.nodeset + "[" + trgtrow + "]/check" , "V");
  1005. model.setValue(grd_unprepreclist.nodeset + "[" + trgtrow + "]/status", "uf");
  1006. model.setValue(grd_unprepreclist.nodeset + "[" + trgtrow + "]/oprsrvno", oprsrvno);
  1007. model.setValue(grd_patreclist.nodeset + "[" + srcrow + "]/check", "<<");
  1008. grd_unprepreclist.cellStyle("background-color", trgtrow, checkcol, trgtrow, checkcol) = "#800080";
  1009. }else{
  1010. messageBox("서로 다른 서식", "I009");
  1011. return;
  1012. }
  1013. model.refresh();
  1014. }
  1015. ]]>
  1016. </script>
  1017. <script type="javascript" ev:event="onaftersort">
  1018. <![CDATA[
  1019. grd_patreclist.gridToInstance();
  1020. ]]>
  1021. </script>
  1022. </datagrid>
  1023. <script type="javascript" ev:event="onkeypress">
  1024. <![CDATA[
  1025. // ESC 키 이벤트
  1026. if(event.KeyCode == 27){
  1027. var cloakval = grd_patreclist.attribute("visibility");
  1028. if(cloakval == "visible"){
  1029. grd_patreclist.attribute("visibility")="hidden";
  1030. }else{
  1031. var currow = grd_unprepreclist.row;
  1032. var pid = model.getValue(grd_unprepreclist.nodeset + "[" + currow + "]/pid");
  1033. var orddd = model.getValue(grd_unprepreclist.nodeset + "[" + currow + "]/indd");
  1034. var cretno= model.getValue(grd_unprepreclist.nodeset + "[" + currow + "]/cretno");
  1035. if(pid != sBFPID ||
  1036. (sBFPID == "" && sBFORDDD == "" && sBFCRETNO == "") ||
  1037. (pid == sBFPID && (orddd != sBFORDDD || cretno != sBFCRETNO)))
  1038. {
  1039. fReqGetPatRecList(pid, orddd, cretno);
  1040. sBFPID = pid;
  1041. sBFORDDD = orddd;
  1042. sBFCRETNO= cretno;
  1043. }
  1044. grd_patreclist.attribute("visibility")="visible";
  1045. grd_patreclist.attribute("visibility")="visible";
  1046. }
  1047. grd_patreclist.refresh();
  1048. }
  1049. ]]>
  1050. </script>
  1051. <group id="group2" style="left:480px; top:305px; width:245px; height:0px; border-style:solid; ">
  1052. <button id="button7" class="btn2_letter2" style="left:149px; top:39px; width:42px; height:19px; ">
  1053. <caption>확인</caption>
  1054. <script type="javascript" ev:event="DOMActivate">
  1055. <![CDATA[
  1056. grd_unprepreclist.disabled = false;
  1057. btn_requnpreppatbase.disabled = false;
  1058. btn_requnprepdrbase.disabled = false;
  1059. btn_realunprep.disabled = false;
  1060. btn_opinfo.disabled = false;
  1061. btn_totrec.disabled = false;
  1062. btn_unprepcert.disabled = false;
  1063. btn_del.disabled = false;
  1064. btn_ex.disabled = false;
  1065. btn_save.disabled = false;
  1066. group2.attribute("height") = 0;
  1067. reqGetUnPrepCreateExcelFile();
  1068. ]]>
  1069. </script>
  1070. </button>
  1071. <button id="button8" class="btn2_letter2" style="left:194px; top:39px; width:42px; height:19px; ">
  1072. <caption>취소</caption>
  1073. <script type="javascript" ev:event="DOMActivate">
  1074. <![CDATA[
  1075. grd_unprepreclist.disabled = false;
  1076. btn_requnpreppatbase.disabled = false;
  1077. btn_requnprepdrbase.disabled = false;
  1078. btn_realunprep.disabled = false;
  1079. btn_opinfo.disabled = false;
  1080. btn_totrec.disabled = false;
  1081. btn_unprepcert.disabled = false;
  1082. btn_del.disabled = false;
  1083. btn_ex.disabled = false;
  1084. btn_save.disabled = false;
  1085. group2.attribute("height") = 0;
  1086. ]]>
  1087. </script>
  1088. </button>
  1089. <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; ">
  1090. <choices>
  1091. <item>
  1092. <label>1개월</label>
  1093. <value>1</value>
  1094. </item>
  1095. <item>
  1096. <label>2개월</label>
  1097. <value>2</value>
  1098. </item>
  1099. <item>
  1100. <label>3개월</label>
  1101. <value>3</value>
  1102. </item>
  1103. </choices>
  1104. </select1>
  1105. <caption id="caption14" class="tit_2" style="left:4px; top:4px; width:218px; height:13px; ">excel화일 생성 기간지정</caption>
  1106. <caption id="caption13" class="search_name" visibility="hidden" style="left:-1px; top:44px; width:86px; height:17px; ">시작일자 :</caption>
  1107. <caption id="caption16" class="search_name" visibility="hidden" style="left:-1px; top:39px; width:86px; height:17px; ">종료일자 :</caption>
  1108. <input id="input2" ref="/root/main/cond/excelcond/startdate" visibility="hidden" inputtype="date" style="left:89px; top:44px; width:90px; height:19px; "/>
  1109. <input id="input3" ref="/root/main/cond/excelcond/enddate" visibility="hidden" inputtype="date" style="left:89px; top:39px; width:90px; height:19px; "/>
  1110. </group>
  1111. <group id="group3" style="left:870px; top:230px; width:218px; height:55px; background-color:#99ccff; border-color:#3366ff; border-style:solid; ">
  1112. <caption id="caption17" style="left:5px; top:5px; width:54px; height:20px; font-weight:bold; vertical-align:middle; ">미비분과</caption>
  1113. <button id="button9" class="btn2_letter2" style="left:122px; top:26px; width:42px; height:19px; ">
  1114. <caption>확인</caption>
  1115. <script type="javascript" ev:event="DOMActivate">
  1116. <![CDATA[
  1117. grd_unprepreclist.disabled = false;
  1118. btn_requnpreppatbase.disabled = false;
  1119. btn_requnprepdrbase.disabled = false;
  1120. btn_realunprep.disabled = false;
  1121. btn_opinfo.disabled = false;
  1122. btn_totrec.disabled = false;
  1123. btn_unprepcert.disabled = false;
  1124. btn_del.disabled = false;
  1125. btn_ex.disabled = false;
  1126. btn_save.disabled = false;
  1127. group3.attribute("height") = 0;
  1128. fSetDetlDeptCD();
  1129. ]]>
  1130. </script>
  1131. </button>
  1132. <button id="button10" class="btn2_letter2" style="left:166px; top:26px; width:42px; height:19px; ">
  1133. <caption>취소</caption>
  1134. <script type="javascript" ev:event="DOMActivate">
  1135. <![CDATA[
  1136. grd_unprepreclist.disabled = false;
  1137. btn_requnpreppatbase.disabled = false;
  1138. btn_requnprepdrbase.disabled = false;
  1139. btn_realunprep.disabled = false;
  1140. btn_opinfo.disabled = false;
  1141. btn_totrec.disabled = false;
  1142. btn_unprepcert.disabled = false;
  1143. btn_del.disabled = false;
  1144. btn_ex.disabled = false;
  1145. btn_save.disabled = false;
  1146. group3.attribute("height") = 0;
  1147. ]]>
  1148. </script>
  1149. </button>
  1150. <select1 id="cmb_detldeptcd" ref="/root/main/unprepdeptcd/detldeptcd" appearance="minimal" style="left:64px; top:5px; width:144px; height:19px; ">
  1151. <choices>
  1152. <itemset>
  1153. <label ref="cdnm"/>
  1154. <value ref="cdid"/>
  1155. </itemset>
  1156. </choices>
  1157. </select1>
  1158. </group>
  1159. <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; ">
  1160. <choices>
  1161. <item>
  1162. <label>미비분과</label>
  1163. <value>Y</value>
  1164. </item>
  1165. </choices>
  1166. </select1>
  1167. <select1 id="cmb_detldept" ref="/root/main/cond/unprepdrbase/detldeptcd" disabled="true" visibility="hidden" appearance="minimal" style="left:971px; top:18px; width:62px; height:19px; ">
  1168. <choices>
  1169. <itemset>
  1170. <label ref="cdnm"/>
  1171. <value ref="cdid"/>
  1172. </itemset>
  1173. </choices>
  1174. </select1>
  1175. <select id="chk_unprepflagDel" ref="/root/main/cond/unprepdrbase/unprepstat" visibility="hidden" overflow="visible" appearance="full" style="left:843px; top:61px; width:75px; height:20px; border-style:none; ">
  1176. <choices>
  1177. <item>
  1178. <label>기록삭제</label>
  1179. <value>8</value>
  1180. </item>
  1181. </choices>
  1182. <script type="javascript" ev:event="xforms-select">
  1183. <![CDATA[
  1184. chk_unprepflagA.deselect(0);
  1185. chk_unprepflagB.deselect(0);
  1186. chk_unprepflagC.deselect(0);
  1187. chk_unprepflagD.deselect(0);
  1188. chk_unprepflagR.deselect(0);
  1189. chk_unprepflagS.deselect(0);
  1190. ]]>
  1191. </script>
  1192. </select>
  1193. <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; ">
  1194. <choices>
  1195. <item>
  1196. <label>셀머지</label>
  1197. <value>1</value>
  1198. </item>
  1199. </choices>
  1200. <script type="javascript" ev:event="xforms-select">
  1201. <![CDATA[
  1202. fDoMergeUnPrepRecList();
  1203. ]]>
  1204. </script>
  1205. <script type="javascript" ev:event="xforms-deselect">
  1206. <![CDATA[
  1207. fDoUnMergeUnPrepRecList();
  1208. ]]>
  1209. </script>
  1210. </select>
  1211. <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; ">
  1212. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  1213. <col ref="medirecalertcnts"/>
  1214. </datagrid>
  1215. <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; ">
  1216. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  1217. <col ref="dralertcnts"/>
  1218. </datagrid>
  1219. <button id="btn_opinfo" class="btn2_letter6" style="left:976px; top:1px; width:86px; height:19px; ">
  1220. <caption>수술정보조회</caption>
  1221. <script type="javascript" ev:event="DOMActivate">
  1222. <![CDATA[
  1223. var pid = "";
  1224. if(model.getValue("/root/init/hardcd/hardcd/hardcd") == "Y")
  1225. {
  1226. if(grd_unprepreclist.rows > 0)
  1227. {
  1228. var currow = grd_unprepreclist.row;
  1229. if(currow > 0)
  1230. pid = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/pid"); // 미비조회 버튼으로 조회한 환자의 PID로 검색
  1231. else
  1232. pid = model.getValue("/root/main/cond/unpreppatbase/pid"); // PID로 조회한 환자의 PID로 수술정보를 검색
  1233. }
  1234. }
  1235. else
  1236. {
  1237. pid = model.getValue("/root/main/cond/unpreppatbase/pid"); // 조회한 환자의 PID로 검색
  1238. }
  1239. if(pid != ""){
  1240. setParameter("SPMRI02700_pid", pid);
  1241. open("SPMRI02700", 1, 400, 0);
  1242. }else{
  1243. messageBox("등록번호를", "C001");
  1244. return;
  1245. }
  1246. ]]>
  1247. </script>
  1248. </button>
  1249. <button id="btn_ex" class="btn2_letter2" style="left:1150px; top:1px; width:42px; height:19px; ">
  1250. <caption>엑셀</caption>
  1251. <script type="javascript" ev:event="DOMActivate">
  1252. <![CDATA[
  1253. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1254. if (fileName != ""){
  1255. 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;");
  1256. }
  1257. ]]>
  1258. </script>
  1259. </button>
  1260. <datagrid id="grd_unprepreclist" nodeset="/root/main/unpreprecinfo/unprepreclist" disabled="false" 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, 90, 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:22px; width:1194px; height:754px; ">
  1261. <col disabled="true" ref="status" type="combo">
  1262. <choices>
  1263. <item>
  1264. <label>신규</label>
  1265. <value>i</value>
  1266. </item>
  1267. <item>
  1268. <label>수정</label>
  1269. <value>u</value>
  1270. </item>
  1271. <item>
  1272. <label>삭제</label>
  1273. <value>d</value>
  1274. </item>
  1275. <item>
  1276. <label>수정</label>
  1277. <value>ua</value>
  1278. </item>
  1279. <item>
  1280. <label>수정</label>
  1281. <value>ud</value>
  1282. </item>
  1283. <item>
  1284. <label>수정</label>
  1285. <value>uo</value>
  1286. </item>
  1287. <item>
  1288. <label>수정</label>
  1289. <value>up</value>
  1290. </item>
  1291. </choices>
  1292. </col>
  1293. <col ref="check" type="output"/>
  1294. <col ref="delyn" visibility="hidden"/>
  1295. <col ref="indschflag" type="output" visibility="hidden"/>
  1296. <col ref="pid" visibility="hidden" style="vertical-align:top; "/>
  1297. <col ref="cretno" visibility="hidden"/>
  1298. <col ref="hngnm" visibility="hidden" style="vertical-align:top; "/>
  1299. <col ref="formrecseq" visibility="hidden"/>
  1300. <col ref="dschdeptcd" visibility="hidden"/>
  1301. <col ref="dschdeptnm" style="vertical-align:top; "/>
  1302. <col ref="unprepno" visibility="hidden"/>
  1303. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; vertical-align:top; "/>
  1304. <col ref="indd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; vertical-align:top; "/>
  1305. <col ref="medispclnm" style="vertical-align:top; "/>
  1306. <col ref="orgunprepstat" visibility="hidden"/>
  1307. <col disabled="true" ref="unprepstat" type="combo">
  1308. <choices>
  1309. <item>
  1310. <label>배치미비</label>
  1311. <value>0</value>
  1312. </item>
  1313. <item>
  1314. <label>미비확인</label>
  1315. <value>1</value>
  1316. </item>
  1317. <item>
  1318. <label>의사확인</label>
  1319. <value>2</value>
  1320. </item>
  1321. <item>
  1322. <label>재미비</label>
  1323. <value>3</value>
  1324. </item>
  1325. <item>
  1326. <label>완료</label>
  1327. <value>4</value>
  1328. </item>
  1329. <item>
  1330. <label>기록삭제</label>
  1331. <value>8</value>
  1332. </item>
  1333. </choices>
  1334. </col>
  1335. <col ref="doctkindflag"/>
  1336. <col ref="orgdoctkindflag" visibility="hidden"/>
  1337. <col ref="unprepdrnm" style="text-align:center; "/>
  1338. <col ref="orgunprepdrnm" visibility="hidden"/>
  1339. <col ref="unprepdeptnm" style="text-align:left; "/>
  1340. <col ref="detldeptnm" style="text-align:left; "/>
  1341. <col ref="orgdetldeptnm" visibility="hidden"/>
  1342. <col ref="detldeptcd" visibility="hidden"/>
  1343. <col ref="orgdetldeptcd" visibility="hidden"/>
  1344. <col ref="orgunprepdeptnm" visibility="hidden"/>
  1345. <col ref="orddeptcd" visibility="hidden"/>
  1346. <col ref="orgorddeptcd" visibility="hidden"/>
  1347. <col ref="unprepdrid" visibility="hidden"/>
  1348. <col ref="orgunprepdrid" visibility="hidden"/>
  1349. <col ref="formcd" visibility="hidden"/>
  1350. <col ref="formnm" style="text-align:left; "/>
  1351. <col ref="oprsrvno" visibility="hidden"/>
  1352. <col ref="unprepitemnm"/>
  1353. <col ref="formrecdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1354. <col ref="unprepitemcd" visibility="hidden"/>
  1355. <col ref="medirecalertcnts"/>
  1356. <col editable="false" ref="dralertcnts" type="output"/>
  1357. <col ref="drcnfmdt" format="yyyy-mm-dd hh:nn"/>
  1358. <col ref="srcformcd"/>
  1359. <col ref="fstrgstrnm"/>
  1360. <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn"/>
  1361. <col ref="lastupdtrnm"/>
  1362. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn"/>
  1363. <col ref="delusernm"/>
  1364. <col ref="deluserid" visibility="hidden"/>
  1365. <col ref="deldt" format="yyyy-mm-dd hh:nn"/>
  1366. <script type="javascript" ev:event="onclick">
  1367. <![CDATA[
  1368. var currow = grd_unprepreclist.row;
  1369. var curcol = grd_unprepreclist.col;
  1370. if(isDataCell()){
  1371. var medirecalertcnts = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/medirecalertcnts");
  1372. var dralertcnts = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/dralertcnts");
  1373. model.setValue("/root/main/delivefact/medirecalertcnts", medirecalertcnts);
  1374. model.setValue("/root/main/delivefact/dralertcnts" , dralertcnts);
  1375. //미비기록관리 check 컬럼을 클릭한 경우, 환자의 기록을 조회
  1376. //이전 환자수진 정보와 동일한 경우, 조회하지 않는다.
  1377. //2008. 1. 7 오지훈
  1378. if(curcol == grd_unprepreclist.colRef("check")){
  1379. var pid = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/pid");
  1380. var orddd = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/indd");
  1381. var cretno = model.getValue("/root/main/unpreprecinfo/unprepreclist[" + currow + "]/cretno");
  1382. if(pid != sBFPID ||
  1383. (sBFPID == "" && sBFORDDD == "" && sBFCRETNO == "") ||
  1384. (pid == sBFPID && (orddd != sBFORDDD || cretno != sBFCRETNO)))
  1385. {
  1386. fReqGetPatRecList(pid, orddd, cretno);
  1387. sBFPID = pid;
  1388. sBFORDDD = orddd;
  1389. sBFCRETNO = cretno;
  1390. }
  1391. grd_patreclist.attribute("visibility")="visible";
  1392. }
  1393. model.refresh();
  1394. }else{
  1395. //그리드 Header를 클릭한 경우,
  1396. if(currow == 0){
  1397. var srchflag = model.getValue("/root/main/cond/srchflag");
  1398. if(sORDERBY == "desc"){
  1399. sORDERBY = "asc";
  1400. }else{
  1401. sORDERBY = "desc";
  1402. }
  1403. var orderby = grd_unprepreclist.colAttribute(curcol, "ref") + " " + sORDERBY;
  1404. if(srchflag == "dr"){
  1405. model.setValue("/root/main/cond/unprepdrbase/orderby", orderby);
  1406. fReqGetUnPrepRecDrBaseList(model.getValue("/root/main/cond/unprepdrbase/unprepsign"));
  1407. }else if(srchflag == "pat"){
  1408. model.setValue("/root/main/cond/unpreppatbase/orderby", orderby);
  1409. fReqGetUnPrepRecList();
  1410. }
  1411. }
  1412. }
  1413. ]]>
  1414. </script>
  1415. </datagrid>
  1416. </xhtml:body>
  1417. </xhtml:html>