SPMNZ00400_전화번호.xrw 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>전화번호조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. </list>
  12. <cond>
  13. <condflag>2</condflag>
  14. <data/>
  15. <flag>U</flag>
  16. <condflag2>2</condflag2>
  17. </cond>
  18. </main>
  19. <send>
  20. </send>
  21. <init>
  22. <searchitem/>
  23. </init>
  24. <popinfo>
  25. <refinfo>
  26. <serchitem/>
  27. </refinfo>
  28. </popinfo>
  29. <HideData>
  30. <searchdd/>
  31. </HideData>
  32. </root>
  33. </instance>
  34. <script type="javascript" ev:event="xforms-ready">
  35. <![CDATA[
  36. fInitialize();
  37. ]]>
  38. </script>
  39. <submission id="TRMNZ00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list"/>
  40. </model>
  41. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  43. <script type="javascript">
  44. <![CDATA[
  45. /*
  46. 초기화 작업을 합니다.
  47. */
  48. function fInitialize(){
  49. model.setFocus("ipt_data");
  50. }
  51. ]]>
  52. </script>
  53. </xhtml:head>
  54. <xhtml:body pagewidth="605" pageheight="435" style="border-color:#c7a3cf; ">
  55. <group id="group5" scroll="auto" style="left:0px; top:13px; width:605px; height:420px; border-color:#c7a3cf; border-style:solid; ">
  56. <datagrid id="grd_userlist" nodeset="/root/main/list/telinfo" caption="기관^과구분^부서구분^전화번호^소속기관코드^소속부서코드" colwidth="115, 147, 190, 132, 0, 0" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:0px; top:75px; width:603px; height:343px; ">
  57. <col ref="instnm" style="text-align:center; "/>
  58. <col ref="centnm"/>
  59. <col ref="deptnm"/>
  60. <col ref="telno" style="text-align:center; "/>
  61. <col ref="posinstcd"/>
  62. <col ref="posdeptcd"/>
  63. </datagrid>
  64. <datagrid id="grd_userlist2" nodeset="/root/main/list/userinfo" caption="기관^부서^사용자ID^사용자명^전화번호^nzone" colwidth="122, 180, 54, 61, 86, 59" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:-1px; top:74px; width:603px; height:343px; ">
  65. <col ref="instnm" style="text-align:center; "/>
  66. <col ref="deptnm"/>
  67. <col ref="userid" secretendposition="5" secretmark="*" secretstartposition="3" style="text-align:center; "/>
  68. <col ref="usernm" style="text-align:center; "/>
  69. <col ref="mpphon" style="text-align:center; "/>
  70. <col ref="nzone" style="text-align:center; "/>
  71. </datagrid>
  72. <group id="group2" style="left:0px; top:10px; width:603px; height:35px; vertical-align:top; ">
  73. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:603px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  74. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:87px; height:17px; ">검색조건 :</caption>
  75. <line id="line1" style="x1:525px; y1:7px; x2:525px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  76. <button id="btn_search" class="btn1_letter2" style="left:534px; top:7px; width:56px; height:22px; ">
  77. <caption>조회</caption>
  78. <script type="javascript" ev:event="DOMActivate">
  79. <![CDATA[
  80. var flag = model.getValue(cmb_flag.attribute("ref"));
  81. model.makeValue("/root/send/reqdata/condflag" , model.getValue(rdo_condflag.attribute("ref")));
  82. model.makeValue("/root/send/reqdata/condflag2", model.getValue(rdo_condflag2.attribute("ref")));
  83. model.makeValue("/root/send/reqdata/data" , model.getValue("/root/main/cond/data"));
  84. model.makeValue("/root/send/reqdata/instcd" , getUserInfo("dutplceinstcd"));
  85. model.makeValue("/root/send/reqdata/flag" , flag);
  86. submit("TRMNZ00401");
  87. model.refresh();
  88. ]]>
  89. </script>
  90. </button>
  91. <select1 id="rdo_condflag" ref="/root/main/cond/condflag" visibility="hidden" appearance="full" cols="3" overflow="visible" style="left:175px; top:11px; width:195px; height:13px; border-style:none; ">
  92. <choices>
  93. <item>
  94. <label>과구분</label>
  95. <value>1</value>
  96. </item>
  97. <item>
  98. <label>부서구분</label>
  99. <value>2</value>
  100. </item>
  101. <item>
  102. <label>전화번호</label>
  103. <value>3</value>
  104. </item>
  105. </choices>
  106. </select1>
  107. <input id="ipt_data" ref="/root/main/cond/data" imemode="hangul" style="left:375px; top:9px; width:140px; height:19px; ">
  108. <script type="javascript" ev:event="onkeydown">
  109. <![CDATA[
  110. if(event.keyCode == "13") {
  111. setInputNodeCurText();
  112. btn_search.dispatch("DOMActivate");
  113. model.setValue("/root/main/cond/data", "");
  114. ipt_data.refresh();
  115. }
  116. ]]>
  117. </script>
  118. </input>
  119. <select1 id="cmb_flag" ref="/root/main/cond/flag" appearance="minimal" style="left:105px; top:9px; width:65px; height:19px; ">
  120. <choices>
  121. <item>
  122. <label>부서</label>
  123. <value>D</value>
  124. </item>
  125. <item>
  126. <label>사용자</label>
  127. <value>U</value>
  128. </item>
  129. </choices>
  130. <script type="javascript" ev:event="xforms-value-changed">
  131. <![CDATA[
  132. var flag = model.getValue(cmb_flag.attribute("ref"));
  133. if(flag == "D") {
  134. rdo_condflag.visible = true;
  135. rdo_condflag2.visible = false;
  136. model.setValue(rdo_condflag.attribute("ref"), "2");
  137. grd_userlist.visible = true;
  138. grd_userlist2.visible= false;
  139. } else if(flag == "U") {
  140. rdo_condflag.visible = false;
  141. rdo_condflag2.visible = true;
  142. model.setValue(rdo_condflag2.attribute("ref"), "2");
  143. grd_userlist.visible = false;
  144. grd_userlist2.visible= true;
  145. }
  146. ]]>
  147. </script>
  148. </select1>
  149. <select1 id="rdo_condflag2" ref="/root/main/cond/condflag2" appearance="full" cols="3" overflow="visible" style="left:175px; top:11px; width:140px; height:13px; border-style:none; ">
  150. <choices>
  151. <item>
  152. <label>사용자ID</label>
  153. <value>1</value>
  154. </item>
  155. <item>
  156. <label>사용자명</label>
  157. <value>2</value>
  158. </item>
  159. </choices>
  160. </select1>
  161. </group>
  162. <caption id="caption9" class="tit_2" style="left:0px; top:57px; width:111px; height:14px; vertical-align:middle; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">전화번호조회</caption>
  163. <line id="line12" class="line_1" style="x1:0px; y1:72px; x2:603px; y2:73px; "/>
  164. <!-- 사용자전화번호 -->
  165. </group>
  166. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:603px; height:14px; ">전화번호 검색</caption>
  167. </xhtml:body>
  168. </xhtml:html>