123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SPCVT00300_부서별직원검색
- * Summary : 부서별 직원검색
- * Programmer : Roger Kim
- * Date Written : 2008.11.18
- * History :
- * Remark :
- -->
- <?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>
- <indxlist>
- <item>
- <depth/>
- <deptcd/>
- <psnworksupdeptcd/>
- <depthngnm/>
- <pathcd/>
- </item>
- </indxlist>
- <empllist>
- <dutunitnm/>
- <empnm/>
- <jobposcd/>
- <jobrespcd/>
- <grupjoblncd/>
- <userkindcd/>
- <posinstnm/>
- <posdeptnm/>
- <empid/>
- <dutinstnm/>
- <dutunitcd/>
- <posdeptcd/>
- </empllist>
- <list>
- <emplist>
- <instnm/>
- <deptnm/>
- <deptcd/>
- <empnm/>
- <empid/>
- <psnworksupdeptnm/>
- <psnworksupdeptcd/>
- <grupjoblncd/>
- <userkindcd/>
- <prfshipflagcd/>
- <jobkindcd/>
- <jobposcd/>
- <jobrespcd/>
- <psnworkyn/>
- <dutinstnm/>
- <dutunitnm/>
- <dutunitcd/>
- <posinstnm/>
- <posdeptnm/>
- <posdeptcd/>
- <maindutplceflag/>
- </emplist>
- </list>
- <search>
- <instcd/>
- <empid/>
- </search>
- <temp>
- <instnm/>
- <pathnm/>
- </temp>
- </main>
- <send>
- <instcd/>
- <deptcd/>
- </send>
- <init>
- <C0048list>
- <cdid/>
- <cdnm/>
- </C0048list>
- <R0058list>
- <cdid/>
- <cdnm/>
- </R0058list>
- <R0059list>
- <cdid/>
- <cdnm/>
- </R0059list>
- <R0061list>
- <cdid/>
- <cdnm/>
- </R0061list>
- <R0062list>
- <cdid/>
- <cdnm/>
- </R0062list>
- <R0063list>
- <cdid/>
- <cdnm/>
- </R0063list>
- <Z0007list>
- <cdid/>
- <cdnm/>
- </Z0007list>
- <Z0016list>
- <cdid/>
- <cdnm/>
- </Z0016list>
- </init>
- </root>
- </instance>
- <submission id="TRCVT00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/indxlist"/>
- <submission id="TRCVT00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/empllist"/>
- <submission id="TRCVT00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/search" replace="instance" add="bottom" resultref="/root/main/list"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- </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/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList( new Array("C0048", "R0058", "R0059", "R0061", "R0062", "R0063", "Z0007", "Z0016"), new Array("/root/init/C0048list", "/root/init/R0058list", "/root/init/R0059list", "/root/init/R0061list", "/root/init/R0062list", "/root/init/R0063list", "/root/init/Z0007list", "/root/init/Z0016list"), true );
-
- // 검색내용을 초기화시킴.
- model.removeNodeset("/root/main/empllist");
- model.removeNodeset("/root/main/list/emplist");
- var R_instcd = getUserInfo("dutplceinstcd");
- if (R_instcd == "031" || R_instcd == "032" || R_instcd == "012" ){
- cmb_instcd.value=R_instcd;
- submit("TRCVT00301");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="900" pageheight="600" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="grp_Condition" scroll="auto" style="left:0px; top:0px; width:884px; height:555px; ">
- <group id="group2" style="left:0px; top:0px; width:884px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:884px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:77px; height:17px; ">기 관 :</caption>
- <line id="line1" style="x1:778px; y1:7px; x2:778px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:803px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/empllist");
- model.removeNodeset("/root/main/list/emplist");
-
- submit("TRCVT00301");
-
- model.setValue("/root/main/temp/instnm", "");
- model.setValue("/root/main/temp/pathnm", "");
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_default" appearance="minimal" style="left:100px; top:8px; width:175px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/C0048list/C0048">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/main/empllist");
- model.removeNodeset("/root/main/list/emplist");
-
- submit("TRCVT00301");
-
- model.setValue("/root/main/temp/instnm", "");
- model.setValue("/root/main/temp/pathnm", "");
- model.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption9" class="tit_2" style="left:5px; top:40px; width:110px; height:14px; vertical-align:middle; ">조직도</caption>
- <line id="line12" class="line_1" style="x1:0px; y1:55px; x2:310px; y2:55px; "/>
- <treeview id="trv_dgindx" ref="/root/main/indxlist/item" expanddepth="2" itemsettype="depth" style="left:0px; top:61px; width:310px; height:491px; padding-left:20; border-color:#c0c0c0; border-style:solid; ">
- <itemset nodeset="/root/main/indxlist/item">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- <depth ref="depth"/>
- <upcode ref="psnworksupdeptcd"/>
- </itemset>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removeNodeset("/root/main/empllist");
- model.removeNodeset("/root/main/list/emplist");
-
- model.setValue("/root/main/temp/instnm", "");
- model.setValue("/root/main/temp/pathnm", "");
- model.refresh();
-
- var iIndx = trv_dgindx.focusIndex + 1;
- // var iIndx2 = trv_dgindx.focusIndex + 2;
- // var psnworksupdeptcd = model.getValue("/root/main/indxlist/item[" + iIndx + "]/psnworksupdeptcd");
- var deptcd = model.getValue("/root/main/indxlist/item[" + iIndx + "]/deptcd");
- var depth = model.getValue("/root/main/indxlist/item[" + iIndx + "]/depth");
- var r_instnm = model.getValue("/root/main/indxlist/item[" + iIndx + "]/instnm");
- var r_pathnm = model.getValue("/root/main/indxlist/item[" + iIndx + "]/pathnm");
- // var nextdeptcd = model.getValue("/root/main/indxlist/item[" + iIndx2 + "]/psnworksupdeptcd");
-
- model.setValue("/root/main/temp/instnm", r_instnm);
- model.setValue("/root/main/temp/pathnm", r_pathnm);
- model.refresh();
- if(parseFloat(depth) >=2){
- model.setValue("/root/send/deptcd", deptcd);
- if ((model.getValue("/root/send/instcd") != "") && (model.getValue("/root/send/deptcd") != "")){
- submit("TRCVT00302");
- model.setValue("/root/send/deptcd", "");
- }
- }
- ]]>
- </script>
- </treeview>
- <caption id="caption2" style="left:320px; top:44px; width:111px; height:14px; vertical-align:middle; ">* 선택된 근무기관 :</caption>
- <output id="output1" ref="/root/main/temp/instnm" style="left:435px; top:41px; width:435px; height:19px; font-weight:bold; vertical-align:middle; "/>
- <caption id="caption3" style="left:330px; top:64px; width:98px; height:14px; vertical-align:middle; ">선택된 근무부서 :</caption>
- <output id="output2" ref="/root/main/temp/pathnm" style="left:435px; top:61px; width:435px; height:19px; font-weight:bold; vertical-align:middle; "/>
- <line id="line2" class="line_1" style="x1:315px; y1:85px; x2:884px; y2:85px; "/>
- <datagrid id="grd_deptemplist" nodeset="/root/main/empllist" allowselection="false" backcolorfrozen="#FEFED2" caption="근무부서명^직원명^직위^직책^직군^사용자유형^소속기관명^소속부서명^직원ID^근무기관명^근무부서^소속부서" colsep="^" colwidth="130, 90, 95, 95, 95, 95, 100, 130, 80, 0, 0, 0" dataheight="25" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:315px; top:91px; width:569px; height:253px; ">
- <col ref="dutunitnm" style="text-align:center; "/>
- <col ref="empnm" style="text-align:center; "/>
- <col disabled="true" ref="jobposcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/R0062list/R0062">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="jobrespcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/R0063list/R0063">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="grupjoblncd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/R0059list/R0059">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="userkindcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/Z0016list/Z0016">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="posinstnm" style="text-align:center; "/>
- <col ref="posdeptnm" style="text-align:center; "/>
- <col ref="empid" style="text-align:center; "/>
- <col ref="dutinstnm" visibility="hidden" style="text-align:center; "/>
- <col ref="dutunitcd" visibility="hidden" style="text-align:center; "/>
- <col ref="posdeptcd" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var row = grd_deptemplist.row;
- var s_empid = grd_deptemplist.valueMatrix(row, grd_deptemplist.colRef("empid"));
- var s_instcd = model.getValue("/root/send/instcd");
-
- if ((grd_deptemplist.row > 0) && grd_deptemplist.isCell(event.target)){
- model.setValue("/root/main/search/instcd", s_instcd);
- model.setValue("/root/main/search/empid", s_empid);
- if ((model.getValue("/root/main/search/instcd") != "") && (model.getValue("/root/main/search/empid") != "")){
- submit("TRCVT00303");
- model.setValue("/root/main/search/instcd", "");
- model.setValue("/root/main/search/empid", "");
- }
- } else {
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_emplist" nodeset="/root/main/list/emplist" allowselection="false" backcolorfrozen="#FEFED2" caption="근무지기관명^근무지부서명^근무지부서코드^직원명^*^직위^직책^직종^교직구분^직군^사용자유형^인사상위부서^상위부서코드^소속기관명^소속부서명^소속부서코드^근무(발령)기관명^근무(발령)부서명^근무(발령)부서코드^직원ID" colsep="^" colwidth="120, 130, 0, 90, 15, 95, 95, 95, 95, 100, 100, 130, 0, 120, 130, 0, 120, 130, 0, 80" dataheight="25" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:315px; top:349px; width:569px; height:203px; ">
- <col ref="instnm" style="text-align:center; "/>
- <col ref="deptnm" style="text-align:center; "/>
- <col ref="deptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="empnm" style="text-align:center; "/>
- <col disabled="true" ref="maindutplceflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>*</label>
- <value>Y</value>
- </item>
- <item>
- <label/>
- <value>N</value>
- </item>
- <item>
- <label/>
- <value/>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="jobposcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/R0062list/R0062">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="jobrespcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/R0063list/R0063">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="jobkindcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/R0061list/R0061">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="prfshipflagcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/R0058list/R0058">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="grupjoblncd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/R0059list/R0059">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="userkindcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/Z0016list/Z0016">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="psnworksupdeptnm" style="text-align:center; "/>
- <col ref="psnworksupdeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="posinstnm" style="text-align:center; "/>
- <col ref="posdeptnm" style="text-align:center; "/>
- <col ref="posdeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="dutinstnm" style="text-align:center; "/>
- <col ref="dutunitnm" style="text-align:center; "/>
- <col ref="dutunitcd" visibility="hidden" style="text-align:center; "/>
- <col ref="empid" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:555px; width:884px; height:27px; ">
- <button id="button3" class="btn4_letter2" style="left:827px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|