SMZSU10202_사용자주민번호.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  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>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <userlist/>
  12. </list>
  13. <item>
  14. <rrgstno/>
  15. <userid/>
  16. <useyn/>
  17. <lastupdtrid/>
  18. <lastupdtdt/>
  19. <fstrgstrid/>
  20. <fstrgstdt/>
  21. </item>
  22. </main>
  23. <init>
  24. <flag>
  25. <name>사용자ID</name>
  26. <value>userid</value>
  27. </flag>
  28. <flag>
  29. <name>사용자명</name>
  30. <value>usernm</value>
  31. </flag>
  32. <flag>
  33. <name>주민번호</name>
  34. <value>rrgstno</value>
  35. </flag>
  36. <useyn>
  37. <lable>사용중</lable>
  38. <value>Y</value>
  39. </useyn>
  40. <useyn>
  41. <lable>사용중지</lable>
  42. <value>N</value>
  43. </useyn>
  44. </init>
  45. <send>
  46. <flag/>
  47. <searchitem/>
  48. <item/>
  49. </send>
  50. </root>
  51. </instance>
  52. <script ev:event="xforms-ready" type="javascript">
  53. <![CDATA[
  54. fInitialize();
  55. ]]>
  56. </script>
  57. <submission id="TXZSU10103" encoding="euc-kr" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  58. <submission id="TRZSU10108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  59. </model>
  60. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  61. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  62. <script src="../../../com/userdeptinfoweb/js/ZSU001.js" type="javascript"/>
  63. <script type="javascript">
  64. <![CDATA[
  65. /*
  66. 초기화 작업을 합니다.
  67. */
  68. function fInitialize(){
  69. model.removeNodeset("/root/main/list/userlist");
  70. model.resetInstanceNode("/root/main/item");
  71. radio1.select(0);
  72. fDisabledStyle("_init", "disabledY");
  73. model.refresh();
  74. }
  75. /*
  76. 컨트롤들을 disabled 시킵니다.
  77. mode : "disabledY" 는 해당 컨트롤들을 disabled 시킵니다.
  78. "disabledN" 은 해당 컨트롤들을 enabled 시킵니다.
  79. */
  80. function fDisabledStyle(flag, mode){
  81. var isYN = "true";
  82. if("disabledY" == mode){
  83. isYN = "true";
  84. }
  85. if("disabledN" == mode){
  86. isYN = "false";
  87. }
  88. if ("_init" == flag){
  89. ipt_rrgstno.disabled = isYN;
  90. ipt_userid.disabled = isYN;
  91. btn_save.disabled = isYN;
  92. btn_rgst_userinfo.disabled = isYN;
  93. }
  94. if("_updt" == flag) {
  95. btn_search_userid.disabled = isYN;
  96. btn_save.disabled = isYN;
  97. }
  98. }
  99. /*
  100. 버튼 컨트롤들을 클릭했을때 공통으로 타는 함수입니다.
  101. control : "search" 는 조회 버튼 클릭
  102. "init"은 신규 버튼 클릭
  103. "save"는 저장 버튼 클릭
  104. grid : 그리드 컨트롤을 넘겨줍니다.
  105. param : 기타 param을 넘겨줍니다.
  106. */
  107. function fClicked(control, grid, param){
  108. if ("search" == control){
  109. fSearchClick(grid, param);
  110. model.resetInstanceNode("/root/send");
  111. fDisabledStyle("_init", "disabledY");
  112. } else if ("init" == control){
  113. // model.reset();
  114. fSetMakeValue("/root/main/item", "status", "i");
  115. // model.setValue("/root/main/item/status", "i");
  116. fInitClick();
  117. } else if ("save" == control){
  118. fSaveClick();
  119. } else {
  120. messageBox("처리를 수행","E002");
  121. }
  122. model.refresh();
  123. }
  124. /*
  125. 조회버튼 클릭 타는 함수입니다.
  126. grid.explorerbar = "sortshow" sort설정합니다.
  127. ipt_useridnm_flag는 검색조건의 사용자ID or 사용자명입니다.
  128. radio1은 사용자ID or 사용자명 선택 라디오 버튼입니다.
  129. submit을 날립니다.
  130. .
  131. */
  132. function fSearchClick(grid,param){
  133. }
  134. /*
  135. 신규버튼 클릭시 타는 함수입니다.
  136. 새로운 사용자를 등록할 수 있게 사용자정보의 컨트롤들을 enabled 시킵니다.
  137. */
  138. function fInitClick(){
  139. fDisabledStyle("_init", "disabledN");
  140. }
  141. /*
  142. 저장 버튼 클릭시 사는 함수입니다.
  143. 사용자ID, 사용자명, 비밀번호, 적용시작일자, 적용종료일자는 필수 항목 입니다.
  144. 필수항목 모두 입력시 /root/main/item 노드를 send 노드로 복사합니다.
  145. submit을 날립니다.
  146. */
  147. function fSaveClick(){
  148. }
  149. ]]>
  150. </script>
  151. </xhtml:head>
  152. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  153. <group id="grp_tle" style="left:0px; top:0px; width:1194px; height:13px; ">
  154. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">사용자ID발번정보</caption>
  155. </group>
  156. <group id="grp_biz" scroll="auto" style="left:0px; top:36px; width:1195px; height:744px; ">
  157. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  158. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  159. <caption id="caption2" class="search_name" style="left:411px; top:9px; width:99px; height:17px; ">사용자ID :</caption>
  160. <line id="line13" style="x1:1107px; y1:7px; x2:1107px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  161. <caption id="caption33" class="search_name" style="left:25px; top:9px; width:86px; height:17px; ">검색조건 :</caption>
  162. <select1 id="radio1" ref="/root/init" class="s" overflow="visible" appearance="full" cellspacing="5" cols="3" style="left:131px; top:10px; width:13px; height:13px; background-color:transparent; border-style:none; ">
  163. <choices>
  164. <itemset nodeset="/root/init/flag">
  165. <label ref="name"/>
  166. <value ref="value"/>
  167. </itemset>
  168. </choices>
  169. <script ev:event="xforms-select" type="javascript">
  170. <![CDATA[
  171. if(radio1.value == "userid"){
  172. caption2.value = "사용자ID : "
  173. } else if(radio1.value == "usernm") {
  174. caption2.value = " 사용자명 : "
  175. } else if(radio1.value == "rrgstno") {
  176. caption2.value = " 주민번호 : "
  177. }
  178. ]]>
  179. </script>
  180. </select1>
  181. <input id="ipt_search_item" ref="/root/send/searchitem" class="input_s_essential" style="left:530px; top:8px; width:130px; height:19px; ">
  182. <script ev:event="onkeypress" type="javascript">
  183. <![CDATA[
  184. //var param = ipt_search_item.currentText;
  185. if("13" == event.keyCode){
  186. btn_search.dispatch("DOMActivate");
  187. //fClicked("search", grd_userbaseinfo, param);
  188. }
  189. ]]>
  190. </script>
  191. </input>
  192. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  193. <caption>조회</caption>
  194. <script ev:event="DOMActivate" type="javascript">
  195. <![CDATA[
  196. if(ipt_search_item.currentText == ""){
  197. messageBox("검색어를 1자이상 ", "C001");
  198. } else {
  199. var iSearchitem = ipt_search_item.currentText;
  200. model.removeNodeset("/root/main/list/userlist");
  201. grd_userrrgstnoinfo.rebuild();
  202. model.resetInstanceNode("/root/send");
  203. model.setValue("/root/send/searchitem", iSearchitem);
  204. model.setValue("/root/send/flag", radio1.value);
  205. submit("TRZSU10108");
  206. }
  207. ]]>
  208. </script>
  209. </button>
  210. </group>
  211. <line id="line12" class="line_1" style="x1:0px; y1:709px; x2:1195px; y2:709px; "/>
  212. <caption id="caption1" class="tit_2" style="left:-3px; top:695px; width:134px; height:13px; ">사용자ID발번등록</caption>
  213. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  214. <caption id="caption7" class="cell_1" style="left:-3px; top:715px; width:105px; height:23px; vertical-align:middle; ">사용자ID</caption>
  215. <line id="line9" class="line_3" style="x1:0px; y1:680px; x2:1194px; y2:680px; "/>
  216. <line id="line2" class="line_3" style="x1:0px; y1:713px; x2:1195px; y2:713px; "/>
  217. <input id="ipt_userid" ref="/root/main/item/userid" class="input_essential" appearance="input" style="left:105px; top:716px; width:132px; height:19px; "/>
  218. <datagrid id="grd_userrrgstnoinfo" nodeset="/root/main/list/userlist" caption="주민번호^사용자ID^사용여부^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="100" dataheight="23" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:75px; width:1194px; height:605px; ">
  219. <col ref="rrgstno" type="input"/>
  220. <col ref="userid" type="input"/>
  221. <col ref="useyn" type="combo">
  222. <choices>
  223. <itemset nodeset="/root/init/useyn">
  224. <label ref="lable"/>
  225. <value ref="value"/>
  226. </itemset>
  227. </choices>
  228. </col>
  229. <col ref="fstrgstrid"/>
  230. <col ref="fstrgsttdt"/>
  231. <col ref="lastupdtrid"/>
  232. <col ref="lastupdtdt"/>
  233. </datagrid>
  234. <caption id="caption17" class="tit_2" style="left:0px; top:55px; width:121px; height:14px; ">사용자ID발번정보</caption>
  235. <button id="btn_save_excel" class="btn2_letter4" style="left:984px; top:49px; width:64px; height:19px; ">
  236. <caption>엑셀저장</caption>
  237. <script ev:event="DOMActivate" type="javascript">
  238. <![CDATA[
  239. var fileName = window.fileDialog("save", ",", false, "사용자ID발번정보", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  240. if (fileName != "")
  241. {
  242. grd_userrrgstnoinfo.saveExcel(fileName);
  243. }
  244. ]]>
  245. </script>
  246. </button>
  247. <datagrid id="grd_temp_userrrgstno" nodeset="/root/main/list/userlist" visibility="hidden" scroll="auto" caption="주민번호^사용자ID^사용여부^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="100" dataheight="23" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:120px; top:295px; width:220px; height:105px; ">
  248. <col ref="rrgstno"/>
  249. <col ref="userid"/>
  250. <col ref="useyn"/>
  251. <col ref="fstrgstrid"/>
  252. <col ref="fstrgsttdt"/>
  253. <col ref="lastupdtrid"/>
  254. <col ref="lastupdtdt"/>
  255. </datagrid>
  256. <button id="btn_ins_excel" class="btn2_letter4" style="left:1052px; top:49px; width:64px; height:19px; ">
  257. <caption>엑셀입력</caption>
  258. <script ev:event="DOMActivate" type="javascript">
  259. <![CDATA[
  260. var fileName = window.fileDialog("open", "", false, "", "", "Excel File(*.xls)|*.xls");
  261. grd_userrrgstnoinfo.loadExcel(fileName);
  262. for (i=grd_userrrgstnoinfo.fixedRows; i<grd_userrrgstnoinfo.rows; i++)
  263. {
  264. grd_userrrgstnoinfo.rowStatus(i) = 1;
  265. }
  266. ]]>
  267. </script>
  268. </button>
  269. <input id="ipt_rrgstno" ref="/root/main/item/rrgstno" class="input_essential" style="left:360px; top:716px; width:132px; height:19px; "/>
  270. <caption id="caption36" class="cell_1" style="left:252px; top:715px; width:105px; height:23px; vertical-align:middle; ">주민번호</caption>
  271. <button id="btn_rgst_userinfo" class="btn2_letter2" style="left:1152px; top:690px; width:42px; height:19px; ">
  272. <caption>등록</caption>
  273. <script ev:event="DOMActivate" type="javascript">
  274. <![CDATA[
  275. grd_userrrgstnoinfo.addItem();
  276. var iRow = grd_userrrgstnoinfo.row;
  277. copyNodeType("/root/main/list/userlist["+iRow+"]", "/root/main/item");
  278. model.refresh();
  279. ]]>
  280. </script>
  281. </button>
  282. <button id="button4" class="btn2_letter5" style="left:1119px; top:49px; width:75px; height:19px; ">
  283. <caption>Row 삭제</caption>
  284. <script ev:event="DOMActivate" type="javascript">
  285. <![CDATA[
  286. var iRow = grd_userrrgstnoinfo.row;
  287. grd_userrrgstnoinfo.deleteItem(iRow);
  288. ]]>
  289. </script>
  290. </button>
  291. <button id="btn_add_acntgrup" class="btn2_letter2" style="left:935px; top:50px; width:42px; height:19px; ">
  292. <caption>추가</caption>
  293. <script ev:event="DOMActivate" type="javascript">
  294. <![CDATA[
  295. grd_userrrgstnoinfo.addItem();
  296. grd_userrrgstnoinfo.editCell();
  297. ]]>
  298. </script>
  299. </button>
  300. <line id="line4" class="line_3" style="x1:0px; y1:738px; x2:1195px; y2:738px; "/>
  301. </group>
  302. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  303. <button id="btn_new" class="btn4_letter2" style="left:1077px; top:0px; width:56px; height:22px; ">
  304. <caption>신규</caption>
  305. <script ev:event="DOMActivate" type="javascript">
  306. <![CDATA[
  307. model.resetInstanceNode("/root/main/item");
  308. model.removeNodeset("/root/main/list");
  309. fClicked("init");
  310. model.refresh();
  311. ]]>
  312. </script>
  313. </button>
  314. <button id="btn_save" class="btn4_letter2" style="left:1135px; top:0px; width:56px; height:22px; ">
  315. <caption>저장</caption>
  316. <script ev:event="DOMActivate" type="javascript">
  317. <![CDATA[
  318. model.setValue("/root/send/item", grd_userrrgstnoinfo.getUpdateData());
  319. submit("TXZSU10103");
  320. ]]>
  321. </script>
  322. </button>
  323. <button id="btn_init" class="btn4_letter3" style="left:1007px; top:0px; width:68px; height:22px; ">
  324. <caption>초기화</caption>
  325. <script ev:event="DOMActivate" type="javascript">
  326. <![CDATA[
  327. fInitialize();
  328. fDisabledStyle("_init", "disabledY");
  329. ]]>
  330. </script>
  331. </button>
  332. <line id="line3" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  333. </group>
  334. </xhtml:body>
  335. </xhtml:html>