123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>검사내역 조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <examlist>
- <grdexam1>
- <excuexectodt/>
- <modality/>
- <excucdnm/>
- </grdexam1>
- <grdexam2>
- <excuexectodt/>
- <modality/>
- <excucdnm/>
- </grdexam2>
- </examlist>
- <patpsn>
- <patpsninfo>
- <index/>
- <pid/>
- <hngnm/>
- <instcd/>
- <iogb/>
- <mpphon/>
- <sex/>
- <age/>
- <rrgstno/>
- <homedetladdr/>
- <temptext/>
- </patpsninfo>
- </patpsn>
- </main>
- <send>
- <popdata>
- <pid/>
- <ckno/>
- <cknoseq/>
- <suppdeptcd/>
- <orddeptcd/>
- </popdata>
- <data>
- <pid/>
- <srchdate1/>
- <srchdate2/>
- <basecdcnts/>
- <selectbasecdflag/>
- <suppdeptcd/>
- </data>
- <basesuppdeptcd/>
- <exam>
- <excuexectodt/>
- <modality/>
- </exam>
- </send>
- <init>
- <cmb_info>
- <suppdeptlist>
- </suppdeptlist>
- <excuroomcdlist>
- <excuroom>
- <basecd/>
- <basecdflagdesc/>
- </excuroom>
- </excuroomcdlist>
- <initexecprcpstatcd/>
- <rsrvflaglist/>
- <initbasecdcnts>
- <basecdcntsid/>
- <basecdcnts/>
- <selectbasecdflag/>
- </initbasecdcnts>
- </cmb_info>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 그리드의 기초 행을 초기화 한다.
- model.removenode("/root/main/examlist/grdexam1");
- model.removenode("/root/main/examlist/grdexam2");
-
- // 조회기간, Combo Box 초기화
- ipt_date1.value = getCurrentDate();
- var vRsrvdd = ipt_date1.value ;
- vRsrvdd = vRsrvdd.toDate("YYYYMMDD");
- vRsrvdd = vRsrvdd.getAddDate(-30);
- ipt_date1.value = vRsrvdd.getDateFormat();
- ipt_date2.value = getCurrentDate();
- // 사용할때는 common.js 파일이 필요
- if (checkOpener()) { //opener 검사
- var param = opener.javascript.getParameter("opener_parameter_id"); //opener parameter value를 get
- if(param != "") { // opener parameter value가 있는 경우
- // 첫번째 방법
- // model.setValue("/root/patpsn/patpsninfo/pid",param);
- // model.refresh();
-
- // 두번째 방법 parameter value를 이용하여 프로그램 수행
- condarray = param.split("▦");
- model.setValue("/root/main/patpsn/patpsninfo/index", condarray[0]);
- model.setValue("/root/main/patpsn/patpsninfo/pid", condarray[1]);
- model.setValue("/root/main/patpsn/patpsninfo/hngnm", condarray[2]);
- model.setValue("/root/main/patpsn/patpsninfo/temptext",condarray[3]);
- model.refresh();
- }
- }
- // model.setValue("/root/main/patpsn/patpsninfo/pid", "11650371"); //상준 테스트
- // model.setValue("/root/send/data/srchdate1","19980807")
- // model.setValue("/root/send/data/srchdate2","19980808")
-
- ]]>
- </script>
- <submission id="TRAEA02606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/initbasecdcnts"/>
- <submission id="TRAEA02607" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/examlist/grdexam1"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="630" pageheight="470">
- <group id="group1" style="left:7px; top:5px; width:615px; height:460px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:105px; x2:615px; y2:105px; "/>
- <caption id="caption4" class="tit_2" style="left:0px; top:90px; width:100px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">검색결과</caption>
- <datagrid id="gridexam1" nodeset="/root/main/examlist/grdexam1" caption="검사일자^구분^검사명" colsep="^" colwidth="100, 100, 321" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:110px; width:610px; height:140px; ">
- <col ref="excuexectodt" style="text-align:center; "/>
- <col ref="modality" style="text-align:center; "/>
- <col ref="excucdnm" style="text-align:left; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- gridexam2.addRow();
-
- // 원본 그리드에 있는 선택된 로우의 값을 복사할 그리드의 마지막 로우에 넣는다.
- model.setValue("/root/main/examlist/grdexam2[" + gridexam2.bottomRow + "]/excuexectodt", model.getValue("/root/main/examlist/grdexam1["+gridexam1.row+"]/excuexectodt"));
- model.setValue("/root/main/examlist/grdexam2[" + gridexam2.bottomRow + "]/modality", model.getValue("/root/main/examlist/grdexam1["+gridexam1.row+"]/modality"));
- model.setValue("/root/main/examlist/grdexam2[" + gridexam2.bottomRow + "]/excucdnm", model.getValue("/root/main/examlist/grdexam1["+gridexam1.row+"]/excucdnm"));
- gridexam2.refresh();
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:0px; y1:285px; x2:615px; y2:285px; "/>
- <caption id="caption6" class="tit_2" style="left:5px; top:270px; width:100px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">적용대상</caption>
- <datagrid id="gridexam2" nodeset="/root/main/examlist/grdexam2" caption="검사일자^구분^검사명" colsep="^" colwidth="100, 100, 270" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:290px; width:610px; height:130px; ">
- <col ref="excuexectodt" style="text-align:center; "/>
- <col ref="modality" style="text-align:center; "/>
- <col ref="excucdnm" style="text-align:left; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // 선택된 행을 삭제한다
- gridexam2.deleteItem(gridexam2.row);
- ]]>
- </script>
- </datagrid>
- <caption id="caption7" class="tit_1" style="left:10px; top:0px; width:102px; height:13px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">검사내역 조회하기</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:5px; top:20px; width:605px; height:55px; "/>
- <button id="button1" class="btn1_letter2" style="left:505px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/send/data/basecdcnts") == ""){
- messageBox("분류를 선택하세요", "E999", "");
- return false;
- }
-
- if(model.getValue("") != "/root/send/data/basecdcnts") {
-
- // 조회버튼 선택시에 분류창에 선택한 리스트 보여주기
- opt_basecdcnts.value = model.getValue("/root/send/data/basecdcnts");
- // alert(model.getValue("/root/send/data/basecdcnts"));
-
- //조회를 선택하면 Modal 체크박스 감추기
- chk_basecdcnts.visible = false;
-
- // model.setValue("/root/send/data/dateflag","anotherday"); //적용일자 기준
- // model.setValue("/root/send/data/rsrvdate",model.getValue("/root/send/data/srchdate1"));
- // model.setValue("/root/send/data/rsrvdate",model.getValue("/root/send/data/srchdate2"));
-
- //환자 검사내역 정보 조회
- model.setValue("/root/send/data/pid",model.getValue("/root/main/patpsn/patpsninfo/pid"));
- model.setValue("/root/send/data/suppdeptcd",model.getValue("/root/send/basesuppdeptcd"));
- submit("TRAEA02607");
- }
- model.refresh();
-
- ]]>
- </script>
- </button>
- <input id="ipt_pid" ref="/root/main/patpsn/patpsninfo/pid" class="input_search" style="left:100px; top:25px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- // inputEnterKey("btn_sea","DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:10px; top:45px; width:100px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">부서명 :</caption>
- <select1 id="combo1" ref="/root/init/cmb_info/suppdeptlist" appearance="minimal" style="left:100px; top:45px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>영상의학과</label>
- <value>2160000000</value>
- </item>
- <item>
- <label>핵의학과</label>
- <value>2180000000</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/basesuppdeptcd",combo1.value);
- // alert(model.getValue("/root/send/basesuppdeptcd"));
- submit("TRAEA02606");
-
- btn_excuroom.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:205px; top:45px; width:100px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">분류 :</caption>
- <caption id="caption3" class="search_name" style="left:9px; top:25px; width:91px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호 :</caption>
- <caption id="caption5" class="search_name" style="left:204px; top:25px; width:99px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검사일자 :</caption>
- <caption id="caption14" style="left:388px; top:28px; width:15px; height:15px; ">~</caption>
- <line id="line3" class="line_4" style="x1:500px; y1:25px; x2:500px; y2:60px; "/>
- <input id="ipt_date1" ref="/root/send/data/srchdate1" class="input_default" inputtype="date" style="left:294px; top:25px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- window.modelesstopmost = true;
- ]]>
- </script>
- </input>
- <input id="ipt_date2" ref="/root/send/data/srchdate2" class="input_default" inputtype="date" style="left:405px; top:25px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- window.modelesstopmost = true;
- ]]>
- </script>
- </input>
- <button id="button2" class="btn1_letter2" style="left:550px; top:425px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <output id="opt_basecdcnts" class="output_search" style="left:294px; top:45px; width:181px; height:19px; "/>
- <select id="chk_basecdcnts" ref="/root/send/data/basecdcnts" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" style="left:295px; top:65px; width:195px; height:20px; background-color:#e5eae9; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initbasecdcnts">
- <label ref="basecdcnts"/>
- <value ref="basecdcnts"/>
- </itemset>
- </choices>
- </select>
- <button id="btn_excuroom" class="icon_search" style="left:479px; top:46px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(chk_basecdcnts.visible == "" ||chk_basecdcnts.visible == "false" ){
- chk_basecdcnts.visible = true;
- }else {
- chk_basecdcnts.visible = false;
- }
-
- ]]>
- </script>
- </button>
- <button id="button3" class="btn1_letter2" style="left:490px; top:425px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>적용</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 하나의 값만 넘겨준다 (test)
- // opener.model.makeValue("/root/main/carerecinfo/carerecmat/rayphodd1", model.getValue("/root/main/examlist/grdexam2/excuexectodt" ));
-
-
- // 컬럼을 조합해서 넘겨줘야 하기 때문에 변수에 넣어서 조합니다.
- var data1 = "";
- var data2 = "";
- var sum ="";
-
- // 적용할 대상이 없다면 이벤트 중단
- if(gridexam2.rows == 1){
- messageBox("적용대상 자료가 없습니다", "E999", "");
- return false;
- }
-
- // 기존에 저장된 값이 있을 경우 원본 자료의 뒤에다 추가로 붙여주기 위해 데이터 존재 여부 체크하여 반영
- if (model.getValue("/root/main/patpsn/patpsninfo/temptext") =="") {
- sum ="";
- }else{
- // sum = model.getValue("/root/main/patpsn/patpsninfo/temptext") + ","+"\n";
- sum = model.getValue("/root/main/patpsn/patpsninfo/temptext") + "\n";
- }
-
- // opener.model.makeValue("/root/main/carerecinfo/carerecmat/rayphodd1",sum);
-
-
- // 적용대상에 선택된 리스트를 대상으로 저장하였다가 한번에 보여주기 위함
- for( i =1; i < gridexam2.rows ; i++) {
- data1 = model.getValue("/root/main/examlist/grdexam2["+ i +"]/excuexectodt");
- data2 = model.getValue("/root/main/examlist/grdexam2["+ i +"]/modality");
- // Display시에 창의 종류가 달라서 구분하여 설정 함.
- if (model.getValue("/root/main/patpsn/patpsninfo/index") == '1'){
- sum += data2+ " - " + data1 + " ";
- }else{
- sum += data2+ " - " + data1 +"\n";
- }
- }
-
- // 어떤 창에서 검색버튼을 눌렀는지에 따라 반영해주는 대상을 결정해준다
- if (model.getValue("/root/main/patpsn/patpsninfo/index") == '1'){
- opener.model.makeValue("/root/main/carerecinfo/carerecmat/fiducialdd",sum);
- }else{
- opener.model.makeValue("/root/main/carerecinfo/carerecmat/rayphodd1",sum);
- }
-
- // 값을 넘겨주고 갱신을 해줘야 자료가 보인다.
- opener.textarea1.refresh();
- opener.input1.refresh();
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|