123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- <?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>
- <deptlist>
- <dept>
- <deptcd/>
- <deptnm/>
- <deptdesc/>
- <deptcdlevl2/>
- <deptcdlevl3/>
- <deptcdlevl4/>
- <deptcdlevl5/>
- <deptcdlevl6/>
- <deptcdlevl7/>
- <updeptcd/>
- <fstrgstdt/>
- <fstrgstrid/>
- <lastrgstdt/>
- <lastrgstrid/>
- </dept>
- </deptlist>
- <search>
- <searchcondition>deptnm</searchcondition>
- <searchterm/>
- <instcd/>
- <supdeptcolumn/>
- </search>
- </main>
- <send>
- <data>
- <searchcondition/>
- <searchterm/>
- <instcd/>
- <supdeptcolumn/>
- </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");
- var instcd = opener.window.javascript.getParameter("instCd");
- var supdeptcolumn = opener.window.javascript.getParameter("supDeptColumn");
- model.setValue("/root/main/search/searchcondition", searchcondition);
- model.setValue("/root/main/search/searchterm", searchterm);
- model.setValue("/root/send/data/searchcondition", searchcondition);
- model.makeValue("/root/send/data/searchterm", searchterm);
- model.setValue("/root/send/data/instcd", instcd);
- model.setValue("/root/send/data/supdeptcolumn", supdeptcolumn);
- submit("TRZSD00115");
- model.refresh();
- grd_deptlist.rebuild();
-
-
- ]]>
- </script>
- <submission id="TRZSD00115" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" 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");
- var instcd = opener.window.javascript.getParameter("instCd");
- var supdeptcolumn = opener.window.javascript.getParameter("supDeptColumn");
- model.setValue("/root/send/data/searchterm", searchterm);
- model.setValue("/root/send/data/searchcondition", searchcondition);
- model.setValue("/root/send/data/instcd", instcd);
- model.setValue("/root/send/data/supdeptcolumn", supdeptcolumn);
- success = submit("TRZSD00115");
- if(success) {
- var dept_fixed_rows = grd_deptlist.fixedRows;
- var dept_rows = grd_deptlist.rows;
- }
- /*
- if(success) {
- var dept_fixed_rows = grd_deptlist.fixedRows;
- var dept_rows = grd_deptlist.rows;
- alert("dept_fixed_rows = "+dept_fixed_rows);
- alert("dept_rows = "+dept_rows);
- var dept_iscurrent_index = grd_deptlist.colRef("iscurrent");
- var dept_color_index = grd_deptlist.colRef("color");
- for(var i = dept_fixed_rows; i<dept_rows; i++){
- var iscurrent = grd_deptlist.valueMatrix(i, dept_iscurrent_index);//현재 사용중인것과 종료된것을 구분한다.
- if(iscurrent=='Y'){//기관에서 현재사용중인부서
- //grd_clsdeptlist.rowstyle( i , "data" , "background-color" ) = "#ffffff";//현제 기관에서 사용중인 부서
- grd_deptlist.valueMatrix(i, cls_color_index) = "#ffffff";
- }else if(iscurrent=='F'){
- grd_deptlist.cellStyle("background-color", i, grd_deptlist.colRef("deptnm") ) = "#fcd2c1";//현제 기관에서 사용중이며 미래에 적용될 부서.
- grd_deptlist.valueMatrix(i, cls_color_index) = "#fcd2c1";
- }else if(iscurrent=='P'){
- grd_deptlist.cellStyle("background-color", i, grd_deptlist.colRef("deptnm") ) = "#b9e5fb";//현제 기관에서 사용중이며, 종료된부서.
- grd_deptlist.valueMatrix(i, dept_color_index) = "#b9e5fb";
- }else{
- grd_deptlist.cellStyle("background-color", i, grd_deptlist.colRef("deptnm") ) = "#c8e67b";//현제 기관에서는 사용하지 않는 부서
- grd_deptlist.valueMatrix(i, dept_color_index) = "#c8e67b";
- }
- }
- for(var j = grd_deptlist.fixedRows; j<grd_deptlist.rows;j++){
- var iscurrent = grd_deptlist.valueMatrix(j, grd_deptlist.colRef("iscurrent"));
- if(iscurrent=="Y"){
- //grd_deptlist.rowstyle( j , "data" , "background-color" ) = "#ffffff";//현제 기관의 선택된업무에서 사용중인 부서
- grd_deptlist.valueMatrix(j, grd_deptlist.colRef("color")) = "#ffffff";
- }else if(iscurrent=="F"){
- grd_deptlist.cellStyle("background-color", j, grd_deptlist.colRef("depthngnm") ) = "#fcd2c1";//현제 기관에서는 사용중이며, 종료된부서.
- grd_deptlist.valueMatrix(j, grd_deptlist.colRef("color")) = "#fcd2c1";
- }else if(iscurrent=="P"){
- grd_deptlist.cellStyle("background-color", j, grd_deptlist.colRef("depthngnm") ) = "#b9e5fb";//현제 기관에서는 사용중이며, 종료된부서.
- grd_deptlist.valueMatrix(j, grd_deptlist.colRef("color")) = "#b9e5fb";
- }
- }
-
- }
- */
- ]]>
- </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="부서 코드^부서이름" colsep="^" colwidth="100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:0px; top:66px; width:517px; height:250px; ">
- <col ref="deptcd"/>
- <col ref="deptnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell()) {
- 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>
|