123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLF10600_CDSS마스터관리.xrw
- * 설 명 : 검사결과코드관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 이재민
- * 작 성 일 : 2010.04.09
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title/>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <testlist>
- <tclscd/>
- <tclsnm/>
- <yn/>
- </testlist>
- <cdsslist>
- <seqno/>
- <tclscd/>
- <msgkind/>
- <rsltstat/>
- <rulekind/>
- <refs/>
- <rulerst/>
- <resendday/>
- <sendyn/>
- <recipient1/>
- <recipient2/>
- <ioflag/>
- </cdsslist>
- </main>
- <send>
- <codeflag/>
- <testlrgcd/>
- <testmdlcd/>
- <tclscd/>
- <cdsslist/>
- <userdeptflagcd/>
- <seqno/>
- <selectgbn/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <selectgbn>1</selectgbn>
- <testlrgcd>00</testlrgcd>
- <testmdlcd>00</testmdlcd>
- </ref>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/send/codeflag", "0104|0102|0000|0111|0106|"); //0104 대분류 0102 중분류
- submit("TRLZZ00101");
-
- fSelectGbn();
- model.setValue("/root/hidden/ref/selectgbn","1");
- model.refresh();
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB"/>
- <submission id="TRLLF90804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cdsslist"/>
- <submission id="TXLLF90901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cdsslist"/>
- <submission id="TRLLF90803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 조회구분에서 대분류와 중분류의 값을 받아 검사목록을 출력
- function fGettestRsltlist(){
- model.removeNodeset("/root/main/rsltcdlist");
- model.refresh();
- model.makeValue("/root/send/selectgbn", model.getValue("/root/hidden/ref/selectgbn"));
- model.setValue("/root/send/testlrgcd", model.getValue("/root/hidden/ref/testlrgcd"));
- model.setValue("/root/send/testmdlcd", model.getValue("/root/hidden/ref/testmdlcd"));
- //model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
- //alert(model.getValue("/root/send/userdeptflagcd"));
- submit("TRLLF90803");
-
- }
-
- //검사목록 조회
- function fClickResultList(){
-
- var row = testlist.row;
- model.removeNodeset("/root/main/cdsslist");
- model.setValue("/root/send/tclscd" , model.getValue("/root/main/testlist["+row+"]/tclscd"));
-
- submit("TRLLF90804");
-
- }
-
- //행추가
- function fInsRowAdd() {
- var row = testlist.row;
- cdsslist.addRow();
- model.setValue("root/main/cdsslist["+cdsslist.row+"]/tclscd", model.getValue("root/main/testlist["+row+"]/tclscd"));
- model.setValue("root/main/cdsslist["+cdsslist.row+"]/msgkind", "S");
- model.setValue("root/main/cdsslist["+cdsslist.row+"]/rsltstat", "2");
- model.setValue("root/main/cdsslist["+cdsslist.row+"]/rulekind", "C");
- model.setValue("root/main/cdsslist["+cdsslist.row+"]/refs", "-");
- model.setValue("root/main/cdsslist["+cdsslist.row+"]/rulerst", "-");
- model.setValue("root/main/cdsslist["+cdsslist.row+"]/resendday", "-");
- model.setValue("root/main/cdsslist["+cdsslist.row+"]/sendyn", "Y");
- model.setValue("root/main/cdsslist["+cdsslist.row+"]/recipient1" , "N");
- model.setValue("root/main/cdsslist["+cdsslist.row+"]/recipient2" , "N");
- model.setValue("root/main/cdsslist["+cdsslist.row+"]/ioflag" , "A");
- }
-
-
- //행삭제
- function fInsRowdel() {
-
- var row = cdsslist.row;
- cdsslist.rowStatus(row) = 4;
-
- }
-
- //저장 데이터 확인
- function checkGridUpdate(grid){
-
- var iData = grid.getUpdateDataXml("insert");
- var uData = grid.getUpdateDataXml("update");
- var dData = grid.getUpdateDataXml("delete");
-
- if (iData=="" && uData=="" && dData=="") return false;
- else{
- return true;
- }
- }
-
- // 결과목록 삽입, 삭제, 수정
- function fExeEqmtSave() {
-
- if(messageBox("", "Q002")==6){
- if(!checkGridUpdate(cdsslist)){
- alert("저장할 자료가 존재하지 않습니다.");
- return;
- }
-
- if(testlist.row == -1){
- messageBox("검사항목을 선택하십시오", "I");
- return;
- }
-
-
-
- var row = cdsslist.row;
- model.setValue("/root/send/cdsslist", cdsslist.getUpdateData());
-
- //alert(model.getValue("/root/send/cdsslist"));
- //model.setValue("/root/send/seqno", model.getValue("/root/main/cdsslist["+row+"]/tclscd/@seqno")
-
-
- submit("TXLLF90901");
- fClickResultList();
-
- }
- }
- // 콤보박스 활성화
- function ftestcombo(){
- var CD = model.getValue("/root/hidden/ref/testlrgcd");
- if(CD == "00"){
- testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
- model.setvalue("/root/hidden/ref/testmdlcd" , "00");
- testmdlcd.disabled = true;
- }
- else{
- testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ CD +"']";
- model.setvalue("/root/hidden/ref/testmdlcd" , "00");
- testmdlcd.disabled = false;
- }
- testmdlcd.refresh();
- }
-
- function fSelectGbn(){
- //검사분류 선택
- if(cmb_selectgbn.value == "1"){
- //첫번째 콤보에 대분류 셋팅
- testlrgcd.choices.itemset.attribute("nodeset") = "/root/init/LB0104";
- //두번째 콤보에 중분류 셋팅
- testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
-
- }
- //시행부서 선택
- else if(cmb_selectgbn.value == "2"){
- //첫번째 콤보에 계코드 셋팅
- testlrgcd.choices.itemset.attribute("nodeset") = "/root/init/LB0111";
- //두번째 콤보에 검사계코드 셋팅
- testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
- }
- model.setvalue("/root/hidden/ref/testlrgcd", "00");
- model.setvalue("/root/hidden/ref/testmdlcd", "00");
-
- testlrgcd.refresh();
- testmdlcd.refresh();
- }
-
- //첫번째 콤보 선택시, 두번째 콤보 셋팅
- function fSetSelect02(){
- var select01 = model.getvalue("/root/hidden/ref/testlrgcd");
-
- //검사분류선택
- if(cmb_selectgbn.value == "1"){
- if(select01 == "00"){
- testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
- }
- else{
- testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ select01 +"']";
- }
- model.setValue("/root/hidden/ref/testmdlcd" , "00");
- testmdlcd.refresh();
-
- }
- //시행부서 선택
- else if(cmb_selectgbn.value == "2"){
-
- if(select01 == "00"){
- testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
- }
- else{
-
- testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ select01 +"']";
- }
- model.setValue("/root/hidden/ref/testmdlcd" , "00");
- testmdlcd.refresh();
-
- }
-
- //ftestcombo();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:490px; y2:70px; "/>
- <datagrid id="testlist" nodeset="/root/main/testlist" caption="검사코드^검사명^룰여부" colsep="^" colwidth="100, 281, 60" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:490px; height:669px; ">
- <col ref="tclscd"/>
- <col ref="tclsnm"/>
- <col ref="yn"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(testlist.isCell(event.target) && testlist.row >= testlist.fixedRows){
- fClickResultList();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- testlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">검사코드목록</caption>
- <button id="button2" class="btn2_letter3" style="left:1142px; top:49px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRowAdd();
- ]]>
- </script>
- </button>
- <datagrid id="cdsslist" nodeset="/root/main/cdsslist" caption="일련번호^검사코드^전송유형^결과유형^룰유형^부등호^룰값^재전송구간^전송여부^주치의^처방의^입원외래구분" colsep="^" colwidth="55, 75, 85, 80, 80, 60, 110, 80, 65, 50, 50" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:500px; top:75px; width:694px; height:669px; ">
- <col ref="seqno" visibility="hidden"/>
- <col ref="tclscd" visibility="hidden"/>
- <col ref="msgkind" type="combo" _key="true">
- <choices>
- <item>
- <label>SMS</label>
- <value>S</value>
- </item>
- <item>
- <label>notify</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="rsltstat" type="combo" style="left:120px; top:23px; width:402px; height:23px; ">
- <choices>
- <item>
- <label>중간보고</label>
- <value>2</value>
- </item>
- <item>
- <label>최종보고</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="rulekind" type="combo">
- <choices>
- <item>
- <label>Critical</label>
- <value>C</value>
- </item>
- <item>
- <label>Low</label>
- <value>L</value>
- </item>
- <item>
- <label>High</label>
- <value>H</value>
- </item>
- <item>
- <label>배양(양성)</label>
- <value>M</value>
- </item>
- <item>
- <label>패턴(포함)</label>
- <value>P</value>
- </item>
- <item>
- <label>범위</label>
- <value>R</value>
- </item>
- </choices>
- </col>
- <col ref="refs" type="combo">
- <choices>
- <item>
- <label>없음</label>
- <value>-</value>
- </item>
- <item>
- <label>
- <![CDATA[이상 (>=)]]>
- </label>
- <value>1</value>
- </item>
- <item>
- <label>
- <![CDATA[초과 (>)]]>
- </label>
- <value>2</value>
- </item>
- <item>
- <label>
- <![CDATA[이하 (<=)]]>
- </label>
- <value>3</value>
- </item>
- <item>
- <label>
- <![CDATA[미만 (<)]]>
- </label>
- <value>4</value>
- </item>
- <item>
- <label>일치 (=)</label>
- <value>5</value>
- </item>
- <item>
- <label>포함 (like)</label>
- <value>6</value>
- </item>
- </choices>
- </col>
- <col ref="rulerst" type="input"/>
- <col ref="resendday" type="input"/>
- <col ref="sendyn" type="combo">
- <choices>
- <item>
- <label>YES</label>
- <value>Y</value>
- </item>
- <item>
- <label>NO</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="recipient1" type="checkbox"/>
- <col checkvalue="Y,N" ref="recipient2" type="checkbox"/>
- <col ref="ioflag" type="combo" style="left:120px; top:23px; width:402px; height:23px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- cdsslist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:500px; top:55px; width:131px; height:14px; ">CDSS RULE LIST</caption>
- <line id="line2" class="line_1" style="x1:500px; y1:70px; x2:1194px; y2:70px; "/>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <button id="button3" class="btn1_letter2" style="left:1123px; top:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGettestRsltlist() ;
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">검사분류 :</caption>
- <select1 id="testlrgcd" ref="/root/hidden/ref/testlrgcd" appearance="minimal" itemcount="10" style="left:191px; top:8px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0104">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetSelect02();
- //ftestcombo();
-
- ]]>
- </script>
- </select1>
- <select1 id="testmdlcd" ref="/root/hidden/ref/testmdlcd" appearance="minimal" itemcount="10" style="left:303px; top:8px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0102">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fGettestRsltlist() ;
- ]]>
- </script>
- </select1>
- <select1 id="cmb_selectgbn" ref="/root/hidden/ref/selectgbn" class="combo_search" visibility="visible" appearance="minimal" style="left:109px; top:8px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>검사분류</label>
- <value>1</value>
- </item>
- <item>
- <label>시행부서</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSelectGbn();
- ]]>
- </script>
- </select1>
- </group>
- <button id="button1" class="btn2_letter3" style="left:1086px; top:49px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRowdel();
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.reset();
- ]]>
- </script>
- </button>
- <button id="button11" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeEqmtSave();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">CDSS RULE 관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|