SPMMO03600_협진환자관리.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  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. <cnstpatinfo>
  11. <cnstpatinfo>
  12. <genrdd/>
  13. <genrno/>
  14. <status/>
  15. <pid/>
  16. <hngnm/>
  17. <sa/>
  18. <valifromdd/>
  19. <valitodd/>
  20. <cnstorddeptcd/>
  21. <cnstorddrnm/>
  22. <cnstteamseq/>
  23. <coopteamcd/>
  24. <coopteamnm/>
  25. <orddd/>
  26. <cretno/>
  27. <ioflag/>
  28. <roomcd/>
  29. </cnstpatinfo>
  30. </cnstpatinfo>
  31. <cnstpathistlist>
  32. <cnstpathistlist>
  33. <genrdd/>
  34. <genrno/>
  35. <cnsttypecd/>
  36. <cnsttrgtcd/>
  37. <valitodd/>
  38. <cnstorddeptcd/>
  39. <cnstorddrid/>
  40. <pid/>
  41. <hngnm/>
  42. <sa/>
  43. <cnsttypenm/>
  44. <cnstdeptnm/>
  45. <valifromdd/>
  46. </cnstpathistlist>
  47. </cnstpathistlist>
  48. <cnstconfreclist>
  49. <cnstconfreclist>
  50. <genrdd/>
  51. <genrno/>
  52. <confrecno/>
  53. <confdt/>
  54. <conftitl/>
  55. </cnstconfreclist>
  56. </cnstconfreclist>
  57. </main>
  58. <send>
  59. <reqdata/>
  60. <savedata/>
  61. </send>
  62. <hidden>
  63. <tmpcnstpatinfo/>
  64. </hidden>
  65. <init>
  66. <cnsttypecombo/>
  67. <orddept/>
  68. <userlist/>
  69. <status/>
  70. </init>
  71. </root>
  72. </instance>
  73. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  74. <submission id="TRMMO03601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinfo"/>
  75. <submission id="TRMMO03602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata"/>
  76. <submission id="TRMMO03603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cnstpathistlist"/>
  77. <submission id="TXMMO03601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/tmp"/>
  78. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  79. <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
  80. <submission id="TRMMO03604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cnstconfreclist"/>
  81. <script type="javascript" ev:event="xforms-ready">
  82. <![CDATA[
  83. fInitialize_SPMMO03600();
  84. fChkStatus();
  85. ]]>
  86. </script>
  87. </model>
  88. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  91. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  92. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  93. <script type="javascript" src="../../../emr/prcpmngtweb/js/SPMMO03600.js"/>
  94. <script type="javascript" src="../../../emr/prcpmngtweb/js/SPMMO04100.js"/>
  95. </xhtml:head>
  96. <xhtml:body pagewidth="901" pageheight="510" guideline="2,784;1,885;1,901;2,490;2,154;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  97. <caption id="caption18" class="tit_2" style="left:472px; top:8px; width:121px; height:13px; ">협진내역</caption>
  98. <line id="line17" class="line_1" style="x1:469px; y1:24px; x2:885px; y2:24px; "/>
  99. <line id="line1" class="line_1" style="x1:0px; y1:24px; x2:466px; y2:24px; "/>
  100. <caption id="caption1" class="tit_2" style="left:3px; top:9px; width:121px; height:14px; ">협진환자등록</caption>
  101. <caption id="caption5" class="cell_1" style="left:0px; top:29px; width:70px; height:24px; ">등록번호</caption>
  102. <caption id="caption4" class="cell_1" style="left:214px; top:29px; width:70px; height:24px; ">환자명</caption>
  103. <caption id="caption9" class="cell_1" style="left:0px; top:55px; width:70px; height:24px; ">성별/나이</caption>
  104. <caption id="caption2" class="cell_1" style="left:0px; top:81px; width:70px; height:23px; ">적용기간</caption>
  105. <caption id="caption3" class="cell_1" style="left:0px; top:131px; width:70px; height:23px; ">협진분류</caption>
  106. <button id="button37" class="btn2_letter2" style="left:378px; top:3px; width:42px; height:19px; ">
  107. <caption>삭제</caption>
  108. <script type="javascript" ev:event="DOMActivate">
  109. <![CDATA[
  110. fClkBtnDel();
  111. fChkStatus();
  112. ]]>
  113. </script>
  114. </button>
  115. <button id="button2" class="btn5_letter2" style="left:421px; top:3px; width:42px; height:19px; ">
  116. <caption>저장</caption>
  117. <script type="javascript" ev:event="DOMActivate">
  118. <![CDATA[
  119. fReqExeSaveCnstPatInfo();
  120. fChkStatus();
  121. ]]>
  122. </script>
  123. </button>
  124. <button id="button1" class="btn2_letter4" style="left:215px; top:133px; width:64px; height:19px; ">
  125. <caption>분류등록</caption>
  126. <script type="javascript" ev:event="DOMActivate">
  127. <![CDATA[
  128. modal("SPMMO03900");
  129. //분류등록 팝업 호출 후, 협진분류콤보 재조회
  130. var cnstorddeptcd = model.getValue(sCNSTPATINFO_PATH + "/cnstorddeptcd");
  131. //mmofReqGetCnstTypeComboList("/root/send/reqdata", "/root/init/cnsttypecombo", cnstorddeptcd);
  132. model.refresh();
  133. ]]>
  134. </script>
  135. </button>
  136. <button id="button4" class="btn2_letter3" style="left:324px; top:3px; width:53px; height:19px; ">
  137. <caption>초기화</caption>
  138. <script type="javascript" ev:event="DOMActivate">
  139. <![CDATA[
  140. fInitCnstPatInfo();
  141. fChkStatus();
  142. ]]>
  143. </script>
  144. </button>
  145. <caption id="caption10" style="left:172px; top:85px; width:15px; height:20px; ">~</caption>
  146. <line id="line5" class="line_1" style="x1:0px; y1:177px; x2:885px; y2:177px; "/>
  147. <caption id="caption11" class="tit_2" style="left:0px; top:162px; width:121px; height:13px; ">협진회의록</caption>
  148. <caption id="caption12" class="cell_1" style="left:0px; top:106px; width:70px; height:23px; ">상정과</caption>
  149. <caption id="caption13" class="cell_1" style="left:214px; top:107px; width:70px; height:23px; ">진료의</caption>
  150. <input id="cmb_cnstorddrid" ref="/root/main/cnstpatinfo/cnstpatinfo/cnstorddrnm" disabled="true" appearance="minimal" style="left:287px; top:109px; width:113px; height:19px; "/>
  151. <button id="btn_spctcle" class="icon_search" style="left:192px; top:32px; width:16px; height:16px; ">
  152. <caption/>
  153. <script type="javascript" ev:event="DOMActivate">
  154. <![CDATA[
  155. /*
  156. var pid = model.getValue(sCNSTPATINFO_PATH + "/pid");
  157. var hngnm = model.getValue(sCNSTPATINFO_PATH + "/hngnm");
  158. if((pid =="")&&(hngnm !="")){
  159. fPatSrch(hngnm, "2");
  160. } else if((pid !="")){
  161. fPatSrch(pid, "1");
  162. } else {
  163. modal("SPPMC02500")
  164. }
  165. model.setValue(sCNSTPATINFO_PATH +"/pid" ,model.getValue("/root/main/patinfo/patinfolist/pid"));
  166. model.setValue(sCNSTPATINFO_PATH +"/hngnm" ,model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  167. var age = model.getValue("/root/main/patinfo/patinfolist/age");
  168. var sex = model.getValue("/root/main/patinfo/patinfolist/sex");
  169. model.setValue(sCNSTPATINFO_PATH + "/sa", sex.concat("/").concat(age));
  170. */
  171. fPidTrim(sCNSTPATINFO_PATH + "/pid");
  172. setParameter("SPMMO017300_pid", model.getValue(sCNSTPATINFO_PATH + "/pid"));
  173. modal("SPMMO173000");
  174. var pid = getParameter("SPMMO017300_pid");
  175. var hngnm = getParameter("SPMMO017300_hngnm");
  176. var sa = getParameter("SPMMO017300_sa");
  177. var cretno = getParameter("SPMMO017300_cretno");
  178. var orddd = getParameter("SPMMO017300_orddd");
  179. var cnstdeptcd = getParameter("SPMMO017300_cnstdeptcd");
  180. var coopteamcd = getParameter("SPMMO017300_coopteamcd");
  181. var orddrnm = getParameter("SPMMO017300_orddrnm");
  182. var ioflag = getParameter("SPMMO017300_ioflag");
  183. fReqGetCnstPatHistList(); // 협진환자 이력조회
  184. model.setValue(sCNSTPATINFO_PATH + "/pid" , pid);
  185. model.setValue(sCNSTPATINFO_PATH + "/hngnm" , hngnm);
  186. model.setValue(sCNSTPATINFO_PATH + "/sa" , sa);
  187. model.setValue(sCNSTPATINFO_PATH + "/cretno" , cretno);
  188. model.setValue(sCNSTPATINFO_PATH + "/orddd" , orddd);
  189. model.setValue(sCNSTPATINFO_PATH + "/cnstorddeptcd", cnstdeptcd);
  190. model.setValue(sCNSTPATINFO_PATH + "/coopteamcd" , coopteamcd);
  191. model.setValue(sCNSTPATINFO_PATH + "/cnstorddrnm" , orddrnm);
  192. model.setValue(sCNSTPATINFO_PATH + "/ioflag" , ioflag);
  193. fReqGetCnstConfRecList(pid);
  194. model.refresh();
  195. ]]>
  196. </script>
  197. </button>
  198. <select1 id="cmb_cnsttypecd" ref="/root/main/cnstpatinfo/cnstpatinfo/coopteamcd" appearance="minimal" style="left:74px; top:133px; width:138px; height:19px; ">
  199. <choices>
  200. <itemset nodeset="/root/init/cnsttypecombo/M0525">
  201. <label ref="cdnm"/>
  202. <value ref="cdid"/>
  203. </itemset>
  204. </choices>
  205. <script type="javascript" ev:event="xforms-value-changed">
  206. <![CDATA[
  207. var coopteamcd = cmb_cnsttypecd.value;
  208. var coopteamnm = cmb_cnsttypecd.label;
  209. var cnsttrgtcd = model.getValue("/root/init/cnsttypecombo/cnsttypecombo[cnsttypecd='" + coopteamcd + "']/cnsttrgtcd");
  210. model.setValue(sCNSTPATINFO_PATH + "/coopteamcd" , coopteamcd);
  211. model.setValue(sCNSTPATINFO_PATH + "/coopteamnm" , coopteamnm);
  212. model.refresh();
  213. ]]>
  214. </script>
  215. </select1>
  216. <input id="ipt_pid" ref="/root/main/cnstpatinfo/cnstpatinfo/pid" navindex="1" autonext="false" imemode="disabled" maxlength="10" style="left:73px; top:31px; width:115px; height:19px; ">
  217. <script type="javascript" ev:event="onkeyup">
  218. <![CDATA[
  219. inputEnterKey("btn_spctcle", "DOMActivate");
  220. ]]>
  221. </script>
  222. </input>
  223. <input id="ipt_hngnm" ref="/root/main/cnstpatinfo/cnstpatinfo/hngnm" navindex="2" autonext="false" imemode="hangul" style="left:287px; top:31px; width:113px; height:19px; ">
  224. <script type="javascript" ev:event="onkeyup">
  225. <![CDATA[
  226. inputEnterKey("btn_spctcle", "DOMActivate");
  227. ]]>
  228. </script>
  229. </input>
  230. <output id="opt_sa" ref="/root/main/cnstpatinfo/cnstpatinfo/sa" class="output_fix" style="left:74px; top:57px; width:66px; height:19px; text-align:center; "/>
  231. <input id="ipt_valitodd" ref="/root/main/cnstpatinfo/cnstpatinfo/valitodd" class="input_s_essential" navindex="1" autonext="false" imemode="disabled" inputtype="date" format="yyyy-mm-dd" style="left:187px; top:84px; width:93px; height:19px; text-align:center; ">
  232. <script type="javascript" ev:event="xforms-value-changed">
  233. <![CDATA[
  234. if(ipt_valifromdd.value > ipt_valitodd.value){
  235. messageBox("종료일이 시작일보다 작을 수", "I004");
  236. ipt_valifromdd.value = ipt_valitodd.value;
  237. model.refresh();
  238. return;
  239. }
  240. ]]>
  241. </script>
  242. </input>
  243. <input id="ipt_valifromdd" ref="/root/main/cnstpatinfo/cnstpatinfo/valifromdd" class="input_s_essential" navindex="1" autonext="false" imemode="disabled" inputtype="date" format="yyyy-mm-dd" style="left:74px; top:84px; width:93px; height:19px; text-align:center; ">
  244. <script type="javascript" ev:event="xforms-value-changed">
  245. <![CDATA[
  246. if(ipt_valifromdd.value > ipt_valitodd.value){
  247. messageBox("시작일이 종요일보다 클 수", "I004");
  248. ipt_valitodd.value = ipt_valifromdd.value;
  249. model.refresh();
  250. return;
  251. }
  252. ]]>
  253. </script>
  254. </input>
  255. <select1 id="cmb_cnstorddeptcd" ref="/root/main/cnstpatinfo/cnstpatinfo/cnstorddeptcd" appearance="minimal" style="left:74px; top:109px; width:138px; height:19px; ">
  256. <choices>
  257. <itemset nodeset="/root/init/orddept/dept">
  258. <label ref="depthngnm"/>
  259. <value ref="deptcd"/>
  260. </itemset>
  261. </choices>
  262. <!-- // 상정과와 진료의는 상관관계 없음. : 2009. 02. 05 김영학
  263. <script type="javascript" ev:event="xforms-value-changed">
  264. <![CDATA[
  265. mmbfGetUserComboList("/root/send/reqdata" ,"/root/init/userlist", cmb_cnstorddeptcd.value, "0330");
  266. if(cmb_cnstorddrid.label == ""){cmb_cnstorddrid.select(0);} //진료의가 없는 경우, default로 첫번째 combo select
  267. mmofReqGetCnstTypeComboList("/root/send/reqdata", "/root/init/cnsttypecombo", cmb_cnstorddeptcd.value);
  268. model.refresh();
  269. ]]>
  270. </script>
  271. -->
  272. </select1>
  273. <datagrid id="grd_cnstpathistinfo" nodeset="/root/main/cnstpathistlist/cnstpathistlist" caption="genrdd^genrno^cnsttypecd^cnsttrgtcd^valitodd^cnstorddeptcd^cnstorddrid^pid^orddd^cretno^hngnm^sa^협진팀명^상정과^적용일" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 197, 119, 96" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:470px; top:29px; width:415px; height:124px; ">
  274. <col ref="genrdd"/>
  275. <col ref="genrno"/>
  276. <col ref="coopteamcd"/>
  277. <col ref="cnstteamseq"/>
  278. <col ref="valitodd"/>
  279. <col ref="cnstorddeptcd"/>
  280. <col ref="cnstorddrid"/>
  281. <col ref="pid"/>
  282. <col ref="cretno"/>
  283. <col ref="orddd"/>
  284. <col ref="hngnm"/>
  285. <col ref="sa"/>
  286. <col ref="coopteamnm" style="text-align:center; "/>
  287. <col ref="cnstdeptnm" style="text-align:center; "/>
  288. <col ref="valifromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  289. <script type="javascript" ev:event="onclick">
  290. <![CDATA[
  291. if(isDataCell()==true){
  292. fClkCnstPatHistListGrid();
  293. fChkStatus();
  294. }
  295. ]]>
  296. </script>
  297. </datagrid>
  298. <button id="button3" class="btn2_letter5" style="left:808px; top:156px; width:75px; height:19px; ">
  299. <caption>회의록작성</caption>
  300. <script type="javascript" ev:event="DOMActivate">
  301. <![CDATA[
  302. fClkBtnCnstConfRec();
  303. ]]>
  304. </script>
  305. </button>
  306. <datagrid id="grd_cnstconflist" nodeset="/root/main/cnstconfreclist/cnstconfreclist" caption="genrdd^genrno^confrecno^회의일시^협진분류명^회의제목" colsep="^" colwidth="0, 0, 0, 100, 100, 659" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:182px; width:885px; height:308px; ">
  307. <col ref="genrdd"/>
  308. <col ref="genrno"/>
  309. <col ref="confrecno"/>
  310. <col ref="confdt" format="yyyy-mm-dd hh:nn"/>
  311. <col ref="coopteamnm"/>
  312. <col ref="conftitl"/>
  313. <script type="javascript" ev:event="ondblclick">
  314. <![CDATA[
  315. if(isDataCell()){
  316. fDbClkGrdCnstConfRec();
  317. }
  318. ]]>
  319. </script>
  320. </datagrid>
  321. <output id="opt_status" ref="/root/init/status" style="left:325px; top:84px; width:75px; height:19px; "/>
  322. </xhtml:body>
  323. </xhtml:html>