SPZSU00801_전화번호(조회용).xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  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>D</flag>
  16. <condflag2>1</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="TRZSU00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list"/>
  52. <submission id="TXZSU00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/result"/>
  53. </model>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  56. <script type="javascript">
  57. <![CDATA[
  58. /*
  59. 초기화 작업을 합니다.
  60. */
  61. function fInitialize(){
  62. // model.toggle("case1");
  63. btn_phone.selected = true;
  64. btn_phone.dispatch("DOMActivate");
  65. model.setValue("/root/main/cond/instcd", getUserInfo("dutplceinstcd"));
  66. //model.setFocus("ipt_data");
  67. model.setFocus("input1");
  68. model.refresh();
  69. }
  70. ]]>
  71. </script>
  72. </xhtml:head>
  73. <xhtml:body pagewidth="700" pageheight="500" style="border-color:#c7a3cf; ">
  74. <!-- 사용자전화번호 -->
  75. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:603px; height:14px; ">전화번호 검색</caption>
  76. <switch id="switch1" style="left:0px; top:42px; width:695px; height:453px; ">
  77. <case id="case1" selected="true">
  78. <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; ">
  79. <col ref="instcd" type="combo" style="text-align:center; ">
  80. <choices>
  81. <itemset nodeset="/root/init/inst">
  82. <label ref="instnm"/>
  83. <value ref="instcd"/>
  84. </itemset>
  85. </choices>
  86. </col>
  87. <col ref="deptnm"/>
  88. <col ref="userid" secretendposition="5" secretmark="*" secretstartposition="3" style="text-align:center; "/>
  89. <col ref="usernm" style="text-align:center; "/>
  90. <col ref="jobkindnm"/>
  91. <col ref="mpphon" style="text-align:center; "/>
  92. <col ref="nzone" style="text-align:center; "/>
  93. </datagrid>
  94. <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; ">
  95. <col ref="instcd" type="combo" style="text-align:center; ">
  96. <choices>
  97. <itemset nodeset="/root/init/inst">
  98. <label ref="instnm"/>
  99. <value ref="instcd"/>
  100. </itemset>
  101. </choices>
  102. </col>
  103. <col ref="centnm" type="input"/>
  104. <col ref="deptnm" type="input"/>
  105. <col ref="telno" type="input" style="text-align:center; "/>
  106. <col ref="seq" visibility="hidden"/>
  107. <col ref="posinstcd"/>
  108. <col ref="posdeptcd"/>
  109. </datagrid>
  110. <group id="group2" style="left:0px; top:5px; width:690px; height:60px; vertical-align:top; ">
  111. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:690px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  112. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:87px; height:17px; ">검색조건 :</caption>
  113. <line id="line1" style="x1:605px; y1:12px; x2:605px; y2:44px; border-color:#ffe4bb; border-left-style:solid; "/>
  114. <button id="btn_search" class="btn1_letter2" style="left:620px; top:17px; width:56px; height:22px; ">
  115. <caption>조회</caption>
  116. <script type="javascript" ev:event="DOMActivate">
  117. <![CDATA[
  118. var flag = model.getValue(cmb_flag.attribute("ref"));
  119. model.makeValue("/root/send/reqdata/condflag" , model.getValue(rdo_condflag.attribute("ref")));
  120. model.makeValue("/root/send/reqdata/condflag2", model.getValue(rdo_condflag2.attribute("ref")));
  121. model.makeValue("/root/send/reqdata/data" , model.getValue("/root/main/cond/data"));
  122. model.makeValue("/root/send/reqdata/instcd" , model.getValue("/root/main/cond/instcd"));
  123. model.makeValue("/root/send/reqdata/flag" , flag);
  124. if(flag == "D")
  125. submit("TRZSU00801");
  126. else
  127. submit("TRZSU00802");
  128. ]]>
  129. </script>
  130. </button>
  131. <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; ">
  132. <choices>
  133. <item>
  134. <label>부서/전화위치</label>
  135. <value>2</value>
  136. </item>
  137. <item>
  138. <label>전화번호</label>
  139. <value>3</value>
  140. </item>
  141. </choices>
  142. </select1>
  143. <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; ">
  144. <choices>
  145. <item>
  146. <label>본원</label>
  147. <value>031</value>
  148. </item>
  149. <item>
  150. <label>칠곡</label>
  151. <value>032</value>
  152. </item>
  153. </choices>
  154. </select1>
  155. <input id="ipt_data" ref="/root/main/cond/data" imemode="hangul" style="left:105px; top:34px; width:170px; height:19px; ">
  156. <script type="javascript" ev:event="onkeydown">
  157. <![CDATA[
  158. if(event.keyCode == "13") {
  159. setInputNodeCurText();
  160. btn_search.dispatch("DOMActivate");
  161. ipt_data.refresh();
  162. }
  163. ]]>
  164. </script>
  165. </input>
  166. <select1 id="cmb_flag" ref="/root/main/cond/flag" appearance="minimal" style="left:105px; top:9px; width:80px; height:19px; ">
  167. <choices>
  168. <item>
  169. <label>부서</label>
  170. <value>D</value>
  171. </item>
  172. <item>
  173. <label>사용자</label>
  174. <value>U</value>
  175. </item>
  176. </choices>
  177. <script type="javascript" ev:event="xforms-value-changed">
  178. <![CDATA[
  179. var flag = model.getValue(cmb_flag.attribute("ref"));
  180. if(flag == "D") {
  181. rdo_condflag.visible = true;
  182. rdo_condflag2.visible = false;
  183. model.setValue(rdo_condflag.attribute("ref"), "2");
  184. grd_deptlist.visible = true;
  185. grd_deptlist2.visible= false;
  186. cmb_instcd.visible = true;
  187. caption2.visible = true;
  188. cmb_instcd.value = getUserInfo("dutplceinstcd");
  189. } else if(flag == "U") {
  190. rdo_condflag.visible = false;
  191. rdo_condflag2.visible = true;
  192. model.setValue(rdo_condflag2.attribute("ref"), "2");
  193. grd_deptlist.visible = false;
  194. grd_deptlist2.visible= true;
  195. cmb_instcd.visible = false;
  196. caption2.visible=false;
  197. }
  198. ipt_data.value="";
  199. ]]>
  200. </script>
  201. </select1>
  202. <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; ">
  203. <choices>
  204. <item>
  205. <label>사용자ID</label>
  206. <value>1</value>
  207. </item>
  208. <item>
  209. <label>사용자명</label>
  210. <value>2</value>
  211. </item>
  212. <item>
  213. <label>전화번호</label>
  214. <value>3</value>
  215. </item>
  216. <item>
  217. <label>W-Zone</label>
  218. <value>4</value>
  219. </item>
  220. </choices>
  221. </select1>
  222. <caption id="caption2" class="search_name" visibility="visible" style="left:306px; top:35px; width:87px; height:17px; text-align:center; ">기 관 :</caption>
  223. <caption id="caption4" class="search_name" style="left:15px; top:35px; width:88px; height:17px; text-align:left; ">검색어 :</caption>
  224. <caption id="caption5" class="search_name" style="left:15px; top:35px; width:88px; height:17px; text-align:left; ">검색어 :</caption>
  225. <input id="input1" ref="/root/main/cond/data" imemode="hangul" style="left:105px; top:34px; width:170px; height:19px; ">
  226. <script type="javascript" ev:event="onkeydown">
  227. <![CDATA[
  228. if(event.keyCode == "13") {
  229. setInputNodeCurText();
  230. btn_search.dispatch("DOMActivate");
  231. input1.refresh();
  232. }
  233. ]]>
  234. </script>
  235. </input>
  236. <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; ">
  237. <choices>
  238. <item>
  239. <label>사용자ID</label>
  240. <value>1</value>
  241. </item>
  242. <item>
  243. <label>사용자명</label>
  244. <value>2</value>
  245. </item>
  246. <item>
  247. <label>전화번호</label>
  248. <value>3</value>
  249. </item>
  250. <item>
  251. <label>W-Zone</label>
  252. <value>4</value>
  253. </item>
  254. </choices>
  255. </select1>
  256. </group>
  257. <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>
  258. <line id="line2" class="line_1" style="x1:0px; y1:92px; x2:690px; y2:92px; "/>
  259. </case>
  260. <case id="case2">
  261. <group id="group1" style="left:0px; top:5px; width:690px; height:60px; vertical-align:top; ">
  262. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:690px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  263. <caption id="caption7" class="search_name" style="left:15px; top:9px; width:87px; height:17px; ">검색조건 :</caption>
  264. <line id="line3" style="x1:605px; y1:12px; x2:605px; y2:44px; border-color:#ffe4bb; border-left-style:solid; "/>
  265. <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; ">
  266. <choices>
  267. <item>
  268. <label>본원</label>
  269. <value>031</value>
  270. </item>
  271. <item>
  272. <label>칠곡</label>
  273. <value>032</value>
  274. </item>
  275. </choices>
  276. </select1>
  277. <input id="input2" ref="/root/main/cond/data" imemode="hangul" style="left:105px; top:34px; width:170px; height:19px; ">
  278. <script type="javascript" ev:event="onkeydown">
  279. <![CDATA[
  280. if(event.keyCode == "13") {
  281. setInputNodeCurText();
  282. btn_search.dispatch("DOMActivate");
  283. ipt_data.refresh();
  284. }
  285. ]]>
  286. </script>
  287. </input>
  288. <caption id="caption8" class="search_name" visibility="visible" style="left:306px; top:35px; width:87px; height:17px; text-align:center; ">기 관 :</caption>
  289. <caption id="caption9" class="search_name" style="left:15px; top:35px; width:88px; height:17px; text-align:left; ">검색어 :</caption>
  290. <caption id="caption10" class="search_name" style="left:15px; top:35px; width:88px; height:17px; text-align:left; ">검색어 :</caption>
  291. <input id="ipt_deptdata" ref="/root/main/cond/data" imemode="hangul" style="left:105px; top:34px; width:170px; height:19px; ">
  292. <script type="javascript" ev:event="onkeydown">
  293. <![CDATA[
  294. if(event.keyCode == "13") {
  295. setInputNodeCurText();
  296. btn_deptsear.dispatch("DOMActivate");
  297. ipt_deptdata.refresh();
  298. }
  299. ]]>
  300. </script>
  301. </input>
  302. <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; ">
  303. <choices>
  304. <item>
  305. <label>부서명</label>
  306. <value>1</value>
  307. </item>
  308. <item>
  309. <label>부서위치</label>
  310. <value>2</value>
  311. </item>
  312. <item>
  313. <label>전화번호</label>
  314. <value>3</value>
  315. </item>
  316. </choices>
  317. </select1>
  318. <button id="btn_deptsear" class="btn1_letter2" style="left:620px; top:17px; width:56px; height:22px; ">
  319. <caption>조회</caption>
  320. <script type="javascript" ev:event="DOMActivate">
  321. <![CDATA[
  322. var flag = model.getValue(cmb_flag.attribute("ref"));
  323. model.makeValue("/root/send/reqdata/condflag", model.getValue(rdo_condflag.attribute("ref")));
  324. model.makeValue("/root/send/reqdata/data", model.getValue("/root/main/cond/data"));
  325. model.makeValue("/root/send/reqdata/instcd", model.getValue("/root/main/cond/instcd"));
  326. submit("TRZSU00803");
  327. ]]>
  328. </script>
  329. </button>
  330. </group>
  331. <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; ">
  332. <col ref="instcd" type="combo" style="text-align:center; ">
  333. <choices>
  334. <itemset nodeset="/root/init/inst">
  335. <label ref="instnm"/>
  336. <value ref="instcd"/>
  337. </itemset>
  338. </choices>
  339. </col>
  340. <col ref="inorddeptnm"/>
  341. <col ref="deptplce"/>
  342. <col ref="cntctel"/>
  343. </datagrid>
  344. <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>
  345. <line id="line4" class="line_1" style="x1:0px; y1:92px; x2:690px; y2:92px; "/>
  346. </case>
  347. </switch>
  348. <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; ">
  349. <caption>전화번호부</caption>
  350. <toggle case="case1" ev:event="onclick"/>
  351. <setfocus ev:event="xforms-valid"/>
  352. <script type="javascript" ev:event="DOMActivate">
  353. <![CDATA[
  354. model.toggle("case1");
  355. ]]>
  356. </script>
  357. </button>
  358. <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; ">
  359. <caption>부서정보</caption>
  360. <toggle case="case3" ev:event="onclick"/>
  361. <script type="javascript" ev:event="DOMActivate">
  362. <![CDATA[
  363. model.toggle("case2");
  364. ]]>
  365. </script>
  366. </button>
  367. </xhtml:body>
  368. </xhtml:html>