123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPAEA02603" position="absolute 0 0 1200 1000" titletext="이미지 확대" oninit="SPAEA02603_oninit" onload="SPAEA02603_onload">
- <Layouts>
- <Layout>
- <ImageViewer id="img1" taborder="0" position="absolute 2 2 1198 998" stretch="fit" anchor="all"/>
- <Button id="btn_close" taborder="1" position="absolute 1 1 1199 999" anchor="all" style="background:transparent;border:0 none #33bbbbff #effcfbff;" ondblclick="btn_close_ondblclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_image_attachfile" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="image" type="BLOB" size="256"/>
- <Column id="printyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="image"/>
- <Col id="printyn"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_popupmenu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hardcdnm" type="STRING" size="256"/>
- <Column id="hardcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="hardcdnm">출력</Col>
- <Col id="hardcd">fPrint</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="img1" propid="image" datasetid="ds_main_image_attachfile" columnid="image"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-10-14
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-10-14 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- var gSuppdeptcd = "";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description :
- ****************************************************************************************/
- function fPrint() {
- // img1.position.width = 1280;
- // img1.position.height = 1024;
- // // group3.attribute("scroll") = "none";
- //
- // this.position.width = 1330;
- // this.position.height = 1050;
- this.print(false);
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPAEA02603_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPAEA02603_onload(obj:Form, e:LoadEventInfo)
- {
- if (frmf_checkOpener()) { //opener 검사
- var param = opener.frmf_getParameter("opener_parameter_id"); //opener parameter value를 get
- if(!utlf_isNull(param)) { // opener parameter value가 있는 경우
- //parameter value를 이용하여 프로그램 수행
- condarray = param.split("▦");
- var objCxtCommon = new ExtCommon();
- ds_main_image_attachfile.setColumn( 0, "image" , objCxtCommon.decodeBase64(condarray[0],"BIN"));
- ds_main_image_attachfile.setColumn( 0, "printyn", condarray[1]);
- // setImageRefInstance("ds_main_image_attachfile_image");
- // 이미지 크기 조절하기
- // img1.initStyle("height");
- // img1.initStyle("width");
- //
- // if(img1.currentStyle.width > 1280)
- // {
- // var imgWidth = img1.currentStyle.width;
- // var imgHeight = img1.currentStyle.height;
- //
- // var imgRate = 1280 / imgWidth;
- //
- // img1.attribute("width") = 1280;
- // img1.attribute("height") = imgHeight * imgRate;
- // }
- //
- // if(img1.currentStyle.height > 1024)
- // {
- // var imgWidth = img1.currentStyle.width;
- // var imgHeight = img1.currentStyle.height;
- //
- // var imgRate = 1024 / imgHeight;
- //
- // img1.attribute("width") = imgWidth / imgRate;
- // img1.attribute("height") = 1024;
- // }
- if(ds_main_image_attachfile.getColumn(0, "printyn") == "Y")
- {
- fPrint();
- }
- }
- }
- }
- function btn_close_ondblclick(obj:Button, e:MouseEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|