123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495 |
- <?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>
- <rsrvupdtpreslist>
- <rsrvupdtpresinfo>
- <pid/>
- <hngnm/>
- <prcpdd/>
- <prcpdept/>
- <prcpcd/>
- <prcpnm/>
- <execprcpstatcd/>
- <state/>
- <excuroom/>
- <rsrvdt/>
- <updtaft/>
- <execdt/>
- <cnclresncd/>
- <rsrvrid/>
- <execprcpuniqno/>
- </rsrvupdtpresinfo>
- </rsrvupdtpreslist>
- <rsrvupdtcnfmlst>
- <rsrvupdtpresinfo>
- <pid/>
- <hngnm/>
- <prcpdd/>
- <prcpdept/>
- <prcpcd/>
- <prcpnm/>
- <execprcpstatcd/>
- <state/>
- <excuroom/>
- <rsrvdt/>
- <updtaft/>
- <execdt/>
- <cnclresncd/>
- <rsrvrid/>
- <execprcpuniqno/>
- <cnfmmanid/>
- <cnfmdt/>
- </rsrvupdtpresinfo>
- </rsrvupdtcnfmlst>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <popupendflag/>
- </main>
- <send>
- <ddflag/>
- <fromdd/>
- <todd/>
- <suppdeptcd/>
- <orddeptcd/>
- <wardcd/>
- <pid/>
- <juminno/>
- <patnm/>
- <gb/>
- <excuroomcd/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <sex/>
- <age/>
- <data2>
- <srchcond/>
- <pid/>
- <autoflag/>
- </data2>
- <srchflag>C</srchflag>
- <data>
- <rsrvupdtpreslist/>
- </data>
- </send>
- <init>
- <cmb_info>
- <initexecroom>
- <excuroomcdid/>
- <excuroomcdnm/>
- </initexecroom>
- <suppdept>
- <suppdeptcd/>
- <depthngnm/>
- </suppdept>
- </cmb_info>
- <baseinfo>
- <initexecprcpstatcd/>
- </baseinfo>
- </init>
- <hidden>
- <data/>
- </hidden>
- <temp/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
-
- /* @group : 조회
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예약 변경 및 취소 내역을 조회한다.
- */
- function readfunc() {
-
- var pid = model.getValue("/root/send/pid");
- if ( pid == "") {
- model.setValue("/root/send/patnm", ""); // 환자명
- model.setValue("/root/send/sex", ""); // 성별
- model.setValue("/root/send/age", ""); // 나이
- }
-
- var _frdt = model.getValue("/root/send/fromdd");
- var _todt = model.getValue("/root/send/todd");
- if ( _frdt == "" && _todt != "") {
- messageBox("검색하실 날짜 범위의 시작 일자를 입력해 주십시오." , "I999");
- model.setFocus("ipt_startrsrvdd");
- return;
- }
- if ( _frdt != "" && _todt == "") {
- messageBox("검색하실 날짜 범위의 마지막 일자를 입력해 주십시오." , "I999");
- model.setFocus("ipt_endrsrvdd");
- return;
- }
- if ( getDateInterval(_frdt, _todt) < 0 ) {
- messageBox("입력하신 날짜 범위로는 검색할 수 없습니다. 기준일자를 확인해 주십시오." , "I999");
- model.setFocus("ipt_startrsrvdd");
- return;
- }
-
- model.removenode("/root/main/rsrvupdtpreslist");
- model.removenode("/root/main/rsrvupdtcnfmlst");
-
- grd_rsrvcnclprescond.valueMatrix(0,1) = "N";
- grd_rsrvcnfmprescond.valueMatrix(0,1) = "N";
-
- var state = "";
- if (btn_case1.selected == true) {
- submit("TRAEA05401");
-
- for ( var i = 1; i <= grd_rsrvcnclprescond.rows; i++ ) {
- grd_rsrvcnclprescond.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
- grd_rsrvcnclprescond.rowstyle( i , "data" , "color" ) = "#000000";
-
- state = grd_rsrvcnclprescond.valueMatrix(i, grd_rsrvcnclprescond.colRef("state"));
- if ( state == "취소" ) {
- grd_rsrvcnclprescond.rowstyle( i , "data" , "background-color" ) = "#FAEBD7";
- }
- }
-
- } else {
- submit("TRAEA05402");
-
- for ( var i = 1; i <= grd_rsrvcnfmprescond.rows; i++ ) {
- grd_rsrvcnfmprescond.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
- grd_rsrvcnfmprescond.rowstyle( i , "data" , "color" ) = "#000000";
-
- state = grd_rsrvcnfmprescond.valueMatrix(i, grd_rsrvcnfmprescond.colRef("state"));
- if ( state == "취소" ) {
- grd_rsrvcnfmprescond.rowstyle( i , "data" , "background-color" ) = "#FAEBD7";
- }
- }
- }
- model.refresh();
- }
- /* @group : 확인
- * @ver :
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예약 변경 및 취소 내역에 대한 확인 여부 변경
- */
- function fExeCnfm() {
-
- var nodeList = "";
-
- if (btn_case1.selected == true) {
- nodeList = instance1.selectNodes("/root/main/rsrvupdtpreslist/rsrvupdtpresinfo[check='Y']");
- } else {
- nodeList = instance1.selectNodes("/root/main/rsrvupdtcnfmlst/rsrvupdtpresinfo[check='Y']");
- }
- var rCSV = getNodeListCSV(nodeList);
- if ( rCSV == null ) {
- messageBox("처방내역을 선택해 주십시오.","I999");
- return "0";
- }
-
- model.setValue("/root/send/data/rsrvupdtpreslist", rCSV);
-
- if (btn_case1.selected == true) {
- submit("TXAEA05401",false);
- btn_case2.selected = true;
- model.toggle("case2");
- btn_cnfm.value = "취소";
- } else {
- submit("TXAEA05402",false);
- btn_case1.selected = true;
- model.toggle("case1");
- btn_cnfm.value = "확인";
- }
-
- readfunc() ;
- }
- ]]>
- </script>
- <!-- 예약변경리스트조회-->
- <submission id="TRAEA05401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="root/main/rsrvupdtpreslist"/>
- <submission id="TRAEA05402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="root/main/rsrvupdtcnfmlst"/>
- <submission id="TXAEA05401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="root/hidden"/>
- <submission id="TXAEA05402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="root/hidden"/>
- <!--공통코드 조회-->
- <submission id="TRAEA00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info"/>
- <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //처방상태 공통코드 갖고오기
- aezfSetSuppDeptcd();
-
- model.removenode("/root/main/rsrvupdtpreslist");
- model.removenode("/root/main/rsrvupdtcnfmlst");
-
- grd_rsrvcnclprescond.fixedcellcheckbox(0,1)=true;
- grd_rsrvcnfmprescond.fixedcellcheckbox(0,1)=true;
-
- submit("TRAEA01301", false); // 검사치료실 가져오기
- // if( instance1.selectSingleNode("/root/init/cmb_info/suppdept[suppdeptcd='" + model.getValue("/root/send/globalinstance/instance1") + "']") == null ){
- // model.setValue("/root/send/globalinstance/instance1", "");
- // }
- model.refresh();
-
- if(checkOpener()) {
- //cmb_deptcd.disabled = true;
-
- model.setValue("/root/send/pid", model.getValue("/root/hidden/data/srchpid"));
- model.setValue("/root/send/fromdd", model.getValue("/root/hidden/data/srchdate1"));
- model.setValue("/root/send/todd", model.getValue("/root/hidden/data/srchdate2"));
-
- if ( model.getValue("/root/send/fromdd") == "" ) {
- model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-5,"D").getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/todd", getCurrentDate());
- }
- } else {
- model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-5,"D").getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/todd", getCurrentDate());
- }
-
- readfunc();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-model-destruct">
- <![CDATA[
- //if(checkOpener()) {
- // 예약 취소 내역 존재 유무
- // window.opener.javascript.fGetRsrvUpdtInfo();
- //}
- ]]>
- </script>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:193px; height:14px; ">검사 예약변경/취소 내역 조회</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:60px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:57px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption3" class="search_name" style="left:10px; top:18px; width:90px; height:17px; ">조회구분 :</caption>
- <input id="ipt_startrsrvdd" ref="/root/send/fromdd" class="input_default" navindex="1" inputtype="date" style="left:320px; top:18px; width:90px; height:19px; text-align:center; "/>
- <input id="ipt_endrsrvdd" ref="/root/send/todd" class="input_default" navindex="2" inputtype="date" style="left:435px; top:18px; width:90px; height:19px; text-align:center; "/>
- <caption id="caption4" class="search_name" style="left:570px; top:33px; width:86px; height:17px; ">등록번호 :</caption>
- <button id="btn_sea" class="btn1_letter2" style="left:1120px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- readfunc();
- ]]>
- </script>
- </button>
- <input id="ipt_pid" ref="/root/send/pid" navindex="3" style="left:660px; top:33px; width:110px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- var pid = model.getValue("/root/send/pid");
- if ( pid != "") {
- inputEnterKey("button61","DOMActivate");
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption2" style="left:413px; top:18px; width:18px; height:19px; text-align:center; ">~</caption>
- <caption id="caption10" class="search_name" style="left:570px; top:8px; width:86px; height:17px; ">지원부서 :</caption>
- <caption id="caption12" class="search_name" style="left:840px; top:8px; width:106px; height:17px; ">검사/치료실 :</caption>
- <select1 id="cmb_deptcd" ref="/root/send/globalinstance/instance1" appearance="minimal" editmode="inputsearch" style="left:660px; top:8px; width:135px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/suppdept">
- <label ref="depthngnm"/>
- <value ref="suppdeptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- model.setValue("/root/send/globalinstance/instance1", cmb_deptcd.value);
- submit("TRAEA01301", false);
- btn_sea.dispatch("DOMActivate");
-
- ]]>
- </script>
- </select1>
- <select1 id="cmb_excuroom" ref="/root/send/excuroomcd" class="combo_default" navindex="1" appearance="minimal" editmode="inputsearch" style="left:955px; top:8px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexecroom">
- <label ref="excuroomcdnm"/>
- <value ref="excuroomcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_sea.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <button id="button61" class="icon_search" navindex="2" style="left:777px; top:33px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /* @group : 개인별 예약현황조회
- * @ver : 2007.7.25
- * @by : 조원영
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 등록번호를 통한 환자 이름 조회
- */
- var pid = model.getValue("/root/send/pid");
- if ( pid == "") {
- model.setValue("/root/send/data2/srchcond", "2");
- } else {
- model.setValue("/root/send/data2/srchcond", "1");
- }
-
- model.setValue("/root/send/data2/pid", pid);
- model.setValue("/root/send/data2/autoflag", "Y");
-
- modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data2","/root/send");
-
- // modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/send/pid", "/root/send");
-
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid") ); // 등록번호
- model.setValue("/root/send/patnm", model.getValue("/root/main/patinfo/patinfolist/hngnm") ); // 환자명
- model.setValue("/root/send/sex", model.getValue("/root/main/patinfo/patinfolist/sex") ); // 성별
- model.setValue("/root/send/age", model.getValue("/root/main/patinfo/patinfolist/age") ); // 나이
-
- model.refresh();
- btn_sea.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <select1 id="cmb_srchflag" ref="/root/send/srchflag" appearance="minimal" style="left:100px; top:18px; width:110px; height:19px; ">
- <choices>
- <item>
- <label>변경/취소일자</label>
- <value>C</value>
- </item>
- <item>
- <label>처방일자</label>
- <value>P</value>
- </item>
- <item>
- <label>예약일자</label>
- <value>R</value>
- </item>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:230px; top:18px; width:90px; height:17px; ">조회기간 :</caption>
- <output id="ipt_patnm" ref="/root/send/patnm" class="output_fix" style="left:800px; top:33px; width:71px; height:19px; "/>
- <output id="output1" ref="/root/send/sex" class="output_fix" style="left:875px; top:33px; width:35px; height:19px; "/>
- <output id="output2" ref="/root/send/age" class="output_fix" style="left:915px; top:33px; width:35px; height:19px; "/>
- </group>
- <line id="line2" class="line_1" style="x1:0px; y1:117px; x2:1195px; y2:117px; "/>
- <caption id="caption9" class="tit_2" style="left:0px; top:75px; width:170px; height:13px; ">예약변경/취소 내역현황</caption>
- <button id="btn_case1" class="btn_sw" group="tab2" selected="true" style="left:0px; top:95px; width:90px; height:22px; ">
- <caption>미확인내역</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_cnfm.value = "확인";
- readfunc();
- ]]>
- </script>
- </button>
- <button id="btn_case2" class="btn_sw" group="tab2" style="left:90px; top:95px; width:90px; height:22px; ">
- <caption>확인내역</caption>
- <toggle case="case2" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_cnfm.value = "취소";
- readfunc();
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:0px; top:120px; width:1195px; height:620px; ">
- <case id="case1" selected="true">
- <datagrid id="grd_rsrvcnclprescond" nodeset="/root/main/rsrvupdtpreslist/rsrvupdtpresinfo" caption="^등록번호^환자명^처방일자^진료과(진료의)^처방코드^처방명^처방상태^구분^치료실^기존예약일시^변경예약일시^변경/취소일시^사유^변경/취소자^예약자^치료사^2" colsep="^" colwidth="28, 70, 58, 72, 132, 99, 210, 69, 43, 88, 105, 105, 115, 125, 75, 55, 70, 21" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:1px; top:0px; width:1190px; height:585px; ">
- <col checkvalue="Y,N" ref="check" type="checkbox"/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="prcpdd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="prcpdept" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="prcpcd" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
- <col ref="prcpnm" style="text-align:left; "/>
- <col ref="execprcpstatcd" visibility="hidden" style="text-align:left; "/>
- <col ref="state" style="text-align:center; "/>
- <col ref="excuroom"/>
- <col ref="rsrvdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="updtaft" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="cnclhistdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="cnclresncd"/>
- <col ref="cnclhistid" style="text-align:center; "/>
- <col ref="rsrvrid" visibility="hidden"/>
- <col ref="execrid" visibility="hidden" style="text-align:left; "/>
- <col ref="execprcpuniqno" visibility="hidden"/>
- </datagrid>
- </case>
- <case id="case2">
- <datagrid id="grd_rsrvcnfmprescond" nodeset="/root/main/rsrvupdtcnfmlst/rsrvupdtpresinfo" caption="^등록번호^환자명^처방일자^진료과(진료의)^처방코드^처방명^처방상태^구분^치료실^기존예약일시^변경예약일시^변경/취소일시^사유^변경/취소자^확인자^확인일시^예약자^치료사^2" colsep="^" colwidth="28, 70, 58, 72, 132, 99, 210, 69, 43, 88, 105, 105, 115, 125, 75, 63, 115, 55, 70, 21" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:1px; top:0px; width:1190px; height:615px; ">
- <col checkvalue="Y,N" ref="check" type="checkbox"/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="prcpdd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="prcpdept" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="prcpcd" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
- <col ref="prcpnm" style="text-align:left; "/>
- <col ref="execprcpstatcd" visibility="hidden" style="text-align:left; "/>
- <col ref="state" style="text-align:center; "/>
- <col ref="excuroom"/>
- <col ref="rsrvdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="updtaft" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="cnclhistdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="cnclresncd"/>
- <col ref="cnclhistid" style="text-align:center; "/>
- <col ref="cnfmmanid" style="text-align:center; "/>
- <col ref="cnfmdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="rsrvrid" visibility="hidden"/>
- <col ref="execrid" visibility="hidden" style="text-align:left; "/>
- <col ref="execprcpuniqno" visibility="hidden"/>
- </datagrid>
- </case>
- </switch>
- </group>
- <line id="line13" class="line_4" style="x1:1105px; y1:30px; x2:1105px; y2:75px; "/>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; "/>
- <line id="line1" class="line_4" style="x1:550px; y1:30px; x2:550px; y2:75px; "/>
- <button id="btn_cnfm" class="btn4_letter2" disabled="false" style="left:1072px; top:760px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCnfm();
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn4_letter2" disabled="false" style="left:1130px; top:760px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|