123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPLLP90400" position="absolute 0 0 600 559" titletext="입원환자조회" onload="SPLLP90400_onload">
- <Layouts>
- <Layout>
- <Div id="group2" taborder="6" position="absolute 12 6 588 48" class="div_SA2">
- <Layouts>
- <Layout/>
- </Layouts>
- </Div>
- <Static id="caption1" class="tit_2" position="absolute 12 248 177 268" anchor="default" positiontype="position" text="전실내역조회"/>
- <Shape id="line1" class="line_1" position="absolute 0 215 570 215" anchor="default" positiontype="position" linetype="horizontal"/>
- <Grid id="grd_patlist" position="absolute 12 268 588 525" anchor="default" positiontype="position" binddataset="ds_grid_grd_patlist" autofittype="col" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="110"/>
- <Column size="80"/>
- <Column size="45"/>
- <Column size="80"/>
- <Column size="45"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2"/>
- <Cell col="1" rowspan="2" text="변경일시"/>
- <Cell col="2" colspan="2" text="From"/>
- <Cell col="4" colspan="2" text="To"/>
- <Cell col="6" rowspan="2" text="등록번호"/>
- <Cell col="7" rowspan="2" text="환자명"/>
- <Cell col="8" text="indd"/>
- <Cell col="9"/>
- <Cell col="10"/>
- <Cell col="11"/>
- <Cell col="12"/>
- <Cell col="13"/>
- <Cell col="14"/>
- <Cell col="15"/>
- <Cell row="1" col="2" text="병동"/>
- <Cell row="1" col="3" text="병실"/>
- <Cell row="1" col="4" text="병동"/>
- <Cell row="1" col="5" text="병실"/>
- <Cell row="1" col="8" text="indd"/>
- <Cell row="1" col="9" text="prestwardcd"/>
- <Cell row="1" col="10" text="chngwardcd"/>
- <Cell row="1" col="11" text="appdd"/>
- <Cell row="1" col="12" text="apptm"/>
- <Cell row="1" col="13" text="prepamacptdd"/>
- <Cell row="1" col="14" text="prepamacpttm"/>
- <Cell row="1" col="15"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" text="bind:chngdt" mask="@@@@-@@-@@ @@:@@"/>
- <Cell col="2" text="bind:prestward"/>
- <Cell col="3" text="bind:prestroom"/>
- <Cell col="4" text="bind:chngward"/>
- <Cell col="5" text="bind:chngroom"/>
- <Cell col="6" text="bind:pid"/>
- <Cell col="7" text="bind:hngnm"/>
- <Cell col="8" text="bind:indd"/>
- <Cell col="9" text="bind:prestwardcd"/>
- <Cell col="10" text="bind:chngwardcd"/>
- <Cell col="11" text="bind:appdd"/>
- <Cell col="12" text="bind:apptm"/>
- <Cell col="13" text="bind:prepamacptdd"/>
- <Cell col="14" text="bind:prepamacpttm"/>
- <Cell col="15" text="bind:cretno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button3" class="btn1" taborder="4" position="absolute 521 17 577 37" anchor="default" positiontype="position" text="조회" onclick="button3_onclick"/>
- <Static id="caption2" class="search_name" position="absolute 21 17 95 37" anchor="default" positiontype="position" text="검색구분"/>
- <Edit id="ipt_refval" class="input_search" taborder="3" position="absolute 241 17 361 37" anchor="default" positiontype="position" imemode="hangul" onkeydown="ipt_refval_onkeydown" lengthunit="utf8" maxlength="9" inputtype="digit"/>
- <Radio id="rdo_refflag" class="radio_search" columncount="2" position="absolute 98 17 238 37" anchor="default" positiontype="position" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="rdo_refflag_onitemchanged">
- <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>
- <Grid id="grd_patinfo" position="absolute 12 78 588 238" anchor="default" positiontype="position" onclick="grd_patinfo_onclick" binddataset="ds_grid_grd_patinfo" autofittype="col" oncellclick="grd_patinfo_oncellclick" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="등록번호"/>
- <Cell col="2" text="환자명"/>
- <Cell col="3" text="입원일자"/>
- <Cell col="4" text="진료과"/>
- <Cell col="5" text="병동"/>
- <Cell col="6" text="병실"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" text="bind:pid"/>
- <Cell col="2" text="bind:patnm"/>
- <Cell col="3" text="bind:indd" mask="####-##-##"/>
- <Cell col="4" text="bind:orddeptnm"/>
- <Cell col="5" text="bind:wardcd"/>
- <Cell col="6" text="bind:roomcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption3" class="tit_2" position="absolute 12 58 117 78" anchor="default" positiontype="position" text="입원환자조회"/>
- <Shape id="line2" class="line_1" position="absolute 0 25 570 25" anchor="default" positiontype="position" linetype="horizontal"/>
- <Button id="btn_save" taborder="7" text="닫기" class="btn4" position="absolute 532 530 588 552" onclick="btn_save_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_patlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chngdt" type="STRING"/>
- <Column id="prestward" type="STRING"/>
- <Column id="prestroom" type="STRING"/>
- <Column id="chngward" type="STRING"/>
- <Column id="chngroom" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="hngnm" type="STRING"/>
- <Column id="indd" type="STRING"/>
- <Column id="prestwardcd" type="STRING"/>
- <Column id="chngwardcd" type="STRING"/>
- <Column id="appdd" type="STRING"/>
- <Column id="apptm" type="STRING"/>
- <Column id="prepamacptdd" type="STRING"/>
- <Column id="prepamacpttm" type="STRING"/>
- <Column id="cretno" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING"/>
- <Column id="patnm" type="STRING"/>
- <Column id="indd" type="STRING"/>
- <Column id="orddeptnm" type="STRING"/>
- <Column id="wardcd" type="STRING"/>
- <Column id="roomcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-01
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-01 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "lis_commonxp::LLZ001.xjs";
- function lf_setInit()
- {
- var instcd = sysf_getUserInfo("dutplceinstcd");
- var pid = "";
- var indd = "";
- var ioflag = "";
-
- pid = appf_getPatientInfoDetail("pid");
- indd = appf_getPatientInfoDetail("indd");
- ioflag = appf_getPatientInfoDetail("ioflag");
-
- if( !utlf_isNull(pid))
- {
- if(ioflag == "I")
- {
- var sInDsName = dsf_createDsRow("in_ds_search", [{col: "pid", val: pid} //등록번호
- , {col: "indd", val: indd}]); // 조회구분
- ds_grid_grd_patlist.clearData();
- var oParam = {};
- oParam.id = "TRMNW12401";
- oParam.service = "wardcareapp.WardCareMngt";
- oParam.method = "reqGetChngRoomStat";
- oParam.inds = "req="+sInDsName;
- oParam.outds = "ds_grid_grd_patlist=patlist";
- oParam.async = false;
- tranf_submit(oParam);
- }else{
- sysf_messageBox("입원환자가 아닙니다.","I");
- return;
- }
- }
- }
- //입원환자조회
- function lf_getPatinfo(){
- var sInDsName = dsf_createDsRow("in_ds_search"
- , [{col: "searchtext", val: ipt_refval.value} //등록번호
- , {col: "searchgbn", val: rdo_refflag.value}]); // 조회구분
- ds_grid_grd_patinfo.clearData();
- var oParam = {};
- oParam.id = "TRLLP90401";
- oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
- oParam.method = "reqGetPatInDD";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_grd_patinfo=getPatInDD";
- oParam.async = false;
- tranf_submit(oParam);
- if(ds_grid_grd_patinfo.rowcount>0){
- lf_getPatinfolist();
- }
- }
- //전실내역조회
- function lf_getPatinfolist(){
- var pid = ds_grid_grd_patinfo.getColumn(ds_grid_grd_patinfo.rowposition,"pid");
- var indd = ds_grid_grd_patinfo.getColumn(ds_grid_grd_patinfo.rowposition,"indd");
- var sInDsName = dsf_createDsRow("in_ds_search"
- , [{col: "pid", val: pid} //등록번호
- , {col: "indd", val: indd}]); // 조회구분
- ds_grid_grd_patlist.clearData();
-
- if(indd != null){
- var oParam = {};
- oParam.id = "TRMNW12401";
- oParam.service = "wardcareapp.WardCareMngt";
- oParam.method = "reqGetChngRoomStat";
- oParam.inds = "req="+sInDsName;
- oParam.outds = "ds_grid_grd_patlist=patlist";
- oParam.async = false;
- tranf_submit(oParam);
- }else{
- sysf_messageBox("입원환자가 아닙니다.","I");
- return;
- }
- }
-
- function SPLLP90400_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 화면공통
-
- rdo_refflag.value="1";
- lf_setInit();
-
- //그리드 Sort
- grdf_setGridSort(grd_patinfo);
- grdf_setGridSort(grd_patlist);
- }
- //조회버튼
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_getPatinfo();
- }
- //검색어 입력 후 엔터
- function ipt_refval_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode=="13"){
- lf_getPatinfo();
- }
- }
- //입원환자조회 그리드 클릭해 전실내역조회
- function grd_patinfo_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- lf_getPatinfolist();
- }
- //검색구분 변경하면 검색어 null
- function rdo_refflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- ipt_refval.value="";
- if(rdo_refflag.value == 1){ // 등록번호
- ipt_refval.maxlength = "9";
- ipt_refval.inputtype = "digit";
-
- }else{ // 환자명
- //ipt_refval.lengthunit = "utf8";
- ipt_refval.maxlength = "50";
- ipt_refval.inputtype = "normal";
- }
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|