123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNW19200" position="absolute 0 0 805 605" titletext="뇌사추정자 리스트 조회" oninit="SMMNW19200_oninit" onload="SMMNW19200_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 805 25" id="grp_tle">
- <Layouts>
- <Layout>
- <Static text="뇌사추정자 리스트 조회" position="absolute 0 0 171 25" id="caption6" class="tit_1"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 13 805 605" id="grp_biz">
- <Layouts>
- <Layout>
- <Div position="absolute 1 12 804 67" align="align:center top;" id="grp_sea">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 0 803 55" id="roundrect1" type="roundrectangle" anchor="default"/>
- <Button position="absolute 630 15 686 37" id="button3" class="btn1" text="조회" onclick="grp_biz_grp_sea_button3_onclick" anchor="default"/>
- <Shape position="absolute 597 15 603 37" linetype="vertical" id="line13" class="line_4" anchor="default"/>
- <Calendar position="absolute 83 20 183 39" id="ipt_searchdd" class="input_default" autoselect="true" anchor="default"/>
- <Static text="조회일자 :" position="absolute 8 22 79 39" id="caption9" class="search_name" anchor="default"/>
- <Button position="absolute 694 15 774 37" id="button1" class="btn1" text="엑셀저장" onclick="grp_biz_grp_sea_button1_onclick" anchor="default"/>
- <CheckBox position="absolute 215 20 345 38" id="chk_deptflag" class="checkbox_search" text="GCS 점수 조건해제" truevalue="Y" anchor="default"/>
- <CheckBox position="absolute 355 20 545 38" id="checkbox1" class="checkbox_search" text="Pupil Reflex(Fixed) 조건포함" truevalue="Y" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 90 800 96" linetype="horizontal" id="line16" class="line_10"/>
- <Static text="뇌사추정자자 리스트" position="absolute 0 74 150 90" align="align:center middle;" id="caption26" class="tit_2"/>
- <Grid position="absolute 0 95 800 587" id="grd_rsrv" binddataset="ds_main_rsrvlist_rsrvinfo" onmousemove="grp_biz_grd_rsrv_onmousemove" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="138"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="90"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="▶"/>
- <Cell col="1" text="병실"/>
- <Cell col="2" text="병상"/>
- <Cell col="3" text="등록번호"/>
- <Cell col="4" text="이름"/>
- <Cell col="5" text="S/A"/>
- <Cell col="6" text="진료과"/>
- <Cell col="7" text="주치의"/>
- <Cell col="8" text="담당의"/>
- <Cell col="9" text="입원일자"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow == ds_main_rsrvlist_rsrvinfo.rowposition ? "▶" : """/>
- <Cell col="1" style="align:center middle;" text="bind:wardnm"/>
- <Cell col="2" style="align:center middle;" text="bind:bedcd"/>
- <Cell col="3" style="align:center middle;" text="bind:pid"/>
- <Cell col="4" style="align:center middle;" text="bind:patnm"/>
- <Cell col="5" style="align:center middle;" text="bind:sexage"/>
- <Cell col="6" style="align:center middle;" text="bind:orddeptnm"/>
- <Cell col="7" style="align:center middle;" text="bind:medispclnm"/>
- <Cell col="8" style="align:center middle;" text="bind:atdoctnm"/>
- <Cell col="9" style="align:center middle;" text="bind:indd" mask="####-##-##"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_cond_oncolumnchanged">
- <ColumnInfo>
- <Column id="searchdd" type="STRING" size="256"/>
- <Column id="gcsflag" type="STRING" size="256"/>
- <Column id="prflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_rsrvlist_rsrvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_ward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="wardnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="depthngnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_settingrn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="settingrnid" type="STRING" size="256"/>
- <Column id="settingrnnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.grp_sea.ipt_searchdd" propid="value" datasetid="ds_main_cond" columnid="searchdd"/>
- <BindItem id="item1" compid="grp_biz.grp_sea.chk_deptflag" propid="value" datasetid="ds_main_cond" columnid="gcsflag"/>
- <BindItem id="item2" compid="grp_biz.grp_sea.checkbox1" propid="value" datasetid="ds_main_cond" columnid="prflag"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-11-17
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-11-17 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- var arErrorCode = new HashArray();
- function cf_TRMNW19100(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- if(nErrorCode < 0) return;
- utlf_addLog("***** cf_TRMNW19100 *****");
- }
- function fInit(){
- //오늘 날짜로 초기화 하는 부분.(진료일자를 default로 오늘 날짜로 선택함)
- ds_send_reqdata.clearData();
-
- fGetRsrvPatientList();
- }
- function fGetRsrvPatientList(){
- var searchdd = ds_main_cond.getColumn(0, "searchdd");
-
- ds_send_reqdata.clearData();
-
- dsf_makeValue(ds_send_reqdata,"searchdd" , "string", searchdd);
- dsf_makeValue(ds_send_reqdata,"gcsflag" , "string", ds_main_cond.getColumn(0, "gcsflag"));
- dsf_makeValue(ds_send_reqdata,"prflag" , "string", ds_main_cond.getColumn(0, "prflag"));
-
-
- // 뇌사추정자 리스트 초기화
- ds_main_rsrvlist_rsrvinfo.clearData();
-
- var oParam = {};
- oParam.id = "TRMNW19100";
- oParam.service = "wardcareapp.WardCareMngt";
- oParam.method = "reqGetBrainDeathPatientList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_rsrvlist_rsrvinfo=rsrvinfo";
- oParam.async = false;
- oParam.callback = "cf_TRMNW19100";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRMNW19100") > -1) {
- if (ds_main_rsrvlist_rsrvinfo.rowcount == 0) {
- sysf_messageBox("출력할 데이터가 존재하지 않습니다.", "I");
- return;
- }
- }
- }
- function fSaveExcel(){
- grdf_exportExcel(grp_biz.grd_rsrv, "검사예약환자리스트_"+utlf_getCurrentDate(), "SheetName" , true, "" , "" , true);
- }
-
- function SMMNW19200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMNW19200_onload(obj:Form, e:LoadEventInfo)
- {
- grp_biz.grp_sea.ipt_searchdd.value = utlf_getCurrentDate() ;// 기준일에 현재날짜(디폴트)
-
- fInit();
- }
- function grp_biz_grp_sea_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetRsrvPatientList();// 뇌사추정자 리스트 조회시
- }
- function grp_biz_grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveExcel();
- }
- function grp_biz_grd_rsrv_onmousemove(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.row >-1 && e.col > -1){
-
- if(!utlf_isNull(grp_biz.grd_rsrv.getCellValue(e.row,e.col))){
- grp_biz.grd_rsrv.tooltiptext = grp_biz.grd_rsrv.getCellValue(e.row,e.col);
- }else{
- grp_biz.grd_rsrv.tooltiptext ="";
- }
-
- }
- }
- function ds_main_cond_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if( e.columnid == "gcsflag" ){
- obj.setColumn(0, "gcsflag", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "");
- }
-
- if( e.columnid == "prflag" ){
- obj.setColumn(0, "prflag", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|