SPMMR05600_환자메모.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  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. <send>
  10. <patmemo>
  11. <pid/>
  12. <userid/>
  13. <memo/>
  14. <popupyn/>
  15. <delflag/>
  16. <ioflag/>
  17. <deptnm/>
  18. </patmemo>
  19. <insmemo>
  20. <pid/>
  21. <msgwrtedd/>
  22. <msgwrteno/>
  23. <msgwrtehistno/>
  24. <recvmsg/>
  25. <ioflag/>
  26. <recvcnfmyn/>
  27. </insmemo>
  28. </send>
  29. <main>
  30. <pmemo>
  31. <memo/>
  32. <popupyn/>
  33. <nmemo/>
  34. <ipaddr/>
  35. </pmemo>
  36. <memolog>
  37. <lastupdtdt/>
  38. <lastupdtrid/>
  39. <lastupdtrnm/>
  40. <memo/>
  41. <nmemo/>
  42. <ipaddr/>
  43. </memolog>
  44. <imemo>
  45. <imemolist>
  46. <memolistinfo>
  47. <chkflag/>
  48. <sndmsg/>
  49. <snddt/>
  50. <sndusrnm/>
  51. <pid/>
  52. <orddd/>
  53. <cretno/>
  54. <msgwrtedd/>
  55. <msgwrteno/>
  56. <msgwrtehistno/>
  57. <recvmsg/>
  58. <recvcnfmyn/>
  59. </memolistinfo>
  60. </imemolist>
  61. <recvmsg/>
  62. </imemo>
  63. <init>
  64. <delflag/>
  65. </init>
  66. </main>
  67. <hidden>
  68. <log>
  69. <detail/>
  70. </log>
  71. </hidden>
  72. </root>
  73. </instance>
  74. <script type="javascript" ev:event="xforms-ready">
  75. <![CDATA[
  76. fGetPatMemo();
  77. btn_tabmemo.selected = true;
  78. btn_tabnmemo.selected = true;
  79. ]]>
  80. </script>
  81. <submission id="TXMMR00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patmemo" resultref="/root/main/pmemo"/>
  82. <submission id="TRMMR05601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patmemo" resultref="/root/main/imemo/imemolist"/>
  83. <submission id="TRMMR05602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patmemo" resultref="/root/main/memolog"/>
  84. <submission id="TXMMR05601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/insmemo"/>
  85. <script type="javascript" ev:event="xforms-close">
  86. <![CDATA[
  87. opener.javascript.clearParameter("SPMMR05600_ioflag");
  88. opener.javascript.clearParameter("SPMMR05600_pid");
  89. opener.javascript.clearParameter("SPMMR05600_deptcd");
  90. opener.javascript.clearParameter("SPMMR05600_hngnm");
  91. opener.javascript.clearParameter("SPMMR05600_deptnm");
  92. opener.javascript.clearParameter("SPMMR05600_screenid");
  93. opener.javascript.clearParameter("SPMMR05600_pammemoyn");
  94. ]]>
  95. </script>
  96. </model>
  97. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  99. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  100. <script type="javascript" src="../../../emr/medirecweb/js/SPMMR05600.js"/>
  101. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  102. </xhtml:head>
  103. <xhtml:body overflow="hidden" pagewidth="695" pageheight="720" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  104. <group id="grup_smm" visibility="visible" style="left:0px; top:0px; width:679px; height:205px; border-color:#adceff; border-width:3px; border-style:solid; gradient:linear(0,0,100%,100%,white,#d7e7ff,1); ">
  105. <datagrid id="grd_history" nodeset="/root/main/memolog" visibility="hidden" caption="일자^수정자^환자메모^간호메모^ip주소^상태" colsep="^" colwidth="75,75,220,220,90,80" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:12px; top:24px; width:645px; height:148px; ">
  106. <col ref="lastupdtdt" format="yyyy-mm-dd" style="text-align:center; "/>
  107. <col ref="lastupdtrnm" style="text-align:center; "/>
  108. <col ref="memo"/>
  109. <col ref="nmemo"/>
  110. <col ref="ipaddr"/>
  111. <col ref="event" style="text-align:center; "/>
  112. <script type="javascript" ev:event="ondblclick">
  113. <![CDATA[
  114. if (grd_history.row < 1 || (grd_history.col != grd_history.colRef("memo") && grd_history.col != grd_history.colRef("nmemo")))
  115. return;
  116. var colName = grd_history.colAttribute(grd_history.col, "ref");
  117. var s = model.getValue(grd_history.attribute("nodeset")+ "["+ grd_history.row +"]/"+colName);
  118. if (s == "")
  119. return;
  120. grp_memoview.visible = grp_memoview.visible != true;
  121. tar_detail.value = s;
  122. model.setValue("/root/main/pmemo/ipaddr", model.getValue(grd_history.attribute("nodeset")+ "["+ grd_history.mouseRow+"]/ipaddr"));
  123. model.refresh();
  124. ]]>
  125. </script>
  126. <script type="javascript" ev:event="onmouseover">
  127. <![CDATA[
  128. if (grd_history.mouseRow < 1 || grd_history.mouseCol != grd_history.colRef("memo"))
  129. return;
  130. grd_history.hint = model.getValue(grd_history.attribute("nodeset")+ "["+ grd_history.mouseRow+"]/ipaddr");
  131. ]]>
  132. </script>
  133. </datagrid>
  134. <textarea id="tar_smm" ref="/root/main/pmemo/memo" style="left:12px; top:23px; width:325px; height:149px; "/>
  135. <group id="grp_nurse" style="left:347px; top:1px; width:312px; height:171px; ">
  136. <textarea id="textarea2" ref="/root/main/pmemo/nmemo" editable="false" style="left:0px; top:22px; width:310px; height:148px; "/>
  137. <button id="btn_tabndeptmemo" class="btn_sw" group="tab2" style="left:66px; top:0px; width:94px; height:22px; ">
  138. <caption>타과간호메모</caption>
  139. <script type="javascript" ev:event="onclick">
  140. <![CDATA[
  141. textarea2.attribute("ref") = "/root/main/pmemo/ndeptmemo";
  142. textarea2.attribute("editable") = "false";
  143. model.refresh();
  144. ]]>
  145. </script>
  146. </button>
  147. <bool id="bool2" checkvalue="Y,N" ref="/root/main/init/delflag" style="left:251px; top:-1px; width:13px; height:18px; ">
  148. <script type="javascript" ev:event="xforms-select">
  149. <![CDATA[
  150. model.setValue("/root/send/patmemo/delflag","Y");
  151. submit("TXMMR00101");
  152. model.setValue("/root/send/patmemo/delflag","N");
  153. model.makeNode("/root/main/pmemo/memo");
  154. model.makeValue("/root/main/pmemo/popupyn", "Y");
  155. if(model.getValue("/root/main/pmemo/memo") != "") {
  156. if(typeof(opener.btn_memo) != "unknown") {
  157. opener.btn_memo.value = "메모■";
  158. }
  159. } else {
  160. if(typeof(opener.btn_memo) != "unknown") {
  161. opener.btn_memo.value = "메모□";
  162. }
  163. model.makeValue("/root/send/pmemo/memo", "");
  164. }
  165. model.refresh();
  166. window.close();
  167. ]]>
  168. </script>
  169. </bool>
  170. <caption id="caption3" style="left:270px; top:-1px; width:41px; height:20px; ">확인</caption>
  171. <button id="btn_tabnmemo" class="btn_sw" group="tab2" selected="true" style="left:1px; top:0px; width:65px; height:22px; ">
  172. <caption>간호메모</caption>
  173. <script type="javascript" ev:event="onclick">
  174. <![CDATA[
  175. textarea2.attribute("ref") = "/root/main/pmemo/nmemo";
  176. var screenid = opener.javascript.getParameter("SPMMR05600_screenid");
  177. if(screenid == "SMMMO02500") { // 환자 진료정보 조회에서 팝업시 간호메모 수정 가능 하도록 2014.04.11 엄영만
  178. textarea2.attribute("editable") = "true";
  179. } else {
  180. textarea2.attribute("editable") = "false";
  181. }
  182. model.refresh();
  183. ]]>
  184. </script>
  185. </button>
  186. </group>
  187. <button id="btn_tabhistory" class="btn_sw" group="tab1" style="left:148px; top:1px; width:65px; height:22px; ">
  188. <caption>메모이력</caption>
  189. <script type="javascript" ev:event="onclick">
  190. <![CDATA[
  191. tar_smm.visible = false;
  192. grd_history.visible = true;
  193. grp_nurse.visible = false;
  194. btn_cnfm.visible = false;
  195. fGetHistory();
  196. model.refresh();
  197. ]]>
  198. </script>
  199. </button>
  200. <button id="btn_tabmemo" class="btn_sw" group="tab1" selected="true" style="left:16px; top:1px; width:65px; height:22px; ">
  201. <caption>환자메모</caption>
  202. <script type="javascript" ev:event="onclick">
  203. <![CDATA[
  204. tar_smm.visible = true;
  205. grd_history.visible = false;
  206. grp_nurse.visible = true;
  207. grp_memoview.visible = false;
  208. tar_smm.attribute("ref") = "/root/main/pmemo/memo";
  209. btn_cnfm.visible = true;
  210. tar_smm.attribute("editable") = "true";
  211. model.refresh();
  212. ]]>
  213. </script>
  214. </button>
  215. <button id="btn_tabdmemo" class="btn_sw" group="tab1" style="left:82px; top:1px; width:65px; height:22px; ">
  216. <caption>타과메모</caption>
  217. <script type="javascript" ev:event="onclick">
  218. <![CDATA[
  219. tar_smm.visible = true;
  220. grd_history.visible = false;
  221. grp_nurse.visible = true;
  222. grp_memoview.visible = false;
  223. tar_smm.attribute("ref") = "/root/main/pmemo/deptmemo";
  224. btn_cnfm.visible = false;
  225. tar_smm.attribute("editable") = "false";
  226. model.refresh();
  227. ]]>
  228. </script>
  229. </button>
  230. <button id="btn_cnfm" class="btn2_letter2" style="left:292px; top:1px; width:42px; height:19px; ">
  231. <caption>저장</caption>
  232. <script type="javascript" ev:event="DOMActivate">
  233. <![CDATA[
  234. fSaveMemo();
  235. ]]>
  236. </script>
  237. </button>
  238. <button id="btn_cncl" class="btn2_letter2" style="left:614px; top:173px; width:42px; height:19px; ">
  239. <caption>닫기</caption>
  240. <script type="javascript" ev:event="DOMActivate">
  241. <![CDATA[
  242. window.close();
  243. ]]>
  244. </script>
  245. </button>
  246. <bool id="bool1" checkvalue="Y,N" ref="/root/main/pmemo/popupyn" style="left:13px; top:175px; width:25px; height:15px; "/>
  247. <caption id="caption1" style="left:37px; top:174px; width:50px; height:20px; ">
  248. <![CDATA[자동팝업]]>
  249. <hint>
  250. <![CDATA[타과메모 존재시에도 자동팝업을 원하시면 사용자 환경설정에서 설정하시기 바랍니다!]]>
  251. </hint>
  252. </caption>
  253. <!--
  254. <caption id="caption2" class="tit_2" style="left:348px; top:2; width:81px; height:13px; ">간호메모</caption>
  255. -->
  256. <!--
  257. <caption id="caption5" class="tit_2" style="left:16px; top:2px; width:81px; height:13px; ">환자메모</caption>
  258. -->
  259. <caption id="caption9" ref="/root/main/pmemo/ipaddr" style="left:147px; top:175px; width:130px; height:18px; "/>
  260. <group id="grp_memoview" visibility="hidden" style="left:312px; top:2px; width:270px; height:190px; ">
  261. <textarea id="tar_detail" ref="/root/hidden/log/detail" style="left:0px; top:0px; width:270px; height:165px; border-style:none; opacity:70; "/>
  262. <button id="button1" style="left:222px; top:168px; width:42px; height:18px; background-image:../../../com/commonweb/images/icon_close.gif; ">
  263. <caption/>
  264. <script type="javascript" ev:event="DOMActivate">
  265. <![CDATA[
  266. grp_memoview.visible = false;
  267. ]]>
  268. </script>
  269. </button>
  270. </group>
  271. </group>
  272. <group id="group1" visibility="visible" style="left:0px; top:250px; width:679px; height:443px; border-color:#adceff; border-width:3px; border-style:solid; gradient:linear(0,0,100%,100%,white,#d7e7ff,1); ">
  273. <caption id="caption8" class="tit_2" style="left:16px; top:15px; width:81px; height:13px; ">보험메모</caption>
  274. <caption id="caption4" style="left:17px; top:32px; width:195px; height:20px; ">확인 체크시 메시지가 사라집니다.</caption>
  275. <caption id="caption6" style="left:17px; top:247px; width:510px; height:40px; line-spacing:5; ">
  276. <![CDATA[보험메모에 대하여 답장을 하실 경우 확인 체크박스를 선택하지 마시고,
  277. 내용부분을 더블클릭 하신 후 아래 답신영역에 내용을 작성하시고 [전송]버튼을 눌러주세요.]]>
  278. </caption>
  279. <caption id="caption7" class="tit_2" style="left:17px; top:297px; width:81px; height:13px; ">답신</caption>
  280. <line id="line1" class="line_1" style="x1:12px; y1:52px; x2:657px; y2:52px; "/>
  281. <button id="btn_trnm" class="btn2_letter2" style="left:602px; top:412px; width:42px; height:19px; ">
  282. <caption>전송</caption>
  283. <script type="javascript" ev:event="DOMActivate">
  284. <![CDATA[
  285. if ( txt_recvmsg.value == "") {
  286. messageBox("답신영역에 내용을 ", "C001");
  287. model.setFocus("txt_recvmsg");
  288. return;
  289. } else {
  290. fComInsMemo();
  291. }
  292. ]]>
  293. </script>
  294. </button>
  295. <datagrid id="grd_imemolist" nodeset="/root/main/imemo/imemolist/memolistinfo" allowselection="true" autoresize="true" caption="확인^메모 내용^송신일시^심사자&#xA;(연락처)|확인^메모 내용^송신일시^심사자&#xA;(연락처)" colsep="^" colwidth="30, 429, 71, 91" defaultrows="0" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:12px; top:57px; width:645px; height:175px; ">
  296. <col checkvalue="Y,N" ref="chkflag" type="checkbox"/>
  297. <col ref="sndmsg" style="text-align:left; "/>
  298. <col ref="snddt" format="yyyy/mm/dd" style="text-align:center; "/>
  299. <col ref="sndusrnm" style="text-align:left; "/>
  300. <script type="javascript" ev:event="ondblclick">
  301. <![CDATA[
  302. if( grd_imemolist.isCell(event.target) && grd_imemolist.row >= grd_imemolist.fixedRows ){
  303. //답신 활성화
  304. fCheckGrid();
  305. txt_recvmsg.disabled = false;
  306. model.setFocus("txt_recvmsg");
  307. model.refresh();
  308. }
  309. ]]>
  310. </script>
  311. <script type="javascript" ev:event="onclick">
  312. <![CDATA[
  313. if( grd_imemolist.isCell(event.target) && grd_imemolist.row >= grd_imemolist.fixedRows ){
  314. // fCheckGrid();
  315. // model.setValue("/root/main/imemo/recvmsg", "");
  316. model.resetInstanceNode("/root/send/insmemo");
  317. //답신 비활성화
  318. txt_recvmsg.disabled = true;
  319. model.refresh();
  320. }
  321. ]]>
  322. </script>
  323. <script type="javascript" ev:event="xforms-select">
  324. <![CDATA[
  325. var currow = grd_imemolist.row-1;
  326. var chkmsg = model.getValue(grd_imemolist.nodeset + "[" + currow + "]/chkflag");
  327. var recvcnfmyn = model.getValue(grd_imemolist.nodeset + "[" + currow + "]/recvcnfmyn");
  328. if( chkmsg == "Y" ) {
  329. fCheckGrid();
  330. fComInsMemo();
  331. model.removenode ( grd_imemolist.nodeset + "[" + currow + "]" );
  332. txt_recvmsg.value = "";
  333. }
  334. var nodeList = instance1.selectNodes("/root/main/imemo/imemolist/memolistinfo");
  335. if (nodeList.length < 1) {
  336. window.close();
  337. }
  338. model.refresh();
  339. ]]>
  340. </script>
  341. </datagrid>
  342. <textarea id="txt_recvmsg" ref="/root/main/imemo/recvmsg" disabled="true" editable="true" style="left:12px; top:317px; width:645px; height:85px; "/>
  343. </group>
  344. </xhtml:body>
  345. </xhtml:html>