@@ -350,7 +362,7 @@
autoclose: true,
format: "yyyy-mm-dd"
});
- debugger
+
var flagedit = <%=ViewData["isedit"].ToString() %>;
if (flagedit) {
$("#edit").show();
@@ -359,7 +371,7 @@
});
$("#edit").click(function () {
- debugger
+
var check = $("#thisTab").bootstrapTable('getSelections');
if (check.length <= 0) {
$('#editpdate').modal('hide')
@@ -506,6 +518,27 @@
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 + "©=true");
+ $("#policycopy").modal("show");
+
+
+ });
+
$("#del").click(function () {
var check = $("#thisTab").bootstrapTable('getSelections');
if (check.length <= 0) {
@@ -615,7 +648,7 @@
onDblClickRow: function (row) {
var id = row.GID;
- $("#deta").attr("src", "/MvcShipping/HuaiTaiInsurance/InsuranceOK?id=&InsID=" + id + "");
+ $("#deta").attr("src", "/MvcShipping/HuaiTaiInsurance/InsuranceOK?id=&InsID=" + id + "©=false");
$("#policyDetail").modal("show");
},
columns: [
diff --git a/PingTai/DSWeb/Areas/MvcShipping/Views/HuaiTaiInsurance/InsuranceOK.aspx b/PingTai/DSWeb/Areas/MvcShipping/Views/HuaiTaiInsurance/InsuranceOK.aspx
index 24b3c24..54e0260 100644
--- a/PingTai/DSWeb/Areas/MvcShipping/Views/HuaiTaiInsurance/InsuranceOK.aspx
+++ b/PingTai/DSWeb/Areas/MvcShipping/Views/HuaiTaiInsurance/InsuranceOK.aspx
@@ -38,7 +38,7 @@
货物信息
- " name="BillNumber" id="BillNumber" readonly>
+ " name="BillNumber" id="BillNumber" >
@@ -396,6 +396,15 @@