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.

514 lines
26 KiB
Plaintext

12 months ago
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SeaExportInfoHBLAdd.aspx.cs" Inherits="DSWeb.Shipping.SeaExportInfoHBLAdd" %>
<!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" />
<script language="javascript" type="text/javascript" src="../js/date/jsDateFormat.js"></script>
<script language="javascript" type="text/javascript" src="../js/m97date/wdatepicker.js"></script>
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
<link href="../theme/style.css" type="text/css" rel="Stylesheet" media="screen"/>
<script src="../js/json2.js" type="text/javascript"></script>
<!--Grid-->
<link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxgrid.css"/>
<script src="../js/dhtmlxcommon.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid.js" type="text/javascript"></script>
<script src="../js/dhtmlxgridcell.js" type="text/javascript"></script>
<script src="../js/dhtmlxcombo.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid_keymap_excel.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid_drag.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid_group.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid_mcol.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid_keymap_excel.js" type="text/javascript"></script>
<!--自定义下拉框-->
<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/dhtmlxcombo_whp.js"></script>
<!--按钮条-->
<style type="text/css">
.btn-content0{
width:100%;
height:30px;
background:url("../images/content-header.gif");
cursor:default;
}
</style>
<script type="text/javascript">
function $(id) {
return document.getElementById(id);
}
//两端去空格函数
String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/g, ""); }
function printAction()
{
var strBSNO = "";
strBSNO = $("hdGid").value;
// var openSet = "height=680, width=1050, toolbar=no, menubar=no,scrollbars=no, resizable=1,location=no, status=no,Top= " +(screen.height-710)/2 + ",Left= "+(screen.width-800)/2
// var openType = "_blank";
// var openUrl = "../Reports/SeaExportReport.aspx?bsno="+strBsno;
// window.open (openUrl,openType,openSet);
var printUrl = ""; var companyID = ""; var typeName = "SEAEBILLOFLADING"; var dbSourceID = ""; var userID = "";
var url = "../Reports/ReportService.aspx?handle=printseaebilloflading&bsno="+strBSNO+"&val="+newGuid();
var loader = dhtmlxAjax.getSync(url);
var reportVal = loader.xmlDoc.responseText; var reportObj = null; if(reportVal != ""){ reportObj = eval('(' + reportVal + ')'); if(reportObj.reports.length > 0){ if(reportObj.reports[0].compid != ""){ companyID = reportObj.reports[0].compid; } if(reportObj.reports[0].sourceid != ""){ dbSourceID = reportObj.reports[0].sourceid; } if(reportObj.reports[0].compid != ""){ userID = reportObj.reports[0].userid; } printUrl = "print://?comp="+companyID+"&type="+typeName+"&dbid="+dbSourceID+"&uid="+userID;//alert(printUrl); window.location.href = window.location.href; location.href = printUrl; } }else{
alert("没有要打印的报表");
return;
}
}
function newGuid(){
var guid = "";
for (var i = 1; i <= 32; i++){
var n = Math.floor(Math.random()*16.0).toString(16);
guid += n;
if((i==8)||(i==12)||(i==16)||(i==20))
guid += "-";
}
return guid.toUpperCase();
}
function selSTLDATEETD(tiannetOutObject)
{
}
function IsNumeric(s)
{
var inum = s.replace(/[^\d]/g,'');
var bReturn = true;
if(inum=="" || inum==null || inum==NaN)
{
bReturn = false;
}
return bReturn;
}
function onBlurNOPKGS()
{
var iums = 0;
var sums ="";
var strNOPKGS = $("tbNOPKGS").value.trim();
if (strNOPKGS != null && strNOPKGS != "")
{
var items= new Array();
items =strNOPKGS.split("\r\n");//这里是以换行符作为分界
var ii = new Array(items.length);
var ss = new Array(items.length);
if (items != null && items.length > 0)
{
for (var i = 0; i < items.length; i++)
{
for (var j = 0; j < items[i].length;j++ )
{
var s = items[i].trim().substring(j, j+1);
var tf = IsNumeric(s);
if (tf)
{
ii[i] = ii[i]+s;
ss[i] = "";
}
else
{
ss[i] = items[i].trim().substring(j).toUpperCase();
break;
}
}
iums += parseInt(ii[i].substring(9));
}
}
for (var k = 0; k < ss.length; k++)
{
if (ss.length == 1)
{
sums = ss[k].toString().trim().toUpperCase();
break;
}
if (ss[k]==ss[ss.length - 1])
{
sums=ss[k].toString().trim().toUpperCase();
}
else
{
sums= "PACKAGES";
break;
}
}
}
//$("tbPKGS").value = iums.toString();
//$("hd_comboKINDPKGS").value = sums;
//件数大写
var loaderText3 = dhtmlxAjax.getSync("../FeeCodes/TOTALNOAdapter.aspx?iums="+iums+"&sums="+sums+"&uid="+newID());
$("tbTOTALNO").value = loaderText3.xmlDoc.responseText;
//comboKINDPKGS.setComboText($("hd_comboKINDPKGS").value);
}
function newID() {
var guid = "";
for (var i = 1; i <= 32; i++) {
var n = Math.floor(Math.random() * 16.0).toString(16);
guid += n;
if ((i == 8) || (i == 12) || (i == 16) || (i == 20))
guid += "-";
}
return guid.toUpperCase();
}
//是否为数字,且数值格式是否正确
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 reloadParent(strBSNO,strLEID) {
/*
alert("成功提交!");
window.opener.location.reload();
history.back();
$("hdGid").value = strLEID;
$("hdEnter").value = "0";
postEnterTopCtn(); */ //alert("strBSNO="+strBSNO); var parentObj = window.parent.location; var oldUrl = parentObj.href; var idIndex = oldUrl.indexOf("&asid=&");//alert("1."+oldUrl+","+idIndex); // var newUrl = ""; if(idIndex <= 0) { newUrl = oldUrl.substring(0,idIndex+4);//alert("2."+oldUrl.substring(0,idIndex)); window.parent.opener.location.href = window.parent.opener.location.href; parentObj.href = newUrl+strBSNO; } else { var handleIndex = oldUrl.indexOf("handle="); newUrl = oldUrl.substring(0,handleIndex);//alert("3."+handleIndex+","+newUrl); window.parent.opener.location.href = window.parent.opener.location.href; parentObj.href = newUrl+"handle=edit&asid="+strLEID+"&id="+strBSNO; } // alert("成功提交!"); } </script>
<style type="text/css">
*{ margin:0; padding:0;}
html,body{ width:100%; height:100%; overflow:hidden;}
.container{ position:relative; width:100%; height:100%; overflow-y:scroll; overflow-x:auto;}
.topcss{ width:100%; position:absolute; top:0; left:0;}
.boxcss{ height:500px;}
</style>
</head>
<body style="float:left; width:100%;background-color: #ECF2FF">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<div>
<p class="topcss">
<div style="width:100%;vertical-align:text-bottom;" class="btn-content0">
<div class="btn-blank"></div>
<div class="xbtn-img">
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
<ContentTemplate>
<asp:ImageButton ID="ibEnter" runat="server" onclick="btnEnter_Click" ToolTip="保存" ImageUrl="~/images/icons/save.gif" CssClass="btnimg"/>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="ibEnter" />
</Triggers>
</asp:UpdatePanel>
</div>
<div class="xbtn-img">
<div class="btnimg"><img id=imgPrint runat=server src="../images/icons/print.gif" style="width:16px;" title="报表打印" onclick="printAction()"/></div>
</div>
</div>
</p>
<div class="container" style="float:left; width:100%;height:610px;">
<table width="100%">
<tr>
<td width=60px>
<asp:Label ID="Label1" runat="server" Text="主提单号" Width=50px CssClass="cssfont"></asp:Label></td>
<td colspan=4>
<asp:TextBox ID="tbMBLNO" runat="server" CssClass="txtTab" MaxLength="30"></asp:TextBox>
</td>
<td></td>
<td width=60px>
<asp:Label ID="Label2" runat="server" Text="分提单号" Width=50px CssClass="cssfont"></asp:Label></td>
<td colspan=4>
<asp:TextBox ID="tbHBLNO" runat="server" CssClass="txtTab" MaxLength="30" Width=310px></asp:TextBox>
</td>
</tr>
<tr>
<td colspan=11 align="center" height="10"><hr color="#96B3DD" /></td>
</tr>
<tr>
<td valign=top colspan=5>
<table width=100%>
<tr>
<td>
<table>
<tr>
<td>
<asp:Label ID="Label19" runat="server" Text="Shipper (发货人)" CssClass="cssfont"></asp:Label>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<asp:TextBox ID="tbSHIPPER" runat="server" CssClass="txtTab"
TextMode="MultiLine" Height="70px" style="overflow-y:auto;height:70px;" MaxLength="600"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<table>
<tr>
<td>
<asp:Label ID="Label20" runat="server" Text="Consignee (收货人)" CssClass="cssfont"></asp:Label>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<asp:TextBox ID="tbCONSIGNEE" runat="server" CssClass="txtTab"
TextMode="MultiLine" Height="70px" style="overflow-y:auto;height:70px;" MaxLength="600"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<table>
<tr>
<td>
<asp:Label ID="Label21" runat="server" Text="Notify party (通知人)" CssClass="cssfont"></asp:Label>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<asp:TextBox ID="tbNOTIFYPARTY" runat="server" CssClass="txtTab"
TextMode="MultiLine" Height="70px" style="overflow-y:auto;height:70px;" MaxLength="600"></asp:TextBox>
</td>
</tr>
</table>
</td>
<td></td>
<td valign=top colspan=5>
<table width=100%>
<tr>
<td height=190>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label22" runat="server" Text="Agent代理信息" CssClass="cssfont"></asp:Label>
</td>
</tr>
<tr>
<td>
<asp:TextBox ID="tbAGENT" runat="server" CssClass="txtTab" TextMode="MultiLine" Height=70px style="overflow-y:auto;height:70px;" MaxLength="600" Width=370px></asp:TextBox>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan=11 align="center" height="10"><hr color="#96B3DD" /></td>
</tr>
<tr>
<td>
<asp:Label ID="Label3" runat="server" Text="船名" Width=50px CssClass="cssfont"></asp:Label>
</td>
<td colspan=4>
<asp:TextBox ID="ddlVESSEL" runat="server" CssClass="txtTab" MaxLength=60 Width=300px></asp:TextBox>
</td>
<td></td>
<td>
<asp:Label ID="Label4" runat="server" Text="航次" Width=50px CssClass="cssfont"></asp:Label>
</td>
<td colspan=4>
<asp:TextBox ID="ddlVOYNO" runat="server" CssClass="txtTab" MaxLength=12 Width=306px></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label5" runat="server" Text="装货港" Width=50px CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="ddlPORTLOAD" runat="server" CssClass="txtTab6" MaxLength=60></asp:TextBox>
</td>
<td></td>
<td>
<asp:Label ID="Label6" runat="server" Text="卸货港" Width=50px CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="ddlPORTDISCHARGE" runat="server" CssClass="txtTab6" MaxLength=60></asp:TextBox>
</td>
<td></td>
<td>
<asp:Label ID="Label7" runat="server" Text="目的地" Width=50px CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="ddlDESTINATION" runat="server" CssClass="txtTab6" MaxLength=60></asp:TextBox>
</td>
<td></td>
<td>
<asp:Label ID="Label8" runat="server" Text="交货地点" Width=50px CssClass="cssfont"></asp:Label>
</td>
<td>
<asp:TextBox ID="ddlPLACEDELIVERY" runat="server" CssClass="txtTab6" MaxLength=60></asp:TextBox>
</td>
</tr>
<tr>
<td colspan=11 align="center" height="10"><hr color="#96B3DD" /></td>
</tr>
<tr>
<td valign=top colspan=3>
<table width=100%>
<tr>
<td>
<asp:Label ID="Label15" runat="server" Text="Container No.(集装箱号)<br />Seal No.(封志号)" CssClass="cssfont"></asp:Label>
</td>
</tr>
<tr>
<td>
<asp:TextBox ID="tbCNTRSEALNO" runat="server" TextMode="MultiLine"
CssClass="txtTab" Height=81px style="overflow-y:auto;height:81px;"
MaxLength="600"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label16" runat="server" Text="Marks & Nos.(标记与号码)" CssClass="cssfont"></asp:Label>
</td>
</tr>
<tr>
<td>
<asp:TextBox ID="tbMARKS" runat="server" CssClass="txtTab" TextMode="MultiLine" Height=85px style="overflow-y:auto;height:85px;" MaxLength="600">N/M</asp:TextBox>
</td>
</tr>
</table>
</td>
<td valign=top colspan=5>
<table width=100%>
<tr>
<td>
<asp:Label ID="Label17" runat="server" Text="Description of Goods (包装种类与货名)" CssClass="cssfont"></asp:Label></td>
</tr>
<tr>
<td>
<asp:TextBox ID="tbDESCRIPTION" runat="server" CssClass="txtTab"
TextMode="MultiLine" Height=200px style="overflow-y:auto;height:200px;" MaxLength="2000"></asp:TextBox>
</td>
</tr>
</table>
</td>
<td valign=top colspan=3>
<table width=100%>
<tr>
<td colspan=3>
<asp:Label ID="Label18" runat="server" Text="No.of containers or pkgs.<br />(箱数或件数)" CssClass="cssfont"></asp:Label>
</td>
</tr>
<tr>
<td colspan=3>
<asp:TextBox ID="tbNOPKGS" runat="server" CssClass="txtTab"
TextMode="MultiLine" style="overflow-y:auto;height:38px;"
MaxLength="120" onBlur="onBlurNOPKGS();" Height=38px Width=186px></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label13" runat="server" Text="Gross Weight 毛重<br />(公斤/KGS" CssClass="cssfont"></asp:Label>
</td>
</tr>
<tr>
<td>
<asp:TextBox ID="tbGROSSWEIGHT" runat="server" CssClass="txtTab"
TextMode="MultiLine" style="overflow-y:auto;height:40px;" Height=40px MaxLength="600"
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>
</tr>
<tr>
<td><asp:Label ID="Label14" runat="server" Text="Measurement 尺码<br />(立方米/CBM" CssClass="cssfont"></asp:Label>
</td>
</tr>
<tr>
<td>
<asp:TextBox ID="tbMEASUREMENT" runat="server" CssClass="txtTab"
TextMode="MultiLine" style="overflow-y:auto;height:40px;" Height=40px MaxLength="600"
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>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label9" runat="server" Text="件数大写" Width=50px CssClass="cssfont"></asp:Label></td>
<td colspan=10>
<asp:TextBox ID="tbTOTALNO" runat="server" CssClass="txtTab" MaxLength=100 Width=697px></asp:TextBox>
</td>
</tr>
<tr>
<td colspan=11 align="center" height="10"><hr color="#96B3DD" /></td>
</tr>
<tr>
<td valign=top>
<asp:Label ID="Label10" runat="server" Text="签单日期" Width=50px CssClass="cssfont"></asp:Label>
</td>
<td valign=top>
<asp:TextBox ID="tbISSUEDATE" runat="server" CssClass="txtTab6" onclick="WdatePicker();"></asp:TextBox>
</td>
<td></td>
<td valign=top>
<asp:Label ID="Label11" runat="server" Text="签单地点" Width=50px CssClass="cssfont"></asp:Label></td>
<td valign=top>
<asp:TextBox ID="tbISSUEPLACE" runat="server" CssClass="txtTab6"
MaxLength="60"></asp:TextBox>
</td>
<td></td>
<td valign=top>
<asp:Label ID="Label12" runat="server" Text="提单份数" Width=50px CssClass="cssfont"></asp:Label></td>
<td valign=top>
<asp:DropDownList ID="ddlNOBILL" runat="server" CssClass="txtTab6" Height=22px>
<asp:ListItem Value="ONE">ONE</asp:ListItem>
<asp:ListItem Value="TWO">TWO</asp:ListItem>
<asp:ListItem Selected="True" Value="THREE">THREE</asp:ListItem>
<asp:ListItem Value="FOUR">FOUR</asp:ListItem>
<asp:ListItem Value="FIVE">FIVE</asp:ListItem>
<asp:ListItem Value="SIX">SIX</asp:ListItem>
<asp:ListItem Value="SEVEN">SEVEN</asp:ListItem>
<asp:ListItem Value="EIGHT">EIGHT</asp:ListItem>
<asp:ListItem Value="NINE">NINE</asp:ListItem>
<asp:ListItem Value="TEN">TEN</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
</table>
</div>
</div>
<div style="width:100%;height:200px">
<input type="hidden" id="hdGid" runat="server"/>
</div>
</form>
</body>
</html>