123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <?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>
- <ranklist>
- <list>
- <rank>
- <reprdept/>
- <dept/>
- </rank>
- </list>
- </ranklist>
- </main>
- <send>
- <search>
- <reprdept/>
- <insuimp/>
- <appdd/>
- </search>
- </send>
- <target/>
- <temp>
- <combo>
- <appdd/>
- <value/>
- </combo>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 검색 조건 강제 지정
- model.setValue("/root/send/search/reprdept","d");
- model.setValue("/root/send/search/insuimp","A");
- model.setValue("/root/send/search/appdd","-");
-
- submit("TRZTP00801");
-
- // 소위원회 명이 동일하면 Merge하기 위해 정렬을 한다.
- var grd_length;
- grd_length = grd_ranklist.rows - grd_ranklist.fixedRows;
- grd_ranklist.sort(1, 1, grd_length, 2) = "asc";
-
- // 정렬 후 refresh를 해야 적용이 된다.
- grd_ranklist.mergeCells = "bycol";
- grd_ranklist.mergeCol(1) = true;
- grd_ranklist.mergeCol(2) = false;
- grd_ranklist.refresh();
- ]]>
- </script>
- <submission id="TRZTP00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/ranklist/list"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="330" pageheight="470">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:126px; height:14px; ">소위원회-해당부서</caption>
- <datagrid id="grd_ranklist" nodeset="/root/main/ranklist/list/rank" caption="소위원회^해당부서" colsep="^" colwidth="113, 79" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" mergecells="bycol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:5px; top:25px; width:320px; height:435px; ">
- <col ref="reprdept"/>
- <col ref="dept"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // 데이터 컬럼이 아니라면 실행 하지 않는다. isDataCell 공통 함수
- // 컬럼헤드, 총계, 소계 일 경우 실행하지 않는다.
-
- var cur_row = grd_ranklist.row;
- var cur_col = grd_ranklist.col;
-
- var reprdept = grd_ranklist.textmatrix(cur_row,cur_col-1);
- var dept = grd_ranklist.textmatrix(cur_row,cur_col);
-
- if( isDataCell() )
- {
- if ( grd_ranklist.row > 0 && grd_ranklist.col > 1)
- {
- // alert(reprdept + " " + dept);
- opener.model.setValue("/root/main/reprdept",reprdept);
- opener.model.setValue("/root/main/dept",dept);
- opener.group2.refresh();
- window.close();
- }
- }
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|