<%@ Page Language="C#" masterpagefile="~/Main.master" AutoEventWireup="true" CodeFile="GwAuditCache.aspx.cs" Inherits="GwAuditCache" %>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="content" runat="Server">
|
<form name="cacheForm" method="post" action="gwAuditCache.ashx?action=load" id="cacheForm"
|
class="form-inline">
|
<div class="form-group">
|
<div class="input-group m-b">
|
<span class="input-group-addon">账号</span>
|
<input type="text" name="spids" id="spids" value="<%=SelectedSpIDs%>" class="form-control" />
|
</div>
|
</div>
|
<div class="form-group">
|
<div class="input-group m-b">
|
<span class="input-group-addon">短信内容</span>
|
<input type="text" name="content" id="content" value="<%=Content%>" class="form-control " />
|
</div>
|
</div>
|
<div class="form-group">
|
<div class="input-group m-b">
|
<span class="input-group-addon">通道名称</span>
|
<input type="text" name="content" id="opname" value="<%=Content%>" class="form-control " />
|
</div>
|
</div>
|
<div class="form-group">
|
<div class="input-group m-b ">
|
<div class="input-daterange input-group" id="datepicker">
|
<span class="input-group-addon">时间范围 <i class="fa fa-calendar"></i></span>
|
<input type="text" class="input-sm form-control" name="startTime" id="startTime"
|
value="<%=StartTime.ToString("yyyy-MM-dd") %>" />
|
<span class="input-group-addon">到</span> <span class="input-group-addon"><i class="fa fa-calendar">
|
</i></span>
|
<input type="text" class="input-sm form-control" name="endTime" id="endTime" value="<%=EndTime.ToString("yyyy-MM-dd") %>" />
|
</div>
|
</div>
|
</div>
|
<div class="form-group">
|
<div class="input-group m-b">
|
<input type="radio" class="icheck-me" name="auditingStatus" <%=(AuditingStatus==0 ? "checked":"")%>
|
value="0" /><label>待审核信息</label>
|
<input class="icheck-me" type="radio" <%=(AuditingStatus==10 ? "checked":"")%> name="auditingStatus"
|
value="10" /><label>待二次鉴定信息</label> <input type="button" value="刷新" class="btn btn-primary action-go" />
|
</div>
|
</div>
|
<div class="form-group">
|
<div class="input-group m-b"> 
|
<input class="btn btn-success action-modal-approve" data-status="4" value="批量通过(可修改通道)"
|
type="button" /> 
|
<input class="btn btn-danger action-audit-all" data-status="4" value="直接批量通过"
|
type="button" /> 
|
<input class="btn btn-warning action-audit-all" data-status="5" value="直接批量拒绝"
|
type="button" />
|
</div>
|
</div>
|
</form>
|
<table class="table table-striped table-bordered table-hover" id="cacheTable">
|
<thead>
|
<tr class="header">
|
<th style="width: 20px">
|
<input type="checkbox" name='checkAll' id="checkAll" />
|
</th>
|
<th style="width: 50px">
|
账号
|
</th>
|
<th>
|
通道
|
</th>
|
<th>
|
内容
|
</th>
|
<th>
|
关键字
|
</th>
|
<th>
|
条数
|
</th>
|
<th style="width: 200px">
|
操作
|
</th>
|
</tr>
|
</thead>
|
<tbody>
|
</tbody>
|
</table>
|
<div id="pager"></div>
|
<div class="modal inmodal " id="opDialog" tabindex="-1" role="dialog" aria-hidden="true">
|
<div class="modal-dialog modal-sm">
|
<div class="modal-content">
|
<div class="modal-header">
|
<span class="title">选择通道</span><a class="close" data-dismiss="modal" aria-hidden="true">×</a></div>
|
<div class="modal-body">
|
<select class="form-control" name="opid" id="opid">
|
<%=RenderOpOptions()%>
|
</select>
|
</div>
|
<div class="modal-footer">
|
<button class="btn-warning btn" data-dismiss="modal" aria-hidden="true">
|
取消</button>
|
<button class="btn-primary btn action-approve-all">
|
确定</button>
|
</div>
|
</div>
|
</div>
|
</div>
|
|
|
<div class="modal inmodal " id="detailDialog" tabindex="-1" role="dialog" aria-hidden="true">
|
<div class="modal-dialog modal-lg">
|
<div class="modal-content">
|
<div class="modal-header">
|
<span class="title">详情</span><a class="close" data-dismiss="modal" aria-hidden="true">×</a></div>
|
<div class="modal-body">
|
|
</div>
|
<div class="modal-footer">
|
<button class="btn-warning btn" data-dismiss="modal" aria-hidden="true">
|
关闭</button>
|
</div>
|
</div>
|
</div>
|
</div>
|
|
<script type="text/javascript" language="javascript">
|
$(document).ready(function () {
|
$("#checkAll").click(function () {
|
$("input[name='hashCode']").prop("checked", $(this).is(":checked"));
|
});
|
|
$("#pager").Pager({
|
pageSize: 100,
|
onChange: function (pageIndex, pageSize) {
|
load();
|
}
|
});
|
|
function load() {
|
$.post("gwauditcache.ashx", {
|
action: "load",
|
startTime: $("#startTime").val(),
|
endTime: $("#endTime").val(),
|
auditingStatus: $("input:radio[name='auditingStatus']:checked").val(),
|
content: $("#content").val(),
|
spids: $("#spids").val(),
|
pageSize: $("#pager").Pager("getPageSize"),
|
pageIndex: $("#pager").Pager("getPageIndex"),
|
opname: $("#opname").val()
|
}, function (r) {
|
if (r.OK) {
|
$("#cacheTable tbody").html(r.Message.Table);
|
$("#pager").Pager("setTotalCount", r.Message.TotalCount);
|
}
|
else {
|
mytek.alert(r.Message, r.OK);
|
}
|
}, "json");
|
}
|
|
$(".input-daterange").datepicker({ keyboardNavigation: !1, forceParse: !1, autoclose: !0 });
|
|
$(".action-go").on("click", function () {
|
load();
|
});
|
|
$(document).on("click", ".action-audit", function () {
|
var me = $(this);
|
var id = me.data("id");
|
var status = me.data("status");
|
|
$.post("gwauditcache.ashx", { action: "saveAudit", hashCode: id, status: status },
|
function (result) {
|
mytek.alert(result.Message, result.OK, function () {
|
load();
|
});
|
}, "json");
|
});
|
|
$(document).on("click", ".action-load-detail", function () {
|
var me = $(this);
|
var id = me.data("id");
|
|
$.post("gwauditcache.ashx", { action: "loadDetail", hashCode: id, startTime: $("#startTime").val(), endTime: $("#endTime").val() },
|
function (result) {
|
if (!result.OK) {
|
mytek.alert(result.Message);
|
} else {
|
var html = [];
|
html.push("<table class='table table-striped table-bordered table-hover'>");
|
html.push("<tr><th>手机</th><th>SPID</th><th>OPID</th><th>内容</th><th>时间</th></tr>");
|
$.each(result.Message, function () {
|
html.push("<tr>");
|
html.push("<td>" + this.MOBILE + "</td>");
|
html.push("<td>" + this.SP_ID + "</td>");
|
html.push("<td>" + this.OP_ID + "</td>");
|
html.push("<td>" + this.MSG_CONTENT + "</td>");
|
html.push("<td>" + this.AP_SUBMIT_TIME + "</td>");
|
html.push("</tr>");
|
});
|
html.push("</table>");
|
$("#detailDialog .modal-body").html(html.join(""));
|
$("#detailDialog").modal("show");
|
}
|
}, "json");
|
});
|
|
|
$(".action-approve-all").on("click", function () {
|
var me = $(this);
|
var hashCodes = [];
|
$("input[name=hashCode]").each(function () {
|
if ($(this).is(":checked")) {
|
hashCodes.push($(this).val());
|
}
|
});
|
|
if (hashCodes.length == 0) {
|
mytek.alert("尚未选择要审核的短信");
|
return;
|
}
|
|
var opid = $("#opDialog #opid").val();
|
|
$.post("gwauditcache.ashx", { action: "approveAll", hashCodes: $.toJSON(hashCodes), status: 4, opid: opid },
|
function (result) {
|
$("#opDialog").modal("hide");
|
mytek.alert(result.Message, result.OK, function () {
|
load();
|
});
|
}, "json");
|
});
|
|
$(".action-audit-all").on("click", function () {
|
var me = $(this);
|
var hashCodes = [];
|
|
$("input[name=hashCode]").each(function () {
|
if ($(this).is(":checked")) {
|
hashCodes.push($(this).val());
|
}
|
});
|
|
if (hashCodes.length == 0) {
|
mytek.alert("尚未选择要审核的短信");
|
return;
|
}
|
|
$.post("gwauditcache.ashx", { action: "auditAll", hashCodes: $.toJSON(hashCodes), status: me.data("status") },
|
function (result) {
|
mytek.alert(result.Message, result.OK, function () {
|
load();
|
});
|
}, "json");
|
});
|
|
$(".action-modal-approve").on("click", function () {
|
var hashCodes = [];
|
|
$("input[name=hashCode]").each(function () {
|
if ($(this).is(":checked")) {
|
hashCodes.push($(this).val());
|
}
|
});
|
|
if (hashCodes.length == 0) {
|
mytek.alert("尚未选择要审核的短信");
|
return;
|
}
|
|
$("#opDialog").modal("show");
|
});
|
});
|
</script>
|
</asp:Content>
|