123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMQR05000" classname="SMMQR05100_RRT관리대장" inheritanceid="" position="absolute 0 0 1205 787" titletext="RRT 관리대장" oninit="SMMQR05000_oninit" onload="SMMQR05000_onload">
- <Layouts>
- <Layout>
- <Button id="btn_close" taborder="16" text="LAB창닫기" position="absolute 1120 476 1195 504" onclick="btn_close_onclick" anchor="right bottom" visible="false"/>
- <Grid id="grd_rrtmmt" class="datagrid2" taborder="11" binddataset="ds_main_rrtmmt" autoenter="select" useinputpanel="false" cellsizingtype="col" cellclickbound="cell" onrbuttonup="switch1_case1_grd_mrrtlist_onrbuttonup" position="absolute 0 103 1195 504" anchor="all" oncloseup="grd_rrtmmt_oncloseup" oncelldblclick="grd_rrtmmt_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23" band="left"/>
- <Column size="24" band="left"/>
- <Column size="21"/>
- <Column size="37"/>
- <Column size="53"/>
- <Column size="60"/>
- <Column size="70"/>
- <Column size="45"/>
- <Column size="96"/>
- <Column size="30"/>
- <Column size="40"/>
- <Column size="30"/>
- <Column size="40"/>
- <Column size="30"/>
- <Column size="40"/>
- <Column size="39"/>
- <Column size="40"/>
- <Column size="41"/>
- <Column size="42"/>
- <Column size="0"/>
- <Column size="45"/>
- <Column size="282"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="46"/>
- <Column size="48"/>
- <Column size="56"/>
- <Column size="32"/>
- <Column size="196"/>
- <Column size="79"/>
- <Column size="59"/>
- <Column size="58"/>
- <Column size="76"/>
- <Column size="59"/>
- <Column size="55"/>
- </Columns>
- <Rows>
- <Row size="44" band="head"/>
- <Row size="22"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="2" text="구 분"/>
- <Cell col="3" text="상태"/>
- <Cell col="4" text="병실"/>
- <Cell col="5" text="등록번호"/>
- <Cell col="6" text="환자명"/>
- <Cell col="7" text="S/A"/>
- <Cell col="8" text="진료과"/>
- <Cell col="9" colspan="2" text="SBP" taborder="undefined"/>
- <Cell col="11" colspan="2" text="HR" taborder="undefined"/>
- <Cell col="13" colspan="2" text="RR" taborder="undefined"/>
- <Cell col="15" colspan="2" text="BT" taborder="undefined"/>
- <Cell col="17" colspan="2" text="의식수준" taborder="undefined"/>
- <Cell col="19" text="현재mewsnscore"/>
- <Cell col="20" text="MEWS score" wordwrap="word"/>
- <Cell col="21" text="사유"/>
- <Cell col="22" text="연명 의료 여부"/>
- <Cell col="23" text="확인일시"/>
- <Cell col="24" text="확인자"/>
- <Cell col="25"/>
- <Cell col="26" text="종료 사유"/>
- <Cell col="27" text="담당 교수"/>
- <Cell col="28" text="담당의"/>
- <Cell col="29" text="담당의 전화번호"/>
- <Cell col="30" text="의뢰 여부"/>
- <Cell col="31" text="진단명"/>
- <Cell col="32" colspan="2" text="등록일시" taborder="undefined"/>
- <Cell col="34" text="등록자"/>
- <Cell col="35" colspan="2" text="종료일시" taborder="undefined"/>
- <Cell col="37" text="종료자"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" style="background:EXPR(statcd == 'O' ? 'lightskyblue' : statcd == 'A' ? 'pink' : statcd == 'M' ? 'navajowhite' : 'white');background2:EXPR(statcd == 'O' ? 'lightskyblue' : statcd == 'A' ? 'pink' : statcd == 'M' ? 'navajowhite' : 'white');" text="bind:chk" expr="expr:chk == 'Y' || chk == '1' ? 1 : 0"/>
- <Cell col="2" displaytype="combo" edittype="combo" style="align:center middle;background:EXPR(statcd == 'O' ? 'lightskyblue' : statcd == 'A' ? 'pink' : statcd == 'M' ? 'navajowhite' : 'white');background2:EXPR(statcd == 'O' ? 'lightskyblue' : statcd == 'A' ? 'pink' : statcd == 'M' ? 'navajowhite' : 'white');" text="bind:pathgbn" combodataset="ds_init_pathgbn" combocodecol="value" combodatacol="label"/>
- <Cell col="3" displaytype="combo" edittype="combo" style="align:center middle;background:EXPR(statcd == 'O' ? 'lightskyblue' : statcd == 'A' ? 'pink' : statcd == 'M' ? 'navajowhite' : 'white');background2:EXPR(statcd == 'O' ? 'lightskyblue' : statcd == 'A' ? 'pink' : statcd == 'M' ? 'navajowhite' : 'white');" text="bind:statcd" combodataset="ds_init_statcd" combocodecol="value" combodatacol="label"/>
- <Cell col="4" style="background:EXPR(statcd == 'O' ? 'lightskyblue' : statcd == 'A' ? 'pink' : statcd == 'M' ? 'navajowhite' : 'white');background2:EXPR(statcd == 'O' ? 'lightskyblue' : statcd == 'A' ? 'pink' : statcd == 'M' ? 'navajowhite' : 'white');" text="bind:roomcd"/>
- <Cell col="5" style="background:EXPR(statcd == 'O' ? 'lightskyblue' : statcd == 'A' ? 'pink' : statcd == 'M' ? 'navajowhite' : 'white');background2:EXPR(statcd == 'O' ? 'lightskyblue' : statcd == 'A' ? 'pink' : statcd == 'M' ? 'navajowhite' : 'white');font:EXPR(memocount > 0 ? 'arial,9,bold' : '');" text="bind:pid"/>
- <Cell col="6" style="background:EXPR(statcd == 'O' ? 'lightskyblue' : statcd == 'A' ? 'pink' : statcd == 'M' ? 'navajowhite' : 'white');background2:EXPR(statcd == 'O' ? 'lightskyblue' : statcd == 'A' ? 'pink' : statcd == 'M' ? 'navajowhite' : 'white');font:EXPR(memocount > 0 ? 'arial,9,bold' : '');" text="bind:patnm"/>
- <Cell col="7" style="align:left middle;padding:0 0 0 5;" text="bind:sexage"/>
- <Cell col="8" style="align:left top;padding:5 2 3 2;" text="bind:orddeptnm" wordwrap="word" enable="false"/>
- <Cell col="9" text="bind:sbp"/>
- <Cell col="10" style="background:lightblue;background2:lightblue;" text="bind:csbp"/>
- <Cell col="11" text="bind:hr"/>
- <Cell col="12" style="background:lightblue;background2:lightblue;" text="bind:chr"/>
- <Cell col="13" text="bind:rr"/>
- <Cell col="14" style="background:lightblue;background2:lightblue;" text="bind:crr"/>
- <Cell col="15" text="bind:bt"/>
- <Cell col="16" style="background:lightblue;background2:lightblue;" text="bind:cbt"/>
- <Cell col="17" style="align:left middle;" text="bind:avpu"/>
- <Cell col="18" style="align:left middle;background:lightblue;background2:lightblue;" text="bind:cavpu"/>
- <Cell col="19" text="bind:cmews_socore"/>
- <Cell col="20" text="bind:mews_score"/>
- <Cell col="21" displaytype="text" edittype="text" style="align:left top;padding:5 2 3 2;" text="bind:reamrk" wordwrap="word"/>
- <Cell col="22"/>
- <Cell col="23" displaytype="date" edittype="date" text="bind:checkdd" mask="yyyy-MM-dd HH:mm:ss" maskchar=" " calendardisplaynulltype="nulltext"/>
- <Cell col="24" text="bind:checker"/>
- <Cell col="25" text="bind:fnshcd"/>
- <Cell col="26" displaytype="combo" edittype="combo" style="align:center;" text="bind:fnshmm" wordwrap="word" combodataset="ds_init_fnshmm" combocodecol="value" combodatacol="label" combodisplay="edit"/>
- <Cell col="27" text="bind:medispclnm"/>
- <Cell col="28" text="bind:atdoctnm"/>
- <Cell col="29" text="bind:pdano"/>
- <Cell col="30" text="bind:consult_yn"/>
- <Cell col="31" style="align:left middle;" text="bind:diagnm"/>
- <Cell col="32" displaytype="date" edittype="date" text="bind:acptdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- <Cell col="33" displaytype="text" edittype="text" style="align:center middle;" text="bind:acpttm" mask="##:##:##" maskchar=" "/>
- <Cell col="34" displaytype="normal" text="bind:fstrgstrid"/>
- <Cell col="35" displaytype="date" edittype="date" text="bind:fnshdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- <Cell col="36" displaytype="text" edittype="text" style="align:center middle;" text="bind:fnshtm" mask="##:##:##" maskchar=" "/>
- <Cell col="37" text="bind:fnsher"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="datagrid2" taborder="15" binddataset="ds_main_rsltlist_row" autoenter="select" useinputpanel="false" selecttype="multiarea" cellsizingtype="col" oncellclick="datagrid2_oncellclick" position="absolute 0 509 1195 748" anchor="left right bottom">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="29"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line2" class="line_10" position="absolute 0 504 1195 510" anchor="left right bottom"/>
- <Static id="caption6" text="RRT 관리대상자 목록" class="tit_1" position="absolute 0 0 170 24"/>
- <Button id="btn_testrsltref" taborder="5" text="검사결과조회" position="absolute 0 754 103 776" class="btn3" anchor="left bottom" onclick="btn_testrsltref_onclick"/>
- <Button id="btn_recsrch" taborder="6" text="통합기록조회" class="btn3" position="absolute 104 754 207 776" anchor="left bottom" onclick="btn_recsrch_onclick"/>
- <Button id="button5" taborder="7" text="임상관찰기록지" class="btn3" position="absolute 208 754 327 776" anchor="left bottom" onclick="button5_onclick"/>
- <Button id="button6" taborder="8" text="간호일지" class="btn3" position="absolute 328 754 407 776" anchor="left bottom" onclick="button6_onclick"/>
- <Div id="grp_sea" anchor="left top right" taborder="9" class="div_SA" position="absolute 0 24 1195 64">
- <Layouts>
- <Layout>
- <Calendar id="ipt_todd" taborder="2" autoselect="true" autoskip="true" class="input_search" position="absolute 195 10 282 30" anchor="default"/>
- <Calendar id="ipt_fromdd" taborder="0" autoselect="true" autoskip="true" class="input_search" position="absolute 88 10 175 30" anchor="default"/>
- <Static id="caption8" text="~" position="absolute 179 13 190 27" anchor="default"/>
- <Static id="caption7" text="등록일시 :" class="search_name" position="absolute 9 11 87 29" anchor="default"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1116 9 1122 29" anchor="top right"/>
- <Button id="btn_srchrrt" taborder="5" text="조회" onclick="grp_sea_btn_srchrrt_onclick" class="btn1" position="absolute 1131 9 1187 31" anchor="top right"/>
- <Static id="caption00" text="상 태 :" class="search_name" position="absolute 497 13 548 27"/>
- <cp_checkboxList id="chk_statcd" titletext="CheckBox List" taborder="7" scrollbars="none" position="absolute 603 10 856 33" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
- <CheckBox id="chk_all" taborder="8" text="전체" position="absolute 553 10 598 30" truevalue="Y" falsevalue="N" onclick="grp_sea_chk_all_onclick"/>
- <Radio id="rdo_gubun" taborder="9" columncount="-1" rowcount="-1" position="absolute 998 11 1102 33" codecolumn="codecolumn" datacolumn="datacolumn" index="0" value="A" onitemchanged="grp_sea_rdo_gubun_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">성인</Col>
- </Row>
- <Row>
- <Col id="codecolumn">P</Col>
- <Col id="datacolumn">소아</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- </Layout>
- </Layouts>
- </Div>
- <Button id="button4" taborder="10" text="저장" onclick="button4_onclick" class="btn5" position="absolute 1153 78 1195 98" anchor="top right"/>
- <Shape id="line1" class="line_10" position="absolute 0 98 1195 104" anchor="left top right"/>
- <Static id="caption5" text="RRT관리대상자목록" class="tit_2" position="absolute 0 82 143 103"/>
- <Button id="btn_excel" taborder="12" text="엑셀저장" class="btn7" position="absolute 1069 78 1151 98" anchor="top right" onclick="btn_excel_onclick"/>
- <Button id="button7" taborder="13" text="신속대응팀 기록" class="btn4" position="absolute 536 754 655 776" anchor="left bottom" onclick="button7_onclick"/>
- <PopupMenu id="pmn_menu1" innerdataset="ds_popupmenu" idcolumn="func" captioncolumn="label" levelcolumn="level" onmenuclick="pmn_menu1_onmenuclick" onmouseleave="pmn_menu1_onmouseleave" position="absolute 1214 115 1318 146"/>
- <Div id="grp_memolist" taborder="14" style="background:white;border:1 solid #808080ff ;" visible="false" position="absolute 363 224 1114 552">
- <Layouts>
- <Layout>
- <Grid id="grd_memo" taborder="2" binddataset="ds_hidden_memo" autoenter="select" useinputpanel="false" extendsizetype="row" cellsizingtype="row" autosizingtype="row" position="absolute 3 31 744 321">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="59"/>
- <Column size="54"/>
- <Column size="84"/>
- <Column size="495"/>
- </Columns>
- <Rows>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="등록번호"/>
- <Cell col="1" text="환자명"/>
- <Cell col="2" text="등록일시"/>
- <Cell col="3" text="사유"/>
- </Band>
- <Band id="body">
- <Cell style="align:center middle;" text="bind:pid"/>
- <Cell col="1" style="align:center middle;" text="bind:patnm"/>
- <Cell col="2" displaytype="date" style="align:center middle;" text="bind:acptdd" calendardisplaynulltype="nulltext"/>
- <Cell col="3" style="align:left top;padding:5 2 3 2;" text="bind:reamrk" wordwrap="word" autosizerow="limitmin"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_close" taborder="3" onclick="grp_memolist_btn_close_onclick" class="btn_POP_cls" position="absolute 715 4 746 29" style="background:#009393ff;"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="Static00" text="과거 사유가 있는 환자는 등록번호와 환자명에 진하게 표시함." position="absolute 228 77 595 98" style="color:brown;font:Dotum,9,bold;"/>
- <Button id="btn_pedemr" taborder="17" text="소아 신속대응팀 기록" class="btn4" position="absolute 656 754 805 776" anchor="left bottom" onclick="btn_pedemr_onclick" visible="false"/>
- <Button id="btn_pews" taborder="18" text="PEWS 재사정" class="btn4" position="absolute 808 754 919 776" anchor="left bottom" onclick="btn_pews_onclick" visible="false"/>
- <Div id="group7" taborder="19" style="background:#080808ff;" visible="false" position="absolute 579 251 858 370">
- <Layouts>
- <Layout>
- <Static id="cpt_isoldata" position="absolute 2 2 277 117" style="background:#d6dadcff;" anchor="default"/>
- <Static id="caption20" text="종료사유" class="tit_2" position="absolute 10 7 125 28" anchor="default"/>
- <Shape id="line14" class="line_10" position="absolute 10 23 270 29" anchor="default"/>
- <Shape id="line19" class="line_3" position="absolute 10 91 270 97" anchor="default"/>
- <Button id="btn_close" taborder="1" text="확인" class="btn5" position="absolute 227 95 269 114" anchor="default" onclick="group7_btn_close_onclick"/>
- <TextArea id="textarea1" taborder="2" scrollbars="autovert" wordwrap="char" position="absolute 10 28 270 92" anchor="default"/>
- <Button id="btn_close00" taborder="3" text="Exit" class="btn3" position="absolute 171 95 221 114" onclick="group7_btn_close00_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_pacs" taborder="20" text="PACS-등록번호" position="absolute 408 754 525 776" onclick="btn_pacs_onclick" class="btn3" anchor="left bottom"/>
- </Layout>
- </Layouts>
- <Bind>
- <BindItem id="item2" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
- <BindItem id="item4" compid="grp_sea.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
- <BindItem id="item1" compid="grp_sea.chk_all" propid="value" datasetid="ds_hidden" columnid="chkall"/>
- <BindItem id="item3" compid="grp_sea.rdo_gubun" propid="value" datasetid="ds_send" columnid="gubun"/>
- <BindItem id="item5" compid="group7.textarea1" propid="value" datasetid="ds_main_rrtmmt" columnid="fnshcd"/>
- </Bind>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="statcd" type="STRING" size="256"/>
- <Column id="gubun" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_rrtmmt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_rrtmmt_oncolumnchanged"/>
- <Dataset id="ds_init_pathgbn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">S</Col>
- <Col id="value">S</Col>
- </Row>
- <Row>
- <Col id="label">C</Col>
- <Col id="value">C</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_ward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_statcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">종료</Col>
- <Col id="value">F</Col>
- </Row>
- <Row>
- <Col id="label">유지</Col>
- <Col id="value">M</Col>
- </Row>
- <Row>
- <Col id="label">관찰</Col>
- <Col id="value">O</Col>
- </Row>
- <Row>
- <Col id="label">활동</Col>
- <Col id="value">A</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_fnshmm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="value"/>
- <Col id="label"/>
- </Row>
- <Row>
- <Col id="label">상태호전</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">ICU전실</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">DNR</Col>
- <Col id="value">3</Col>
- </Row>
- <Row>
- <Col id="label">사망</Col>
- <Col id="value">4</Col>
- </Row>
- <Row>
- <Col id="label">퇴원/전원</Col>
- <Col id="value">5</Col>
- </Row>
- <Row>
- <Col id="label">기록오류</Col>
- <Col id="value">6</Col>
- </Row>
- <Row>
- <Col id="label">기타</Col>
- <Col id="value">7</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_save" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_popupmenu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="func" type="STRING" size="256"/>
- <Column id="level" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">과거사유조회</Col>
- <Col id="func">fprememo</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chkall" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="chkall">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_memo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_req" 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="patnm" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_rsltlist_row" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_temp_rsltlist_row" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_temp_rsltlist_header" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_temp_rsltlist_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_setdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : SMMQR05100_RRT관리대장
- * Job Name :
- * Creator :
- * Make Date : 2018-10-11
- * Description : 신속대응팀 환자 스크리닝
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- *
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "com_pacsxp::ZEP001.xjs";
- include "emr_prcpmngtxp::MMOCommon.xjs";
- var gInstcd = sysf_getUserInfo("dutplceinstcd");
- var datagrid2Formats;
- function SMMQR05000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMQR05000_onload(obj:Form, e:LoadEventInfo)
- {
- //그리드 형식 저장
- datagrid2Formats = datagrid2.formats;
- grdf_initGrid(grd_rrtmmt);
- grdf_setToolTipBind(grd_rrtmmt);
-
- ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
-
- var oParam = {};
- oParam.id = "TRMNW00101";
- oParam.service = "wardcareapp.WardCareMngt";
- oParam.method = "reqGetWMInitData";
- oParam.inds = "reqcond=ds_send";
- oParam.outds = "ds_init_ward=ward";
- oParam.async = false;
- tranf_submit(oParam);
-
- var sProp="col=5,row=1,cellspacing=15,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow='visible'";
- grp_sea.chk_statcd.setInitComp(sProp, ds_init_statcd,"value","label","fn_cmpEvent");
-
- var aData = new Array();
- aData[0] = "O";
- grp_sea.chk_statcd.setData(aData, "",false);
-
-
- fInitialize();
- }
- function fn_cmpEvent()
- {
- var rtn = grp_sea.chk_statcd.getData();
- ds_send.setColumn(0, "statcd", rtn);
- }
- function fInitialize()
- {
- ds_send.clearData();
- ds_send.addRow();
-
- var curDate = utlf_getCurrentDate();
-
- ds_send.setColumn(0, "fromdd", utlf_addDate(curDate, -7));
- ds_send.setColumn(0, "todd", curDate);
- ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- ds_send.setColumn(0, "statcd", "O");
- ds_send.setColumn(0, "gubun", "A"); //성인/소아
-
- //grp_sea.cmb_wardcd.index = 0;
-
- //종료사유
- group7.visible = false;
- //alert(grp_sea.rdo_gubun.index );
- if (grp_sea.rdo_gubun.index == 0) { //성인
- button7.visible = true;
- btn_pedemr.visible = false;
- btn_pews.visible = false;
-
- } else {
- button7.visible = false;
- btn_pedemr.visible = true;
- btn_pews.visible = true;
- }
-
- }
- function grp_sea_btn_srchrrt_onclick(obj:Button, e:ClickEventInfo)
- {
- //상단정보 초기화
- appf_delPatientInfos();
-
- var oParam = {};
- oParam.id = "TRRTW00002";
- oParam.service = "rrtapp.RrtMngt";
- oParam.method = "reqGetRRTMmt";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_rrtmmt=rrtmmt";
- oParam.async = false;
- oParam.callback = "cf_TRRTW00002";
- tranf_submit(oParam);
- }
- function cf_TRRTW00002(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
-
- ds_main_rrtmmt.keystring = "S:statcd";
- ds_main_rrtmmt.addColumn("chk", "string");
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_rrtmmt, "excel", "Sheet1", "true", "", "");
- }
- function ds_main_rrtmmt_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "chk")
- {
- obj.setColumn(e.row, "chk", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- var curDate = utlf_getCurrentDate()+utlf_getCurrentTime();
- if(e.newvalue == "1")
- {
- obj.setColumn(e.row, "checkdd", curDate);
- obj.setColumn(e.row, "checker", sysf_getUserInfo("userid"));
-
- grd_rrtmmt.setCellPos(grd_rrtmmt.getBindCellIndex("body", "checker"));
- grd_rrtmmt.showEditor(true);
- }
- }
- else if(e.columnid == "checkdd")
- {
- obj.setColumn(e.row, e.columnid, utlf_transNullToEmpty(e.newvalue).substr(0,14));
- obj.setColumn(e.row, "checker", sysf_getUserInfo("userid"));
- }
- }
- function grd_rrtmmt_oncloseup(obj:Grid, e:GridEditEventInfo)
- {
- if(obj.getBindCellIndex("Body", "fnshmm") == e.cell)
- {
- if(!utlf_isNull(e.value))
- {
- if (e.value == '7' ) { //기타
- group7.visible = true;
- group7.textarea1.setFocus();
- } else {
- ds_main_rrtmmt.setColumn(ds_main_rrtmmt.rowposition, "fnshdd", utlf_getCurrentDate());
- ds_main_rrtmmt.setColumn(ds_main_rrtmmt.rowposition, "fnshtm", utlf_getCurrentTime());
- ds_main_rrtmmt.setColumn(ds_main_rrtmmt.rowposition, "fnsher", sysf_getUserInfo("userid"));
- }
- }
- else
- {
- ds_main_rrtmmt.setColumn(ds_main_rrtmmt.rowposition, "fnshdd", "");
- ds_main_rrtmmt.setColumn(ds_main_rrtmmt.rowposition, "fnsher", "");
- }
- }
- if(obj.getBindCellIndex("Body", "statcd") == e.cell)
- {
- if(e.value == "F")
- {
- obj.setCellPos(obj.getBindCellIndex("body", "fnshmm"));
- obj.showEditor(true);
- }
- }
- }
- function button4_onclick(obj:Button, e:ClickEventInfo)
- {
- var updategrid = grdf_getGridUpdateData(grd_rrtmmt);
- grdf_setStatusColumn(updategrid, "status");
- ds_send_save.copyData(updategrid, true);
- ds_send_save.addColumn("recovwardcd", "string");
-
- for(var i = 0; i < ds_send_save.rowcount; i++)
- {
- if(ds_send_save.getColumn(i, "statcd") == "F") //종료
- {
- if(utlf_isNull(ds_send_save.getColumn(i, "fnshmm")) || utlf_isNull(ds_send_save.getColumn(i, "fnsher")) || utlf_isNull(ds_send_save.getColumn(i, "fnshdd")))
- {
- sysf_messageBox("상태 값 종료 시, 종료사유, 종료일시, 종료자는", "I003");
- grd_rrtmmt.setCellPos(grd_rrtmmt.getBindCellIndex("body", "fnshmm"));
- grd_rrtmmt.showEditor(true);
- return;
- }
-
-
- }
- }
-
-
- var oParam = {};
- oParam.id = "TXRTW00002";
- oParam.service = "rrtapp.RrtMngt";
- oParam.method = "reqSetRRTMmt";
- oParam.inds = "req=ds_send_save";
- oParam.async = false;
- oParam.callback = "cf_TXRTW00002";
- tranf_submit(oParam);
-
-
- }
- function cf_TXRTW00002(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- // ds_send_save.clearData();
- grp_sea.btn_srchrrt.click();
- }
- function btn_testrsltref_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_open("SMAER00800", "SMAER00800", "", null, null, null, null, null, null, null, null, null, "M");
- }
- function btn_recsrch_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMMRI00400", "SMMRI00400", null, null, null, null, null, null, null, null, null, null, "M");
- }
- function button5_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMMNR00900", "SMMNR00900","", null, null, null, null, null, null, null, null, null, "M");
- }
- function button6_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMMNR00700", "SMMNR00700",null, null, null, null, null, null, null, null, null, null, "M");
- }
- function button7_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_setParameter("SPMMR05400_parm_formcd", "1800022119");
- frmf_getParameter("SPMMR05400_parm_formrecdd", utlf_getCurrentDate());
-
- frmf_modal("SPMMR05400","SPMMR05400", "", "", "" , "", "", "", "", "" , "", "","M");
- }
- function grp_sea_chk_all_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(obj.value == "Y")
- {
- ds_send.setColumn(0, "statcd", "%");
- grp_sea.chk_statcd.setCheckAll(true);
- }
- else
- {
- ds_send.setColumn(0, "statcd", "");
- grp_sea.chk_statcd.setCheckAll(false);
- }
- }
- function fprememo()
- {
- ds_req.setColumn(0, "instcd", ds_main_rrtmmt.getColumn(ds_main_rrtmmt.rowposition, "instcd"));
- ds_req.setColumn(0, "pid", ds_main_rrtmmt.getColumn(ds_main_rrtmmt.rowposition, "pid"));
- ds_req.setColumn(0, "patnm", ds_main_rrtmmt.getColumn(ds_main_rrtmmt.rowposition, "patnm"));
-
- var oParam = {};
- oParam.id = "TXRTW00002";
- oParam.service = "rrtapp.RrtMngt";
- oParam.method = "reqGetRRTMemo";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_hidden_memo=rrtmemo";
- oParam.async = false;
- //oParam.callback = "cf_TXRTW00001";
- tranf_submit(oParam);
-
- grp_memolist.visible = true;
- grp_memolist.bringToFront();
- }
- function switch1_case1_grd_mrrtlist_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
- {
- ds_main_rrtmmt.clearSelect();
- ds_main_rrtmmt.selectRow(e.row);
- ds_main_rrtmmt.rowposition = e.row;
-
- pmn_menu1.trackPopup(e.screenX,e.screenY);
- }
- function pmn_menu1_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
- {
- eval(e.id +"();");
- }
- function pmn_menu1_onmouseleave(obj:PopupMenu, e:MenuMouseEventInfo)
- {
- obj.closePopup();
- }
- function grp_memolist_btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- grp_memolist.visible = false;
- }
- function grd_rrtmmt_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- //상단정보 초기화
- appf_delPatientInfos();
-
- var row = ds_main_rrtmmt.rowposition;
- var param = "I▦" + ds_main_rrtmmt.getColumn(row, "pid")
- + "▦" + ds_main_rrtmmt.getColumn(row, "indd")
- + "▦" + ds_main_rrtmmt.getColumn(row, "cretno")
- + "▦" + ds_main_rrtmmt.getColumn(row, "instcd")
- + "▦" + ds_main_rrtmmt.getColumn(row, "acptdd");
- // sysf_trace("param = " + param);
- appf_initPatientInfo(param);
- fGetPDResultRef();
- }
-
- function fGetPDResultRef()
- {
- datagrid2.formats = datagrid2Formats;
- ds_hidden_temp_rsltlist_header.clearData();
- ds_main_rsltlist_row.clearData();
-
- if (ds_main_rsltlist_row.rowcount > 0)
- {
-
-
- for(var l = 4; l > -1; l--)
- {
- datagrid2.setFormatColProperty(l, "band", "body");
- }
-
- for (var i = datagrid2.getFormatColCount(); i > 0; i--)
- {
- datagrid2.deleteContentsCol(i);
- }
- }
-
- if (gInstcd =="032") {
- dsf_makeValue(ds_send_setdata, "setno", "string", "1148", 0);
- } else if (gInstcd =="031") {
- dsf_makeValue(ds_send_setdata, "setno", "string", "2210", 0);
- }
-
- dsf_makeValue(ds_send_setdata, "workflag", "string", "", 0);
- dsf_makeValue(ds_send_setdata, "tclscdlist", "string", "", 0);
- dsf_makeValue(ds_send_setdata, "startdd", "string", utlf_getCurrentDate().toDate().getAddDate(-7,"D").getDateFormat("YYYYMMDD"), 0);
- dsf_makeValue(ds_send_setdata, "enddd", "string", utlf_getCurrentDate(), 0);
- dsf_makeValue(ds_send_setdata, "pid", "string", ds_main_rrtmmt.getColumn(ds_main_rrtmmt.rowposition, "pid"), 0);
-
- dsf_setTypeFormat(ds_send_setdata, "setno:INT");
- var oParam = {};
- oParam.id = "TRLLP01201";
- oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
- oParam.method = "reqGetAcmlTestList2";
- oParam.inds = "cond=ds_send_setdata";
- oParam.outds = "ds_hidden_temp_rsltlist_row=row ds_hidden_temp_rsltlist_header=header ds_hidden_temp_rsltlist_patinfo=patinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRLLP01201";
- tranf_submit(oParam);
- var gridCaption = ds_hidden_temp_rsltlist_header.getColumn(0, "caption");
- var gridCaptionArray = String(gridCaption).split("^");
- if(utlf_isNull(gridCaption))
- {
- return;
- }
-
- var gridColRef = ds_hidden_temp_rsltlist_header.getColumn(0, "colref");
- var gridColRefArray = String(gridColRef).split("^");
- var gridColType = ds_hidden_temp_rsltlist_header.getColumn(0, "type");
- var gridColTypeArray = String(gridColType).split("^");
- for (var i = 0; i < gridColRefArray.length; i++ )
- {
- if (gridColRefArray[i].substr(0, 4) == "rslt")
- {
- var tmpstr = "rsltORD".concat(gridColRefArray[i].substr(4));
- gridColRefArray[i] = tmpstr
- }
- }
- for( var i = 0; i < gridColRefArray.length; i++ )
- {
- datagrid2.appendContentsCol();
- datagrid2.setCellProperty("Head", parseInt(i+1), "text", gridCaptionArray[i]);
- datagrid2.setCellProperty("Body", parseInt(i+1), "text", "bind:"+gridColRefArray[i]);
-
- if(gridColTypeArray[i] != "output")
- {
- datagrid2.setCellProperty("Head", parseInt(i+1), "displaytype", gridColTypeArray[i]);
- datagrid2.setCellProperty("Body", parseInt(i+1), "displaytype", gridColTypeArray[i]);
- datagrid2.setCellProperty("Body", parseInt(i+1), "edittype", gridColTypeArray[i]);
- }
- }
-
- datagrid2.setFormatColProperty(1, "size", 22);
- datagrid2.setFormatColProperty(2, "size", 100);
- datagrid2.setFormatColProperty(3, "size", 100);
- datagrid2.setFormatColProperty(4, "size", 100);
- datagrid2.setFormatRowProperty(0, "size", 35);
-
-
- //trace("datagrid2.getFormatColCount() =" + datagrid2.getFormatColCount());
-
-
- for(var j = 0; j < 5; j++)
- {
- datagrid2.setFormatColProperty(j, "band", "left");
- }
-
- for(var i = 5; i < datagrid2.getFormatColCount(); i++ )
- {
- datagrid2.setFormatColProperty(i, "size", 80);
- datagrid2.setCellProperty("Body", i, "align", "right middle");
- }
-
- ds_main_rsltlist_row.copyData(ds_hidden_temp_rsltlist_row);
-
- fReMake();
- }
- function fReMake()
- {
- xx = 0;
-
- for(var i = 0; i < ds_main_rsltlist_row.rowcount; i++)
- {
- for(var j = 5; j < datagrid2.getFormatColCount(); j++)
- {
- var vJudg = ds_main_rsltlist_row.getColumn(i, "judg" + xx);
- if(vJudg == "H")
- {
- dsf_makeValue(ds_main_rsltlist_row, j+"_color", "string", "red", i);
- }
- else if(vJudg == "L")
- {
- dsf_makeValue(ds_main_rsltlist_row, j+"_color", "string", "blue", i);
- }
-
- datagrid2.setCellProperty("Body", j, "color", "BIND("+j+"_color)");
-
- xx ++;
- }
- xx = 0;
- }
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- grd_rrtmmt.position.height = parseInt(btn_testrsltref.position.top-1);
- grd_rrtmmt.bringToFront();
- }
- //소아 신속대응팀 기록
- function btn_pedemr_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_setParameter("SPMMR05400_parm_formcd", "1800022479");
- frmf_getParameter("SPMMR05400_parm_formrecdd", utlf_getCurrentDate());
-
- frmf_modal("SPMMR05400","SPMMR05400", "", "", "" , "", "", "", "", "" , "", "","M");
- }
- //PEWS 재사정
- function btn_pews_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_setParameter("SPMMR05400_parm_formcd", "1800022561");
- frmf_getParameter("SPMMR05400_parm_formrecdd", utlf_getCurrentDate());
-
- frmf_modal("SPMMR05400","SPMMR05400", "", "", "" , "", "", "", "", "" , "", "","M");
- }
- function grd_rrtmmt_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
-
- //상단정보 초기화
- appf_delPatientInfos();
-
- var row = ds_main_rrtmmt.rowposition;
- var param = "I▦" + ds_main_rrtmmt.getColumn(row, "pid")
- + "▦" + ds_main_rrtmmt.getColumn(row, "indd")
- + "▦" + ds_main_rrtmmt.getColumn(row, "cretno")
- + "▦" + ds_main_rrtmmt.getColumn(row, "instcd")
- + "▦" + ds_main_rrtmmt.getColumn(row, "acptdd");
- // sysf_trace("param = " + param);
- appf_initPatientInfo(param);
-
- ds_main_rsltlist_row.clearData();
-
- }
- function grp_sea_rdo_gubun_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- if (grp_sea.rdo_gubun.index == 0) { //성인
- button7.visible = true;
- btn_pedemr.visible = false;
- btn_pews.visible = false;
- grd_rrtmmt.setCellProperty("Head",20, "text","MEWS score");
-
- } else {
- button7.visible = false;
- btn_pedemr.visible = true;
- btn_pews.visible = true;
- grd_rrtmmt.setCellProperty("Head",20, "text","PEWS score");
- }
-
- }
- function group7_btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_rrtmmt.setColumn(ds_main_rrtmmt.rowposition, "fnshdd", utlf_getCurrentDate());
- ds_main_rrtmmt.setColumn(ds_main_rrtmmt.rowposition, "fnshtm", utlf_getCurrentTime());
- ds_main_rrtmmt.setColumn(ds_main_rrtmmt.rowposition, "fnsher", sysf_getUserInfo("userid"));
- group7.visible = false;
-
- }
- function group7_btn_close00_onclick(obj:Button, e:ClickEventInfo)
- {
- group7.visible = false;
- }
- function btn_pacs_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( ds_hidden_temp_rsltlist_patinfo.rowcount == 0 ) return;
- var pid = ds_hidden_temp_rsltlist_patinfo.getColumn(0, "pid")
- zepfpacsPatientID(pid);
- }
- ]]></Script>
- </Form>
- </FDL>
|