SPZSU00800_전화번호.xrw 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <instcd/>
  18. </cond>
  19. <result/>
  20. </main>
  21. <send>
  22. </send>
  23. <init>
  24. <searchitem/>
  25. </init>
  26. <popinfo>
  27. <refinfo>
  28. <serchitem/>
  29. </refinfo>
  30. </popinfo>
  31. <HideData>
  32. <searchdd/>
  33. </HideData>
  34. <init>
  35. <inst>
  36. <instcd>031</instcd>
  37. <instnm>본원</instnm>
  38. <instcd>032</instcd>
  39. <instnm>칠곡</instnm>
  40. </inst>
  41. </init>
  42. </root>
  43. </instance>
  44. <script type="javascript" ev:event="xforms-ready">
  45. <![CDATA[
  46. fInitialize();
  47. ]]>
  48. </script>
  49. <submission id="TRZSU00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list"/>
  50. <submission id="TRZSU00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list"/>
  51. <submission id="TXZSU00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/result"/>
  52. </model>
  53. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  55. <script type="javascript">
  56. <![CDATA[
  57. /*
  58. 초기화 작업을 합니다.
  59. */
  60. function fInitialize(){
  61. model.setFocus("ipt_data");
  62. }
  63. ]]>
  64. </script>
  65. </xhtml:head>
  66. <xhtml:body pagewidth="700" pageheight="435" style="border-color:#c7a3cf; ">
  67. <group id="group2" style="left:0px; top:20px; width:690px; height:60px; vertical-align:top; ">
  68. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:690px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  69. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:87px; height:17px; ">검색조건 :</caption>
  70. <line id="line1" style="x1:555px; y1:12px; x2:555px; y2:44px; border-color:#ffe4bb; border-left-style:solid; "/>
  71. <button id="btn_search" class="btn1_letter2" style="left:565px; top:17px; width:56px; height:22px; ">
  72. <caption>조회</caption>
  73. <script type="javascript" ev:event="DOMActivate">
  74. <![CDATA[
  75. var flag = model.getValue(cmb_flag.attribute("ref"));
  76. model.makeValue("/root/send/reqdata/condflag" , model.getValue(rdo_condflag.attribute("ref")));
  77. model.makeValue("/root/send/reqdata/condflag2", model.getValue(rdo_condflag2.attribute("ref")));
  78. model.makeValue("/root/send/reqdata/data" , model.getValue("/root/main/cond/data"));
  79. model.makeValue("/root/send/reqdata/instcd" , model.getValue("/root/main/cond/instcd"));
  80. model.makeValue("/root/send/reqdata/flag" , flag);
  81. if(flag == "D")
  82. submit("TRZSU00801");
  83. else
  84. submit("TRZSU00802");
  85. ]]>
  86. </script>
  87. </button>
  88. <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; ">
  89. <choices>
  90. <item>
  91. <label>부서/전화위치</label>
  92. <value>2</value>
  93. </item>
  94. <item>
  95. <label>전화번호</label>
  96. <value>3</value>
  97. </item>
  98. </choices>
  99. </select1>
  100. <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; ">
  101. <choices>
  102. <item>
  103. <label>본원</label>
  104. <value>031</value>
  105. </item>
  106. <item>
  107. <label>칠곡</label>
  108. <value>032</value>
  109. </item>
  110. </choices>
  111. </select1>
  112. <input id="ipt_data" ref="/root/main/cond/data" imemode="hangul" style="left:105px; top:34px; width:170px; height:19px; ">
  113. <script type="javascript" ev:event="onkeydown">
  114. <![CDATA[
  115. if(event.keyCode == "13") {
  116. setInputNodeCurText();
  117. btn_search.dispatch("DOMActivate");
  118. ipt_data.refresh();
  119. }
  120. ]]>
  121. </script>
  122. </input>
  123. <select1 id="cmb_flag" ref="/root/main/cond/flag" appearance="minimal" style="left:105px; top:9px; width:80px; height:19px; ">
  124. <choices>
  125. <item>
  126. <label>부서</label>
  127. <value>D</value>
  128. </item>
  129. <item>
  130. <label>사용자</label>
  131. <value>U</value>
  132. </item>
  133. </choices>
  134. <script type="javascript" ev:event="xforms-value-changed">
  135. <![CDATA[
  136. var flag = model.getValue(cmb_flag.attribute("ref"));
  137. if(flag == "D") {
  138. rdo_condflag.visible = true;
  139. rdo_condflag2.visible = false;
  140. model.setValue(rdo_condflag.attribute("ref"), "2");
  141. grd_deptlist.visible = true;
  142. grd_deptlist2.visible= false;
  143. cmb_instcd.visible = true;
  144. caption2.visible = true;
  145. btn_save.visible = true;
  146. btn_add.visible = true;
  147. btn_del.visible = true;
  148. cmb_instcd.value = getUserInfo("dutplceinstcd");
  149. } else if(flag == "U") {
  150. rdo_condflag.visible = false;
  151. rdo_condflag2.visible = true;
  152. model.setValue(rdo_condflag2.attribute("ref"), "2");
  153. grd_deptlist.visible = false;
  154. grd_deptlist2.visible= true;
  155. cmb_instcd.visible = false;
  156. caption2.visible=false;
  157. btn_save.visible = false;
  158. btn_add.visible = false;
  159. btn_del.visible = false;
  160. }
  161. ipt_data.value="";
  162. ]]>
  163. </script>
  164. </select1>
  165. <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; ">
  166. <choices>
  167. <item>
  168. <label>사용자ID</label>
  169. <value>1</value>
  170. </item>
  171. <item>
  172. <label>사용자명</label>
  173. <value>2</value>
  174. </item>
  175. </choices>
  176. </select1>
  177. <button id="btn_save" class="btn4_letter2" visibility="hidden" style="left:627px; top:17px; width:56px; height:22px; ">
  178. <caption>저장</caption>
  179. <script type="javascript" ev:event="DOMActivate">
  180. <![CDATA[
  181. model.makeValue("/root/send/savedata/deptlistdata",grd_deptlist.getUpdateData());
  182. submit("TXZSU00801",false);
  183. btn_search.dispatch("DOMActivate");
  184. ]]>
  185. </script>
  186. </button>
  187. <caption id="caption2" class="search_name" visibility="hidden" style="left:306px; top:35px; width:87px; height:17px; text-align:center; ">기 관 :</caption>
  188. <caption id="caption4" class="search_name" style="left:15px; top:35px; width:88px; height:17px; text-align:left; ">검색어 :</caption>
  189. </group>
  190. <!-- 사용자전화번호 -->
  191. <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; ">
  192. <col ref="instcd" type="combo" style="text-align:center; ">
  193. <choices>
  194. <itemset nodeset="/root/init/inst">
  195. <label ref="instnm"/>
  196. <value ref="instcd"/>
  197. </itemset>
  198. </choices>
  199. </col>
  200. <col ref="centnm" type="input"/>
  201. <col ref="deptnm" type="input"/>
  202. <col ref="telno" type="input" style="text-align:center; "/>
  203. <col ref="seq" visibility="hidden"/>
  204. <col ref="posinstcd"/>
  205. <col ref="posdeptcd"/>
  206. </datagrid>
  207. <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; ">
  208. <col ref="instcd" type="combo" style="text-align:center; ">
  209. <choices>
  210. <itemset nodeset="/root/init/inst">
  211. <label ref="instnm"/>
  212. <value ref="instcd"/>
  213. </itemset>
  214. </choices>
  215. </col>
  216. <col ref="deptnm"/>
  217. <col ref="userid" secretendposition="5" secretmark="*" secretstartposition="3" style="text-align:center; "/>
  218. <col ref="usernm" style="text-align:center; "/>
  219. <col ref="mpphon" style="text-align:center; "/>
  220. <col ref="nzone" style="text-align:center; "/>
  221. </datagrid>
  222. <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>
  223. <button id="btn_add" class="btn2_letter3" visibility="hidden" style="left:570px; top:85px; width:53px; height:19px; ">
  224. <caption>행추가</caption>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. grd_deptlist.insertRow(1);
  228. grd_deptlist.valueMatrix(1,grd_deptlist.colRef("instcd"))=model.getValue("/root/main/cond/instcd");
  229. ]]>
  230. </script>
  231. </button>
  232. <button id="btn_del" class="btn2_letter3" visibility="hidden" style="left:627px; top:85px; width:53px; height:19px; ">
  233. <caption>행삭제</caption>
  234. <script type="javascript" ev:event="DOMActivate">
  235. <![CDATA[
  236. grd_deptlist.rowStatus(grd_deptlist.row) = 4;
  237. ]]>
  238. </script>
  239. </button>
  240. <line id="line2" class="line_1" style="x1:0px; y1:107px; x2:690px; y2:107px; "/>
  241. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:603px; height:14px; ">전화번호 검색</caption>
  242. </xhtml:body>
  243. </xhtml:html>