123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNE13000_응급전용중환자실입원실이용환자대장" classname="SMMNE13000_응급전용중환자실입원실이용환자대장" inheritanceid="" position="absolute 0 0 1155 805" titletext="응급전용 중환자실 및 입원실 이용환자대장" oninit="SMMNE13000_oninit" onload="SMMNE13000_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="응급전용 중환자실 및 입원실 이용환자대장" class="tit_1" position="absolute 0 0 294 25"/>
- <Div id="grp_search" anchor="left top right" taborder="1" class="div_SA" position="absolute 0 25 1150 58">
- <Layouts>
- <Layout>
- <Static id="caption1" text="조회구분 :" class="search_name" position="absolute 10 7 81 27" anchor="default"/>
- <Button id="btn_srch" taborder="5" text="조회" class="btn1" position="absolute 1030 7 1086 27" onclick="grp_search_btn_srch_onclick" anchor="top right"/>
- <Static id="caption5" text="조회기간 :" class="search_name" position="absolute 411 7 489 27" anchor="default"/>
- <Calendar id="ipt_fromdd" taborder="6" autoselect="true" autoskip="true" class="input_essential" position="absolute 499 7 591 27" anchor="default"/>
- <Static id="caption8" text="~" position="absolute 593 7 608 27" style="font:Dotum,9,bold;" anchor="default"/>
- <Calendar id="ipt_todd" taborder="7" autoselect="true" class="input_essential" position="absolute 608 7 700 27" anchor="default"/>
- <Radio id="rdo_gubun" taborder="8" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 83 7 228 27" anchor="default" onitemchanged="grp_search_rdo_gubun_onitemchanged" value="1" index="0">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">중환자실</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">입원실</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Button id="btn_execl" taborder="9" text="엑셀" class="btn7" position="absolute 1087 7 1143 27" onclick="grp_search_btn_execl_onclick" anchor="top right"/>
- <CheckBox id="CheckBox00" taborder="10" text="외상센터 제외" position="absolute 734 12 843 24" falsevalue="N" truevalue="Y" value="N" visible="false"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line8" class="line_10" position="absolute 0 59 1150 65" anchor="left top right"/>
- <Grid id="Grid_patlist" taborder="2" useinputpanel="false" position="absolute 1 61 1151 797" binddataset="ds_main_patlist" anchor="all" onheadclick="Grid_patlist_onheadclick" selecttype="multirow" onrbuttondown="Grid_patlist_icu_onrbuttondown">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="55"/>
- <Column size="60"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="55"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="80"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="90"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="55"/>
- <Column size="40"/>
- <Column size="40"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="병실" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="병상" taborder="undefined"/>
- <Cell col="3" rowspan="2" style="padding:0 0 0 0;" text="응급 전용 여부" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="전문과 지정 여부" taborder="undefined"/>
- <Cell col="5" rowspan="2" text="이름" taborder="undefined"/>
- <Cell col="6" rowspan="2" text="등록 번호" taborder="undefined"/>
- <Cell col="7" rowspan="2" text="성별 나이" taborder="undefined"/>
- <Cell col="8" rowspan="2" text="진단명" taborder="undefined"/>
- <Cell col="9" colspan="6" text="응급실" taborder="undefined"/>
- <Cell col="15" colspan="10" text="중환자실" taborder="undefined"/>
- <Cell col="25"/>
- <Cell row="1" col="9" text="내원일자" taborder="undefined"/>
- <Cell row="1" col="10" text="내원시간"/>
- <Cell row="1" col="11" text="퇴실일자"/>
- <Cell row="1" col="12" text="퇴실시간"/>
- <Cell row="1" col="13" text="입원장 발부의"/>
- <Cell row="1" col="14" text="입원 관리자"/>
- <Cell row="1" col="15" text="입실일자"/>
- <Cell row="1" col="16" text="입실시간"/>
- <Cell row="1" col="17" text="입실경로"/>
- <Cell row="1" col="18" text="주진료과"/>
- <Cell row="1" col="19" text="담당교수"/>
- <Cell row="1" col="20" text="담당의"/>
- <Cell row="1" col="21" text="퇴실일자"/>
- <Cell row="1" col="22" text="퇴실시간"/>
- <Cell row="1" col="23" text="퇴실 관리자"/>
- <Cell row="1" col="24" text="재원 일수"/>
- <Cell row="1" col="25"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" text="bind:roomnm"/>
- <Cell col="2" text="bind:bednm"/>
- <Cell col="3" text="bind:eryn"/>
- <Cell col="4" text="bind:specialdeptyn"/>
- <Cell col="5" text="bind:hngnm"/>
- <Cell col="6" text="bind:pid"/>
- <Cell col="7" text="bind:sexage"/>
- <Cell col="8" style="align:left middle;" text="bind:diagengnm" tooltiptype="bottom" tooltiptext="bind:diagengnm"/>
- <Cell col="9" text="bind:erindd"/>
- <Cell col="10" edittype="mask" text="bind:erintm" mask="##:##"/>
- <Cell col="11" text="bind:eroutdd"/>
- <Cell col="12" edittype="mask" text="bind:erouttm" mask="##:##"/>
- <Cell col="13" text="bind:indirecdrid"/>
- <Cell col="14" text="bind:inpermitdrnm"/>
- <Cell col="15" text="bind:inwarddd"/>
- <Cell col="16" edittype="mask" text="bind:inwardtm" mask="##:##"/>
- <Cell col="17" text="bind:fromward"/>
- <Cell col="18" text="bind:orddept" tooltiptype="bottom" tooltiptext="bind:orddept"/>
- <Cell col="19" text="bind:medispclnm"/>
- <Cell col="20" text="bind:atdoctnm"/>
- <Cell col="21" text="bind:outwarddd"/>
- <Cell col="22" edittype="mask" text="bind:outwardtm" mask="##:##"/>
- <Cell col="23" text="bind:outwardpermitdoc"/>
- <Cell col="24" text="bind:days"/>
- <Cell col="25" text="bind:tryn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="Grid_patlist_icu" taborder="3" binddataset="ds_main_patlist_icu" useinputpanel="false" onheadclick="Grid_patlist_onheadclick" position="absolute 1 61 1151 797" anchor="all" cellsizingtype="both" onrbuttondown="Grid_patlist_icu_onrbuttondown" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="55"/>
- <Column size="60"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="55"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="80"/>
- <Column size="70"/>
- <Column size="65"/>
- <Column size="70"/>
- <Column size="65"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="70"/>
- <Column size="65"/>
- <Column size="70"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="70"/>
- <Column size="65"/>
- <Column size="65"/>
- <Column size="90"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="70"/>
- <Column size="65"/>
- <Column size="55"/>
- <Column size="40"/>
- <Column size="40"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="병실" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="병상" taborder="undefined"/>
- <Cell col="3" rowspan="2" style="padding:0 0 0 0;" text="응급 전용 여부" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="전문과 지정 여부" taborder="undefined"/>
- <Cell col="5" rowspan="2" text="이름" taborder="undefined"/>
- <Cell col="6" rowspan="2" text="등록 번호" taborder="undefined"/>
- <Cell col="7" rowspan="2" text="성별 나이" taborder="undefined"/>
- <Cell col="8" rowspan="2" text="진단명" taborder="undefined"/>
- <Cell col="9" colspan="6" text="응급실" taborder="undefined"/>
- <Cell col="15" colspan="5" text="응급전용입원실" taborder="undefined"/>
- <Cell col="20" colspan="10" text="중환자실" taborder="undefined"/>
- <Cell col="30"/>
- <Cell row="1" col="9" text="내원일자" taborder="undefined"/>
- <Cell row="1" col="10" text="내원시간"/>
- <Cell row="1" col="11" text="퇴실일자"/>
- <Cell row="1" col="12" text="퇴실시간"/>
- <Cell row="1" col="13" text="입원장 발부의"/>
- <Cell row="1" col="14" text="입원 관리자"/>
- <Cell row="1" col="15" text="입원일자"/>
- <Cell row="1" col="16" text="입원시간"/>
- <Cell row="1" col="17" text="퇴실일자"/>
- <Cell row="1" col="18" text="퇴실시간"/>
- <Cell row="1" col="19" text="입실경로"/>
- <Cell row="1" col="20" text="입실일자"/>
- <Cell row="1" col="21" text="입실시간"/>
- <Cell row="1" col="22" text="입실경로"/>
- <Cell row="1" col="23" text="주진료과"/>
- <Cell row="1" col="24" text="담당교수"/>
- <Cell row="1" col="25" text="담당의"/>
- <Cell row="1" col="26" text="퇴실일자"/>
- <Cell row="1" col="27" text="퇴실시간"/>
- <Cell row="1" col="28" text="퇴실 관리자"/>
- <Cell row="1" col="29" text="재원 일수"/>
- <Cell row="1" col="30"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" text="bind:roomnm"/>
- <Cell col="2" text="bind:bednm"/>
- <Cell col="3" text="bind:eryn"/>
- <Cell col="4" text="bind:specialdeptyn"/>
- <Cell col="5" text="bind:hngnm"/>
- <Cell col="6" text="bind:pid"/>
- <Cell col="7" text="bind:sexage"/>
- <Cell col="8" style="align:left middle;" text="bind:diagengnm" tooltiptype="bottom" tooltiptext="bind:diagengnm"/>
- <Cell col="9" text="bind:erindd"/>
- <Cell col="10" edittype="mask" text="bind:erintm" mask="##:##"/>
- <Cell col="11" text="bind:eroutdd"/>
- <Cell col="12" edittype="mask" text="bind:erouttm" mask="##:##"/>
- <Cell col="13" text="bind:indirecdrid"/>
- <Cell col="14" text="bind:inpermitdrnm"/>
- <Cell col="15" text="bind:ipdinwarddd"/>
- <Cell col="16" edittype="mask" text="bind:ipdoutwardtm" mask="##:##"/>
- <Cell col="17" text="bind:ipdoutwarddd"/>
- <Cell col="18" edittype="mask" text="bind:ipdoutwardtm" mask="##:##"/>
- <Cell col="19" text="bind:ipdfromward"/>
- <Cell col="20" text="bind:inwarddd"/>
- <Cell col="21" edittype="mask" text="bind:inwardtm" mask="##:##"/>
- <Cell col="22" text="bind:fromward"/>
- <Cell col="23" text="bind:orddept" tooltiptype="bottom" tooltiptext="bind:orddept"/>
- <Cell col="24" text="bind:medispclnm"/>
- <Cell col="25" text="bind:atdoctnm"/>
- <Cell col="26" text="bind:outwarddd"/>
- <Cell col="27" edittype="mask" text="bind:outwardtm" mask="##:##"/>
- <Cell col="28" text="bind:outwardpermitdoc"/>
- <Cell col="29" text="bind:days"/>
- <Cell col="30" text="bind:tryn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <PopupMenu id="pmn_menu" idcolumn="idcolumn" captioncolumn="captioncolumn" levelcolumn="levelcolumn" enablecolumn="enablecolumn" iconcolumn="iconcolumn" checkboxcolumn="checkboxcolumn" hotkeycolumn="hotkeycolumn" userdatacolumn="userdatacolumn" onmenuclick="pmn_menu_onmenuclick" position="absolute 1167 25 1313 64">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="idcolumn" size="256"/>
- <Column id="captioncolumn" size="256"/>
- <Column id="levelcolumn" size="256"/>
- <Column id="enablecolumn" size="256"/>
- <Column id="iconcolumn" size="256"/>
- <Column id="checkboxcolumn" size="256"/>
- <Column id="hotkeycolumn" size="256"/>
- <Column id="userdatacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="idcolumn">fExptList("Y")</Col>
- <Col id="captioncolumn">제외</Col>
- <Col id="levelcolumn"/>
- <Col id="enablecolumn"/>
- <Col id="iconcolumn"/>
- <Col id="checkboxcolumn"/>
- <Col id="hotkeycolumn"/>
- <Col id="userdatacolumn"/>
- </Row>
- <Row>
- <Col id="idcolumn">fExptList("N")</Col>
- <Col id="captioncolumn">제외 취소</Col>
- <Col id="levelcolumn"/>
- <Col id="enablecolumn"/>
- <Col id="iconcolumn"/>
- <Col id="checkboxcolumn"/>
- <Col id="hotkeycolumn"/>
- <Col id="userdatacolumn"/>
- </Row>
- </Rows>
- </Dataset>
- </PopupMenu>
- <CheckBox id="CheckBox01" taborder="4" text="제외 대상자만 보기" value="N" truevalue="Y" falsevalue="N" position="absolute 308 3 438 19" visible="false"/>
- </Layout>
- </Layouts>
- <Bind>
- <BindItem id="item1" compid="grp_search.ipt_fromdd" propid="value" datasetid="ds_send_req" columnid="fromdd"/>
- <BindItem id="item2" compid="grp_search.ipt_todd" propid="value" datasetid="ds_send_req" columnid="todd"/>
- <BindItem id="item0" compid="grp_search.rdo_gubun" propid="value" datasetid="ds_send_req" columnid="gubun"/>
- <BindItem id="item3" compid="grp_search.CheckBox00" propid="value" datasetid="ds_send_req" columnid="tryn"/>
- <BindItem id="item4" compid="CheckBox01" propid="value" datasetid="ds_send_req" columnid="exptviewyn"/>
- </Bind>
- <Objects>
- <Dataset id="ds_main_patlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="roomnm" type="STRING" size="256"/>
- <Column id="bednm" type="STRING" size="256"/>
- <Column id="eryn" type="STRING" size="256"/>
- <Column id="specialdeptyn" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="sexage" type="STRING" size="256"/>
- <Column id="diagengnm" type="STRING" size="256"/>
- <Column id="erindd" type="STRING" size="256"/>
- <Column id="erintm" type="STRING" size="256"/>
- <Column id="eroutdd" type="STRING" size="256"/>
- <Column id="erouttm" type="STRING" size="256"/>
- <Column id="indirecdrid" type="STRING" size="256"/>
- <Column id="inwarddd" type="STRING" size="256"/>
- <Column id="inwardtm" type="STRING" size="256"/>
- <Column id="fromward" type="STRING" size="256"/>
- <Column id="inpermitdrnm" type="STRING" size="256"/>
- <Column id="orddept" type="STRING" size="256"/>
- <Column id="medispclnm" type="STRING" size="256"/>
- <Column id="atdoctnm" type="STRING" size="256"/>
- <Column id="outwarddd" type="STRING" size="256"/>
- <Column id="outwardtm" type="STRING" size="256"/>
- <Column id="days" type="STRING" size="256"/>
- <Column id="outwardpermitdoc" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="gubun" type="STRING" size="256" sumtext="1 : 중환자실, 2: 입원실"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="조회기간"/>
- <Column id="todd" type="STRING" size="256" sumtext="조회기간"/>
- <Column id="tryn" type="STRING" size="256"/>
- <Column id="exptviewyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="tryn">Y</Col>
- <Col id="exptviewyn">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_patlist_icu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="roomnm" type="STRING" size="256"/>
- <Column id="bednm" type="STRING" size="256"/>
- <Column id="eryn" type="STRING" size="256"/>
- <Column id="specialdeptyn" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="sexage" type="STRING" size="256"/>
- <Column id="diagengnm" type="STRING" size="256"/>
- <Column id="erindd" type="STRING" size="256"/>
- <Column id="erintm" type="STRING" size="256"/>
- <Column id="eroutdd" type="STRING" size="256"/>
- <Column id="erouttm" type="STRING" size="256"/>
- <Column id="indirecdrid" type="STRING" size="256"/>
- <Column id="inwarddd" type="STRING" size="256"/>
- <Column id="inwardtm" type="STRING" size="256"/>
- <Column id="fromward" type="STRING" size="256"/>
- <Column id="inpermitdrnm" type="STRING" size="256"/>
- <Column id="orddept" type="STRING" size="256"/>
- <Column id="medispclnm" type="STRING" size="256"/>
- <Column id="atdoctnm" type="STRING" size="256"/>
- <Column id="outwarddd" type="STRING" size="256"/>
- <Column id="outwardtm" type="STRING" size="256"/>
- <Column id="days" type="STRING" size="256"/>
- <Column id="outwardpermitdoc" type="STRING" size="256"/>
- <Column id="ipdinwarddd" type="STRING" size="256"/>
- <Column id="ipdinwardtm" type="STRING" size="256"/>
- <Column id="ipdoutwarddd" type="STRING" size="256"/>
- <Column id="ipdoutwardtm" type="STRING" size="256"/>
- <Column id="ipdfromward" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_exptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="chosdd" type="STRING" size="256"/>
- <Column id="chostm" type="STRING" size="256"/>
- <Column id="patclass" type="STRING" size="256"/>
- <Column id="roomcd" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- function SMMNE13000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMNE13000_onload(obj:Form, e:LoadEventInfo)
- {
- ds_send_req.setColumn(0, "gubun", "1");
- ds_send_req.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_send_req.setColumn(0, "todd", utlf_getCurrentDate());
-
- ds_send_req.setColumn(0, "exptviewyn", "N");
- //grdf_setGridSort(Grid_patlist);
- }
- function grp_search_btn_srch_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_send_req.getColumn(0, "gubun") == "1"){
- if(grp_search.ipt_fromdd.value < "20180521"){
- sysf_messageBox("2018년 5월 21일 이후 데이터만 조회할 수 있습니다.");
- return;
- }
- }
-
- if(utlf_diffDate(grp_search.ipt_fromdd.value, grp_search.ipt_todd.value) > 31){
- sysf_messageBox("조회 기간은 31일을 초과할 수 없습니다.");
- return;
- }
- var oParam = {};
- oParam.id = "SMMNE13001";
- oParam.service = "ercareapp.ERPatMngt";
- oParam.method = "reqERIntensiveCareUnitAndWardPatientList";
- oParam.inds = "req=ds_send_req";
-
- if (ds_send_req.getColumn(0, "gubun") == "1")
- {
- oParam.outds = "ds_main_patlist_icu=patlist";
- }
- else
- {
- oParam.outds = "ds_main_patlist=patlist";
- }
-
- oParam.async = true;
- tranf_submit(oParam);
- }
- function grp_search_rdo_gubun_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- //입원실
- if(obj.value == "2"){
- Grid_patlist.setCellProperty("Head", 10, "text", "입원실");
- Grid_patlist.visible = true;
- Grid_patlist_icu.visible = false;
- //grp_search.CheckBox00.visible = false;
- }
- //중환자실
- else {
- Grid_patlist.setCellProperty("Head", 10, "text", "중환자실");
- Grid_patlist.visible = false;
- Grid_patlist_icu.visible = true;
- //grp_search.CheckBox00.visible = true;
- }
- }
- function grp_search_btn_execl_onclick(obj:Button, e:ClickEventInfo)
- {
- if (ds_send_req.getColumn(0, "gubun") == "1")
- grdf_exportExcel(Grid_patlist_icu, "응급전용 중환자실 및 입원실 이용환자대장", "SheetName" , true, "" , "" , true);
- else
- grdf_exportExcel(Grid_patlist, "응급전용 중환자실 및 입원실 이용환자대장", "SheetName" , true, "" , "" , true);
-
- }
- // grdf_setGridSort()사용시 헤더가 2줄인거에 대하여 정렬이 안되어 수정 구현
- function Grid_patlist_onheadclick(obj:Grid, e:GridClickEventInfo)
- {
- var bindDs = eval(obj.binddataset);
- if (bindDs.rowcount == 0) return false;
-
- var CONST_SORT_MARK = "";
-
- // 클릭한 위치 그 앞에까지 존재하는 서브셀의 갯수 만큼 e.cell 에 더 해주면 body 영역의 col 위치 값이 나올듯?
- var colspanHeadCnt = 0;
- var colspanBodyCnt = 0;
- var headCnt = 0;
- var bodyCnt = 0;
-
- for(var i = 0; i <= e.cell; i++) {
- headCnt = obj.getCellProperty("Head", i, "colspan");
- bodyCnt = obj.getCellProperty("body", i, "colspan");
-
- colspanHeadCnt += headCnt;
- colspanBodyCnt += bodyCnt;
-
- }
- var colspanCnt = colspanHeadCnt - colspanBodyCnt;
- // 선택한 컬럼의 head가 합쳐져 있고 body는 안합쳐져 있을 때는 body의 제일 앞 컬럼 기준으로 sort 하도록 수정
- if(headCnt > 1 && bodyCnt == 1) {
- colspanCnt = colspanCnt - headCnt + 1;
- }
- // e.col로 bind 데이터 가져오기
- var sText = obj.getCellProperty("body", e.col, "text");
- if(utlf_isNull(sText)) return false;
-
- var BodyColId = sText.split(":"); // e.col : 바인드된 컬럼.
- if (BodyColId[0] != "bind") {
- return false;
- }
-
- if(obj.getCellText(-1, e.cell) == "undefined"){
- return;
- }
-
- var strHeadText = obj.getCellText(-1, e.cell);
-
-
- var keystring = bindDs.keystring;
- var sortcolumns = "";
-
- if(!utlf_isNull(keystring)) {
- keystring = keystring.toString();
- var isGroup = keystring.indexOf("G:");
- if(isGroup > -1) return;
-
- keystring = keystring.replace(/undefined/g, "");
-
- if(keystring != "S:") {
- var nStart = keystring.indexOf("S:");
- sortcolumns = keystring.substring(nStart + 2, keystring.length);
-
- var nS = sortcolumns.indexOf(BodyColId[1]); // keystring에 이미 들어가 있는 컬럼이면 먼저 제거 해준다.
- if( nS > -1) {
- sortcolumns = sortcolumns.substring(0, nS - 1) + sortcolumns.substring(nS, sortcolumns.length); // '+', '-' 제거
- sortcolumns = sortcolumns.replace(BodyColId[1], ""); // 기존에 있는 컬럼명 제거
- }
- }
- }
- if (strHeadText.substr(strHeadText.length - 1) == CONST_ASC_MARK) {
- obj.setCellProperty( "head", e.cell, "text", strHeadText.substr(0, strHeadText.length - 2) + " " + CONST_DESC_MARK);
- bindDs.keystring = "S:" + "-" + BodyColId[1] + sortcolumns;
- } else if (strHeadText.substr(strHeadText.length - 1) == CONST_DESC_MARK) {
- obj.setCellProperty( "head", e.cell, "text", strHeadText.substr(0, strHeadText.length - 2));
- bindDs.keystring = "S:" + sortcolumns;
- } else {
- obj.setCellProperty( "head", e.cell, "text", strHeadText + " " + CONST_ASC_MARK);
- bindDs.keystring = "S:" + "+" + BodyColId[1] + sortcolumns;
- }
- }
- function Grid_patlist_icu_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- pmn_menu.trackPopup(e.screenX,e.screenY);
- return true;
- }
- function pmn_menu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
- {
- eval(e.id);
- }
- function fExptList(useyn)
- {
- var rows, grid, ds;
-
- var patclass = "";
-
- switch (ds_send_req.getColumn(0, "gubun"))
- {
- case "1": // 중환자실
- patclass = "ICU"
- grid = eval("Grid_patlist_icu");
- ds = eval("ds_main_patlist_icu");
- break;
-
- case "2": // 입원실
- patclass = "IPD"
- grid = eval("Grid_patlist");
- ds = eval("ds_main_patlist");
-
- break;
- }
- rows = grdf_getSelectedRows (grid);
-
- ds_send_exptlist.clearData();
- for (var i = rows.length-1 ; i >= 0; i--)
- {
- var nRow = ds_send_exptlist.addRow();
-
- ds_send_exptlist.setColumn(nRow, "pid" , ds.getColumn(rows[i], "pid") );
- ds_send_exptlist.setColumn(nRow, "chosdd", ds.getColumn(rows[i], "erindd").replace("-","") );
- ds_send_exptlist.setColumn(nRow, "chostm", ds.getColumn(rows[i], "erintm").replace(":","") );
-
- ds_send_exptlist.setColumn(nRow, "patclass", patclass);
-
- ds_send_exptlist.setColumn(nRow, "pid" , ds.getColumn(rows[i], "pid") );
- ds_send_exptlist.setColumn(nRow, "roomcd", ds.getColumn(rows[i], "roomnm") );
- ds_send_exptlist.setColumn(nRow, "useyn", useyn)
- }
-
- if (ds_send_exptlist.rowcount > 0)
- {
- var oParam = {};
- oParam.id = "TRMNP20402";
- oParam.service = "ercareapp.ERPatMngt";
- oParam.method = "reqInsErOnlyExamExpt";
- oParam.inds = "cond=ds_send_exptlist";
- oParam.outds = "";
- oParam.async = false;
- tranf_submit(oParam);
-
- //ds_send_exptlist.clearData();
- }
-
- }
- ]]></Script>
- </Form>
- </FDL>
|