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

317 lines
16 KiB
Plaintext

2 years ago
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InfoShipper.aspx.cs" Inherits="DSWeb.Shipping.InfoShipper" %>
<!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>
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
<script type="text/javascript">
window.dhx_globalImgPath="../images/";
</script>
<!--背景条-->
<style type="text/css">
.btn-content0{
width:100%;
height:30px;
background:url("../images/content-header.gif");
cursor:default;
}
.style1
{
width: 100px;
}
</style>
<!--蒙板-->
<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>
<script language="javascript" type="text/javascript">
function $(id)
{
return document.getElementById(id);
}
function QueryString()
{
var name,value,i;//构造参数对象并初始化
var str=location.href;//获得浏览器地址栏URL串
var num=str.indexOf("?")
str=str.substr(num+1);//截取“?”后面的参数串
var arrtmp=str.split("&");//将各参数分离形成参数数组
for(i=0;i < arrtmp.length;i++)
{
num=arrtmp[i].indexOf("=");
if(num>0)
{
name=arrtmp[i].substring(0,num);//取得参数名称
value=arrtmp[i].substr(num+1);//取得参数值
this[name]=value;//定义对象属性并初始化
}
}
}
function ShowDetailUpdate()
{
var asid = mygrid_log.getSelectedRowId();
if(asid==null || asid=="")
{
alert("请先选择要操作的数据!");
}
else
{
var selectedId = mygrid_log.getSelectedRowId();
var qs = new QueryString();//调用:
//var URLs = "ExchangesUnitInfo.aspx?handle=edit&id="+selectedId;//+qs.id;
var URLs = "../shipping/ExchangesUnitEdit.aspx?handle=edit&id="+selectedId;
ret = window.open(URLs,"_blank", "height=600, width=1000,center:yes,help:no,toolbar=no,menubar=no,scrollbars=no,resizable=1,location=no,status=no");
}
}
function ShowDetailDel()
{
var asid = mygrid_log.getSelectedRowId();
if(asid==null || asid=="")
{
alert("请先选择要操作的数据!");
}
else
{
if(confirm('确定删除吗?'))
{
$("hid_id").value = mygrid_log.getSelectedRowId();
document.getElementById("btDel").click();
}
}
}
function ShowDetailFresh()
{
document.getElementById("ibFresh").click();
} //回车键控制 document.onkeypress=function()
{
if(event.keyCode==13)
{
if(event.srcElement.tagName== 'TEXTAREA')
{
return true;
}
//window.event.keyCode=9;
return false;
}
}
</script>
</head>
<body style="background-color: #ECF2FF">
<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="ibFresh" runat="server" onclick="ibFresh_Click" ToolTip="刷新/撤销" ImageUrl="../images/icons/btnFresh.gif" CssClass="btnimg"/>
</div>
</div>
<asp:Panel ID="Panel2" runat="server" Width=100%>
<div style="background-color:#FFA; height:28px; width:100%; border:1px solid #A0A0A4; color:#F00; float:left;">
<div style="padding:5px 0 0 15px;float:left;"><img src="../images/notice.png" align="middle"/></div>
<div id="dvNotes" runat="server" style="float:left;padding:8px 0 0 15px; font-size:12px; font-weight:800" class="cssfont">该页面只有选中该客户为委托人时方可维护</div>
</div>
</asp:Panel>
<div class="TabContent" >
<asp:Panel ID="Panel1" runat="server" Visible=false >
<table style="text-align:center;word-break: keep-all;white-space:nowrap; overflow:scroll; width:500px">
<tr>
<td width=10px></td>
<td width=100px>
<asp:Label ID="Label1" runat="server" Text="客户代码:" CssClass="cssfont"></asp:Label>
</td>
<td width=90px>
<asp:TextBox ID="tbshipperID" runat="server" MaxLength="10" Width=80px CssClass="txtTab4"></asp:TextBox>
</td>
<td width=50px>
<asp:Label ID="Label2" runat="server" Text="客户简称" CssClass="cssfont"></asp:Label>
</td>
<td width=90px>
<asp:TextBox ID="tbSHORTNAME" runat="server" MaxLength="20" Width=80px CssClass="txtTab4"></asp:TextBox>
</td>
<td width=50px>
<asp:Label ID="Label3" runat="server" Text="客户类型" CssClass="cssfont"></asp:Label>
</td>
<td width=300px>
<asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal" Width="300px" CssClass="cssfont">
<asp:ListItem Selected="True" Value="2">发货人</asp:ListItem>
<asp:ListItem Value="1">收货人</asp:ListItem>
<asp:ListItem Value="3">通知人</asp:ListItem>
<asp:ListItem Value="4">代理人</asp:ListItem>
</asp:RadioButtonList>
</td>
<td width=50px>
<asp:CheckBox ID="cbISPUBLIC" runat="server" Width="50px" Text="公共" />
</td>
<td></td>
</tr>
<tr>
<td width=10px></td>
<td width=100px>内容:</td>
<td colspan=6>
<textarea runat="server" id="txtshipperdetail" rows="3" cols="82" style="border-style:none;"></textarea>
</td>
<td width=10px></td>
</tr>
<tr>
<td></td>
<td style="white-space:100px">装货地址:</td>
<td colspan="6">
<textarea runat="server" id="txtloadAddress" cols="82" rows="2" style="border-style:none;"></textarea>
</td>
</tr>
<tr>
<td></td>
<td>送货地址:</td>
<td colspan="6">
<textarea runat="server" id="txtdeliveraddress" cols="82" rows="2" style="border-style:none;"></textarea>
</td>
</tr>
<tr>
<td colspan=8 align="center" height="10"><hr color="#96B3DD" /></td>
</tr>
</table>
</asp:Panel>
<div style="width:100%; height:500px; overflow:scroll;">
<asp:DataList ID="dlInfoShipper" DataKeyField ="shipperID" runat="server"
RepeatColumns="1" Width="95%" onitemcommand="dlInfoShipper_ItemCommand">
<ItemTemplate>
<table border="1" cellpadding="1" cellspacing="1" style=" text-align:center;word-break: keep-all;white-space:nowrap;">
<tr>
<td></td>
<td><asp:ImageButton ID="ibDel" runat="server" ToolTip="删除" ImageUrl="~/images/icons/remove.gif" OnClientClick="return confirm('确定删除吗?')" CssClass="btnimg" CommandName="ibDel" /> </td>
<td><asp:ImageButton ID="ibEdit" runat="server" ToolTip="编辑" ImageUrl="../images/audit.gif" CssClass="btnimg" CommandName="ibEdit"/> </td>
<td style="color:#DEB887;">客户代码:</td><td style=" width:100px"><%#DataBinder.Eval(Container.DataItem, "shipperID").ToString()%></td>
<td style="color:#DEB887">客户简称:</td><td style=" width:100px"><%#DataBinder.Eval(Container.DataItem, "SHORTNAME").ToString()%></td>
<td style="color:#DEB887">客户类型:</td><td style=" width:100px"><%#DataBinder.Eval(Container.DataItem, "shippertypeName").ToString()%></td>
<td style=" width:100px"><asp:CheckBox ID="cbISPUBLIC" runat="server" Width="50px" Text="公共" Checked=<%#DataBinder.Eval(Container.DataItem, "ISPUBLIC")%> Enabled=false /></td>
<td style=" width:45%"></td>
</tr>
<tr>
<td>内容:</td><td colspan="9"><asp:TextBox ID="tbshipperdetail" runat="server" TextMode="MultiLine" CssClass="txtTab" style="overflow-y:auto;height:60px;" MaxLength="600" Text='<%#DataBinder.Eval(Container.DataItem, "shipperdetail").ToString()%>' BorderStyle="None" ReadOnly="True"></asp:TextBox> </td>
</tr>
<tr>
<td>装货地址:</td><td colspan="9">
<asp:TextBox ID="txtloadaddress" runat="server" TextMode="MultiLine" BorderStyle="None" ReadOnly="true" CssClass="txtTab" Height="40px" Text='<%#DataBinder.Eval(Container.DataItem,"LOADADDRESS") %>'></asp:TextBox></td>
</tr>
<tr>
<td>送货地址:</td><td colspan="9"><asp:TextBox ID="txtdeliveraddress" runat="server" TextMode="MultiLine" BorderStyle="None" ReadOnly="true" CssClass="txtTab" Height="40px" Text='<%#DataBinder.Eval(Container.DataItem,"DELIVERADDRESS") %>'></asp:TextBox></td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
</div>
<input type="hidden" id="hd_Handle" runat="server"/>
</div>
</form>
</body>
</html>