123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <?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>
- <fixasetcdlist>
- <subfixasetcdlist>
- <check/>
- <fixasetcd/>
- <goodmodel/>
- <goodflaghngnm/>
- <goodflagengnm/>
- <goodspec/>
- <suplplcenm/>
- <suplplcecd/>
- </subfixasetcdlist>
- </fixasetcdlist>
- </main>
- <send>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <instdeptcd/>
- </send>
- <init>
- <cmb_instdeptcd>
- <instdeptcd>
- <cdid/>
- <cdnm/>
- </instdeptcd>
- </cmb_instdeptcd>
- </init>
- <hidden>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
-
- // 부서코드조회
- submit("TRAEB00103");
- ]]>
- </script>
- <submission id="TRAEB00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_instdeptcd"/>
- <submission id="TRAEB00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/fixasetcdlist"/>
- </model>
- <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="../../../ast/examcureweb/js/AEZ0001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="820" pageheight="720" guideline="1,1194;2,690;1,811;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:810px; height:680px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:150px; height:13px; ">부서별장비코드</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:790px; y2:69px; "/>
- <datagrid id="grd_fixasetcd" nodeset="/root/main/fixasetcdlist/subfixasetcdlist" autoresize="true" caption="선택^자산코드^모델명^품명_한글^품명_영문^물품규격^공급처명^공급처코드" colsep="^" colwidth="36, 73, 120, 180, 180, 100, 90, 90" ellipsis="true" explorerbar="sortshow" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:75px; width:790px; height:595px; ">
- <col checkvalue="Y,N" ref="check" type="radio"/>
- <col ref="fixasetcd" style="text-align:left; "/>
- <col ref="goodmodel" style="text-align:left; "/>
- <col ref="goodflaghngnm" style="text-align:left; "/>
- <col ref="goodflagengnm" style="text-align:left; "/>
- <col ref="goodspec" style="text-align:left; "/>
- <col ref="suplplcenm" style="text-align:left; "/>
- <col ref="suplplcecd" style="text-align:left; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // model.setAttribute("Cnclresncd", model.getvalue("/root/main/cnclcodelist/cnclcode["+ grd_basecd.row +"]/basecd"));
-
- ]]>
- </script>
- </datagrid>
- <button id="btn_cls" class="btn4_letter2" style="left:734px; top:46px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- <button id="btn_cfm" class="btn4_letter2" style="left:675px; top:46px; width:56px; height:22px; ">
- <caption>선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grd_fixasetcd.row == 0 ) return;
-
- var srcXpath1 = opener.javascript.getParameter("SPAEB00101_param_srcXpath1");
- var srcXgrid1 = opener.javascript.getParameter("SPAEB00101_param_srcXgrid1");
- var srcXrow1 = opener.javascript.getParameter("SPAEB00101_param_srcXrow1");
- var srcXnode1 = opener.javascript.getParameter("SPAEB00101_param_srcXnode1");
- var srcXnodenm1 = opener.javascript.getParameter("SPAEB00101_param_srcXnodenm1");
-
- //alert('srcXpath1->'+srcXpath1+', srcXrow1->'+srcXrow1+', srcXnode1->'+srcXnode1+', srcXgrid1->'+srcXgrid1);
-
- // setParameter("SPAEB00101_param_srcXpath1", "/root/main/examcurelist/item");
- // setParameter("SPAEB00101_param_srcXrow1", grd_examcureroom.row);
- // setParameter("SPAEB00101_param_srcXnode1", "excuposseqcd");
-
- var srchLength1 = model.instances(0).selectNodes( "/root/main/fixasetcdlist/subfixasetcdlist" ).length;
- //alert('srchLength1->'+srchLength1);
- if ( srchLength1 > 0 ) {
- for ( var i = 1; i <= srchLength1; i++ ) {
-
- if ( model.getValue("/root/main/fixasetcdlist/subfixasetcdlist[" + i + "]/check") == "Y" ) {
-
- // alert('fixasetcd['+ i +']=>'+model.getValue("/root/main/fixasetcdlist/subfixasetcdlist["+ i +"]/fixasetcd" ) );
- if ( srcXnode1 != "" ) {
- opener.model.setValue(srcXpath1+"["+srcXrow1+"]/"+srcXnode1 , model.getValue("/root/main/fixasetcdlist/subfixasetcdlist["+ i +"]/fixasetcd" ) );
- }
- if ( srcXnodenm1 != "" ) {
- opener.model.setValue(srcXpath1+"["+srcXrow1+"]/"+srcXnodenm1 , model.getValue("/root/main/fixasetcdlist/subfixasetcdlist["+ i +"]/goodmodel" ) );
- }
-
- }
- }
-
- opener.model.refresh();
- window.close();
- }
- ]]>
- </script>
- </button>
- <group id="group2" style="left:0px; top:0px; width:790px; height:40px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:785px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:12px; width:86px; height:17px; ">설치장소 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:720px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRAEB00104");
- ]]>
- </script>
- </button>
- <line id="line13" style="x1:704px; y1:9px; x2:704px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_instdeptcd" ref="/root/send/instdeptcd" class="combo_search" appearance="minimal" style="left:105px; top:11px; width:170px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_instdeptcd/instdeptcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|