123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNW04703" position="absolute 0 0 337 300" titletext="피부욕창관찰기록파일첨부" oninit="SPMNW04703_oninit" onload="SPMNW04703_onload">
- <Layouts>
- <Layout>
- <Static text="피부욕창관찰기록파일첨부" position="absolute 0 0 190 25" id="caption6" class="tit_1"/>
- <Grid position="absolute 0 48 335 298" id="grd_report" binddataset="ds_main_list_reportlist" oncelldblclick="grd_report_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="334"/>
- <Column size="0"/>
- <Column size="0"/>
- <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 text="제목"/>
- <Cell col="1" text="REPORTID"/>
- <Cell col="2"/>
- <Cell col="3"/>
- <Cell col="4"/>
- <Cell col="5"/>
- <Cell col="6"/>
- </Band>
- <Band id="body">
- <Cell style="align:left middle;" text="bind:filenm"/>
- <Cell col="1" text="bind:reportid"/>
- <Cell col="2" text="bind:filesize"/>
- <Cell col="3" text="bind:filetype"/>
- <Cell col="4" text="bind:filepath"/>
- <Cell col="5" text="bind:pid"/>
- <Cell col="6" text="bind:grupcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 95 28 159 47" id="button1" class="btn2" text="새로고침" onclick="button1_onclick"/>
- <Button position="absolute 249 28 291 47" id="btn_upload" class="btn5" text="저장" onclick="btn_upload_onclick"/>
- <Button position="absolute 161 28 203 47" id="button2" class="btn2" text="추가" onclick="button2_onclick"/>
- <Button position="absolute 205 28 247 47" id="button3" class="btn2" text="삭제" onclick="button3_onclick"/>
- <Button position="absolute 293 28 335 47" id="button4" class="btn2" text="닫기" onclick="button4_onclick"/>
- <Grid position="absolute 0 163 335 288" id="grd_attach" visible="false" binddataset="ds_send_attach">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="334"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="파일경로"/>
- </Band>
- <Band id="body">
- <Cell text="bind:file"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" 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="obsrecseq" type="INT" size="256" sumtext="욕창기록순번"/>
- <Column id="grupcd" type="STRING" size="256" sumtext="그룹코드"/>
- <Column id="reportid" type="STRING" size="256" sumtext="보고서ID"/>
- <Column id="filepath" type="STRING" size="256" sumtext="파일경로"/>
- <Column id="filenm" type="STRING" size="256"/>
- <Column id="filesize" type="STRING" size="256"/>
- <Column id="filetype" type="STRING" size="256"/>
- <Column id="send" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" 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="obsrecseq" type="INT" size="256" sumtext="욕창기록순번"/>
- <Column id="grupcd" type="STRING" size="256" sumtext="그룹코드"/>
- <Column id="reportid" type="STRING" size="256" sumtext="보고서ID"/>
- <Column id="filepath" type="STRING" size="256" sumtext="파일경로"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_list_reportlist" 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="obsrecseq" type="STRING" size="256" sumtext="욕창기록순번"/>
- <Column id="grupcd" type="STRING" size="256" sumtext="그룹코드"/>
- <Column id="reportid" type="STRING" size="256" sumtext="레포트번호"/>
- <Column id="filepath" type="STRING" size="256" sumtext="ftp경로"/>
- <Column id="filenm" type="STRING" size="256" sumtext="원본파일명"/>
- <Column id="filesize" type="STRING" size="256" sumtext="파일크기"/>
- <Column id="filetype" type="STRING" size="256" sumtext="파일형식"/>
- <Column id="cnt" type="STRING" size="256" sumtext="파일첨부갯수"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_attach" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="filenm" type="STRING" size="256" sumtext="첨부파일명"/>
- <Column id="filedata" type="BLOB" size="256" sumtext="첨부파일데이터"/>
- <Column id="filesize" type="STRING" size="256" sumtext="첨부파일크기"/>
- <Column id="filetype" type="STRING" size="256" sumtext="파일종류"/>
- <Column id="file" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_attachfile" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="filedata" type="STRING" size="256" sumtext="파일데이터"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_wardcarexp -> SPMNW04703
- * Creator : yjh
- * Make Date : 2016-02-23
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-02-23 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "emr_wardcarexp::SPMNW04703.xjs"; //yjh : 커밋
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description :
- ****************************************************************************************/
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNW04703
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SPMNW04703_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNW04703
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SPMNW04703_onload(obj:Form, e:LoadEventInfo)
- {
- fInit();
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_report
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 셀 더블클릭시
- ****************************************************************************************/
- function grd_report_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fDownLoad();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 새로고침버튼 클릭시
- ****************************************************************************************/
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- if(isUpdated && sysf_messageBox('파일을 다시', 'Q005') == 6)
- fInit();
- else if(!isUpdated)
- fInit();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 추가버튼 클릭시
- ****************************************************************************************/
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fAddRow();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 삭제버튼 클릭시
- ****************************************************************************************/
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- fDelete(grd_report.currentrow);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_upload
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 저장버튼 클릭시
- ****************************************************************************************/
- function btn_upload_onclick(obj:Button, e:ClickEventInfo)
- {
- fSave();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button4
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 닫기버튼 클릭시
- ****************************************************************************************/
- function button4_onclick(obj:Button, e:ClickEventInfo)
- {
- //첨부파일갯수를 리턴한다.
- var cnt = ds_main_list_reportlist.getColumn(0, "cnt");
- if( utlf_isNull(cnt) ){
- cnt = 0;
- }
- //alert('개수 : ' + cnt);
- opener.frmf_setParameter('retCnt', cnt);
-
- close();
- }
- ]]></Script>
- </Form>
- </FDL>
|