123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMASB00600" position="absolute 0 0 1201 751" titletext="항생제내성균환자조회" oninit="SMASB00600_oninit" onload="SMASB00600_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="항생제내성균 환자조회" class="tit_1" position="absolute 0 0 163 27" anchor="left top"/>
- <Div id="group1" taborder="1" position="absolute -2 30 1196 130" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape id="roundrect1" type="roundrectangle" class="roundrect_search" position="absolute 3 0 1195 83" anchor="left top right"/>
- <Shape id="line1" linetype="vertical" class="line_4" position="absolute 1107 10 1113 78" anchor="top right"/>
- <Static id="caption7" text="기간선택 :" class="search_name" position="absolute 14 9 110 26" anchor="default"/>
- <Static id="caption8" text="내성균구분 :" class="search_name" position="absolute 637 10 736 27" anchor="default"/>
- <Static id="caption12" text="등록번호 :" class="search_name" position="absolute 14 35 115 52" anchor="default"/>
- <Static id="caption17" text="병 동 :" class="search_name" position="absolute 252 61 316 78" anchor="default"/>
- <Static id="caption18" text="진 료 과 :" class="search_name" position="absolute 14 60 112 77" anchor="default"/>
- <Static id="caption19" text="~" class="search_no_b" position="absolute 311 10 323 27" anchor="default"/>
- <Static id="importcaption1" text="환자명 :" class="search_name" position="absolute 252 35 314 52" anchor="default"/>
- <Edit id="ipt_pid" taborder="5" class="input_search" position="absolute 96 34 189 53" anchor="default"/>
- <Combo id="cmb_termchoi" taborder="0" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_default" position="absolute 96 9 189 28" onitemchanged="group1_cmb_termchoi_onitemchanged" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">P</Col>
- <Col id="datacolumn">처방일</Col>
- </Row>
- <Row>
- <Col id="codecolumn">S</Col>
- <Col id="datacolumn">접수일</Col>
- </Row>
- <Row>
- <Col id="codecolumn">R</Col>
- <Col id="datacolumn">보고일</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Calendar id="ipt_fromdd" taborder="1" class="input_default" position="absolute 202 9 308 28" anchor="default"/>
- <Calendar id="ipt_todd" taborder="2" class="input_default" position="absolute 325 9 431 28" onkeydown="group1_ipt_todd_onkeydown" onkeyup="group1_ipt_todd_onkeyup" anchor="default"/>
- <Combo id="cmb_wardcd" taborder="10" innerdataset="@ds_init_warddeptlist" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 327 60 462 79" onitemchanged="group1_cmb_wardcd_onitemchanged" anchor="default"/>
- <Edit id="ipt_patnm" taborder="6" class="input_search" position="absolute 327 35 417 54" onkeydown="group1_ipt_patnm_onkeydown" anchor="default"/>
- <Combo id="cmb_orddept" taborder="9" innerdataset="@ds_init_deptlist" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 96 60 224 79" anchor="default"/>
- <Button id="btn_search" taborder="11" text="조회" class="btn1" position="absolute 1126 31 1182 53" onclick="group1_btn_search_onclick" anchor="top right"/>
- <Edit id="ipt_bac" taborder="3" class="input_search" position="absolute 510 10 620 29" anchor="default"/>
- <Static id="caption2" text="균 :" class="search_name" position="absolute 472 10 522 27" anchor="default"/>
- <Radio id="rdo_bac" taborder="8" columncount="1" rowcount="3" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 510 31 640 79" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">ALL Dates</Col>
- </Row>
- <Row>
- <Col id="codecolumn"/>
- <Col id="datacolumn">First isolate only</Col>
- </Row>
- <Row>
- <Col id="codecolumn"/>
- <Col id="datacolumn">First isolate only 2</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Button id="btn_patInfo" taborder="7" class="icon_search" position="absolute 422 37 438 53" onclick="group1_btn_patInfo_onclick" anchor="default"/>
- <cp_checkboxList id="cp_checkboxList00" titletext="CheckBox List" taborder="4" text="cp_checkboxList00" scrollbars="none" position="absolute 733 6 1062 74" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_sort" taborder="2" text="정렬" class="btn2_letter2" position="absolute 1105 123 1147 142" onclick="btn_sort_onclick" anchor="top right"/>
- <Grid id="grd_anitbiorstbtrpatlist" taborder="3" useinputpanel="false" position="absolute 0 144 1194 720" binddataset="ds_grd_antibiorstbtrpatlist" oncelldblclick="grd_anitbiorstbtrpatlist_oncelldblclick" onrbuttondown="grd_anitbiorstbtrpatlist_onrbuttondown" onrbuttonup="grd_anitbiorstbtrpatlist_onrbuttonup" anchor="all" cellsizebandtype="allband" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="27"/>
- <Column size="42"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="60"/>
- <Column size="40"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="40"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="60"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="normal" edittype="checkbox" text="선택"/>
- <Cell col="2" displaytype="normal" text="내성균구분"/>
- <Cell col="3" displaytype="normal" text="등록번호"/>
- <Cell col="4" displaytype="normal" text="이름"/>
- <Cell col="5" displaytype="normal" text="성별"/>
- <Cell col="6" text="연령구분"/>
- <Cell col="7" text="검체구분"/>
- <Cell col="8" text="GAP"/>
- <Cell col="9" displaytype="normal" text="나이"/>
- <Cell col="10" displaytype="normal" text="처방병동"/>
- <Cell col="11" displaytype="normal" text="처방병실"/>
- <Cell col="12" displaytype="normal" text="현재원병동"/>
- <Cell col="13" displaytype="normal" text="현재원병실"/>
- <Cell col="14" displaytype="normal" text="진료과"/>
- <Cell col="15" displaytype="normal" text="주치의"/>
- <Cell col="16" displaytype="normal" text="입원일"/>
- <Cell col="17" displaytype="normal" text="퇴원일"/>
- <Cell col="18" displaytype="normal" text="재원기간"/>
- <Cell col="19" displaytype="normal" text="보고일"/>
- <Cell col="20" displaytype="normal" text="검체"/>
- <Cell col="21" displaytype="normal" text="균"/>
- </Band>
- <Band id="body">
- <Cell text="expr:currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:select"/>
- <Cell col="2" displaytype="normal" text="bind:nsgbrcd"/>
- <Cell col="3" displaytype="normal" text="bind:pid"/>
- <Cell col="4" displaytype="normal" text="bind:patnm"/>
- <Cell col="5" displaytype="normal" text="bind:sexflag"/>
- <Cell col="6" text="bind:agegbn"/>
- <Cell col="7" text="bind:spcgbn"/>
- <Cell col="8" text="bind:gap"/>
- <Cell col="9" displaytype="normal" text="bind:age"/>
- <Cell col="10" displaytype="normal" text="bind:befwardcd"/>
- <Cell col="11" displaytype="normal" text="bind:befroomcd"/>
- <Cell col="12" displaytype="normal" text="bind:prestwardcd"/>
- <Cell col="13" displaytype="normal" text="bind:prestroomcd"/>
- <Cell col="14" displaytype="normal" style="align:left middle;" text="bind:orddept"/>
- <Cell col="15" displaytype="normal" text="bind:atdoct"/>
- <Cell col="16" displaytype="normal" text="bind:indd" mask="expr:utlf_isNull(indd) ? '' : '####-##-##'"/>
- <Cell col="17" displaytype="normal" text="bind:dschdd" mask="expr:utlf_isNull(dschdd) ? '' : '####-##-##'"/>
- <Cell col="18" displaytype="normal" text="bind:inhospterm"/>
- <Cell col="19" displaytype="normal" text="bind:reptdd" mask="expr:utlf_isNull(reptdd) ? '' : '####-##-##'"/>
- <Cell col="20" displaytype="normal" text="bind:spcnm"/>
- <Cell col="21" displaytype="normal" text="bind:bacnm"/>
- </Band>
- </Format>
- <Format id="format_copy"/>
- </Formats>
- </Grid>
- <Button id="btn_excel" taborder="4" text="엑셀" class="btn2_letter2" position="absolute 1150 123 1192 142" anchor="top right" onclick="btn_excel_onclick"/>
- <Button id="btn_prntchoi" taborder="5" text="전체선택" class="btn2" position="absolute 971 123 1035 142" onclick="btn_prntchoi_onclick" anchor="top right"/>
- <Button id="btn_choicncl" taborder="6" text="전체취소" class="btn2" position="absolute 1038 123 1102 142" onclick="btn_choicncl_onclick" anchor="top right"/>
- <Static id="caption1" text="항생제내성균 환자리스트" class="tit_2" position="absolute -1 126 187 139" anchor="left top"/>
- <Button id="btn_init" taborder="7" text="초기화" onclick="btn_init_onclick" class="btn4" position="absolute 1122 725 1190 747" anchor="top right"/>
- <Button id="btn_save" taborder="8" text="저장" onclick="btn_save_onclick" class="btn4" position="absolute 1063 725 1119 747" anchor="top right"/>
- <Button id="btn_print" taborder="9" text="출력" onclick="grp_btn_btn_print_onclick" class="btn6" position="absolute 4 725 60 747" anchor="left top"/>
- <Shape id="line23" class="line_10" position="absolute 0 26 1193 32"/>
- <Button id="btn_tsrch" taborder="10" text="전체건수" class="btn2" position="absolute 771 123 835 142" anchor="top right" onclick="btn_tsrch_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_cmb_wardcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depthngnm" type="STRING"/>
- <Column id="deptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depthngnm" type="STRING"/>
- <Column id="deptcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_antibiorstbtrpatlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="select" type="STRING"/>
- <Column id="nsgbrcd" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="patnm" type="STRING"/>
- <Column id="sexflag" type="STRING"/>
- <Column id="age" type="STRING"/>
- <Column id="befwardcd" type="STRING"/>
- <Column id="befroomcd" type="STRING"/>
- <Column id="prestwardcd" type="STRING"/>
- <Column id="prestroomcd" type="STRING"/>
- <Column id="orddept" type="STRING"/>
- <Column id="atdoct" type="STRING"/>
- <Column id="indd" type="STRING"/>
- <Column id="dschdd" type="STRING"/>
- <Column id="inhospterm" type="STRING"/>
- <Column id="reptdd" type="STRING"/>
- <Column id="spcnm" type="STRING"/>
- <Column id="bacnm" type="STRING"/>
- <Column id="ibcno" type="STRING"/>
- <Column id="itclscd" type="STRING"/>
- <Column id="itestcd" type="STRING"/>
- <Column id="ispccd" type="STRING"/>
- <Column id="irsltseq" type="STRING"/>
- <Column id="ibaccd" type="STRING"/>
- <Column id="ibacseqno" type="STRING"/>
- <Column id="irsltflag" type="STRING"/>
- <Column id="itestkindcd" type="STRING"/>
- <Column id="iantibiorslt" type="STRING"/>
- <Column id="iprcpdd" type="STRING"/>
- <Column id="ibcolldt" type="STRING"/>
- <Column id="isbgdwardcd" type="STRING"/>
- <Column id="iatdrid" type="STRING"/>
- <Column id="nsgbrcode" type="STRING"/>
- <Column id="cretno" type="STRING"/>
- <Column id="seqno" type="STRING"/>
- <Column id="prcpdd" type="STRING" size="256"/>
- <Column id="execprcpuniqno" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="agegbn" type="STRING" size="256"/>
- <Column id="spcgbn" type="STRING" size="256"/>
- <Column id="gap" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cmb_termchoi" 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">P</Col>
- </Row>
- <Row>
- <Col id="label">접수일</Col>
- <Col id="value">S</Col>
- </Row>
- <Row>
- <Col id="value">R</Col>
- <Col id="label">보고일</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_warddeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depthngnm" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="termchoi" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="orddept" type="STRING" size="256"/>
- <Column id="patnm" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="nsgbrcd" type="STRING" size="256"/>
- <Column id="bac" type="STRING" size="256"/>
- <Column id="bac2" type="STRING" size="256"/>
- <Column id="groupflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="termchoi">P</Col>
- <Col id="bac2">A</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="depthngnm" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_rstbtr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_sortcond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sort1" type="STRING" size="256"/>
- <Column id="cond1" type="STRING" size="256"/>
- <Column id="cond2" type="STRING" size="256"/>
- <Column id="sort2" type="STRING" size="256"/>
- <Column id="cond3" type="STRING" size="256"/>
- <Column id="cond4" type="STRING" size="256"/>
- <Column id="sort3" type="STRING" size="256"/>
- <Column id="cond5" type="STRING" size="256"/>
- <Column id="cond6" type="STRING" size="256"/>
- <Column id="sort4" type="STRING" size="256"/>
- <Column id="cond7" type="STRING" size="256"/>
- <Column id="cond8" type="STRING" size="256"/>
- <Column id="sort5" type="STRING" size="256"/>
- <Column id="cond9" type="STRING" size="256"/>
- <Column id="cond10" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="sort1">1</Col>
- <Col id="cond1">0</Col>
- <Col id="cond2">-</Col>
- <Col id="sort2">2</Col>
- <Col id="cond10">-</Col>
- <Col id="cond9">0</Col>
- <Col id="sort5">5</Col>
- <Col id="cond8">-</Col>
- <Col id="cond7">0</Col>
- <Col id="sort4">4</Col>
- <Col id="cond6">-</Col>
- <Col id="cond5">0</Col>
- <Col id="sort3">3</Col>
- <Col id="cond4">-</Col>
- <Col id="cond3">0</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchcond" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="rrgstno1" type="STRING" size="256"/>
- <Column id="rrgstno2" type="STRING" size="256"/>
- <Column id="acptdd" type="STRING" size="256"/>
- <Column id="inhospyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_patinfolist" 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="hngnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_cond" 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="name" type="STRING" size="256"/>
- <Column id="sexflag" type="STRING" size="256"/>
- <Column id="sexflag2" type="STRING" size="256"/>
- <Column id="age" type="STRING" size="256"/>
- <Column id="nsgbrcd" type="STRING" size="256"/>
- <Column id="nsgbrcd2" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="data" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item1" compid="group1.cmb_wardcd" propid="value" datasetid="ds_main_cond" columnid="wardcd"/>
- <BindItem id="item2" compid="group1.cmb_orddept" propid="value" datasetid="ds_main_cond" columnid="orddept"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- include "lis_commonxp::LLZ001.xjs";
- include "lis_commonxp::LPZ001.xjs";
- include "lis_commonxp::LZZ002.xjs";
- include "com_basiccodexp::ZBC001.xjs";
- include "com_departmentcodexp::ZSD001.xjs";
- function SMASB00600_oninit(obj:Form, e:InitEventInfo)
- {
- //폼 초기화 함수
- frmf_initForm(obj);
- }
- function SMASB00600_onload(obj:Form, e:LoadEventInfo)
- {
- fInitialize();
-
- grdf_initGrid(grd_anitbiorstbtrpatlist);
- group1.cmb_termchoi.value = 'P';
- group1.ipt_fromdd.value = utlf_addDate(utlf_getCurrentDate(), -1);
- group1.ipt_todd.value = utlf_getCurrentDate();
- group1.rdo_bac.value = 'A';
-
- ds_main_cond.setColumn(0, "orddept", "");
- ds_main_cond.setColumn(0, "wardcd", "");
-
- frmf_createPopupMenu("pmn_popupMenu", "pmn_popupMenu_onmenuclick");
- }
- function fInitialize()
- {
- //진료과
- var instcd = sysf_getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = "D";
- var rslt_ref = "ds_init_deptlist"; //"/root/init/deptlist";
- var sort_field = "depthngnm";
- var sort_method = "asc";
-
- appf_getInOrdDeptList(instcd, sort_field, sort_method, "", "", rslt_ref, false, "");
- //fGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
- frmf_addComboItem( "group1.cmb_orddept", "전체", "", "above" );
-
- //병동
- standard_yn = "orduseyn";
- ord_deptflag = "W";
- rslt_ref = "ds_init_warddeptlist";
- sort_field = "deptcd";
- sort_method = "asc";
-
- appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, sort_field, sort_method, "", "", "", rslt_ref, false, "");
- frmf_addComboItem( "group1.cmb_wardcd", "전체", "", "above" );
- var oParam = {};
- oParam.id = "TRASB00602";
- oParam.service = "infcbaseapp.AntibioRstBtrMngt";
- oParam.method = "reqGetAntibioRstBtrFlagList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_init_rstbtr=rstbtr";
- oParam.async = false;
- //oParam.callback = "cf_TRASB00602";
- tranf_submit(oParam);
-
- //체크박스
- var sProp1="col=5,row=3,cellspacing=5,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow=''";
- group1.cp_checkboxList00.setInitComp(sProp1, ds_init_rstbtr, "cdid", "cdnm", "fn_deptlist");
- fn_getdeptlist();
- }
- // /******************************************************************
- // * Argument :
- // * Description : 처방구분 - 재원/퇴원
- // ******************************************************************/
- function fn_deptlist()
- {
- var getData = String(group1.cp_checkboxList00.getData()).replace(","," ");
- ds_main_cond.setColumn(0, "nsgbrcd",getData);
- }
- // /******************************************************************
- // * Argument :
- // * Description : 처방구분 - 재원/퇴원
- // ******************************************************************/
- function fn_getdeptlist()
- {
- var getData = utlf_transNullToEmpty(ds_main_cond.getColumn(0, "nsgbrcd")).split(" ");
- if(!utlf_isNull(getData))
- {
- group1.cp_checkboxList00.setData(getData);
- }
- }
- //기간선택
- function group1_cmb_termchoi_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var term = group1.cmb_termchoi.value;
- if(term == "I")
- {
- group1.ipt_fromdd.enable = false;
- group1.ipt_todd.enable = false;
- ds_main_cond.setColumn(0, "fromdd", "");
- ds_main_cond.setColumn(0, "todd", "");
- }
- else
- {
- group1.ipt_fromdd.enable = true;
- group1.ipt_fromdd.enable = true;
- }
- }
- //조회
- function search()
- {
- ds_main_cond.setColumn(0, "fromdd", group1.ipt_fromdd.value);
- ds_main_cond.setColumn(0, "todd", group1.ipt_todd.value);
- ds_main_cond.setColumn(0, "termchoi", group1.cmb_termchoi.value);
- ds_main_cond.setColumn(0, "orddept", group1.cmb_orddept.value);
- ds_main_cond.setColumn(0, "wardcd", group1.cmb_wardcd.value);
-
- if( utlf_isNull(group1.cmb_termchoi.value))
- {
- sysf_messageBox("조회기준을", "C002");
- return;
- }
- if(group1.cmb_termchoi.value != "I" && ( utlf_isNull(group1.ipt_todd.value)|| utlf_isNull(group1.ipt_todd.value)))
- {
- sysf_messageBox("기간을", "C002");
- return;
- }
-
- var bac = ds_main_cond.getColumn(0, "bac");
- if( !utlf_isNull(bac))
- {
- bac=bac.toUpperCase();
- ds_main_cond.setColumn(0, "bac", bac);
- }
-
- var oParam = {};
- oParam.id = "TRASB00601";
- oParam.service = "infcbaseapp.AntibioRstBtrMngt";
- oParam.method = "reqGetAntibioRstBtrPatList";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_grd_antibiorstbtrpatlist=antibiorstbtrpatlist";
- oParam.async = false;
- //oParam.callback = "cf_TRASB00601";
- tranf_submit(oParam);
- }
-
- //조회
- function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- search();
- }
- //전체선택
- function btn_prntchoi_onclick(obj:Button, e:ClickEventInfo)
- {
- for(var i = 0; i < grd_anitbiorstbtrpatlist.rowcount; i++)
- {
- ds_grd_antibiorstbtrpatlist.setColumn(i, "select", 1);
- }
- }
- //전체취소
- function btn_choicncl_onclick(obj:Button, e:ClickEventInfo)
- {
- for(var i = 0; i <grd_anitbiorstbtrpatlist.rowcount; i++)
- {
- ds_grd_antibiorstbtrpatlist.setColumn(i, "select", 0);
- }
- }
- //정렬
- function btn_sort_onclick(obj:Button, e:ClickEventInfo)
- {
- var tmpCol = ds_sortcond.getColumn(0, "cond1");
- var tmpsort = ds_sortcond.getColCount(0, "cond2");
-
- if (tmpsort == "asc" && tmpCol > 0 )
- {
- ds_grd_antibiorstbtrpatlist.keystring = "S:+"+tmpCol;
- }
- else
- {
- ds_grd_antibiorstbtrpatlist.keystring = "S:-"+tmpCol;
- }
-
- var tmpCol = ds_sortcond.getColumn(0, "cond3");
- var tmpcort = ds_sortcond.getColumn(0, "cond4");
- if(tmpsort == "asc" && tmpCol > 0)
- {
- ds_grd_antibiorstbtrpatlist.keystring = "S:+" + tmpCol;
- }
- else
- {
- ds_grd_antibiorstbtrpatlist.keystring = "S:-" + tmpCol;
- }
-
- var tmpCol = ds_sortcond.getColumn(0, "cond5");
- var tmpsort = ds_sortcond.getColumn(0, "cond6");
-
- if(tmpsort == "asc" && tmpCol > 0)
- {
- ds_grd_antibiorstbtrpatlist.keystring = "S:+" + tmpCol;
- }
- else
- {
- ds_grd_antibiorstbtrpatlist.keystring = "S:-" + tmpCol;
- }
- var tmpCol = ds_sortcond.getColumn(0, "cond7");
- var tmpsort = ds_sortcond.getColumn(0, "cond8");
-
- if(tmpsort == "asc" && tmpCol > 0)
- {
- ds_grd_antibiorstbtrpatlist.keystring = "S:+" + tmpCol;
- }
- else
- {
- ds_grd_antibiorstbtrpatlist.keystring = "S:-" + tmpCol;
- }
- var tmpCol = ds_sortcond.getColumn(0, "cond9");
- var tmpsort = ds_sortcond.getColumn(0, "cond10");
-
- if(tmpsort == "asc" && tmpCol > 0)
- {
- ds_grd_antibiorstbtrpatlist.keystring = "S:+" + tmpCol;
- }
- else
- {
- ds_grd_antibiorstbtrpatlist.keystring = "S:-" + tmpCol;
- }
-
- }
- //환자명조회
- function patinfo()
- {
- if( !utlf_isNull(group1.ipt_pid.value))
- {
- ds_send_reqdata.setColumn(0, "pid", group1.ipt_pid.value);
- ds_send_reqdata.setColumn(0, "srchcond", "1");
- }
- if( !utlf_isNull(group1.ipt_patnm))
- {
- ds_send_reqdata.setColumn(0, "hngnm", group1.ipt_patnm.value);
- ds_send_reqdata.setColumn(0, "srchcond", "2");
- }
-
- var objArg = new Object();
- objArg.arg_ds_send = ds_send_reqdata;
-
- frmf_modal("SPPMC02500", "SPPMC02500", objArg, null, null, null, null, null, null, null, null, null, "M");
-
- if(!utlf_isNull(this.objects["ds_patinfolist"]))
- {
- var sPid = ds_patinfolist.getColumn(0, "pid");
- var sHngnm = ds_patinfolist.getColumn(0, "hngnm");
- group1.ipt_pid.value = sPid;
- group1.ipt_patnm.value = sHngnm;
- }
- }
- //환자명조회
- function group1_btn_patInfo_onclick(obj:Button, e:ClickEventInfo)
- {
- patinfo();
- }
- //상단정보조회
- function fReqOpPatPamInfo()
- {
- var iRow = ds_grd_antibiorstbtrpatlist.rowposition;
- var ioflag = "I";
- var pid = ds_grd_antibiorstbtrpatlist.getColumn(iRow, "pid");
- var indd = ds_grd_antibiorstbtrpatlist.getColumn(iRow, "indd");
- var cretno = ds_grd_antibiorstbtrpatlist.getColumn(iRow, "cretno");
- var seqno = ds_grd_antibiorstbtrpatlist.getColumn(iRow, "seqno");
- var instcd = sysf_getUserInfo("dutplceinstcd");
- var srchdd = utlf_getCurrentDate();
- var param= ioflag + "▦" //입원환자
- + pid + "▦"
- + indd + "▦"
- + cretno + "▦"
- + instcd + "▦";
-
- appf_initPatientInfo(param);
- }
- function grd_anitbiorstbtrpatlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fReqOpPatPamInfo();
- }
- //우클릭조회
- function grd_anitbiorstbtrpatlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- frmf_setPopupMenuDs( "pmn_popupMenu", [{id: "fAntibioDetlListPopup", level: "0", title: "항생제내성균상세내역조회", }
- , {id: "fHospInfcReptPopup", level: "0", title: "병원감염보고서등록"}
- ]);
- pmn_popupMenu.trackPopup(e.screenX,e.screenY);
-
- }
- //우클릭조회
- function pmn_popupMenu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
- {
- if(e.id == "fAntibioDetlListPopup")
- {
- fAntibioDetlListPopup();
- }
- else
- {
- fHospInfcReptPopup();
- }
- }
- //항생제내성균상세내역조회
- function fAntibioDetlListPopup()
- {
- var row = grd_anitbiorstbtrpatlist.currentrow;
-
- ds_hidden_cond.setColumn(0, "pid", ds_grd_antibiorstbtrpatlist.getColumn(row, "pid"));
- ds_hidden_cond.setColumn(0, "name", ds_grd_antibiorstbtrpatlist.getColumn(row, "patnm"));
- ds_hidden_cond.setColumn(0, "sexflag", ds_grd_antibiorstbtrpatlist.getColumn(row, "sexflag"));
- ds_hidden_cond.setColumn(0, "age", ds_grd_antibiorstbtrpatlist.getColumn(row, "age"));
- ds_hidden_cond.setColumn(0, "nsgbrcd", ds_grd_antibiorstbtrpatlist.getColumn(row, "nsgbrcd"));
-
- var objArg = new Object();
- objArg.arg_ds_send = ds_hidden_cond;
- frmf_modal("SPASB00700", "SPASB00700", objArg, null, null, null, null, null, null, null, null, null, "M");
- }
- //병원감염보고서등록
- function fHospInfcReptPopup()
- {
- var sessionPID = appf_getPatientId();
- var iRow = ds_grd_antibiorstbtrpatlist.rowposition;
- if(sessionPID != ds_grd_antibiorstbtrpatlist.getColumn(iRow, "pid"))
- {
- fReqOpPatPamInfo();
- }
- var rtnmsg_header = "reptdd▦ispccd▦spcnm▦ibaccd▦bacnm▦nsgbrcode▦nsgbrcd▦iprcpdd▦ibcolldt▦itclscd▦itestcd▦ibcno▦spcacptdt▩";
- var rtnmsg_data="";
-
- rtnmsg_data += utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "reptdd")) + "▦"
- + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "ispccd")) + "▦"
- + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "spcnm")) + "▦"
- + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "ibaccd")) + "▦"
- + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "bacnm")) + "▦"
- + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "nsgbrcode")) + "▦"
- + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "nsgbrcd")) + "▦"
- + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "iprcpdd")) + "▦"
- + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "ibcolldt")) + "▦"
- + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "itclscd")) + "▦"
- + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "itestcd")) + "▦"
- + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "ibcno")) + "▦"
- + utlf_transNullToEmpty(ds_grd_antibiorstbtrpatlist.getColumn(iRow, "ibcolldt")) + "▦"
- frmf_setParameter("setVal12", rtnmsg_header + rtnmsg_data);
- frmf_open("SMASI00100", "SMASI00100", null, null, null, null, null, null, null, null, null, null, "M");
- }
- //환자명조회
- function group1_ipt_patnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- patinfo();
- }
- }
- //조회
- function group1_ipt_todd_onkeyup(obj:Calendar, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- search();
- }
- }
- //초기화
- function btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- this.reload();
- }
- //저장
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if( utlf_isNull(ds_grd_antibiorstbtrpatlist.getColumn(0, "pid")))
- {
- sysf_messageBox("저장할 데이터가", "I004");
- return;
- }
- else
- {
- var selstatus;
- var nChksave;
- //데이터셋 구조 복사
- ds_send_savedata.copyData(ds_grd_antibiorstbtrpatlist);
- ds_send_savedata.clearData();
-
- for(var i = 0; i < ds_grd_antibiorstbtrpatlist.rowcount; i++)
- {
- selstatus = ds_grd_antibiorstbtrpatlist.getColumn(i, "select");
- //alert(ds_grd_antibiorstbtrpatlist.getColumn(i, "select"));
- if(selstatus == 1)
- {
- nChksave = "Y";
- //
- var nRow= ds_send_savedata.addRow();
- ds_send_savedata.copyRow(nRow,ds_grd_antibiorstbtrpatlist,i);
- ds_send_savedata.setColumn(nRow,"select","true");
- ds_send_savedata.addColumn("m","string",256);
- ds_send_savedata.setColumn(nRow,"m","i");
- //
- var oParam = {};
- oParam.id = "TXASB00601";
- oParam.service = "infcbaseapp.AntibioRstBtrMngt";
- oParam.method = "reqExeSaveAntibioRstBtrPatCdList";
- oParam.inds = "req=ds_send_savedata";
- oParam.outds = "ds_grd_antibiorstbtrpatlist=anitbiorstbtrpatdetllist";
- oParam.async = false;
- //oParam.callback = "cf_TXASB00601";
- tranf_submit(oParam);
-
- //alert("저장");
- }
- }
- if(utlf_isNull(nChksave))
- {
- sysf_messageBox("저장할 데이터를", "C002");
- }
- }
- //데이터셋 구조 삭제
- //ds_send_savedata.clear();
- //
- nChksave="";
- }
- function grp_btn_btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
-
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_anitbiorstbtrpatlist, "항생제내성균환자_", "SheetName", false, "", "user", false);
- }
- function btn_tsrch_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_open("SMASB00601", "SMASB00601", null, null, null, null, null, null, null, null, null, null, "M"); ///open("SMMNR00900");
- }
- ]]></Script>
- </Form>
- </FDL>
|