123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <cardinfo>
- <usercardinfolist/>
- </cardinfo>
- </main>
- <cond>
- <reqdata/>
- <reqflag>userid</reqflag>
- </cond>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removeNodeset("/root/main/cardinfo/usercardinfolist");
- var reqdata = opener.javascript.getParameter("reqdata");
- if(reqdata != ""){
- model.setValue("root/cond/reqdata",reqdata);
- if(submit("TRICU01302")){
- }
- }
- ]]>
- </script>
- <submission id="TRICU01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/main/cardinfo"/>
- </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("cardno", "");
- }else{
- messageBox("상위 화면이 변경되어 데이터를 전달", "E001");
- }
- window.close();
- ]]>
- </script>
- </button>
- <datagrid id="grd_usercardinfo" nodeset="/root/main/cardinfo/usercardinfolist" caption="선택^사번^성명^법인카드번호^직위^" colsep="^" colwidth="31, 93, 111, 124" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:2px; top:90px; width:485px; height:220px; ">
- <col checkvalue="Y,N" ref="choflag" type="checkbox"/>
- <col ref="usernm" style="text-align:center; "/>
- <col ref="userid" style="text-align:center; "/>
- <col ref="cardno" 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_usercardinfo.rows; i++ ) {
- if ( grd_usercardinfo.valueMatrix(i, grd_usercardinfo.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("cardno", model.getValue( "/root/main/cardinfo/usercardinfolist[" +grd_usercardinfo.row+ "]/cardno"));
- window.close();
- }
-
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:2px; top:66px; width:131px; height:13px; ">법인카드번호 정보</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:400px; y1:28px; x2:400px; y2:50px; "/>
- <button id="bnt_srch" class="btn1_letter2" style="left:409px; 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("TRICU01302")){
- }
- ]]>
- </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:145px; height:20px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>사용자명</label>
- <value>usernm</value>
- </item>
- <item>
- <label>사용자ID</label>
- <value>userid</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_srchdata" ref="/root/cond/reqdata" class="input_s_essential" style="left:162px; top:31px; width:208px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
-
- inputEnterKey("bnt_srch", "DOMActivate");
- ]]>
- </script>
- </input>
- </xhtml:body>
- </xhtml:html>
|