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.
DS7/DSWeb/Shipping/ExchangesUnitFinancialInfo....

446 lines
22 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExchangesUnitFinancialInfo.aspx.cs" Inherits="DSWeb.Shipping.ExchangesUnitFinancialInfo" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>往来单位基本财务信息</title>
<link rel="STYLESHEET" type="text/css" href="../theme/page.css"/>
<link href="../theme/tab.css" type="text/css" rel="stylesheet" />
<!--自定义下拉框-->
<link href="../theme/style.css" type="text/css" rel="Stylesheet" media="screen"/>
<link href="../theme/dhtmlxcombo.css" type="text/css" rel="Stylesheet" media="screen"/>
<script type="text/javascript" src="../js/dhtmlxcommon.js"></script>
<script type="text/javascript" src="../js/dhtmlxcombo.js"></script>
<script type="text/javascript" src="../js/dhtmlxcombo_whp.js"></script>
<script type="text/javascript">
window.dhx_globalImgPath="../images/";
</script>
<!--页面重新加载-->
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
<script type="text/javascript">
function $(id)
{
return document.getElementById(id);
}
function imgDelChangePic()
{
var pic1=document.getElementById("imgDel");
var start=pic1.src.lastIndexOf("/");
var str=pic1.src.substring(start+1);
if(str=="remove.gif")
{
pic1.src="../images/delete.gif";
//pic1.alt="我是B图片";
}
else if(str=="delete.gif")
{
pic1.src="../images/icons/remove.gif";
//pic1.alt="我是A图片";
}
}
function ShowDetailDel()
{
if(confirm('确定要清空数据吗?'))
{
$("tbBillRises1").value = "";
$("tbBillRises2").value = "";
$("tbRMBBank").value = "";
$("tbRMBOnlineNO").value = "";
$("tbRMBAccount").value = "";
$("tbUSDBank").value = "";
$("tbUSDOnlineNO").value = "";
$("tbUSDAccount").value = "";
$("tbRMBBillRises").value = "";
$("tbUSDBillRises").value = "";
$("tbFARCODE").value = "";
$("tbFAPCODE").value = "";
$("tbRMBMaxAmountCredit").value = "";
$("tbUSDMaxAmountCredit").value = "";
$("tbMaxAmountCredit").value = "";
}
}
function selSTLDATE()
{
var DropDownList1 = document.getElementById("ddlSTLNAME"); //获取DropDownList控件的引用
var DropDownList1_Index = DropDownList1.selectedIndex; //获取选择项的索引
//var DropDownList1_Value = DropDownList1.options[DropDownList1_Index].value;//获取选择项的值
var DropDownList1_Text = DropDownList1.options[DropDownList1_Index].text;//获取选择项的文本
if(DropDownList1_Text=="票结")
{
document.getElementById('divSTLDATE0').style.display = "";
document.getElementById('divSTLDATE3').style.display = "";
document.getElementById('divSTLDATE4').style.display = "none";
document.getElementById('divSTLDATE1').style.display = "none";
document.getElementById('divSTLDATE2').style.display = "none";
}
else if(DropDownList1_Text=="月结")
{
document.getElementById('divSTLDATE0').style.display = "none";
document.getElementById('divSTLDATE3').style.display = "none";
document.getElementById('divSTLDATE4').style.display = "none";
document.getElementById('divSTLDATE1').style.display = "";
document.getElementById('divSTLDATE2').style.display = "none";
}
else if(DropDownList1_Text=="半月结")
{
document.getElementById('divSTLDATE0').style.display = "none";
document.getElementById('divSTLDATE3').style.display = "none";
document.getElementById('divSTLDATE4').style.display = "none";
document.getElementById('divSTLDATE1').style.display = "none";
document.getElementById('divSTLDATE2').style.display = "";
}
else if(DropDownList1_Text=="周结")
{
document.getElementById('divSTLDATE0').style.display = "";
document.getElementById('divSTLDATE3').style.display = "none";
document.getElementById('divSTLDATE4').style.display = "";
document.getElementById('divSTLDATE1').style.display = "none";
document.getElementById('divSTLDATE2').style.display = "none";
}
}
function getDay(sday)
{
if(sday==0)
{
var syue = $("tbSTLDATE").value;
if(syue!="")
{
if(parseInt(syue)>0 && parseInt(syue)<32)
{
}
else
{
alert("月结期限超出正常天数!");
$("tbSTLDATE").value="";
return;
}
}
}
else if(sday==1)
{
var shang = $("tbSTLFIRSTHALFDATE").value;
if(shang!="")
{
if(parseInt(shang)>0 && parseInt(shang)<16)
{
}
else
{
alert("上半月结期限超出正常天数!");
$("tbSTLFIRSTHALFDATE").value="";
return;
}
}
}
else if(sday==2)
{
var xia = $("tbSTLMIDDLEDATE").value;
if(xia!="")
{
if(parseInt(xia)>15 && parseInt(xia)<32)
{
}
else
{
alert("下半月结期限超出正常天数!");
$("tbSTLMIDDLEDATE").value="";
return;
}
}
}
}
//回车键控制
document.onkeypress=function()
{
if(event.keyCode==13)
{
if(event.srcElement.tagName== 'TEXTAREA')
{
return true;
}
//window.event.keyCode=9;
return false;
}
}
//是否为数字,且数值格式是否正确
function IsNumFormat(val) {
var re = /^[-\+]?\d+(\.\d+)?$/;
if (!re.test(val)) {
return false;
}
else {
if (val.toString().indexOf(".") > 0) {
val.toString().replace("-", "");
val.toString().replace("+", "");
if (val.toString().substr(0, 1) == "0" && val.toString().substr(0, 2) != "0.") {
return false;
}
}
else {
var re1 = /^[-\+]+[1-9]+[0-9]*]*$/;
if (!re1.test(val)) {
re1 = /^[1-9]+[0-9]*]*$/;
if (!re1.test(val)) {
return false;
}
}
}
return true;
}
}
//
function getIsNum(x) {
var str = x.value.trim();
if (str == "0") {
return;
}
else if (str == "") {
str = 0;
x.value = 0;
}
else {
var bl = IsNumFormat(str);
if (!bl) {
alert("数值格式错误!");
x.focus();
x.select();
}
}
}
</script>
<!--蒙板-->
<script type="text/javascript">
function dialog() {
this.width = 450;
this.height = 360;
this.title_height = 20;
this.html = '';
this.title = '';
var self = this;
var bgObj, msgObj, titleObj;
this.close = function () {
document.body.removeChild(document.getElementById("bgDiv"));
document.getElementById("msgDiv").removeChild(document.getElementById("msgTitle"));
document.body.removeChild(document.getElementById("msgDiv"));
}
this.show = function () {
var msgw, msgh, bordercolor;
msgw = self.width;
msgh = self.height;
bordercolor = "#336699";
titlecolor = "#99CCFF";
var sWidth, sHeight;
sWidth = document.body.offsetWidth;
sHeight = screen.height;
bgObj = document.createElement("div");
bgObj.setAttribute('id', 'bgDiv');
bgObj.style.position = "absolute";
bgObj.style.top = "0";
bgObj.style.background = "#777";
bgObj.style.filter = "progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75";
bgObj.style.opacity = "0.6";
bgObj.style.left = "0";
bgObj.style.width = sWidth + "px";
bgObj.style.height = sHeight + "px";
bgObj.style.zIndex = "10000";
document.body.appendChild(bgObj);
msgObj = document.createElement("div")
msgObj.setAttribute("id", "msgDiv");
msgObj.setAttribute("align", "center");
msgObj.style.background = "white";
msgObj.style.border = "1px solid " + bordercolor;
msgObj.style.position = "absolute";
msgObj.style.left = "50%";
msgObj.style.top = "30%";
msgObj.style.font = "12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";
msgObj.style.marginLeft = "-225px";
msgObj.style.marginTop = -75 + document.documentElement.scrollTop + "px";
msgObj.style.width = msgw + "px";
msgObj.style.height = msgh + "px";
msgObj.style.textAlign = "center";
msgObj.style.lineHeight = "25px";
msgObj.style.zIndex = "10001";
titleObj = document.createElement("h4");
titleObj.setAttribute("id", "msgTitle");
titleObj.setAttribute("align", "center");
titleObj.style.margin = "0";
titleObj.style.padding = "3px";
titleObj.style.background = bordercolor;
titleObj.style.filter = "progid:DXImageTransform.Microsoft.Alpha(startX=20, startY=20, finishX=100, finishY=100,style=1,opacity=75,finishOpacity=100);";
titleObj.style.opacity = "0.75";
titleObj.style.border = "1px solid " + bordercolor;
titleObj.style.height = self.title_height + "px";
titleObj.style.font = "12px Verdana, Geneva, Arial, Helvetica, sans-serif";
titleObj.style.color = "white";
titleObj.style.cursor = "pointer";
titleObj.innerHTML = self.title;
//titleObj.onclick=function(){self.close();}
document.body.appendChild(msgObj);
document.getElementById("msgDiv").appendChild(titleObj);
var txt = document.createElement("div");
txt.style.margin = "1em 0"
txt.setAttribute("id", "msgTxt");
txt.innerHTML = self.html;
document.getElementById("msgDiv").appendChild(txt);
}
}
function msgBox() {
var dg = new dialog();
dg.html = "程序正在提交,请稍等!";
//dg.html+="<input type=button onclick='new dialog().close();' value='确定'>";
dg.width = 200;
dg.height = 100;
dg.title = "标题";
dg.show();
}
</script>
<!--背景条-->
<style type="text/css">
.btn-content0{
width:100%;
height:30px;
background:url("../images/content-header.gif");
cursor:default;
}
.style1
{
width: 120px;
font-size:12px;
}
</style>
</head>
<body onload="selSTLDATE();" style="background-color: #ECF2FF">
<form id="form1" runat="server" style="background-color: #ECF2FF">
<div style="width:100%;vertical-align:text-bottom;" class="btn-content0">
<div class="btn-blank"></div>
<div class="xbtn-img">
<asp:ImageButton ID="ibEnter" runat="server" onclick="btnEnter_Click" OnClientClick="msgBox()" ToolTip="保存" ImageUrl="~/images/icons/save.gif" CssClass="btnimg"/>
</div>
<div class="xbtn-img">
<img id="imgDel" runat="server" src="../images/icons/remove.gif" onclick="ShowDetailDel();" class="btnimg" alt="清空" onmouseover="imgDelChangePic();" onMouseOut="imgDelChangePic();"/>
</div>
</div>
<div class="TabContent" style="background-color: #ECF2FF">
<table width=100%>
<tr>
<td colspan=7 style="font-weight: bold" class="cssfont">财务基本信息</td>
</tr>
<tr>
<td colspan=7 align="center" height="10"><hr color="#96B3DD" /></td>
</tr>
<tr>
<td></td>
<td class="style1">发票抬头1</td>
<td>
<asp:TextBox ID="tbBillRises1" runat="server" CssClass="txtTab4" MaxLength="60"></asp:TextBox>
</td>
<td></td>
<td class="style1">税号</td>
<td>
<asp:TextBox ID="tbBillRises2" runat="server" CssClass="txtTab4" MaxLength="60"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td></td>
<td class="style1">RMB开户行</td>
<td>
<asp:TextBox ID="tbRMBBank" runat="server" CssClass="txtTab4" MaxLength="60"></asp:TextBox>
</td>
<td></td>
<td class="style1">RMB联机行号</td>
<td>
<asp:TextBox ID="tbRMBOnlineNO" runat="server" CssClass="txtTab4" MaxLength="20"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td></td>
<td class="style1">RMB账号</td>
<td colspan=4>
<asp:TextBox ID="tbRMBAccount" runat="server" CssClass="txtTab4" MaxLength="30"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td></td>
<td class="style1">USD开户行</td>
<td>
<asp:TextBox ID="tbUSDBank" runat="server" CssClass="txtTab4" MaxLength="60"></asp:TextBox>
</td>
<td></td>
<td class="style1">USD联机行号</td>
<td>
<asp:TextBox ID="tbUSDOnlineNO" runat="server" CssClass="txtTab4" MaxLength="20"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td></td>
<td class="style1">USD账号</td>
<td colspan=4>
<asp:TextBox ID="tbUSDAccount" runat="server" CssClass="txtTab4" MaxLength="30"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td></td>
<td class="style1">RMB支票抬头</td>
<td>
<asp:TextBox ID="tbRMBBillRises" runat="server" CssClass="txtTab4" MaxLength="60"></asp:TextBox>
</td>
<td></td>
<td class="style1">USD支票抬头</td>
<td>
<asp:TextBox ID="tbUSDBillRises" runat="server" CssClass="txtTab4" MaxLength="60"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td></td>
<td class="style1">财务应收帐款代码</td>
<td>
<asp:TextBox ID="tbFARCODE" runat="server" CssClass="txtTab4" MaxLength="20"></asp:TextBox>
</td>
<td></td>
<td class="style1">财务应付帐款代码</td>
<td>
<asp:TextBox ID="tbFAPCODE" runat="server" CssClass="txtTab4" MaxLength="20"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<br />
<td colspan=7 style="font-weight: bold" class="cssfont">结算方式</td>
</tr>
<tr>
<td colspan=7 align="center" height="10"><hr color="#96B3DD" /></td>
</tr>
<tr>
<td></td>
<td class="style1">信用最大金额&nbsp;&nbsp;RMB</td>
<td>
<asp:TextBox ID="tbRMBMaxAmountCredit" runat="server" CssClass="txtTab4" MaxLength="20" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=13 && event.keyCode!=45 && event.keyCode!=46){event.returnValue=false;}" onblur="getIsNum(this);"></asp:TextBox>
</td>
<td></td>
<td class="style1">USD</td>
<td>
<asp:TextBox ID="tbUSDMaxAmountCredit" runat="server" CssClass="txtTab4" MaxLength="20" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=13 && event.keyCode!=45 && event.keyCode!=46){event.returnValue=false;}" onblur="getIsNum(this);"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td></td>
<td class="style1">信用最大金额(合计RMB+USD)</td>
<td>
<asp:TextBox ID="tbMaxAmountCredit" runat="server" CssClass="txtTab4" MaxLength="20" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=13 && event.keyCode!=45 && event.keyCode!=46){event.returnValue=false;}" onblur="getIsNum(this);"></asp:TextBox>
</td>
<td></td>
<td class="style1">美金汇率</td>
<td>
<asp:TextBox ID="tbUSDExchangeRate" runat="server" CssClass="txtTab4" MaxLength="20" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=13 && event.keyCode!=45 && event.keyCode!=46){event.returnValue=false;}" onblur="getIsNum(this);"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td></td>
<td class="style1">结算方式</td>
<td>
<asp:DropDownList ID="ddlSTLNAME" runat="server" CssClass="txtTab5" onchange="selSTLDATE();" Height=22px>
<asp:ListItem Selected="True"></asp:ListItem>
<asp:ListItem>票结</asp:ListItem>
<asp:ListItem>月结</asp:ListItem>
<asp:ListItem>半月结</asp:ListItem>
<asp:ListItem>周结</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td></td>
<td class="style1">结算时间</td>
<td colspan=4>
<div id="divSTLDATE0" style="display:none;">
<asp:TextBox ID="tbSTLDATEPJ" runat="server" CssClass="txtTab12" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45){event.returnValue=false;}" MaxLength="2" onblur="getDay(3);"></asp:TextBox>
</div>
<div id="divSTLDATE3" style="display:none;">
业务日期发生“XX”日即为最晚结算日期
</div>
<div id="divSTLDATE4" style="display:none;">
业务日期发生在星期“几”!
</div>
<div id="divSTLDATE1" style="display:none;">
<asp:TextBox ID="tbSTLDATE" runat="server" CssClass="txtTab12" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45){event.returnValue=false;}" MaxLength="2" onblur="getDay(0);"></asp:TextBox>
</div>
<div id="divSTLDATE2" style="display:none;">
上半月:
<asp:TextBox ID="tbSTLFIRSTHALFDATE" runat="server" CssClass="txtTab12" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45){event.returnValue=false;}" MaxLength="2" onblur="getDay(1);"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;
下半月:
<asp:TextBox ID="tbSTLMIDDLEDATE" runat="server" CssClass="txtTab12" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45){event.returnValue=false;}" MaxLength="2" onblur="getDay(2);"></asp:TextBox>
</div>
</td>
<td width=10px></td>
</tr>
</table>
</div>
<div>
<input id="hdtbBillRises" type="hidden" runat=server />
</div>
</form>
</body>
</html>