123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet ype="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>
- <list>
- <userlist/>
- <selectuserlist>
- <list/>
- </selectuserlist>
- </list>
- <item>
- <temp/>
- </item>
- <temp>
- <param/>
- <flag/>
- <searchitem/>
- <prfshipflagcd/>
- <dutplceinstcd/>
- <history/>
- </temp>
- <list2>
- <selectuserlist>
- <list/>
- </selectuserlist>
- </list2>
- </main>
- <send>
- <searchitem/>
- <flag/>
- <searchitem_dutplce/>
- <flag_dutplce/>
- <searchitem_dutplceinst/>
- <prfshipflagcd/>
- <dutplceinstcd/>
- </send>
- <init>
- <searchitem/>
- <flag>
- <lable>사용자명</lable>
- <value>usernm</value>
- </flag>
- <deptflag>
- <lable>근무지명</lable>
- <value>dutplcenm</value>
- </deptflag>
- <searchitem_dutplce/>
- <namesearch/>
- <flag>
- <lable>사용자ID</lable>
- <value>userid</value>
- </flag>
- <deptflag>
- <lable>근무지코드</lable>
- <value>dutplcecd</value>
- </deptflag>
- </init>
- <temp/>
- </root>
- </instance>
- <submission id="TRPMC02699" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
-
- if (checkOpener()){
- rdo_user.select(1);
- var userid = opener.javascript.getParameter("SPPMC02600_userid");
- if( userid != '' && userid != '' ){
- model.setValue("/root/init/searchitem", opener.javascript.getParameter("SPPMC02600_userid"));
- model.refresh();
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- /*
- 초기화 작업을 합니다.
- */
- function fInitialize(){
- model.removeNodeset("/root/main/list/userlist");
- rdo_dutplce.select(0);
- rdo_user.select(0);
-
- var iflag = model.getValue("/root/main/temp/flag");
- var isearchitem = model.getValue("/root/main/temp/searchitem");
- var prfshipflagcd = model.getValue("/root/main/temp/prfshipflagcd");
- var dutplceinstcd = model.getValue("/root/main/temp/dutplceinstcd");
-
- if(prfshipflagcd!=""){
- model.setValue("/root/send/prfshipflagcd", prfshipflagcd);
- }
- if(dutplceinstcd!=""){
- model.setValue("/root/send/dutplceinstcd", dutplceinstcd);
- }
-
- if (iflag != "" && isearchitem != ""){
- model.setValue("/root/send/flag", model.getValue("/root/main/temp/flag"));
- model.setValue("/root/send/searchitem", model.getValue("/root/main/temp/searchitem"));
-
- submit("TRPMC02699");
-
- if(grd_userlist.rows > 1 && grd_userlist.rows == 2){
- // var iParam = model.getValue("/root/main/list/userlist["+iRow+"]");
- var nodelist = instance1.selectNodes("/root/main/list/userlist[1]");
- var rCVS = getNodeListCSV(nodelist);
- if ( checkOpener() ) {
- opener.javascript.setParameter("SPZSU10103_", rCVS);
- } else {
- var rtn = messageBox("상위화면을 찾을 수", "E001");
- }
- }
- }
- 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 사용자명입니다.
- rdo_user은 사용자코드 or 사용자명 선택 라디오 버튼입니다.
- submit을 날립니다.
- */
- function fSearchClick(grid, param){
- model.removeNodeset("/root/main/list/userlist");
- grid.rebuild();
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/searchitem", ipt_search_item.currentText);
- model.setValue("/root/send/searchitem_dutplce", ipt_dutplcecd.currentText);
- var prfshipflagcd = model.getValue("/root/main/temp/prfshipflagcd");
- var dutplceinstcd = model.getValue("/root/main/temp/dutplceinstcd");
- model.setValue("/root/send/prfshipflagcd", prfshipflagcd);
- model.setValue("/root/send/flag", rdo_user.value);
- model.setValue("/root/send/flag_dutplce", rdo_dutplce.value);
- model.setValue("/root/send/dutplceinstcd", dutplceinstcd);
-
- if(model.getValue("/root/main/temp/param") == "_OneS_DD"){
- model.setValue("/root/send/searchitem_dutplceinst", model.getValue("/root/main/temp/param"))
- }
- submit("TRPMC02699");
- }
-
- function fResetNode(node, destinationelement){
- // model.setValue(node + "/" + destinationelement, "");
- alert(model.elementName("/root/main/item"));
- }
- /*
- 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="670" pageheight="440" guideline="470;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group5" scroll="auto" style="left:5px; top:13px; width:635px; height:387px; ">
- <group id="group2" style="left:0px; top:2px; width:635px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:633px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:117px; height:17px; ">검색조건 :</caption>
- <line id="line1" style="x1:550px; y1:8px; x2:550px; y2:51px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:565px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_search_item.currentText == "" && ipt_dutplcecd.currentText == ""){
- messageBox("검색어를 1자이상 ", "C001");
- } else {
- var param = ipt_search_item.currentText;
- fClicked("search", grd_userlist);
- }
- ]]>
- </script>
- </button>
- <input id="ipt_search_item" ref="/root/init/searchitem" class="input_s_essential" style="left:330px; top:34px; width:122px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if("13" == event.keyCode){
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <select1 id="rdo_user" ref="/root/init" class="s" appearance="full" cellspacing="24" cols="2" overflow="visible" style="left:116px; top:34px; width:13px; height:13px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/flag">
- <label ref="lable"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_dutplcecd" ref="/root/init/searchitem_dutplce" class="input_s_essential" style="left:330px; top:8px; width:122px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if("13" == event.keyCode){
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <select1 id="rdo_dutplce" ref="/root/init/deptflag" class="s" appearance="full" cellspacing="24" cols="2" overflow="visible" style="left:116px; top:8px; width:13px; height:13px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/deptflag">
- <label ref="lable"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <select id="chk_namesearch" ref="/root/init/namesearch" visibility="hidden" overflow="visible" appearance="full" style="left:15px; top:30px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>"명"검색</label>
- <value>name</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- rdo_dutplce.select(1);
- rdo_user.select(1);
- ]]>
- </script>
- </select>
- </group>
- <caption id="caption9" class="tit_2" style="left:0px; top:69px; width:111px; height:13px; vertical-align:middle; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">사용자조회</caption>
- <line id="line12" class="line_1" style="x1:0px; y1:83px; x2:633px; y2:83px; "/>
- <datagrid id="grd_userlist" nodeset="/root/main/list/userlist" caption="사용자ID^사용자명^주민번호^소속기관^소속부서^근무지기관^근무지" colwidth="60, 60, 116, 100, 100, 100, 90" dataheight="25" explorerbar="sort" extendlastcol="scroll" frozencols="4" frozenrows="false" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="32" style="left:0px; top:89px; width:633px; height:291px; ">
- <col ref="userid"/>
- <col ref="usernm"/>
- <col ref="rrgstno"/>
- <col ref="posinstnm"/>
- <col ref="posdeptnm"/>
- <col ref="dutplceinstnm"/>
- <col ref="dutplcenm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( checkOpener() ) {
- btn_confirm.dispatch("DOMActivate");
- } else {
- messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:603px; height:13px; ">사용자조회</caption>
- <group id="group3" scroll="auto" style="left:515px; top:404px; width:125px; height:22px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:10px; top:0px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(checkOpener()){
- row = grd_userlist.row;
- if( row > 0 ){
- if( getNodesetCount("/root/main/list/userlist") > 0 ){
- opener.model.copyNode("/root/main/userinfo", grd_userlist.getNode( row ));
- opener.model.makeNode("/root/main/popupendflag");
- opener.model.setValue("/root/main/popupendflag", "ok");
-
- opener.model.refresh();
- window.close();
- }
- }
- }else{
- messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
- }
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:69px; top:0px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|