SPMMD06000_ClinicalRuleEngine.xrw 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <?xml version="1.0" encoding="UTF-8"?>
  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>Clinical Rule 관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <toggle/>
  12. <inpttypecd/>
  13. <condbutton>THEN</condbutton>
  14. <alertcdflag/>
  15. <cpgno/>
  16. <cpghistseq/>
  17. <slipgrdnm/>
  18. <slipcondgrdnm/>
  19. </cond>
  20. </main>
  21. <send>
  22. <reqdata/>
  23. <savedata>
  24. <monlist>
  25. </monlist>
  26. </savedata>
  27. </send>
  28. <init>
  29. <M0505/>
  30. <M0506/>
  31. <M0507/>
  32. <M0517/>
  33. <M0508/>
  34. <M0509/>
  35. <M0510/>
  36. <M0513/>
  37. <M0514/>
  38. <M0606/>
  39. <P0313/>
  40. </init>
  41. <hidden>
  42. <target/>
  43. <target_desc>조건구분 병실 선택 시 리턴값</target_desc>
  44. </hidden>
  45. </root>
  46. </instance>
  47. <script type="javascript" ev:event="xforms-model-construct-done">
  48. <![CDATA[
  49. zbcfGetCodeList(new Array("M0505", "M0506", "M0507", "M0517", "M0508", "M0509", "M0510", "M0513", "M0514", "M0606", "P0313")
  50. , new Array("/root/init/M0505", "/root/init/M0506", "/root/init/M0507", "/root/init/M0517", "/root/init/M0508", "/root/init/M0509", "/root/init/M0510", "/root/init/M0513", "/root/init/M0514", "/root/init/M0606", "/root/init/P0313"));
  51. //M0606에 대한 처리 임시 추가 by sonjy 20100721 추후 삭제 처리 필요
  52. var m0606lst = instance1.selectNodes("/root/init/M0606/M0606");
  53. if( m0606lst != null && m0606lst.length > 0 ){
  54. var cdnm = "";
  55. var cdid = "";
  56. for( var i = 1 ; i <= m0606lst.length ; i++ ){
  57. cdnm = model.getValue("/root/init/M0606/M0606["+i+ "]/cdnm");
  58. cdid = model.getValue("/root/init/M0606/M0606["+i+ "]/cdid");
  59. model.setValue( "/root/init/M0606/M0606["+i+ "]/cdnm" , cdid + "_" + cdnm );
  60. }
  61. }
  62. ]]>
  63. </script>
  64. <script type="javascript" ev:event="xforms-ready">
  65. <![CDATA[
  66. ]]>
  67. </script>
  68. </model>
  69. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  70. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  74. <script type="javascript">
  75. <![CDATA[
  76. var bDisableMode = "false" ; // by sonjy 20100705 grid delete 기능 조정 ( 오른쪽 마우스 )
  77. function fClose() {
  78. window.close();
  79. }
  80. /**
  81. * @group :
  82. * @ver : 2010.06.10
  83. * @by : sonjy
  84. * @---------------------------------------------------
  85. * @type : function
  86. * @access : public
  87. * @desc : 권한에 버튼 초기화 => master일 경우 개인 set은 수정 불가. master가 아닐 경우 필수set은 수정 불가.
  88. * @param :
  89. * @return :
  90. * @---------------------------------------------------
  91. */
  92. function fSetCtrlAuth(){
  93. button7.disabled = false ; //적용
  94. button1.disabled = false ; //삭제
  95. btn_multiorddept.disabled = false ;
  96. rdo_essnyn.disabled = false ;
  97. rdo_recvrflag.disabled = false ;
  98. rdo_alertgrde.disabled = false ;
  99. btn_addslipcond.disabled = false ;
  100. btn_delslipcond.disabled = false ;
  101. //grd_slipcondlist.disabled = false ;
  102. rdo_alertcondflag.disabled = false ;
  103. rdo_recvrflag.disabled = false ;
  104. btn_cpgmntrflag.disabled = false ;
  105. rdo_cpgmntrflag.disabled = false ;
  106. rdo_ifcondcnt.disabled = false ;
  107. btn_delalertcdflag.disabled= false ;
  108. txt_guidedocucnts.disabled= false ;
  109. cmb_comnusewrdcd.disabled= false ;
  110. rdo_sliptypecd.disabled= false ;
  111. bDisableMode = "false" ;
  112. var slipkindcd = model.getValue("/root/main/mntrheaderinfo/slipkindcd");
  113. if( (model.getValue("/root/hidden/userauthinfoflag" ) == "M" && slipkindcd == "P" ) ||
  114. (model.getValue("/root/hidden/userauthinfoflag" ) != "M" && slipkindcd != "P" ) ){
  115. // button7.disabled = true ;
  116. button1.disabled = true ;
  117. btn_multiorddept.disabled = true ;
  118. rdo_essnyn.disabled = true ;
  119. rdo_recvrflag.disabled = true ;
  120. rdo_alertgrde.disabled = true ;
  121. btn_addslipcond.disabled = true ;
  122. btn_delslipcond.disabled = true ;
  123. //grd_slipcondlist.disabled = true ;
  124. rdo_alertcondflag.disabled = true ;
  125. rdo_recvrflag.disabled = true ;
  126. btn_cpgmntrflag.disabled = true ;
  127. rdo_cpgmntrflag.disabled = true ;
  128. rdo_ifcondcnt.disabled = true ;
  129. btn_delalertcdflag.disabled= true ;
  130. if( grd_slipcondlist.rowStatus(grd_slipcondlist.rows) == 0) grd_slipcondlist.removeItem();
  131. bDisableMode = "true" ;
  132. txt_guidedocucnts.disabled= true ;
  133. cmb_comnusewrdcd.disabled= true ;
  134. rdo_sliptypecd.disabled= true;
  135. if( model.getValue("/root/hidden/userauthinfoflag" ) != "M" && slipkindcd != "P" && model.getValue("/root/main/mntrheaderinfo/essnyn") == "N" ) {
  136. button7.disabled = false ;
  137. } else {
  138. button7.disabled = true ; //적용
  139. }
  140. }
  141. if ( model.getValue("/root/hidden/userauthinfoflag" ) != "M" ) {
  142. btn_multiorddept.disabled = true ;
  143. rdo_essnyn.disabled = true ;
  144. rdo_sliptypecd.disabled = true ;
  145. }
  146. }
  147. ]]>
  148. </script>
  149. </xhtml:head>
  150. <xhtml:body pagewidth="845" pageheight="635" guideline="2,629;">
  151. <group id="grp_btn" style="left:5px; top:600px; width:825px; height:30px; ">
  152. <button id="button7" navindex="6" class="btn4_letter2" style="left:708px; top:3px; width:56px; height:22px; ">
  153. <caption>적용</caption>
  154. <script type="javascript" ev:event="DOMActivate">
  155. <![CDATA[
  156. fSaveSlipMaster();
  157. ]]>
  158. </script>
  159. </button>
  160. <button id="button8" class="btn4_letter2" style="left:766px; top:3px; width:56px; height:22px; ">
  161. <caption>닫기</caption>
  162. <script type="javascript" ev:event="DOMActivate">
  163. <![CDATA[
  164. window.close();
  165. ]]>
  166. </script>
  167. </button>
  168. </group>
  169. <import id="import1" src="SPMMD06100_ClinicalRole관리.xrw" style="left:5px; top:38px; width:825px; height:560px; "/>
  170. <caption id="cap_slipinfo" class="tit_2" style="left:300px; top:22px; width:142px; height:13px; ">Rule 상세내역</caption>
  171. <caption id="cap_sliplist" class="tit_2" style="left:7px; top:22px; width:142px; height:13px; ">Rule 리스트</caption>
  172. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:139px; height:14px; ">Clinical Rule 관리</caption>
  173. <button id="btn_addslipinfo" class="btn2_letter2" style="left:744px; top:17px; width:42px; height:19px; ">
  174. <caption>신규</caption>
  175. <script type="javascript" ev:event="DOMActivate">
  176. <![CDATA[
  177. fAddSlipInfo();
  178. ]]>
  179. </script>
  180. </button>
  181. <button id="button1" class="btn2_letter2" style="left:788px; top:17px; width:45px; height:19px; ">
  182. <caption>삭제</caption>
  183. <script type="javascript" ev:event="DOMActivate">
  184. <![CDATA[
  185. fDelSlipInfo();
  186. ]]>
  187. </script>
  188. </button>
  189. <button id="btn_resizegrid" class="btn2_letter2" style="left:245px; top:18px; width:42px; height:19px; ">
  190. <caption>
  191. <![CDATA[>>]]>
  192. </caption>
  193. <script type="javascript" ev:event="DOMActivate">
  194. <![CDATA[
  195. fSetSlipListSizeEx();
  196. ]]>
  197. </script>
  198. </button>
  199. </xhtml:body>
  200. </xhtml:html>