123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- <?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>SMRPB01703_인사조건검색결과</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <itemqry>
- <itemqrylist/>
- </itemqry>
- </main>
- <init>
- <orderby>
- <code>1</code>
- <cdnm>오름차순</cdnm>
- <code>2</code>
- <cdnm>내림차순</cdnm>
- </orderby>
- <titleinfo>
- <titlevo/>
- <titlecnt/>
- <titlenm/>
- <coltype/>
- </titleinfo>
- </init>
- <send>
- <itemqry>
- <strqry>select emplno , JOBPOSCD from mis.RPBMEMPL where emplno = '10404053 '</strqry>
- <titlecnt>2</titlecnt>
- <titlenm>emplno,JOBPOSCD</titlenm>
- </itemqry>
- <orderby/>
- </send>
- <hidden/>
- <target/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var strqry = model.getValue("/root/target/defaultvalue/strqry");
- var title = model.getValue("/root/target/defaultvalue/title");
- var titlecnt = model.getValue("/root/target/defaultvalue/titlecnt");
- var titlenm = model.getValue("/root/target/defaultvalue/titlenm");
- var coltype = model.getValue("/root/target/defaultvalue/coltype");
-
- model.setValue("/root/send/itemqry/strqry",strqry);
- model.setValue("/root/send/itemqry/titlecnt",titlecnt);
- model.setValue("/root/send/itemqry/titlenm",titlenm);
- model.setValue("/root/init/titleinfo/titlevo",title);
- model.setValue("/root/init/titleinfo/titlenm",titlenm);
- model.setValue("/root/init/titleinfo/coltype",coltype);
-
- model.setValue(rbo_orderby.attribute("ref"),"1");
- btn_search.dispatch("DOMActivate");
- model.setFocus("grd_result");
- ]]>
- </script>
- <submission id="TRRPB01703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/itemqry" resultref="/root/main/itemqry"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.js"/>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-right:8; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">인사조건검색결과</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:40px; width:1195px; height:740px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:3px; width:1193px; height:27px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1134px; top:6px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i = grd_result.cols; i >= grd_result.fixedCols ; i--) {
- grd_result.removeColumn(false);
- }
-
- if (grd_result.nodeset.length> 0) {
- grd_result.nodeset = "/root/init/temp";
- model.removeNodeset(grd_result.nodeset);
- model.refresh();
- }
- submit("TRRPB01703");
- try{
- var node = instance1.selectNodes("/root/main/itemqry/itemqrylist[1]/*");
- var titlecnt = model.getValue("/root/target/defaultvalue/titlecnt");
- var coltype = model.getValue("/root/target/defaultvalue/coltype").split(",");
-
- for(i=0;i<titlecnt;i++) {
-
- if(coltype[i] == "INT" ||coltype[i] == "FLOAT" || coltype[i] == "MONEY" ){
- grd_result.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " format:" + "#,###;"+ " style:" + "text-align:right; ", false);
- }
- else if(coltype[i] == "YYMMDD"){
- grd_result.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " format:" + "yyyy-mm-dd;" + " style:" + "text-align:left; ", false);
- }
- else if(coltype[i] == "YYMM"){
- grd_result.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " style:" + " format:" + "yyyy-mm;" + "text-align:left; ", false);
- }
- else{
- grd_result.addColumn("ref:" + node.item(i).nodeName + "; type:output;" + " style:" + "text-align:left; ", false);
- }
- }
- }
- catch (ex) {
- }
-
- grd_result.caption = model.getValue("/root/target/defaultvalue/title");
- grd_result.nodeset = "/root/main/itemqry/itemqrylist";
- grd_result.rebuild();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1130px; y1:8px; x2:1130px; y2:23px; "/>
- <button id="btn_saveexcel" class="btn2_letter4" style="left:1129px; top:32px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- grd_result.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" visibility="hidden" style="left:1px; top:7px; width:100px; height:17px; vertical-align:middle; ">항목구분</caption>
- <select1 id="rbo_orderby" ref="/root/send/orderby" visibility="hidden" overflow="visible" appearance="full" cols="2" style="left:79px; top:7px; width:311px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/orderby">
- <label ref="cdnm"/>
- <value ref="code"/>
- </itemset>
- </choices>
- </select1>
- <datagrid id="grd_result" colsep="^" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:2px; top:54px; width:1190px; height:684px; "/>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1195px; height:25px; "/>
- </xhtml:body>
- </xhtml:html>
|