SPMMO21401_중환자실다직종회진.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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. <fromdd/>
  12. <todd/>
  13. <wardcd/>
  14. <jobcd/>
  15. <userid/>
  16. <chkuser/>
  17. <chkdel/>
  18. </cond>
  19. <icurinfo>
  20. <icurlist/>
  21. </icurinfo>
  22. <bficurinfo>
  23. <rnddd/>
  24. <wardcd/>
  25. <jobcd/>
  26. <authcnfyn>N</authcnfyn>
  27. </bficurinfo>
  28. </main>
  29. <send>
  30. <savedata/>
  31. <reqdata/>
  32. </send>
  33. <hidden>
  34. </hidden>
  35. <init>
  36. <hc452/>
  37. <hc453/>
  38. </init>
  39. <temp>
  40. </temp>
  41. </root>
  42. </instance>
  43. <script type="javascript" ev:event="xforms-ready">
  44. <![CDATA[
  45. fInitialize_SPMMO21401();
  46. ]]>
  47. </script>
  48. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  49. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  50. <submission id="TRMMO21402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/icurinfo"/>
  51. <submission id="TRMMB04107" mediatype="application/x-www-form-urlencoded" method="post"/>
  52. <submission id="TXMMO21402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/hidden"/>
  53. </model>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  57. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  58. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  59. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  60. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  61. <script type="javascript" src="../../../emr/prcpmngtweb/js/SPMMO21401.js"/>
  62. </xhtml:head>
  63. <xhtml:body pagewidth="916" pageheight="716" guideline="1,5;2,10;2,62;1,899;2,716;1,-3;" style="background-color:transparent; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  64. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:21px; width:899px; height:39px; background-color:#fffbf2; border-color:#ffd799; "/>
  65. <line id="line1" class="line_1" style="x1:0px; y1:83px; x2:900px; y2:83px; "/>
  66. <caption id="caption14" class="search_name" style="left:5px; top:31px; width:76px; height:17px; ">회 진 일</caption>
  67. <caption id="caption26" class="search_name" style="left:299px; top:31px; width:76px; height:17px; ">중환자실</caption>
  68. <caption id="caption29" class="search_name" style="left:485px; top:31px; width:55px; height:17px; ">직종</caption>
  69. <caption id="caption2" class="tit_2" style="left:0px; top:68px; width:170px; height:15px; vertical-align:middle; ">중환자실 회진 리스트</caption>
  70. <input id="ipt_orddd" ref="/root/main/cond/fromdd" class="input" autonext="false" inputtype="date" style="left:85px; top:31px; width:90px; height:19px; ">
  71. <script type="javascript" ev:event="xforms-value-changed">
  72. <![CDATA[
  73. btn_req.dispatch("DOMActivate");
  74. ]]>
  75. </script>
  76. </input>
  77. <caption id="caption1" style="left:180px; top:31px; width:15px; height:20px; ">~</caption>
  78. <input id="input1" ref="/root/main/cond/todd" class="input" autonext="false" inputtype="date" style="left:195px; top:31px; width:90px; height:19px; ">
  79. <script type="javascript" ev:event="xforms-value-changed">
  80. <![CDATA[
  81. btn_req.dispatch("DOMActivate");
  82. ]]>
  83. </script>
  84. </input>
  85. <datagrid id="grd_icurlist" nodeset="/root/main/icurinfo/icurlist" caption="회진일자^중환자실^직종^사번^성명^등록일시^삭제^전담전문의확인^전담전문의^확인일시^instcd^rndno^wardnm^jobnm^signdata" colsep="^" colwidth="90, 100, 90, 70, 80, 110, 40, 95, 75, 110, 0, 0, 0, 0, 0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:88px; width:899px; height:628px; text-align:center; margin-left:0; margin-right:0; ">
  86. <col ref="rnddd" type="inputdate" format="yyyy-mm-dd"/>
  87. <col ref="wardcd" type="combo">
  88. <choices>
  89. <itemset nodeset="/root/init/hc452/hardcd">
  90. <label ref="hardcdnm"/>
  91. <value ref="hardcd"/>
  92. </itemset>
  93. </choices>
  94. </col>
  95. <col ref="jobcd" type="combo">
  96. <choices>
  97. <itemset nodeset="/root/init/hc453/hardcd">
  98. <label ref="hardcdnm"/>
  99. <value ref="hardcd"/>
  100. </itemset>
  101. </choices>
  102. </col>
  103. <col ref="userid" style="text-align:center; "/>
  104. <col ref="usernm" style="text-align:center; "/>
  105. <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn"/>
  106. <col disabled="true" ref="delyn" type="combo">
  107. <choices>
  108. <item>
  109. <label>Y</label>
  110. <value>Y</value>
  111. </item>
  112. <item>
  113. <label/>
  114. <value>N</value>
  115. </item>
  116. </choices>
  117. </col>
  118. <col checkvalue="Y,N" ref="cnfyn" type="checkbox"/>
  119. <col ref="cnfnm" style="text-align:center; "/>
  120. <col ref="cnfdt" format="yyyy-mm-dd hh:nn"/>
  121. <col ref="instcd" visibility="hidden"/>
  122. <col ref="rndno" visibility="hidden"/>
  123. <col ref="wardnm" visibility="hidden"/>
  124. <col ref="jobnm" visibility="hidden"/>
  125. <col ref="signdata" visibility="hidden"/>
  126. <script type="javascript" ev:event="onentercell">
  127. <![CDATA[
  128. var nRow = grd_icurlist.row;
  129. if ( grd_icurlist.col == grd_icurlist.colRef("rnddd")) {
  130. model.setValue ( "/root/main/bficurinfo/rnddd", model.getValue ("/root/main/icurinfo/icurlist["+ nRow +"]/rnddd"));
  131. } else if ( grd_icurlist.col == grd_icurlist.colRef("wardcd")) {
  132. model.setValue ( "/root/main/bficurinfo/wardcd", model.getValue ("/root/main/icurinfo/icurlist["+ nRow +"]/wardcd"));
  133. } else if ( grd_icurlist.col == grd_icurlist.colRef("continueflag")) {
  134. model.setValue ( "/root/main/bficurinfo/jobcd", model.getValue ("/root/main/icurinfo/icurlist["+ nRow +"]/jobcd"));
  135. }
  136. ]]>
  137. </script>
  138. <script type="javascript" ev:event="xforms-value-changed">
  139. <![CDATA[
  140. var nRow = grd_icurlist.row;
  141. if (grd_icurlist.col == grd_icurlist.colRef("cnfyn")) { // 전담전문의 확인
  142. var sAuthCnfYn = model.getValue ( "/root/main/bficurinfo/authcnfyn");
  143. if(sAuthCnfYn != "Y") { // 전담전문의가 확인 되지 않았으면
  144. if (grd_icurlist.valueMatrix(grd_icurlist.row, grd_icurlist.col) == "Y") { // 전담전문의 확인을 체크 했을때
  145. if ( messageBox ( "해당 중환자실 전담 전문의가 최종 확인 하는곳 입니다. \n\n전담전문의가 맞습니까?","Q") == "6" ) {
  146. model.setValue ("/root/main/bficurinfo/authcnfyn", "Y");
  147. } else {
  148. model.setValue ("/root/main/bficurinfo/authcnfyn", "N");
  149. model.setValue ("/root/main/icurinfo/icurlist["+ nRow +"]/cnfyn", "N");
  150. }
  151. } else { // 전담전문의 체크를 해제 할때
  152. if(model.getValue ("/root/main/icurinfo/icurlist["+ nRow +"]/cnfid") != getUserInfo("userid")) {
  153. model.setValue("/root/main/icurinfo/icurlist["+ nRow +"]/cnfyn", "Y");
  154. messageBox("이미 전담전문의가 확인 하였습니다. \n\n확인한 전담전문의만 수정이 가능 합니다.","E") ;
  155. }
  156. }
  157. }
  158. } else { // 전담전문의 확인 이외의 값 변경
  159. if (grd_icurlist.col == grd_icurlist.colRef("rnddd") && model.getValue ("/root/main/icurinfo/icurlist["+ nRow +"]/rndno") != "0") { // 이미 저장된 회진일자는 수정 불가능
  160. model.setValue ("/root/main/icurinfo/icurlist["+ nRow +"]/rnddd", model.setValue ( "/root/main/bficurinfo/rnddd"));
  161. messageBox ( "이미 저장된 내역의 회진일자는 변경이 불가능 합니다. 삭제후 신규 등록 하세요.","E") ;
  162. } else if(model.getValue ("/root/main/icurinfo/icurlist["+ nRow +"]/userid") != getUserInfo("userid")) {
  163. if (grd_icurlist.col == grd_icurlist.colRef("rnddd")) {
  164. model.setValue ("/root/main/icurinfo/icurlist["+ nRow +"]/rnddd", model.setValue ( "/root/main/bficurinfo/rnddd"));
  165. } else if (grd_icurlist.col == grd_icurlist.colRef("warddd")) {
  166. model.setValue ("/root/main/icurinfo/icurlist["+ nRow +"]/warddd", model.setValue ( "/root/main/bficurinfo/warddd"));
  167. } else if (grd_icurlist.col == grd_icurlist.colRef("jobcd")) {
  168. model.setValue ("/root/main/icurinfo/icurlist["+ nRow +"]/jobcd", model.setValue ( "/root/main/bficurinfo/jobcd"));
  169. }
  170. messageBox ( "자신의 회진리스트만 수정이 가능 합니다.","E") ;
  171. } else {
  172. if(model.getValue ("/root/main/icurinfo/icurlist["+ nRow +"]/cnfyn") == "Y") { // 이미 전담전문의 확인 된경우
  173. if (grd_icurlist.col == grd_icurlist.colRef("rnddd")) {
  174. model.setValue ("/root/main/icurinfo/icurlist["+ nRow +"]/rnddd", model.setValue ( "/root/main/bficurinfo/rnddd"));
  175. } else if (grd_icurlist.col == grd_icurlist.colRef("warddd")) {
  176. model.setValue ("/root/main/icurinfo/icurlist["+ nRow +"]/warddd", model.setValue ( "/root/main/bficurinfo/warddd"));
  177. } else if (grd_icurlist.col == grd_icurlist.colRef("jobcd")) {
  178. model.setValue ("/root/main/icurinfo/icurlist["+ nRow +"]/jobcd", model.setValue ( "/root/main/bficurinfo/jobcd"));
  179. }
  180. messageBox ( "전담전문의 확인 이후에는 수정이 불가능 합니다.","E") ;
  181. }
  182. }
  183. }
  184. model.refresh();
  185. ]]>
  186. </script>
  187. </datagrid>
  188. <line id="line3" style="x1:745px; y1:30px; x2:745px; y2:60px; border-color:#ffe4bb; border-left-style:solid; "/>
  189. <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" class="combo_default" appearance="minimal" editmode="search" style="left:383px; top:31px; width:97px; height:19px; ">
  190. <choices>
  191. <itemset nodeset="/root/init/hc452/hardcd">
  192. <label ref="hardcdnm"/>
  193. <value ref="hardcd"/>
  194. </itemset>
  195. </choices>
  196. </select1>
  197. <button id="btn_req" class="btn1_letter2" style="left:760px; top:30px; width:56px; height:22px; ">
  198. <caption>조회</caption>
  199. <script type="javascript" ev:event="DOMActivate">
  200. <![CDATA[
  201. fReqIcurList();
  202. ]]>
  203. </script>
  204. </button>
  205. <button id="btn_prt" class="btn1_letter2" style="left:830px; top:30px; width:56px; height:22px; ">
  206. <caption>출력</caption>
  207. <script type="javascript" ev:event="DOMActivate">
  208. <![CDATA[
  209. fPrtIcurList();
  210. ]]>
  211. </script>
  212. </button>
  213. <select1 id="cmb_medispclid" ref="/root/main/cond/jobcd" appearance="minimal" editmode="search" itemcount="30" style="left:542px; top:31px; width:78px; height:19px; ">
  214. <choices>
  215. <itemset nodeset="/root/init/hc453/hardcd">
  216. <label ref="hardcdnm"/>
  217. <value ref="hardcd"/>
  218. </itemset>
  219. </choices>
  220. </select1>
  221. <bool id="chk_user" checkvalue="Y,N" ref="/root/main/cond/chkuser" style="left:630px; top:24px; width:25px; height:20px; "/>
  222. <caption id="cap_user" style="left:651px; top:24px; width:89px; height:20px; ">
  223. <![CDATA[다른사람 포함]]>
  224. <script type="javascript" ev:event="onclick">
  225. <![CDATA[
  226. var chkuser = model.getValue("/root/main/cond/chkuser");
  227. if (chkuser =="Y") {
  228. model.setValue("/root/main/cond/chkuser", "N");
  229. } else {
  230. model.setValue("/root/main/cond/chkuser", "Y");
  231. }
  232. model.refresh();
  233. ]]>
  234. </script>
  235. </caption>
  236. <bool id="chk_del" checkvalue="Y,N" ref="/root/main/cond/chkdel" style="left:630px; top:42px; width:25px; height:20px; "/>
  237. <caption id="cap_del" style="left:651px; top:42px; width:89px; height:20px; ">
  238. <![CDATA[삭제 포함]]>
  239. <script type="javascript" ev:event="onclick">
  240. <![CDATA[
  241. var chkdel = model.getValue("/root/main/cond/chkdel");
  242. if (chkdel =="Y") {
  243. model.setValue("/root/main/cond/chkdel", "N");
  244. } else {
  245. model.setValue("/root/main/cond/chkdel", "Y");
  246. }
  247. model.refresh();
  248. ]]>
  249. </script>
  250. </caption>
  251. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:173px; height:15px; ">중환자실 다직종 회진등록</caption>
  252. <button id="btn_add" class="btn2_letter3" style="left:730px; top:62px; width:53px; height:19px; ">
  253. <caption>행추가</caption>
  254. <script type="javascript" ev:event="DOMActivate">
  255. <![CDATA[
  256. fAddIcur();
  257. ]]>
  258. </script>
  259. </button>
  260. <button id="btn_del" class="btn2_letter3" style="left:790px; top:62px; width:53px; height:19px; ">
  261. <caption>행삭제</caption>
  262. <script type="javascript" ev:event="DOMActivate">
  263. <![CDATA[
  264. fDelIcur();
  265. ]]>
  266. </script>
  267. </button>
  268. <button id="btn_save" class="btn5_letter2" style="left:857px; top:62px; width:42px; height:19px; ">
  269. <caption>저장</caption>
  270. <script type="javascript" ev:event="DOMActivate">
  271. <![CDATA[
  272. fSaveIcur();
  273. ]]>
  274. </script>
  275. </button>
  276. </xhtml:body>
  277. </xhtml:html>