SPMRI04200_대출승인접근권한설정.xrw 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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>대출승인 접근권한설정</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <aprvlist>
  11. <aprvlist>
  12. <trgtcd/>
  13. <trgtnm/>
  14. <valifromdd/>
  15. <valitodd/>
  16. <trgtcdnm/>
  17. <cdseqno/>
  18. </aprvlist>
  19. </aprvlist>
  20. <aprvinfo>
  21. <trgtcd/>
  22. <valifromdd/>
  23. <valitodd/>
  24. <trgtcdnm/>
  25. </aprvinfo>
  26. <adminaprv/>
  27. </main>
  28. <send>
  29. </send>
  30. <temp>
  31. <aprvlist/>
  32. <aprvinfo/>
  33. </temp>
  34. <tempchkrec>
  35. <rtndata>
  36. <checkmsg/>
  37. </rtndata>
  38. </tempchkrec>
  39. <hardcode>
  40. </hardcode>
  41. <sendata>
  42. <endshowyn/>
  43. <aprvlist/>
  44. <aprvinfo/>
  45. </sendata>
  46. </root>
  47. </instance>
  48. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. // 대출업무에 대한 접근권한을 팀장과 담당자만 가능하도록 권한 설정
  56. // 권한 부여및 변경은 의무기록팀장님 관리토록 설정
  57. // 의무기록실 요청사항.
  58. mmbfGetHardCodeInfo("/root/send","/root/hardcode","4200");
  59. if( model.getValue("/root/hardcode/hardcd/hardcd") != getUserInfo("userid") ){
  60. messageBox("대출승인 관리자가 아닙니다. 대출승인 접근자리스트 조회만 가능합니다.","E");
  61. group1.disabled = true;
  62. btn_save.disabled = true;
  63. btn_del.disabled = true;
  64. btn_set.disabled = true;
  65. grd_aprvlist.disabled = true;
  66. }
  67. model.setValue("/root/main/aprvinfo/valifromdd", getCurrentDate());
  68. model.setValue("/root/main/aprvinfo/valitodd", "999912312359");
  69. btn_srch.dispatch("DOMActivate"); //조회
  70. model.refresh();
  71. ]]>
  72. </script>
  73. <script type="javascript">
  74. <![CDATA[
  75. function mmbfGetHardCodeInfo(ref, rsltref, hardcd){
  76. var mmb_rsltref = "/root/hidden/mmb/hardcd";
  77. model.removeNode(mmb_rsltref);
  78. model.makeNode(mmb_rsltref);
  79. model.removeNode(ref);
  80. model.makeValue(ref + "/hardcd", hardcd);
  81. if(submit("TRMMB04103", "false", ref, mmb_rsltref)==true){
  82. model.copyNode(rsltref, mmb_rsltref);
  83. model.removeNode(mmb_rsltref);
  84. }
  85. model.refresh();
  86. }
  87. ]]>
  88. </script>
  89. <submission id="TRMRI04200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/sendata/endshowyn" resultref="/root/temp/aprvlist"/>
  90. <submission id="TRMRI04201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/aprvinfo/trgtcd" resultref="/root/tempchkrec"/>
  91. <submission id="TXMRI04200" mediatype="application/x-www-form-urlencoded" ref="/root/sendata/aprvinfo" resultref="/root/main/aprvlist/aprvlist"/>
  92. <submission id="TXMRI04201" mediatype="application/x-www-form-urlencoded" ref="/root/sendata/aprvlist" resultref="/root/main/aprvlist/aprvlist"/>
  93. <submission id="TRMMB04103" mediatype="application/x-www-form-urlencoded" method="post"/>
  94. </model>
  95. </xhtml:head>
  96. <xhtml:body pagewidth="850" pageheight="500">
  97. <caption id="caption1" class="tit_2" style="left:0px; top:10px; width:155px; height:13px; ">대출승인 접근권한등록</caption>
  98. <caption id="caption7" class="tit_2" style="left:0px; top:100px; width:191px; height:13px; ">대출승인 접근권한 리스트</caption>
  99. <line id="line1" class="line_1" style="x1:0px; y1:115px; x2:810px; y2:115px; "/>
  100. <datagrid id="grd_aprvlist" nodeset="/root/main/aprvlist/aprvlist" autoresize="true" caption="ID^이름^적용시작일자^적용종료일자^비고^cdseqno^환자별seq^적용시작일자^적용마감일자" colsep="^" colwidth="60, 60, 90, 90, 465, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:120px; width:810px; height:365px; ">
  101. <col ref="trgtcd" style="text-align:center; "/>
  102. <col ref="trgtnm" style="text-align:center; "/>
  103. <col ref="valifromdd" type="inputdate" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  104. <col ref="valitodd" type="inputdate" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  105. <col ref="trgtcdnm" type="input"/>
  106. <col ref="cdseqno" visibility="hidden"/>
  107. </datagrid>
  108. <button id="btn_save" class="btn4_letter2" style="left:754px; top:3px; width:56px; height:22px; ">
  109. <caption>등록</caption>
  110. <script type="javascript" ev:event="DOMActivate">
  111. <![CDATA[
  112. //저장항목 필수체크
  113. if( model.getValue("/root/main/aprvinfo/trgtcd") == ""){
  114. messageBox("ID는","I003"); //필수입력입니다.
  115. return;
  116. }else if( model.getValue("/root/main/aprvinfo/valifromdd") == "" ){
  117. messageBox("적용시작일자","I003");
  118. return;
  119. }else if( model.getValue("/root/main/aprvinfo/valitodd") == ""){
  120. messageBox("적용종료일자","I003");
  121. return;
  122. }else{
  123. if( messageBox("","Q002") == "6"){ //저장하시겠습니까? / 예
  124. submit("TRMRI04201"); // ID체크
  125. if( model.getValue("/root/tempchkrec/rtndata/checkmsg") != ''){
  126. messageBox(model.getValue("/root/tempchkrec/rtndata/checkmsg"),"E");
  127. return;
  128. }else{
  129. model.copyNode("/root/sendata/aprvinfo","/root/main/aprvinfo");
  130. submit("TXMRI04200");
  131. model.refresh();
  132. }
  133. }
  134. }
  135. ]]>
  136. </script>
  137. </button>
  138. <button id="btn_set" class="btn4_letter2" style="left:698px; top:93px; width:56px; height:22px; ">
  139. <caption>수정</caption>
  140. <script type="javascript" ev:event="DOMActivate">
  141. <![CDATA[
  142. model.setValue("/root/sendata/aprvlist","");
  143. model.setValue("/root/sendata/aprvlist", grd_aprvlist.getUpdateData());
  144. submit("TXMRI04201");
  145. model.refresh();
  146. ]]>
  147. </script>
  148. </button>
  149. <button id="btn_del" class="btn4_letter2" style="left:755px; top:93px; width:56px; height:22px; ">
  150. <caption>삭제</caption>
  151. <script type="javascript" ev:event="DOMActivate">
  152. <![CDATA[
  153. grd_aprvlist.addStatus(grd_aprvlist.row, "delete");
  154. model.setValue("/root/sendata/aprvlist", grd_aprvlist.getUpdateData());
  155. submit("TXMRI04201");
  156. model.refresh();
  157. ]]>
  158. </script>
  159. </button>
  160. <button id="btn_srch" class="btn1_letter2" style="left:640px; top:93px; width:56px; height:22px; ">
  161. <caption>조회</caption>
  162. <script type="javascript" ev:event="DOMActivate">
  163. <![CDATA[
  164. submit("TRMRI04200");
  165. model.copyNode("/root/main/aprvlist","/root/temp/aprvlist");
  166. model.refresh();
  167. ]]>
  168. </script>
  169. </button>
  170. <select id="chk_endshowyn" ref="/root/sendata/endshowyn" visibility="visible" overflow="visible" appearance="full" style="left:536px; top:96px; width:95px; height:20px; border-style:none; ">
  171. <choices>
  172. <item>
  173. <label>종료된사용자</label>
  174. <value>Y</value>
  175. </item>
  176. </choices>
  177. </select>
  178. <line id="line4" class="line_3" style="x1:0px; y1:486px; x2:809px; y2:486px; "/>
  179. <group id="group1" style="left:0px; top:25px; width:810px; height:50px; ">
  180. <input id="ipt_hardspec" ref="/root/main/aprvinfo/trgtcdnm" style="left:100px; top:28px; width:708px; height:19px; "/>
  181. <input id="ipt_trgtcd" ref="/root/main/aprvinfo/trgtcd" class="input_essential" style="left:100px; top:5px; width:100px; height:19px; "/>
  182. <caption id="caption2" class="cell_1" style="left:605px; top:5px; width:203px; height:20px; "/>
  183. <caption id="caption3" class="cell_1" style="left:-2px; top:5px; width:100px; height:20px; ">ID</caption>
  184. <caption id="caption4" class="cell_1" style="left:201px; top:5px; width:100px; height:20px; ">적용시작일자</caption>
  185. <input id="ipt_valifromdd" ref="/root/main/aprvinfo/valifromdd" class="input_essential" inputtype="date" style="left:302px; top:5px; width:100px; height:19px; ">
  186. <script type="javascript" ev:event="xforms-value-changed">
  187. <![CDATA[
  188. model.setValue("/root/main/aprvinfo/valifromdd", model.getValue("/root/main/aprvinfo/valifromdd")+getCurrentTime().substr(0,4));
  189. ipt_valifromdd.refresh();
  190. ]]>
  191. </script>
  192. </input>
  193. <caption id="caption5" class="cell_1" style="left:403px; top:5px; width:100px; height:20px; ">적용종료일자</caption>
  194. <caption id="caption6" class="cell_1" style="left:-2px; top:27px; width:100px; height:20px; ">비고</caption>
  195. <line id="line2" class="line_1" style="x1:-2px; y1:0px; x2:808px; y2:0px; "/>
  196. <line id="line3" class="line_2" style="x1:-2px; y1:25px; x2:807px; y2:25px; "/>
  197. <input id="ipt_valitodd" ref="/root/main/aprvinfo/valitodd" class="input_essential" inputtype="date" style="left:504px; top:5px; width:100px; height:19px; ">
  198. <script type="javascript" ev:event="xforms-value-changed">
  199. <![CDATA[
  200. model.setValue("/root/main/aprvinfo/valitodd", model.getValue("/root/main/aprvinfo/valitodd")+getCurrentTime().substr(0,4));
  201. ipt_valitodd.refresh();
  202. ]]>
  203. </script>
  204. </input>
  205. <line id="line6" class="line_3" style="x1:-2px; y1:48px; x2:807px; y2:48px; "/>
  206. </group>
  207. </xhtml:body>
  208. </xhtml:html>