123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <lglydisrepttrgtmaninfo/>
- <cond>
- <fromdd/>
- <todd/>
- <pid/>
- <hngnm/>
- </cond>
- </main>
- <send>
- <reqdata/>
- </send>
- <hidden>
- </hidden>
- <init>
- </init>
- <temp>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRASI03901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/main/lglydisrepttrgtmaninfo"/>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRASB01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/hardcd/hardcd"/>
- </model>
- <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/common.js"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../ast/infcmngtweb/js/SMASB00100.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
- var idate=new Date();
- var frDate=idate.getAddDate(-1, "M");
-
- model.setValue("/root/main/cond/fromdd", frDate.getDateFormat());
- model.setValue("/root/main/cond/todd", getCurrentDate());
-
- model.refresh();
- }
-
- //각종 신고서 호출 전 파라메터 설정 (공통으로 사용토록 함수 분리 (2009.11.13 JJE)
- function fSetupParameters(){
- setParameter("wrtedt", model.getValue("/root/main/lglydisrepttrgtmaninfo/lglydisrepttrgtmanlist["+grd_lglydisrepttrgtman.row+"]/wrtedt"));
- setParameter("seqno", model.getValue("/root/main/lglydisrepttrgtmaninfo/lglydisrepttrgtmanlist["+grd_lglydisrepttrgtman.row+"]/seqno"));
- setParameter("pid", model.getValue("/root/main/lglydisrepttrgtmaninfo/lglydisrepttrgtmanlist["+grd_lglydisrepttrgtman.row+"]/pid"));
- setParameter("indd", model.getValue("/root/main/lglydisrepttrgtmaninfo/lglydisrepttrgtmanlist["+grd_lglydisrepttrgtman.row+"]/indd"));
- setParameter("psnflag", model.getValue("/root/main/lglydisrepttrgtmaninfo/lglydisrepttrgtmanlist["+grd_lglydisrepttrgtman.row+"]/ioflag"));
- setParameter("lglydiscd", model.getValue("/root/main/lglydisrepttrgtmaninfo/lglydisrepttrgtmanlist["+grd_lglydisrepttrgtman.row+"]/lglydiscd"));
- setParameter("state", "S");
- //진료에서 호출시
- var usercdok = model.getValue("/root/init/hardcd/hardcd/hardcdnm");
- var userdeptcd = getUserInfo( "dutplcecd" );
- if(usercdok != userdeptcd){ //감염관리실이 아닌 진료에서 사용시.
- setParameter("menuparam",model.getValue("/root/temp/menuParam"));
- }
- //(start) 파라메터 추가 (2009.11.13 JJE)
- var wrdt = model.getValue("/root/main/lglydisrepttrgtmaninfo/lglydisrepttrgtmanlist["+grd_lglydisrepttrgtman.row+"]/wrtedt").substring(0, 8);
- var wrDate = wrdt.toDate("YYYYMMDD");
- var valiDT = wrDate.getAddDate(1, "Y").getDateFormat("YYYYMMDD hhmmss");
- var curDT = getCurrentDateTime();
- var rpDT = "";
- if( valiDT < curDT ) var reptyn = "Y";
- else var reptyn = "N";
- setParameter("reptdt", wrdt);
- setParameter("reptyn", reptyn);
- setParameter("chgyn", "N");
- if( isNull(model.getValue("/root/main/lglydisrepttrgtmaninfo/lglydisrepttrgtmanlist["+grd_lglydisrepttrgtman.row+"]/reptdt")) ) rpDT = "99991231";
- else rpDT = model.getValue("/root/main/lglydisrepttrgtmaninfo/lglydisrepttrgtmanlist["+grd_lglydisrepttrgtman.row+"]/reptdt").substring(0, 8);
- setParameter("prt_reptdt", rpDT);
- //(end)파라메터 추가
- if(model.getValue("/root/main/lglydisrepttrgtmaninfo/lglydisrepttrgtmanlist["+grd_lglydisrepttrgtman.row+"]/reptdtnm")=="신고"){
- setParameter("DisabledChk", "Y"); //진료에서 신고상태 신고일 경우 disable시킴
- }
- }
-
- //결핵환자
- function fTbReptPopup(){
- //fUpInfo();
- fSetupParameters();
- if( model.getValue("/root/main/lglydisrepttrgtmaninfo/lglydisrepttrgtmanlist["+grd_lglydisrepttrgtman.row+"]/cnclyn") == "Y" ){
- messageBox("삭제된 신고서", "I009");
- return;
- }
- modal("SPASI01800", 1,10,10, "SPASI01800");
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_btn" style="left:0px; top:722px; width:1195px; height:27px; ">
- <button id="button4" class="btn6_letter2" visibility="visible" disable.background-image="../../../com/commonweb/images/dis_btn6_letter2.gif" style="left:84; top:3; width:56px; height:22px; background-image:../../../com/commonweb/images/btn6_letter2.gif; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //출력을위한 node 초기화
- model.removeNodeset("/root/temp/lglydisrepttrgtmaninfo");
- model.makeNode("/root/temp/lglydisrepttrgtmaninfo");
-
- var dateCur = getCurrentDate();
- var year = dateCur.substr(0,4);
- var mon = dateCur.substr(4,2);
- var day = dateCur.substr(6,2);
- var dateCurtime = getCurrentDateTime();
- var dateTime = dateCurtime.substr(0,8)+dateCurtime.substr(9,12);
-
- var count = 0;
- copyNodeListType("/root/temp/lglydisrepttrgtmaninfo", "/root/main/lglydisrepttrgtmaninfo/lglydisrepttrgtmanlist["+ grd_lglydisrepttrgtman.row +"]", "after");
- exeReportPreview("RPASI03901", "XMLSTR");
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:15px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button1" class="icon_search" style="left:585px; top:23px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/temp/patinfo/srchcond", "1");
- model.makeValue("/root/temp/patinfo/pid", ipt_patcd.currentText);
- //@@@@@@@@@여기까지
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/temp/patinfo", "/root/send");
-
- var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
-
- model.setValue("/root/main/cond/pid", sPid);
- model.setValue("/root/main/cond/hngnm", sHngnm);
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_lglydisrepttrgtman" nodeset="/root/main/lglydisrepttrgtmaninfo/lglydisrepttrgtmanlist" caption="^진단일자^^등록번호^성명^성별^나이^진료일^진료과코드^진료과^진료의^작성자^작성일자^상병명^법정전염병코드^병동^병실^입원일^퇴원일^wrtedt^seqno^ioflag^cretno^iseqno^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^32^33^34^35^치료약제^37^38^39^40^41^42^신원미상^caption1^caption3^caption4^caption5^caption6^caption7^caption8^caption11^caption9^caption10^cnclyn^state^psnflag^reptflag^reptdtnm^reptyear^reptmonth^reptday" colsep="^" colwidth="36, 75, 0, 67, 51, 40, 40, 75, 0, 95, 52, 52, 75, 0, 0, 66, 50, 75, 76, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:75px; width:1195px; height:646px; vertical-align:middle; ">
- <col checkvalue="true,false" ref="select" type="checkbox"/>
- <col ref="diagdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="reptdtnm" visibility="hidden"/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="name" style="text-align:center; "/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="age" style="text-align:center; "/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="deptnm"/>
- <col ref="orddr" style="text-align:center; "/>
- <col ref="specdr" style="text-align:center; "/>
- <col ref="wrtedt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="snwnm" visibility="hidden"/>
- <col ref="lglydiscd" visibility="hidden"/>
- <col ref="wardcd" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="wrtedt" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="iseqno" visibility="hidden"/>
- <col ref="rrgstno1" visibility="hidden"/>
- <col ref="rrgstno2" visibility="hidden"/>
- <col ref="patflag" visibility="hidden"/>
- <col ref="preinochstflag" visibility="hidden"/>
- <col ref="brthdd" visibility="hidden"/>
- <col ref="procernm" visibility="hidden"/>
- <col ref="naticd" visibility="hidden"/>
- <col ref="ecntrydd" visibility="hidden"/>
- <col ref="jobcd" visibility="hidden"/>
- <col ref="pastcureflag" visibility="hidden"/>
- <col ref="cureterm" visibility="hidden"/>
- <col ref="pastcurecnt" visibility="hidden"/>
- <col ref="bisiziflag" visibility="hidden"/>
- <col ref="bisiziinocmthd" visibility="hidden"/>
- <col ref="sputumdm" visibility="hidden"/>
- <col ref="sputumby" visibility="hidden"/>
- <col ref="sputumodm" visibility="hidden"/>
- <col ref="sputumoby" visibility="hidden"/>
- <col ref="tisstestlag" visibility="hidden"/>
- <col ref="etctestflag" visibility="hidden"/>
- <col ref="rayrsltflag" visibility="hidden"/>
- <col ref="tooberrsltsize" visibility="hidden"/>
- <col ref="diagcd" visibility="hidden"/>
- <col ref="curefromdd" visibility="hidden"/>
- <col ref="curedrugcd" visibility="hidden"/>
- <col ref="curedrugcd01" visibility="hidden"/>
- <col ref="curedrugcd02" visibility="hidden"/>
- <col ref="curedrugcd03" visibility="hidden"/>
- <col ref="curedrugcd04" visibility="hidden"/>
- <col ref="curedrugcd05" visibility="hidden"/>
- <col ref="curedrugcd06" visibility="hidden"/>
- <col ref="curedrugcd07" visibility="hidden"/>
- <col ref="curedrugcd08" visibility="hidden"/>
- <col ref="curedrugcd09" visibility="hidden"/>
- <col ref="curedrugcd" visibility="visible"/>
- <col ref="curetodd" visibility="hidden"/>
- <col ref="curersltflag" visibility="hidden"/>
- <col ref="zipcd1" visibility="hidden"/>
- <col ref="zipcd2" visibility="hidden"/>
- <col ref="hometel" visibility="hidden"/>
- <col ref="residncflag" visibility="hidden"/>
- <col ref="idflag" visibility="hidden"/>
- <col ref="detladdr" visibility="hidden"/>
- <col ref="cnfsnwtstrslt" visibility="hidden"/>
- <col ref="dethyn" visibility="hidden"/>
- <col ref="estminfcpath" visibility="hidden"/>
- <col ref="estminfcareacd" visibility="hidden"/>
- <col ref="estminfcareanaticd" visibility="hidden"/>
- <col ref="stayterm" visibility="hidden"/>
- <col ref="staytermday" visibility="hidden"/>
- <col ref="chngreptkind" visibility="hidden"/>
- <col ref="updtreptcnts" visibility="hidden"/>
- <col ref="cnclyn" visibility="hidden"/>
- <col ref="state" visibility="hidden"/>
- <col ref="psnflag" visibility="hidden"/>
- <col ref="reptflag" visibility="hidden"/>
- <col ref="reptdtnm" visibility="hidden"/>
- <col ref="reptyear" visibility="hidden"/>
- <col ref="reptmonth" visibility="hidden"/>
- <col ref="reptday" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_lglydisrepttrgtman.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </datagrid>
- <line id="line13" class="line_4" style="x1:1109px; y1:19px; x2:1109px; y2:45px; "/>
- <caption id="caption10" class="search_name" style="left:390px; top:24px; width:99px; height:17px; ">등록번호 :</caption>
- <caption id="caption11" class="tit_2" style="left:0px; top:57px; width:173px; height:13px; ">법정전염병신고대상자</caption>
- <caption id="caption4" class="search_name" style="left:621px; top:24px; width:73px; height:17px; ">환자명 :</caption>
- <input id="ipt_patnm" ref="/root/main/cond/hngnm" appearance="input" style="left:700px; top:23px; width:95px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode=="13"){
- model.makeValue("/root/temp/patinfo/srchcond", "2");
- model.makeValue("/root/temp/patinfo/hngnm", ipt_patnm.currentText);
-
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/temp/patinfo", "/root/send");
-
- var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
-
- model.setValue("/root/main/cond/pid", sPid);
- model.setValue("/root/main/cond/hngnm", sHngnm);
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:10px; top:24px; width:76px; height:17px; ">작성일 :</caption>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_search" inputtype="date" style="left:216px; top:23px; width:100px; height:19px; "/>
- <button id="btn_patsrchnm" class="icon_search" style="left:800px; top:23px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/temp/patinfo/srchcond", "2");
- model.makeValue("/root/temp/patinfo/hngnm", ipt_patnm.currentText);
-
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/temp/patinfo", "/root/send");
-
- var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
-
- model.setValue("/root/main/cond/pid", sPid);
- model.setValue("/root/main/cond/hngnm", sHngnm);
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn2_letter2" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:1153px; top:51px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // var fileName = window.fileDialog("save", ",", false, "법정전염병신고대상자", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- // if (fileName != ""){
- // grd_lglydisrepttrgtman.saveExcel(fileName, "SheetName", false, false, "", "", false);
- // }
- var fileName = window.fileDialog("save", ",", false, "법정전염병신고대상자", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_lglydisrepttrgtman.saveExcel(fileName, "법정전염병신고대상자", true, true, "", "", false);
- var s = fileName.lastIndexOf("\\");
- var fileName=fileName.substring(s+1);
-
- var rmsg = messageBox("저장된 Excel을", "Q004");
- if( rmsg == 6 ){
- window.exec("excel.exe", fileName);
- }
- }
- ]]>
- </script>
- </button>
- <input id="ipt_patcd" ref="/root/main/cond/pid" appearance="input" style="left:485px; top:23px; width:95px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode=="13"){
- model.makeNode("/root/send/cond");
- model.makeValue("/root/main/cond/pid", ipt_patcd.currentText);
- model.copyNode("/root/send/cond", "/root/main/cond");
- if( submit("TRASI01301") ){
- grd_lglydisrepttrgtman.rebuildStyle();
- //삭제 포함으로 조회한 경우, 삭제 신고서의 색상을 회색으로 표현 (2009.11.13 JJE 추가)
- if( model.getValue("/root/send/cond/delyn") == "Y" ){
- for(var i=1; i<grd_lglydisrepttrgtman.rows; i++ ){
- if( model.getValue("/root/main/lglydisrepttrgtmaninfo/lglydisrepttrgtmanlist[" + i + "]/cnclyn") == "Y" ){
- grd_lglydisrepttrgtman.rowstyle(i, "data", "color") = "#C0C0C0";
- }else{
- grd_lglydisrepttrgtman.rowstyle(i, "data", "color") = "#000000";
- }
- }
- }
- }
-
- model.makeNode("/root/hidden/searchlist");
- model.copyNode("/root/hidden/searchlist", "/root/main/lglydisrepttrgtmaninfo");
- }
- ]]>
- </script>
- </input>
- <line id="line2" class="line_1" style="x1:0px; y1:74px; x2:1195px; y2:73px; "/>
- <bool id="chkall" checkvalue="true,false" ref="/root/init/chkflag" style="left:25px; top:75px; width:25px; height:25px; ">
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- for( var i = 1 ; i < grd_lglydisrepttrgtman.rows ; i++){
- grd_lglydisrepttrgtman.valueMatrix( i, grd_lglydisrepttrgtman.colRef("select") ) = chkall.value ;
- }
- grd_lglydisrepttrgtman.rebuild();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- for( var i = 1 ; i < grd_lglydisrepttrgtman.rows ; i++){
- grd_lglydisrepttrgtman.valueMatrix( i, grd_lglydisrepttrgtman.colRef("select") ) = chkall.value ;
- }
- grd_lglydisrepttrgtman.rebuild();
- ]]>
- </script>
- </bool>
- <caption id="caption8" class="search_no_b" style="left:196px; top:24px; width:12px; height:17px; ">~</caption>
- <line id="line4" class="line_3" style="x1:0px; y1:721px; x2:1194px; y2:721px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1123px; top:22px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( (model.getValue("/root/main/cond/fromdd") == "") || model.getValue("/root/main/cond/todd") == "" ) {
- messageBox("일자는", "I003");
- return;
- }
-
- model.makeNode("/root/send/cond");
- model.copyNode("/root/send/cond", "/root/main/cond");
- if( submit("TRASI03901") ){
- }
-
- ]]>
- </script>
- </button>
- <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:145px; height:13px; ">결핵 사망환자 조회</caption>
- </group>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_search" inputtype="date" style="left:88px; top:23px; width:100px; height:19px; "/>
- </xhtml:body>
- </xhtml:html>
|