123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMND02600" position="absolute 0 0 1202 791" titletext="T-set 관리현황 조회" onload="SMMND02600_onload">
- <Layouts>
- <Layout>
- <Div id="group3" scrollbars="autoboth" position="absolute 0 13 1195 757" style="">
- <Layouts>
- <Layout>
- <Div id="grp_sea" position="absolute 0 10 1194 45" style="align: top;" class="div_SA">
- <Layouts>
- <Layout>
- <Static id="caption2" class="search_name" position="absolute 320 10 406 27" style="" text="조회기간 :" anchor="default"/>
- <Button id="button1" class="btn1" position="absolute 1038 7 1094 29" style="" text="조회" onclick="group3_grp_sea_button1_onclick" anchor="default"/>
- <Shape id="line13" class="line_4" linetype="vertical" position="absolute 1022 7 1025 29" style="" anchor="default"/>
- <Calendar id="ipt_fromdd" class="input_s_essential" position="absolute 411 8 504 27" style="" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
- <Static id="caption1" position="absolute 509 11 524 26" style="font:,,bold;" text="~" anchor="default"/>
- <Calendar id="ipt_todd" class="input_s_essential" position="absolute 523 8 616 27" style="" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
- <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="rdo_exchdd" class="radio_search" position="absolute 133 8 289 28" style="background:transparent ;" onitemchanged="group3_grp_sea_rdo_exchdd_onitemchanged" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </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>
- <Button id="button2" class="btn7" position="absolute 1096 7 1176 29" style="" text="엑셀저장" onclick="group3_grp_sea_button2_onclick" anchor="default"/>
- <Button id="button3" class="btn6" visible="false" position="absolute 955 6 1011 28" style="" text="출력" anchor="default"/>
- <Static id="caption3" class="search_name" position="absolute 20 9 132 26" style="" text="조회일자기준 :" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 0 56 1194 60" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
- <Grid id="grd_mngtprescondinfo" binddataset="ds_main_mngtprescondlist_mngtprescondinfo" position="absolute 0 60 1194 740" style="align:center ;">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="150"/>
- <Column size="168"/>
- <Column size="92"/>
- <Column size="165"/>
- <Column size="165"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="등록번호"/>
- <Cell col="1" text="환자명"/>
- <Cell col="2" text="S_A"/>
- <Cell col="3" text="교환일자"/>
- <Cell col="4" text="교환예정일"/>
- </Band>
- <Band id="body">
- <Cell text="bind:pid"/>
- <Cell col="1" text="bind:hngnm"/>
- <Cell col="2" text="bind:sexage"/>
- <Cell col="3" displaytype="date" text="bind:exchdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- <Cell col="4" displaytype="date" text="bind:scheexchdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" class="tit_1" position="absolute 0 0 157 23" style="" text="T-set 관리현황조회"/>
- <Div id="grp_btn" position="absolute 3 757 1191 784" style=""/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="exchdd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_mngtprescondlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_mngtprescondlist_mngtprescondinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="sexage" type="STRING" size="256"/>
- <Column id="exchdd" type="STRING" size="256"/>
- <Column id="scheexchdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="sexage"/>
- <Col id="exchdd"/>
- <Col id="scheexchdd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.grp_sea.ipt_fromdd" propid="value" datasetid="ds_send_cond" columnid="fromdd"/>
- <BindItem id="item1" compid="group3.grp_sea.ipt_todd" propid="value" datasetid="ds_send_cond" columnid="todd"/>
- <BindItem id="item2" compid="group3.grp_sea.rdo_exchdd" propid="value" datasetid="ds_send_cond" columnid="exchdd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include 'com_commonxp::comm_main.xjs';
- //include 'emr_dialroomxp::SMMND02600.xjs';
- function SMMND02600_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- grdf_initGrid(group3.grd_mngtprescondinfo);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- //setHelp(); // 온라인 도움말 화면이 있는 경우 ready 에서 실행.
- fInit(); // 초기화
- fSrchMngtPresCond(); // t-set관리현황을 조회
- }
- // header파일 중 SMMND02600.js 파일 시작
- /*
- T-set관리현황조회 (SMMND02600.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- /**
- * _group :
- * _ver : 2007.11.05
- * _by : 김진아
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : 초기화
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fInit(){
- //초기화
- // var currentdate = utlf_getCurrentDate();
- // var sdate = ((currentdate.toDate()).getAddDate(-1, "M")).getDateFormat();
- // ds_send_cond.setColumn( 0, "fromdd", sdate); //시작일
-
- ds_send_cond.clearData();
- ds_send_cond.addRow();
- ds_send_cond.setColumn( 0, "fromdd", utlf_getCurrentDate().toDate().getAddDate(-1, "M").getDateFormat()); //시작일
- ds_send_cond.setColumn( 0, "todd" , utlf_getCurrentDate().toDate().getAddDate( 1, "M").getDateFormat()); //종료일
- ds_send_cond.setColumn( 0, "exchdd", "2"); //교환일자, 교환예정일 구분 -> default는 교환일자
- //ds_main_mngtprescondlist.clearData(); //그리드초기화
- fSrchMngtPresCond();
- }
- /**
- * _group :
- * _ver : 2007.10.10
- * _by : 김달현
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : 교환일자_교환예정일 별 t-set관리현황을 조회한다.
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fSrchMngtPresCond(){
- var exchdd = ds_send_cond.getColumn(0, "exchdd"); //교환일자_교환예정일 구분
- //조회조건
- if(exchdd == "2"){
- group3.grp_sea.caption2.visible = true;
- group3.grp_sea.ipt_fromdd.visible = true;
- group3.grp_sea.ipt_todd.visible = true;
- group3.grp_sea.caption1.visible = true;
- //ds_send_cond.setColumn( 0, "fromdd", utlf_getCurrentDate().toDate().getAddDate(-1, "M").getDateFormat()); //시작일
- //ds_send_cond.setColumn( 0, "todd" , utlf_getCurrentDate().toDate().getAddDate( 1, "M").getDateFormat()); //종료일
- }else{
- group3.grp_sea.caption2.visible = false;
- group3.grp_sea.ipt_fromdd.visible = false;
- group3.grp_sea.ipt_todd.visible = false;
- group3.grp_sea.caption1.visible = false;
- }
- var sdate = ds_send_cond.getColumn(0, "fromdd"); //시작일
- var edate = ds_send_cond.getColumn(0, "todd"); //종료일
- ds_send_cond.setColumn( 0, "fromdd", sdate); //시작일
- ds_send_cond.setColumn( 0, "todd" , edate); //종료일
- ds_send_cond.setColumn( 0, "exchdd", exchdd); //교환일자, 교환예정일 구분 -> default는 교환일자
- ds_main_mngtprescondlist_mngtprescondinfo.clearData(); //그리드초기화
-
- //submit("TRMND02601");
- var oParam = {};
- oParam.id = "TRMND02601";
- oParam.service = "dialapp.DialSpcl";
- oParam.method = "reqGetTSetMngtPresCondRef";
- oParam.inds = "req=ds_send_cond";
- oParam.outds = "ds_main_mngtprescondlist_mngtprescondinfo=mngtprescondinfo";
- oParam.async = false;
- tranf_submit(oParam);
- }
- // header파일 중 SMMND02600.js 파일 끝
- function group3_grp_sea_button1_onclick(obj:Button, e:ClickEventInfo) {
- fSrchMngtPresCond(); // t-set관리현황을 조회
- }
- function group3_grp_sea_rdo_exchdd_onitemchanged(obj:Radio, e:ItemChangeEventInfo) {
- if(group3.grp_sea.rdo_exchdd.value == "2"){
- ds_send_cond.setColumn( 0, "fromdd", utlf_getCurrentDate().toDate().getAddDate(-1, "M").getDateFormat()); //시작일
- ds_send_cond.setColumn( 0, "todd" , utlf_getCurrentDate().toDate().getAddDate( 1, "M").getDateFormat()); //종료일
- }else{
- ds_send_cond.setColumn( 0, "fromdd", ""); //시작일
- ds_send_cond.setColumn( 0, "todd" , ""); //종료일
- }
- fSrchMngtPresCond(); // t-set관리현황을 조회
- }
- function group3_grp_sea_button2_onclick(obj:Button, e:ClickEventInfo) {
- // var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- //
- // if (fileName != "")
- // {
- grdf_exportExcel(group3.grd_mngtprescondinfo, "Sheet1", "T-set 관리현황", false, "" , 'user' , true);
- // }
- }
- ]]></Script>
- </Form>
- </FDL>
|