SPMMO09500_예외환자관리.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  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. <cond>
  11. <excpcls/>
  12. <pid/>
  13. <srchflag/>
  14. <deptcd/>
  15. <userid/>
  16. </cond>
  17. <patinfo>
  18. <patinfolist/>
  19. </patinfo>
  20. <list>
  21. <exptpatlist>
  22. <genrdd/>
  23. <genrno/>
  24. <instcd/>
  25. <excpcls/>
  26. <deptcd/>
  27. <deptnm/>
  28. <userid/>
  29. <usernm/>
  30. <pid/>
  31. <hngnm/>
  32. <fromdd/>
  33. <todd/>
  34. <histcd/>
  35. <histnm/>
  36. <histno/>
  37. <excpcd/>
  38. <excptext/>
  39. <fstrgstrdeptnm/>
  40. <fstrgstrid/>
  41. <fstrgstrusernm/>
  42. <fstrgstdt/>
  43. <lastupdtrdeptnm/>
  44. <lastupdtrid/>
  45. <lastupdtrusernm/>
  46. <lastupdtdt/>
  47. </exptpatlist>
  48. </list>
  49. <info>
  50. <exptpatinfo>
  51. <status/>
  52. <genrdd/>
  53. <genrno/>
  54. <instcd/>
  55. <excpcls/>
  56. <deptcd/>
  57. <deptnm/>
  58. <userid/>
  59. <usernm/>
  60. <pid/>
  61. <hngnm/>
  62. <fromdd/>
  63. <todd/>
  64. <histcd/>
  65. <histnm/>
  66. <histno/>
  67. <excpcd/>
  68. <excptext/>
  69. <fstrgstrdeptnm/>
  70. <fstrgstrid/>
  71. <fstrgstrusernm/>
  72. <fstrgstdt/>
  73. <lastupdtrdeptnm/>
  74. <lastupdtrid/>
  75. <lastupdtrusernm/>
  76. <lastupdtdt/>
  77. </exptpatinfo>
  78. </info>
  79. </main>
  80. <send>
  81. <reqdata/>
  82. <savedata/>
  83. </send>
  84. <hidden>
  85. </hidden>
  86. <init>
  87. <patinfo>
  88. <pid/>
  89. <hngnm/>
  90. </patinfo>
  91. <orddept/>
  92. <userlist1/>
  93. <userlist2/>
  94. <M0627/>
  95. </init>
  96. </root>
  97. </instance>
  98. <script type="javascript" ev:event="xforms-ready">
  99. <![CDATA[
  100. fInitialize();
  101. ]]>
  102. </script>
  103. <bind id="bind1" ref="/root/hidden/concpatinfo" calculate="&quot;now()+.&quot;"/>
  104. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  105. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  106. <submission id="TRMMO09502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list"/>
  107. <submission id="TXMMO09501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/list"/>
  108. </model>
  109. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  110. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  111. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  112. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  113. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  114. <script type="javascript" src="../../../emr/prcpmngtweb/js/SPMMO09500.js"/>
  115. </xhtml:head>
  116. <xhtml:body pagewidth="700" pageheight="600" guideline="1,680;2,591;1,460;1,450;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  117. <caption id="caption12" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">예외환자 관리</caption>
  118. <group id="group_cond" scroll="no" style="left:0px; top:15px; width:680px; height:85px; ">
  119. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:680px; height:78px; background-color:#fffbf2; border-color:#ffd799; "/>
  120. <caption id="caption1" class="search_name" style="left:15px; top:11px; width:86px; height:17px; ">예외분류 :</caption>
  121. <line id="line13" class="line_4" style="x1:604px; y1:9px; x2:604px; y2:71px; "/>
  122. <button id="bnt_srch" class="btn1_letter2" style="left:612px; top:29px; width:56px; height:22px; ">
  123. <caption>조회</caption>
  124. <script type="javascript" ev:event="DOMActivate">
  125. <![CDATA[
  126. fSearch();
  127. ]]>
  128. </script>
  129. </button>
  130. <select1 id="combo18" ref="/root/main/cond/excpcls" class="combo_search" appearance="minimal" style="left:117px; top:11px; width:148px; height:19px; ">
  131. <choices>
  132. <itemset nodeset="/root/init/M0627/M0627">
  133. <label ref="cdnm"/>
  134. <value ref="cdid"/>
  135. </itemset>
  136. </choices>
  137. </select1>
  138. <caption id="caption13" class="search_name" style="left:335px; top:51px; width:86px; height:17px; ">조회구분 :</caption>
  139. <caption id="caption14" class="search_name" style="left:335px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  140. <input id="ipt_pid2" ref="/root/main/cond/pid" style="left:430px; top:9px; width:101px; height:19px; ">
  141. <script type="javascript" ev:event="onkeypress">
  142. <![CDATA[
  143. inputEnterKey("bnt_srch", "DOMActivate");
  144. ]]>
  145. </script>
  146. </input>
  147. <select id="checkbox1" ref="/root/main/cond/srchflag" overflow="visible" appearance="full" style="left:430px; top:51px; width:125px; height:19px; border-style:none; ">
  148. <choices>
  149. <item>
  150. <label>삭제/변경포함 조회</label>
  151. <value>ALL</value>
  152. </item>
  153. </choices>
  154. <script type="javascript" ev:event="xforms-value-changed">
  155. <![CDATA[
  156. fSearch();
  157. ]]>
  158. </script>
  159. </select>
  160. <caption id="caption18" class="search_name" style="left:15px; top:31px; width:105px; height:17px; ">적용진료과 :</caption>
  161. <select1 id="cmb_orddept1" ref="/root/main/cond/deptcd" class="combo_search" appearance="minimal" style="left:117px; top:31px; width:148px; height:19px; ">
  162. <choices>
  163. <itemset nodeset="/root/init/orddept/dept">
  164. <label ref="depthngnm"/>
  165. <value ref="deptcd"/>
  166. </itemset>
  167. </choices>
  168. <script type="javascript" ev:event="xforms-value-changed">
  169. <![CDATA[
  170. model.setValue(sCONDITION_PATH + "/userid", "-");
  171. model.removeNodeset("/root/init/userlist1");
  172. model.makeNode("/root/init/userlist1/usercombo");
  173. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist1", cmb_orddept1.value, "0330");
  174. addComboInstance("/root/init/userlist1", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  175. cmb_orddrid1.select(0);
  176. group_cond.refresh();
  177. ]]>
  178. </script>
  179. </select1>
  180. <caption id="caption19" class="search_name" style="left:335px; top:31px; width:105px; height:17px; ">적용의사 :</caption>
  181. <select1 id="cmb_orddrid1" ref="/root/main/cond/userid" class="combo_search" appearance="minimal" style="left:430px; top:31px; width:100px; height:19px; ">
  182. <choices>
  183. <itemset nodeset="/root/init/userlist1/usercombo">
  184. <label ref="usernm"/>
  185. <value ref="userid"/>
  186. </itemset>
  187. </choices>
  188. </select1>
  189. </group>
  190. <group id="group_list" scroll="no" style="left:0px; top:100px; width:680px; height:250px; ">
  191. <line id="line2" class="line_1" style="x1:0px; y1:0px; x2:680px; y2:0px; "/>
  192. <datagrid id="grd_exptpatlist" nodeset="/root/main/list/exptpatlist" caption="기관코드^예외분류^적용진료과^적용진료과^적용의사^적용의사^등록번호^환자명^시작일^종료일^상태^상태^등록일자^번호^이력^예외사유코드^참고사항^등록자^등록자^등록일" colsep="^" colwidth="0, 100, 0, 87, 0, 60, 60, 60, 68, 68, 0, 30, 68, 30, 30, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:5px; width:680px; height:243px; ">
  193. <col ref="instcd"/>
  194. <col disabled="true" ref="excpcls" type="combo">
  195. <choices>
  196. <itemset nodeset="/root/init/M0627/M0627">
  197. <label ref="cdnm"/>
  198. <value ref="cdid"/>
  199. </itemset>
  200. </choices>
  201. </col>
  202. <col ref="deptcd"/>
  203. <col ref="deptnm"/>
  204. <col ref="userid"/>
  205. <col ref="usernm" style="text-align:center; "/>
  206. <col ref="pid" style="text-align:center; "/>
  207. <col ref="hngnm" style="text-align:center; "/>
  208. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  209. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  210. <col ref="histcd"/>
  211. <col ref="histnm" style="text-align:center; "/>
  212. <col ref="genrdd" format="yyyy-mm-dd" style="text-align:center; "/>
  213. <col ref="genrno" style="text-align:center; "/>
  214. <col ref="histno" style="text-align:center; "/>
  215. <col ref="excpcd"/>
  216. <col ref="excptext"/>
  217. <col ref="fstrgstrid"/>
  218. <col ref="fstrgstrnm"/>
  219. <col ref="fstrgstdt"/>
  220. <script type="javascript" ev:event="ondblclick">
  221. <![CDATA[
  222. if(isDataCell()){
  223. fSelectExptPatInfo();
  224. }
  225. ]]>
  226. </script>
  227. </datagrid>
  228. </group>
  229. <group id="group_info" scroll="no" style="left:0px; top:355px; width:680px; height:245px; ">
  230. <caption id="caption24" class="tit_2" style="left:0px; top:0px; width:134px; height:13px; ">예외환자 정보</caption>
  231. <line id="line1" class="line_1" style="x1:0px; y1:15px; x2:680px; y2:15px; "/>
  232. <caption id="caption3" class="cell_1" style="left:0px; top:20px; width:100px; height:23px; vertical-align:middle; ">예외분류</caption>
  233. <select1 id="cmb_unitflag" ref="/root/main/info/exptpatinfo/excpcls" class="combo_search" disabled="false" appearance="minimal" style="left:102px; top:21px; width:118px; height:19px; ">
  234. <choices>
  235. <itemset nodeset="/root/init/M0627/M0627">
  236. <label ref="cdnm"/>
  237. <value ref="cdid"/>
  238. </itemset>
  239. </choices>
  240. </select1>
  241. <caption id="caption15" class="cell_1" style="left:230px; top:20px; width:100px; height:23px; vertical-align:middle; ">등록번호</caption>
  242. <input id="ipt_pid" ref="/root/main/info/exptpatinfo/pid" style="left:332px; top:21px; width:98px; height:19px; ">
  243. <script type="javascript" ev:event="onkeypress"><![CDATA[
  244. inputEnterKey ( "btn_patsrch", "DOMActivate" );
  245. ]]></script>
  246. </input>
  247. <button id="btn_patsrch" class="btn1_letter2" visibility="hidden" style="left:270px; top:20px; width:56px; height:22px; ">
  248. <caption>조회</caption>
  249. <script type="javascript" ev:event="DOMActivate"><![CDATA[
  250. fPatSrch();
  251. ]]></script>
  252. </button>
  253. <button id="button1" class="icon_search" style="left:434px; top:22px; width:16px; height:16px; ">
  254. <script type="javascript" ev:event="DOMActivate">
  255. <![CDATA[
  256. var sStatus = model.getValue(sEXPT_INFO_PATH + "/status");
  257. if(sStatus == "I"){ // 인서트
  258. modal("SPPMC02500");
  259. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  260. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  261. model.setValue(sEXPT_INFO_PATH+"/pid", sPid);
  262. model.setValue(sEXPT_INFO_PATH+"/hngnm", sHngnm);
  263. group_info.refresh();
  264. } else {
  265. messageBox("신규작성 버튼 클릭시에만 환자 정보를 수정 할 수 있습니다.", "C999");
  266. }
  267. ]]>
  268. </script>
  269. <caption/>
  270. </button>
  271. <caption id="caption2" class="cell_1" style="left:460px; top:20px; width:100px; height:23px; vertical-align:middle; ">환자명</caption>
  272. <output id="opt_unitcd" ref="/root/main/info/exptpatinfo/hngnm" class="output_fix" appearance="output" style="left:562px; top:21px; width:118px; height:19px; "/>
  273. <caption id="caption9" class="cell_1" style="left:0px; top:44px; width:100px; height:23px; vertical-align:middle; ">시작일</caption>
  274. <input id="ipt_fromdd" ref="/root/main/info/exptpatinfo/fromdd" class="input_default" disabled="false" inputtype="date" style="left:102px; top:46px; width:118px; height:19px; "/>
  275. <caption id="caption6" class="cell_1" style="left:230px; top:44px; width:100px; height:23px; vertical-align:middle; ">종료일</caption>
  276. <input id="input3" ref="/root/main/info/exptpatinfo/todd" class="input_default" disabled="false" inputtype="date" style="left:332px; top:46px; width:118px; height:19px; "/>
  277. <caption id="caption16" class="cell_1" style="left:460px; top:68px; width:100px; height:23px; vertical-align:middle; ">상태</caption>
  278. <output id="output2" ref="/root/main/info/exptpatinfo/histnm" class="output_fix" appearance="output" style="left:562px; top:70px; width:118px; height:19px; "/>
  279. <caption id="caption17" class="cell_1" style="left:0px; top:68px; width:100px; height:23px; vertical-align:middle; ">적용진료과</caption>
  280. <select1 id="cmb_orddept2" ref="/root/main/info/exptpatinfo/deptcd" class="combo_search" disabled="false" appearance="minimal" style="left:102px; top:69px; width:118px; height:19px; ">
  281. <choices>
  282. <itemset nodeset="/root/init/orddept/dept">
  283. <label ref="depthngnm"/>
  284. <value ref="deptcd"/>
  285. </itemset>
  286. </choices>
  287. <script type="javascript" ev:event="xforms-value-changed">
  288. <![CDATA[
  289. model.setValue(sEXPT_INFO_PATH + "/userid", "-");
  290. model.removeNodeset("/root/init/userlist2");
  291. model.makeNode("/root/init/userlist2/usercombo");
  292. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist2", cmb_orddept2.value, "0330");
  293. addComboInstance("/root/init/userlist2", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  294. cmb_orddrid2.select(0);
  295. group_info.refresh();
  296. ]]>
  297. </script>
  298. </select1>
  299. <caption id="caption20" class="cell_1" style="left:230px; top:68px; width:100px; height:23px; vertical-align:middle; ">적용의사</caption>
  300. <select1 id="cmb_orddrid2" ref="/root/main/info/exptpatinfo/userid" class="combo_search" disabled="false" appearance="minimal" style="left:332px; top:69px; width:118px; height:19px; ">
  301. <choices>
  302. <itemset nodeset="/root/init/userlist2/usercombo">
  303. <label ref="usernm"/>
  304. <value ref="userid"/>
  305. </itemset>
  306. </choices>
  307. </select1>
  308. <caption id="caption5" class="cell_1" style="left:0px; top:92px; width:100px; height:23px; vertical-align:middle; ">등록부서</caption>
  309. <output id="output3" ref="/root/main/info/exptpatinfo/fstrgstrdeptnm" class="output_fix" appearance="output" style="left:102px; top:94px; width:118px; height:19px; "/>
  310. <caption id="caption4" class="cell_1" style="left:230px; top:92px; width:100px; height:23px; vertical-align:middle; ">등록자</caption>
  311. <output id="output1" ref="/root/main/info/exptpatinfo/fstrgstrusernm" class="output_fix" appearance="output" style="left:332px; top:94px; width:118px; height:19px; "/>
  312. <caption id="caption11" class="cell_1" style="left:460px; top:92px; width:100px; height:23px; vertical-align:middle; ">등록일시</caption>
  313. <output id="output4" ref="/root/main/info/exptpatinfo/fstrgstdt" class="output_fix" format="yyyy-mm-dd hh:nn" appearance="output" style="left:562px; top:94px; width:118px; height:19px; "/>
  314. <caption id="caption7" class="cell_1" style="left:0px; top:116px; width:100px; height:23px; vertical-align:middle; ">수정부서</caption>
  315. <output id="output5" ref="/root/main/info/exptpatinfo/lastupdtrdeptnm" class="output_fix" appearance="output" style="left:102px; top:118px; width:118px; height:19px; "/>
  316. <caption id="caption8" class="cell_1" style="left:230px; top:116px; width:100px; height:23px; vertical-align:middle; ">수정자</caption>
  317. <output id="output6" ref="/root/main/info/exptpatinfo/lastupdtrusernm" class="output_fix" appearance="output" style="left:332px; top:118px; width:118px; height:19px; "/>
  318. <caption id="caption10" class="cell_1" style="left:460px; top:116px; width:100px; height:23px; vertical-align:middle; ">수정일시</caption>
  319. <output id="output7" ref="/root/main/info/exptpatinfo/lastupdtdt" class="output_fix" format="yyyy-mm-dd hh:nn" appearance="output" style="left:562px; top:118px; width:118px; height:19px; "/>
  320. <caption id="caption21" class="cell_1" style="left:0px; top:140px; width:100px; height:66px; vertical-align:middle; ">예외사유</caption>
  321. <textarea id="textarea2" ref="/root/main/info/exptpatinfo/excptext" disabled="false" style="left:102px; top:140px; width:578px; height:64px; "/>
  322. </group>
  323. <button id="button3" class="btn4_letter4" style="left:420px; top:564px; width:80px; height:22px; ">
  324. <caption>신규작성</caption>
  325. <script type="javascript" ev:event="DOMActivate">
  326. <![CDATA[
  327. fNewRgst();
  328. ]]>
  329. </script>
  330. </button>
  331. <button id="button2" class="btn4_letter2" style="left:561px; top:564px; width:56px; height:22px; ">
  332. <caption>저장</caption>
  333. <script type="javascript" ev:event="DOMActivate">
  334. <![CDATA[
  335. var sHistCd = model.getValue(sEXPT_INFO_PATH + "/histcd");
  336. if(sHistCd != "O") {messageBox("변경 또는 삭제 상태의 정보는 수정 할 수 없습니다.", "C999"); return; }
  337. var sStatus = model.getValue(sEXPT_INFO_PATH + "/status");
  338. if(sStatus == "I"){ // 인서트
  339. if( "6" != messageBox("", "Q002")) { return; }
  340. } else if (sStatus == "U") {
  341. if( "6" != messageBox("", "Q012")) { return; }
  342. }
  343. fSaveExptPatInfo();
  344. ]]>
  345. </script>
  346. </button>
  347. <button id="button4" class="btn4_letter2" style="left:504px; top:564px; width:56px; height:22px; ">
  348. <caption>삭제</caption>
  349. <script type="javascript" ev:event="DOMActivate">
  350. <![CDATA[
  351. var sHistCd = model.getValue(sEXPT_INFO_PATH + "/histcd");
  352. if(sHistCd != "O") {messageBox("변경 또는 삭제 상태의 정보는 수정 할 수 없습니다.", "C999"); return; }
  353. var sGenrNo = model.getValue(sEXPT_INFO_PATH + "/genrno");
  354. if(sGenrNo == ""){
  355. messageBox("삭제할 예외환자 정보가 선택 되지 않았습니다.", "I999");
  356. } else {
  357. if( "6" == messageBox("", "Q001")) {
  358. model.setValue(sEXPT_INFO_PATH + "/status", "D"); // 삭제
  359. model.setValue(sEXPT_INFO_PATH + "/histcd", "D"); // 삭제
  360. fSaveExptPatInfo();
  361. }
  362. }
  363. ]]>
  364. </script>
  365. </button>
  366. <button id="button5" class="btn4_letter2" style="left:621px; top:564px; width:56px; height:22px; ">
  367. <caption>닫기</caption>
  368. <script type="javascript" ev:event="DOMActivate">
  369. <![CDATA[
  370. window.close();
  371. ]]>
  372. </script>
  373. </button>
  374. </xhtml:body>
  375. </xhtml:html>