123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837 |
- <?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>
- <cond>
- <wardcd/>
- <orddd/>
- <settingrnid/>
- <userid/>
- <usernm/>
- <bforddd/>
- <indschacptstat/>
- </cond>
- <count>
- <total/>
- </count>
- <orddeptcaseinfo>
- </orddeptcaseinfo>
- <wardbizinfo>
- <wardbizpatlist>
- <roomcd/>
- <vipyn/>
- <rqstyn/>
- <spcffactyn/>
- <clincstdyyn/>
- <cpyn/>
- <blodprepyn/>
- <pid/>
- <chngroomstat/>
- <indschstat/>
- <patnm/>
- <sexage/>
- <orddeptnm/>
- <subdeptnm/>
- <coopteamnm/>
- <medispclnm/>
- <atdoctnm/>
- <hd/>
- <diag/>
- <infcyn/>
- <serdiaggrde/>
- <dngrases/>
- <opflag/>
- <optime/>
- <opnm/>
- <pod/>
- <tnssche/>
- <anticncrd/>
- <anticncrprtl/>
- <specrsrv/>
- </wardbizpatlist>
- <wardbizdeptunitcnt>
- <orddeptnm/>
- <sex/>
- <patcnt/>
- </wardbizdeptunitcnt>
- </wardbizinfo>
- </main>
- <send>
- </send>
- <init>
- <ward>
- <wardcd/>
- <wardnm/>
- </ward>
- <dept>
- <deptcd/>
- <depthngnm/>
- </dept>
- <settingrn>
- <settingrnid/>
- <settingrnnm/>
- </settingrn>
- <wardprescondinfo>
- <wardprescond>
- <kind1/>
- <kind2/>
- <kind3/>
- <kind4/>
- <kind5/>
- <kind6/>
- <preinhospcnt/>
- <inhospcnt/>
- <useroom/>
- </wardprescond>
- </wardprescondinfo>
- </init>
- <hidden>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //그리드 초기화
- model.toggle("case_dscht");
-
- //오늘 날짜로 초기화 하는 부분.(진료일자를 default로 오늘 날짜로 선택함)
- model.setValue("/root/main/cond/userid", getUserId());
- model.setValue("/root/main/cond/usernm", getUserName());
- model.setValue("/root/main/cond/settingrnid", "");
- model.setValue("/root/main/cond/indschacptstat", "1");
- model.setValue("/root/main/cond/wardcd", getUserInfo("dutplcecd"));
- model.setValue("/root/main/cond/orddd", getCurrentDate());
- model.setValue("/root/main/cond/bforddd", getCurrentDate());
-
- model.removenode("/root/send");
- model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
- submit("TRMNW00101", false);
-
- model.setValue("/root/main/cond/settingrnid", "");
- for(i=1; i <= getNodesetCount("/root/init/settingrn");i++ ) {
- if (model.getValue("/root/main/cond/userid") == model.getValue("/root/init/settingrn["+ i +"]/settingrnid")) {
- model.setValue("/root/main/cond/settingrnid", model.getValue("/root/main/cond/userid"));
- }
- }
-
- // 간호하드코딩 테이블 조회_20090416(ByJA)
- var pCode = "'002'"; // 조회할 CdGrupID 코드정보
- var pDate = getCurrentDate(); //조회기준일자
- fGetNursHardCdInfo(pCode, pDate);
-
- for(var i=1; i<=getNodesetCount("/root/code/codeinfo/codelist"); i++){
- switch (model.getValue("/root/code/codeinfo/codelist["+i+"]/cdgrupid")){
- case "002": // 응급의료센터
- erdeptcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- }
- }
-
- model.removenode("/root/init/ward[wardcd = '"+erdeptcd+"']"); // 응급의료센터 제외
-
- model.refresh();
- //그리드 조회
- //fGetWardBizListInfo();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var xPathDschtList = "/root/main/wardbizinfo/pseudodschlist";
- var xPathDschdList = "/root/main/wardbizinfo/dschlist";
- var xPathInList = "/root/main/wardbizinfo/inlist";
- var xPathCrinList = "/root/main/wardbizinfo/crinlist";
- var xPathCroutList = "/root/main/wardbizinfo/croutlist";
- var xPathTransList = "/root/main/wardbizinfo/translist";
- var xPathDethList = "/root/main/wardbizinfo/dethlist";
-
- var erdeptcd;
-
- //탭별환자리스트
- //현재일자 조회시에는 실시간으로 update 되고 전일조회시에는 고정된 전일 환자리스트가 조회 20081223 김홍점 1121 김숙인itc 요구사항에 의한 추가
- function fSelectTab(pFlag, destObj) {
- var srcNodeList = "";
- var destNodeList = "";
- var destObj;
- if ( model.getValue("/root/main/cond/orddd") == getCurrentDate() && !isNull(cmb_wardcd.label) ){
- if ( pFlag == "dscht" ){
- srcNodeList = "/root/hidden/wardbizinfo/pseudodschlist";
- destNodeList = xPathDschtList;
- //destObj = grd_dschtlist;
-
- model.removeNodeset(xPathDschtList);
-
- } else if ( pFlag == "dschd" ){
- srcNodeList = "/root/hidden/wardbizinfo/dschlist";
- destNodeList = xPathDschdList;
- //destObj = grd_dschdlist;
-
- model.removeNodeset(xPathDschdList);
-
- } else if ( pFlag == "in" ){
- srcNodeList = "/root/hidden/wardbizinfo/inlist";
- destNodeList = xPathInList;
- //destObj = grd_inlist;
-
- model.removeNodeset(xPathInList);
-
- } else if ( pFlag == "crin" ){
- srcNodeList = "/root/hidden/wardbizinfo/crinlist";
- destNodeList = xPathCrinList;
- //destObj = grd_crinlist;
-
- model.removeNodeset(xPathCrinList);
-
- } else if ( pFlag == "crout" ){
- srcNodeList = "/root/hidden/wardbizinfo/croutlist";
- destNodeList = xPathCroutList;
- //destObj = grd_croutlist;
-
- model.removeNodeset(xPathCroutList);
-
- } else if ( pFlag == "trans" ){
- srcNodeList = "/root/hidden/wardbizinfo/translist";
- destNodeList = xPathTransList;
- //destObj = grd_translist;
-
- model.removeNodeset(xPathTransList);
-
- } else if ( pFlag == "deth" ){
- srcNodeList = "/root/hidden/wardbizinfo/dethlist";
- destNodeList = xPathDethList;
- //destObj = grd_dethlist;
-
- model.removeNodeset(xPathDethList);
-
- }
-
- model.removenode("/root/send");
- model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
- model.makeValue("/root/send/orddd", model.getValue("/root/main/cond/orddd"));
- model.makeValue("/root/send/settingrnid", model.getValue("/root/main/cond/settingrnid"));
- model.makeValue("/root/send/srchflag", pFlag);
-
- if (submit("TRMNW05502") ){
- if( getNodesetCount(srcNodeList) > 0 ){
- model.makeNode(destNodeList);
- copyNodesetType(destNodeList, srcNodeList, "replace", model, model);
-
- }
- }
- }
- destObj.refresh();
- }
- //조회부 count
- function fGetWardBizPrescond() {
- model.removenode("/root/send");
- model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
- model.makeValue("/root/send/orddd", model.getValue("/root/main/cond/orddd"));
- model.makeValue("/root/send/preorddd", getCurrentDate().toDate().getAddDate(-1, "D").getDateFormat());
- submit("TRMNW00104");
- }
-
- //같은 환자의 일치하는 정보 white로 font color 세팅
- function fSetFontColor(){
- grd_wardbizpatlist.refresh();
- var xWardPatListPath = "/root/main/wardbizinfo/wardbizpatlist";
- var patCnt = getNodesetCount(xWardPatListPath);
- var pid = "";
- var nextPid = "";
- var blodprep ="";
- for ( var idx = 1 ; idx <= patCnt ; idx++){
- pid = model.getValue(xWardPatListPath + "[" + idx + "]/pid");
-
- nextPid = model.getValue(xWardPatListPath + "[" + (idx+1) + "]/pid");
- blodprep = model.getValue(xWardPatListPath + "[" + (idx+1) + "]/blodprepyn");
-
- if ( pid == nextPid ){//fixedrow 가 2 이므로 데이타로우의 그리드인덱스는 2부터 시작한다.그러므로 nextPid의 인덱스에 1을 더해준다.욕창까지 하얀색
- grd_wardbizpatlist.cellStyle("color", (idx+1)+1, grd_wardbizpatlist.colRef("roomcd"), (idx+1)+1, grd_wardbizpatlist.colRef("bedsore")) = "white";
- grd_wardbizpatlist.cellStyle("color", (idx+1)+1, grd_wardbizpatlist.colRef("anticncrd"), (idx+1)+1, grd_wardbizpatlist.colRef("specrsrv")) = "white";
- } else {
- grd_wardbizpatlist.cellStyle("color", (idx+1)+1, grd_wardbizpatlist.colRef("roomcd") , (idx+1)+1 , grd_wardbizpatlist.colRef("bedsore")) = "black";
- grd_wardbizpatlist.cellStyle("color", (idx+1)+1, grd_wardbizpatlist.colRef("anticncrd") , (idx+1)+1 , grd_wardbizpatlist.colRef("specrsrv")) = "black";
-
- if (blodprep == "Y") {
- grd_wardbizpatlist.cellstyle("background-image", (idx+1)+1, grd_wardbizpatlist.colRef("blodprep") ) = "../../../emr/commonweb/images/blood.gif";
- } else {
- grd_wardbizpatlist.cellstyle("background-image", (idx+1)+1 , grd_wardbizpatlist.colRef("blodprep")) = "";
- }
- }
- }
- }
-
- //조회(과별현황정보, 가퇴원, 사망, 메인 그리드 조회)
- function fGetWardBizListInfo() {
- if (model.getValue("/root/main/cond/orddd") > getCurrentDate()) {
- messageBox("해당 업무일자로 조회할 수", "I004");
- model.setValue("/root/main/cond/orddd", model.getValue("/root/main/cond/bforddd"));
- model.refresh();
- return;
- } else {
- model.setValue("/root/main/cond/bforddd", model.getValue("/root/main/cond/orddd"));
- }
-
- fGetWardBizPrescond(); //조회부 count
-
- model.removenode("/root/send");
- model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
- model.makeValue("/root/send/orddd", model.getValue("/root/main/cond/orddd"));
- model.makeValue("/root/send/settingrnid", model.getValue("/root/main/cond/settingrnid"));
- model.makeValue("/root/send/indschacptstat", model.getValue("/root/main/cond/indschacptstat"));
- model.makeValue("/root/send/srchflag", "all");
- submit("TRMNW05501", false);
- fSetFontColor();
-
- //과별현황 셋팅
- var cols = grd_prescond.cols-grd_prescond.fixedCols;
- var rows = grd_prescond.rows-grd_prescond.fixedRows;
- for( var i = grd_prescond.cols; i >= grd_prescond.fixedCols; i-- ) {
- grd_prescond.deleteColumn(i,"false");
- }
- model.removeNodeset("/root/main/wardbizinfo/orddeptcaselist");
- grd_prescond.caption = "진료과";
- var caption =grd_prescond.caption;
-
- if(getNodesetCount("/root/main/wardbizinfo/wardbizdeptunitcnt") > 0) {
- if(grd_prescond.rows-grd_prescond.fixedRows < 3) {
- grd_prescond.addRow(false);
- grd_prescond.addRow(false);
- grd_prescond.addRow(false);
-
- grd_prescond.valueMatrix(1,0) = "M";
- grd_prescond.valueMatrix(2,0) = "F";
- grd_prescond.valueMatrix(3,0) = "Total";
- }
-
- var tempdeptnm = "";
- var deptnm ="";
- var sex ="";
- var patcnt ="";
-
- for(i=1; i <= getNodesetCount("/root/main/wardbizinfo/wardbizdeptunitcnt"); i++ ) {
- deptnm = model.getValue("/root/main/wardbizinfo/wardbizdeptunitcnt["+ i +"]/orddeptnm");
- sex = model.getValue("/root/main/wardbizinfo/wardbizdeptunitcnt["+ i +"]/sex");
- patcnt = model.getValue("/root/main/wardbizinfo/wardbizdeptunitcnt["+ i +"]/patcnt");
- if(deptnm != tempdeptnm ) {
- grd_prescond.addColumn("ref:"+ deptnm +"; type:output;text-align:center;", false);
- caption = caption + "^"+ deptnm;
- grd_prescond.valueMatrix(1, grd_prescond.cols-1) = "0";
- grd_prescond.valueMatrix(2, grd_prescond.cols-1) = "0";
-
- tempdeptnm = deptnm;
- }
-
- if (sex == "M") {
- grd_prescond.valueMatrix(1, grd_prescond.cols-1) = patcnt;
- } else {
- grd_prescond.valueMatrix(2, grd_prescond.cols-1) = patcnt;
- }
- grd_prescond.valueMatrix(3, grd_prescond.cols-1) = parseInt(grd_prescond.valueMatrix(1, grd_prescond.cols-1)) + parseInt(grd_prescond.valueMatrix(2, grd_prescond.cols-1));
- }
- //total
- grd_prescond.addColumn("ref: total; type:output;text-align:center;", false);
- caption = caption + "^"+ "Total";
- var patcnt_M = 0;
- var patcnt_F = 0;
- var total_M = 0;
- var total_F = 0;
- var total_sub = 0;
- var total_sum = 0;
-
- for(i=1; i <= grd_prescond.cols-2; i++ ) {
- patcnt_M = parseInt(grd_prescond.valueMatrix(1, i));
- patcnt_F = parseInt(grd_prescond.valueMatrix(2, i));
- total_sub = parseInt(grd_prescond.valueMatrix(3, i));
-
- total_M = total_M + patcnt_M;
- total_F = total_F + patcnt_F;
- total_sum = total_sum + total_sub;
- }
-
- grd_prescond.valueMatrix(1, grd_prescond.cols-1) = total_M;
- grd_prescond.valueMatrix(2, grd_prescond.cols-1) = total_F;
- grd_prescond.valueMatrix(3, grd_prescond.cols-1) = total_sum;
-
- grd_prescond.colWidthMax = "60";
- grd_prescond.caption = caption;
- // grd_prescond.refresh();
-
- }
- // grd_dschtlist.refresh();
- // grd_inlist.refresh();
- // grd_crinlist.refresh();
- // grd_croutlist.refresh();
- // grd_dethlist.refresh();
- // grd_dschdlist.refresh();
- // grd_translist.refresh();
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <submission id="TRMNW00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
- <submission id="TRMNW00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/wardprescondinfo"/>
- <submission id="TRMNW05501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/wardbizinfo"/>
- <submission id="TRMNW05502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/wardbizinfo"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1196;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:257px; height:14px; ">병동업무관리</caption>
- </group>
- <group id="group5" style="left:0px; top:13px; width:1195px; height:744px; ">
- <!--(20101206) 경북대
- <datagrid id="grd_wardbizpatlist" nodeset="/root/main/wardbizinfo/wardbizpatlist" allowselection="false" caption="병실^특이^특이^특이^IRB
CP
DRG^IRB
CP
DRG^IRB
CP
DRG^등록번호^재원
상태^재원
상태^환자명^S/A^진료과^세부진료과^협진팀^주치의^담당의^HD^ICU^진단명^감염^중증도^낙상^욕창^수술정보^수술정보^수술정보^수술정보^항암정보^항암정보^검사|병실^특이^특이^특이^IRB
CP
DRG^IRB
CP
DRG^IRB
CP
DRG^등록번호^재원
상태^재원
상태^환자명^S/A^진료과^세부진료과^협진팀^주치의^담당의^HD^ICU^진단명^감염^중증도^낙상^욕창^구분^Time^수술명^POD^D^Protocol^검사" colsep="^" colwidth="49, 15, 15, 18, 15, 15, 20, 55, 22, 18, 60, 43, 90, 71, 71, 52, 45, 31, 40, 218, 38, 47, 58, 61, 39, 43, 78, 31, 25, 65, 85" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:225px; width:1194px; height:480px; ">
- -->
- <datagrid id="grd_wardbizpatlist" nodeset="/root/main/wardbizinfo/wardbizpatlist" allowselection="false" caption="병실^특이^특이^특이^IRB
CP
DRG^IRB
CP
DRG^IRB
CP
DRG^등록번호^재원
상태^재원
상태^환자명^S/A^진료과^세부진료과^협진팀^전문의^담당의^HD^ICU^진단명^감염^중증도^낙상^욕창^수술정보^수술정보^수술정보^수술정보^항암정보^항암정보^검사|병실^특이^특이^특이^IRB
CP
DRG^IRB
CP
DRG^IRB
CP
DRG^등록번호^재원
상태^재원
상태^환자명^S/A^진료과^세부진료과^협진팀^전문의^담당의^HD^ICU^진단명^감염^중증도^낙상^욕창^구분^Time^수술명^POD^D^Protocol^검사" colsep="^" colwidth="49, 15, 15, 18, 15, 15, 20, 55, 22, 18, 60, 43, 90, 71, 71, 52, 45, 31, 40, 218, 38, 47, 58, 61, 39, 43, 78, 31, 25, 65, 85" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:225px; width:1194px; height:480px; ">
- <!--(20101206) 경북대 -->
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="vipyn" style="text-align:center; "/>
- <col ref="rqstyn" style="text-align:center; "/>
- <col ref="spcffactyn" style="text-align:center; "/>
- <col ref="clincstdyyn" style="text-align:center; "/>
- <col ref="cpyn" style="text-align:center; "/>
- <col ref="blodprep" style="text-align:center; vertical-align:middle; background-position:center; "/>
- <col ref="pid" style="text-align:left; "/>
- <col ref="chngroomstat" style="text-align:center; border-right-width:0; "/>
- <col ref="indschstat" style="border-left-width:0; "/>
- <col ref="patnm" style="text-align:left; "/>
- <col ref="sexage" style="text-align:left; "/>
- <col ref="orddeptnm" style="text-align:left; "/>
- <col ref="subdeptnm" style="text-align:left; "/>
- <col ref="coopteamnm" style="text-align:left; "/>
- <col ref="medispclnm" style="text-align:left; "/>
- <col ref="atdoctnm" style="text-align:left; "/>
- <col ref="hd" style="text-align:right; "/>
- <col ref="icu" style="text-align:right; "/>
- <col ref="diag"/>
- <col ref="infcyn"/>
- <col ref="serdiaggrde" style="text-align:center; "/>
- <col ref="dngrases"/>
- <col ref="bedsore"/>
- <col ref="opflag"/>
- <col ref="optime"/>
- <col ref="opnm"/>
- <col ref="pod" style="text-align:right; "/>
- <col ref="anticncrd"/>
- <col ref="anticncrprtl"/>
- <col ref="specrsrv"/>
- </datagrid>
- <button id="btn_close" class="btn5_letter4" visibility="hidden" style="left:1127px; top:75px; width:64px; height:19px; ">
- <caption>축소하기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- btn_open.visible = true;
- btn_close.visible = false;
-
- swt_patinfo.attribute("style") = "left:715px; top:102px; width:480px; height:117px; " ;
- grd_dschtlist.attribute("style")="left:0px; top:0px; width:478px; height:115px; " ;
- grd_dschdlist.attribute("style")="left:0px; top:0px; width:478px; height:115px; " ;
- grd_inlist.attribute("style")="left:0px; top:0px; width:478px; height:115px; " ;
- grd_crinlist.attribute("style")="left:0px; top:0px; width:478px; height:115px; " ;
- grd_croutlist.attribute("style")="left:0px; top:0px; width:478px; height:115px; " ;
- grd_translist.attribute("style")="left:0px; top:0px; width:478px; height:115px; " ;
- grd_dethlist.attribute("style")="left:0px; top:0px; width:478px; height:115px; " ;
- ]]>
- </script>
- </button>
- <button id="btn_open" class="btn5_letter4" style="left:1127px; top:75px; width:64px; height:19px; ">
- <caption>확대하기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- btn_open.visible = false;
- btn_close.visible = true;
-
- swt_patinfo.attribute("style") = "left:715px; top:102px; width:480px; height:630px; " ;
- grd_dschtlist.attribute("style")="left:0px; top:0px; width:478px; height:628px; " ;
- grd_dschdlist.attribute("style")="left:0px; top:0px; width:478px; height:628px; " ;
- grd_inlist.attribute("style")="left:0px; top:0px; width:478px; height:628px; " ;
- grd_crinlist.attribute("style")="left:0px; top:0px; width:478px; height:628px; " ;
- grd_croutlist.attribute("style")="left:0px; top:0px; width:478px; height:628px; " ;
- grd_translist.attribute("style")="left:0px; top:0px; width:478px; height:628px; " ;
- grd_dethlist.attribute("style")="left:0px; top:0px; width:478px; height:628px; " ;
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line4" class="line_1" style="x1:0px; y1:97px; x2:715px; y2:97px; "/>
- <caption id="caption4" class="tit_2" style="left:5px; top:82px; width:78px; height:13px; ">과별현황</caption>
- <datagrid id="grd_prescond" nodeset="/root/main/orddeptcaseinfo/orddeptcaselist" allowselection="false" caption="진료과" colsep="^" colwidth="60" ellipsis="true" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:102px; width:715px; height:117px; ">
- <col ref="진료과"/>
- </datagrid>
- <line id="line6" class="line_1" style="x1:0px; y1:221px; x2:1195px; y2:222px; "/>
- <switch id="swt_patinfo" selected="true" style="left:715px; top:102px; width:480px; height:117px; ">
- <case id="case_deth">
- <datagrid id="grd_dethlist" nodeset="/root/main/wardbizinfo/dethlist" allowselection="false" caption="사망시간^병실^환자명^S/A" colsep="^" colwidth="88, 79, 107, 61" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:478px; height:115px; ">
- <col ref="dethtm" format="hh:nn" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="sexage" style="text-align:center; "/>
- </datagrid>
- </case>
- <case id="case_in">
- <!--(20101206) 경북대
- <datagrid id="grd_inlist" nodeset="/root/main/wardbizinfo/inlist" class="datagrid2" caption="입실
확인^병실^등록번호^환자명^S-A^진료과^주치의^구분" colsep="^" colwidth="39, 54, 58, 49, 43, 90, 55, 66" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:478px; height:115px; ">
- -->
- <datagrid id="grd_inlist" nodeset="/root/main/wardbizinfo/inlist" class="datagrid2" caption="입실
확인^병실^등록번호^환자명^S-A^진료과^전문의^구분" colsep="^" colwidth="39, 54, 58, 49, 43, 90, 55, 66" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:478px; height:115px; ">
- <!--(20101206) 경북대 -->
- <col checkvalue="Y,N" disabled="true" ref="careinroomcfm" type="checkbox"/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="sexage" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:left; "/>
- <col ref="medispclnm" style="text-align:left; "/>
- <col ref="inpath" style="text-align:left; "/>
- </datagrid>
- </case>
- <case id="case_dscht" selected="true">
- <datagrid id="grd_dschtlist" nodeset="/root/main/wardbizinfo/pseudodschlist" allowselection="false" caption="퇴원일자^퇴원병실^환자명^등록번호^S/A" colsep="^" colwidth="104, 56, 75, 74, 56" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:478px; height:115px; ">
- <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="sexage" style="text-align:center; "/>
- </datagrid>
- </case>
- <case id="case_crin">
- <!--(20101206) 경북대
- <datagrid id="grd_crinlist" nodeset="/root/main/wardbizinfo/crinlist" caption="병실^등록번호^환자명^S-A^진료과^주치의^이실" colsep="^" colwidth="52, 56, 60, 42, 90, 56, 103" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:478px; height:115px; ">
- -->
- <datagrid id="grd_crinlist" nodeset="/root/main/wardbizinfo/crinlist" caption="병실^등록번호^환자명^S-A^진료과^주치의^이실" colsep="^" colwidth="52, 56, 60, 42, 90, 56, 103" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:478px; height:115px; ">
- <!--(20101206) 경북대 -->
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="sexage" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:left; "/>
- <col ref="medispclnm" style="text-align:left; "/>
- <col ref="crinfo" style="text-align:left; "/>
- </datagrid>
- </case>
- <case id="case_crout">
- <!--(20101206) 경북대
- <datagrid id="grd_croutlist" nodeset="/root/main/wardbizinfo/croutlist" caption="병실^등록번호^환자명^S-A^진료과^주치의^이실" colsep="^" colwidth="51, 56, 60, 42, 90, 56, 101" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:478px; height:115px; ">
- -->
- <datagrid id="grd_croutlist" nodeset="/root/main/wardbizinfo/croutlist" caption="병실^등록번호^환자명^S-A^진료과^주치의^이실" colsep="^" colwidth="51, 56, 60, 42, 90, 56, 101" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:478px; height:115px; ">
- <!--(20101206) 경북대 -->
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="sexage" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:left; "/>
- <col ref="medispclnm" style="text-align:left; "/>
- <col ref="crinfo" style="text-align:left; "/>
- </datagrid>
- </case>
- <case id="case_dschd">
- <!--(20101206) 경북대
- <datagrid id="grd_dschdlist" nodeset="/root/main/wardbizinfo/dschlist" caption="병실^등록번호^환자명^S-A^진료과^주치의" colsep="^" colwidth="56, 73, 81, 43, 100, 72" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:478px; height:115px; ">
- -->
- <datagrid id="grd_dschdlist" nodeset="/root/main/wardbizinfo/dschlist" caption="병실^등록번호^환자명^S-A^진료과^주치의" colsep="^" colwidth="56, 73, 81, 43, 100, 72" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:478px; height:115px; ">
- <!--(20101206) 경북대 -->
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="sexage" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:left; "/>
- <col ref="medispclnm" style="text-align:left; "/>
- </datagrid>
- </case>
- <case id="case_trans">
- <datagrid id="grd_translist" nodeset="/root/main/wardbizinfo/translist" caption="병실^등록번호^환자명^S-A^전과" colsep="^" colwidth="62, 73, 81, 43, 176" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:478px; height:115px; ">
- <col ref="roomcd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="patnm" style="text-align:center; "/>
- <col ref="sexage" style="text-align:center; "/>
- <col ref="transinfo" style="text-align:left; "/>
- </datagrid>
- </case>
- </switch>
- <button id="btn_dscht" class="btn_sw" group="tab" selected="true" style="left:717px; top:74px; width:110px; height:22px; ">
- <caption>가퇴원(보관퇴원)</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSelectTab("dscht",grd_dschtlist);
- model.toggle("case_dscht");
- case_dscht.selected= "true";
- ]]>
- </script>
- <!--toggle case="case_dscht" ev:event="onclick"/-->
- </button>
- <button id="btn_deth" class="btn_sw" group="tab" style="left:1037px; top:74px; width:40px; height:22px; ">
- <caption>사망</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSelectTab("deth",grd_dethlist);
- model.toggle("case_deth");
- case_deth.selected= "true";
- ]]>
- </script>
- <!--toggle case="case_deth" ev:event="onclick"/-->
- </button>
- <button id="btn_in" class="btn_sw" group="tab" style="left:827px; top:74px; width:40px; height:22px; ">
- <caption>입원</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSelectTab("in",grd_inlist);
- model.toggle("case_in");
- case_in.selected= "true";
-
- ]]>
- </script>
- <!--toggle case="case_in" ev:event="onclick"/-->
- </button>
- <button id="btn_dschd" class="btn_sw" group="tab" style="left:867px; top:74px; width:40px; height:22px; ">
- <caption>퇴원</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSelectTab("dschd", grd_dschdlist);
- model.toggle("case_dschd");
- case_dschd.selected= "true";
-
- ]]>
- </script>
- <!--toggle case="case_dschd" ev:event="onclick"/-->
- </button>
- <button id="btn_crin" class="btn_sw" group="tab" style="left:907px; top:74px; width:45px; height:22px; ">
- <caption>+전실</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSelectTab("crin", grd_crinlist);
- model.toggle("case_crin");
- case_crin.selected= "true";
-
- ]]>
- </script>
- <!--toggle case="case_crin" ev:event="onclick"/-->
- </button>
- <button id="btn_crout" class="btn_sw" group="tab" style="left:952px; top:74px; width:45px; height:22px; ">
- <caption>-전실</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSelectTab("crout" , grd_croutlist);
- model.toggle("case_crout");
- case_crout.selected= "true";
- ]]>
- </script>
- <!--toggle case="case_crout" ev:event="onclick"/-->
- </button>
- <button id="btn_trans" class="btn_sw" group="tab" style="left:997px; top:74px; width:40px; height:22px; ">
- <caption>전과</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSelectTab("trans", grd_translist);
- model.toggle("case_trans");
- case_trans.selected= "true";
- ]]>
- </script>
- <!--toggle case="case_trans" ev:event="onclick"/-->
- </button>
- <line id="line2" class="line_1" style="x1:717px; y1:97px; x2:1195px; y2:97px; "/>
- <group id="group2" style="left:0px; top:10px; width:1194px; height:55px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
- <select1 id="cmb_wardcd" ref="/root/main/cond/wardcd" class="combo_s_essential" appearance="minimal" style="left:61px; top:8px; width:139px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ward/">
- <label ref="wardnm"/>
- <value ref="wardcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removenode("/root/send");
- model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
-
- submit("TRMNW00101");
- model.removenode("/root/init/ward[wardcd = '"+erdeptcd+"']"); // 응급의료센터 제외
- model.setValue("/root/main/cond/settingrnid", "");
- for(i = 1; i <= getNodesetCount("/root/init/settingrn"); i++ ) {
- if (model.getValue("/root/main/cond/userid") == model.getValue("/root/init/settingrn["+ i +"]/settingrnid")) {
- model.setValue("/root/main/cond/settingrnid", model.getValue("/root/main/cond/userid"));
- }
- }
-
- //fGetWardBizListInfo();
- ]]>
- </script>
- </select1>
- <caption id="caption12" class="search_name" style="left:203px; top:9px; width:90px; height:17px; ">업무일자:</caption>
- <select1 id="combo3" ref="/root/main/cond/settingrnid" class="combo_search" appearance="minimal" style="left:450px; top:8px; width:75px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/settingrn">
- <label ref="settingrnnm"/>
- <value ref="settingrnid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fGetWardBizListInfo();
- ]]>
- </script>
- </select1>
- <caption id="caption8" class="search_name" style="left:5px; top:9px; width:60px; height:17px; ">병동:</caption>
- <input id="input4" ref="/root/main/cond/orddd" class="input_s_essential" inputtype="date" style="left:285px; top:8px; width:95px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fGetWardBizListInfo();
- ]]>
- </script>
- </input>
- <caption id="caption9" class="search_name" style="left:382px; top:9px; width:75px; height:17px; ">내환자:</caption>
- <output id="output31" ref="/root/init/wardprescondinfo/wardprescond/kind1" style="left:47px; top:30px; width:19px; height:19px; text-align:right; "/>
- <output id="output32" ref="/root/init/wardprescondinfo/wardprescond/kind2" style="left:91px; top:30px; width:19px; height:19px; text-align:right; "/>
- <output id="output33" ref="/root/init/wardprescondinfo/wardprescond/kind3" style="left:135px; top:30px; width:19px; height:19px; text-align:right; "/>
- <output id="output34" ref="/root/init/wardprescondinfo/wardprescond/kind4" style="left:179px; top:30px; width:19px; height:19px; text-align:right; "/>
- <output id="output35" ref="/root/init/wardprescondinfo/wardprescond/kind5" style="left:223px; top:30px; width:19px; height:19px; text-align:right; "/>
- <output id="output36" ref="/root/init/wardprescondinfo/wardprescond/kind6" style="left:267px; top:30px; width:19px; height:19px; text-align:right; "/>
- <output id="output38" ref="/root/init/wardprescondinfo/wardprescond/preinhospcnt" style="left:328px; top:30px; width:29px; height:19px; font-weight:bold; text-align:right; "/>
- <output id="output37" ref="/root/init/wardprescondinfo/wardprescond/inhospcnt" style="left:400px; top:30px; width:29px; height:19px; font-weight:bold; text-align:right; "/>
- <caption id="caption59" class="cell_1" style="left:22px; top:31px; width:25px; height:18px; vertical-align:middle; ">1군</caption>
- <caption id="caption66" class="cell_1" style="left:66px; top:31px; width:25px; height:18px; vertical-align:middle; ">2군</caption>
- <caption id="caption57" class="cell_1" style="left:110px; top:31px; width:25px; height:18px; vertical-align:middle; ">3군</caption>
- <caption id="caption58" class="cell_1" style="left:154px; top:31px; width:25px; height:18px; vertical-align:middle; ">4군</caption>
- <caption id="caption56" class="cell_1" style="left:198px; top:31px; width:25px; height:18px; vertical-align:middle; ">5군</caption>
- <caption id="caption65" class="cell_1" style="left:242px; top:31px; width:25px; height:18px; vertical-align:middle; ">6군</caption>
- <caption id="caption67" class="cell_1" style="left:286px; top:31px; width:43px; height:18px; vertical-align:middle; ">전일수</caption>
- <caption id="caption55" class="cell_1" style="left:357px; top:31px; width:43px; height:18px; vertical-align:middle; ">재원수</caption>
- <caption id="caption1" class="cell_1" style="left:429px; top:31px; width:67px; height:18px; vertical-align:middle; ">운영병상수</caption>
- <output id="opt_room" ref="/root/init/wardprescondinfo/wardprescond/wardbedcnt" style="left:497px; top:30px; width:29px; height:19px; font-weight:bold; text-align:right; "/>
- <line id="line3" class="line_3" style="x1:526px; y1:30px; x2:526px; y2:49px; border-color:#ffe4bb; border-left-style:solid; "/>
- <line id="line27" class="line_3" style="x1:22px; y1:30px; x2:526px; y2:30px; "/>
- <line id="line28" class="line_3" style="x1:22px; y1:49px; x2:526px; y2:49px; vertical-align:middle; "/>
- <button id="button3" class="btn1_letter2" style="left:1036px; top:17px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //20090630_SMY추가
- model.removeNodeset("/root/send");
- model.makeNode("/root/send");
-
- //send 재구성
- model.makeNode("/root/send/ipatgroup");
- model.makeNode("/root/send/ipatgroup/ipat");
-
- var wardnm = model.getValue("/root/init/ward[wardcd = '" + model.getValue("/root/main/cond/wardcd") + "']/wardnm");
- model.makeValue("/root/send/ipatgroup/ipat/wardnm", wardnm);
- model.makeValue("/root/send/ipatgroup/ipat/total", model.getValue("/root/init/wardprescondinfo/wardprescond/inhospcnt"));
- model.makeValue("/root/send/ipatgroup/ipat/orddd", model.getValue("/root/main/cond/orddd"));
-
- var indschacptstat = model.getValue("/root/main/cond/indschacptstat");
- switch(indschacptstat){
- case "1":
- model.makeValue("/root/send/ipatgroup/ipat/indschacptstat", "재원");
- break;
- case "2":
- model.makeValue("/root/send/ipatgroup/ipat/indschacptstat", "입원");
- break;
- case "3":
- model.makeValue("/root/send/ipatgroup/ipat/indschacptstat", "퇴원진행");
- break;
- case "4":
- model.makeValue("/root/send/ipatgroup/ipat/indschacptstat", "퇴원");
- break;
- }
-
- //list
- model.makeNode("/root/send/ipatgroup/ipatlistinfo/ipatlist");
- model.copyNode("/root/send/ipatgroup/ipatlistinfo", "/root/main/wardbizinfo");
- exeReportPreview("RPMNW05500", "XMLSTR");
- ]]>
- </script>
- </button>
- <line id="line25" class="line_4" style="x1:902px; y1:8px; x2:902px; y2:47px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="button9" class="btn1_letter2" style="left:977px; top:17px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "") {
- grd_wardbizpatlist.saveExcel(fileName, "SheetName", true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn1_letter2" style="left:918px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetWardBizListInfo();
- ]]>
- </script>
- </button>
- <line id="line29" class="line_3" style="x1:428px; y1:30px; x2:428px; y2:49px; border-color:#ffe4bb; border-left-style:solid; "/>
- <line id="line1" class="line_3" style="x1:22px; y1:30px; x2:22px; y2:49px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="button4" class="btn1_letter5" style="left:1095px; top:17px; width:92px; height:22px; ">
- <caption>내환자세팅</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("wardcd", model.getValue("/root/main/cond/wardcd"));
- setParameter("userid", model.getValue("/root/main/cond/userid"));
- setParameter("usernm", model.getValue("/root/main/cond/usernm"));
- modal("SMMNB00400","1" ,"868", "128");
-
- model.removenode("/root/send");
- model.makeValue("/root/send/wardcd", model.getValue("/root/main/cond/wardcd"));
- submit("TRMNW00101");
- model.removenode("/root/init/ward[wardcd = '"+erdeptcd+"']"); // 응급의료센터 제외
-
- model.setValue("/root/main/cond/settingrnid", "");
- for(i = 1; i <= getNodesetCount("/root/init/settingrn"); i++ ) {
- if (model.getValue("/root/main/cond/userid") == model.getValue("/root/init/settingrn["+ i +"]/settingrnid")) {
- model.setValue("/root/main/cond/settingrnid", model.getValue("/root/main/cond/userid"));
- }
- }
- fGetWardBizListInfo();
- ]]>
- </script>
- </button>
- <select1 id="radio2" ref="/root/main/cond/indschacptstat" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:531px; top:10px; width:202px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>재원</label>
- <value>1</value>
- </item>
- <item>
- <label>입원</label>
- <value>2</value>
- </item>
- <item>
- <label>퇴원진행</label>
- <value>3</value>
- </item>
- <item>
- <label>퇴원</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- </group>
- <shape id="sha_state" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:7px; top:713px; width:593px; height:20px; background-color:#fffbf2; border-color:#7cbbdd; "/>
- <caption id="cap_state" style="left:12px; top:714px; width:588px; height:20px; ">상태 ⓐ:입원 ⓞ:외출/외박 ⓓ:퇴원예고 ⓒ:간호사퇴원정리완료 ⓘ:심사중 ⓕ:심사완료 (+):전실옴 (-):전실감</caption>
- <caption id="caption2" style="left:1167px; top:715px; width:26px; height:20px; ">[표]</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|