SPAEA02603_결과관리및조회사진관리 전체크기(사이버나이프).xfdl 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPAEA02603" position="absolute 0 0 1200 1000" titletext="이미지 확대" oninit="SPAEA02603_oninit" onload="SPAEA02603_onload">
  5. <Layouts>
  6. <Layout>
  7. <ImageViewer id="img1" taborder="0" position="absolute 2 2 1198 998" stretch="fit" anchor="all"/>
  8. <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"/>
  9. </Layout>
  10. </Layouts>
  11. <Objects>
  12. <Dataset id="ds_main_image_attachfile" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  13. <ColumnInfo>
  14. <Column id="image" type="BLOB" size="256"/>
  15. <Column id="printyn" type="STRING" size="256"/>
  16. </ColumnInfo>
  17. <Rows>
  18. <Row>
  19. <Col id="image"/>
  20. <Col id="printyn"/>
  21. </Row>
  22. </Rows>
  23. </Dataset>
  24. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  25. <Dataset id="ds_hidden_popupmenu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  26. <ColumnInfo>
  27. <Column id="hardcdnm" type="STRING" size="256"/>
  28. <Column id="hardcd" type="STRING" size="256"/>
  29. </ColumnInfo>
  30. <Rows>
  31. <Row>
  32. <Col id="hardcdnm">출력</Col>
  33. <Col id="hardcd">fPrint</Col>
  34. </Row>
  35. </Rows>
  36. </Dataset>
  37. </Objects>
  38. <Bind>
  39. <BindItem id="item0" compid="img1" propid="image" datasetid="ds_main_image_attachfile" columnid="image"/>
  40. </Bind>
  41. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  42. * System Name :
  43. * Job Name :
  44. * Creator :
  45. * Make Date : 2016-10-14
  46. * Description :
  47. *---------------------------------------------------------------------------------------
  48. * Modify Date Modifier Modify Description
  49. *---------------------------------------------------------------------------------------
  50. * 2016-10-14 Live Converter TF->XP
  51. *
  52. *---------------------------------------------------------------------------------------
  53. ****************************************************************************************/
  54. //=======================================================================================
  55. // Lib Include
  56. //---------------------------------------------------------------------------------------
  57. include "com_commonxp::comm_main.xjs";
  58. //=======================================================================================
  59. // Global Form Variable
  60. //---------------------------------------------------------------------------------------
  61. var arErrorCode = new HashArray();
  62. var gSuppdeptcd = "";
  63. //=======================================================================================
  64. // Function
  65. //---------------------------------------------------------------------------------------
  66. /****************************************************************************************
  67. * Argument : N/A
  68. * Description :
  69. ****************************************************************************************/
  70. function fPrint() {
  71. // img1.position.width = 1280;
  72. // img1.position.height = 1024;
  73. // // group3.attribute("scroll") = "none";
  74. //
  75. // this.position.width = 1330;
  76. // this.position.height = 1050;
  77. this.print(false);
  78. }
  79. //=======================================================================================
  80. // Event
  81. //---------------------------------------------------------------------------------------
  82. /****************************************************************************************
  83. * Components : Form
  84. * Description : 화면 처음 초기화시 폼초기화
  85. ****************************************************************************************/
  86. function SPAEA02603_oninit(obj:Form, e:InitEventInfo)
  87. {
  88. frmf_initForm(obj); // 폼 초기화
  89. }
  90. /****************************************************************************************
  91. * Components : Form
  92. * Description : 화면 처음 초기화시 폼초기화
  93. ****************************************************************************************/
  94. function SPAEA02603_onload(obj:Form, e:LoadEventInfo)
  95. {
  96. if (frmf_checkOpener()) { //opener 검사
  97. var param = opener.frmf_getParameter("opener_parameter_id"); //opener parameter value를 get
  98. if(!utlf_isNull(param)) { // opener parameter value가 있는 경우
  99. //parameter value를 이용하여 프로그램 수행
  100. condarray = param.split("▦");
  101. var objCxtCommon = new ExtCommon();
  102. ds_main_image_attachfile.setColumn( 0, "image" , objCxtCommon.decodeBase64(condarray[0],"BIN"));
  103. ds_main_image_attachfile.setColumn( 0, "printyn", condarray[1]);
  104. // setImageRefInstance("ds_main_image_attachfile_image");
  105. // 이미지 크기 조절하기
  106. // img1.initStyle("height");
  107. // img1.initStyle("width");
  108. //
  109. // if(img1.currentStyle.width > 1280)
  110. // {
  111. // var imgWidth = img1.currentStyle.width;
  112. // var imgHeight = img1.currentStyle.height;
  113. //
  114. // var imgRate = 1280 / imgWidth;
  115. //
  116. // img1.attribute("width") = 1280;
  117. // img1.attribute("height") = imgHeight * imgRate;
  118. // }
  119. //
  120. // if(img1.currentStyle.height > 1024)
  121. // {
  122. // var imgWidth = img1.currentStyle.width;
  123. // var imgHeight = img1.currentStyle.height;
  124. //
  125. // var imgRate = 1024 / imgHeight;
  126. //
  127. // img1.attribute("width") = imgWidth / imgRate;
  128. // img1.attribute("height") = 1024;
  129. // }
  130. if(ds_main_image_attachfile.getColumn(0, "printyn") == "Y")
  131. {
  132. fPrint();
  133. }
  134. }
  135. }
  136. }
  137. function btn_close_ondblclick(obj:Button, e:MouseEventInfo)
  138. {
  139. this.close();
  140. }
  141. ]]></Script>
  142. </Form>
  143. </FDL>