123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMASI01400" position="absolute 0 0 1196 790" titletext="법정전염병전귀보고조회" oninit="SMASI01400_oninit" onload="SMASI01400_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1195 784" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1195 784" align="align:center top;" id="group2">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 756 1194 762" id="line4" class="line_3" anchor="left right bottom"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 759 1195 786" id="grp_btn" anchor="left right bottom">
- <Layouts>
- <Layout>
- <Button position="absolute 1127 4 1195 26" id="btn_init" class="btn4" text="초기화" onclick="grp_btn_btn_init_onclick" anchor="top right"/>
- <Button position="absolute 0 3 56 25" id="btn_print" class="btn6" text="출력" anchor="default" visible="false"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 13 1195 757" id="grp_biz" scrollbars="autoboth" anchor="all">
- <Layouts>
- <Layout>
- <Div position="absolute 0 12 1194 52" align="align:center top;" id="group1" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape position="absolute 1107 12 1113 30" linetype="vertical" id="line8" class="line_4" anchor="top right"/>
- <Button position="absolute 1125 10 1181 32" id="btn_search" class="btn1" text="조회" onclick="grp_biz_group1_btn_search_onclick" anchor="top right"/>
- <Static text="구분 :" position="absolute 760 12 816 29" id="caption1" class="search_name" anchor="default"/>
- <Static text="~" position="absolute 205 11 225 31" id="caption4" anchor="default"/>
- <Calendar position="absolute 220 11 335 30" id="ipt_todd" class="input_default" autoselect="true" anchor="default"/>
- <Static text="진단일 :" position="absolute 15 13 83 30" id="caption14" class="search_name" anchor="default"/>
- <Static text="법정전염병 종류 :" position="absolute 405 13 530 30" id="caption15" class="search_name" anchor="default"/>
- <Calendar position="absolute 83 11 198 30" id="ipt_fromdd" class="input_default" autoselect="true" anchor="default"/>
- <cp_checkboxList id="chk_lglydiskind" titletext="CheckBox List" taborder="1" scrollbars="none" position="absolute 530 10 685 30" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible" anchor="default"/>
- <cp_checkboxList id="chk_flag" titletext="CheckBox List" taborder="2" scrollbars="none" position="absolute 815 10 1025 30" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Button position="absolute 1136 54 1194 76" id="btn_excel" class="btn7" text="엑셀" onclick="grp_biz_btn_excel_onclick" anchor="top right"/>
- <Shape position="absolute 0 76 1193 82" linetype="horizontal" id="line1" class="line_10" anchor="left top right"/>
- <Grid position="absolute 0 81 1195 744" id="grd_lglydisrept" binddataset="ds_main_lglydisreptinfo_lglydisreptlist" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="150"/>
- <Column size="150"/>
- <Column size="150"/>
- <Column size="150"/>
- <Column size="150"/>
- <Column size="130"/>
- <Column size="80"/>
- <Column size="130"/>
- <Column size="80"/>
- </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" expr="expr:currow + 1"/>
- <Cell col="1" text="bind:pid"/>
- <Cell col="2" text="bind:patnm"/>
- <Cell col="3" text="bind:orddept"/>
- <Cell col="4" text="bind:kind"/>
- <Cell col="5" text="bind:rept"/>
- <Cell col="6" displaytype="date" text="bind:reptdd" calendardisplaynulltype="none"/>
- <Cell col="7" text="bind:lglydisrept"/>
- <Cell col="8" displaytype="date" text="bind:lglydisreptdd" calendardisplaynulltype="none"/>
- <Cell col="9" text="bind:flag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="법정전염병 전귀보고조회" class="tit_1" position="absolute 0 0 183 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256" sumtext="진단시작일자"/>
- <Column id="todd" type="STRING" size="256" sumtext="진단종료일자"/>
- <Column id="lglydiskind" type="STRING" size="256" sumtext="법정전염병종류"/>
- <Column id="flag" type="STRING" size="256" sumtext="구분"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_lglydisreptinfo_lglydisreptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="orddept" type="STRING" size="256" sumtext="진료과"/>
- <Column id="kind" type="STRING" size="256" sumtext="종류"/>
- <Column id="rept" type="STRING" size="256" sumtext="신고"/>
- <Column id="reptdd" type="STRING" size="256" sumtext="신고일자"/>
- <Column id="lglydisrept" type="STRING" size="256" sumtext="전귀보고"/>
- <Column id="lglydisreptdd" type="STRING" size="256" sumtext="전귀일자"/>
- <Column id="flag" type="STRING" size="256" sumtext="구분"/>
- </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="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="lglydiskind" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_lglydiskind" 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">1군</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="value">2</Col>
- <Col id="label">2군(일본뇌염)</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_flag" 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">A</Col>
- </Row>
- <Row>
- <Col id="label">입원</Col>
- <Col id="value">I</Col>
- </Row>
- <Row>
- <Col id="label">외래</Col>
- <Col id="value">O</Col>
- </Row>
- <Row>
- <Col id="label">응급</Col>
- <Col id="value">E</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_curdt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="curdt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.group1.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
- <BindItem id="item1" compid="grp_biz.group1.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : ast_infcmngtxp -> SMASI01400
- * Creator : yjh
- * Make Date : 2017-09-25
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-09-25 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function fInitialize() {
- ds_main_lglydisreptinfo_lglydisreptlist.clearData();
- //zbcfGetCodeList(new Array("P0149", "P0160"), new Array("/root/init/initdata/P0149list", "/root/init/initdata/P0160list"));
-
- ds_init_curdt.setColumn(0, "curdt", utlf_getCurrentDate());
- var idate=new Date();
- var frDate=idate.getAddDate(-1, "M");
-
- ds_main_cond.setColumn(0, "fromdd", frDate.getDateFormat());
- ds_main_cond.setColumn(0, "todd", ds_init_curdt.getColumn(0, "curdt"));
- //submit("TRASI01401");
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMASI01400
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SMASI01400_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMASI01400
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SMASI01400_onload(obj:Form, e:LoadEventInfo)
- {
- ds_main_cond.setColumn(0, "flag", "A");
-
- grdf_setGridSort(grp_biz.grd_lglydisrept);
-
- var sProp="col="+ds_lglydiskind.rowcount+",row=1,cellspacing=15,vcellspacing=2,itemWidth=-1,itemHeight=20,overflow='visible'";
- grp_biz.group1.chk_lglydiskind.setInitComp(sProp, ds_lglydiskind,"value","label","fn_mChklglydiskind");
-
- var sProp="col="+ds_flag.rowcount+",row=1,cellspacing=15,vcellspacing=2,itemWidth=-1,itemHeight=20,overflow='visible'";
- grp_biz.group1.chk_flag.setInitComp(sProp, ds_flag,"value","label","fn_mChkflag");
-
- grp_biz.group1.chk_flag.setData(utlf_transNullToEmpty(ds_main_cond.getColumn(0,"flag")).split(" "), null,false);
-
- fInitialize();
- }
- /**
- * @group :
- * @ver : 2016.02.29
- * @by : 윤주호
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : MultiCheckBox 값 셋팅
- * @param :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fn_mChklglydiskind(){
- var rtn = "";
- var tmp = "";
-
- rtn = grp_biz.group1.chk_lglydiskind.getData();
-
- for( var i=0 ; i<rtn.length ; i++ ){
- if( i == 0 ) tmp = rtn[i];
- else tmp = tmp + " " +rtn[i];
- }
-
- ds_main_cond.setColumn(0, "lglydiskind", tmp);
- }
- function fn_mChkflag(){
- var rtn = "";
- var tmp = "";
-
- rtn = grp_biz.group1.chk_flag.getData();
-
- for( var i=0 ; i<rtn.length ; i++ ){
- if( i == 0 ) tmp = rtn[i];
- else tmp = tmp + " " +rtn[i];
- }
-
- ds_main_cond.setColumn(0, "flag", tmp);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_init
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 초기화버튼 클릭시
- ****************************************************************************************/
- function grp_btn_btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_lglydisreptinfo_lglydisreptlist.clearData();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_search
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회버튼 클릭시
- ****************************************************************************************/
- function grp_biz_group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if( utlf_isNull(ds_main_cond.getColumn(0, "fromdd")) || utlf_isNull(ds_main_cond.getColumn(0, "todd")) ) {
- sysf_messageBox("일자는", "I003");
- return;
- }
-
- ds_send_cond.copyRow(0, ds_main_cond, 0);
-
- var oParam = {};
- oParam.id = "TRASI01401";
- oParam.service = "infcmngtapp.LglyDisMngt";
- oParam.method = "reqGetLglyDisReptList";
- oParam.inds = "req=ds_send_cond";
- oParam.outds = "ds_main_lglydisreptinfo_lglydisreptlist=lglydisreptlist";
- oParam.async = false;
- //oParam.callback = "cf_TRASI01401";
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_excel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀버튼 클릭시
- ****************************************************************************************/
- function grp_biz_btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- //if( group3.group2.grd_brstraytestrsltlist.rowcount > 0 ){
- grdf_exportExcel(grp_biz.grd_lglydisrept, "법정전염병전귀보고", "법정전염병전귀보고", false, "", "user", false);
- // } else {
- // sysf_messageBox("조회된 데이터가 ", "I004");
- // return;
- // }
- }
- ]]></Script>
- </Form>
- </FDL>
|