123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>사업자등록번호조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <custinfo>
- <custinfolist/>
- </custinfo>
- </main>
- <cond>
- <reqdata/>
- <reqflag>custid</reqflag>
- </cond>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removeNodeset("/root/main/custinfo/custinfolist");
- /*var reqdata = opener.javascript.getParameter("reqdata");
- if(reqdata != ""){
- model.setValue("root/cond/reqdata",reqdata);
- if(submit("TRICU01901")){
- }
- }*/
- model.refresh();
- ]]>
- </script>
- <submission id="TRICU01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/main/custinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="500" pageheight="360">
- <group id="grp_tle" style="left:0px; top:0px; width:485px; height:14px; ">
- <caption id="caption120" class="tit_1" style="left:0px; top:0px; width:160px; height:14px; ">사업자등록번호 조회</caption>
- </group>
- <line id="line1" class="line_1" style="x1:2px; y1:85px; x2:487px; y2:85px; "/>
- <button id="button1" class="btn2_letter2" _auth="X" style="left:445px; top:320px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(checkOpener()){
- opener.javascript.setParameter("entrregno", "");
- }else{
- messageBox("상위 화면이 변경되어 데이터를 전달", "E001");
- }
- window.close();
- ]]>
- </script>
- </button>
- <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; ">
- <col checkvalue="Y,N" ref="choflag" type="checkbox"/>
- <col ref="entrregno" style="text-align:center; "/>
- <col ref="custnm" style="text-align:center; "/>
- <col ref="prsdnm" style="text-align:center; "/>
- </datagrid>
- <button id="btn_chk" class="btn2_letter2" _auth="X" style="left:397px; top:320px; width:42px; height:19px; ">
- <caption>선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var chk = 0;
- for ( var i = 0; i < grd_custinfo.rows; i++ ) {
- if ( grd_custinfo.valueMatrix(i, grd_custinfo.colRef("choflag")) == 'Y' ) {
- ++chk;
- }
- }
-
- if ( chk < 1 ) {
- messageBox("사용할 사업자등록번호를" ,"C002");
- return false;
- }
-
- if ( chk > 1 ) {
- messageBox("사용할 사업자등록번호를 한개만" ,"C002");
- return false;
- }
-
- if ( chk == 1 ) {
- opener.window.javascript.setParameter("entrregno", model.getValue( "/root/main/custinfo/custinfolist[" +grd_custinfo.row+ "]/entrregno"));
- opener.window.javascript.setParameter("custnm", model.getValue( "/root/main/custinfo/custinfolist[" +grd_custinfo.row+ "]/custnm"));
- window.close();
- }
-
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:2px; top:66px; width:165px; height:14px; ">사업자등록번호 조회</caption>
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:20px; width:485px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:410px; y1:28px; x2:410px; y2:50px; "/>
- <button id="bnt_srch" class="btn1_letter2" style="left:419px; top:28px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var reqflag = model.getValue("/root/cond/reqflag");
- if(reqflag == "usernm")
- {
- // 한글은 2글자,영어는2글자 이상 조회
- var reqdata = model.getValue("/root/cond/reqdata");
- if(reqdata.charCodeAt(0) > 255) // 한글
- {
- if(ipt_srchdata.currentText.length < 2)
- {
- messageBox(rdo_srchflag.label +"을 2자리 이상", "C001");
- return;
- }
- }
- else // 영문
- {
- if(ipt_srchdata.currentText.length < 2)
- {
- messageBox(rdo_srchflag.label +"을 2자리 이상", "C001");
- return;
- }
- }
- }
- if(submit("TRICU01901")){
- }
- ]]>
- </script>
- </button>
- <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; ">
- <choices>
- <item>
- <label>거래처명</label>
- <value>custnm</value>
- </item>
- <item>
- <label>사업자등록번호</label>
- <value>custid</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_srchdata" ref="/root/cond/reqdata" class="input_s_essential" style="left:190px; top:31px; width:200px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("bnt_srch", "DOMActivate");
- ]]>
- </script>
- </input>
- </xhtml:body>
- </xhtml:html>
|