SPIMR00101_ID중복체크.xrw 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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>ID 중복체크</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <item>
  12. <userid/>
  13. </item>
  14. </list>
  15. </main>
  16. <send>
  17. <searchwh>
  18. <srchid/>
  19. </searchwh>
  20. </send>
  21. <init>
  22. </init>
  23. <hidden>
  24. </hidden>
  25. </root>
  26. </instance>
  27. <script type="javascript" ev:event="xforms-ready">
  28. <![CDATA[
  29. var id = opener.javascript.getParameter("userid");
  30. model.setValue("/root/send/searchwh/srchid",id);
  31. model.setFocus("input26");
  32. model.refresh();
  33. ]]>
  34. </script>
  35. <submission id="TRIMR00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchwh" resultref="/root/main/list"/>
  36. </model>
  37. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  39. </xhtml:head>
  40. <xhtml:body pagewidth="517" pageheight="150" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  41. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:501px; height:110px; ">
  42. <caption id="caption120" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">ID 중복체크</caption>
  43. <button id="button8" class="btn1_letter2" style="left:380px; top:7px; width:56px; height:22px; ">
  44. <caption>선택</caption>
  45. <script type="javascript" ev:event="onclick">
  46. <![CDATA[
  47. var id = model.getValue("/root/send/searchwh/srchid");
  48. opener.window.javascript.testeeidCheck(id);
  49. window.close();
  50. ]]>
  51. </script>
  52. </button>
  53. <button id="button1" class="btn1_letter2" style="left:438px; top:7px; width:56px; height:22px; ">
  54. <caption>닫기</caption>
  55. <script type="javascript" ev:event="onclick">
  56. <![CDATA[
  57. window.close();
  58. ]]>
  59. </script>
  60. </button>
  61. <group id="group3" style="left:0px; top:35px; width:494px; height:45px; vertical-align:top; ">
  62. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:494px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  63. <input id="input26" ref="/root/send/searchwh/srchid" class="input_search" style="left:84px; top:9px; width:141px; height:19px; ">
  64. <script type="javascript" ev:event="onkeyup">
  65. <![CDATA[
  66. if (event.keyCode==13) {
  67. setInputNodeCurText();
  68. btn_srch.dispatch("DOMActivate");
  69. }
  70. ]]>
  71. </script>
  72. </input>
  73. <caption id="caption145" class="search_name" style="left:15px; top:10px; width:60px; height:17px; ">ID :</caption>
  74. <button id="btn_srch" class="btn1_letter2" style="left:388px; top:7px; width:56px; height:22px; ">
  75. <caption>검색</caption>
  76. <script type="javascript" ev:event="DOMActivate">
  77. <![CDATA[
  78. submit("TRIMR00100");
  79. var id = model.getValue("/root/main/list/item[1]/userid");
  80. if(id!=""){
  81. messageBox("이미 사용중인 아이디","E008");
  82. model.setValue("/root/send/searchwh/srchid",model.getValue(""));
  83. model.refresh();
  84. }
  85. else{
  86. messageBox("사용 가능한 아이디","E008");
  87. id = model.getValue("/root/send/searchwh/srchid");
  88. opener.window.javascript.useridCheck(id);
  89. window.close();
  90. }
  91. ]]>
  92. </script>
  93. </button>
  94. </group>
  95. </group>
  96. </xhtml:body>
  97. </xhtml:html>