货运险投保合并

master
lilu 2 years ago
commit f20c7920af

@ -22,18 +22,16 @@
<div class="ibox-title" style="display:none;"> <div class="ibox-title" style="display:none;">
<h5><i></i>保单管理</h5> <h5><i></i>保单管理</h5>
</div> </div>
<div class="ibox-content" style="padding-top:0px;padding-bottom: 0px;"> <div class="ibox-content" style="padding-bottom: 0px;">
<form id="tabF" class="form-horizontal form-policylist" action="/MvcShipping/HuaiTaiInsurance/GetTable" method="get"> <form id="tabF" class="form-horizontal form-policylist" action="/MvcShipping/HuaiTaiInsurance/GetTable" method="get">
<div class="col-lg-5 col-md-5" style="float: left; margin-bottom: 20px"> <div class="col-lg-5 col-md-5" style="float: left; margin-bottom: 20px">
<a class="btn btn-query" id="add"><span class="glyphicon glyphicon-plus-sign"></span>新增</a> <a class="btn btn-query" id="add"><span class="glyphicon glyphicon-plus-sign"></span>新增</a>
<a class="btn btn-query" id="del"><span class="glyphicon glyphicon-minus-sign"></span>删除</a> <a class="btn btn-query" id="del"><span class="glyphicon glyphicon-remove-sign"></span>删除</a>
<a class="btn btn-query" id="send"><span class="glyphicon glyphicon-send"></span>发送</a> <a class="btn btn-query" id="send"><span class="glyphicon glyphicon-send"></span>发送</a>
<a class="btn btn-query" id="edit" style="display:none" ><span class="glyphicon glyphicon-refresh"></span>更新保单</a> <a class="btn btn-query" id="copy"><span class="glyphicon glyphicon-duplicate"></span>复制保单</a>
<a class="btn btn-query" id="edit" style="display:none" ><span class="glyphicon glyphicon-pencil"></span>更新保单</a>
</div> </div>
<a href="/Areas/MvcShipping/Contens/华泰未出险证明.doc" id="loadImTemp" title="下载未出险证明模板" style="color:#418ecc;margin-top:15px;margin-right:20px;float: right;"> <a href="/Areas/MvcShipping/Contens/华泰未出险证明.doc" id="loadImTemp" title="下载未出险证明模板" style="float: right"><span class="glyphicon glyphicon-save"></span></a>
<span class="glyphicon glyphicon-save"></span>
下载未出险证明模板
</a>
<div class="clearfix"></div> <div class="clearfix"></div>
<div class="form-group"> <div class="form-group">
<label class="control-label">流水号:</label> <label class="control-label">流水号:</label>
@ -67,7 +65,8 @@
<label class="control-label">-</label> <label class="control-label">-</label>
<input type="text" id="SubtimE" name="SubtimE" autocomplete="off" /> <input type="text" id="SubtimE" name="SubtimE" autocomplete="off" />
</div> </div>
<div class="form-group btn-summary"> <div class="clearfix"></div>
<div class="btn-summary">
<a class="btn btn-query" id="serch"><span class="glyphicon glyphicon-search"></span>查询</a> <a class="btn btn-query" id="serch"><span class="glyphicon glyphicon-search"></span>查询</a>
<a class="btn btn-reset" id="reset"><span class="glyphicon glyphicon-share-alt"></span>重置</a> <a class="btn btn-reset" id="reset"><span class="glyphicon glyphicon-share-alt"></span>重置</a>
</div> </div>
@ -124,6 +123,19 @@
</div> </div>
</div> </div>
</div> </div>
<!-- Modal 保单详情-->
<div class="modal fade" id="policycopy" tabindex="-1" role="dialog" aria-labelledby="modalCtrnLabel">
<div class="modal-dialog" role="document" style="width:1200px;">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" id="Suscopy" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="modalcopy">保单复制</h4>
</div>
<iframe id="detacopy" src="#" style="width: 100%; height: 1045px; border: none"></iframe>
</div>
</div>
</div>
<!-- Modal 保单更新--> <!-- Modal 保单更新-->
<div class="modal fade" id="editpdate" tabindex="-1" role="dialog" aria-labelledby="modalCtrnLabel"> <div class="modal fade" id="editpdate" tabindex="-1" role="dialog" aria-labelledby="modalCtrnLabel">
<div class="modal-dialog" role="document" style="width:1200px;"> <div class="modal-dialog" role="document" style="width:1200px;">
@ -350,7 +362,7 @@
autoclose: true, autoclose: true,
format: "yyyy-mm-dd" format: "yyyy-mm-dd"
}); });
debugger
var flagedit = <%=ViewData["isedit"].ToString() %>; var flagedit = <%=ViewData["isedit"].ToString() %>;
if (flagedit) { if (flagedit) {
$("#edit").show(); $("#edit").show();
@ -359,7 +371,7 @@
}); });
$("#edit").click(function () { $("#edit").click(function () {
debugger
var check = $("#thisTab").bootstrapTable('getSelections'); var check = $("#thisTab").bootstrapTable('getSelections');
if (check.length <= 0) { if (check.length <= 0) {
$('#editpdate').modal('hide') $('#editpdate').modal('hide')
@ -506,6 +518,27 @@
location.reload(); location.reload();
}) })
}); });
$("#copy").click(function () {
var check = $("#thisTab").bootstrapTable('getSelections');
if (check.length <= 0) {
$('#exampleModal').modal('show')
$("#exampleModal").find('.modal-body').text("请选择一条记录");
return;
}
if (check.length > 1) {
$('#exampleModal').modal('show')
$("#exampleModal").find('.modal-body').text("暂不支持批量复制!");
return;
}
var id = check[0].GID;
$("#detacopy").attr("src", "/MvcShipping/HuaiTaiInsurance/InsuranceOK?id=&InsID=" + id + "&copy=true");
$("#policycopy").modal("show");
});
$("#del").click(function () { $("#del").click(function () {
var check = $("#thisTab").bootstrapTable('getSelections'); var check = $("#thisTab").bootstrapTable('getSelections');
if (check.length <= 0) { if (check.length <= 0) {
@ -615,7 +648,7 @@
onDblClickRow: function (row) { onDblClickRow: function (row) {
var id = row.GID; var id = row.GID;
$("#deta").attr("src", "/MvcShipping/HuaiTaiInsurance/InsuranceOK?id=&InsID=" + id + ""); $("#deta").attr("src", "/MvcShipping/HuaiTaiInsurance/InsuranceOK?id=&InsID=" + id + "&copy=false");
$("#policyDetail").modal("show"); $("#policyDetail").modal("show");
}, },
columns: [ columns: [

@ -38,7 +38,7 @@
<div class="title">货物信息</div> <div class="title">货物信息</div>
<div class="form-group"> <div class="form-group">
<label class="control-label"><span style="color: red">*</span>提单号:</label> <label class="control-label"><span style="color: red">*</span>提单号:</label>
<input type="text" value="<%=ViewData["MBLNO"] %>" name="BillNumber" id="BillNumber" readonly> <input type="text" value="<%=ViewData["MBLNO"] %>" name="BillNumber" id="BillNumber" >
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="control-label"><span style="color: red">*</span>币种:</label> <label class="control-label"><span style="color: red">*</span>币种:</label>
@ -396,6 +396,15 @@
<script> <script>
var usd = ""; var usd = "";
$(function () { $(function () {
debugger
var copy = <%=Request.QueryString["copy"]%>;
if (copy) {
$("#InsID").val("");
} else {
$("#BillNumber").prop('readonly', true);
}
$("#AmtCurrency").change(); $("#AmtCurrency").change();
$("#SubtimS").datepicker({ $("#SubtimS").datepicker({
autoclose: true, autoclose: true,

Loading…
Cancel
Save