123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMMP01000_CP마스터정보" classname="SMMMP01000_CP마스터정보" inheritanceid="" position="absolute 0 0 551 365" titletext="CP정보" oninit="SMMMP01000_oninit" onload="SMMMP01000_onload">
- <Layouts>
- <Layout>
- <Static id="caption1" text="CP 정보" class="tit_1" position="absolute 0 0 117 20"/>
- <Static id="cap_cpaprvno" text="CP명" class="cell_1" position="absolute 0 24 93 47"/>
- <Static id="cap_cpaprvno00" text="진료과" class="cell_1" position="absolute 0 49 93 72"/>
- <Static id="cap_cpaprvno01" text="재원일수(일)" class="cell_1" position="absolute 0 74 93 97"/>
- <Static id="cap_cpaprvno04" text="적용일" class="cell_1" position="absolute 0 99 93 122"/>
- <Static id="cap_cpaprvno06" text="메모" class="cell_1" position="absolute 0 124 93 147"/>
- <Grid id="grd_attfile" taborder="11" binddataset="ds_temp_trmqp_rslt_attach" useinputpanel="false" position="absolute 95 150 551 365" anchor="all" autofitbandtype="body" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="488"/>
- <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="caption1"/>
- <Cell col="4" text="caption2"/>
- <Cell col="5" text="path"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" style="align:left;" text="bind:attfilenm"/>
- <Cell col="2" text="bind:file"/>
- <Cell col="3" text="bind:detlinfoseq"/>
- <Cell col="4" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:check == 'true' || check == '1' ? 1 : 0"/>
- <Cell col="5" text="bind:path"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="cap_attfile" text="CP자료" class="cell_1" position="absolute 0 149 93 365" anchor="left top bottom"/>
- <Button id="button_download" taborder="12" text="다운" class="btn2" position="absolute 2 340 91 363" anchor="left bottom" onclick="button_download_onclick"/>
- <Static id="Static00" position="absolute 95 24 551 47" style="border:1 solid #808080ff ;padding:0 0 0 5;" anchor="left top right"/>
- <Static id="Static01" position="absolute 95 49 551 72" style="border:1 solid #808080ff ;padding:0 0 0 5;"/>
- <Static id="Static02" position="absolute 95 74 551 97" style="border:1 solid #808080ff ;padding:0 0 0 5;" anchor="left top right"/>
- <Static id="Static04" position="absolute 95 124 551 147" style="border:1 solid #808080ff ;padding:0 0 0 5;" anchor="left top right"/>
- <Calendar id="Calendar00" taborder="13" position="absolute 95 99 551 122" style="daybackground:transparent;background:transparent 5,5;border:1 solid #808080ff ;" readonly="true"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="indd" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_trmqp_rslt_masterinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cpgnm" type="STRING" size="256"/>
- <Column id="cpgorddeptcd" type="STRING" size="256"/>
- <Column id="cpaprvno" type="STRING" size="256"/>
- <Column id="swimlineno" type="STRING" size="256"/>
- <Column id="fcstinhospdayno" type="STRING" size="256"/>
- <Column id="appdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="lastupdtdt" type="STRING" size="256"/>
- <Column id="cpgmemo" type="STRING" size="256"/>
- <Column id="cpgno" type="STRING" size="256"/>
- <Column id="cpghistseq" type="STRING" size="256"/>
- <Column id="cpgflagcd" type="STRING" size="256"/>
- <Column id="reqrid" type="STRING" size="256"/>
- <Column id="rgstrid" type="STRING" size="256"/>
- <Column id="cpglasthistyn" type="STRING" size="256"/>
- <Column id="tmpyn" type="STRING" size="256"/>
- <Column id="fstrgstrid" type="STRING" size="256"/>
- <Column id="fstrgstdt" type="STRING" size="256"/>
- <Column id="lastupdtrid" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="cpkind" type="STRING" size="256"/>
- <Column id="reqrnm" type="STRING" size="256"/>
- <Column id="rgstrnm" type="STRING" size="256"/>
- <Column id="cretdd" type="STRING" size="256"/>
- <Column id="orgcpgnm" type="STRING" size="256"/>
- <Column id="ioflagcd" type="STRING" size="256"/>
- <Column id="cpgtypecd" type="STRING" size="256"/>
- <Column id="valusgeyn" type="STRING" size="256"/>
- <Column id="valunm" type="STRING" size="256"/>
- <Column id="cpgorddeptnm" type="STRING" size="256"/>
- <Column id="startdd" type="STRING" size="256"/>
- <Column id="enddd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cpgnm"/>
- <Col id="cpgorddeptcd"/>
- <Col id="cpaprvno"/>
- <Col id="swimlineno"/>
- <Col id="fcstinhospdayno"/>
- <Col id="appdd"/>
- <Col id="todd"/>
- <Col id="lastupdtdt"/>
- <Col id="cpgmemo"/>
- <Col id="cpgno"/>
- <Col id="cpghistseq"/>
- <Col id="cpgflagcd">01</Col>
- <Col id="reqrid"/>
- <Col id="rgstrid"/>
- <Col id="cpglasthistyn"/>
- <Col id="tmpyn"/>
- <Col id="fstrgstrid"/>
- <Col id="fstrgstdt"/>
- <Col id="lastupdtrid"/>
- <Col id="instcd"/>
- <Col id="cpkind"/>
- <Col id="reqrnm"/>
- <Col id="rgstrnm"/>
- <Col id="cretdd"/>
- <Col id="orgcpgnm"/>
- <Col id="ioflagcd">I</Col>
- <Col id="cpgtypecd">D</Col>
- <Col id="valusgeyn">N</Col>
- <Col id="valunm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_trmqp_rslt_attach" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="attfilenm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item2" compid="Static00" propid="text" datasetid="ds_temp_trmqp_rslt_masterinfo" columnid="cpgnm"/>
- <BindItem id="item3" compid="Static01" propid="text" datasetid="ds_temp_trmqp_rslt_masterinfo" columnid="cpgorddeptnm"/>
- <BindItem id="item4" compid="Static02" propid="text" datasetid="ds_temp_trmqp_rslt_masterinfo" columnid="fcstinhospdayno"/>
- <BindItem id="item8" compid="Static04" propid="text" datasetid="ds_temp_trmqp_rslt_masterinfo" columnid="cpgmemo"/>
- <BindItem id="item0" compid="Calendar00" propid="value" datasetid="ds_temp_trmqp_rslt_masterinfo" columnid="startdd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- function SMMMP01000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMMP01000_onload(obj:Form, e:LoadEventInfo)
- {
- fSearchCPMasterInfo();
- }
- function fSearchCPMasterInfo()
- {
- var varPid = this.opener.frmf_getParameter("pid");
- var varIndd = this.opener.frmf_getParameter("indd");
- var varCretno = this.opener.frmf_getParameter("cretno");
-
- ds_send_req.setColumn(0, "pid", varPid);
- ds_send_req.setColumn(0, "indd", varIndd);
- ds_send_req.setColumn(0, "cretno", varCretno);
-
- var oParam = {};
- oParam.id = "TMMMP01000";
- oParam.service = "prcpbaseapp.CpMngt";
- oParam.method = "reqGetCPMasterInfo";
- oParam.inds = "req=ds_send_req";
- oParam.outds = "ds_temp_trmqp_rslt_masterinfo=masterinfo ds_temp_trmqp_rslt_attach=attach"
- oParam.async = false;
-
- tranf_submit(oParam);
- }
- function button_download_onclick(obj:Button, e:ClickEventInfo)
- {
- //저장한 파일을 다운로드한다.
- var grdDs = ds_temp_trmqp_rslt_attach
- if( grdDs.rowposition < -1 ) {
- sysf_messageBox("다운로드 할 파일을 ", "C002");
- return;
- } else if( grdDs.getColumn(grdDs.rowposition, "check") != "true" && grdDs.getColumn(grdDs.rowposition, "check") != 1) {
- sysf_messageBox("저장되지 ", "E007");
- return;
- } else {
- fDownLoadFile( grdDs.rowposition );
- }
- }
- function fDownLoadFile( idx ){
- dsf_createDs("ds_temp_attachfile", [{col:"filedata", type:"BLOB"}]);
-
- var filepath = ds_temp_trmqp_rslt_attach.getColumn(idx, "file");
- var filenm = ds_temp_trmqp_rslt_attach.getColumn(idx, "attfilenm");
-
- var fd = new FileDialog;
- var localfile = fd.open("FileSave", FileDialog.SAVE, "%MYDOCUMENT%", filenm); // 단일 파일 선택
-
- if (!utlf_isNull(localfile)) {
- dsf_createDsRow("ds_send_TRMQP00605", [{col: "filepath", val:filepath }]);
-
- var oParam = {};
- oParam.id = "TRMQP00605";
- oParam.service = "prcpbaseapp.CpMngt";
- oParam.method = "reqGetAttFileData";
- oParam.inds = "req=ds_send_TRMQP00605";
- oParam.outds = "ds_temp_attachfile=attachfile";
- oParam.async = false;
- oParam.error = false;
- tranf_submit(oParam);
- dsf_readFileFromDs(localfile.fullpath, ds_temp_attachfile, 0, "filedata"); // 파일저장
-
- var rtn = sysf_messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- var objExtCommon = new ExtCommon();
- var rtn = objExtCommon.executeProcess(localfile.fullpath,"","");
- }
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|