SPLPR00100_육안이미지조회.xrw 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLPR00101.xfm
  4. * 설 명 : 이미지조회
  5. * 설 계 자 : 설계자가 별도로 존재시 작성
  6. * 작 성 자 : 유동철(ACK)
  7. * 작 성 일 : 2006.12.01
  8. * 수정이력 : 최종작성일 기준으로 변경사항 이력관리
  9. * 기 타 : 주석문에 반영되어야 할 사항 표기
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  13. <xhtml:head>
  14. <xhtml:title>이미지조회</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <imginfo>
  20. <imglist>
  21. <instcd/>
  22. <pid/>
  23. <bizflagcd/>
  24. <ptno/>
  25. <rgstdd/>
  26. <rgsttm/>
  27. <rgstrid/>
  28. <rgstrnm/>
  29. <imgno/>
  30. <imgseqno/>
  31. <imgpath/>
  32. <rsltimg/>
  33. <dummy/>
  34. <exists/>
  35. <orgimgpath/>
  36. </imglist>
  37. </imginfo>
  38. </main>
  39. <send/>
  40. <init/>
  41. <hidden>
  42. </hidden>
  43. </root>
  44. </instance>
  45. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  46. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  48. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  49. <script type="javascript" ev:event="xforms-ready">
  50. <![CDATA[
  51. fExeInitialize();
  52. ]]>
  53. </script>
  54. <submission id="TRLPR01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/imginfo/imglist"/>
  55. </model>
  56. <script type="javascript">
  57. <![CDATA[
  58. function fExeInitialize() {
  59. fGetImgInfo();
  60. }
  61. function fGetImgInfo() {
  62. var iWidth = 0;
  63. var iHeight = 0;
  64. var sSize = "";
  65. var iBackWidth = 0;
  66. var sNode = "/root/main/imginfo/imglist";
  67. //--------------------------------------------------------------------
  68. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  69. model.makeValue("/root/send/pid", "10009430");
  70. model.makeValue("/root/send/ptno", "S08000004");
  71. model.makeValue("/root/send/bizflagcd", "'PR'");
  72. model.makeValue("/root/send/imgno", "0");
  73. model.makeValue("/root/send/imgseqno", "0");
  74. submit("TRLPR01802");
  75. //-----------------------------------------------------
  76. for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
  77. //---------------------------------------------
  78. setImageRefInstance(sNode+"["+iNo+"]/rsltimg");
  79. sSize = getBase64DataSize(sNode+"["+iNo+"]/rsltimg");
  80. iWidth = sSize.split("^")[0];
  81. iHeight = sSize.split("^")[1];
  82. grd_ptnolist.rowHeight(iNo) = iHeight;
  83. //----------------------------------------
  84. if (Number(iBackWidth) < Number(iWidth)) {
  85. grd_ptnolist.colWidth(1) = iWidth;
  86. iBackWidth = iWidth;
  87. }
  88. }
  89. }
  90. /************************************************************************************************
  91. 함수명 : getBase64DataSize ()
  92. 인자 :
  93. String xPath - Base64Data 이미지 파일 xPath
  94. 결과값 : String width^height
  95. 예) 20^20)
  96. 함수설명 : 이미지 Width, Height 반환 함수
  97. ************************************************************************************************
  98. 작 성 자 :
  99. 작 성 일 :
  100. ************************************************************************************************/
  101. function getBase64DataSize(xPath) {
  102. if(document.controls("_image_forSize") == null) {
  103. var newCtrObj = body.createChild("xforms:img", "id:_image_forSize; left:0px; top:0px; width:1px; height:1px;");
  104. newCtrObj.visible = false;
  105. newCtrObj.attribute("ref") = xPath;
  106. }
  107. else{
  108. //_image_forSize.visible = true;
  109. _image_forSize.attribute("ref") = xPath;
  110. }
  111. _image_forSize.attribute("width") = null;
  112. _image_forSize.attribute("height") = null;
  113. _image_forSize.visible = false;
  114. var imgW = _image_forSize.attribute("width").replace("px", "");
  115. var imgH = _image_forSize.attribute("height").replace("px", "");
  116. return imgW + "^" + imgH;
  117. }
  118. ]]>
  119. </script>
  120. </xhtml:head>
  121. <xhtml:body pagewidth="1300" pageheight="900" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  122. <group id="group2" scroll="auto" style="left:0; top:857px; width:1184px; height:27px; ">
  123. <button id="btn_exit" class="btn4_letter2" navindex="7" style="left:909px; top:5px; width:56px; height:22px; ">
  124. <caption>닫기</caption>
  125. <script type="javascript" ev:event="DOMActivate">
  126. <![CDATA[
  127. fbtnclose();
  128. ]]>
  129. </script>
  130. </button>
  131. <line id="line17" class="line_6" style="x1:0px; y1:0px; x2:965px; y2:0px; "/>
  132. </group>
  133. <group id="grp_biz" style="left:0px; top:0px; width:1284px; height:855px; ">
  134. <caption id="caption1" class="tit_2" autoresize="true" style="left:5px; top:11px; width:161px; height:14px; font-family:굴림체; font-size:9pt; vertical-align:middle; ">이미지 목록</caption>
  135. <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:1284px; y2:26px; "/>
  136. <datagrid id="grd_ptnolist" nodeset="/root/main/imginfo/imglist" class="datagrid2" autoresize="true" caption="병리번호^이미지내용^caption3" colsep="^" colwidth="80, 1000, 0" frozencols="1" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:31px; width:1284px; height:823px; font-family:굴림체; font-size:9pt; font-weight:bold; background-stretch:stretch; ">
  137. <col ref="ptno" style="font-family:굴림체; font-size:16pt; font-weight:bold; "/>
  138. <col ref="rsltimg"/>
  139. <col ref="ptno"/>
  140. </datagrid>
  141. </group>
  142. </xhtml:body>
  143. </xhtml:html>