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.
290 lines
12 KiB
Plaintext
290 lines
12 KiB
Plaintext
10 months ago
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SeaExportInfoBlissueSurPutSingle.aspx.cs" Inherits="DSWeb.Shipping.SeaExportInfoBlissueSurPutSingle" %>
|
||
|
|
||
|
<!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 href="../theme/tab.css" type="text/css" rel="stylesheet" />
|
||
|
<script src="../js/m97date/wdatepicker.js" type="text/javascript"></script>
|
||
|
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
|
||
|
<!--按钮条-->
|
||
|
<style type="text/css">
|
||
|
.btn-content0{
|
||
|
width:100%;
|
||
|
height:30px;
|
||
|
background:url("../images/content-header.gif");
|
||
|
cursor:default;
|
||
|
}
|
||
|
</style>
|
||
|
<script type="text/javascript" language=javascript>
|
||
|
function $(id) {
|
||
|
return document.getElementById(id);
|
||
|
}
|
||
|
//两端去空格函数
|
||
|
String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/g, ""); }
|
||
|
window.onbeforeunload = function unloadConfirm()
|
||
|
{
|
||
|
if((event.clientX>document.body.clientWidth&&event.clientY<0)||event.altKey)
|
||
|
{
|
||
|
if(confirm('是否需要保存数据?'))
|
||
|
{
|
||
|
document.getElementById("ibEnter").click();
|
||
|
window.close();
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
window.close();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
function printAction()
|
||
|
{
|
||
|
var strBSNO = "";
|
||
|
strBSNO = $("hdGid").value;
|
||
|
|
||
|
var printUrl = "";
|
||
|
var companyID = "";
|
||
|
var typeName = "SEAEBUSINESSINTOGOODS";
|
||
|
var dbSourceID = "";
|
||
|
var userID = "";
|
||
|
|
||
|
var url = "../Reports/ReportService.aspx?handle=printseaebusinessintogoods&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 setEnter()
|
||
|
{
|
||
|
$("hdEnter").value = "1";
|
||
|
postEnter();
|
||
|
}
|
||
|
//post数据
|
||
|
function postEnter()
|
||
|
{
|
||
|
var myForm = document.getElementById("form1");
|
||
|
myForm.submit();
|
||
|
}
|
||
|
//是否为数字
|
||
|
function IsNum(val){
|
||
|
var re = /^[-\+]?\d+(\.\d+)?$/;
|
||
|
if (!re.test(val)){
|
||
|
return false;
|
||
|
}else{
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
//是否为数字2
|
||
|
function IsNum2(val){
|
||
|
var re = /^[0-9]*[1-9][0-9]*$/;
|
||
|
if (!re.test(val)){
|
||
|
return false;
|
||
|
}else{
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
//是否为数字,且数值格式是否正确
|
||
|
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,strid)
|
||
|
{
|
||
|
var parentObj = window.parent.location;
|
||
|
var oldUrl = parentObj.href;
|
||
|
var idIndex = oldUrl.indexOf("&id=&");//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&id="+strid+"&bsno="+strBSNO;
|
||
|
}
|
||
|
//
|
||
|
alert("成功提交!");
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body style="background-color: #ECF2FF;border:0px; width:100%; height:100%; margin-top:0px; margin-left:0px;">
|
||
|
<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">
|
||
|
<div class="btnimg"><img id=imgEnter runat=server src="../images/icons/save.gif" style="width:16px;" title="保存" onclick="setEnter();"/></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- 选项卡开始 -->
|
||
|
<div class="nTab">
|
||
|
<!-- 内容开始 -->
|
||
|
<div class="TabContent" style="background-color: #ECF2FF;">
|
||
|
<div>
|
||
|
<table width="700">
|
||
|
<tr><td height=10px></td></tr>
|
||
|
<tr>
|
||
|
<td width=200px align=center>船名/航次</td>
|
||
|
<td width=150px align=center>开船日期</td>
|
||
|
<td width=150px align=center>主提单号</td>
|
||
|
<td width=150px align=center>客户名称</td>
|
||
|
<td width=10px align=center></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td align=center>
|
||
|
<asp:Label ID="lbVESSELVOYNO" runat="server" Text="" BorderStyle="None" ForeColor="#666666" Font-Bold="True"></asp:Label>
|
||
|
</td>
|
||
|
<td align=center>
|
||
|
<asp:Label ID="lbETD" runat="server" Text="" BorderStyle="None" ForeColor="#666666" Font-Bold="True"></asp:Label>
|
||
|
</td>
|
||
|
<td align=center>
|
||
|
<asp:Label ID="lbMBLNO" runat="server" Text="" BorderStyle="None" ForeColor="#666666" Font-Bold="True"></asp:Label>
|
||
|
</td>
|
||
|
<td align=center>
|
||
|
<asp:Label ID="lbCUSTOMERNAME" runat="server" Text="" BorderStyle="None" ForeColor="#666666" Font-Bold="True"></asp:Label>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td colspan=6 align="center" height="10"><hr color="#96B3DD" /></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign=top align=center>
|
||
|
<asp:Label ID="Label1" runat="server" Text="申请放单时间" BorderStyle="None"></asp:Label>
|
||
|
</td>
|
||
|
<td align=left>
|
||
|
<asp:TextBox ID="tbPUTSINGLETIME" runat="server" CssClass="txtTab" onclick="WdatePicker()"></asp:TextBox>
|
||
|
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="格式错误(yyyy-MM-dd)" ControlToValidate="tbPUTSINGLETIME" ValidationExpression="\d{4}-\d{2}-\d{2}"></asp:RegularExpressionValidator>
|
||
|
</td>
|
||
|
<td valign=top align=right>
|
||
|
<asp:Label ID="Label3" runat="server" Text="最晚付费时间" BorderStyle="None"></asp:Label>
|
||
|
</td>
|
||
|
<td align=left>
|
||
|
<asp:TextBox ID="tbPAYTIME" runat="server" CssClass="txtTab" onclick="WdatePicker()"></asp:TextBox>
|
||
|
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="格式错误(yyyy-MM-dd)" ControlToValidate="tbPAYTIME" ValidationExpression="\d{4}-\d{2}-\d{2}"></asp:RegularExpressionValidator>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign=top align=center>
|
||
|
<asp:Label ID="Label5" runat="server" Text="人民币金额" BorderStyle="None"></asp:Label>
|
||
|
</td>
|
||
|
<td align=left>
|
||
|
<asp:TextBox ID="tbPAYRMB" runat="server" CssClass="txtTab" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45 && event.keyCode!=46){event.returnValue=false;}" onblur="getIsNum(this);" MaxLength=20></asp:TextBox>
|
||
|
</td>
|
||
|
<td valign=top align=right>
|
||
|
<asp:Label ID="Label4" runat="server" Text="美元金额" BorderStyle="None"></asp:Label>
|
||
|
</td>
|
||
|
<td align=left>
|
||
|
<asp:TextBox ID="tbPAYUSD" runat="server" CssClass="txtTab" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45 && event.keyCode!=46){event.returnValue=false;}" onblur="getIsNum(this);" MaxLength=20></asp:TextBox>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr><td height=10px></td></tr>
|
||
|
<tr>
|
||
|
<td align=center>
|
||
|
<asp:Label ID="Label2" runat="server" Text="申请原因<br/>(注明回箱、入货时间)" BorderStyle="None"></asp:Label>
|
||
|
</td>
|
||
|
<td colspan=3 align=left valign=middle>
|
||
|
<asp:TextBox ID="tbPUTSINGLE" runat="server" MaxLength="1024" CssClass="txtTab" TextMode="MultiLine" Height=100px style="overflow-y:auto;height:100px;"></asp:TextBox>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr><td height=40px></td></tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<input type="hidden" id="hdUserID" runat="server"/>
|
||
|
<input type="hidden" id="hdGID" runat="server"/>
|
||
|
<input type="hidden" id="hdBSNO" runat="server"/>
|
||
|
<input type="hidden" id="hdHandle" runat="server"/>
|
||
|
<input type="hidden" id="hdEnter" runat="server"/>
|
||
|
<input type="hidden" id="hdEnabled" runat="server"/>
|
||
|
|
||
|
<input type="hidden" id="hdISSUETYPE" runat="server"/>
|
||
|
<input type="hidden" id="hdSALE" runat="server"/>
|
||
|
</div>
|
||
|
<div style="height:200px"></div>
|
||
|
</form>
|
||
|
</body>
|
||
|
</html>
|