123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887 |
- <?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>
- <edupatinfo>
- <edupatlist>
- <stat/>
- <patfg/>
- <roomcd/>
- <pid/>
- <pidnm/>
- <age/>
- <reqdd/>
- <prcpcd/>
- <ordnm/>
- <eryn/>
- <dept/>
- <rervdd/>
- <rervtm/>
- <comdd/>
- <actyn/>
- <tel/>
- <reqdetlflag/>
- <seqno/>
- <addrsrvyn/>
- <rgstflag/>
- <reqdeptcd/>
- <reqdrid/>
- <reqnursid/>
- <orddd/>
- <cretno/>
- <prerervdd/>
- <formrecseq/>
- <prcpdd/>
- <prcpno/>
- <prcphistno/>
- <iudstatus/>
- <precomdd/>
- <preactyn/>
- </edupatlist>
- </edupatinfo>
- <ininfo>
- <ininfolist>
- <stat/>
- <pid/>
- <reqdd/>
- <rervdd/>
- <rervtm/>
- <reqdetlflag/>
- <seqno/>
- <addrsrvyn/>
- <patfg/>
- <rgstflag/>
- <reqdeptcd/>
- <reqdrid/>
- <reqnursid/>
- <orddd/>
- <cretno/>
- <prerervdd/>
- <formrecseq/>
- <prcpdd/>
- <prcpno/>
- <prcphistno/>
- </ininfolist>
- </ininfo>
- <item>
- <patinfo>
- <newyn/>
- <pid/>
- <pidnm/>
- <age/>
- <resno/>
- <telno1/>
- <telno2/>
- <addr1/>
- <addr2/>
- <reqdd/>
- <rervdd/>
- <rervtm/>
- <edudd/>
- <lastedudd/>
- <patfg/>
- <wardno/>
- <reqdeptcd/>
- <reqdrid/>
- <reqnursid/>
- <glutype/>
- <ordnm/>
- <reqresn/>
- <remark/>
- <actyn/>
- <rsrvpidyn/>
- <reqdeptnm/>
- <reqdrnm/>
- <reqnursnm/>
- <!-- 20090522 dhkim remark수정을 위해 추가 -->
- <fromdd/>
- <rgstflag/>
- </patinfo>
- </item>
- </main>
- <cond>
- <spcl/>
- <ddflag/>
- <fromdd/>
- <enddd/>
- <stat>0</stat>
- <patfg>A</patfg>
- <pid/>
- <patnm/>
- <itemlist/>
- <indate/>
- <inpid/>
- <cnfm/>
- <newpid/>
- <newpidsave/>
- </cond>
- <intm/>
- <temp>
- <orddeptlist>
- <dept>
- <depthngnm/>
- <deptcd/>
- </dept>
- </orddeptlist>
- <item>
- <patinfo>
- <newyn/>
- <pid/>
- <pidnm/>
- <age/>
- <resno/>
- <telno1/>
- <telno2/>
- <addr1/>
- <addr2/>
- <reqdd/>
- <rervdd/>
- <rervtm/>
- <edudd/>
- <lastedudd/>
- <patfg/>
- <wardno/>
- <reqdeptcd/>
- <reqdrid/>
- <reqnursid/>
- <glutype/>
- <ordnm/>
- <reqresn/>
- <remark/>
- <actyn/>
- <rgstflag/>
- </patinfo>
- </item>
- <menudeptinfo>
- <deptnm/>
- </menudeptinfo>
- </temp>
- <hidden>
- <spclcarefildflaginfo/>
- <nursdeptinfo/>
- <spclteaminfo/>
- <spclsideinfo/>
- </hidden>
- <!-- 20090708 dhkim 오른쪽 메뉴가 temp인스턴스가 사라짐으로 없어져서 노드변경함 -->
- <rghtmenu>
- <edupatlist_popmenu>
- <menu>
- <name>의뢰서 조회</name>
- <func>fConsultLink</func>
- </menu>
- <menu>
- <name>통합기록조회</name>
- <func>fSytsRecLink</func>
- </menu>
- </edupatlist_popmenu>
- </rghtmenu>
- <send>
- <savedata/>
- </send>
- </root>
- </instance>
- <submission id="TRMNS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/edupatinfo"/>
- <submission id="TRMNS00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/item"/>
- <submission id="TRMNS00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/inpid" resultref="/root/main/ininfo"/>
- <submission id="TRMNS00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/spclcarefildflaginfo/spclcarefildflaginfolist"/>
- <submission id="TRMNS00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/nursdeptinfo/nursdeptlist"/>
- <submission id="TRMNS00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/spclteaminfo/spclteamlist"/>
- <submission id="TRMNS00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/spclsideinfo/spclsidelist"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TXMNS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/intm"/>
- <submission id="TXMNS00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/intm"/>
- <submission id="TXMNS00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/rstinfo"/>
- <!-- 20090213 dhkim 부서코드에 해당하는 부서명조회-->
- <submission id="TRMNI02031" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../emr/spclcareweb/js/SMMNS00100.js"/>
- <script type="javascript" src="../../../emr/spclcareweb/js/MNS001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var msg = '기본 : 미확인 + 미수행 조회 \r\n미확인 : 미확인 조회 \r\n미수행 : 미확인 또는 확인+미수행 조회 \r\n수행 : 확인 + 수행 조회 ';
- rdo_stat.hint = msg;
- fInit();
- ]]>
- </script>
- </model>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">전문간호 메인</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <textarea id="tar_remark" ref="/root/main/item/patinfo/remark" navindex="5" imemode="hangul" style="left:896px; top:582px; width:294px; height:153px; "/>
- <group id="grp_sea" style="left:0px; top:0px; width:1195px; height:65px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:9px; width:99px; height:17px; ">전문분야 :</caption>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <caption id="caption1" class="search_name" style="left:655px; top:9px; width:89px; height:17px; ">조회일자 :</caption>
- <caption id="caption3" style="left:832px; top:12px; width:12px; height:13px; ">~</caption>
- <caption id="caption4" class="search_name" style="left:330px; top:9px; width:93px; height:17px; ">조회구간 :</caption>
- <caption id="caption5" class="search_name" style="left:655px; top:34px; width:89px; height:17px; ">등록번호 :</caption>
- <caption id="caption8" class="search_name" style="left:16px; top:36px; width:101px; height:17px; ">진행상태 :</caption>
- <caption id="caption10" class="search_name" style="left:330px; top:35px; width:85px; height:17px; ">구 분 :</caption>
- <button id="btn_patSearch" class="icon_search" style="left:899px; top:34px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var pid = model.getValue('/root/cond/pid');
- var flg = '1';
- var xpath = '/root/cond';
-
- fPopPatient(flg, xpath, pid);
- ]]>
- </script>
- </button>
- <select1 id="cmb_spcl" ref="/root/cond/spcl" class="combo_search" appearance="minimal" style="left:120px; top:8px; width:196px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/spclcarefildflaginfo/spclcarefildflaginfolist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //alert(111);
- fSpclComboChanged();//이벤트체인지
- // 조회
- fSearchMainList(); // 전문간호 환자 리스트 조회
- ]]>
- </script>
- </select1>
- <select1 id="rdo_ddflag" ref="/root/cond/ddflag" appearance="full" cols="4" rows="1" overflow="visible" style="left:420px; top:8px; width:225px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>의뢰일</label>
- <value>R</value>
- </item>
- <item>
- <label>처방일</label>
- <value>O</value>
- </item>
- <item>
- <label>예약일</label>
- <value>S</value>
- </item>
- <item>
- <label>수행일</label>
- <value>A</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- // 조회
- fSearchMainList(); // 전문간호 환자 리스트 조회
- ]]>
- </script>
- </select1>
- <input id="ipt_Fromdd" ref="/root/cond/fromdd" class="input_search" inputtype="date" style="left:745px; top:8px; width:85px; height:19px; "/>
- <input id="ipt_Enddd" ref="/root/cond/enddd" class="input_search" inputtype="date" style="left:845px; top:8px; width:85px; height:19px; "/>
- <select1 id="rdo_patfg" ref="/root/cond/patfg" appearance="full" cols="3" rows="1" overflow="visible" style="left:420px; top:35px; width:140px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 조회
- fSearchMainList(); // 전문간호 환자 리스트 조회
- ]]>
- </script>
- </select1>
- <input id="ipt_pid" ref="/root/cond/pid" class="input_search" validateformat="true" style="left:745px; top:33px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- // 환자번호 입력시 기본정보조회
- var keycode = event.keyCode;
- if(keycode == 13){
- model.setFocus("btn_patSearch");
- btn_patSearch.dispatch("DOMActivate");
- return;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/cond/patnm","");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- if(model.getValue("/root/cond/pid")==""){
- model.setValue("/root/cond/patnm","");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <output id="opt_patnm" ref="/root/cond/patnm" class="output_fix" style="left:822px; top:33px; width:75px; height:19px; "/>
- <button id="btn_select" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 조회
- fSearchMainList(); // 전문간호 환자 리스트 조회
- ]]>
- </script>
- </button>
- <select1 id="rdo_stat" ref="/root/cond/stat" appearance="full" cols="4" rows="1" overflow="visible" style="left:120px; top:35px; width:200px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>기본</label>
- <value>0</value>
- </item>
- <item>
- <label>미확인</label>
- <value>1</value>
- </item>
- <item>
- <label>미수행</label>
- <value>2</value>
- </item>
- <item>
- <label>수행</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 조회
- fSearchMainList(); // 전문간호 환자 리스트 조회
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption9" class="tit_2" style="left:0px; top:80px; width:135px; height:13px; vertical-align:middle; ">대상자리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:805px; y2:95px; "/>
- <line id="line2" class="line_1" style="x1:812px; y1:95px; x2:1192px; y2:95px; "/>
- <caption id="caption11" class="tit_2" style="left:814px; top:80px; width:116px; height:13px; vertical-align:middle; ">환자예약정보</caption>
- <caption id="caption19" class="cell_1" style="left:810px; top:295px; width:84px; height:23px; vertical-align:middle; ">등록번호</caption>
- <caption id="caption12" class="cell_1" style="left:810px; top:319px; width:84px; height:23px; vertical-align:middle; ">주민번호</caption>
- <caption id="caption13" class="cell_1" style="left:810px; top:367px; width:84px; height:46px; vertical-align:middle; ">주소</caption>
- <caption id="caption14" class="cell_1" style="left:810px; top:343px; width:84px; height:23px; vertical-align:middle; ">집전화번호</caption>
- <caption id="caption15" class="cell_1" style="left:810px; top:438px; width:84px; height:23px; vertical-align:middle; ">최초수행일시</caption>
- <caption id="caption16" class="cell_1" style="left:810px; top:510px; width:84px; height:23px; vertical-align:middle; ">의뢰과</caption>
- <caption id="caption17" class="cell_1" style="left:810px; top:414px; width:84px; height:23px; vertical-align:middle; ">구분</caption>
- <caption id="caption18" class="cell_1" style="left:810px; top:462px; width:84px; height:23px; vertical-align:middle; ">의뢰일자</caption>
- <caption id="caption20" class="cell_1" style="left:995px; top:535px; width:84px; height:23px; vertical-align:middle; ">의뢰간호사</caption>
- <caption id="caption22" class="cell_1" style="left:810px; top:582px; width:84px; height:153px; vertical-align:middle; ">Remark</caption>
- <caption id="caption23" class="cell_1" style="left:810px; top:558px; width:84px; height:23px; vertical-align:middle; ">예약사유</caption>
- <caption id="caption24" class="cell_1" style="left:995px; top:462px; width:84px; height:23px; vertical-align:middle; ">당뇨유형</caption>
- <caption id="caption26" class="cell_1" style="left:995px; top:343px; width:84px; height:23px; vertical-align:middle; ">휴대전화</caption>
- <caption id="caption27" class="cell_1" style="left:995px; top:438px; width:84px; height:23px; vertical-align:middle; ">최근수행일시</caption>
- <caption id="caption28" class="cell_1" style="left:810px; top:534px; width:84px; height:23px; vertical-align:middle; ">의뢰의사</caption>
- <caption id="caption29" class="cell_1" style="left:995px; top:414px; width:84px; height:23px; vertical-align:middle; ">병실</caption>
- <caption id="caption30" class="cell_1" style="left:810px; top:486px; width:84px; height:23px; vertical-align:middle; ">예약일시</caption>
- <caption id="caption31" class="cell_1" style="left:995px; top:295px; width:84px; height:23px; vertical-align:middle; ">환자명</caption>
- <button id="button14" class="btn2_letter6" visibility="hidden" style="left:622px; top:74px; width:86px; height:19px; ">
- <caption>당뇨인식카드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /* 사용안함
- var pid = model.getValue(xEdupatlistPath + "["+grd_edupatlist.row+"]/pid");
-
- if(pid == ""){
- messageBox("당뇨인식카드 출력할 환자를 ","C002");
- return;
- }
-
- var hngnm = model.getValue(xEdupatlistPath + "["+grd_edupatlist.row+"]/pidnm");
- var sex = model.getValue(xEdupatlistPath + "["+grd_edupatlist.row+"]/age");
- var rrgstno = model.getValue(xEdupatlistPath + "["+grd_edupatlist.row+"]/rrgstno");
- var tel = model.getValue(xEdupatlistPath + "["+grd_edupatlist.row+"]/tel");
- var address = model.getValue(xEdupatlistPath + "["+grd_edupatlist.row+"]/address");
-
- sex = sex.substring(0,1);
- if(sex == 'M'){
- sex = '남';
- }else if(sex == 'F'){
- sex = '여';
- }
- setParameter("pid",pid);
- setParameter("hngnm",hngnm);
- setParameter("sex",sex);
- setParameter("rrgstno",rrgstno);
- setParameter("tel",tel);
- setParameter("address",address);
-
- var left = event.screenX;
- var top = event.screenY;
- open("SMMNS03000",1,left,top);
- */
- ]]>
- </script>
- </button>
- <button id="button90" class="btn5_letter2" style="left:763px; top:74px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSaveMainList();
- ]]>
- </script>
- </button>
- <button id="btn_PSave" class="btn5_letter2" style="left:1151px; top:269px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 전문간호신규환자등록
- fSaveNewPatient();
- ]]>
- </script>
- </button>
- <datagrid id="grd_edupatlist" nodeset="/root/main/edupatinfo/edupatlist" class="datagrid2" autoresize="true" caption="상태^구분^병실^등록번호^환자명^S/A^의뢰일^처방코드^처방명(의뢰)^응급^과/의뢰자^예약일시^예약일시^확인^수행^환자전화번호^전문분야구분^예약순번^추가예약여부^등록구분^의뢰과코드^의뢰의사ID^의뢰간호사ID^진료일^생성번호^기록순번^iud상태값" colsep="^" colwidth="43, 20, 35, 70, 56, 35, 70, 71, 124, 21, 79, 70, 35, 26, 26, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="^" selectionmode="byrow" style="left:0px; top:100px; width:805px; height:635px; ">
- <col ref="stat"/>
- <col ref="patfg"/>
- <col explorerbar="sort" ref="roomcd"/>
- <col ref="pid"/>
- <col ref="pidnm"/>
- <col ref="age"/>
- <col ref="reqdd" format="yyyy-mm-dd"/>
- <col ref="prcpcd"/>
- <col allowuserresize="true" ref="ordnm"/>
- <col ref="eryn"/>
- <col ref="dept"/>
- <col ref="rervdd" format="yyyy-mm-dd"/>
- <col ref="rervtm" format="hh:nn"/>
- <col ref="comdd" type="checkbox"/>
- <col ref="actyn" type="checkbox"/>
- <col ref="tel" visibility="hidden"/>
- <col ref="reqdetlflag" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="addrsrvyn" visibility="hidden"/>
- <col ref="rgstflag" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="reqdrid" visibility="hidden"/>
- <col ref="reqnursid" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="prerervdd" visibility="hidden"/>
- <col ref="formrecseq" visibility="hidden"/>
- <col ref="prcpdd" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <col ref="iudstatus" visibility="hidden"/>
- <col ref="precomdd" visibility="hidden"/>
- <col ref="preactyn" visibility="hidden"/>
- <script type="javascript" ev:event="ondelayclick">
- <![CDATA[
-
- //현재 선택한 데이터의 row, col 인덱스
- var curRow = grd_edupatlist.row;
- var curCol = grd_edupatlist.col;
-
- if(grd_edupatlist.rows == 1){
- return;
- }
-
- //선택된 체크박스의 readonly상태 - return 은 1 or 0
- var isReadOnly = grd_edupatlist.isReadOnly(curRow, curCol);
-
- var rgstflag = model.getValue(xEdupatlistPath + '[' + curRow + ']/rgstflag');
- var comdd = model.getValue(xEdupatlistPath + "[" + curRow + "]/comdd"); //확인 체크후 변경된 값
- var precomdd = model.getValue(xEdupatlistPath + "[" + curRow + "]/precomdd"); //확인 변경전 비교값
- var actyn = model.getValue(xEdupatlistPath + '[' + curRow + ']/actyn'); //수행 체크후 변경된 값
- var preactyn = model.getValue(xEdupatlistPath + "[" + curRow + "]/preactyn"); //수행 변경전 비교값
-
- //확인체크
- if(isReadOnly == false && curCol == 14){
- if(actyn == "true" ){
- messageBox("수행한 환자는 확인취소를 ","E001");
- model.setValue(xEdupatlistPath + "[" + curRow + "]/comdd","true");
- }
- }
- //수행체크
- else if(isReadOnly == false && curCol == 15){
-
- //확인하지 않은 환자는 수행을 할 수 없다.
- if(model.getValue(xEdupatlistPath+"["+ curRow +"]/comdd") != "true" ){
- messageBox("확인을 안한 환자는 수행을 ","E001");
- model.setValue(xEdupatlistPath+"["+ curRow +"]/actyn","false");
- }
- }
- //예약정보조회
- else if(curCol < 14){//선택한 컬럼이 확인, 수행이 아닌것만 조회태움.
- grd_edupatlist.isReadOnly(curRow, curCol) = true;
- //20080827 주석처리 fControlRsrvButton(); //예약 행추가/행삭제 버튼을 제어한다.
- fSearchReserv(); // 환자예약정보조회[TRMNS00103]
- }
-
- /*
- if(comdd == precomdd && actyn == preactyn){
- model.setValue(xEdupatlistPath+"["+ curRow +"]/iudstatus", 's');
- //alert('not updated!! comdd='+comdd+', precomdd=' + precomdd + ', actyn=' + actyn + ', preactyn=' + preactyn);
- }else{
- model.setValue(xEdupatlistPath+"["+ curRow +"]/iudstatus", 'u');
- //alert('updated!! comdd='+comdd+', precomdd=' + precomdd + ', actyn=' + actyn + ', preactyn=' + preactyn);
- }
- */
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- if(grd_edupatlist.selectedRows > 1){
- //현재 선택한 데이터의 row, col 인덱스
- var curRow = 0;
- var curCol = 0;
-
- var actyn, isReadOnly, comddyn, precomdd, preactyn ;
-
- //수행,확인은 신경과, 유방센터 전문간호사의 경우 (처방데이터) 기능검사화면에서 실시체크 하므로 막아줄것..
-
- //확인체크시
- if(grd_edupatlist.col == 14){
- for ( var i= 0; i<grd_edupatlist.selectedRows; i++){
- curRow = grd_edupatlist.selectedrow(i);
-
- //선택된 체크박스의 readonly상태 - return 은 1 or 0
- isReadOnly = grd_edupatlist.isReadOnly(curRow, 14);
-
- comddyn = model.getValue(xEdupatlistPath + "[" + grd_edupatlist.selectedrow(i) + "]/comdd");//확인 체크후 변경된 값
- precomdd = model.getValue(xEdupatlistPath + "[" + grd_edupatlist.selectedrow(i) + "]/precomdd");//확인 변경전 비교값
- actyn = model.getValue(xEdupatlistPath + "[" + grd_edupatlist.selectedrow(i) + "]/actyn");//수행 체크후 변경된 값
- preactyn = model.getValue(xEdupatlistPath + "[" + grd_edupatlist.selectedrow(i) + "]/preactyn");//수행 변경전 비교값
-
- if(isReadOnly == false){
-
- //true 는 false로.. false는 true로 ..
- comddyn = (comddyn == 'true')? 'false':(comddyn == 'false')? 'true': '';
-
- if(comddyn != '' && actyn != 'true')
- model.setValue(xEdupatlistPath + "[" + grd_edupatlist.selectedrow(i) + "]/comdd", comddyn);
- }
-
- //그리드에서 한번 수정된 상태값이 원복 시켰을때에 다시 조회상태로 변경되지 않으므로 원복 시켰을때 상태값을 임의로 조정해준다.
- if(comddyn == precomdd && actyn == preactyn){
- model.setValue(xEdupatlistPath+"["+ grd_edupatlist.selectedrow(i) +"]/iudstatus", '');
- }else{
- model.setValue(xEdupatlistPath+"["+ grd_edupatlist.selectedrow(i) +"]/iudstatus", 'u');
- }
- model.refresh();
- }
- }
- //수행체크시
- else if(grd_edupatlist.col == 15){
- for ( var i= 0; i<grd_edupatlist.selectedRows; i++){
- curRow = grd_edupatlist.selectedrow(i);
-
- //선택된 체크박스의 readonly상태 - return 은 1 or 0
- isReadOnly = grd_edupatlist.isReadOnly(curRow, 15);
-
- comddyn = model.getValue(xEdupatlistPath + "[" + grd_edupatlist.selectedrow(i) + "]/comdd");//확인 체크후 변경된 값
- precomdd = model.getValue(xEdupatlistPath + "[" + grd_edupatlist.selectedrow(i) + "]/precomdd");//확인 변경전 비교값
- actyn = model.getValue(xEdupatlistPath + "[" + grd_edupatlist.selectedrow(i) + "]/actyn");//수행 체크후 변경된 값
- preactyn = model.getValue(xEdupatlistPath + "[" + grd_edupatlist.selectedrow(i) + "]/preactyn");//수행 변경전 비교값
-
- if(isReadOnly == false){
-
- //true 는 false로.. false는 true로 ..
- actyn = (actyn == 'true')? 'false':(actyn == 'false')? 'true': '';
-
- if(actyn != '' && comddyn != 'false')
- model.setValue(xEdupatlistPath + "[" + grd_edupatlist.selectedrow(i) + "]/actyn", actyn);
-
- }
-
- //그리드에서 한번 수정된 상태값이 원복 시켰을때에 다시 조회상태로 변경되지 않으므로 원복 시켰을때 상태값을 임의로 조정해준다.
- if(comddyn == precomdd && actyn == preactyn){
- model.setValue(xEdupatlistPath+"["+ grd_edupatlist.selectedrow(i) +"]/iudstatus", '');
- }else{
- model.setValue(xEdupatlistPath+"["+ grd_edupatlist.selectedrow(i) +"]/iudstatus", 'u');
- }
- model.refresh();
- }
- }
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_edupatlist.row == 0){
- return false;
- }
-
- var curRow = grd_edupatlist.row;
- var curCol = grd_edupatlist.col;
- var rgstflag = model.getValue(xEdupatlistPath+"["+grd_edupatlist.row+"]/rgstflag");
-
- if(curCol < 14){//선택한 컬럼이 확인, 수행이 아닌것만 조회태움.
- grd_edupatlist.isReadOnly(curRow, curCol) = true;
-
- // 환자상단정보 Setting
- if(rgstflag =="N" ) {
- alert("신규등록을 통해 예약한 환자는 상단에 정보를 올릴 수 없습니다.");
- /*
- orddd 진료일자 ,cretno 생성번호 가 없어서...
- */
- }else{
- var condparam = '';
- //재원환자 상단정보 등록
- if( model.getValue(xEdupatlistPath+"["+grd_edupatlist.row+"]/patfg") =="I" ) {
- condparam = "I"+ "▦" + model.getValue(xEdupatlistPath+"["+grd_edupatlist.row+"]/pid")
- + "▦" + model.getValue(xEdupatlistPath+"["+grd_edupatlist.row+"]/orddd")
- + "▦" + model.getValue(xEdupatlistPath+"["+grd_edupatlist.row+"]/cretno")
- + "▦" + model.getValue(xEdupatlistPath+"["+grd_edupatlist.row+"]/instcd")
- + getCurrentDate();
- }
- //외래환자 상단정보 등록
- else if( model.getValue(xEdupatlistPath+"["+grd_edupatlist.row+"]/patfg") =="O" ) {
- condparam = "O"+ "▦" + model.getValue(xEdupatlistPath+"["+grd_edupatlist.row+"]/pid")
- + "▦" + model.getValue(xEdupatlistPath+"["+grd_edupatlist.row+"]/orddd")
- + "▦" + model.getValue(xEdupatlistPath+"["+grd_edupatlist.row+"]/cretno")
- + "▦" + model.getValue(xEdupatlistPath+"["+grd_edupatlist.row+"]/instcd")
- + getCurrentDate();
- }
- setParameter("condparam", condparam);
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
-
- //상단올린후 환자예약정보의 행추가/행삭제/저장버튼 활성화
- btn_addrow.disabled = false;
- btn_delrow.disabled = false;
- btn_rsrvsave.disabled = false;
-
- }
-
- // 환자선택시 환자정보조회
- fSearchReserv(); // 환자예약정보조회[TRMNS00103]
- fSearchPatDetail(); // 환자상세정보조회
- }
-
-
-
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- //그리드 헤더클릭하여 sort후 인스턴스노드 순서가 바뀌는것을 방지하기 위해 인스턴스를 재설정
- grd_edupatlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- //오른쪽 버튼 눌렀을때 사용자 정의메뉴(협진관리)를 만들어 팝업 메뉴를 보여준다.
- if(event.button == 3){
- if(grd_edupatlist.isCell(event.target) && grd_edupatlist.mouseRow >= grd_edupatlist.fixedrows){
- window.setPopupMenu(true, "/root/rghtmenu/edupatlist_popmenu/menu", "name", "func", false);
- }else{
- window.setPopupMenu(false);
- }
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- //현재 선택한 데이터의 row, col 인덱스
- var curRow = grd_edupatlist.row;
- var curCol = grd_edupatlist.col;
- var rgstflag = model.getValue(xEdupatlistPath + '[' + curRow + ']/rgstflag');
- var comdd = model.getValue(xEdupatlistPath + "[" + curRow + "]/comdd"); //확인 체크후 변경된 값
- var precomdd = model.getValue(xEdupatlistPath + "[" + curRow + "]/precomdd"); //확인 변경전 비교값
- var actyn = model.getValue(xEdupatlistPath + '[' + curRow + ']/actyn'); //수행 체크후 변경된 값
- var preactyn = model.getValue(xEdupatlistPath + "[" + curRow + "]/preactyn"); //수행 변경전 비교값
-
- //그리드에서 한번 수정된 상태값이 원복 시켰을때에 다시 조회상태로 변경되지 않으므로 원복 시켰을때 상태값을 임의로 조정해준다.
- if(comdd == precomdd && actyn == preactyn){
- model.setValue(xEdupatlistPath+"["+ curRow +"]/iudstatus", '');
- }else{
- model.setValue(xEdupatlistPath+"["+ curRow +"]/iudstatus", 'u');
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <input id="ipt_pid1" ref="/root/main/item/patinfo/pid" class="input_essential" maxlength="10" style="left:896px; top:296px; width:73px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- // 환자번호 입력시 기본정보조회
- var keycode = event.keyCode;
- if(keycode == 13){
- model.setFocus("btn_new");
- btn_new.dispatch("DOMActivate");
- return;
- }
- ]]>
- </script>
- </input>
- <output id="opt_resno" ref="/root/main/item/patinfo/resno" class="output_fix" style="left:896px; top:320px; width:98px; height:19px; "/>
- <output id="opt_telno1" ref="/root/main/item/patinfo/telno1" class="output_fix" style="left:896px; top:344px; width:98px; height:19px; "/>
- <output id="opt_telno2" ref="/root/main/item/patinfo/telno2" class="output_fix" style="left:1080px; top:344px; width:112px; height:19px; "/>
- <output id="opt_addr1" ref="/root/main/item/patinfo/addr1" class="output_fix" style="left:896px; top:368px; width:98px; height:19px; "/>
- <output id="opt_addr2" ref="/root/main/item/patinfo/addr2" class="output_fix" style="left:897px; top:392px; width:294px; height:19px; "/>
- <input id="ipt_reqdd" ref="/root/main/item/patinfo/reqdd" class="input_default" navindex="1" inputtype="date" maxlength="8" format="yyyy-mm-dd" appearance="input" style="left:896px; top:464px; width:98px; height:19px; "/>
- <input id="ipt_rervdd" ref="/root/main/item/patinfo/rervdd" class="input_essential" navindex="2" inputtype="date" maxlength="8" format="yyyy-mm-dd" style="left:896px; top:488px; width:98px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue('/root/main/item/patinfo/rervdd').length == 8){
- model.setFocus("ipt_rervtm");//예약일이 입력되면 예약시간 입력필드로 포커스 이동
- }
- ]]>
- </script>
- </input>
- <input id="ipt_rervtm" ref="/root/main/item/patinfo/rervtm" class="input_essential" navindex="3" maxlength="4" format="hh:nn" style="left:995px; top:488px; width:88px; height:19px; "/>
- <output id="opt_edudd" ref="/root/main/item/patinfo/edudd" class="output_fix" format="yyyy-mm-dd" style="left:896px; top:440px; width:98px; height:19px; "/>
- <output id="opt_lastedudd" ref="/root/main/item/patinfo/lastedudd" class="output_fix" format="yyyy-mm-dd" style="left:1080px; top:440px; width:112px; height:19px; "/>
- <output id="opt_patfg" ref="/root/main/item/patinfo/patfg" class="output_fix" style="left:896px; top:416px; width:98px; height:19px; "/>
- <output id="opt_wardno" ref="/root/main/item/patinfo/wardno" class="output_fix" appearance="input" style="left:1080px; top:416px; width:112px; height:19px; "/>
- <output id="cmb_reqdeptnm" ref="/root/main/item/patinfo/reqdeptnm" class="output_fix" appearance="input" style="left:896px; top:513px; width:294px; height:19px; "/>
- <output id="cmb_reqdrnm" ref="/root/main/item/patinfo/reqdrnm" class="output_fix" appearance="input" style="left:896px; top:537px; width:98px; height:19px; "/>
- <output id="cmb_reqnursnm" ref="/root/main/item/patinfo/reqnursnm" class="output_fix" appearance="input" style="left:1080px; top:537px; width:112px; height:19px; "/>
- <input id="cmb_reqdeptcd" ref="/root/main/item/patinfo/reqdeptcd" visibility="hidden" style="left:785px; top:625px; width:75px; height:19px; "/>
- <input id="cmb_reqdrid" ref="/root/main/item/patinfo/reqdrid" visibility="hidden" style="left:785px; top:605px; width:75px; height:19px; "/>
- <input id="cmb_reqnursid" ref="/root/main/item/patinfo/reqnursid" visibility="hidden" style="left:785px; top:585px; width:75px; height:19px; "/>
- <select1 id="cmb_glytype" ref="/root/main/item/patinfo/glutype" class="combo_search" appearance="minimal" style="left:1080px; top:464px; width:112px; height:19px; ">
- <choices>
- <item>
- <label>제1형 당뇨</label>
- <value>1</value>
- </item>
- <item>
- <label>제2형 당뇨</label>
- <value>2</value>
- </item>
- <item>
- <label>임신성 당뇨</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_reqresn" ref="/root/main/item/patinfo/reqresn" class="input_default" navindex="4" style="left:896px; top:560px; width:294px; height:19px; "/>
- <caption id="caption7" class="tit_2" style="left:810px; top:275px; width:100px; height:13px; vertical-align:middle; ">환자정보조회</caption>
- <line id="line3" class="line_1" style="x1:810px; y1:290px; x2:1190px; y2:290px; "/>
- <button id="btn_addrow" class="btn2_letter3" disabled="true" style="left:1042px; top:74px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fAddRowReservGrid();// 행추가
- ]]>
- </script>
- </button>
- <button id="btn_delrow" class="btn2_letter3" disabled="true" style="left:1096px; top:74px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fDeleteRowReservGrid();// 행삭제
- ]]>
- </script>
- </button>
- <button id="btn_rsrvsave" class="btn5_letter2" disabled="true" style="left:1151px; top:74px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSaveReserv();// 예약일시 저장
- ]]>
- </script>
- </button>
- <datagrid id="grd_InPidList" nodeset="/root/main/ininfo/ininfolist" autoresize="true" caption="상태^등록번호^의뢰일자^예약일시^예약일시^전문분야구분^예약순번^추가예약여부^외래입원구분^등록구분^의뢰부서^의뢰의사id^의뢰간호사id^진료일자^생성번호^이전예약일자^기록순번^처방일자^처방번호^처방이력번호" colsep="^" colwidth="42, 71, 75, 85, 60, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" style="left:812px; top:100px; width:380px; height:155px; ">
- <col ref="stat" style="left:20px; top:23px; width:42px; height:23px; "/>
- <col ref="pid"/>
- <col ref="reqdd" format="yyyy-mm-dd"/>
- <col autonext="true" ref="rervdd" type="inputdate" format="yyyy-mm-dd" maxlength="8"/>
- <col ref="rervtm" type="input" format="hh:nn" maxlength="4"/>
- <col ref="reqdetlflag" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="addrsrvyn" visibility="hidden"/>
- <col ref="patfg" visibility="hidden"/>
- <col ref="rgstflag" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="reqdrid" visibility="hidden"/>
- <col ref="reqnursid" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="prerervdd" visibility="hidden"/>
- <col ref="formrecseq" visibility="hidden"/>
- <col ref="prcpdd" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_InPidList.col == 5){
- grd_InPidList.editCell();
- }
- //수행상태인 row 선택했을때에는 행삭제, 저장 버튼을 비활성화시킨다.
- if(model.getValue('/root/main/ininfo/ininfolist[' + grd_InPidList.row + ']/stat') == '수행'){
- btn_delrow.disabled = true;
- btn_rsrvsave.disabled = true;
- }else{
- btn_delrow.disabled = false;
- btn_rsrvsave.disabled = false;
- }
- ]]>
- </script>
- </datagrid>
- <line id="line10" class="line_3" style="x1:0px; y1:737px; x2:804px; y2:737px; vertical-align:bottom; "/>
- <button id="button8" class="icon_search" style="left:975px; top:296px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setFocus("btn_new");
- btn_new.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <line id="line4" class="line_3" style="x1:810px; y1:737px; x2:1190px; y2:737px; vertical-align:bottom; "/>
- <button id="btn_new" class="btn5_letter4" disabled="false" style="left:1085px; top:269px; width:64px; height:19px; ">
- <caption>신규등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fChoicePopNewPatient();//신규환자 팝업에서 선택
- ]]>
- </script>
- </button>
- <caption id="caption32" class="cell_1" style="left:995px; top:319px; width:84px; height:23px; vertical-align:middle; ">S/A</caption>
- <output id="opt_age" ref="/root/main/item/patinfo/age" class="output_fix" style="left:1080px; top:320px; width:112px; height:19px; "/>
- <output id="ipt_pidnm" ref="/root/main/item/patinfo/pidnm" class="output_fix" style="left:1080px; top:296px; width:112px; height:19px; "/>
- <output id="opt_newyn" ref="/root/main/item/patinfo/newyn" class="output_fix" visibility="hidden" style="left:885px; top:270px; width:55px; height:19px; "/>
- <button id="button3" class="btn2_letter3" style="left:709px; top:74px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fStoreExcel();//조회된 결과를 엑셀로 저장
- ]]>
- </script>
- </button>
- <output id="opt_rsrvpidyn" ref="/root/main/item/patinfo/rsrvpidyn" class="output_fix" visibility="hidden" style="left:945px; top:270px; width:55px; height:19px; "/>
- <button id="button7" class="btn2_letter7" style="left:987px; top:269px; width:97px; height:19px; ">
- <caption>등록대상자관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMMNS00200","1","20","20");
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <caption id="caption25" style="left:6px; top:3px; width:150px; height:20px; ">구분 - I : 입원, O : 외래</caption>
- <shape id="roundrect2" class="roundrect_example" appearance="roundrect" style="left:1px; top:3px; width:174px; height:20px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|