123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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 xmlns="">
- <main>
- <shape>
- <shapephot1/>
- <shapecd1/>
- <shapephot2/>
- <shapecd2/>
- <shapephot3/>
- <shapecd3/>
- <shapephot4/>
- <shapecd4/>
- <shapephot5/>
- <shapecd5/>
- <shapephot6/>
- <shapecd6/>
- <shapephot7/>
- <shapecd7/>
- <shapephot8/>
- <shapecd8/>
- </shape>
- </main>
- <send>
- <srchinfo>
- <instcd>012</instcd>
- <fromcount/>
- <tocount/>
- </srchinfo>
- </send>
- <init>
- <count>
- <label/>
- <value/>
- </count>
- </init>
- <hidden>
- <receiveref/>
- <index/>
- </hidden>
- <temp>
- <shape/>
- <shapecd/>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- document.controls("Base64_Preview1").attribute("visibility") = "hidden";
-
- submit("TRADB62602",false);
- model.setValue("/root/send/srchinfo/fromcount","1");
- model.setValue("/root/send/srchinfo/tocount","40");
- model.setValue("/root/hidden/index", "1");
- fGetShape();
-
- model.refresh();
- /*
- submit("TRADB62601");
-
- for(var i=0; i < grd_shape.cols; i+=2){
- grd_shape.colWidth(i) = 60;
- }
- for(var i = 0; i < getNodesetCount("/root/main/shape"); i++){
- setImageRefInstance("/root/main/shape["+i+"]/shapephot1");
- setImageRefInstance("/root/main/shape["+i+"]/shapephot2");
- setImageRefInstance("/root/main/shape["+i+"]/shapephot3");
- setImageRefInstance("/root/main/shape["+i+"]/shapephot4");
- setImageRefInstance("/root/main/shape["+i+"]/shapephot5");
- setImageRefInstance("/root/main/shape["+i+"]/shapephot6");
- setImageRefInstance("/root/main/shape["+i+"]/shapephot7");
- setImageRefInstance("/root/main/shape["+i+"]/shapephot8");
- grd_shape.rowHeight(i) = 60;
- }
- */
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fGetShape(){
-
- var sImgcnts = "";
- var strBase64 = "";
-
- submit("TRADB62601", false);
- //for(var i = grd_shape.fixedRows; i <= grd_shape.rows; i++){
- for(var i = 1; i <= getNodesetCount("/root/main/shape") ; i++){
-
- //화면 속도를 위해 이미지를 작게 만듬.
- sImgcnts = model.getValue("/root/main/shape["+i+"]/shapephot1");
- Base64_Preview1.LoadImageBase64(sImgcnts);
- Base64_Preview1.SetViewMode(1);
- strBase64 = Base64_Preview1.SaveImageBase64();
- model.setValue("/root/main/shape["+i+"]/shapephot1", strBase64);
- setImageRefInstance("/root/main/shape["+i+"]/shapephot1");
-
- sImgcnts = model.getValue("/root/main/shape["+i+"]/shapephot2");
- Base64_Preview1.LoadImageBase64(sImgcnts);
- Base64_Preview1.SetViewMode(1);
- strBase64 = Base64_Preview1.SaveImageBase64();
- model.setValue("/root/main/shape["+i+"]/shapephot2", strBase64);
- setImageRefInstance("/root/main/shape["+i+"]/shapephot2");
-
- sImgcnts = model.getValue("/root/main/shape["+i+"]/shapephot3");
- Base64_Preview1.LoadImageBase64(sImgcnts);
- Base64_Preview1.SetViewMode(1);
- strBase64 = Base64_Preview1.SaveImageBase64();
- model.setValue("/root/main/shape["+i+"]/shapephot3", strBase64);
- setImageRefInstance("/root/main/shape["+i+"]/shapephot3");
-
- sImgcnts = model.getValue("/root/main/shape["+i+"]/shapephot4");
- Base64_Preview1.LoadImageBase64(sImgcnts);
- Base64_Preview1.SetViewMode(1);
- strBase64 = Base64_Preview1.SaveImageBase64();
- model.setValue("/root/main/shape["+i+"]/shapephot4", strBase64);
- setImageRefInstance("/root/main/shape["+i+"]/shapephot4");
-
- sImgcnts = model.getValue("/root/main/shape["+i+"]/shapephot5");
- Base64_Preview1.LoadImageBase64(sImgcnts);
- Base64_Preview1.SetViewMode(1);
- strBase64 = Base64_Preview1.SaveImageBase64();
- model.setValue("/root/main/shape["+i+"]/shapephot5", strBase64);
- setImageRefInstance("/root/main/shape["+i+"]/shapephot5");
-
- sImgcnts = model.getValue("/root/main/shape["+i+"]/shapephot6");
- Base64_Preview1.LoadImageBase64(sImgcnts);
- Base64_Preview1.SetViewMode(1);
- strBase64 = Base64_Preview1.SaveImageBase64();
- model.setValue("/root/main/shape["+i+"]/shapephot6", strBase64);
- setImageRefInstance("/root/main/shape["+i+"]/shapephot6");
-
- sImgcnts = model.getValue("/root/main/shape["+i+"]/shapephot7");
- Base64_Preview1.LoadImageBase64(sImgcnts);
- Base64_Preview1.SetViewMode(1);
- strBase64 = Base64_Preview1.SaveImageBase64();
- model.setValue("/root/main/shape["+i+"]/shapephot7", strBase64);
- setImageRefInstance("/root/main/shape["+i+"]/shapephot7");
-
- sImgcnts = model.getValue("/root/main/shape["+i+"]/shapephot8");
- Base64_Preview1.LoadImageBase64(sImgcnts);
- Base64_Preview1.SetViewMode(1);
- strBase64 = Base64_Preview1.SaveImageBase64();
- model.setValue("/root/main/shape["+i+"]/shapephot8", strBase64);
- setImageRefInstance("/root/main/shape["+i+"]/shapephot8");
- }
-
- grd_shape.refresh();
-
- //grd_shape.visible = true;
- for(var i=0; i < grd_shape.cols; i+=2){
- grd_shape.colWidth(i) = 60;
- }
-
- for(var i = grd_shape.fixedRows; i <= grd_shape.rows; i++){
- grd_shape.rowHeight(i) = 60;
- }
-
-
- }
- ]]>
- </script>
- <submission id="TRADB62601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main"/>
- <submission id="TRADB62602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/init"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="520" pageheight="440" guideline="1,501;" style="margin:8; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:10px; width:501px; height:370px; ">
- <datagrid id="grd_shape" nodeset="/root/main/shape" scroll="auto" colsep="^" rowsep="|" selectionmode="free" style="left:0px; top:31px; width:500px; height:309px; text-align:center; vertical-align:middle; ">
- <col ref="shapephot1" style="width:60; height:60; background-stretch:stretch; "/>
- <col ref="shapecd1" visibility="hidden" style="width:60; height:60; "/>
- <col ref="shapephot2" style="width:60; height:60; background-stretch:stretch; "/>
- <col ref="shapecd2" visibility="hidden" style="width:60; height:60; "/>
- <col ref="shapephot3" style="width:60; height:60; background-stretch:stretch; "/>
- <col ref="shapecd3" visibility="hidden" style="width:60; height:60; "/>
- <col ref="shapephot4" style="width:60; height:60; background-stretch:stretch; "/>
- <col ref="shapecd4" visibility="hidden" style="width:60; height:60; "/>
- <col ref="shapephot5" style="width:60; height:60; background-stretch:stretch; "/>
- <col ref="shapecd5" visibility="hidden" style="width:60; height:60; "/>
- <col ref="shapephot6" style="width:60; height:60; background-stretch:stretch; "/>
- <col ref="shapecd6" visibility="hidden" style="width:60; height:60; "/>
- <col ref="shapephot7" style="width:60; height:60; background-stretch:stretch; "/>
- <col ref="shapecd7" visibility="hidden" style="width:60; height:60; "/>
- <col ref="shapephot8" style="width:60; height:60; background-stretch:stretch; "/>
- <col ref="shapecd8" visibility="hidden" style="width:60; height:60; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var controlObj = document.controls("btn_cfm");
- controlObj.dispatch("onclick");
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:140px; height:13px; ">문양검색</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:500px; y2:25px; "/>
- <line id="line7" class="line_6" style="x1:1px; y1:369px; x2:501px; y2:369px; "/>
- <select1 id="rdo_count" ref="/root/hidden/index" appearance="full" cellspacing="25" cols="10" rows="2" overflow="visible" style="left:0px; top:345px; width:501px; height:20px; text-align:center; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/count">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var count = model.getValue("/root/hidden/index");
- model.setValue("/root/send/srchinfo/fromcount", (count*40)-39);
- model.setValue("/root/send/srchinfo/tocount",(count*40));
-
- fGetShape();
-
- model.refresh();
-
- ]]>
- </script>
- </select1>
- <object id="Base64_Preview1" clsid="{72e5d9ed-0d6a-46e8-aead-23144bfef878}" style="left:0px; top:30px; width:128px; height:128px; background-color:transparent; "/>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:395px; width:501px; height:27px; ">
- <button id="btn_cfm" class="btn4_letter2" style="left:385px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var shapecd = grd_shape.valueMatrix(grd_shape.row , grd_shape.col +1 );
- model.setValue("/root/hidden/receiveref/shapecd", grd_shape.valueMatrix(grd_shape.row , grd_shape.col +1 ));
- model.setValue("/root/hidden/receiveref/shape", grd_shape.valueMatrix(grd_shape.row, grd_shape.col));
- var receiveref = model.getValue("/root/hidden/receiveref");
- if(shapecd != ""){
- if(checkOpener()){
-
- model.copyNode(opener.root.hidden.receiveshape, root.hidden.receiveref);
- //opener.model.setValue(receiveref, shapecd);
- //opener.model.setValue(receiveref, shape);
- //opener.model.refresh();
- window.close();
- }else{
- messageBox("상위화면이 변경되어 데이터를 전달할 수 ","I004");
- }
- }else{
- messageBox("문양을","C002");
- }
- ]]>
- </script>
- </button>
- <button id="btn_can" class="btn4_letter2" style="left:444px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|