You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

258 lines
11 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:w2="http://www.inswave.com/websquare" xmlns:xf="http://www.w3.org/2002/xforms">
<head>
<w2:type>DEFAULT</w2:type>
<w2:buildDate/>
<xf:model>
<xf:instance>
<data xmlns="" />
</xf:instance>
<w2:dataCollection baseNode="map">
<w2:dataMap baseNode="map" id="reqUpdate" style="">
<w2:keyInfo>
<w2:key dataType="text" id="fareOfficeInfo" name="요금소"></w2:key>
<w2:key id="franchiseeNum" name="가맹점 번호" dataType="text"></w2:key>
<w2:key id="franchiseeName" name="가맹점 명" dataType="text"></w2:key>
<w2:key id="inStDate" name="시작일자" dataType="text"></w2:key>
<w2:key id="inEdDate" name="종료일자" dataType="text"></w2:key>
<w2:key id="useYn" name="사용구분" dataType="text"></w2:key>
<w2:key id="cardAgency" name="카드발행사" dataType="text"></w2:key>
<w2:key id="discountRate" name="할인율" dataType="text"></w2:key>
<w2:key id="cardAgencyId" name="카드사ID" dataType="text"></w2:key>
<w2:key id="motionId" name="구분" dataType="text"></w2:key>
<w2:key id="cardAgencyName" name="카드발행사명" dataType="text"></w2:key>
</w2:keyInfo>
</w2:dataMap>
<w2:dataMap baseNode="map" id="reqCode">
<w2:keyInfo>
<w2:key id="cardAgencyId" name="카드사ID" dataType="text"></w2:key>
</w2:keyInfo>
</w2:dataMap>
<w2:dataList baseNode="list" repeatNode="map" id="resCode" saveRemovedData="true">
<w2:columnInfo>
<w2:column id="cardIssue" name="카드사 Id" dataType="text"></w2:column>
</w2:columnInfo>
</w2:dataList>
</w2:dataCollection>
<w2:workflowCollection></w2:workflowCollection>
<xf:submission id="sub_update" ref='data:json,{"id":"reqUpdate","key":"param"}' target=""
action="/cfs/standard/insertStandardCardAgencyAdd.do" method="post" mediatype="application/json" encoding="UTF-8" instance=""
replace="" errorHandler="" customHandler="" mode="asynchronous" processMsg="수정중입니다" ev:submit=""
ev:submitdone="scwin.sub_update_submitdone" ev:submiterror="" abortTrigger="">
</xf:submission>
<xf:submission id="sub_search" ref='data:json,{"id":"reqCode","key":"param"}' target='data:json,{"id":"resCode","key":"result"}'
action="/cfs/standard/findStandardCardOverlap.do" method="post" mediatype="application/json" encoding="UTF-8" instance=""
replace="" errorHandler="" customHandler="" mode="asynchronous" processMsg="" ev:submit="" ev:submitdone="scwin.sub_search_submitdone" ev:submiterror=""
abortTrigger="">
</xf:submission>
</xf:model>
<script type="text/javascript" lazy="false"><![CDATA[
scwin.onpageload = function() {
scwin.param = com.getParameter();
scwin.closeCallbackFncName = scwin.param.callbackFn;
reqUpdate.setJSON( scwin.param.data );
};
scwin.onpageunload = function() {
};
scwin.btn_trigger1_onclick = function(e) {
if(sbx_fareOfficeId.getValue() == ""){
alert("요금소를 선택해 주세요");
return false;
}
if(ibx_dispari11.getValue() == ""){
alert("가맹점 번호를 작성해 주세요");
return false;
}
if(ibx_dispari12.getValue() == ""){
alert("가맹점 명을 작성해 주세요");
return false;
}
if(ibx_dispari13.getValue() == ""){
alert("시작일자를 작성해 주세요");
return false;
}
if(ibx_dispari14.getValue() == ""){
alert("할인율을 작성해 주세요");
return false;
}
if(ibx_dispari15.getValue() == ""){
alert("카드 발행사를 작성해 주세요");
return false;
}
if(ibx_dispari17.getValue() == ""){
alert("종료일자를 작성해 주세요");
return false;
}
reqCode.set( "cardAgencyId" , reqUpdate.get( "cardAgencyId" ) );
$p.executeSubmission("sub_search");
//com.confirm("추가 하시겠습니까?", "scwin.ConfirmCallup");
};
scwin.ConfirmCallup = function(isReturnVal) {
if (isReturnVal) {
}
};
scwin.btn_close_onclick = function(e) {
com.closePopup();
};
scwin.sub_update_submitdone = function(e) {
com.closePopup(scwin.closeCallbackFncName);
};
scwin.btn_trigger11_onclick = function(e) {
var data = {data : "", callbackFn : "scwin.ibx_dispari15_set" };
var opt = {id : "SD011P03",
popupName : "카드발행사 확인",
width : 650, height : 400};
var popupUrl = "/ui/cfs/standard/SD011P03.xml";
com.openPopup(popupUrl, opt, data);
};
scwin.ibx_dispari15_set = function(data){
reqUpdate.set( "cardAgencyId" , data.cardAgencyId );
reqUpdate.set( "motionId" , data.motionId );
reqUpdate.set( "cardAgencyName" , data.cardAgencyName );
ibx_dispari15.setValue( reqUpdate.get("cardAgencyName") );
}
scwin.sub_search_submitdone = function(e) {
if(resCode.getCellData( 0 , "cardIssue" ) == reqUpdate.get( "cardAgencyId" )){
alert("중복된 데이터가 존재합니다");
return false;
}else{
$p.executeSubmission("sub_update");
}
};
]]></script>
</head>
<body ev:onpageload="scwin.onpageload" ev:onpageunload="scwin.onpageunload">
<xf:group class="pop" id="" style="">
<xf:group class="pop_con" id="" style="">
<xf:group class="cm_tbl" id="" style=""></xf:group>
<xf:trigger class="btn_act save" ev:onclick="scwin.btn_trigger1_onclick" id="btn_trigger1" style="float:right;" type="button">
<xf:label><![CDATA[저장]]></xf:label>
</xf:trigger>
<xf:group class="w2tb tbl" id="tbl_table1" style="" tagname="table">
<w2:attributes>
<w2:summary></w2:summary>
</w2:attributes>
<xf:group tagname="caption"></xf:group>
<xf:group tagname="colgroup">
<xf:group style="width:100.00px;" tagname="col"></xf:group>
<xf:group style="width:200.00px;" tagname="col"></xf:group>
<xf:group tagname="col" style="width:100px;"></xf:group><xf:group tagname="col" style="width:200px;"></xf:group></xf:group>
<xf:group style="" tagname="tr">
<xf:group class="w2tb_th" style="" tagname="th">요금소<w2:attributes>
<w2:scope>row</w2:scope>
</w2:attributes></xf:group>
<xf:group class="w2tb_td" style="" tagname="td">
<xf:select1 allOption="" appearance="minimal" chooseOption="true" direction="auto" disabled=""
disabledClass="w2selectbox_disabled" displayMode="label" id="sbx_fareOfficeId" ref="data:reqUpdate.fareOfficeInfo"
style="width:120px;float: left;float: left;" submenuSize="auto" chooseOptionLabel="-선택-">
<xf:choices>
<xf:item>
<xf:label><![CDATA[남산1호터널]]></xf:label>
<xf:value><![CDATA[01]]></xf:value>
</xf:item>
<xf:item>
<xf:label><![CDATA[남산3호터널]]></xf:label>
<xf:value><![CDATA[03]]></xf:value>
</xf:item>
</xf:choices>
</xf:select1></xf:group>
<xf:group tagname="th" class="w2tb_th">할인율<w2:attributes></w2:attributes></xf:group>
<xf:group tagname="td" class="w2tb_td">%<w2:attributes></w2:attributes><xf:input adjustMaxLength="false" dataType="number" displayFormat="" id="ibx_dispari14" maxlength="3" readOnly=""
ref="data:reqUpdate.discountRate" style="float:left;">
</xf:input></xf:group></xf:group>
<xf:group style="" tagname="tr">
<xf:group class="w2tb_th" style="" tagname="th">가맹점번호<w2:attributes>
<w2:scope>row</w2:scope>
</w2:attributes></xf:group>
<xf:group class="w2tb_td" style="" tagname="td"><w2:attributes>
<w2:colspan>1</w2:colspan>
<w2:rowspan>1</w2:rowspan>
</w2:attributes><xf:input adjustMaxLength="false" dataType="" displayFormat="" id="ibx_dispari11" maxlength="10" readOnly=""
ref="data:reqUpdate.franchiseeNum" style="float:left;" disabled="">
</xf:input></xf:group>
<xf:group tagname="th" class="w2tb_th">카드&amp;nbsp;발행사<w2:attributes></w2:attributes></xf:group>
<xf:group tagname="td" class="w2tb_td">
<w2:attributes></w2:attributes>
<xf:input adjustMaxLength="false" dataType="" displayFormat="" id="ibx_dispari15" maxlength="10" readOnly="true"
ref="data:reqUpdate.cardAgency" style="float:left;">
</xf:input>
<xf:trigger class="btn_sh" ev:onclick="scwin.btn_trigger11_onclick" id="btn_trigger11" style="" type="button">
<xf:label><![CDATA[조회]]></xf:label>
</xf:trigger>
</xf:group></xf:group>
<xf:group style="" tagname="tr">
<xf:group class="w2tb_th" style="" tagname="th">가맹점명<w2:attributes>
<w2:scope>row</w2:scope>
</w2:attributes></xf:group>
<xf:group class="w2tb_td" style="" tagname="td"><w2:attributes>
<w2:colspan>1</w2:colspan>
<w2:rowspan>1</w2:rowspan>
</w2:attributes><xf:input adjustMaxLength="false" id="ibx_dispari12" readOnly="" ref="data:reqUpdate.franchiseeName"
style="" dataType="" maxlength="10">
</xf:input></xf:group>
<xf:group tagname="th" class="w2tb_th">사용여부<w2:attributes></w2:attributes></xf:group>
<xf:group tagname="td" class="w2tb_td">
<w2:attributes></w2:attributes>
<xf:select1 appearance="full" cols="" ev:onchange="" id="rad_dtType"
ref="data:reqUpdate.useYn" renderType="table" rows="1" selectedIndex="0" style="">
<xf:choices>
<xf:item>
<xf:label><![CDATA[사용]]></xf:label>
<xf:value><![CDATA[0]]></xf:value>
</xf:item>
<xf:item>
<xf:label><![CDATA[미사용]]></xf:label>
<xf:value><![CDATA[1]]></xf:value>
</xf:item>
</xf:choices>
</xf:select1>
</xf:group></xf:group>
<xf:group style="" tagname="tr">
<xf:group class="w2tb_th" tagname="th">시작일자<w2:attributes>
<w2:scope>row</w2:scope>
</w2:attributes></xf:group>
<xf:group class="w2tb_td" tagname="td">
<w2:attributes>
<w2:scope>row</w2:scope>
</w2:attributes>
<xf:input adjustMaxLength="false" id="ibx_dispari13" readOnly="" ref="data:reqUpdate.inStDate"
style="" dataType="date" maxlength="10" disabled="" displayFormat="yyyy/MM/dd">
</xf:input>
</xf:group>
<xf:group tagname="th" class="w2tb_th">종료일자<w2:attributes></w2:attributes></xf:group>
<xf:group tagname="td" class="w2tb_td">
<w2:attributes></w2:attributes>
<xf:input adjustMaxLength="false" id="ibx_dispari17" readOnly="" ref="data:reqUpdate.inEdDate" style="" dataType="date" maxlength="10" displayFormat="yyyy/MM/dd"></xf:input>
</xf:group></xf:group>
</xf:group>
</xf:group>
<xf:group class="btn_fix" id="" style="">
<xf:group class="tac" id="" style="">
<xf:trigger class="btn_sh" ev:onclick="scwin.btn_close_onclick" id="btn_close" style="" type="button">
<xf:label><![CDATA[닫기]]></xf:label>
</xf:trigger>
</xf:group>
</xf:group>
</xf:group>
</body>
</html>