SPCHI01300_내원부서설정.xrw 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SPCHI01300_내원부서설정.xrw
  4. * Summary : 건진 후 내원 확인을 위한 부서 목록 마스터 관리
  5. * Programmer : 엄윤호
  6. * Date Written : 2007.09.19
  7. * History : 2007.09.19
  8. * Remark :
  9. -->
  10. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>건진 후 내원부서설정</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <deptlist/>
  19. </main>
  20. <send>
  21. <srch>
  22. <orddept/>
  23. </srch>
  24. <deptlist/>
  25. </send>
  26. <init>
  27. <basecdlist>
  28. <orddeptlist>
  29. <dept>
  30. <depthngnm/>
  31. <deptcd/>
  32. </dept>
  33. </orddeptlist>
  34. </basecdlist>
  35. </init>
  36. <temp>
  37. <result/>
  38. </temp>
  39. </root>
  40. </instance>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. var instcd = getUserInfo("dutplceinstcd");
  44. var standard_yn = "orduseyn";
  45. var ord_deptflag = "D"; // 외래진료과
  46. var rslt_ref = "/root/init/basecdlist/orddeptlist";
  47. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
  48. fCheckAuth();
  49. model.removeNodeset("/root/main/deptlist");
  50. submit("TRCHI01301");
  51. //model.refresh();
  52. ]]>
  53. </script>
  54. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  55. <submission id="TRCHI01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/main/deptlist"/>
  56. <submission id="TXCHI01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptlist" resultref="/root/temp/result"/>
  57. </model>
  58. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  61. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  62. <script type="javascript">
  63. <![CDATA[
  64. function fCheckAuth() {
  65. // 권한체크
  66. if (!checkAuth("r")) {
  67. btn_search.disabled=true;
  68. }
  69. if (!checkAuth("x")) {
  70. btn_save.disabled=true;
  71. btn_adddept.disabled=true;
  72. btn_deldept.disabled=true;
  73. }
  74. //if (!checkAuth("p")) {
  75. //}
  76. }
  77. function fCheckDeptList() {
  78. var grid = grd_deptlist;
  79. for (i=grid.fixedRows; i<grid.rows; i++) {
  80. if (grid.rowstatus(i) == 1) {
  81. if (model.getValue("/root/main/deptlist["+i+"]/orddeptcd") == "") {
  82. messageBox("진료과를","C002");
  83. grid.row = i;
  84. grid.col = 1;
  85. grid.editCell();
  86. return false;
  87. }
  88. }
  89. }
  90. return true;
  91. }
  92. function fSaveDeptList() {
  93. //if (!checkKeyColumn(grd_deptlist)) return;
  94. if(!fCheckDeptList()) return;
  95. var grid = grd_deptlist;
  96. var updt_list = getGridUpdateData(grid);
  97. if (updt_list != "") {
  98. model.setValue("/root/send/deptlist", grid.getUpdateData());
  99. }
  100. setAlertOn();
  101. if (submit("TXCHI01301")) {
  102. grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  103. model.setValue("/root/send/deptlist","");
  104. model.setValue("/root/send/srch/orddept","");
  105. submit("TRCHI01301");
  106. }
  107. }
  108. ]]>
  109. </script>
  110. </xhtml:head>
  111. <xhtml:body pagewidth="466" pageheight="392" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  112. <group id="group1" scroll="auto" style="left:0px; top:0px; width:450px; height:365px; ">
  113. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:450px; height:35px; "/>
  114. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:117px; height:17px; ">부서검색 :</caption>
  115. <select1 id="cmb_orddept" ref="/root/send/srch/orddept" class="combo_search" appearance="minimal" style="left:108px; top:8px; width:130px; height:19px; ">
  116. <choices>
  117. <itemset nodeset="/root/init/basecdlist/orddeptlist/dept">
  118. <label ref="depthngnm"/>
  119. <value ref="deptcd"/>
  120. </itemset>
  121. </choices>
  122. <script type="javascript" ev:event="xforms-value-changed">
  123. <![CDATA[
  124. submit("TRCHI01301");
  125. ]]>
  126. </script>
  127. </select1>
  128. <line id="line1" class="line_4" style="x1:363px; y1:7px; x2:363px; y2:29px; "/>
  129. <button id="btn_search" class="btn1_letter2" style="left:378px; top:7px; width:56px; height:22px; ">
  130. <caption>조회</caption>
  131. <script type="javascript" ev:event="DOMActivate">
  132. <![CDATA[
  133. submit("TRCHI01301");
  134. ]]>
  135. </script>
  136. </button>
  137. <caption id="caption2" class="tit_2" style="left:5px; top:45px; width:330px; height:13px; vertical-align:middle; ">건진 후 내원 확인할 진료과(부서) 목록 설정</caption>
  138. <button id="btn_adddept" class="btn2_letter3" style="left:340px; top:40px; width:53px; height:19px; ">
  139. <caption>행추가</caption>
  140. <script type="javascript" ev:event="DOMActivate">
  141. <![CDATA[
  142. model.setFocus("grd_deptlist");
  143. grd_deptlist.addRow();
  144. model.setValue("/root/main/deptlist["+grd_deptlist.row+"]/usdt", getCurrentDate()+getCurrentTime());
  145. model.setValue("/root/main/deptlist["+grd_deptlist.row+"]/fstrgstrid", getUserId());
  146. grd_deptlist.editCell();
  147. ]]>
  148. </script>
  149. </button>
  150. <button id="btn_deldept" class="btn2_letter3" style="left:396px; top:40px; width:53px; height:19px; ">
  151. <caption>행삭제</caption>
  152. <script type="javascript" ev:event="DOMActivate">
  153. <![CDATA[
  154. deleteSelectedRows(grd_deptlist, true);
  155. ]]>
  156. </script>
  157. </button>
  158. <line id="line2" class="line_1" style="x1:0px; y1:60px; x2:450px; y2:60px; "/>
  159. <datagrid id="grd_deptlist" nodeset="/root/main/deptlist" caption="진료과^시작일시^등록자ID" colwidth="150, 150, 110" explorerbar="sortshow" extendlastcol="scroll" rowheader="update" style="left:0px; top:65px; width:450px; height:295px; ">
  160. <col disabled="true" ref="orddeptcd" type="combo" _key="true">
  161. <choices>
  162. <itemset nodeset="/root/init/basecdlist/orddeptlist/dept">
  163. <label ref="depthngnm"/>
  164. <value ref="deptcd"/>
  165. </itemset>
  166. </choices>
  167. </col>
  168. <col class="text_center" ref="usdt" format="yyyy-mm-dd hh:nn:ss"/>
  169. <col class="text_center" ref="fstrgstrid"/>
  170. </datagrid>
  171. </group>
  172. <group id="group2" scroll="auto" style="left:0px; top:365px; width:450px; height:27px; ">
  173. <button id="btn_save" class="btn4_letter2" style="left:334px; top:0px; width:56px; height:22px; ">
  174. <caption>저장</caption>
  175. <script type="javascript" ev:event="DOMActivate">
  176. <![CDATA[
  177. fSaveDeptList();
  178. ]]>
  179. </script>
  180. </button>
  181. <button id="btn_cancel" class="btn4_letter2" style="left:393px; top:0px; width:56px; height:22px; ">
  182. <caption>취소</caption>
  183. <close ev:event="DOMActivate"/>
  184. </button>
  185. </group>
  186. </xhtml:body>
  187. </xhtml:html>