|
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Web/Mld/Site1.Master" AutoEventWireup="true" CodeBehind="MainBLNOSettings.aspx.cs" Inherits="web.Web.Mld.MainBLNOSettings" %>
|
|
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
|
|
|
|
|
<style type="text/css">
|
|
|
.dataEdit {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.dataDel {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
.form-group {
|
|
|
padding-top:35px;
|
|
|
}
|
|
|
</style>
|
|
|
<script type="text/javascript">
|
|
|
$(function () {
|
|
|
$(".dataEdit").click(function () {
|
|
|
var id = $(this).parent().parent().children()[0].innerHTML;
|
|
|
var mblno = $(this).parent().parent().children()[1].innerHTML;
|
|
|
var hblno = $(this).parent().parent().children()[2].innerHTML;
|
|
|
var cgs = $(this).parent().parent().children()[3].innerHTML;
|
|
|
|
|
|
$('#txtID').val(id);
|
|
|
$('#txtMBLNO').val(mblno);
|
|
|
$('#txtHBLNO').val(hblno);
|
|
|
$('#txtCGS').val(cgs);
|
|
|
$('#editModal').modal({ backdrop: "static", show: true });
|
|
|
})
|
|
|
})
|
|
|
|
|
|
$(function () {
|
|
|
$("#btnSave").click(function () {
|
|
|
var id = $('#txtID').val();
|
|
|
var mblno = $('#txtMBLNO').val();
|
|
|
var hblno = $('#txtHBLNO').val();
|
|
|
var cgs = $('#txtCGS').val();
|
|
|
var formData = new FormData();
|
|
|
formData.append('action', 'save');
|
|
|
formData.append('id', id);
|
|
|
formData.append('mblno', mblno);
|
|
|
formData.append('hblno', hblno);
|
|
|
formData.append('cgs', cgs);
|
|
|
|
|
|
$.ajax({
|
|
|
url: 'MainBLNOSettings.aspx',
|
|
|
type: 'post',
|
|
|
data: formData,
|
|
|
async: true,
|
|
|
processData: false,
|
|
|
contentType: false,
|
|
|
success: function (data) {
|
|
|
alert(data);
|
|
|
$('#editModal').modal('hide');
|
|
|
location.reload();
|
|
|
},
|
|
|
error: function () {
|
|
|
alert("操作失败!");
|
|
|
}
|
|
|
})
|
|
|
|
|
|
})
|
|
|
|
|
|
$(".dataDel").click(function () {
|
|
|
var r = confirm("确定要删除?")
|
|
|
if (r == true) {
|
|
|
var id = $(this).parent().parent().children()[0].innerHTML;
|
|
|
var formData = new FormData();
|
|
|
formData.append('action', 'delete');
|
|
|
formData.append('id', id);
|
|
|
$.ajax({
|
|
|
url: 'MainBLNOSettings.aspx',
|
|
|
type: 'post',
|
|
|
data: formData,
|
|
|
async: true,
|
|
|
processData: false,
|
|
|
contentType: false,
|
|
|
success: function (data) {
|
|
|
alert(data);
|
|
|
location.reload();
|
|
|
},
|
|
|
error: function () {
|
|
|
alert("操作失败!");
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
else {
|
|
|
}
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
$("#btnAdd").click(function () {
|
|
|
$('#txtID').val("");
|
|
|
$('#txtMBLNO').val("");
|
|
|
$('#txtHBLNO').val("");
|
|
|
$('#txtCGS').val("");
|
|
|
$('#editModal').modal({ backdrop: "static", show: true });
|
|
|
})
|
|
|
})
|
|
|
|
|
|
</script>
|
|
|
</asp:Content>
|
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
|
|
<div class="container body">
|
|
|
<div class="main_container">
|
|
|
<div class="col-md-3 left_col">
|
|
|
<div class="left_col scroll-view">
|
|
|
<div class="navbar nav_title" style="border: 0;">
|
|
|
<a href="index.html" class="site_title"><i class="fa fa-paw"></i><span>o(* ̄︶ ̄*)o</span></a>
|
|
|
</div>
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
|
<!-- menu profile quick info -->
|
|
|
<div class="profile clearfix">
|
|
|
<div class="profile_pic">
|
|
|
<img src="images/img.jpg" alt="..." class="img-circle profile_img">
|
|
|
</div>
|
|
|
<div class="profile_info">
|
|
|
<span>Welcome,</span>
|
|
|
<h2>ADMIN</h2>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- /menu profile quick info -->
|
|
|
|
|
|
<br />
|
|
|
|
|
|
<!-- sidebar menu -->
|
|
|
<div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
|
|
|
<div class="menu_section">
|
|
|
<h3>General</h3>
|
|
|
<ul class="nav side-menu">
|
|
|
<li><a><i class="fa fa-home"></i>网站设置 <span class="fa fa-chevron-down"></span></a>
|
|
|
<ul class="nav child_menu">
|
|
|
<li><a href="MainHome.aspx">内容</a></li>
|
|
|
<li><a href="MainHomeOther.aspx">其他</a></li>
|
|
|
|
|
|
</ul>
|
|
|
</li>
|
|
|
<%--<li><a><i class="fa fa-edit"></i>提单管理 <span class="fa fa-chevron-down"></span></a>
|
|
|
<ul class="nav child_menu">
|
|
|
<li><a href="MainBLNOSettings.aspx">主单管理</a></li>
|
|
|
<li><a href="MainCtnSettings.aspx">分单管理</a></li>
|
|
|
</ul>
|
|
|
</li>--%>
|
|
|
<li><a><i class="fa fa-gear"></i>系统设置 <span class="fa fa-chevron-down"></span></a>
|
|
|
<ul class="nav child_menu">
|
|
|
<li><a href="SysSettings.aspx">基本信息设置</a></li>
|
|
|
</ul>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- top navigation -->
|
|
|
<div class="top_nav">
|
|
|
<div class="nav_menu">
|
|
|
<nav>
|
|
|
<div class="nav toggle">
|
|
|
<a id="menu_toggle"><i class="fa fa-bars"></i></a>
|
|
|
</div>
|
|
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
|
|
<li class="">
|
|
|
<a href="Login.aspx" class="user-profile " aria-expanded="false">
|
|
|
<i class="glyphicon glyphicon-off"></i>
|
|
|
</a>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</nav>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- /top navigation -->
|
|
|
<!-- page content -->
|
|
|
<div class="right_col" role="main">
|
|
|
<div class="row">
|
|
|
<div class="col-md-12 col-sm-12 col-xs-12">
|
|
|
<div class="x_panel">
|
|
|
<div class="x_title">
|
|
|
<h2>主单管理</h2>
|
|
|
<ul class="nav navbar-right panel_toolbox">
|
|
|
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
<div class="clearfix"></div>
|
|
|
</div>
|
|
|
<div class="x_content">
|
|
|
<p class="text-muted font-13 m-b-30">
|
|
|
<button id="btnAdd" type="button" class="btn btn-default btn-sm">
|
|
|
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span> 添加
|
|
|
</button>
|
|
|
|
|
|
</p>
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
|
<table id="datatable-checkbox" class="table table-striped table-bordered bulk_action">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>ID</th>
|
|
|
<th>主提单号</th>
|
|
|
<th>分单号</th>
|
|
|
<th>船公司</th>
|
|
|
<th>更新日期</th>
|
|
|
<th>创建日期</th>
|
|
|
<th>操作</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
<%=_TableHTML %>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
<!-- 模态框(Modal) -->
|
|
|
<div class="modal fade row" id="editModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
|
|
|
|
<div class="modal-dialog">
|
|
|
<div class="modal-content">
|
|
|
<div class="modal-header">
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
<h4 class="modal-title" id="myModalLabel">修改</h4>
|
|
|
</div>
|
|
|
<div class="modal-body">
|
|
|
<div class="form-group">
|
|
|
<label class="" for="first-name">
|
|
|
ID
|
|
|
</label>
|
|
|
<div class="">
|
|
|
<input disabled type="text" id="txtID" required="required" class="form-control col-md-7 col-xs-12" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="" for="first-name">
|
|
|
主提单号
|
|
|
</label>
|
|
|
<div class="">
|
|
|
<input type="text" id="txtMBLNO" required="required" class="form-control col-md-7 col-xs-12" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="control-label " for="first-name">
|
|
|
分单号 <code>分单号之间请用英文逗号","隔开</code>
|
|
|
</label>
|
|
|
<div class="">
|
|
|
<input type="text" id="txtHBLNO" required="required" class="form-control col-md-7 col-xs-12" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="control-label " for="first-name">
|
|
|
船公司
|
|
|
</label>
|
|
|
<div class="">
|
|
|
<input type="text" id="txtCGS" required="required" class="form-control col-md-7 col-xs-12" />
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
<div class="modal-footer" style="margin-top:25px">
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
|
|
|
<button type="button" class="btn btn-primary" id="btnSave">保存</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- /.modal-content -->
|
|
|
</div>
|
|
|
|
|
|
<!-- /.modal -->
|
|
|
</div>
|
|
|
</asp:Content>
|