123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <deptlist>
- <dept>
- <deptcd/>
- <deptnm/>
- <deptdesc/>
- <deptcdlevl2/>
- <deptcdlevl3/>
- <deptcdlevl4/>
- <deptcdlevl5/>
- <deptcdlevl6/>
- <deptcdlevl7/>
- <updeptcd/>
- <fstrgstdt/>
- <fstrgstrid/>
- <lastrgstdt/>
- <lastrgstrid/>
- </dept>
- </deptlist>
- <search>
- <searchcondition>deptnm</searchcondition>
- <searchterm/>
- </search>
- </main>
- <send>
- <data>
- <searchcondition/>
- <searchterm/>
- </data>
- </send>
- </root>
- </instance>
- <script type="javascript" src="../../../com/basiccodeweb/js/basiccodeweb.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- var searchcondition = opener.window.javascript.getParameter("searchCondition");
- var searchterm = opener.window.javascript.getParameter("searchTerm");
- if( searchcondition!=null && searchcondition!="" && searchterm!=null && searchterm!="" ){
- model.setValue("/root/main/search/searchcondition", searchcondition);
- model.setValue("/root/main/search/searchterm", searchterm);
- model.setValue("/root/send/data/searchcondition", searchcondition);
- model.setValue("/root/send/data/searchterm",searchterm+"%");
- submit("TRZSD00102");
- model.refresh();
- grd_deptlist.rebuild();
- }
-
- ]]>
- </script>
- <submission id="TRZSD00102" ref="/root/send/data" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/deptlist"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="534" pageheight="343" guideline="1,518;2,342;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:316px; ">
- <group id="group2" style="left:0px; top:0px; width:518px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:517px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:445px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var searchterm = model.getValue("/root/main/search/searchterm");
- var searchcondition = model.getValue("/root/main/search/searchcondition");
- model.setValue("/root/send/data/searchterm", "%"+searchterm+"%");
- model.setValue("/root/send/data/searchcondition", searchcondition);
- submit("TRZSD00102");
- ]]>
- </script>
- </button>
- <line id="line13" style="x1:429px; y1:7px; x2:429px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="combo1" ref="/root/main/search/searchcondition" class="combo_search" appearance="minimal" style="left:101px; top:8px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>부서코드</label>
- <value>deptcd</value>
- </item>
- <item>
- <label>부서명</label>
- <value>deptnm</value>
- </item>
- </choices>
- </select1>
- <input id="input3" ref="/root/main/search/searchterm" class="input_search" style="left:184px; top:8px; width:100px; height:19px; "/>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:46px; width:118px; height:14px; ">부서코드 목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:61px; x2:517px; y2:61px; "/>
- <datagrid id="grd_deptlist" nodeset="/root/main/deptlist/dept" caption="부서 코드^부서이름^부서 상세설명^ 부서코드 레벨2^부서코드 레벨3^부서코드 레벨4^부서코드 레벨5^부서코드 레벨6^부서코드 레벨7^상위부서코드^등록 일시^등록자 사번^수정일자^수정자 사번" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" colsep="^" style="left:0px; top:66px; width:517px; height:250px; ">
- <col ref="deptcd"/>
- <col ref="deptnm"/>
- <col ref="deptdesc"/>
- <col ref="deptcdlevl2"/>
- <col ref="deptcdlevl3"/>
- <col ref="deptcdlevl4"/>
- <col ref="deptcdlevl5"/>
- <col ref="deptcdlevl6"/>
- <col ref="deptcdlevl7"/>
- <col ref="updeptcd"/>
- <col ref="fstrgstdt"/>
- <col ref="fstrgstrid"/>
- <col ref="lastrgstdt"/>
- <col ref="lastrgstrid"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- var deptcdpath = opener.window.javascript.getParameter("receiveDeptCDPath");
- var deptnmpath = opener.window.javascript.getParameter("receiveDeptNMPath");
-
- var row = grd_deptlist.row;
- var deptcd = grd_deptlist.textmatrix( row, grd_deptlist.colRef("deptcd") );
- var deptnm = grd_deptlist.textmatrix( row, grd_deptlist.colRef("deptnm"));
-
- opener.model.setValue(deptcdpath, deptcd);
- opener.model.setValue(deptnmpath, deptnm);
- opener.model.refresh();
-
- window.close();
-
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:316px; width:518px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:402px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var deptcdpath = opener.window.javascript.getParameter("receiveDeptCDPath");
- var deptnmpath = opener.window.javascript.getParameter("receiveDeptNMPath");
-
- var row = grd_deptlist.row;
- var deptcd = grd_deptlist.textmatrix( row, grd_deptlist.colRef("deptcd") );
- var deptnm = grd_deptlist.textmatrix( row, grd_deptlist.colRef("deptnm"));
- opener.model.setValue(deptcdpath, deptcd);
- opener.model.setValue(deptnmpath, deptnm);
- opener.model.refresh();
-
- window.close();
-
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|