123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404 |
- <?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>
- <prcsprescondlist>
- <prcsprescond>
- <pid/>
- <hngnm/>
- <prcpdd/>
- <prcpdept/>
- <prcpcd/>
- <prcpnm/>
- <execprcpstatcd/>
- <state/>
- <excuroom/>
- <rsrvdt/>
- <updtaftrsrvdt/>
- <rsrvrid/>
- <updtaft/>
- <execdt/>
- <execrid/>
- <cnclresncd/>
- <execprcpuniqno/>
- </prcsprescond>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </prcsprescondlist>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <popupendflag/>
- </main>
- <send>
- <ddflag/>
- <fromdd/>
- <todd/>
- <suppdeptcd/>
- <orddeptcd/>
- <wardcd/>
- <pid/>
- <juminno/>
- <patnm/>
- <gb/>
- <excuroomcd/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- </send>
- <init>
- <cmb_info>
- <initexecroom>
- <excuroomcdid/>
- <excuroomcdnm/>
- </initexecroom>
- <suppdept>
- <suppdeptcd/>
- <depthngnm/>
- </suppdept>
- </cmb_info>
- <baseinfo>
- <initexecprcpstatcd/>
- </baseinfo>
- <popupmenu>
- <grid01>
- <item>
- <name>복사하기</name>
- <func>astgrid_liscopy</func>
- </item>
- </grid01>
- </popupmenu>
- </init>
- <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[
- function readfunc() {
- 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;
- }
-
- //20161219 by kya 이슈쿼리 튜닝
- var _intdt = getDateInterval(_frdt, _todt);
- if (model.getValue("/root/send/pid") == "" && model.getValue("/root/send/juminno") == "" && _intdt > 7 ) {
- messageBox("등록번호가 없으면 입력하신 날짜 범위를 7일 이내로 검색해야 합니다. 기준일자를 확인해 주십시오." , "I999");
- model.setFocus("ipt_startrsrvdd");
- return;
- }
-
- //if (model.getValue("/root/send/pid") == "" && model.getValue("/root/send/juminno") == ""){
- // messageBox("등록번호나 주민번호를 입력한 후 조회하시기 바랍니다.", "E999", "");
- // return;
- //}
-
- if (submit("TRAEA00804")){
- model.setValue("/root/send/pid", model.getValue("/root/main/prcsprescondlist/patinfolist/pid"));
- model.setValue("/root/send/juminno", model.getValue("/root/main/prcsprescondlist/patinfolist/juminno"));
- grd_rsrvcnclprescond.refresh();
- for (var i = 1; i < grd_rsrvcnclprescond.rows; i++){
- if (model.getValue("/root/main/prcsprescondlist/prcsprescond[" + i + "]/state") == "취소"){
- grd_rsrvcnclprescond.rowstyle(i, "data", "background-color") = "#ffcc99";
- }else{
- grd_rsrvcnclprescond.rowstyle(i, "data", "background-color") = "#ffffff";
- }
- }
- if (model.getValue("/root/send/pid") != "" && model.getValue("") != "/root/send/juminno"){
- grd_rsrvcnclprescond.colHidden(1) = true;
- grd_rsrvcnclprescond.colHidden(2) = true;
- }else{
- grd_rsrvcnclprescond.colHidden(1) = false;
- grd_rsrvcnclprescond.colHidden(2) = false;
- }
- }
- model.refresh();
- }
- /* @group :
- * @ver : 2010.02.06
- * @by : 김건기
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드의 내용을 엑셀로 Copy하기 위한 Function
- */
- function astgrid_liscopy() {
- var cellValue;
- var rClipBoardValue = "";
-
- var row = grd_rsrvcnclprescond.row;
-
- rClipBoardValue = grd_rsrvcnclprescond.valueMatrix(row, grd_rsrvcnclprescond.colRef("pid"));
-
- if( rClipBoardValue != "" ) {
- window.clipBoardData = rClipBoardValue;
- }
-
- }
- ]]>
- </script>
- <!-- 예약변경리스트조회-->
- <submission id="TRAEA00804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="root/main/prcsprescondlist"/>
- <!--공통코드 조회-->
- <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[
- //처방상태 공통코드 갖고오기
- //zbcfGetCodeList( new Array("M0011"), new Array("/root/init/baseinfo/initexecprcpstatcd") );
- //submit("TRZBC00101", false);
- aezfSetSuppDeptcd();
- //submit("TRAEA00802");
- /*
- if (model.getValue("/root/send/pid") != ""){
- model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD"));
- }else{
- model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-3,"M").getDateFormat("YYYYMMDD"));
- }
-
- model.setValue("/root/send/todd", getCurrentDate());
- */
-
- // 기본 조회 기간 변경 : 1년전 ~ 6개월 후
- model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-12,"M").getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/todd", getCurrentDate().toDate().getAddDate(6,"M").getDateFormat("YYYYMMDD"));
-
- model.refresh();
-
- 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", "");
- }
-
- var gv_pid = getGlobalVariable("gv_pid", "A"); //글로벌변수로 넘겨준 등록번호값
- if(gv_pid != "") { //글로벌변수(등록번호)가 있는경우
- model.setValue("/root/send/pid", gv_pid);
- model.setValue("/root/send/gb", "1");
- btn_sea.dispatch("DOMActivate");
- }else {
- model.removeNodeset("/root/main/rsrvcnclprescond/rsrvcncllist");
- model.setValue("/root/send/gb", "1");
- if (model.getValue("/root/send/pid") != ""){
- grd_rsrvcnclprescond.colHidden(1) = true;
- grd_rsrvcnclprescond.colHidden(2) = true;
- model.setValue("/root/send/globalinstance/instance1", "");
- btn_sea.dispatch("DOMActivate");
- }else{
- grd_rsrvcnclprescond.colHidden(1) = false;
- grd_rsrvcnclprescond.colHidden(2) = false;
- model.setFocus("ipt_pid");
- }
- }
-
- model.refresh();
- ]]>
- </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:168px; 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:15px; top:18px; width:86px; height:17px; ">처방일자 :</caption>
- <input id="ipt_startrsrvdd" ref="/root/send/fromdd" class="input_default" navindex="1" inputtype="date" style="left:110px; top:18px; width:100px; height:19px; text-align:center; "/>
- <input id="ipt_endrsrvdd" ref="/root/send/todd" class="input_default" navindex="2" inputtype="date" style="left:225px; top:18px; width:100px; height:19px; text-align:center; "/>
- <caption id="caption4" class="search_name" style="left:395px; top:35px; 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:490px; top:35px; width:125px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- //inputEnterKey("button1","DOMActivate");
- inputEnterKey("btn_sea","DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:660px; top:35px; width:86px; height:17px; ">주민번호 :</caption>
- <input id="input2" ref="/root/send/juminno" navindex="4" format="999999-9999999" style="left:775px; top:35px; width:125px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/send/juminno") != ""){
- model.setValue("/root/send/gb", "2");
- model.refresh();
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption2" style="left:213px; top:20px; width:10px; height:20px; ">-</caption>
- <button id="button1" class="btn1_letter2" visibility="hidden" style="left:1030px; top:30px; width:56px; height:22px; ">
- <caption>임시</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/gb", "1");
- model.refresh();
- btn_sea.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn1_letter2" visibility="hidden" style="left:970px; top:30px; width:56px; height:22px; ">
- <caption>임시</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/gb", "2");
- model.refresh();
- btn_sea.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <caption id="caption10" class="search_name" style="left:395px; top:10px; width:86px; height:17px; ">지원부서 :</caption>
- <caption id="caption12" class="search_name" style="left:660px; top:10px; width:106px; height:17px; ">검사/치료실 :</caption>
- <select1 id="cmb_deptcd" ref="/root/send/globalinstance/instance1" disabled="true" appearance="minimal" editmode="inputsearch" style="left:490px; top:10px; width:125px; 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" disabled="true" navindex="1" appearance="minimal" editmode="inputsearch" style="left:775px; top:10px; 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:622px; top:35px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /* @group : 개인별 예약현황조회
- * @ver : 2007.7.25
- * @by : 조원영
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 등록번호를 통한 환자 이름 조회
- */
- 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/gb", "1");
- model.refresh();
- btn_sea.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- </group>
- <line id="line2" class="line_1" style="x1:0px; y1:132px; x2:1195px; y2:132px; "/>
- <datagrid id="grd_rsrvcnclprescond" nodeset="/root/main/prcsprescondlist/prcsprescond" caption="등록번호^환자명^처방일자^진료과(진료의)^처방코드^처방명^처방상태^구분^치료실^예약일시^예약자^변경일시^실시일시^실시자^사유^2" colsep="^" colwidth="84, 70, 75, 111, 90, 210, 60, 0, 110, 115, 55, 114, 125, 55, 153, 21" ellipsis="true" mergecells="byrestriccol" mergecellsfixedrows="byrestriccol" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:135px; width:1193px; height:607px; ">
- <col ref="pid"/>
- <col ref="hngnm"/>
- <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:left; "/>
- <col ref="prcpcd" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
- <col ref="prcpnm" style="text-align:left; "/>
- <col ref="execprcpstatcd" style="text-align:left; "/>
- <col ref="state"/>
- <col ref="excuroom"/>
- <col ref="updtaftrsrvdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="rsrvrid" style="text-align:center; "/>
- <col ref="updtaft" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="execdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="execrid" style="text-align:center; "/>
- <col ref="cnclresncd"/>
- <col ref="execprcpuniqno" visibility="hidden"/>
- <script type="javascript" ev:event="oncopy">
- <![CDATA[
- astgrid_liscopy();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if (event.button == 3) { // 3 : 오른쪽 버튼
- if (grd_rsrvcnclprescond.isCell(event.target) && grd_rsrvcnclprescond.mouseRow >= grd_rsrvcnclprescond.fixedrows) {
- setPopupMenu("grd_rsrvcnclprescond", false, "/root/init/popupmenu/grid01/item", "name", "func");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </datagrid>
- <caption id="caption9" class="tit_2" style="left:0px; top:115px; width:121px; height:13px; ">예약변경내역현황</caption>
- <input id="opt_addr" ref="/root/main/prcsprescondlist/patinfolist/addr" class="output_fix" disabled="true" style="left:609px; top:82px; width:583px; height:19px; "/>
- <input id="opt_sex" ref="/root/main/prcsprescondlist/patinfolist/sex" class="output_fix" disabled="true" style="left:208px; top:82px; width:20px; height:19px; text-align:center; "/>
- <line id="line12" class="line_1" style="x1:0px; y1:75px; x2:1195px; y2:74px; "/>
- <input id="opt_hngnm" ref="/root/main/prcsprescondlist/patinfolist/hngnm" class="output_fix" disabled="true" style="left:52px; top:82px; width:85px; height:19px; "/>
- <caption id="caption11" class="cell_1" style="left:231px; top:80px; width:50px; height:23px; vertical-align:middle; ">집전화</caption>
- <input id="opt_hometel" ref="/root/main/prcsprescondlist/patinfolist/hometel" class="output_fix" disabled="true" style="left:282px; top:82px; width:95px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:0px; top:80px; width:50px; height:23px; vertical-align:middle; ">환자명</caption>
- <input id="opt_mpphontel" ref="/root/main/prcsprescondlist/patinfolist/mpphontel" class="output_fix" disabled="true" style="left:431px; top:82px; width:124px; height:19px; "/>
- <caption id="caption16" class="cell_1" style="left:140px; top:80px; width:43px; height:23px; vertical-align:middle; ">S/A</caption>
- <caption id="caption7" class="cell_1" style="left:558px; top:80px; width:50px; height:23px; vertical-align:middle; ">집주소</caption>
- <input id="opt_age" ref="/root/main/prcsprescondlist/patinfolist/age" class="output_fix" disabled="true" style="left:184px; top:82px; width:25px; height:19px; text-align:center; "/>
- <caption id="caption8" class="cell_1" style="left:380px; top:80px; width:50px; height:23px; vertical-align:middle; ">핸드폰</caption>
- </group>
- <line id="line13" class="line_4" style="x1:1105px; y1:30px; x2:1105px; y2:77px; "/>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- </group>
- <line id="line1" class="line_4" style="x1:350px; y1:30px; x2:350px; y2:77px; "/>
- </xhtml:body>
- </xhtml:html>
|