123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?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>
- <rsrvprescond>
- <rsrvlist>
- <srchpid/>
- <hngnm/>
- <rsrvdt/>
- <prcpcd/>
- <prcpnm/>
- <prcpstatcd/>
- <prcpdd/>
- <orddeptnm/>
- <orddrnm/>
- <excuroomnm/>
- <execrid/>
- <usernm/>
- </rsrvlist>
- </rsrvprescond>
- <ordprescond>
- <ordlist>
- <ordno/>
- <actorddd/>
- <orddeptnm/>
- <orddrnm/>
- </ordlist>
- </ordprescond>
- <popupendflag/>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <gbstat>
- </gbstat>
- <wardpatinfo>
- <wardpatlist>
- <roomcd/>
- <patnm/>
- <sexage/>
- <pid/>
- <indd/>
- <cretno/>
- <seqno/>
- <instcd/>
- <wardcd/>
- </wardpatlist>
- <settingrn>
- <settingrnid/>
- <settingrnnm/>
- </settingrn>
- </wardpatinfo>
- </main>
- <send>
- <srchpid/>
- <frdt/>
- <todt/>
- <req>
- <data/>
- </req>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <indschacptstat>A</indschacptstat>
- <wardcd/>
- <gb/>
- <srchsuppdeptcd/>
- </send>
- <init>
- <baseinfo>
- <initexecprcpstatcd/>
- </baseinfo>
- <wardinfo>
- <ward>
- <deptcd/>
- <deptnm/>
- </ward>
- </wardinfo>
- <pidinfo>
- <pidlist>
- <pidlistno/>
- <pidlistnm/>
- </pidlist>
- </pidinfo>
- </init>
- <hidden>
- <source>
- <pathngnm/>
- <rbogb>1</rbogb>
- <hsrchpid/>
- <hwardcd/>
- </source>
- </hidden>
- <temp>
- <ward>
- <wardcd/>
- <wardnm/>
- </ward>
- <message>
- <optmessage/>
- </message>
- </temp>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- function fGetPatList(){
- submit("TRAEA00306");
- model.resetInstanceNode("/root/main/prcpinfo/prcplist");
- model.resetInstanceNode("/root/main/patlistflag");
- model.refresh();
- }
- function fPatlistVisible(){
- // 재원환자목록 보여주기
- cap_rsrvprescondtitle.attribute("left") = "274";
- lin_rsrvprescond.attribute("x1") = "274";
- grd_rsrvprescond.attribute("left") = "274";
- grd_rsrvprescond.attribute("width") = "661";
- cap_patlisttitle.visible = true;
- lin_patlist.visible = true;
- grd_patlist.visible = true;
- }
- function fPatlisthidden(){
- // 재원환자목록 보이지 않게하기
- cap_rsrvprescondtitle.attribute("left") = "5";
- lin_rsrvprescond.attribute("x1") = "5";
- grd_rsrvprescond.attribute("left") = "5";
- grd_rsrvprescond.attribute("width") = "930";
- cap_patlisttitle.visible = false;
- lin_patlist.visible = false;
- grd_patlist.visible = false;
- }
- ]]>
- </script>
- <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/commonweb/js/numericHelper.js"/>
- <!-- 사용자의 기본부서코드를 가져오기 위한 script (검사실에 한정)-->
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <submission id="TRAEA00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordprescond"/>
- <submission id="TRAEA00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/patinfo"/>
- <submission id="TRZBC00101"/>
- <bind id="bind_prcpstatcd" ref="/root/main/rsrvprescond/rsrvlist/prcpstatcd" readonly="../prcpstatcd!=''"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 콤보에 전체선택 추가
- //addComboItem("combo1", "-전체-", "-", "above");
- //combo1.select(0);
- //combo2.select(0);
- // 세션에서 부서 코드를 받아온다.
- var dutplcecd = getUserInfo("dutplcecd") ;
-
- submit("TRAEA00303"); // 병동코드조회를 한다.
- aezfSetSuppDeptcd();
- zbcfGetCodeList( new Array("M0011"), new Array("/root/init/baseinfo/initexecprcpstatcd") );
- submit("TRZBC00101", false);
- grd_patlist.rebuild();
-
- //ipt_startrsrvdd.value = getCurrentDate();
- ipt_startrsrvdd.value = getCurrentDate().toDate().getAddDate(-3,"M").getDateFormat("YYYYMMDD");
- ipt_endrsrvdd.value = getCurrentDate().toDate().getAddDate(+5,"Y").getDateFormat("YYYYMMDD");
- // 그리드 사용 instance 초기화
- model.removeNodeset("/root/main/wardpatinfo/wardpatlist");// 재원환자목록
- model.removeNodeset("/root/main/rsrvprescond/rsrvlist"); // 예약현황
- model.removeNodeset("/root/main/ordprescond/ordlist"); // 외래진료현황
- model.refresh();
-
- // 재원환자목록 병실 Column merge
- grd_patlist.mergecells = "bycol";
- grd_patlist.mergecol(0) = false;
- //grd_patlist.mergecol(1) = false;
- grd_patlist.mergecol(2) = false;
- grd_patlist.mergecol(3) = false;
- grd_patlist.mergecol(4) = false;
- model.setValue("/root/send/gb", "1");
-
- model.setFocus("ipt_pid");
- if (model.getValue("/root/send/srchpid") != ""){
- btn_sea.dispatch("DOMActivate");
- }else{
- var paminfo = getGlobalVariable("paminfo"); //프로그램에 따라 원무정보(paminfo), 환자기본정보(patflag) get
- var gv_pid = getGlobalVariable("gv_pid", "A"); //글로벌변수로 넘겨준 등록번호값
-
- if(paminfo != "") { //원무 정보(기본 정보)가 있는 경
- model.removeNodeset("/root/paminfo"); //여러개의 instance발생을 막기 위해 removeNodeset을 해줘야 함.
- model.makeNode("/root/paminfo");
- setCSVToNode("/root/paminfo", paminfo);
-
- //상단 정보를 이용하여 프로그램 수행
- var pid = model.getValue("/root/paminfo" + "/list/pid");
- model.setValue("/root/send/srchpid", pid);
- }
- if(gv_pid != "") { //글로벌변수(등록번호)가 있는경우
- model.setValue("/root/send/srchpid", gv_pid);
- }
- btn_sea.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- <submission id="TRAEA00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/wardinfo"/>
- <submission id="TRAEA04101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvprescond"/>
- <submission id="TRAEA00305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/pidinfo"/>
- <submission id="TRAEA00306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/wardpatinfo"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1193;2,769;2,783;2,85;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1174px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">개인별 예약현황 조회</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1175px; height:729px; ">
- <datagrid id="grd_patlist" nodeset="/root/main/wardpatinfo/wardpatlist" visibility="hidden" backcoloralternate="#ffffff" caption="병실^환자번호^환자명^S/A" colsep="^" colwidth="50, 66, 66, 53" defaultrows="0" frozencols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:271px; height:649px; ">
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:left; "/>
- <col ref="sexage" style="text-align:center; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("root/send/srchpid",model.getValue("/root/main/wardpatinfo/wardpatlist[" + grd_patlist.row + "]/pid"));
- btn_sea.dispatch("DOMActivate");
- ]]>
- </script>
- </datagrid>
- <caption id="cap_rsrvprescondtitle" class="tit_2" style="left:5px; top:54px; width:97px; height:13px; ">예약현황</caption>
- <datagrid id="grd_rsrvprescond" nodeset="/root/main/rsrvprescond/rsrvlist" caption="등록번호^환자명^처방일자^처방코드^처방명^처방상태^예약일시^진료과^진료의사^검사/치료실^검사/실시자^예약자^치료사^병동" colsep="^" colwidth="0, 0, 80, 82, 190, 70, 104, 90, 70, 123, 70, 70, 60, 0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:74px; width:840px; height:651px; ">
- <col ref="srchpid"/>
- <col ref="hngnm"/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="prcpstatcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/initexecprcpstatcd/M0011">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="rsrvdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="orddeptnm"/>
- <col ref="orddrnm"/>
- <col ref="excuroomnm"/>
- <col ref="execrid"/>
- <col ref="usernm"/>
- <col ref="execrnm"/>
- <col ref="wardnm"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rsrvprescond.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <group id="grp_sea" style="left:0px; top:10px; width:1174px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1174px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <select1 id="cmb_wardpidlist" ref="/root/hidden/source/hsrchpid" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:651px; top:8px; width:168px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/pidinfo/pidlist">
- <label ref="pidlistnm"/>
- <value ref="pidlistno"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/temp/message/optmessage", ""); // 조회메세지 클리어
- cap_date.attribute("text") = "적용일자";
- model.setValue( "/root/send/srchpid",model.getValue("/root/hidden/source/hsrchpid"));
- btn_sea.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_ward" ref="/root/hidden/source/hwardcd" class="combo_search" visibility="hidden" appearance="minimal" style="left:516px; top:8px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/wardinfo/ward">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue( "/root/send/srchpid","");
- model.setValue("/root/temp/message/optmessage", ""); // 조회메세지 클리어
- model.setValue("/root/send/wardcd", model.getValue("/root/hidden/source/hwardcd"));
- //submit("TRAEA00305"); // combo 조회방식 환자자료를 조회한다.
- submit("TRAEA00306"); // 환자자료를 조회한다.
- ]]>
- </script>
- </select1>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- /*
- var _str = ipt_pid.currentText;
-
- if ( _str.isNumber() == false ) {
- messageBox("등록번호는 숫자만 입력이 가능합니다.", "I999");
- ipt_pid.value = "";
- }
-
- inputEnterKey("btn_sea", "DOMActivate");
- */
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- opt_pathngnm.value = "";
- ]]>
- </script>
- <line id="line13" class="line_4" style="x1:1108px; y1:9px; x2:1108px; y2:31px; "/>
- <button id="btn_sea" class="btn1_letter2" navindex="8" style="left:1113px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/temp/message/optmessage", ""); // 조회메세지 클리어
- var _pid = model.getValue("root/send/srchpid");
- var _frdt = model.getValue("/root/send/frdt");
- var _todt = model.getValue("/root/send/todt");
- model.makeValue("/root/send/pid", model.getValue("root/send/srchpid"));
- submit("TRAEA00204");
- model.setValue("/root/temp/message/optmessage", "");
- var gbvalue= rbo_gb.value; // (indschacptstat 'A',입원,'D',퇴원,'T',가퇴원)
-
- if (gbvalue == "2") {
- if ( _pid == "" ) {
- messageBox("필수입력사항인 등록번호를 입력해 주십시오.", "I999");
- model.setFocus("cmb_wardpidlist");
- }else if ( _frdt == "" && _todt != "" ) {
- messageBox("검색하실 날짜 범위의 시작일자를 입력해 주십시오." , "I999");
- model.setFocus("ipt_startrsrvdd");
- }else if ( _frdt != "" && _todt == "") {
- messageBox("검색하실 날짜 범위의 마지막 일자를 입력해 주십시오." , "I999");
- model.setFocus("ipt_endrsrvdd");
- }else if ( getDateInterval(_frdt, _todt) < 0 ) {
- messageBox("입력하신 날짜 범위로는 검색할 수 없습니다. 입력하신 날짜를 확인해 주십시오." , "I999");
- model.setFocus("ipt_startrsrvdd");
- }else {
- submit("TRAEA04101");
- submit("TRAEA00302");
- if ( grd_rsrvprescond.rows == 1 && grd_ordprescond.rows == 1 ) {
- //messageBox("입력하신 등록번호 / 조회기간에 해당하는 예약 및 진료 정보가 존재하지 않습니다.", "I999");
- model.setValue("/root/temp/message/optmessage", _pid+
- " ("+_frdt+"~"+_todt+")"+
- " 예약 및 진료 정보가 존재하지 않습니다.");
- }else{
- var _dt = "";
- for (var i = 1; i < parseInt(grd_rsrvprescond.rows); i++) {
- model.setValue("/root/hidden/source/pathngnm", model.getValue("/root/main/rsrvprescond/rsrvlist[" + 1 + "]/hngnm"));
- }
- }
- }
- } else {
- if ( _pid == "" ) {
- messageBox("필수입력사항인 등록번호를 입력해 주십시오.", "I999");
- model.setFocus("ipt_pid");
- }else if ( _frdt == "" && _todt != "" ) {
- messageBox("검색하실 날짜 범위의 시작일자를 입력해 주십시오." , "I999");
- model.setFocus("ipt_startrsrvdd");
- }else if ( _frdt != "" && _todt == "") {
- messageBox("검색하실 날짜 범위의 마지막 일자를 입력해 주십시오." , "I999");
- model.setFocus("ipt_endrsrvdd");
- }else if ( getDateInterval(_frdt, _todt) < 0 ) {
- messageBox("입력하신 날짜 범위로는 검색할 수 없습니다. 입력하신 날짜를 확인해 주십시오." , "I999");
- model.setFocus("ipt_startrsrvdd");
- }else {
- submit("TRAEA04101");
- submit("TRAEA00302");
- if ( grd_rsrvprescond.rows == 1 && grd_ordprescond.rows == 1 ) {
- model.setValue("/root/temp/message/optmessage", _pid+
- " ("+_frdt+"~"+_todt+")"+
- " 예약 및 진료 정보가 존재하지 않습니다.");
- }else{
- var _dt = "";
- for (var i = 1; i < parseInt(grd_rsrvprescond.rows); i++) {
- model.setValue("/root/hidden/source/pathngnm", model.getValue("/root/main/rsrvprescond/rsrvlist[" + 1 + "]/hngnm"));
- }
- }
- }
- }
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <input id="ipt_startrsrvdd" ref="/root/send/frdt" class="input_default" navindex="6" inputtype="date" style="left:914px; top:8px; width:91px; height:19px; text-align:center; "/>
- <input id="ipt_endrsrvdd" ref="/root/send/todt" class="input_default" navindex="7" inputtype="date" style="left:1009px; top:8px; width:91px; height:19px; text-align:center; "/>
- <caption id="caption4" class="search_name" style="left:15px; top:9px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">조회조건 :</caption>
- <select1 id="rbo_gb" ref="/root/hidden/source/rbogb" navindex="1" appearance="full" cols="2" overflow="visible" style="left:101px; top:9px; width:105px; height:19px; border-style:none; ">
- <choices>
- <item>
- <label>환자별</label>
- <value>1</value>
- </item>
- <item>
- <label>입원</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setValue( "/root/send/srchpid","");
- model.setValue("/root/temp/message/optmessage", ""); // 조회메세지 클리어
- model.resetInstanceNode("/root/init/pidinfo/pidlist")
- model.resetInstanceNode("/root/main/wardpatinfo/wardpatlist");
- model.resetInstanceNode("/root/main/rsrvprescond/rsrvlist");
- model.resetInstanceNode("/root/main/ordprescond/ordlist");
- model.refresh();
-
- var gbvalue= rbo_gb.value;
- if (gbvalue == "2") {
- model.setValue("/root/send/indschacptstat","A");
- cap_pidtext.attribute("text") = "병 동:";
- cmb_ward.visible = true;
- cmb_wardpidlist.visible = false;
-
- //cap_left.visible = true;
- //cap_right.visible = true;
- rbo_stat.visible= true;
- rbo_stat2.visible = false;
-
-
- ipt_pid.visible = false;
- btn_pidsearch.visible = false;
- opt_pathngnm.visible = false;
-
- cap_pidtext.attribute("left") = "424";
- ipt_pid.attribute("left") = "296";
- btn_pidsearch.attribute("left") = "398";
- opt_pathngnm.attribute("left") = "422";
-
- cap_right.attribute("left") = "411";
-
- // 2011.01.13 cyw 병동의 경우
- ipt_startrsrvdd.value = getCurrentDate();
- ipt_endrsrvdd.value = getCurrentDate().toDate().getAddDate(+1,"M").getDateFormat("YYYYMMDD");
- fPatlistVisible();
- } else {
- //2010.11.03 환자별,전체로 기본 - 박재영
- model.setValue("/root/send/srchsuppdeptcd","");
-
- cap_pidtext.attribute("text") = "환자번호:";
- cmb_ward.visible = false;
- cmb_wardpidlist.visible = false;
-
- //2010.11.03 환자별,전체로 기본 - 박재영
- //cap_left.visible = false;
- //cap_right.visible = false;
- rbo_stat.visible= false;
- rbo_stat2.visible = true;
-
-
- ipt_pid.visible = true;
- btn_pidsearch.visible = true;
- opt_pathngnm.visible = true;
-
- cap_date.attribute("text") = "적용일자";
-
- // cap_pidtext.attribute("left") = "424";
- // ipt_pid.attribute("left") = "516";
- // btn_pidsearch.attribute("left") = "618";
- // opt_pathngnm.attribute("left") = "642";
- cap_pidtext.attribute("left") = "359";
- ipt_pid.attribute("left") = "451";
- btn_pidsearch.attribute("left") = "553";
- opt_pathngnm.attribute("left") = "577";
-
- cap_right.attribute("left") = "331";
-
- // 2011.01.13 cyw 전체의 경우
- ipt_startrsrvdd.value = getCurrentDate().toDate().getAddDate(-3,"M").getDateFormat("YYYYMMDD");
- ipt_endrsrvdd.value = getCurrentDate().toDate().getAddDate(+5,"Y").getDateFormat("YYYYMMDD");
- fPatlisthidden();
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="rbo_stat" ref="/root/send/indschacptstat" navindex="2" visibility="hidden" appearance="full" cols="4" overflow="visible" style="left:220px; top:9px; width:190px; height:19px; border-color:#ffd799; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>%</value>
- </item>
- <item>
- <label>재원</label>
- <value>A</value>
- </item>
- <item>
- <label>퇴원</label>
- <value>D</value>
- </item>
- <item>
- <label>가퇴원</label>
- <value>T</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setValue( "/root/send/srchpid","");
- model.setValue("/root/temp/message/optmessage", ""); // 조회메세지 클리어
- model.resetInstanceNode("/root/init/pidinfo/pidlist")
- model.resetInstanceNode("/root/main/wardpatinfo/wardpatlist");
- model.resetInstanceNode("/root/main/rsrvprescond/rsrvlist");
- model.resetInstanceNode("/root/main/ordprescond/ordlist");
- model.refresh();
-
-
- var gbvalue= rbo_stat.value; // (indschacptstat 'A',입원,'D',퇴원,'T',가퇴원)
- if (gbvalue == "%") {
- /* cap_pidtext.attribute("text") = "환자번호:";
- cap_pidtext.visible = true;
-
- cmb_ward.visible = false;
- cmb_wardpidlist.visible = true;
- ipt_pid.visible = false;
- btn_pidsearch.visible = false;
- opt_pathngnm.visible = false;
- */
- // 2011.01.13 c y w 조회조건Flag가 입원일 경우 환자번호output 없애고 병동으로 셋팅..
- cap_pidtext.attribute("text") = "병 동:";
- cap_pidtext.visible = true;
-
- cmb_ward.visible = true;
- cmb_wardpidlist.visible = false;
-
- ipt_pid.visible = false;
- btn_pidsearch.visible = false;
- opt_pathngnm.visible = false;
- cap_date.attribute("text") = "입원일자";
-
- // 재원환자목록 보여주기
- fPatlisthidden();
-
- submit("TRAEA00305"); // 전체 환자자료를 조회한다.
-
-
- } else if (gbvalue == "A") {
-
- cap_pidtext.attribute("text") = "병 동:";
- cap_pidtext.visible = true;
-
- cmb_ward.visible = true;
- cmb_wardpidlist.visible = false;
-
- ipt_pid.visible = false;
- btn_pidsearch.visible = false;
- opt_pathngnm.visible = false;
-
- // 재원환자목록 보여주기
- fPatlistVisible();
- cap_date.attribute("text") = "적용일자";
-
- submit("TRAEA00305"); // 재원 환자자료를 조회한다.
-
-
- } else if (gbvalue == "D") {
-
- /* cap_pidtext.attribute("text") = "환자번호:";
- cap_pidtext.visible = true;
-
- ipt_pid.visible = false;
- btn_pidsearch.visible = false;
- opt_pathngnm.visible = false;
-
- cmb_ward.visible = false;
- cmb_wardpidlist.visible = true;
- */
- // 2011.01.13 c y w 조회조건Flag가 입원일 경우 환자번호output 없애고 병동으로 셋팅..
- cap_pidtext.attribute("text") = "병 동:";
- cap_pidtext.visible = true;
-
- cmb_ward.visible = true;
- cmb_wardpidlist.visible = false;
-
- ipt_pid.visible = false;
- btn_pidsearch.visible = false;
- opt_pathngnm.visible = false;
- // 재원환자목록 보여주기
- fPatlisthidden();
-
- cap_date.attribute("text") = "퇴원일자";
-
- submit("TRAEA00305"); // 퇴원 환자자료를 조회한다.
-
- } else if (gbvalue == "T") {
-
- /* cap_pidtext.attribute("text") = "환자번호:";
- cap_pidtext.visible = true;
-
- ipt_pid.visible = false;
- btn_pidsearch.visible = false;
- opt_pathngnm.visible = false;
-
- cmb_ward.visible = false;
- cmb_wardpidlist.visible = true;
- */
- // 2011.01.13 c y w 조회조건Flag가 입원일 경우 환자번호output 없애고 병동으로 셋팅..
- cap_pidtext.attribute("text") = "병 동:";
- cap_pidtext.visible = true;
-
- cmb_ward.visible = true;
- cmb_wardpidlist.visible = false;
-
- ipt_pid.visible = false;
- btn_pidsearch.visible = false;
- opt_pathngnm.visible = false;
-
- // 재원환자목록 보여주기
- fPatlisthidden();
-
- cap_date.attribute("text") = "퇴원일자";
-
- submit("TRAEA00305"); // 가퇴원 환자자료를 조회한다.
-
- } else {
- cap_pidtext.attribute("text") = "환자번호:";
- cap_pidtext.visible = true;
-
- ipt_pid.visible = true;
- btn_pidsearch.visible = true;
- opt_pathngnm.visible = true;
- cmb_ward.visible = false;
- cmb_wardpidlist.visible = false;
-
- // 재원환자목록 보여주기
- fPatlisthidden();
-
- cap_date.attribute("text") = "적용일자";
-
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="cap_date" class="search_name" style="left:833px; top:9px; width:78px; height:17px; ">적용일자</caption>
- <caption id="cap_left" visibility="visible" style="left:210px; top:8px; width:10px; height:19px; ">(</caption>
- <input id="ipt_pid" ref="/root/send/srchpid" class="input_search" navindex="3" maxlength="10" style="left:451px; top:8px; width:95px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- inputEnterKey("btn_sea","DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="cap_right" visibility="visible" style="left:331px; top:8px; width:10px; height:19px; ">)</caption>
- <output id="opt_pathngnm" ref="/root/main/patinfo/patinfolist/hngnm" class="output_fix" style="left:577px; top:8px; width:95px; height:19px; "/>
- <caption id="cap_pidtext" class="search_name" visibility="visible" style="left:359px; top:9px; width:86px; height:17px; ">환자번호:</caption>
- <button id="btn_pidsearch" class="icon_search" navindex="4" style="left:553px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /* @group : 개인별 예약현황조회
- * @ver : 2007.7.25
- * @by : 조원영
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 등록번호를 통한 환자 이름 조회
- */
- model.makeNode("/root/main/patinfo/patinfolist");
- modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/send/srchpid", "/root/send");
- model.setValue( "/root/send/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid") ); // 등록번호 설정
- model.setValue( "/root/main/patinfo/patinfolist/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm") ); // 환자 이름
-
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="radio1" ref="/root/send/gb" appearance="full" cols="2" overflow="visible" style="left:686px; top:10px; width:140px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>처방일자</label>
- <value>1</value>
- </item>
- <item>
- <label>예약일자</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <select1 id="rbo_stat2" ref="/root/send/srchsuppdeptcd" navindex="2" visibility="visible" appearance="full" cols="4" overflow="visible" style="left:220px; top:10px; width:115px; height:19px; border-color:#ffd799; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>지원부서</label>
- <value>S</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
-
- ]]>
- </script>
- </select1>
- </group>
- <button id="button3" class="btn2_letter4" style="left:1097px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "예약현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- var fileName2 = window.fileDialog("save", ",", false, "진료현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != ""){
- grd_rsrvprescond.saveExcel(fileName);
- grd_ordprescond.saveExcel(fileName2);
- }
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_ordprescond" nodeset="/root/main/ordprescond/ordlist" caption="진료일자^진료과^진료의" colsep="^" colwidth="110, 110, 79" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:842px; top:74px; width:321px; height:651px; ">
- <col ref="orddd" format="yyyy-mm-dd hh:mm"/>
- <col ref="orddeptnm"/>
- <col ref="orddrnm"/>
- </datagrid>
- <line id="line2" class="line_1" style="x1:842px; y1:70px; x2:1163px; y2:70px; "/>
- <caption id="caption3" class="tit_2" style="left:847px; top:53px; width:97px; height:13px; ">진료현황</caption>
- <caption id="cap_patlisttitle" class="tit_2" visibility="hidden" style="left:5px; top:54px; width:103px; height:13px; ">재원환자 목록</caption>
- <line id="lin_rsrvprescond" class="line_1" style="x1:0px; y1:70px; x2:840px; y2:70px; "/>
- <line id="lin_patlist" class="line_1" visibility="hidden" style="x1:0px; y1:70px; x2:271px; y2:70px; "/>
- </group>
- <group id="grp_btn" style="left:0px; top:741px; width:1175px; height:27px; ">
- <button id="btn_cls" class="btn4_letter2" navindex="9" style="left:1109px; top:3px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- <output id="opt_message" ref="/root/temp/message/optmessage" class="input_search" style="left:0px; top:4px; width:1105px; height:19px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|