123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273 |
- <?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>
- <list>
- <acntdeptlist/>
- </list>
- </main>
- <send>
- <searchitem/>
- <flag/>
- <rdo_flag/>
- </send>
- <init>
- <flag>
- <lable>계정그룹</lable>
- <value>acntgrup</value>
- </flag>
- <flag>
- <lable>근무지</lable>
- <value>dutplce</value>
- </flag>
- <searchitem/>
- <rdo_flag>
- <lable>명</lable>
- <value>nm</value>
- </rdo_flag>
- <rdo_flag>
- <lable>코드</lable>
- <value>cd</value>
- </rdo_flag>
- <comcd>
- <jobkindlist>
- <R0061>
- <cdid/>
- <cdnm/>
- </R0061>
- </jobkindlist>
- <jobposlist>
- <R0062>
- <cdid/>
- <cdnm/>
- </R0062>
- </jobposlist>
- <jobresplist>
- <R0063>
- <cdid/>
- <cdnm/>
- </R0063>
- </jobresplist>
- <prfshiplist>
- <R0058>
- <cdid/>
- <cdnm/>
- </R0058>
- </prfshiplist>
- <apntlist>
- <R0091>
- <cdid/>
- <cdnm/>
- </R0091>
- </apntlist>
- </comcd>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var iProperties;
-
- if (checkOpener()) {
- iProperties = opener.javascript.getParameter("SPZSA20202_1");
- }
- fInitialize();
- //alert(iProperties);
- if(iProperties==4)
- {
- cmb_flag.select(0);
- }
- else
- {
- cmb_flag.select(1);
- }
- //cmb_flag.select(1);
-
- // 화면 권한처리
- btn_search.disabled = !checkAuth("R") ;
-
- ]]>
- </script>
- <submission id="TRZSA20203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
- <submission id="TRZBC00101" method="post" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- /*
- 초기화 작업을 합니다.
- */
- function fInitialize(){
- model.removeNodeset("/root/main/list/acntdeptlist");
- radio1.select(0);
- cmb_flag.select(0);
-
- model.refresh();
- }
-
- /*
- 버튼 컨트롤들을 클릭했을때 공통으로 타는 함수입니다.
- control : "search" 는 조회 버튼 클릭
- "init"은 신규 버튼 클릭
- "save"는 저장 버튼 클릭
- grid : 그리드 컨트롤을 넘겨줍니다.
- param : 기타 param을 넘겨줍니다.
- */
- function fClicked(control, grid, param){
- if ("search" == control){
- fSearchClick(grid, param);
- model.resetInstanceNode("/root/send");
- } else if ("init" == control){
- model.reset();
- } else {
- messageBox("처리를 수행","E002");
- }
- model.refresh();
- }
-
- /*
- 조회버튼 클릭 타는 함수입니다.
- grid.explorerbar = "sortshow" sort설정합니다.
- ipt_usercdnm_flag는 검색조건의 사용자코드 or 사용자명입니다.
- radio1은 사용자코드 or 사용자명 선택 라디오 버튼입니다.
- submit을 날립니다.
- .
- */
- function fSearchClick(grid,param){
- var isearchitem = ipt_search_item.value;
- grid.explorerbar = "sortshow";
- model.removeNodeset("/root/main/list/acntdeptlist");
- grid.rebuild();
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/searchitem", ipt_search_item.currentText);
- model.setValue("/root/send/flag", cmb_flag.value);
- model.setValue("/root/send/rdo_flag", radio1.value);
- submit("TRZSA20203");
- }
-
-
- /*
- model.getValue(); 를 함수로 만들었습니다.
- param1 : node는 grid의 xPath입니다.
- param2 : row는 grid에서 선택한 row값입니다.
- param3 : element는 getvalue할 해당 element 명입니다.
-
- 해당 getvalue값을 return 해줍니다.
- return 하지 않으면 해당값을 가져올 수 없습니다.
- */
- function fGetValue(node, row, element) {
-
- var rtnValue = model.getValue(node + "[" + row + "]/" + element);
-
- return rtnValue;
- }
-
- /*
- model.setValue();를 함수로 만들었습니다.
- param1 : node는 setvalue할 컨트롤의 xPath입니다.
- param2 : destinationelement는 setvalue할 element명 입니다.
- param3 : sourceelement는 setvalue할 값입니다.
- */
- function fSetValue(node, destinationelement, sourceelement) {
- model.setValue(node + "/" + destinationelement, sourceelement);
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="590" pageheight="411" style="border-color:#c7a3cf; ">
- <group id="grp_body" scroll="auto" style="left:0px; top:0px; width:586px; height:411px; border-color:#c7a3cf; border-style:solid; ">
- <group id="grp_sea" style="left:5px; top:10px; width:574px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:574px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:156px; height:17px; ">계정/부서조회 :</caption>
- <line id="line1" style="x1:487px; y1:7px; x2:487px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:501px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClicked("search", grd_acntdeptlist);
- ]]>
- </script>
- </button>
- <select1 id="cmb_flag" ref="/root/init/flag" class="combo_search" disabled="true" appearance="minimal" style="left:227px; top:8px; width:101px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/flag">
- <label ref="lable"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_search_item" ref="/root/init/searchitem" class="input_s_essential" style="left:331px; top:8px; width:145px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if("13" == event.keyCode){
- btn_search.dispatch("DOMActivate");
- //fClicked("search", grd_userbaseinfo, param);
- }
- ]]>
- </script>
- </input>
- <select1 id="radio1" ref="/root/init" appearance="full" cols="2" overflow="visible" style="left:141px; top:10px; width:13px; height:13px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/rdo_flag">
- <label ref="lable"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <caption id="caption9" class="tit_2" style="left:8px; top:57px; width:111px; height:14px; vertical-align:middle; ">계정/부서조회</caption>
- <line id="line12" class="line_1" style="x1:0px; y1:72px; x2:584px; y2:73px; "/>
- <datagrid id="grd_acntdeptlist" nodeset="/root/main/list/acntdeptlist" caption="구분^근무지기관코드^근무지기관명^코드^근무지기관명^명" colwidth="100, 0, 0, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:0px; top:76px; width:584px; height:329px; ">
- <col ref="acntdepttype"/>
- <col ref="dutplceinstcd"/>
- <col ref="dutplceinstnm"/>
- <col ref="rgstcd"/>
- <col ref="dutplceinstnm"/>
- <col ref="rgstnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var iRow = grd_acntdeptlist.row;
- var iParam="";
- var iNode = "/root/main/list/acntdeptlist";
-
- var iParam_acntdepttype = fGetValue(iNode, iRow, "acntdepttype");
- var iParam_dutplceinstcd = fGetValue(iNode, iRow, "dutplceinstcd");
- var iParam_dutplceinstnm = fGetValue(iNode, iRow, "dutplceinstnm");
- var iParam_rgstcd = fGetValue(iNode, iRow, "rgstcd");
- var iParam_rgstnm = fGetValue(iNode, iRow, "rgstnm");
-
- iParam = iParam_acntdepttype+"|"+iParam_rgstcd+"|"+iParam_rgstnm+"|"+iParam_dutplceinstcd+"|"+iParam_dutplceinstnm;
-
- if ( checkOpener() ) {
- opener.javascript.setParameter("SPZSA20202_", iParam);
- } else {
- var rtn = messageBox("상위화면을 찾을 수", "E001");
- }
-
- // alert(rtn);
- //setParameter("flag", "userdept");
- //setParameter("code", iParam);
- window.close();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_acntdeptlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|