123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- <?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>
- <codelist>
- <code>
- <cdid/>
- <cdnm/>
- </code>
- </codelist>
- </main>
- <init>
- <initcode>
- <codelist>
- <code>
- <select/>
- <cdid/>
- <cdnm/>
- </code>
- </codelist>
- </initcode>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.resetInstanceNode("/root/init/initcode/codelist");
- model.copyNode("/root/init/initcode/codelist", opener.root.send.codelist);
-
- model.refresh();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="411" pageheight="500">
- <caption id="caption57" class="tit_2" style="left:15px; top:5px; width:203px; height:13px; ">코드조회</caption>
- <line id="line18" class="line_1" style="x1:11px; y1:20px; x2:401px; y2:20px; "/>
- <button id="btn_pretrgtman" class="btn2_letter2" _auth="R" style="left:355px; top:272px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_select.row;
-
- grd_select.deleteRow(row);
- ]]>
- </script>
- </button>
- <button id="btn_nexttrgtman" class="btn2_letter2" _auth="R" style="left:311px; top:272px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var nodeList = instance1.selectNodes("/root/init/initcode/codelist");
- var srcnt = nodeList.length;
-
- for( var i = 1 ; i <= grd_init.rows ; i++) {
- if(grd_init.valueMatrix(i,1) == "Y") {
- model.makeValue("/root/main/codelist/code[" + srcnt +"]/cdid", model.getValue("/root/init/initcode/codelist/code["+ i +"]/cdid"));
- model.makeValue("/root/main/codelist/code["+ srcnt +"]/cdnm", model.getValue("/root/init/initcode/codelist/code["+ i +"]/cdnm"));
- srcnt++;
- }
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn5_letter2" style="left:267px; top:272px; width:42px; height:19px; ">
- <caption>적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var selectCode = "";
-
- for( var i = 1 ; i < grd_select.rows ; i++) {
- if(selectCode != "") {
- selectCode = selectCode + ",";
- }
-
- if (grd_select.valueMatrix(i,3) == "Y") {
- selectCode = selectCode + "!" + grd_select.valueMatrix(i,1);
- } else {
- selectCode = selectCode + grd_select.valueMatrix(i,1);
- }
- }
- opener.javascript.setParameter("SMPMB03101_selectCode", selectCode);
- model.close();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:15px; top:278px; width:203px; height:13px; ">선택코드</caption>
- <line id="line1" class="line_1" style="x1:11px; y1:293px; x2:401px; y2:293px; "/>
- <datagrid id="grd_init" nodeset="/root/init/initcode/codelist/code" class="datagrid2" autoresize="false" caption="^코드^코드명^명칭" colsep="^" colwidth="25, 100, 250" dataheight="25" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:11px; top:25px; width:390px; height:237px; ">
- <col checkvalue="Y,N" ref="select" type="checkbox"/>
- <col ref="cdid" style="text-align:center; "/>
- <col ref="cdnm"/>
- </datagrid>
- <datagrid id="grd_select" nodeset="/root/main/codelist/code" class="datagrid2" autoresize="false" caption="코드^명칭^False" colsep="^" colwidth="100, 230, 40" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:11px; top:298px; width:390px; height:192px; ">
- <col ref="cdid" style="text-align:center; "/>
- <col ref="cdnm" format="yyyy-mm-dd hh:nn:ss"/>
- <col checkvalue="Y,N" ref="false" type="checkbox"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|