SMZCS00101_환경설정.xrw 11 KB

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