SPMNV21100_안센터진료실등록.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <?xml version="1.0" encoding="UTF-8"?>
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <orddeptcd/>
  12. <suppdeptcd/>
  13. </cond>
  14. <usedeptinfo>
  15. <usedeptlist/>
  16. </usedeptinfo>
  17. <deptinfo>
  18. <deptlist/>
  19. </deptinfo>
  20. <excuroomcdlist>
  21. <excuroom/>
  22. </excuroomcdlist>
  23. </main>
  24. <send>
  25. <reqdata/>
  26. <savedata/>
  27. </send>
  28. <init>
  29. <suppdeptlist/>
  30. <deptcd>
  31. <orddeptcd/>
  32. <ordroominfo/>
  33. </deptcd>
  34. </init>
  35. <hidden/>
  36. </root>
  37. </instance>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. fInitialize();
  41. ]]>
  42. </script>
  43. <script type="javascript">
  44. <![CDATA[
  45. var UsePath = "/root/main/usedeptinfo/usedeptlist"
  46. var OrdRoomPath = "/root/init/deptcd/ordroominfo/ordroomlist"
  47. var ExcurRoomPath = "/root/main/excuroomcdlist/excuroom"
  48. function fInitialize() {
  49. var CurrentDate = getCurrentDate();
  50. // 지원부서 정보를 조회한다.
  51. model.removenode(UsePath);
  52. model.removeNodeset("/root/send/reqdata");
  53. model.makeNode("/root/send/reqdata");
  54. model.makeValue("/root/send/reqdata/orddd",CurrentDate);
  55. submit("TRAEA00904", false); //지원부서
  56. //센터와 부서 정보를 조회한다.
  57. // submit("TRMNV21101"); //센터, 진료과 정보 가져옴
  58. var instcd = getUserInfo("dutplceinstcd");
  59. base_dd = new Date().getDateFormat("YYYYMMDD");
  60. zsdfGetCareOutOrderDepartmentList(instcd, "/root/init/deptcd/orddeptcd", base_dd);
  61. var dutplcecd=getUserInfo("dutplcecd");
  62. model.setValue("/root/main/cond/orddeptcd" , dutplcecd);
  63. model.makeValue("/root/send/reqdata/cdgrupid", "090");
  64. submit("TRMNV21102"); //진료실 가지고 옴
  65. }
  66. ]]>
  67. </script>
  68. <submission id="TRMNV21101" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" resultref="/root/init/deptcd"/>
  69. <submission id="TRMNV21103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/excuroomcdlist"/>
  70. <submission id="TRAEA00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/suppdeptlist"/>
  71. <submission id="TRMNV21102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/deptcd/ordroominfo"/>
  72. <submission id="TXMNV21101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/usedeptinfo"/>
  73. <submission id="TRMNV21104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/usedeptinfo"/>
  74. <submission id="TRZSD00206" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  75. </model>
  76. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  79. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  80. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  81. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  82. <script type="javascript" src="../../../emr/waitguideweb/js/MNV00100.js"/>
  83. </xhtml:head>
  84. <xhtml:body pagewidth="480" pageheight="450" guideline="1,464;1,444;1,482;2,450;">
  85. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:20px; width:464px; height:35px; "/>
  86. <button id="button1" class="btn5_letter2" style="left:240px; top:60px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn1_letter6.gif; ">
  87. <caption>저장</caption>
  88. <script type="javascript" ev:event="DOMActivate">
  89. <![CDATA[
  90. if( ! getGridUpdateData(grd_room) ) {
  91. messageBox("입력","E013"); // 그리드에 데이터가 업데이트 되지 않으면 "입력된 데이터가 없습니다."는 메시지 출력
  92. return ;
  93. }
  94. model.makeValue("/root/send/savedata", grd_room.getUpdateData()); // 분류코드의 업데이트 된 내용을 savedata에 넣는다
  95. submit("TXMNV21101");
  96. ]]>
  97. </script>
  98. </button>
  99. <button id="btn_inreqsrch" class="btn2_letter2" style="left:195px; top:60px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn1_letter6.gif; ">
  100. <caption>삭제</caption>
  101. <script type="javascript" ev:event="DOMActivate">
  102. <![CDATA[
  103. var getRowno = deleteSelectedRows(grd_room, true);
  104. grd_room.addStatus(getRowno,"delete");
  105. ]]>
  106. </script>
  107. </button>
  108. <datagrid id="grd_room" nodeset="/root/main/usedeptinfo/usedeptlist" caption="caption1^리스트^리스트^표시명^orddeptcd^roomcd" colsep="^" colwidth="0, 24, 102, 137, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:80px; width:285px; height:355px; ">
  109. <col ref="status" visibility="hidden"/>
  110. <col ref="seqno" visibility="hidden"/>
  111. <col ref="roomnm"/>
  112. <col ref="useroomnm" type="input"/>
  113. <col ref="orddeptcd" visibility="hidden"/>
  114. <col ref="roomcd" visibility="hidden"/>
  115. </datagrid>
  116. <select1 id="cmb_orddeptcd" ref="/root/main/cond/orddeptcd" navindex="3" appearance="minimal" style="left:90px; top:30px; width:128px; height:19px; ">
  117. <choices>
  118. <itemset nodeset="/root/init/deptcd/orddeptcd/dept">
  119. <label ref="depthngnm"/>
  120. <value ref="deptcd"/>
  121. </itemset>
  122. </choices>
  123. <script type="javascript" ev:event="xforms-value-changed">
  124. <![CDATA[
  125. model.removenode("/root/main/usedeptinfo");
  126. model.makeNode("/root/main/usedeptinfo");
  127. submit("TRMNV21104");
  128. ]]>
  129. </script>
  130. </select1>
  131. <caption id="caption7" class="search_name" style="left:10px; top:30px; width:80px; height:17px; ">진 료 과</caption>
  132. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:175px; height:14px; ">진료실/검사실 마스터 등록</caption>
  133. <datagrid id="grd_ordroom" nodeset="/root/init/deptcd/ordroominfo/ordroomlist" caption="진료실^roomcd^useroomnm" colsep="^" colwidth="138, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:287px; top:80px; width:177px; height:180px; ">
  134. <col ref="roomnm"/>
  135. <col ref="roomcd" visibility="hidden"/>
  136. <col ref="useroomnm" visibility="hidden"/>
  137. <script type="javascript" ev:event="ondblclick">
  138. <![CDATA[
  139. if (isDataCell() == true) {
  140. if(cmb_orddeptcd.label.length > 0) {
  141. var count = 0;
  142. var row = grd_ordroom.row;
  143. var roomcd = model.getValue(OrdRoomPath + "[" + row + "]/roomcd");
  144. var roomnm = model.getValue(OrdRoomPath + "[" + row + "]/roomnm");
  145. for (var i =1; i < grd_room.rows; i++ ) {
  146. var useroomcd = model.getValue(UsePath + "[" + i + "]/roomcd");
  147. if (roomcd == useroomcd) count++;
  148. }
  149. if (count == 0 ) {
  150. grd_room.addRow();
  151. var roomrow = grd_room.rows -1;
  152. model.setValue(UsePath + "[" + roomrow + "]/status" , "i");
  153. model.setValue(UsePath + "[" + roomrow + "]/roomcd" , roomcd);
  154. model.setValue(UsePath + "[" + roomrow + "]/roomnm" , roomnm);
  155. model.setValue(UsePath + "[" + roomrow + "]/useroomnm" , roomnm);
  156. model.setValue(UsePath + "[" + roomrow + "]/orddeptcd" , model.getValue("/root/main/cond/orddeptcd"));
  157. } else {
  158. messageBox("이미 진료실이 추가 되었습니다", "I");
  159. }
  160. } else {
  161. messageBox("진료과는 필수 선택입니다.", "I");
  162. }
  163. }
  164. ]]>
  165. </script>
  166. </datagrid>
  167. <datagrid id="grd_excuroom" nodeset="/root/main/excuroomcdlist/excuroom" caption="검사실^basecd^useroomnm" colsep="^" colwidth="140, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:287px; top:305px; width:178px; height:130px; ">
  168. <col ref="roomnm"/>
  169. <col ref="roomcd" visibility="hidden"/>
  170. <col ref="useroomnm" visibility="hidden"/>
  171. <script type="javascript" ev:event="ondblclick">
  172. <![CDATA[
  173. if (isDataCell() == true) {
  174. if(cmb_orddeptcd.label.length > 0) {
  175. var count = 0
  176. var row = grd_excuroom.row;
  177. var roomcd = model.getValue(ExcurRoomPath + "[" + row + "]/roomcd");
  178. var roomnm = model.getValue(ExcurRoomPath + "[" + row + "]/roomnm");
  179. for (var i =1; i < grd_room.rows; i++ ) {
  180. var useroomcd = model.getValue(UsePath + "[" + i + "]/roomcd");
  181. if (roomcd == useroomcd) count++;
  182. }
  183. if (count == 0 ) {
  184. grd_room.addRow();
  185. var roomrow = grd_room.rows - 1;
  186. model.setValue(UsePath + "[" + roomrow + "]/status" , "i");
  187. model.setValue(UsePath + "[" + roomrow + "]/roomcd" , roomcd);
  188. model.setValue(UsePath + "[" + roomrow + "]/roomnm" , roomnm);
  189. model.setValue(UsePath + "[" + roomrow + "]/useroomnm" , roomnm);
  190. model.setValue(UsePath + "[" + roomrow + "]/orddeptcd" , model.getValue("/root/main/cond/orddeptcd"));
  191. } else {
  192. messageBox("이미 진료실이 추가 되었습니다", "I");
  193. }
  194. } else {
  195. messageBox("진료과는 필수 선택입니다.", "I");
  196. }
  197. }
  198. ]]>
  199. </script>
  200. </datagrid>
  201. <select1 id="combo1" ref="/root/main/cond/suppdeptcd" navindex="3" appearance="minimal" style="left:337px; top:282px; width:128px; height:19px; ">
  202. <choices>
  203. <itemset nodeset="/root/init/suppdeptlist/suppdept">
  204. <label ref="depthngnm"/>
  205. <value ref="suppdeptcd"/>
  206. </itemset>
  207. </choices>
  208. <script type="javascript" ev:event="xforms-value-changed">
  209. <![CDATA[
  210. model.removeNodeset("/root/send");
  211. model.makeValue("/root/send/globalinstance/instance1", model.getValue("/root/main/cond/suppdeptcd"));
  212. submit("TRMNV21103");
  213. ]]>
  214. </script>
  215. </select1>
  216. <caption id="caption1" class="search_name" style="left:290px; top:265px; width:80px; height:17px; ">지원부서</caption>
  217. </xhtml:body>
  218. </xhtml:html>