123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305 |
- <?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>
- <cond>
- <deptcd/>
- <fromdd/>
- <todd/>
- <authflag/>
- </cond>
- <kpcsinfo>
- <kpcslist/>
- </kpcsinfo>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <init/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //var menuParameter = getScreenMenuParameter();
- var sWardcd = "";
- var jobposcd = getUserInfo("jobposcd");
- var authflag = "";
- var jobkindcd = getUserInfo("jobkindcd");
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = 'W';
- var rslt_ref = "/root/init/dept";
- var sort_field = "depthngnm";
- var sort_method = "asc";
- var dt = getCurrentDate();
-
-
- //submit("TRMNW11001", false); //부서전체 리스트
- submit("TRMNW00101", false); //병동 리스트
- //addComboItem("cmb_deptcd", "전 체", "", "above");
-
- // 간호하드코딩 테이블 조회(I16 - 간호필요도 현황 조회가능 아이디)
- var pCode = "'I16'"; // 조회할 CdGrupID 코드정보
- var pDate = getCurrentDate(); //조회기준일자
- fGetNursHardCdInfo(pCode, pDate);
-
- for (var i = 0; i < grd_kpcsinfo.cols; i++) {
- if( i < 5 ) {
- grd_kpcsinfo.mergecol(i)=true;
- } else {
- grd_kpcsinfo.mergecol(i)=false;
- }
- grd_kpcsinfo.mergecells="byrestriccol";
- }
-
- sWardcd = getUserInfo("dutplcecd");
- model.setValue(ipt_fromdd.attribute("ref"), getCurrentDate());
- model.setValue(ipt_todd.attribute("ref"), getCurrentDate());
- model.setValue(cmb_deptcd.attribute("ref"), sWardcd);
-
- // 간호부장, 과장, 수간호사 및 등록된 사용자만 조회가능토록(팀장:84, 과장:62, 수간호사:75)
- if ( jobkindcd == "1140" && (jobposcd == "41" || jobposcd == "75" || jobposcd == "62" || getUserInfo("userid") == "ENR" || getUserInfo("userid") == model.getValue("/root/code/codeinfo/codelist[cdgrupid='I16' and cdid='"+getUserInfo("userid") +"']/cdid"))){
- caption4.visible = true;
- ipt_todd.visible = true;
- ipt_todd.disabled = false;
- authflag = "Y";
- model.setValue(bol_authflag.attribute("ref"), authflag);
- } else {
- caption4.visible = false;
- ipt_todd.visible = false;
- ipt_todd.disabled = true;
- authflag = "N";
- model.setValue(bol_authflag.attribute("ref"), authflag);
- }
-
- cmb_deptcd.refresh();
- ipt_fromdd.refresh();
- ipt_todd.refresh();
-
- fSearch() ;
- ]]>
- </script>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmblist"/>
- <!--<submission id="TRMNW11001" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/deptinfo"/>-->
- <submission id="TRMNW00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
- <submission id="TRMNW30000" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/kpcsinfo"/>
- </model>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fSearch() {
- var deptcd = model.getValue("/root/main/cond/deptcd");
- var fromdd = model.getValue("/root/main/cond/fromdd");
- var todd = model.getValue("/root/main/cond/todd");
- var authflag = model.getValue("/root/main/cond/authflag");
- var diff = getDateInterval(fromdd, todd, "dd") + 1;
-
- if (deptcd == null || deptcd == "") {
- messageBox("병동을 다시 설정 후 조회하십시오.", "E999");
- return;
- }
-
- if (fromdd == null || fromdd == "" || todd == null || todd == "") {
- messageBox("조회 일자를 다시 설정 후 조회하십시오 .", "E999");
- return;
- }
-
- if(authflag == "Y") {
- if (fromdd > todd) {
- messageBox("조회 일자를 다시 설정 후 조회하십시오.", "E999");
- return;
- }
-
- if (diff > 32) {
- messageBox("조회 기간을 한 달 이하로 수정 후 조회하십시오.", "E999");
- return;
- }
- }
-
- model.removenode("/root/send");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMNW30000");
- grd_kpcsinfo.cellstyle("background-image", 2+1, 2) = "../../../com/commonweb/images/grid_bg.gif"
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
- <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:180px; height:14px; font-family:굴림; ">간호필요도 현황 조회</caption>
- <group id="grp_sea" style="left:0px; top:20px; width:1194px; height:40px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:40px; "/>
- <button id="btn_ref" class="btn1_letter2" navindex="7" style="left:1065px; top:11px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch() ;
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:215px; top:11px; width:69px; height:17px; font-family:굴림; ">일 자 :</caption>
- <line id="line2" class="line_4" style="x1:1055px; y1:10px; x2:1055px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" navindex="2" inputtype="date" style="left:284px; top:11px; width:95px; height:19px; font-family:굴림; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fSearch();
- ]]>
- </script>
- </input>
- <caption id="caption29" class="search_name" style="left:10px; top:11px; width:67px; height:17px; font-family:굴림; ">부 서 :</caption>
- <select1 id="cmb_deptcd" ref="/root/main/cond/deptcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:80px; top:11px; width:125px; height:19px; font-family:굴림; ">
- <choices>
- <!--
- <itemset nodeset="/root/init/deptinfo/deptlist">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- -->
- <itemset nodeset="/root/init/ward/">
- <label ref="wardnm"/>
- <value ref="wardcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </select1>
- <button id="button2" class="btn1_letter2" navindex="8" style="left:1128px; top:11px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sTitle = "중증도 및 간호필요도_" + ipt_fromdd.value;
- //grd_kpcsinfo.colwidth(3)=70;
-
- var fileName = window.fileDialog("save", ",", false, sTitle, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- grd_kpcsinfo_excel.saveExcel(fileName, sTitle, true, true, "", "", true);
- //grd_kpcsinfo.saveExcel(fileName, "sheetname:SheetName; colhiddenextend:false; rowhiddenextend:false; col_8:value;");
- }
-
- //grd_kpcsinfo.colwidth(3)=0;
- ]]>
- </script>
- </button>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" navindex="2" visibility="hidden" inputtype="date" style="left:394px; top:11px; width:95px; height:19px; font-family:굴림; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fSearch();
- ]]>
- </script>
- </input>
- <caption id="caption4" visibility="hidden" style="left:377px; top:12px; width:20px; height:15px; font-family:굴림; text-align:center; ">~</caption>
- <bool id="bol_authflag" visibility="hidden" checkvalue="Y,N" ref="/root/main/cond/authflag" style="left:520px; top:10px; width:35px; height:20px; "/>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:63px; x2:1194px; y2:63px; "/>
- <datagrid id="grd_kpcsinfo" nodeset="/root/main/kpcsinfo/kpcslist" class="datagrid2" caption="no^일자^병동^병실^성명^등록번호^생년월일^성별^나이^진단명^V/S
측정^I/O
측정^계속
적인
감시^산소
포화도
측정^흡입
간호^정맥
내
투약^기타
투약^배액
관
보유^억제대
적용및
관리^전문
치료
수행^ADL
체위
변경^ADL
이동^ADL
식사
섭취^ADL
배변^수술
여부^병실
종류^낙상
발생
장소^욕창
단계^HD^입원일자|no^일자^병동^병실^성명^등록번호^생년월일^성별^나이^진단명^V/S
측정^I/O
측정^계속
적인
감시^산소
포화도
측정^흡입
간호^정맥
내
투약^기타
투약^배액
관
보유^억제대
적용및
관리^전문
치료
수행^ADL
체위
변경^ADL
이동^ADL
식사
섭취^ADL
배변^수술
여부^병실
종류^낙상
발생
장소^욕창
단계^HD^입원일자" colsep="^" colwidth="0, 70, 0, 45, 70, 70, 80, 35, 35, 65, 37, 37, 37, 45, 37, 37, 37, 37, 45, 37, 37, 37, 37, 37, 37, 37, 37, 37, 50, 80" explorerbar="sort" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:68px; width:1194px; height:692px; ">
- <col ref="callno"/>
- <col ref="basedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="wardnm" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="brthdd" style="text-align:center; "/>
- <col disabled="true" ref="sex" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>남자</label>
- <value>1</value>
- </item>
- <item>
- <label>여자</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="age" style="text-align:center; "/>
- <col ref="diagcd" style="text-align:center; "/>
- <col ref="item01" style="text-align:center; "/>
- <col ref="item02" style="text-align:center; "/>
- <col ref="item03" style="text-align:center; "/>
- <col ref="item04" style="text-align:center; "/>
- <col ref="item05" style="text-align:center; "/>
- <col ref="item06" style="text-align:center; "/>
- <col ref="item07" style="text-align:center; "/>
- <col ref="item08" style="text-align:center; "/>
- <col ref="item09" style="text-align:center; "/>
- <col ref="item10" style="text-align:center; "/>
- <col ref="item11" style="text-align:center; "/>
- <col ref="item12" style="text-align:center; "/>
- <col ref="item13" style="text-align:center; "/>
- <col ref="item14" style="text-align:center; "/>
- <col ref="item15" style="text-align:center; "/>
- <col ref="item16" style="text-align:center; "/>
- <col ref="item17" style="text-align:center; "/>
- <col ref="item18" style="text-align:center; "/>
- <col ref="hd" visibility="hidden" style="text-align:center; "/>
- <col ref="indd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_kpcsinfo.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_kpcsinfo_excel" nodeset="/root/main/kpcsinfo/kpcslist" class="datagrid2" visibility="hidden" caption="요양기관기호^종별^병동코드^작성일자^연번^환자등록번호^생년월일^성별^진단명^V/S 7회이상^I/O 4회이상^계속적인감시^산소포화도 측정 6회이상^흡입간호 기관내^정맥내투약 6회이상^기타투약 6회이상^배액관보유 2개이상^신체보호대적용및관리^전문치료수행 7개중 1개이상^ADL체위변경^ADL이동^ADL식사섭취^ADL배변^수술여부^병실종류^낙상발생장소^욕창단계" colsep="^" colwidth="100, 48, 71, 100, 65, 80, 80, 35, 65, 104, 93, 87, 166, 114, 126, 121, 121, 133, 159, 123, 120, 123, 125, 76, 77, 76, 77" explorerbar="sort" rowsep="|" style="left:20px; top:160px; width:1025px; height:447px; ">
- <col ref="instcdcode" style="text-align:center; "/>
- <col ref="kindcd" style="text-align:center; "/>
- <col ref="wardcdcode" style="text-align:center; "/>
- <col ref="basedd"/>
- <col ref="seq" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="brthdd" style="text-align:center; "/>
- <col disabled="true" ref="sex" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>남자</label>
- <value>1</value>
- </item>
- <item>
- <label>여자</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="diagcd" style="text-align:center; "/>
- <col ref="item01" style="text-align:center; "/>
- <col ref="item02" style="text-align:center; "/>
- <col ref="item03" style="text-align:center; "/>
- <col ref="item04" style="text-align:center; "/>
- <col ref="item05" style="text-align:center; "/>
- <col ref="item06" style="text-align:center; "/>
- <col ref="item07" style="text-align:center; "/>
- <col ref="item08" style="text-align:center; "/>
- <col ref="item09" style="text-align:center; "/>
- <col ref="item10" style="text-align:center; "/>
- <col ref="item11" style="text-align:center; "/>
- <col ref="item12" style="text-align:center; "/>
- <col ref="item13" style="text-align:center; "/>
- <col ref="item14" style="text-align:center; "/>
- <col ref="item15" style="text-align:center; "/>
- <col ref="item16" style="text-align:center; "/>
- <col ref="item17" style="text-align:center; "/>
- <col ref="item18" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_kpcsinfo.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|