123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387 |
- <?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>
- </list>
- <cond>
- <condflag>2</condflag>
- <data/>
- <flag>D</flag>
- <condflag2>1</condflag2>
- <instcd/>
- </cond>
- <result/>
- </main>
- <send>
- </send>
- <init>
- <searchitem/>
- </init>
- <popinfo>
- <refinfo>
- <serchitem/>
- </refinfo>
- </popinfo>
- <HideData>
- <searchdd/>
- </HideData>
- <init>
- <inst>
- <instcd>031</instcd>
- <instnm>본원</instnm>
- <instcd>032</instcd>
- <instnm>칠곡</instnm>
- </inst>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRZSU00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list"/>
- <submission id="TRZSU00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list"/>
- <submission id="TRZSU00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list"/>
- <submission id="TXZSU00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/result"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- /*
- 초기화 작업을 합니다.
- */
- function fInitialize(){
-
- // model.toggle("case1");
- btn_phone.selected = true;
- btn_phone.dispatch("DOMActivate");
-
- model.setValue("/root/main/cond/instcd", getUserInfo("dutplceinstcd"));
- //model.setFocus("ipt_data");
- model.setFocus("input1");
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="700" pageheight="500" style="border-color:#c7a3cf; ">
- <!-- 사용자전화번호 -->
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:603px; height:14px; ">전화번호 검색</caption>
- <switch id="switch1" style="left:0px; top:42px; width:695px; height:453px; ">
- <case id="case1" selected="true">
- <datagrid id="grd_deptlist2" nodeset="/root/main/list/userinfo" visibility="hidden" caption="기관^부서^사용자ID^사용자명^직종^전화번호^nzone" colwidth="64, 208, 64, 67, 88, 101, 60" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:0px; top:95px; width:690px; height:350px; ">
- <col ref="instcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/inst">
- <label ref="instnm"/>
- <value ref="instcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="deptnm"/>
- <col ref="userid" secretendposition="5" secretmark="*" secretstartposition="3" style="text-align:center; "/>
- <col ref="usernm" style="text-align:center; "/>
- <col ref="jobkindnm"/>
- <col ref="mpphon" style="text-align:center; "/>
- <col ref="nzone" style="text-align:center; "/>
- </datagrid>
- <datagrid id="grd_deptlist" nodeset="/root/main/list/telinfo" visibility="visible" caption="기관^부서^전화위치^전화번호^seq^소속기관코드^소속부서코드" colwidth="124, 223, 186, 123, 26, 0, 0" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:0px; top:95px; width:690px; height:350px; ">
- <col ref="instcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/inst">
- <label ref="instnm"/>
- <value ref="instcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="centnm" type="input"/>
- <col ref="deptnm" type="input"/>
- <col ref="telno" type="input" style="text-align:center; "/>
- <col ref="seq" visibility="hidden"/>
- <col ref="posinstcd"/>
- <col ref="posdeptcd"/>
- </datagrid>
- <group id="group2" style="left:0px; top:5px; width:690px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:690px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:87px; height:17px; ">검색조건 :</caption>
- <line id="line1" style="x1:605px; y1:12px; x2:605px; y2:44px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:620px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var flag = model.getValue(cmb_flag.attribute("ref"));
-
- model.makeValue("/root/send/reqdata/condflag" , model.getValue(rdo_condflag.attribute("ref")));
- model.makeValue("/root/send/reqdata/condflag2", model.getValue(rdo_condflag2.attribute("ref")));
- model.makeValue("/root/send/reqdata/data" , model.getValue("/root/main/cond/data"));
- model.makeValue("/root/send/reqdata/instcd" , model.getValue("/root/main/cond/instcd"));
- model.makeValue("/root/send/reqdata/flag" , flag);
-
- if(flag == "D")
- submit("TRZSU00801");
- else
- submit("TRZSU00802");
-
- ]]>
- </script>
- </button>
- <select1 id="rdo_condflag" ref="/root/main/cond/condflag" visibility="visible" appearance="full" cols="3" overflow="visible" style="left:210px; top:10px; width:195px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>부서/전화위치</label>
- <value>2</value>
- </item>
- <item>
- <label>전화번호</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_instcd" ref="/root/main/cond/instcd" class="input_essential" navindex="3" visibility="visible" appearance="minimal" style="left:396px; top:34px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>본원</label>
- <value>031</value>
- </item>
- <item>
- <label>칠곡</label>
- <value>032</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_data" ref="/root/main/cond/data" imemode="hangul" style="left:105px; top:34px; width:170px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- btn_search.dispatch("DOMActivate");
-
- ipt_data.refresh();
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_flag" ref="/root/main/cond/flag" appearance="minimal" style="left:105px; top:9px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>부서</label>
- <value>D</value>
- </item>
- <item>
- <label>사용자</label>
- <value>U</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var flag = model.getValue(cmb_flag.attribute("ref"));
-
- if(flag == "D") {
- rdo_condflag.visible = true;
- rdo_condflag2.visible = false;
- model.setValue(rdo_condflag.attribute("ref"), "2");
- grd_deptlist.visible = true;
- grd_deptlist2.visible= false;
- cmb_instcd.visible = true;
- caption2.visible = true;
- cmb_instcd.value = getUserInfo("dutplceinstcd");
-
-
- } else if(flag == "U") {
- rdo_condflag.visible = false;
- rdo_condflag2.visible = true;
- model.setValue(rdo_condflag2.attribute("ref"), "2");
- grd_deptlist.visible = false;
- grd_deptlist2.visible= true;
- cmb_instcd.visible = false;
- caption2.visible=false;
- }
-
- ipt_data.value="";
- ]]>
- </script>
- </select1>
- <select1 id="rdo_condflag2" ref="/root/main/cond/condflag2" visibility="hidden" appearance="full" cols="4" overflow="visible" style="left:210px; top:10px; width:285px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>사용자ID</label>
- <value>1</value>
- </item>
- <item>
- <label>사용자명</label>
- <value>2</value>
- </item>
- <item>
- <label>전화번호</label>
- <value>3</value>
- </item>
- <item>
- <label>W-Zone</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" visibility="visible" style="left:306px; top:35px; width:87px; height:17px; text-align:center; ">기 관 :</caption>
- <caption id="caption4" class="search_name" style="left:15px; top:35px; width:88px; height:17px; text-align:left; ">검색어 :</caption>
- <caption id="caption5" class="search_name" style="left:15px; top:35px; width:88px; height:17px; text-align:left; ">검색어 :</caption>
- <input id="input1" ref="/root/main/cond/data" imemode="hangul" style="left:105px; top:34px; width:170px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- btn_search.dispatch("DOMActivate");
-
- input1.refresh();
- }
- ]]>
- </script>
- </input>
- <select1 id="radio1" ref="/root/main/cond/condflag2" visibility="hidden" appearance="full" cols="4" overflow="visible" style="left:210px; top:10px; width:285px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>사용자ID</label>
- <value>1</value>
- </item>
- <item>
- <label>사용자명</label>
- <value>2</value>
- </item>
- <item>
- <label>전화번호</label>
- <value>3</value>
- </item>
- <item>
- <label>W-Zone</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- </group>
- <caption id="caption3" class="tit_2" style="left:0px; top:75px; width:111px; height:13px; vertical-align:middle; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">전화번호조회</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:92px; x2:690px; y2:92px; "/>
- </case>
- <case id="case2">
- <group id="group1" style="left:0px; top:5px; width:690px; height:60px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:690px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption7" class="search_name" style="left:15px; top:9px; width:87px; height:17px; ">검색조건 :</caption>
- <line id="line3" style="x1:605px; y1:12px; x2:605px; y2:44px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="combo1" ref="/root/main/cond/instcd" class="input_essential" navindex="3" visibility="visible" appearance="minimal" style="left:396px; top:34px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>본원</label>
- <value>031</value>
- </item>
- <item>
- <label>칠곡</label>
- <value>032</value>
- </item>
- </choices>
- </select1>
- <input id="input2" ref="/root/main/cond/data" imemode="hangul" style="left:105px; top:34px; width:170px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- btn_search.dispatch("DOMActivate");
-
- ipt_data.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="caption8" class="search_name" visibility="visible" style="left:306px; top:35px; width:87px; height:17px; text-align:center; ">기 관 :</caption>
- <caption id="caption9" class="search_name" style="left:15px; top:35px; width:88px; height:17px; text-align:left; ">검색어 :</caption>
- <caption id="caption10" class="search_name" style="left:15px; top:35px; width:88px; height:17px; text-align:left; ">검색어 :</caption>
- <input id="ipt_deptdata" ref="/root/main/cond/data" imemode="hangul" style="left:105px; top:34px; width:170px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == "13") {
- setInputNodeCurText();
- btn_deptsear.dispatch("DOMActivate");
-
- ipt_deptdata.refresh();
- }
- ]]>
- </script>
- </input>
- <select1 id="radio4" ref="/root/main/cond/condflag" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:105px; top:10px; width:220px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>부서명</label>
- <value>1</value>
- </item>
- <item>
- <label>부서위치</label>
- <value>2</value>
- </item>
- <item>
- <label>전화번호</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <button id="btn_deptsear" class="btn1_letter2" style="left:620px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var flag = model.getValue(cmb_flag.attribute("ref"));
-
- model.makeValue("/root/send/reqdata/condflag", model.getValue(rdo_condflag.attribute("ref")));
- model.makeValue("/root/send/reqdata/data", model.getValue("/root/main/cond/data"));
- model.makeValue("/root/send/reqdata/instcd", model.getValue("/root/main/cond/instcd"));
-
- submit("TRZSU00803");
-
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="datagrid1" nodeset="/root/main/list/deptinfo" visibility="visible" caption="기관^부서^부서위치^전화번호" colwidth="100, 200, 180, 120" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:0px; top:95px; width:690px; height:350px; ">
- <col ref="instcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/inst">
- <label ref="instnm"/>
- <value ref="instcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="inorddeptnm"/>
- <col ref="deptplce"/>
- <col ref="cntctel"/>
- </datagrid>
- <caption id="caption11" class="tit_2" style="left:0px; top:75px; width:195px; height:13px; vertical-align:middle; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">부서정보 조회</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:92px; x2:690px; y2:92px; "/>
- </case>
- </switch>
- <button id="btn_phone" class="btn_sw" group="tab" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:1px; top:19px; width:100px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
- <caption>전화번호부</caption>
- <toggle case="case1" ev:event="onclick"/>
- <setfocus ev:event="xforms-valid"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case1");
- ]]>
- </script>
- </button>
- <button id="btn_dept" class="btn_sw" group="tab" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:101px; top:19px; width:103px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
- <caption>부서정보</caption>
- <toggle case="case3" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case2");
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|