SPIBI00101_ID중복체크.xrw 4.3 KB

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