123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <![CDATA[]]>
- <xhtml:title>Outline View</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <ordlist1>
- </ordlist1>
- <paminfo/>
- <subordlist1>
- </subordlist1>
- <getdata/>
- <baclist/>
- </main>
- <hidden>
- <resnflagno>12</resnflagno>
- <srchpid/>
- </hidden>
- <send>
- <data>
- <singdata/>
- </data>
- <maindata/>
- </send>
- <init>
- <baseinfo>
- <initprcpgenrflagcd/>
- <statnm/>
- </baseinfo>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- opener.javascript.fInit();
-
- zbcfGetCodeList( new Array("M0010"), new Array("/root/init/baseinfo/initprcpgenrflagcd") );
- zbcfGetCodeList( new Array("L0068"), new Array("/root/init/baseinfo/statnm") );
- submit("TRZBC00101");
-
- // Grid MultiCheck
- //grd_maindaily.fixedcellcheckbox(0,0)=true;
- // 조회기간, Combo Box 초기화
- var vRsrvdd = getCurrentDate() ;
- vRsrvdd = vRsrvdd.toDate("YYYYMMDD");
- //2008.10.11 개월수 3개월에서 6개월로 수정
- vRsrvdd = vRsrvdd.getAddDate(-180);
- model.makeValue("/root/send/data/singdata/srchdate1", vRsrvdd.getDateFormat()) ;
- model.makeValue("/root/send/data/singdata/srchdate2", getCurrentDate()) ;
- model.makeValue("/root/send/data/singdata/chkcheck2", "B");
- model.makeValue("/root/send/data/singdata/chkcheck", "");
- model.makeValue("/root/send/data/singdata/chkcheck1", "");
- model.makeValue("/root/send/data/singdata/chkcheck3", "");
- model.makeValue("/root/send/data/singdata/chkcheck4", "");
- model.makeValue("/root/send/data/singdata/chkcheck5", "");
- model.makeValue("/root/send/data/singdata/chkcheck6", "");
- model.makeValue("/root/send/data/singdata/chkcheck7", "");
- model.makeValue("/root/send/data/singdata/chkcheck8", "");
- model.makeValue("/root/send/data/singdata/listflag", "P");//처방일, 검사일:J , 보고일:Z
- model.makeValue("/root/send/globalinstance/instance2", getUserInfo("dutplceinstcd") );
-
- // var pamInfoCvs = getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색(환자등록번호)
- pid = getPatientId();
-
- model.makeValue("/root/send/data/singdata/srchpid", pid );
- // model.makeValue("/root/send/data/singdata/srchpid", "22536" ); //khj
-
- model.refresh();
-
- //alert(pid);
- if ( model.getValue("/root/send/data/singdata/srchpid") != "" ) {
- fGetMainDailyList();
- if( !isNull(model.getValue("/root/main/getdata/maindailylist/prcpdd")) ){
- grd_maindaily.select(1,1) = true;
- fClickResultList(1);
- grd_smlno.select(1,1) = true;
- fGetRecommNo(1);
- }
- }
-
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRAER00806" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/singdata" replace="instance" resultref="/root/main/ordlist1"/>
- <submission id="TRAER00850" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/maindata" replace="instance" resultref="/root/main/subresultdetail1"/>
- <submission id="TRMMD01606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/singdata" replace="instance" resultref="/root/main/getdata"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript">
- <![CDATA[
- /* @group : 결과조회
- * @ver : 2007.06.14
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 조건 메인 일자별조회 Function
- TRMMD01606에 srchgb=1)
- */
- function fGetMainDailyList() {
-
- // Grid 초기화
- model.resetInstanceNode("/root/main/ordlist1/maindailylist");
-
- model.makeValue("/root/send/data/singdata/tabflag","daily");
- model.makeValue("/root/send/data/singdata/srchgb","1");
- model.removeNodeset("/root/main/getdata");
- submit("TRMMD01606");
- if( !isNull(model.getValue("/root/main/getdata/maindailylist/prcpdd")) ){
- model.copyNode("/root/main/ordlist1", "/root/main/getdata");
- }
-
- grd_maindaily.rebuild();
- }
- /* @group : 결과조회
- * @ver : 2007.06.14
- * @by : 장준원
- * @----------------------------------
- * @type : function
- * @access : public
- * @desc : Daily 결과 상세조회 Function
- */
- function fClickResultList(row) {
- if ( row == 0 ) return;
- // if ( row > grd_maindaily.fixedRows ) {
-
- fInitial_subordlist(); // /root/main/subordlist1/subresultdetail1
- var loop = grd_maindaily.rows - grd_maindaily.fixedRows;
- for( var i = 1 ; i <= loop ; i++ ) {
- model.makeValue("/root/main/ordlist1/maindailylist[" + i + "]/level","3");
- }
- model.makeValue("/root/main/ordlist1/maindailylist[" + row + "]/check","Y");
-
- model.makeValue("/root/main/ordlist1/maindailylist[" + row + "]/srchpid", getPatientId());
- model.makeValue("/root/main/ordlist1/maindailylist[" + row + "]/dutplceinstcd", model.getValue("/root/send/globalinstance/instance2"));
-
- var nodeList = instance1.selectNodes("/root/main/ordlist1/maindailylist["+row+"]");
- var rCSV = getNodeListCSV(nodeList);
-
-
- //alert('rCSV하기전->'+rCSV);
- model.setValue("/root/send/maindata", rCSV);
- //alert(rCSV);
-
- submit("TRAER00850");
- // }
- }
- function fGetRecommNo(grdRow){
- if(grd_maindaily.rows - grd_maindaily.fixedRows >= 1 ){
-
- //opener.javascript.fRecommendedList(model.getValue("/root/hidden/resnflagno"),model.getValue("/root/main/subordlist1/subresultdetail1[" + grdRow + "]/infcrefantbiocd"));
- //검사결과에서 키코드조회해온값 전달해서 소분류를 조회하고 소분류 여러건 조회되어온 값을 in 으로 조회함(TRMMD01606에 srchgb=2)
- model.removeNodeset("root/send/data/singdata");
- model.makeValue("/root/send/data/singdata/srchgb","2");
- model.makeValue("/root/send/data/singdata/bcno" ,model.getValue("/root/main/ordlist1/maindailylist[" + grdRow + "]/bcno"));
- model.makeValue("/root/send/data/singdata/tclscd",model.getValue("/root/main/ordlist1/maindailylist[" + grdRow + "]/tclscd"));
- model.makeValue("/root/send/data/singdata/spccd",model.getValue("/root/main/ordlist1/maindailylist[" + grdRow + "]/spccd"));
- model.makeValue("/root/send/data/singdata/testcd",model.getValue("/root/main/ordlist1/maindailylist[" + grdRow + "]/testcd"));
- model.makeValue("/root/send/data/singdata/srchpid",model.getValue("/root/main/ordlist1/maindailylist[" + grdRow + "]/pid"));
-
- model.removeNodeset("/root/main/getdata");
- submit("TRMMD01606");
-
- model.copyNode("/root/main/baclist", "/root/main/getdata");
- grd_baccd.refresh();
- //이후 작업 불필요
- return;
-
- opener.model.makeNode("/root/main/antibiorecommlist");
- if( !isNull(model.getValue("/root/main/getdata/info/comcd")) ){
- copyNodesetType("/root/main/antibiorecommlist","/root/main/getdata","replace",opener.model,model);
- }
- //copyNodesetType("/root/main/antibiorecommlist","/root/main/getdata","replace",opener.model,model);
-
- opener.grd_antibiorecommlist.rebuild();
- opener.grd_antibiorecommlist.select(1,1) = true;
-
- opener.javascript.fDetailList(1);
- opener.grd_antibiorecommlist.mergeCellsFixedCols="bycol";
- opener.grd_antibiorecommlist.colhidden(0) = false;
- return;
-
- }
-
- }
-
- function fInitial_subordlist() {
- model.removeNodeset("/root/main/subordlist1/subresultdetail1");
- model.removeNodeset("/root/send/maindata"); // 일자별 그리드
- model.makeNode("/root/send/maindata");
- }
-
- function goDetail(){
- var curRow = grd_maindaily.mouseRow;
- var lastRow = grd_maindaily.rows - grd_maindaily.fixedRows;
- if( curRow > 0 && curRow <= lastRow ){
- //if ( grd_maindaily.selectedRow(0) >= grd_maindaily.fixedRows ) {
- opener.javascript.fInit();
- fClickResultList(curRow);
- grd_smlno.select(1,1) = true;
- fGetRecommNo(curRow);
- //}
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body scroll="none" pagewidth="930" pageheight="710" style="margin:0; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <group id="grp_targeted" scroll="auto" style="left:0px; top:0px; width:915px; height:710px; margin:0; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <datagrid id="grd_maindaily" nodeset="/root/main/ordlist1/maindailylist" autoresize="true" caption="처방일자^검체명^검사명^상태^입/외^주치의^구분^최종보고일자^바코드번호^검사중분류코드^검사코드^유일번호" colsep="^" colwidth="68, 100, 117, 58, 39, 47, 54, 100, 76, 92, 67, 61" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:30px; width:900px; height:285px; ">
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="spcnm"/>
- <col ref="examnm"/>
- <col disabled="true" ref="statnm" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/statnm/L0068">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="prcpgenrflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/initprcpgenrflagcd/M0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="drnm"/>
- <col ref="examgubun"/>
- <col ref="lastreptdd"/>
- <col ref="bcno"/>
- <col ref="testmdlcd"/>
- <col ref="testcd"/>
- <col ref="execprcpuniqno"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- goDetail();
- ]]>
- </script>
- </datagrid>
- <line id="line5" class="line_1" style="x1:0px; y1:320px; x2:350px; y2:320px; "/>
- <datagrid id="grd_smlno" nodeset="/root/main/subordlist1/subresultdetail1" autoresize="true" caption="^결과내역" colsep="^" colwidth="20, 860, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:325px; width:350px; height:235px; text-align:left; ">
- <col ref="chk"/>
- <col ref="reptrslt" style="font-family:굴림체; text-align:left; "/>
- <col ref="infcrefantbiocd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // var curRow = grd_smlno.mouseRow;
- // var lastRow = grd_smlno.rows - grd_smlno.fixedRows;
- // if( curRow > 0 && curRow <= lastRow ){
- //
- // opener.javascript.fInit();
- // fGetRecommNo(grd_smlno.row);
- // }
- ]]>
- </script>
- </datagrid>
- <caption id="caption8" class="tit_2" style="left:5px; top:10px; width:107px; height:13px; ">Classification</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:25px; x2:350px; y2:25px; "/>
- <button id="btn_controlsize" class="icon_right" style="left:320px; top:5px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(btn_controlsize.attribute("class") == "icon_right"){
- btn_controlsize.attribute("class") = "icon_left"
- btn_controlsize.attribute("left") = 875;
- opener.ivw_prophylaxis.attribute("width") = 920;
- grd_maindaily.attribute("width") = 900;
- grd_smlno.attribute("width") = 900;
- //grd_maindaily.colWidth(1) =grd_maindaily.colWidth(1) + 80;
- //grd_smlno.colWidth(1) =grd_smlno.colWidth(1) + 80;
-
- line5.attribute("x2") = 900;
- line7.attribute("x2") = 900;
- }else{
- btn_controlsize.attribute("class") = "icon_right"
- btn_controlsize.attribute("left") = 320;
- opener.ivw_prophylaxis.attribute("width") = 350;
- grd_maindaily.attribute("width") = 350;
- grd_smlno.attribute("width") = 355;
- //grd_maindaily.colWidth(1) =grd_maindaily.colWidth(1) + 80;
- //grd_smlno.colWidth(1) =grd_smlno.colWidth(1) + 80;
-
- line5.attribute("x2") = 350;
- line7.attribute("x2") = 350;
- }
-
-
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:5px; top:580px; width:237px; height:14px; ">균명 선택시 해당 정보가 보여집니다.</caption>
- <datagrid id="grd_baccd" nodeset="/root/main/baclist/list" scroll="autovscroll" autoresize="true" caption="균명^균코드" colsep="^" colwidth="248, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:600px; width:350px; height:105px; ">
- <col ref="bacnm"/>
- <col ref="baccd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var curRow = grd_baccd.mouseRow;
- var lastRow = grd_baccd.rows - grd_baccd.fixedRows;
- if( curRow > 0 && curRow <= lastRow ){
- if(grd_baccd.rows - grd_baccd.fixedRows >= 1 ){
-
- //opener.javascript.fRecommendedList(model.getValue("/root/hidden/resnflagno"),model.getValue("/root/main/subordlist1/subresultdetail1[" + grdRow + "]/infcrefantbiocd"));
- //검사결과에서 키코드조회해온값 전달해서 소분류를 조회하고 소분류 여러건 조회되어온 값을 in 으로 조회함(TRMMD01606에 srchgb=2)
- model.removeNodeset("root/send/data/singdata");
- model.makeValue("/root/send/data/singdata/srchgb","3");
- model.makeValue("/root/send/data/singdata/baccd" ,model.getValue("/root/main/baclist/list[" + curRow + "]/baccd"));
- model.makeValue("/root/send/data/singdata/srchpid",model.getValue("/root/main/ordlist1/maindailylist[" + curRow + "]/pid"));
- model.makeValue("/root/send/data/singdata/resnflag","12");
- model.removeNodeset("/root/main/getdata");
- submit("TRMMD01606");
-
- opener.model.makeNode("/root/main/antibiorecommlist");
-
- if( !isNull(model.getValue("/root/main/getdata/info/comcd")) ){
- copyNodesetType("/root/main/antibiorecommlist","/root/main/getdata","replace",opener.model,model);
- }
-
- //copyNodesetType("/root/main/antibiorecommlist","/root/main/getdata","replace",opener.model,model);
-
- opener.grd_antibiorecommlist.rebuild();
- opener.grd_antibiorecommlist.select(1,1) = true;
-
- opener.javascript.fDetailList(1);
- opener.grd_antibiorecommlist.mergeCellsFixedCols="bycol";
- opener.grd_antibiorecommlist.colhidden(0) = false;
- return;
-
- }
- }
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:595px; x2:350px; y2:595px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|