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/CompanysInfo.aspx

349 lines
16 KiB
Plaintext

3 years ago
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CompanysInfo.aspx.cs" Inherits="DSWeb.Shipping.CompanysInfo" %>
<!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 rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
<script type="text/javascript">
function $(id)
{
return document.getElementById(id);
}
function reloadParent(strBSNO)
{ //alert("strBSNO="+strBSNO); var parentObj = window.parent.location; var oldUrl = parentObj.href; var idIndex = oldUrl.indexOf("&id");//alert(oldUrl); // var newUrl = ""; if(idIndex > 0) { var addfull=oldUrl.indexOf("addfull"); if(addfull>0) { var handleIndex = oldUrl.indexOf("handle=");//alert(handleIndex); newUrl = oldUrl.substring(0,handleIndex); window.parent.opener.location.href = window.parent.opener.location.href; parentObj.href = newUrl+"handle=edit&id="+strBSNO; } else { newUrl = oldUrl.substring(0,idIndex+4);//alert(oldUrl.substring(0,idIndex)); window.parent.opener.location.href = window.parent.opener.location.href; parentObj.href = newUrl+strBSNO; } } else { var handleIndex = oldUrl.indexOf("handle=");//alert(handleIndex); newUrl = oldUrl.substring(0,handleIndex); window.parent.opener.location.href = window.parent.opener.location.href; parentObj.href = newUrl+"handle=edit&id="+strBSNO; } // alert("成功提交!");
} //回车键控制 document.onkeypress=function()
{
if(event.keyCode==13)
{
if(event.srcElement.tagName== 'TEXTAREA')
{
return true;
}
//window.event.keyCode=9;
return false;
}
}
</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: 100px;
font-size:12px;
}
.btncss
{
BORDER-RIGHT: #2C59AA 1px solid;
PADDING-RIGHT: 2px; BORDER-TOP: #2C59AA 1px solid;
PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5);
BORDER-LEFT: #2C59AA 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px;
BORDER-BOTTOM: #2C59AA 1px solid;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<div style="width:100%;vertical-align:text-bottom;" class="btn-content0">
<div class="btn-blank"></div>
<div class="xbtn-img">
<asp:ImageButton ID="ibAdd" runat="server" onclick="btnAdd_Click" ToolTip="添加" ImageUrl="~/images/icons/btnAdd.gif" CssClass="btnimg"/>
</div>
<div class="xbtn-img">
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
<ContentTemplate>
<asp:ImageButton ID="ibEnter" runat="server" onclick="btnEnter_Click" OnClientClick="msgBox()" ToolTip="保存" ImageUrl="~/images/icons/save.gif" CssClass="btnimg"/>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="ibEnter" />
</Triggers>
</asp:UpdatePanel>
</div>
<div class="xbtn-img">
<asp:ImageButton ID="ibDel" runat="server" onclick="btnDel_Click" ToolTip="删除" ImageUrl="~/images/icons/remove.gif" OnClientClick="return confirm('确定删除吗?')" CssClass="btnimg"/>
</div>
</div>
<div style="float:left;width:100%;">
<!-- 选项卡开始 -->
<div class="nTab">
<!-- 内容开始 -->
<div class="TabContent" style="width:100%;">
<table width=100%>
<tr>
<td colspan=7 style="font-weight: bold">
<asp:Label ID="Label1" runat="server" Text="基本信息" CssClass="cssfont"></asp:Label></td>
</tr>
<tr>
<td colspan=7 align="center" height="10"><hr color="#96B3DD" /></td>
</tr>
<tr>
<td width=10px></td>
<td class="style1">*公司编码:</td>
<td>
<asp:TextBox ID="tbCODENAME" runat="server" CssClass="txtTab" MaxLength="6"></asp:TextBox>
</td>
<td width=10px></td>
<td class="style1">*公司简称:</td>
<td>
<asp:TextBox ID="tbNAME" runat="server" CssClass="txtTab" MaxLength="150"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td width=10px></td>
<td class="style1">公司全称:</td>
<td>
<asp:TextBox ID="tbFULLNAME" runat="server" CssClass="txtTab" MaxLength="150"></asp:TextBox>
</td>
<td width=10px></td>
<td class="style1">公司英文名称:</td>
<td>
<asp:TextBox ID="tbENNAME" runat="server" CssClass="txtTab" MaxLength="150"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td width=10px></td>
<td class="style1">地址:</td>
<td>
<asp:TextBox ID="tbADDRESS" runat="server" CssClass="txtTab" MaxLength="100"></asp:TextBox>
</td>
<td width=10px></td>
<td class="style1">英文地址:</td>
<td>
<asp:TextBox ID="tbENADDRESS" runat="server" CssClass="txtTab" MaxLength="100"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td width=10px></td>
<td class="style1">联系电话:</td>
<td>
<asp:TextBox ID="tbOFFICEPHONE" runat="server" CssClass="txtTab" MaxLength="50"></asp:TextBox>
</td>
<td width=10px></td>
<td class="style1">传真:</td>
<td>
<asp:TextBox ID="tbFAX" runat="server" CssClass="txtTab" MaxLength="50"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td width=10px></td>
<td class="style1">网址:</td>
<td>
<asp:TextBox ID="tbWEBSITEURL" runat="server" CssClass="txtTab" MaxLength="150"></asp:TextBox>
</td>
<td width=10px></td>
<td class="style1">邮箱地址:</td>
<td>
<asp:TextBox ID="tbEMAIL" runat="server" CssClass="txtTab" MaxLength="100"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td width=10px></td>
<td class="style1">工商登记号:</td>
<td>
<asp:TextBox ID="tbLICENSECODE" runat="server" CssClass="txtTab" MaxLength="30"></asp:TextBox>
</td>
<td width=10px></td>
<td class="style1">税号:</td>
<td>
<asp:TextBox ID="tbTAXCODE" runat="server" CssClass="txtTab" MaxLength="30"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td width=10px></td>
<td class="style1">发票抬头:</td>
<td>
<asp:TextBox ID="tbBillRises" runat="server" CssClass="txtTab" MaxLength="60"></asp:TextBox>
</td>
<td width=10px></td>
<td class="style1">支票抬头:</td>
<td>
<asp:TextBox ID="tbChequePayable" runat="server" CssClass="txtTab" MaxLength="60"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td width=10px></td>
<td class="style1">*票号头字符:</td>
<td>
<asp:TextBox ID="tbBANKSHEAD" runat="server" CssClass="txtTab" MaxLength="3"></asp:TextBox>
</td>
</tr>
</table>
<table width=100%>
<tr>
<td width=10px></td>
<td class="style1">打印抬头1</td>
<td>
<asp:TextBox ID="tbPRTHEADXML1" runat="server" CssClass="txtTab" MaxLength="1024"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td width=10px></td>
<td class="style1">打印抬头2</td>
<td>
<asp:TextBox ID="tbPRTHEADXML2" runat="server" CssClass="txtTab" MaxLength="1024"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td width=10px></td>
<td class="style1">打印抬头3</td>
<td>
<asp:TextBox ID="tbPRTHEADXML3" runat="server" CssClass="txtTab" MaxLength="1024"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td width=10px></td>
<td class="style1">打印抬头4</td>
<td>
<asp:TextBox ID="tbPRTHEADXML4" runat="server" CssClass="txtTab" MaxLength="1024"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td width=10px></td>
<td class="style1">打印抬头5</td>
<td>
<asp:TextBox ID="tbPRTHEADXML5" runat="server" CssClass="txtTab" MaxLength="1024"></asp:TextBox>
</td>
<td width=10px></td>
</tr>
<tr>
<td colspan=4 align="center" height="10"><hr color="#96B3DD" /></td>
</tr>
<tr>
<td width=10px></td>
<td class="style1">LOGO</td>
<td class="cssfont">
<img alt="LOGO" id="myimg" src="../images/logo/noImage.gif" width="75" height="75" runat=server/>
&nbsp;&nbsp;
<asp:FileUpload ID="myFile" runat="server" Width="300px" onchange="document.getElementById('myimg').src=this.value" CssClass="btncss"/>
&nbsp;&nbsp;75 * 75 为最佳)
</td>
<td width=10px></td>
</tr>
</table>
</div>
</div>
<!-- 选项卡结束 -->
</div>
<div>
<input type="hidden" id="hdGid" runat="server"/>
<input type="hidden" id="hdUserID" runat="server"/>
</div>
<div style="height:100px"></div>
</form>
</body>
</html>