123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNE03300" position="absolute 0 0 667 652" titletext="대기시간별 환자현황" oninit="SMMNE03300_oninit" onload="SMMNE03300_onload">
- <Layouts>
- <Layout>
- <Button id="btn_print" taborder="2" text="출력" class="btn6" position="absolute 0 28 56 50" onclick="btn_print_onclick"/>
- <Static id="caption6" text="대기시간별 환자현황" class="tit_1" position="absolute 0 0 160 25"/>
- <Button id="btn_excel" taborder="4" text="엑셀" onclick="group2_button1_onclick" class="btn7" position="absolute 604 28 660 50" anchor="top right"/>
- <Grid id="grd_nursMngt" class="datagrid2" taborder="5" binddataset="ds_grd_nursMngt" useinputpanel="false" autofittype="col" position="absolute 0 56 660 641">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="70"/>
- <Column size="75"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="105"/>
- <Column size="48"/>
- <Column size="105"/>
- <Column size="105"/>
- <Column size="65"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </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="진료과"/>
- <Cell col="7" text="내원일시"/>
- <Cell col="8" text="퇴실일시"/>
- <Cell col="9" text="대기(분)"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" text="bind:pid"/>
- <Cell col="2" text="bind:patnm"/>
- <Cell col="3" text="bind:sex"/>
- <Cell col="4" text="bind:age"/>
- <Cell col="5" text="bind:rrgstno"/>
- <Cell col="6" text="bind:orddept"/>
- <Cell col="7" displaytype="normal" text="bind:chosdt" mask="expr:utlf_isNull(chosdt) ?"" : '####-##-## ##:##'"/>
- <Cell col="8" displaytype="normal" text="bind:outrmdt" mask="expr:utlf_isNull(outrmdt) ?"" : '####-##-## ##:##'"/>
- <Cell col="9" text="bind:staytm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line6" class="line_1" position="absolute 0 54 660 60" style="strokepen:3 solid #33bbbbff;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_nursMngt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="sex" type="STRING" size="256" sumtext="성별"/>
- <Column id="age" type="STRING" size="256" sumtext="나이"/>
- <Column id="rrgstno" type="STRING" size="256" sumtext="주민등록번호"/>
- <Column id="orddept" type="STRING" size="256" sumtext="진료과"/>
- <Column id="chosdt" type="STRING" size="256" sumtext="내원일시"/>
- <Column id="outrmdt" type="STRING" size="256" sumtext="퇴실일시"/>
- <Column id="staytm" type="STRING" size="256" sumtext="체류시간"/>
- <Column id="srchdate" type="STRING" size="256" sumtext="조회일자"/>
- <Column id="totm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /******************************************************************
- * Argument :
- * Description : oninit 메서드 호출
- ******************************************************************/
- function SMMNE03300_oninit(obj:Form, e:InitEventInfo){
- // 화면공통
- frmf_initForm(obj);
-
- ds_grd_nursMngt.copyData(arg_ds_patlist);
- }
- /******************************************************************
- * Argument :
- * Description : onload 메서드 호출
- ******************************************************************/
- function SMMNE03300_onload(obj:Form, e:LoadEventInfo){
- }
- /******************************************************************
- * Argument :
- * Description : 출력 버튼 클릭 이벤트
- ******************************************************************/
- function btn_print_onclick(obj:Button, e:ClickEventInfo){
- var objDOM = rptf_createDOM(); // DOM 객체 설정
- rptf_setNodeListToDOM(objDOM, "/root/main/list/patlist", ds_grd_nursMngt); // 데이터셋
- // 노드 추가
- rptf_setValueToDOM(objDOM, 'root/main/list/totime', titletotm);
- rptf_setValueToDOM(objDOM, 'root/main/list/srcdate', srcdate);
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
-
- var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
-
- rptf_exeReportPreview30(["RPMNE03300"],[objParam], option);
- }
- /******************************************************************
- * Argument :
- * Description : 엑셀 버튼 클릭 이벤트
- ******************************************************************/
- function group2_button1_onclick(obj:Button, e:ClickEventInfo){
- grdf_exportExcel(grd_nursMngt, "대기시간별 환자현황" + "", "Sheet1", true, "", "user", true);
- }
- ]]></Script>
- </Form>
- </FDL>
|