|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Opsean.aspx.cs" Inherits="DSWeb.SeanInfo.Opsean" %>
|
|
|
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
|
|
|
<!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 runat="server">
|
|
|
<title>委托信息录入</title>
|
|
|
<link rel="STYLESHEET" type="text/css" href="../theme/buttons.css"/>
|
|
|
<link href="../Css/ymPrompt.css" rel="stylesheet" type="text/css" />
|
|
|
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
|
|
|
<script src="../js/Date/jsDateFM.js" type="text/javascript"></script>
|
|
|
<script src="../js/Date/jsDateFormat.js" type="text/javascript"></script>
|
|
|
<script src="../js/jquery/js/jquery.js" type="text/javascript"></script>
|
|
|
<script src="../js/m97date/WdatePicker.js" type="text/javascript"></script>
|
|
|
<script src="../js/ymPrompt.js" type="text/javascript"></script>
|
|
|
<link href="../theme/style.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
$(document).ready(function () {
|
|
|
$("#radbtn_direct").click(function () {
|
|
|
if ($("#radbtn_plan").attr("checked")) {
|
|
|
$("#radbtn_plan").attr("checked", false);
|
|
|
}
|
|
|
else {
|
|
|
return;
|
|
|
}
|
|
|
});
|
|
|
$("#radbtn_plan").click(function () {
|
|
|
if ($("#radbtn_direct").attr("checked")) {
|
|
|
$("#radbtn_direct").attr("checked", false);
|
|
|
}
|
|
|
else {
|
|
|
return;
|
|
|
}
|
|
|
});
|
|
|
$("#<%= dro_CUSTOMERNAME.ClientID %>").change(function () {
|
|
|
//alert(this.value);
|
|
|
//AjaxGetAddress(this.value);
|
|
|
OpenSeanGetAddress(this.value);
|
|
|
});
|
|
|
});
|
|
|
function OpenSeanGetAddress(customer) {
|
|
|
ymPrompt.win({ message: "SeanGetAddress.aspx?custshortname=" + customer,
|
|
|
width: 800, height: 300, title: '获取地址信息',
|
|
|
handler: callback, maxBtn: false,
|
|
|
minBtn: false, iframe: true
|
|
|
});
|
|
|
}
|
|
|
function callback(values) {
|
|
|
var mark = values.split('_')[0];
|
|
|
var textvalue = values.split('_')[1];
|
|
|
if (mark == "load") {
|
|
|
document.getElementById("loadAddress").value = textvalue;
|
|
|
}
|
|
|
else if (mark == "deli") {
|
|
|
document.getElementById("deliverAddress").value = textvalue;
|
|
|
}
|
|
|
else {
|
|
|
document.getElementById("loadAddress").value = "";
|
|
|
document.getElementById("deliverAddress").value = "";
|
|
|
}
|
|
|
}
|
|
|
//ajax获取装送货地址
|
|
|
function AjaxGetAddress(values) {
|
|
|
var loaddress;
|
|
|
var deliveraddress;
|
|
|
var loadarray = new Array();
|
|
|
var deliverarray = new Array();
|
|
|
$.ajax({
|
|
|
type: "post",
|
|
|
url: "SeanAjax.aspx",
|
|
|
data: "type=getaddress&cusname=" + values,
|
|
|
dataType: "json",
|
|
|
beforeSend: function (XMLHttpRequest) { },
|
|
|
success: function (msg) {
|
|
|
var results = msg.result;
|
|
|
alert(results.length);
|
|
|
for (var i = 0; i < results.length; i++) {
|
|
|
loaddress = results[i].loadaddress;
|
|
|
deliveraddress = results[i].deliveraddress;
|
|
|
loadarray = loaddress.split('$');
|
|
|
}
|
|
|
// alert(results[0].loadaddress);
|
|
|
// alert(results[0].deliveraddress);
|
|
|
},
|
|
|
error: function () { alert("error1"); }
|
|
|
});
|
|
|
}
|
|
|
function selectcheckbox(even) {
|
|
|
alert(even.checked);
|
|
|
var checkall = document.getElementsByName("items");
|
|
|
if (even.checked) {
|
|
|
$.each(checkall, function (i, n) {
|
|
|
n.checked =checked;
|
|
|
})
|
|
|
}
|
|
|
else {
|
|
|
$.each(checkall, function (i, n) {
|
|
|
n.checked = false;
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
//contact隐藏DIV
|
|
|
$(document).ready(function () {
|
|
|
var divNames = $(".divname");
|
|
|
$.each(divNames, function (i, n) {
|
|
|
$(n).hide();
|
|
|
});
|
|
|
var divname = $(".divdropkind");
|
|
|
$.each(divname, function (i, n) {
|
|
|
$(n).hide();
|
|
|
});
|
|
|
});
|
|
|
//点击td时的显隐
|
|
|
function clicktd(idd) {
|
|
|
//document.getElementById("spdro_" + id).style.display = "block";
|
|
|
var divNames = $(".divname");
|
|
|
$.each(divNames, function (i, n) {
|
|
|
if (n.id == "div_" + idd) {
|
|
|
$(n).show();
|
|
|
document.getElementById("pan_"+idd).style.display = "none";
|
|
|
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
function clickKind(idd) {
|
|
|
var divname = $(".divdropkind");
|
|
|
$.each(divname, function (i, n) {
|
|
|
if (n.id == "divdro_" + idd) {
|
|
|
$(n).show();
|
|
|
document.getElementById("span_"+idd).style.display = "none";
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
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();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
//是否为数字,且数值格式是否正确
|
|
|
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;
|
|
|
}
|
|
|
}
|
|
|
//获取GUID
|
|
|
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 += "-";
|
|
|
}
|
|
|
document.getElementById("hid_newctnid").value=guid.toUpperCase();
|
|
|
}
|
|
|
function checkNewContCheckbox(id) {
|
|
|
|
|
|
}
|
|
|
//获得checkbox的值,为删除数据,集装箱
|
|
|
function GetCheckValue() {
|
|
|
var checkvalue = "";
|
|
|
$("[name=checkdele]:checkbox:checked").each(function () {
|
|
|
if ($.trim($(this).val()).length > 0) {
|
|
|
alert($(this).val());
|
|
|
checkvalue += "," + $.trim($(this).val());
|
|
|
}
|
|
|
});
|
|
|
if (checkvalue.length <37) {
|
|
|
alert("您还没有选择删除项!");
|
|
|
return false;
|
|
|
}
|
|
|
else {
|
|
|
$("#<%=hid_delevalue.ClientID %>").val(checkvalue.substr(1))
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
//验证集装箱的修改保存
|
|
|
function checkContUpdate() {
|
|
|
var checkvalue = "";
|
|
|
$("[name=checkdele]:checkbox:checked").each(function () {
|
|
|
if ($.trim($(this).val()).length > 0) {
|
|
|
checkvalue += "," + $.trim($(this).val());
|
|
|
}
|
|
|
});
|
|
|
if (checkvalue.length<37) {
|
|
|
alert("请选择您修改的项!");
|
|
|
return false;
|
|
|
}
|
|
|
if (checkvalue.length > 70) {
|
|
|
alert("每次只能修改一项!");
|
|
|
return false;
|
|
|
}
|
|
|
else {
|
|
|
$("#<%=hid_update.ClientID %>").val(checkvalue.substr(1))
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
//checkbox的全选
|
|
|
function checkbox(event) {
|
|
|
var intboxname = document.getElementsByName("checkdele");
|
|
|
if (event.checked) {
|
|
|
$.each(intboxname, function (i, n) {
|
|
|
n.checked = true;
|
|
|
})
|
|
|
}
|
|
|
else {
|
|
|
$.each(intboxname, function (i, n) {
|
|
|
n.checked = false;
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
//ajax确定是否已经存在该运单号
|
|
|
function MblnoISEXIST() {
|
|
|
var values = document.getElementById("txt_mblNu").value;
|
|
|
if (values == "" || values == null) {
|
|
|
alert("运单号不能为空,请输入运单号!");
|
|
|
return false;
|
|
|
}
|
|
|
else {
|
|
|
$.ajax({
|
|
|
type: "post",
|
|
|
url: "SeanAjax.aspx",
|
|
|
data: "type=mblnoisexist&mblno=" + values,
|
|
|
dataType: "json",
|
|
|
beforeSend: function (XMLHttpRequest) { },
|
|
|
success: function (msg) {
|
|
|
var result = msg.result;
|
|
|
if (result != 0) {
|
|
|
alert("该运单号已经存在,请重新填写!");
|
|
|
return true;
|
|
|
}
|
|
|
else {
|
|
|
return false;
|
|
|
}
|
|
|
},
|
|
|
error: function () { alert("error"); }
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
//比较连个日期控件的大小
|
|
|
function compareDateUpdate() {
|
|
|
var startStr = document.getElementById("txt_etdTime").value;
|
|
|
var endStr = document.getElementById("txt_etaTime").value;
|
|
|
var d1, d2, s, arr, arr1, arr2;
|
|
|
if (startStr.length > 10) {
|
|
|
arr = startStr.split(" ");
|
|
|
arr1 = arr[0].split("-");
|
|
|
arr2 = arr[1].split(":");
|
|
|
d1 = new Date(arr1[0], arr1[1] - 1, arr1[2], arr2[0], arr2[1], arr2[2]);
|
|
|
}
|
|
|
else {
|
|
|
arr = startStr.split("-");
|
|
|
d1 = new Date(arr[0], arr[1], arr[2]);
|
|
|
}
|
|
|
if (endStr.length > 10) {
|
|
|
arr = endStr.split(" ");
|
|
|
arr1 = arr[0].split("-");
|
|
|
arr2 = arr[1].split(":");
|
|
|
d2 = new Date(arr1[0], arr1[1] - 1, arr1[2], arr2[0], arr2[1], arr2[2]);
|
|
|
}
|
|
|
else {
|
|
|
arr = endStr.split("-");
|
|
|
d2 = new Date(arr[0], arr[1], arr[2]);
|
|
|
}
|
|
|
s = d2 - d1;
|
|
|
if (s < 0) {
|
|
|
alert("开船日期不能大于到港日期!");
|
|
|
return false;
|
|
|
}
|
|
|
else {
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
function submitForm() {
|
|
|
var form = document.getElementById("<%=form1.ClientID %>");
|
|
|
form.submit();
|
|
|
}
|
|
|
//重新获得路径并加载数据
|
|
|
function reloadParent(strBSNO, strHandle) {
|
|
|
var parentObj = window.parent.location;
|
|
|
var oldUrl = parentObj.href;
|
|
|
var idIndex = oldUrl.indexOf("&id"); //alert(oldUrl);
|
|
|
//
|
|
|
var newUrl = ""; strHandle
|
|
|
if (strHandle == "saveInfo") {
|
|
|
alert("保存成功!");
|
|
|
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 if (strHandle == "edit") {
|
|
|
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=add";
|
|
|
}
|
|
|
else if (strHandle == "updateInfo") {
|
|
|
alert("修改成功!");
|
|
|
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 if (strHandle == "dele") {
|
|
|
alert("删除成功!");
|
|
|
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=add";
|
|
|
}
|
|
|
else {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
//删除多项集装箱信息
|
|
|
function deleteMoreCtn() {
|
|
|
var ctnid=0;
|
|
|
var gridview = document.getElementById("<%=gridviewContainer.ClientID %>");
|
|
|
for (var i = 1; i < gridview.rows.length; i++) {
|
|
|
var chebox = gridview.rows[i].cells[0].childNodes[0].childNodes[0];
|
|
|
if (chebox.checked) {
|
|
|
ctnid++;
|
|
|
}
|
|
|
}
|
|
|
if (ctnid == 0) {
|
|
|
alert("请选择要删除的项!");
|
|
|
return false;
|
|
|
}
|
|
|
else {
|
|
|
if (confirm("是否删除?")) {
|
|
|
return true;
|
|
|
}
|
|
|
else {
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
//验证数据浮点数
|
|
|
function regexValue(even) {
|
|
|
var regex = /^[0-9]+[.]?[0-9]+$/;
|
|
|
if (!regex.test(even.value)) {
|
|
|
alert("含有不符合的字符!");
|
|
|
return false;
|
|
|
}
|
|
|
else {
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
<style type="text/css">
|
|
|
.divTop
|
|
|
{
|
|
|
width:100%;
|
|
|
height:30px;
|
|
|
background:url("../images/content-header.gif");
|
|
|
cursor:default;
|
|
|
vertical-align:middle;
|
|
|
}
|
|
|
.conDIV
|
|
|
{
|
|
|
width:100%;
|
|
|
height:30px;
|
|
|
background:url("../images/content-header.gif");
|
|
|
cursor:default;
|
|
|
vertical-align:middle;
|
|
|
}
|
|
|
.dropDown
|
|
|
{
|
|
|
width:155px;
|
|
|
font-size:11px;
|
|
|
}
|
|
|
.txtvalue
|
|
|
{
|
|
|
width:50px;
|
|
|
}
|
|
|
.unitvalue
|
|
|
{
|
|
|
width:91px;
|
|
|
}
|
|
|
#table_top tr td
|
|
|
{
|
|
|
width:30px;
|
|
|
}
|
|
|
.cssfont
|
|
|
{ width: 17px;
|
|
|
}
|
|
|
.txt_repeter
|
|
|
{
|
|
|
width:80px;
|
|
|
border-width:0;
|
|
|
|
|
|
}
|
|
|
.drop_rep
|
|
|
{
|
|
|
width:100px;
|
|
|
font-size:11px;
|
|
|
}
|
|
|
.table_repeater tr td
|
|
|
{
|
|
|
width:90px;
|
|
|
}
|
|
|
.table_repeater
|
|
|
{
|
|
|
border:1 solid black;
|
|
|
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
<body style=" background-color:#ECF2FF; height:100%">
|
|
|
<form id="form1" runat="server" style=" background-color:#ECF2FF; height:100%">
|
|
|
<div style=" height:15px; background-color:#ECF2FF; text-align:left; font-size:large; font-weight:bold;">信息显示及操作</div>
|
|
|
<div id="topdiv" class="divTop">
|
|
|
<div class="btn-blank"></div>
|
|
|
<div class="xbtn-img"><div class="btnimg"><asp:ImageButton ID="ibAdd" runat="server" ToolTip="添加新项"
|
|
|
ImageUrl="~/images/icons/btnAdd.gif" CssClass="cssfont" onclick="ibAdd_Click"/></div></div>
|
|
|
<div class="xbtn-img"><div class="btnimg"><asp:ImageButton runat="server" ID="img_btnSave" ToolTip="保存修改" OnClientClick="return compareDateUpdate();"
|
|
|
ImageUrl="../images/icons/save.gif" onclick="img_btnSave_Click"
|
|
|
Height="16px" />
|
|
|
<asp:ImageButton runat="server" ID="img_btnSaveNew" ToolTip="保存添加" OnClientClick="return compareDateUpdate();"
|
|
|
ImageUrl="../images/icons/save.gif"
|
|
|
Height="16px" onclick="img_btnSaveNew_Click" /></div></div>
|
|
|
<div class="xbtn-img"><div class="btnimg"><asp:ImageButton ID="ibDel" runat="server" ToolTip="删除"
|
|
|
ImageUrl="../images/icons/remove.gif" OnClientClick="return confirm('确定删除吗?')"
|
|
|
CssClass="cssfont" onclick="ibDel_Click1" /></div></div>
|
|
|
</div>
|
|
|
<div style="margin-top:10px;">
|
|
|
<table border="0" cellpadding="0" cellspacing="0" class="tabel_add" style="width:600px; text-align:left;">
|
|
|
<tr>
|
|
|
<td>业务状态:</td><td><asp:Label runat="server" ID="lab_bustatus" Text="........"></asp:Label></td>
|
|
|
<td>费用状态:</td><td><asp:Label runat="server" ID="lab_costatus" Text="........"></asp:Label></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>委托方式:</td><td>
|
|
|
<asp:RadioButton runat="server" ID="radbtn_direct"
|
|
|
CssClass="false" Text="直接引入" Checked="true" />
|
|
|
<asp:RadioButton runat="server" ID="radbtn_plan" Text="计划引入" CssClass="false" /><asp:Label runat="server" ID="lab_ordtype" Text=".........." ></asp:Label></td>
|
|
|
<td>会计期间:</td><td><asp:TextBox runat="server" ID="txt_accTime" ReadOnly="false" ToolTip="例:‘2011-04" onclick="WdatePicker({ dateFmt: 'yyyy-MM', isShowToday: false, isShowClear: false })" ></asp:TextBox></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>委托编号:</td><td><input type="text" id="txt_CUSTNO" runat="server" value="" /></td>
|
|
|
<td>委托单位:</td><td><asp:DropDownList runat="server" ID="dro_CUSTOMERNAME"
|
|
|
CssClass="dropDown" ></asp:DropDownList></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>运单号:</td><td><input type="text" id="txt_mblNu" runat="server" /></td>
|
|
|
<td>开船日期:</td><td><input type="text" id="txt_etdTime" runat="server" onclick="WdatePicker()" value="" /></td>
|
|
|
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>船名:</td><td><asp:DropDownList runat="server" ID="dro_vessName"
|
|
|
CssClass="dropDown" ></asp:DropDownList></td>
|
|
|
<td>航次:</td><td><input type="text" id="txt_voyNu" value="" runat="server" /></td>
|
|
|
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>装货港:</td><td><asp:DropDownList runat="server" ID="dro_portLoad"
|
|
|
CssClass="dropDown" ></asp:DropDownList></td>
|
|
|
<td>卸货港:</td><td><asp:DropDownList runat="server" ID="dro_portDisc"
|
|
|
CssClass="dropDown" ></asp:DropDownList></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>船公司:</td><td><asp:DropDownList runat="server" ID="dro_carrComName"
|
|
|
CssClass="dropDown"></asp:DropDownList></td>
|
|
|
<td>到港日期:</td><td><input type="text" id="txt_etaTime" runat="server" onclick="WdatePicker()" value="" /></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>揽货人:</td><td><asp:DropDownList runat="server" ID="dro_sale"
|
|
|
CssClass="dropDown" ></asp:DropDownList></td>
|
|
|
<td>操作员:</td><td><asp:DropDownList runat="server" ID="dro_op"
|
|
|
CssClass="dropDown"></asp:DropDownList></td>
|
|
|
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>物品名称:</td><td><asp:DropDownList runat="server" ID="dro_goodName"
|
|
|
CssClass="dropDown" ></asp:DropDownList></td>
|
|
|
<td>毛重:</td><td><input type="text" id="txt_grossWeight" value="0.00" onblur="return regexValue(this);" runat="server" class="txtvalue" /> <asp:DropDownList ID="dro_grossWeight" CssClass="unitvalue" runat="server">
|
|
|
<asp:ListItem Selected="True">吨</asp:ListItem>
|
|
|
<asp:ListItem>公斤</asp:ListItem>
|
|
|
<asp:ListItem>斤</asp:ListItem>
|
|
|
</asp:DropDownList></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>发货人:</td><td><input type="text" id="txt_shipper" runat="server" value="" /></td>
|
|
|
<td>录入人:</td><td><asp:TextBox runat="server" ID="txt_inputBy" Text=""></asp:TextBox></td>
|
|
|
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>收货人:</td><td><input type="text" id="txt_consig" runat="server" value="" /></td>
|
|
|
<td></td><td><input type="text" id="txt_measurement" value="0.00" onblur="return regexValue(this);" runat="server" style=" visibility:hidden; display:none; width:20px" /> <asp:DropDownList ID="dro_measruement" runat="server" style=" visibility:hidden; display:none; width:20px" Visible="false">
|
|
|
<asp:ListItem Selected="True">吨</asp:ListItem>
|
|
|
<asp:ListItem>公斤</asp:ListItem>
|
|
|
</asp:DropDownList></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>
|
|
|
装货地址:
|
|
|
</td>
|
|
|
<td colspan="3">
|
|
|
<textarea runat="server" id="loadAddress" cols="53" rows="3">
|
|
|
</textarea>
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>送货地址:</td>
|
|
|
<td colspan="3"><textarea runat="server" id="deliverAddress" cols="53" rows="3">
|
|
|
</textarea></td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
<input type="hidden" runat="server" id="hid_BSNO" />
|
|
|
<input type="hidden" runat="server" id="hid_delevalue" />
|
|
|
<input type="hidden" runat="server" id="hidnewBsno" />
|
|
|
<input type="hidden" runat="server" id="hid_update" />
|
|
|
</div>
|
|
|
|
|
|
<div>
|
|
|
<div style=" height:20px; background-color:#ECF2FF; text-align:left; font-size:large; font-weight:bold;">集装箱信息</div>
|
|
|
<div id="divContainer" class="conDIV">
|
|
|
<div class="btn-blank"></div>
|
|
|
<div class="xbtn-img"><div class="btnimg"><asp:ImageButton ID="img_addnewcont" runat="server" ToolTip="添加新项"
|
|
|
ImageUrl="~/images/icons/btnAdd.gif" CssClass="cssfont" OnClientClick="newGuid();"
|
|
|
onclick="img_addnewcont_Click" /></div></div>
|
|
|
<div class="xbtn-img"><div class="btnimg"><asp:ImageButton ID="Img_deleContain" runat="server" ToolTip="多项删除"
|
|
|
ImageUrl="../images/icons/remove.gif" OnClientClick="return deleteMoreCtn();"
|
|
|
CssClass="cssfont" onclick="Img_deleContain_Click"/></div></div>
|
|
|
</div>
|
|
|
<div style=" overflow-y:scroll; height:300px;word-break: keep-all;white-space:nowrap;">
|
|
|
<asp:GridView runat="server" ID="gridviewContainer" AutoGenerateColumns="False"
|
|
|
onrowdatabound="gridviewContainer_RowDataBound"
|
|
|
onrowdeleting="gridviewContainer_RowDeleting"
|
|
|
onrowediting="gridviewContainer_RowEditing"
|
|
|
onrowupdating="gridviewContainer_RowUpdating"
|
|
|
onrowcommand="gridviewContainer_RowCommand">
|
|
|
<Columns>
|
|
|
<asp:TemplateField>
|
|
|
<HeaderTemplate>
|
|
|
<asp:CheckBox runat="server" ID="checkall" AutoPostBack="true"
|
|
|
oncheckedchanged="checkall_CheckedChanged" />
|
|
|
</HeaderTemplate>
|
|
|
<ItemTemplate>
|
|
|
<asp:CheckBox runat="server" ID="checkitems" CssClass="checkitem" name="items" />
|
|
|
</ItemTemplate>
|
|
|
</asp:TemplateField>
|
|
|
<asp:TemplateField HeaderText="箱型" ControlStyle-Width="60px">
|
|
|
<ItemTemplate>
|
|
|
<asp:Label runat="server" ID="lableCtn" Visible="false" Text='<%#Eval("CTN") %>'></asp:Label>
|
|
|
<asp:DropDownList runat="server" ID="dropctn" CssClass="drop_rep"></asp:DropDownList>
|
|
|
</ItemTemplate>
|
|
|
</asp:TemplateField>
|
|
|
<asp:TemplateField HeaderText="箱量" ControlStyle-Width="60px">
|
|
|
<ItemTemplate>
|
|
|
<asp:TextBox runat="server" ID="txt_ctnnum" CssClass="txt_repeter" Text='<%#Eval("CTNNUM") %>'></asp:TextBox>
|
|
|
</ItemTemplate>
|
|
|
</asp:TemplateField>
|
|
|
<asp:TemplateField HeaderText ="箱号" ControlStyle-Width="90px">
|
|
|
<ItemTemplate>
|
|
|
<asp:TextBox runat="server" ID="txt_cntrno" CssClass="txt_repeter" Text='<%#Eval("CNTRNO") %>'></asp:TextBox>
|
|
|
</ItemTemplate>
|
|
|
</asp:TemplateField>
|
|
|
<asp:TemplateField HeaderText="封号" ControlStyle-Width="70px">
|
|
|
<ItemTemplate>
|
|
|
<asp:TextBox runat="server" ID="txt_sealno" CssClass="txt_repeter" Text='<%#Eval("SEALNO") %>' ></asp:TextBox>
|
|
|
</ItemTemplate>
|
|
|
</asp:TemplateField>
|
|
|
<asp:TemplateField HeaderText="件数" Visible="false">
|
|
|
<ItemTemplate>
|
|
|
<asp:TextBox runat="server" ID="txt_pkgs" CssClass="txt_repeter" Text='<%#Eval("PKGS") %>'></asp:TextBox>
|
|
|
</ItemTemplate>
|
|
|
</asp:TemplateField>
|
|
|
<asp:TemplateField HeaderText="包装类型" Visible="false">
|
|
|
<ItemTemplate>
|
|
|
<asp:Label runat="server" ID="lableKindPKGS" Text='<%#Eval("KINDPKGS") %>' Visible="false"></asp:Label>
|
|
|
<asp:DropDownList runat="server" ID="dropkindpkgs" CssClass="drop_rep"></asp:DropDownList>
|
|
|
</ItemTemplate>
|
|
|
</asp:TemplateField>
|
|
|
<asp:TemplateField HeaderText="箱内货重" ControlStyle-Width="70px">
|
|
|
<ItemTemplate>
|
|
|
<asp:TextBox runat="server" ID="txt_kgs" CssClass="txt_repeter" Text='<%#Eval("KGS") %>'></asp:TextBox>
|
|
|
</ItemTemplate>
|
|
|
</asp:TemplateField>
|
|
|
<asp:TemplateField HeaderText="箱皮重" Visible="false">
|
|
|
<ItemTemplate>
|
|
|
<asp:TextBox runat="server" ID="txt_tareweight" CssClass="txt_repeter" Text='<%#Eval("TAREWEIGHT") %>'></asp:TextBox>
|
|
|
</ItemTemplate>
|
|
|
</asp:TemplateField>
|
|
|
<asp:TemplateField HeaderText="尺码" Visible="false">
|
|
|
<ItemTemplate>
|
|
|
<asp:TextBox runat="server" ID="txt_cbm" CssClass="txt_repeter" Text='<%#Eval("CBM") %>'></asp:TextBox>
|
|
|
</ItemTemplate>
|
|
|
</asp:TemplateField>
|
|
|
<asp:TemplateField HeaderText="品名">
|
|
|
<ItemTemplate>
|
|
|
<asp:Label runat="server" ID="labelGoodsName" Text='<%#Eval("GOODSNAME") %>' Visible="false"></asp:Label>
|
|
|
<asp:DropDownList runat="server" ID="drop_goodnames" Font-Size="11px" Width="110px"></asp:DropDownList>
|
|
|
</ItemTemplate>
|
|
|
</asp:TemplateField>
|
|
|
|
|
|
<asp:TemplateField HeaderText="备注">
|
|
|
<ItemTemplate>
|
|
|
<asp:TextBox runat="server" ID="txt_remark" CssClass="txt_repeter" Text='<%#Eval("REMARK") %>'></asp:TextBox>
|
|
|
</ItemTemplate>
|
|
|
</asp:TemplateField>
|
|
|
<asp:TemplateField HeaderText="装货状态">
|
|
|
<ItemTemplate>
|
|
|
<%# ShowChangeStatus(DataBinder.Eval(Container.DataItem, "NEWSTATUS"), DataBinder.Eval(Container.DataItem, "NEWISTATUS"))%>
|
|
|
</ItemTemplate>
|
|
|
</asp:TemplateField>
|
|
|
<asp:TemplateField HeaderText="送货状态">
|
|
|
<ItemTemplate>
|
|
|
<%#ChangeShow(DataBinder.Eval(Container.DataItem, "NEWSTATUS"), DataBinder.Eval(Container.DataItem, "NEWISTATUS"))%>
|
|
|
</ItemTemplate>
|
|
|
</asp:TemplateField>
|
|
|
<asp:TemplateField HeaderText="操作">
|
|
|
<ItemTemplate>
|
|
|
<asp:LinkButton ID="saveCont" runat="server" CommandArgument='<%#Eval("CTN_ID") %>' Text="保存" CommandName="saveCon"></asp:LinkButton>
|
|
|
<asp:LinkButton ID="deleteCont" runat="server" CommandArgument='<%#Eval("CTN_ID") %>' Text="删除" OnClientClick="return confirm('确定删除吗?');" CommandName="deleteCon"></asp:LinkButton>
|
|
|
</ItemTemplate>
|
|
|
</asp:TemplateField>
|
|
|
</Columns>
|
|
|
<RowStyle HorizontalAlign="Center" />
|
|
|
</asp:GridView>
|
|
|
<input type="hidden" id="hid_newctnid" runat="server" />
|
|
|
</div>
|
|
|
<div><webdiyer:aspnetpager id="AspNetPager1" runat="server" horizontalalign="left"
|
|
|
showcustominfosection="Left" width="100%" meta:resourceKey="AspNetPager1"
|
|
|
style="font-size:14px" PageIndexBoxStyle="width:18px;border-top:1px solid #A3B2CC;border-left:1px solid #A3B2CC;border-right:1px solid #A3B2CC;border-bottom:1px solid #A3B2CC;height:17px;"
|
|
|
CustomInfoHTML=" 当前页<font color='red'><b>%CurrentPageIndex%</b></font>共%PageCount%页,记录%StartRecordIndex%-%EndRecordIndex%"
|
|
|
ShowNavigationToolTip="True"
|
|
|
CustomInfoStylae="font-size:14px;padding-top:6px;width:300px;"
|
|
|
TextAfterPageIndexBox=" " SubmitButtonText=" 转"
|
|
|
SubmitButtonStyle="width:41px;height:21px;border: none;cursor:hand;background-image: url(/images/go.gif)"
|
|
|
CustomInfoTextAlign="left" ShowPageIndexBox="Always" AlwaysShow="True"
|
|
|
FirstPageText="【首页】" LastPageText="【尾页】" NextPageText="【下页】" PageSize="100"
|
|
|
PrevPageText="【前页】" onpagechanged="AspNetPager1_PageChanged">
|
|
|
</webdiyer:aspnetpager></div>
|
|
|
</div>
|
|
|
</form>
|
|
|
</body>
|
|
|
</html>
|