SPMRJ09901_CarePlan상용구(2).xrw 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <flag>P</flag>
  11. <problem/>
  12. <careplan/>
  13. <deptcd/>
  14. <reqdata/>
  15. </send>
  16. <save>
  17. </save>
  18. <main>
  19. <sentslist>
  20. <chk/>
  21. <problem/>
  22. <careplan/>
  23. <flag/>
  24. <deptcd/>
  25. <seqno/>
  26. <useyn/>
  27. </sentslist>
  28. </main>
  29. <temp>
  30. <sentslist>
  31. <chk/>
  32. <flag/>
  33. <deptcd/>
  34. <problem/>
  35. <careplan/>
  36. <useyn/>
  37. </sentslist>
  38. </temp>
  39. <cond>
  40. <ward/>
  41. </cond>
  42. <init>
  43. <ward>
  44. <dept/>
  45. </ward>
  46. </init>
  47. </root>
  48. </instance>
  49. <submission id="TRMRJ09902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/sentslist"/>
  50. <submission id="TXMRJ09901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save" replace="instance"/>
  51. </model>
  52. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  57. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  58. <script type="javascript" src="../../../emr/jcimngtweb/js/SMMRJ00100.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" ev:event="xforms-ready">
  62. <![CDATA[
  63. model.removenode("/root/main/sentslist");
  64. grd_sentslist.fixedcellcheckbox(0, 1) = true;
  65. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/ward", "W"); //병동코드 콤보
  66. addComboInstance("/root/init/ward" , "deptcd^depthngnm", "-^전체", "dept"); //병동콤보 전체항목 추가
  67. btn_search.dispatch("DOMActivate");
  68. model.refresh();
  69. ]]>
  70. </script>
  71. </xhtml:head>
  72. <xhtml:body pagewidth="570" pageheight="560">
  73. <group id="grd_main" style="left:5px; top:5px; width:550px; height:65px; vertical-align:top; ">
  74. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:550px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  75. <input id="ipt_problem" ref="/root/send/problem" class="input_search" style="left:367px; top:11px; width:100px; height:19px; "/>
  76. <caption id="caption8" class="search_name" style="left:8px; top:12px; width:60px; height:17px; ">유형 :</caption>
  77. <select1 id="rdo_flag" ref="/root/send/flag" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:70px; top:13px; width:90px; height:15px; border-style:none; ">
  78. <choices>
  79. <item>
  80. <label>공용</label>
  81. <value>P</value>
  82. </item>
  83. <item>
  84. <label>부서</label>
  85. <value>D</value>
  86. </item>
  87. </choices>
  88. <script type="javascript" ev:event="xforms-value-changed">
  89. <![CDATA[
  90. if( model.getValue("/root/send/flag") == "D"){
  91. cmb_ward.disabled = false;
  92. model.makeValue("/root/cond/ward", "-");
  93. }else{
  94. cmb_ward.disabled = true;
  95. model.makeValue("/root/cond/ward", "");
  96. }
  97. model.refresh();
  98. ]]>
  99. </script>
  100. </select1>
  101. <input id="ipt_careplan" ref="/root/send/careplan" class="input_search" style="left:157px; top:37px; width:310px; height:19px; "/>
  102. <button id="btn_search" class="btn1_letter2" style="left:485px; top:20px; width:56px; height:22px; ">
  103. <caption>조회</caption>
  104. <script type="javascript" ev:event="DOMActivate">
  105. <![CDATA[
  106. if( model.getValue("/root/send/flag") == "D"){
  107. model.makeValue("/root/send/deptcd", model.getValue("/root/cond/ward"));
  108. }else{
  109. model.makeValue("/root/send/deptcd", "");
  110. }
  111. if (!submit("TRMRJ09902")){
  112. return;
  113. }
  114. model.refresh();
  115. ]]>
  116. </script>
  117. </button>
  118. <line id="line13" style="x1:479px; y1:5px; x2:479px; y2:56px; border-color:#ffe4bb; border-left-style:solid; "/>
  119. <caption id="caption3" class="search_name" style="left:8px; top:37px; width:150px; height:17px; ">
  120. <![CDATA[Care Plan & goal :]]>
  121. </caption>
  122. <caption id="caption1" class="search_name" style="left:276px; top:12px; width:90px; height:17px; ">Problem :</caption>
  123. <select1 id="cmb_ward" ref="/root/cond/ward" class="combo_search" disabled="true" appearance="minimal" style="left:158px; top:10px; width:114px; height:19px; ">
  124. <choices>
  125. <itemset nodeset="/root/init/ward/dept">
  126. <label ref="depthngnm"/>
  127. <value ref="deptcd"/>
  128. </itemset>
  129. </choices>
  130. </select1>
  131. </group>
  132. <datagrid id="grd_sentslist" nodeset="/root/main/sentslist" autosizemouse="true" caption="^Problem^Care Plan &amp; goal^flag^deptcd^seqno^useyn" colwidth="26, 109, 362, 34, 34, 34, 34" dataheight="25" defaultrows="0" rowheader="update" style="left:5px; top:104px; width:550px; height:420px; border-color:#808080; ">
  133. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  134. <col ref="problem" type="input" maxbyte="300" maxlength="150"/>
  135. <col ref="careplan" type="input" maxbyte="1500" maxlength="750"/>
  136. <col ref="flag" visibility="hidden"/>
  137. <col ref="deptcd" visibility="hidden"/>
  138. <col ref="seqno" visibility="hidden"/>
  139. <col ref="useyn" visibility="hidden"/>
  140. <script type="javascript" ev:event="onaftersort">
  141. <![CDATA[
  142. grd_sentslist.gridToInstance();
  143. ]]>
  144. </script>
  145. </datagrid>
  146. <button id="button2" class="btn5_letter3" style="left:388px; top:80px; width:53px; height:19px; ">
  147. <caption>행추가</caption>
  148. <script type="javascript" ev:event="DOMActivate">
  149. <![CDATA[
  150. grd_sentslist.addRow();
  151. var row = getNodesetCount("/root/main/sentslist");
  152. model.setValue("/root/main/sentslist["+row+"]/flag", model.getValue("/root/send/flag"));
  153. if( model.getValue("/root/send/flag") == "D" ){
  154. model.makeValue("/root/main/sentslist["+row+"]/deptcd", model.getValue("/root/send/deptcd"));
  155. }
  156. grd_sentslist.editCell();
  157. ]]>
  158. </script>
  159. </button>
  160. <button id="button3" class="btn5_letter3" style="left:443px; top:80px; width:53px; height:19px; ">
  161. <caption>행삭제</caption>
  162. <script type="javascript" ev:event="DOMActivate">
  163. <![CDATA[
  164. var row = grd_sentslist.row;
  165. var rowStatus = grd_sentslist.rowStatus(row);
  166. if( rowStatus == 1 ){
  167. grd_sentslist.deleteRow(row);
  168. }else if( rowStatus == 0 ){
  169. grd_sentslist.rowStatus(row) = 4;
  170. model.setValue("/root/main/sentslist["+ row +"]/useyn", "N");
  171. }
  172. model.refresh();
  173. ]]>
  174. </script>
  175. </button>
  176. <button id="btn_save" class="btn4_letter2" style="left:500px; top:78px; width:56px; height:22px; ">
  177. <caption>저장</caption>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. model.setValue("/root/save", grd_sentslist.getUpdateData());
  181. if (submit("TXMRJ09901")) {
  182. messageBox("저장","I002");
  183. btn_search.dispatch("DOMActivate");
  184. } else {
  185. messageBox("저장을","E009");
  186. }
  187. ]]>
  188. </script>
  189. </button>
  190. <caption id="caption5" style="left:5px; top:535px; width:260px; height:15px; font-weight:bold; color:#ff0000; ">셀내에서 한줄띄움은 Ctrl+Enter 입니다.</caption>
  191. <caption id="caption4" style="left:250px; top:535px; width:235px; height:15px; font-weight:bold; ">단어는 최대 2000개까지 표시됩니다.</caption>
  192. <line id="line1" class="line_1" style="x1:5px; y1:100px; x2:555px; y2:100px; "/>
  193. <button id="btn_ok" class="btn3_letter2" style="left:25px; top:78px; width:56px; height:22px; ">
  194. <caption>확인</caption>
  195. <script type="javascript" ev:event="DOMActivate">
  196. <![CDATA[
  197. var cnt = 0;
  198. for (var i = 1; i <= grd_sentslist.rows-grd_sentslist.fixedRows; i++) {
  199. if (model.getValue("/root/main/sentslist["+i+"]/chk") == "Y"){
  200. cnt += 1;
  201. opener.javascript.fClickRowAddBtn(parent.window.document.controls("datagrid03"),'003');
  202. opener.model.setValue("/root/main/careplanlists/careplanlist[workflag='003']/problem", model.getValue("/root/main/sentslist["+i+"]/problem"));
  203. opener.model.setValue("/root/main/careplanlists/careplanlist[workflag='003']/careplan", model.getValue("/root/main/sentslist["+i+"]/careplan"));
  204. }else{
  205. cnt += 0;
  206. }
  207. }
  208. grd_sentslist.fixedcellischeck(0,1) = false;
  209. grd_sentslist.clearStatus();
  210. if (cnt == 0){
  211. messageBox("복사할 항목을 체크해 주십시요","I");
  212. }
  213. ]]>
  214. </script>
  215. </button>
  216. <button id="button1" class="btn1_letter2" style="left:495px; top:530px; width:56px; height:22px; ">
  217. <caption>닫기</caption>
  218. <script type="javascript" ev:event="DOMActivate">
  219. <![CDATA[
  220. window.close();
  221. ]]>
  222. </script>
  223. </button>
  224. </xhtml:body>
  225. </xhtml:html>