123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <list>
- </list>
- <cond>
- <condflag>2</condflag>
- <data/>
- <flag>U</flag>
- <condflag2>2</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="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.setFocus("ipt_data");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="700" pageheight="435" style="border-color:#c7a3cf; ">
- <group id="group2" style="left:0px; top:20px; 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:555px; y1:12px; x2:555px; y2:44px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:565px; 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="hidden" 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="hidden" 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;
- btn_save.visible = true;
- btn_add.visible = true;
- btn_del.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;
- btn_save.visible = false;
- btn_add.visible = false;
- btn_del.visible = false;
- }
-
- ipt_data.value="";
- ]]>
- </script>
- </select1>
- <select1 id="rdo_condflag2" ref="/root/main/cond/condflag2" appearance="full" cols="3" overflow="visible" style="left:210px; top:10px; width:140px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>사용자ID</label>
- <value>1</value>
- </item>
- <item>
- <label>사용자명</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <button id="btn_save" class="btn4_letter2" visibility="hidden" style="left:627px; top:17px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/savedata/deptlistdata",grd_deptlist.getUpdateData());
-
-
- submit("TXZSU00801",false);
-
-
- btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" visibility="hidden" 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>
- </group>
- <!-- 사용자전화번호 -->
- <datagrid id="grd_deptlist" nodeset="/root/main/list/telinfo" visibility="hidden" caption="기관^부서^전화위치^전화번호^seq^소속기관코드^소속부서코드" colwidth="124, 223, 186, 123, 100, 0, 0" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:0px; top:110px; width:690px; height:310px; ">
- <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>
- <datagrid id="grd_deptlist2" nodeset="/root/main/list/userinfo" caption="기관^부서^사용자ID^사용자명^전화번호^nzone" colwidth="80, 233, 78, 81, 108, 71" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:0px; top:110px; width:690px; height:310px; ">
- <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="mpphon" style="text-align:center; "/>
- <col ref="nzone" style="text-align:center; "/>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:0px; top:90px; width:111px; height:13px; vertical-align:middle; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">전화번호조회</caption>
- <button id="btn_add" class="btn2_letter3" visibility="hidden" style="left:570px; top:85px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_deptlist.insertRow(1);
- grd_deptlist.valueMatrix(1,grd_deptlist.colRef("instcd"))=model.getValue("/root/main/cond/instcd");
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn2_letter3" visibility="hidden" style="left:627px; top:85px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_deptlist.rowStatus(grd_deptlist.row) = 4;
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:107px; x2:690px; y2:107px; "/>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:603px; height:14px; ">전화번호 검색</caption>
- </xhtml:body>
- </xhtml:html>
|