SMZCS00301_환경설정Mon.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>사용자별 스크리닝 환경설정</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <moduleList>
  12. <moduleid/>
  13. <modulenm/>
  14. <checkvalue/>
  15. <lv/>
  16. <checkscope1/>
  17. <checkscope2/>
  18. <checkscope3/>
  19. <pregagemin/>
  20. <pregagemax/>
  21. <weight/>
  22. <dupallowdays/>
  23. <gubn/>
  24. <sortid/>
  25. <refid/>
  26. <defaultyn/>
  27. </moduleList>
  28. <codeList>
  29. </codeList>
  30. </list>
  31. <codeList>
  32. </codeList>
  33. <sublist>
  34. <resultExceptDrugList/>
  35. </sublist>
  36. </main>
  37. <init>
  38. <main>
  39. <list>
  40. <moduleList/>
  41. <codeList>
  42. </codeList>
  43. </list>
  44. <codeList>
  45. </codeList>
  46. </main>
  47. </init>
  48. <hidden/>
  49. <temp/>
  50. <textresult/>
  51. <send>
  52. <pGubn>M</pGubn>
  53. <pModuleID/>
  54. <pSearchType>03</pSearchType>
  55. <pScope>01</pScope>
  56. <pKeyword/>
  57. </send>
  58. </root>
  59. </instance>
  60. <script type="javascript" ev:event="xforms-ready">
  61. <![CDATA[
  62. /*
  63. 화면을 초기화 합니다.
  64. */
  65. fInitialize();
  66. /*
  67. 조회 메서드를 호출합니다
  68. */
  69. submit("TRZCS00101");
  70. fCreateComboItemSet();
  71. fSelectBoxInitialize();
  72. model.makeValue("/root/send/pModuleID", model.getValue("/root/main/list/moduleList[1]/moduleid"));
  73. model.makeValue("/root/send/pModuleNM", model.getValue("/root/main/list/moduleList[1]/modulenm"));
  74. submit("TRZCS00201");
  75. ]]>
  76. </script>
  77. <submission id="TRZCS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  78. <submission id="TRZCS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/sublist"/>
  79. <submission id="TXZCS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/moduleList" replace="instance" resultref="/root/temp"/>
  80. </model>
  81. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  82. <script type="javascript" src="../../../com/referenceweb/js/ZCR001.js"/>
  83. <script type="javascript">
  84. <![CDATA[
  85. /*
  86. 초기화 작업을 합니다.
  87. */
  88. function fInitialize(){
  89. model.removeNodeset("/root/main/list/moduleList");
  90. model.removeNodeset("/root/main/list/codeList");
  91. model.removeNodeset("/root/main/codeList");
  92. model.copyNode("/root/main","/root/init/main");
  93. }
  94. function fCreateComboItemSet(){
  95. var node = instance1.selectNodes("/root/main/list/codeList");
  96. var codeCnt = node.length;
  97. for(j=1; j<=codeCnt;j++){
  98. var refid = model.getValue("/root/main/list/codeList["+j+"]/refid");
  99. var cdid = model.getValue("/root/main/list/codeList["+j+"]/cdid");
  100. var cdnm = model.getValue("/root/main/list/codeList["+j+"]/cdnm");
  101. if(cdid =="1"){
  102. var node = instance1.createNode("", "itemSet"+refid, ""); // 입력컨트롤의 입력값으로 createNode 수행
  103. var selnode = instance1.selectSingleNode("/root/main/codeList"); // 생성할 엘리먼트를 위치할 노드 선택함
  104. selnode.appendChild(node); // 생성한 엘리먼트를 선택한 노드의 하위에 적용함
  105. var att = instance1.createNode("attribute", "newAtt", ""); // createNode 메서드로 newAtt 라는 attribute node 를 생성함
  106. att.text = "style"; // 생성한 attribute 에 style 이라는 값을 설정
  107. var namedNodeMap = node.attributes; // 생성한 element node 의 attribute 리스트를 namedNodeMap 객체로 반환
  108. namedNodeMap.setNamedItem(att); // namedNodeMap 객체에 생성한 attribute 를 설정함
  109. }
  110. model.makeValue("/root/main/codeList/itemSet"+refid+"["+cdid+"]/cdid",cdid);
  111. model.makeValue("/root/main/codeList/itemSet"+refid+"["+cdid+"]/cdnm",cdnm);
  112. }
  113. }
  114. function fSelectBoxInitialize(){
  115. var cnt = datagrid1.rows;
  116. var refid = "";
  117. var refid2 = "";
  118. var j = "";
  119. for(i=1; i<=cnt; i++){
  120. j = i+1;
  121. refid = model.getValue("/root/main/list/moduleList["+i+"]/refid");
  122. refid2 = model.getValue("/root/main/list/moduleList["+i+"]/refid2");
  123. datagrid1.cellComboNodeset(j,4) = "/root/main/codeList/itemSet"+refid;
  124. if (refid2 >="130"){
  125. datagrid1.cellComboNodeset(j,5) = "/root/main/codeList/itemSet130";
  126. datagrid1.cellComboNodeset(j,6) = "/root/main/codeList/itemSet131";
  127. datagrid1.cellComboNodeset(j,7) = "/root/main/codeList/itemSet132";
  128. }else if(refid2 =="122"){
  129. datagrid1.cellComboNodeset(j,9) = "/root/main/codeList/itemSet122";
  130. }
  131. if(refid2 =="133"){
  132. fCellDisabled(i, 8, "N");
  133. }
  134. if(refid2 =="100"){
  135. fCellDisabled(i, 10, "N");
  136. fCellDisabled(i, 11, "N");
  137. }
  138. if(refid2 =="122"){
  139. fCellDisabled(i, 12, "N");
  140. fCellDisabled(i, 13, "N");
  141. }
  142. var colDisabledCheck = model.getValue("/root/main/list/moduleList["+i+"]/defaultyn");
  143. fCellDisabled(i, 3,colDisabledCheck);
  144. }
  145. datagrid1.refresh()
  146. }
  147. function fCellDisabled(param1, param2, param3){
  148. param1 = param1+1;
  149. var colDisabledYN = "";
  150. var colDisabledCol = "";
  151. if(param3=="Y"){
  152. colDisabledYN = "true";
  153. colDisabledCol = "#DDDDDD"
  154. }else{
  155. colDisabledYN = "false";
  156. colDisabledCol = "#FFFFFF"
  157. }
  158. datagrid1.cellAttribute("disabled", param1, param2, param1, param2) = colDisabledYN;
  159. datagrid1.cellstyle("background-color", param1, param2, param1, param2) = colDisabledCol;
  160. }
  161. function fExceptDrug(param1){
  162. model.makeValue("/root/send/pModuleID", param1);
  163. submit("TRZCS00201");
  164. }
  165. ]]>
  166. </script>
  167. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  168. </xhtml:head>
  169. <xhtml:body pagewidth="1280" pageheight="990" guideline="2,345;1,1202;2,779;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  170. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:282px; height:13px; ">SCREEN 환경설정(MONITOR USER용)</caption>
  171. <datagrid id="datagrid1" nodeset="/root/main/list/moduleList" allowselection="true" autoresize="true" caption="스크린모듈^병원필수적용여부^ALERT 여부^검토등급▼^검토범위^검토범위^검토범위^중복허용일수^표준체중^가임기연령^가임기연령^용량검토가중치^용량검토가중치|스크린모듈^병원필수적용여부^ALERT 여부^검토등급^기간^부서^처방자^중복허용일수^표준체중^최소(세)^최대(세)^최소(%)^최대(%)" colsep="^" colwidth="181, 58, 55, 167, 123, 120, 100, 55, 80, 60, 60, 60, 60" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:65px; width:1202px; height:425px; ">
  172. <col ref="modulenm"/>
  173. <col checkvalue="Y,N" ref="defaultyn" type="checkbox" style="text-align:center; "/>
  174. <col checkvalue="Y,N" ref="checkvalue" type="checkbox"/>
  175. <col ref="lv" type="combo" style="text-align:center; ">
  176. <choices>
  177. <itemset nodeset="/root/main/codeList/itemSet1">
  178. <label ref="cdnm"/>
  179. <value ref="cdid"/>
  180. </itemset>
  181. </choices>
  182. </col>
  183. <col ref="checkscope1" type="combo">
  184. <choices>
  185. <itemset nodeset="/root/main/codeList/itemSetOther1">
  186. <label ref="cdnm"/>
  187. <value ref="cdid"/>
  188. </itemset>
  189. </choices>
  190. </col>
  191. <col ref="checkscope2" type="combo">
  192. <choices>
  193. <itemset nodeset="/root/main/codeList/itemSetOther1">
  194. <label ref="cdnm"/>
  195. <value ref="cdid"/>
  196. </itemset>
  197. </choices>
  198. </col>
  199. <col ref="checkscope3" type="combo">
  200. <choices>
  201. <itemset nodeset="/root/main/codeList/itemSetOther1">
  202. <label ref="cdnm"/>
  203. <value ref="cdid"/>
  204. </itemset>
  205. </choices>
  206. </col>
  207. <col disabled="true" editable="true" ref="dupallowdays" type="input" style="text-align:center; "/>
  208. <col ref="weight" type="combo">
  209. <choices>
  210. <itemset>
  211. <label ref="cdnm"/>
  212. <value ref="cdid"/>
  213. </itemset>
  214. </choices>
  215. </col>
  216. <col disabled="true" editable="true" ref="pregagemin" type="input" format="99" style="text-align:center; "/>
  217. <col disabled="true" editable="true" ref="pregagemax" type="input" format="99" style="text-align:center; "/>
  218. <col disabled="true" editable="true" ref="addedvaluemin" type="input" format="###.99" maxbyte="5" maxlength="5" showmask="true" validateformat="true" style="text-align:center; "/>
  219. <col disabled="true" editable="true" ref="addedvaluemax" type="input" format="###.99" maxbyte="5" maxlength="5" showmask="true" validateformat="true" style="text-align:center; "/>
  220. <script type="javascript" ev:event="xforms-value-changed">
  221. <![CDATA[
  222. var selectedrow = (datagrid1.row -1 );
  223. if(0 == selectedrow){return;}
  224. if (model.getValue("/root/main/list/moduleList["+selectedrow+"]/defaultyn")=="Y") {
  225. model.makeValue("/root/main/list/moduleList["+selectedrow+"]/checkvalue", "Y");
  226. fCellDisabled(selectedrow, 3, "Y");
  227. }else{
  228. fCellDisabled(selectedrow, 3, "N");
  229. }
  230. ]]>
  231. </script>
  232. <script type="javascript" ev:event="ondblclick">
  233. <![CDATA[
  234. var selectedrow = (datagrid1.row -1 );
  235. if(0 == selectedrow){return;}
  236. var param1 = model.getValue("/root/main/list/moduleList["+selectedrow+"]/moduleid");
  237. model.makeValue("/root/send/pModuleNM", model.getValue("/root/main/list/moduleList["+selectedrow+"]/modulenm"));
  238. fExceptDrug(param1);
  239. ]]>
  240. </script>
  241. </datagrid>
  242. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  243. <button id="btn_save" class="btn4_letter2" style="left:1136px; top:0px; width:56px; height:22px; ">
  244. <caption>저장</caption>
  245. <script type="javascript" ev:event="DOMActivate">
  246. <![CDATA[
  247. if(!checkGridUpdate(datagrid1))
  248. {
  249. alert("저장할 자료가 존재하지 않습니다.");
  250. return;
  251. }
  252. if ( submit("TXZCS00101") ) {
  253. datagrid1.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  254. }
  255. ]]>
  256. </script>
  257. </button>
  258. <line id="line9" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  259. </group>
  260. <caption id="caption12" class="tit_2" style="left:0px; top:45px; width:169px; height:14px; ">설정값</caption>
  261. <line id="line7" class="line_1" style="x1:0px; y1:60px; x2:1202px; y2:60px; "/>
  262. <datagrid id="datagrid2" nodeset="/root/main/sublist/resultExceptDrugList" autoresize="true" caption="상태^모듈명^약품명^약품코드^성분명^등록일자" colsep="^" colwidth="80,219, 304, 117, 270, 161" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:530px; width:1204px; height:250px; ">
  263. <col ref="applyflag_nm"/>
  264. <col ref="modulenm"/>
  265. <col ref="edi_nm"/>
  266. <col ref="hcode"/>
  267. <col ref="ieng_nm"/>
  268. <col ref="inputdt"/>
  269. </datagrid>
  270. <button id="btn_add_menuauthgrup" class="btn2_letter2" style="left:1160px; top:505px; width:42px; height:19px; ">
  271. <caption>변경</caption>
  272. <script type="javascript" ev:event="DOMActivate">
  273. <![CDATA[
  274. modal("../../screenweb/xrw/SPZCS00101_제외약품등록", "", "", "", "SPZCS00101","/root/send","/root/send/req");
  275. fExceptDrug(model.getValue("/root/send/pModuleID") );
  276. ]]>
  277. </script>
  278. </button>
  279. <caption id="caption1" class="tit_2" style="left:0px; top:510px; width:290px; height:13px; ">모듈별 제외 약품</caption>
  280. <line id="line1" class="line_1" style="x1:0px; y1:525px; x2:1202px; y2:525px; "/>
  281. </xhtml:body>
  282. </xhtml:html>