123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLPR00101.xfm
- * 설 명 : 이미지조회
- * 설 계 자 : 설계자가 별도로 존재시 작성
- * 작 성 자 : 유동철(ACK)
- * 작 성 일 : 2006.12.01
- * 수정이력 : 최종작성일 기준으로 변경사항 이력관리
- * 기 타 : 주석문에 반영되어야 할 사항 표기
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>이미지조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <imginfo>
- <imglist>
- <instcd/>
- <pid/>
- <bizflagcd/>
- <ptno/>
- <rgstdd/>
- <rgsttm/>
- <rgstrid/>
- <rgstrnm/>
- <imgno/>
- <imgseqno/>
- <imgpath/>
- <rsltimg/>
- <dummy/>
- <exists/>
- <orgimgpath/>
- </imglist>
- </imginfo>
- </main>
- <send/>
- <init/>
- <hidden>
- </hidden>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <submission id="TRLPR01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/imginfo/imglist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fExeInitialize() {
-
- fGetImgInfo();
-
- }
-
- function fGetImgInfo() {
-
- var iWidth = 0;
- var iHeight = 0;
- var sSize = "";
- var iBackWidth = 0;
- var sNode = "/root/main/imginfo/imglist";
-
- //--------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/pid", "10009430");
- model.makeValue("/root/send/ptno", "S08000004");
- model.makeValue("/root/send/bizflagcd", "'PR'");
- model.makeValue("/root/send/imgno", "0");
- model.makeValue("/root/send/imgseqno", "0");
- submit("TRLPR01802");
-
- //-----------------------------------------------------
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
- //---------------------------------------------
- setImageRefInstance(sNode+"["+iNo+"]/rsltimg");
- sSize = getBase64DataSize(sNode+"["+iNo+"]/rsltimg");
- iWidth = sSize.split("^")[0];
- iHeight = sSize.split("^")[1];
- grd_ptnolist.rowHeight(iNo) = iHeight;
-
- //----------------------------------------
- if (Number(iBackWidth) < Number(iWidth)) {
- grd_ptnolist.colWidth(1) = iWidth;
- iBackWidth = iWidth;
- }
- }
- }
-
-
- /************************************************************************************************
- 함수명 : getBase64DataSize ()
- 인자 :
- String xPath - Base64Data 이미지 파일 xPath
- 결과값 : String width^height
- 예) 20^20)
- 함수설명 : 이미지 Width, Height 반환 함수
- ************************************************************************************************
- 작 성 자 :
- 작 성 일 :
- ************************************************************************************************/
- function getBase64DataSize(xPath) {
-
- if(document.controls("_image_forSize") == null) {
- var newCtrObj = body.createChild("xforms:img", "id:_image_forSize; left:0px; top:0px; width:1px; height:1px;");
- newCtrObj.visible = false;
- newCtrObj.attribute("ref") = xPath;
- }
-
- else{
- //_image_forSize.visible = true;
- _image_forSize.attribute("ref") = xPath;
- }
-
- _image_forSize.attribute("width") = null;
- _image_forSize.attribute("height") = null;
-
- _image_forSize.visible = false;
-
- var imgW = _image_forSize.attribute("width").replace("px", "");
- var imgH = _image_forSize.attribute("height").replace("px", "");
-
- return imgW + "^" + imgH;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1300" pageheight="900" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group2" scroll="auto" style="left:0; top:857px; width:1184px; height:27px; ">
- <button id="btn_exit" class="btn4_letter2" navindex="7" style="left:909px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fbtnclose();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:0px; x2:965px; y2:0px; "/>
- </group>
- <group id="grp_biz" style="left:0px; top:0px; width:1284px; height:855px; ">
- <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>
- <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:1284px; y2:26px; "/>
- <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; ">
- <col ref="ptno" style="font-family:굴림체; font-size:16pt; font-weight:bold; "/>
- <col ref="rsltimg"/>
- <col ref="ptno"/>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|