SPICU01900_사업자등록번호조회.xrw 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. <custinfo>
  11. <custinfolist/>
  12. </custinfo>
  13. </main>
  14. <cond>
  15. <reqdata/>
  16. <reqflag>custid</reqflag>
  17. </cond>
  18. </root>
  19. </instance>
  20. <script type="javascript" ev:event="xforms-ready">
  21. <![CDATA[
  22. model.removeNodeset("/root/main/custinfo/custinfolist");
  23. /*var reqdata = opener.javascript.getParameter("reqdata");
  24. if(reqdata != ""){
  25. model.setValue("root/cond/reqdata",reqdata);
  26. if(submit("TRICU01901")){
  27. }
  28. }*/
  29. model.refresh();
  30. ]]>
  31. </script>
  32. <submission id="TRICU01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/main/custinfo"/>
  33. </model>
  34. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  37. </xhtml:head>
  38. <xhtml:body pagewidth="500" pageheight="360">
  39. <group id="grp_tle" style="left:0px; top:0px; width:485px; height:14px; ">
  40. <caption id="caption120" class="tit_1" style="left:0px; top:0px; width:160px; height:14px; ">사업자등록번호 조회</caption>
  41. </group>
  42. <line id="line1" class="line_1" style="x1:2px; y1:85px; x2:487px; y2:85px; "/>
  43. <button id="button1" class="btn2_letter2" _auth="X" style="left:445px; top:320px; width:42px; height:19px; ">
  44. <caption>닫기</caption>
  45. <script type="javascript" ev:event="DOMActivate">
  46. <![CDATA[
  47. if(checkOpener()){
  48. opener.javascript.setParameter("entrregno", "");
  49. }else{
  50. messageBox("상위 화면이 변경되어 데이터를 전달", "E001");
  51. }
  52. window.close();
  53. ]]>
  54. </script>
  55. </button>
  56. <datagrid id="grd_custinfo" nodeset="/root/main/custinfo/custinfolist" caption="선택^사업자등록번호^거래처명^대표자명^직위^" colsep="^" colwidth="31, 112, 193, 126" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:2px; top:90px; width:485px; height:220px; ">
  57. <col checkvalue="Y,N" ref="choflag" type="checkbox"/>
  58. <col ref="entrregno" style="text-align:center; "/>
  59. <col ref="custnm" style="text-align:center; "/>
  60. <col ref="prsdnm" style="text-align:center; "/>
  61. </datagrid>
  62. <button id="btn_chk" class="btn2_letter2" _auth="X" style="left:397px; top:320px; width:42px; height:19px; ">
  63. <caption>선택</caption>
  64. <script type="javascript" ev:event="DOMActivate">
  65. <![CDATA[
  66. var chk = 0;
  67. for ( var i = 0; i < grd_custinfo.rows; i++ ) {
  68. if ( grd_custinfo.valueMatrix(i, grd_custinfo.colRef("choflag")) == 'Y' ) {
  69. ++chk;
  70. }
  71. }
  72. if ( chk < 1 ) {
  73. messageBox("사용할 사업자등록번호를" ,"C002");
  74. return false;
  75. }
  76. if ( chk > 1 ) {
  77. messageBox("사용할 사업자등록번호를 한개만" ,"C002");
  78. return false;
  79. }
  80. if ( chk == 1 ) {
  81. opener.window.javascript.setParameter("entrregno", model.getValue( "/root/main/custinfo/custinfolist[" +grd_custinfo.row+ "]/entrregno"));
  82. opener.window.javascript.setParameter("custnm", model.getValue( "/root/main/custinfo/custinfolist[" +grd_custinfo.row+ "]/custnm"));
  83. window.close();
  84. }
  85. ]]>
  86. </script>
  87. </button>
  88. <caption id="caption1" class="tit_2" style="left:2px; top:66px; width:165px; height:14px; ">사업자등록번호 조회</caption>
  89. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:20px; width:485px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  90. <line id="line13" class="line_4" style="x1:410px; y1:28px; x2:410px; y2:50px; "/>
  91. <button id="bnt_srch" class="btn1_letter2" style="left:419px; top:28px; width:56px; height:22px; ">
  92. <caption>조회</caption>
  93. <script type="javascript" ev:event="DOMActivate">
  94. <![CDATA[
  95. var reqflag = model.getValue("/root/cond/reqflag");
  96. if(reqflag == "usernm")
  97. {
  98. // 한글은 2글자,영어는2글자 이상 조회
  99. var reqdata = model.getValue("/root/cond/reqdata");
  100. if(reqdata.charCodeAt(0) > 255) // 한글
  101. {
  102. if(ipt_srchdata.currentText.length < 2)
  103. {
  104. messageBox(rdo_srchflag.label +"을 2자리 이상", "C001");
  105. return;
  106. }
  107. }
  108. else // 영문
  109. {
  110. if(ipt_srchdata.currentText.length < 2)
  111. {
  112. messageBox(rdo_srchflag.label +"을 2자리 이상", "C001");
  113. return;
  114. }
  115. }
  116. }
  117. if(submit("TRICU01901")){
  118. }
  119. ]]>
  120. </script>
  121. </button>
  122. <select1 id="rdo_srchflag" ref="/root/cond/reqflag" class="radio_search" appearance="full" cellspacing="5" cols="3" rows="1" overflow="visible" style="left:10px; top:30px; width:175px; height:20px; background-color:transparent; border-style:none; ">
  123. <choices>
  124. <item>
  125. <label>거래처명</label>
  126. <value>custnm</value>
  127. </item>
  128. <item>
  129. <label>사업자등록번호</label>
  130. <value>custid</value>
  131. </item>
  132. </choices>
  133. </select1>
  134. <input id="ipt_srchdata" ref="/root/cond/reqdata" class="input_s_essential" style="left:190px; top:31px; width:200px; height:19px; ">
  135. <script type="javascript" ev:event="onkeyup">
  136. <![CDATA[
  137. inputEnterKey("bnt_srch", "DOMActivate");
  138. ]]>
  139. </script>
  140. </input>
  141. </xhtml:body>
  142. </xhtml:html>