123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMO13900" position="absolute 0 0 581 472" titletext="AJCC조회" onload="SPMMO13900_onload" oninit="SPMMO13900_oninit">
- <Layouts>
- <Layout>
- <Static text="AJCC 내역리스트" position="absolute 0 4 147 21" align="align:center middle;" id="caption18" class="tit_2"/>
- <Grid position="absolute 0 23 580 439" id="grd_AJCClist" scrollbars="fixedvert" taborder="4" binddataset="ds_main_AJCCspeclist" autofittype="col" oncelldblclick="grd_AJCClist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="539"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </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="사용구분"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow+1"/>
- <Cell col="1" style="align:left middle;" text="bind:docutitlnm"/>
- <Cell col="2" text="bind:attfilenm"/>
- <Cell col="3" text="bind:genrdd"/>
- <Cell col="4" text="bind:genrno"/>
- <Cell col="5" displaytype="combo" edittype="combo" text="bind:useyn" combodataset="ds_combo_useyn" combocodecol="value" combodatacol="label"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 524 442 580 464" id="button2" class="btn4" text="닫기" onclick="button2_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_AJCCspeclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="docutitlnm" type="STRING" size="256"/>
- <Column id="attfilenm" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- <Column id="genrdd" type="STRING" size="256"/>
- <Column id="genrno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="docutitlnm"/>
- <Col id="attfilenm"/>
- <Col id="useyn"/>
- <Col id="genrdd"/>
- <Col id="genrno"/>
- </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_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_file" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="attfilenm" type="STRING" size="256"/>
- <Column id="attfilecnts" type="BLOB" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="attfilenm"/>
- <Col id="attfilecnts"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_combo_useyn" 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">Y</Col>
- </Row>
- <Row>
- <Col id="label">미사용</Col>
- <Col id="value">N</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-09-01
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-09-01 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMMO13900
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPMMO13900_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMMO13900
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPMMO13900_onload(obj:Form, e:LoadEventInfo)
- {
-
- //그리드 초기화
- ds_main_AJCCspeclist.clearData();
- //질환병기AJCC테이블에 있는 데이타 조회
- var oParam = {};
- oParam.id = "TRMMO13901";
- oParam.service = "prcpmngtapp.EtcPrcpMngt";
- oParam.method = "reqGetAJCCList";
- //oParam.inds = "";
- oParam.outds = "ds_main_AJCCspeclist=AJCCspeclist";
- oParam.async = false;
- //oParam.callback = "cf_TRMMO13901";
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_AJCClist
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : AJCC 리스트 더블클릭
- ****************************************************************************************/
- function grd_AJCClist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var row = ds_main_AJCCspeclist.rowposition;
- //저장할 파일명, 확장자를 알아내어 저장화면을 화면에 불러온다.
- var filenm = ds_main_AJCCspeclist.getColumn(row,"attfilenm");
- var fileext = filenm.lastIndexOf(".");
- var ext = filenm.substring(fileext +1);
- var filesave = "C:\\Temp\\" + filenm;
-
- if (!utlf_isNull(filesave)) {
- //파일을 키값을 가지고 저장하러 간다
- var getdd = ds_main_AJCCspeclist.getColumn(row,"genrdd");
- var getno = ds_main_AJCCspeclist.getColumn(row,"genrno");
-
- dsf_makeValue(ds_send_reqdata,"genrdd","string",getdd);
- dsf_makeValue(ds_send_reqdata,"genrno","string",getno);
-
- var oParam = {};
- oParam.id = "TRMMO13902";
- oParam.service = "prcpmngtapp.EtcPrcpMngt";
- oParam.method = "reqExeAJCCFileDownLoad";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_init_file=file";
- oParam.async = false;
- //oParam.callback = "cf_TRMMO13902";
- tranf_submit(oParam);
-
- trace(filenm);
-
- var fd = new FileDialog;
- var objVFile = fd.open("FileSave", FileDialog.SAVE, "%MYDOCUMENT%", filenm); // 단일 파일 선택
- if (!utlf_isNull(objVFile)) {
- dsf_readFileFromDs(objVFile.fullpath, ds_init_file, 0, "attfilecnts"); // 파일저장
- }
-
- }
- }
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|