123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>사용자별 스크리닝 환경설정</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <moduleList>
- <moduleid/>
- <modulenm/>
- <checkvalue/>
- <lv/>
- <checkscope1/>
- <checkscope2/>
- <checkscope3/>
- <pregagemin/>
- <pregagemax/>
- <weight/>
- <dupallowdays/>
- <gubn/>
- <sortid/>
- <refid/>
- <defaultyn/>
- </moduleList>
- <codeList>
- </codeList>
- </list>
- <codeList>
- </codeList>
- <sublist>
- <resultExceptDrugList/>
- </sublist>
- </main>
- <init>
- <main>
- <list>
- <moduleList/>
- <codeList>
- </codeList>
- </list>
- <codeList>
- </codeList>
- </main>
- </init>
- <hidden/>
- <temp/>
- <textresult/>
- <send>
- <pGubn>M</pGubn>
- <pModuleID/>
- <pSearchType>03</pSearchType>
- <pScope>01</pScope>
- <pKeyword/>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- /*
- 화면을 초기화 합니다.
- */
- fInitialize();
- /*
- 조회 메서드를 호출합니다
- */
- submit("TRZCS00101");
-
- fCreateComboItemSet();
-
- fSelectBoxInitialize();
- model.makeValue("/root/send/pModuleID", model.getValue("/root/main/list/moduleList[1]/moduleid"));
- model.makeValue("/root/send/pModuleNM", model.getValue("/root/main/list/moduleList[1]/modulenm"));
-
- submit("TRZCS00201");
-
- ]]>
- </script>
- <submission id="TRZCS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
- <submission id="TRZCS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/sublist"/>
- <submission id="TXZCS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/moduleList" replace="instance" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/referenceweb/js/ZCR001.js"/>
- <script type="javascript">
- <![CDATA[
- /*
- 초기화 작업을 합니다.
- */
- function fInitialize(){
- model.removeNodeset("/root/main/list/moduleList");
- model.removeNodeset("/root/main/list/codeList");
- model.removeNodeset("/root/main/codeList");
- model.copyNode("/root/main","/root/init/main");
- }
-
- function fCreateComboItemSet(){
-
- var node = instance1.selectNodes("/root/main/list/codeList");
- var codeCnt = node.length;
- for(j=1; j<=codeCnt;j++){
- var refid = model.getValue("/root/main/list/codeList["+j+"]/refid");
- var cdid = model.getValue("/root/main/list/codeList["+j+"]/cdid");
- var cdnm = model.getValue("/root/main/list/codeList["+j+"]/cdnm");
- if(cdid =="1"){
- var node = instance1.createNode("", "itemSet"+refid, ""); // 입력컨트롤의 입력값으로 createNode 수행
-
- var selnode = instance1.selectSingleNode("/root/main/codeList"); // 생성할 엘리먼트를 위치할 노드 선택함
-
- selnode.appendChild(node); // 생성한 엘리먼트를 선택한 노드의 하위에 적용함
-
- var att = instance1.createNode("attribute", "newAtt", ""); // createNode 메서드로 newAtt 라는 attribute node 를 생성함
-
-
- att.text = "style"; // 생성한 attribute 에 style 이라는 값을 설정
-
- var namedNodeMap = node.attributes; // 생성한 element node 의 attribute 리스트를 namedNodeMap 객체로 반환
-
- namedNodeMap.setNamedItem(att); // namedNodeMap 객체에 생성한 attribute 를 설정함
-
-
- }
- model.makeValue("/root/main/codeList/itemSet"+refid+"["+cdid+"]/cdid",cdid);
- model.makeValue("/root/main/codeList/itemSet"+refid+"["+cdid+"]/cdnm",cdnm);
- }
- }
-
- function fSelectBoxInitialize(){
- var cnt = datagrid1.rows;
- var refid = "";
- var refid2 = "";
- var j = "";
- for(i=1; i<=cnt; i++){
- j = i+1;
- refid = model.getValue("/root/main/list/moduleList["+i+"]/refid");
- refid2 = model.getValue("/root/main/list/moduleList["+i+"]/refid2");
- datagrid1.cellComboNodeset(j,4) = "/root/main/codeList/itemSet"+refid;
- if (refid2 >="130"){
- datagrid1.cellComboNodeset(j,5) = "/root/main/codeList/itemSet130";
- datagrid1.cellComboNodeset(j,6) = "/root/main/codeList/itemSet131";
- datagrid1.cellComboNodeset(j,7) = "/root/main/codeList/itemSet132";
- }else if(refid2 =="122"){
- datagrid1.cellComboNodeset(j,9) = "/root/main/codeList/itemSet122";
- }
-
- if(refid2 =="133"){
- fCellDisabled(i, 8, "N");
- }
- if(refid2 =="100"){
- fCellDisabled(i, 10, "N");
- fCellDisabled(i, 11, "N");
- }
- if(refid2 =="122"){
- fCellDisabled(i, 12, "N");
- fCellDisabled(i, 13, "N");
- }
-
-
- var colDisabledCheck = model.getValue("/root/main/list/moduleList["+i+"]/defaultyn");
- fCellDisabled(i, 3,colDisabledCheck);
- }
- datagrid1.refresh()
- }
-
- function fCellDisabled(param1, param2, param3){
- param1 = param1+1;
- var colDisabledYN = "";
- var colDisabledCol = "";
-
- if(param3=="Y"){
- colDisabledYN = "true";
- colDisabledCol = "#DDDDDD"
- }else{
- colDisabledYN = "false";
- colDisabledCol = "#FFFFFF"
- }
- datagrid1.cellAttribute("disabled", param1, param2, param1, param2) = colDisabledYN;
- datagrid1.cellstyle("background-color", param1, param2, param1, param2) = colDisabledCol;
- }
- function fExceptDrug(param1){
- model.makeValue("/root/send/pModuleID", param1);
- submit("TRZCS00201");
- }
-
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- </xhtml:head>
- <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; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:282px; height:13px; ">SCREEN 환경설정(MONITOR USER용)</caption>
- <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; ">
- <col ref="modulenm"/>
- <col checkvalue="Y,N" ref="defaultyn" type="checkbox" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="checkvalue" type="checkbox"/>
- <col ref="lv" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/main/codeList/itemSet1">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="checkscope1" type="combo">
- <choices>
- <itemset nodeset="/root/main/codeList/itemSetOther1">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="checkscope2" type="combo">
- <choices>
- <itemset nodeset="/root/main/codeList/itemSetOther1">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="checkscope3" type="combo">
- <choices>
- <itemset nodeset="/root/main/codeList/itemSetOther1">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" editable="true" ref="dupallowdays" type="input" style="text-align:center; "/>
- <col ref="weight" type="combo">
- <choices>
- <itemset>
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" editable="true" ref="pregagemin" type="input" format="99" style="text-align:center; "/>
- <col disabled="true" editable="true" ref="pregagemax" type="input" format="99" style="text-align:center; "/>
- <col disabled="true" editable="true" ref="addedvaluemin" type="input" format="###.99" maxbyte="5" maxlength="5" showmask="true" validateformat="true" style="text-align:center; "/>
- <col disabled="true" editable="true" ref="addedvaluemax" type="input" format="###.99" maxbyte="5" maxlength="5" showmask="true" validateformat="true" style="text-align:center; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var selectedrow = (datagrid1.row -1 );
- if(0 == selectedrow){return;}
- if (model.getValue("/root/main/list/moduleList["+selectedrow+"]/defaultyn")=="Y") {
-
- model.makeValue("/root/main/list/moduleList["+selectedrow+"]/checkvalue", "Y");
- fCellDisabled(selectedrow, 3, "Y");
-
- }else{
- fCellDisabled(selectedrow, 3, "N");
-
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var selectedrow = (datagrid1.row -1 );
- if(0 == selectedrow){return;}
-
- var param1 = model.getValue("/root/main/list/moduleList["+selectedrow+"]/moduleid");
- model.makeValue("/root/send/pModuleNM", model.getValue("/root/main/list/moduleList["+selectedrow+"]/modulenm"));
-
- fExceptDrug(param1);
-
- ]]>
- </script>
- </datagrid>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1136px; top:0px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!checkGridUpdate(datagrid1))
- {
- alert("저장할 자료가 존재하지 않습니다.");
- return;
- }
- if ( submit("TXZCS00101") ) {
- datagrid1.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
-
- }
- ]]>
- </script>
- </button>
- <line id="line9" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- <caption id="caption12" class="tit_2" style="left:0px; top:45px; width:169px; height:14px; ">설정값</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:60px; x2:1202px; y2:60px; "/>
- <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; ">
- <col ref="applyflag_nm"/>
- <col ref="modulenm"/>
- <col ref="edi_nm"/>
- <col ref="hcode"/>
- <col ref="ieng_nm"/>
- <col ref="inputdt"/>
- </datagrid>
- <button id="btn_add_menuauthgrup" class="btn2_letter2" style="left:1160px; top:505px; width:42px; height:19px; ">
- <caption>변경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- modal("../../screenweb/xrw/SPZCS00101_제외약품등록", "", "", "", "SPZCS00101","/root/send","/root/send/req");
- fExceptDrug(model.getValue("/root/send/pModuleID") );
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:0px; top:510px; width:290px; height:13px; ">모듈별 제외 약품</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:525px; x2:1202px; y2:525px; "/>
- </xhtml:body>
- </xhtml:html>
|