<%@ Page Language="C#" masterpagefile="~/Main.master" AutoEventWireup="true" CodeFile="GwDm.aspx.cs" Inherits="_GwDm" %>
|
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
|
<script>
|
$(function () {
|
|
$("#pager").Pager({
|
pageSize: 20,
|
onChange: function (pageIndex, pageSize) {
|
loadPageList();
|
}
|
});
|
|
var time = '<%=string.Format("{0}",DateTime.Today.ToString("yyyy-MM-dd")) %>';
|
function loadPageList() {
|
var SelectedApID = $("#ApID").val();
|
var SelectedOpID = $("#OpID").val();
|
var SelectedSPID = $("#SPID").val();
|
var SelectedDestnationID = $("#DestnationID").val();
|
var SelectedDate = $("#sDate").val();
|
if (SelectedDate == null || SelectedDate == "") {
|
$("#sDate").val(time);
|
}
|
$.ajax({
|
url: "GwDm.ashx",
|
type: "POST",
|
data: { action: "loadGwDmPageList", SelectedApID: SelectedApID, SelectedOpID: SelectedOpID, SelectedSPID: SelectedSPID, SelectedDestnationID: SelectedDestnationID, SelectedDate: SelectedDate, pageSize: $("#pager").Pager("getPageSize"), pageIndex: $("#pager").Pager("getPageIndex") },
|
success: function (result) {
|
if (result.OK) {
|
$("#gwDmTable tbody").html(result.Message.Table);
|
$("#pager").Pager("setTotalCount", result.Message.TotalCount);
|
} else {
|
mytek.alert(result.Message, result.OK);
|
}
|
}
|
});
|
}
|
|
$(document).ready(function () {
|
|
$(document).on("click", ".action-query", function () {
|
loadPageList();
|
});
|
|
loadPageList();
|
});
|
|
})
|
</script>
|
</asp:Content>
|
<asp:Content runat="server" ContentPlaceHolderID="content" ID="Content3">
|
<form name="Form_ID" method="post" action="GwDm.ashx?action=loadGwDmPageList" id="Form_ID"
|
class="form-inline">
|
<div class="ibox">
|
<div class="form-group">
|
<div class="input-group m-b">
|
<span class="input-group-addon">接入点ID</span>
|
<input type="text" class="form-control" name="ApID" id="ApID" />
|
</div>
|
</div>
|
<div class="form-group">
|
<div class="input-group m-b">
|
<span class="input-group-addon">通道ID</span>
|
<input type="text" class="form-control" name="OpID" id="OpID" />
|
</div>
|
</div>
|
<div class="form-group">
|
<div class="input-group m-b">
|
<span class="input-group-addon">短信账号</span>
|
<input type="text" class="form-control" name="SPID" id="SPID" />
|
</div>
|
</div>
|
<div class="form-group">
|
<div class="input-group m-b">
|
<span class="input-group-addon">接收号码</span>
|
<input type="text" class="form-control" name="DestnationID" id="DestnationID" />
|
</div>
|
</div>
|
<div class="form-group">
|
<div class="input-group date m-b">
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
<input name="sDate" id="sDate" class="form-control col-md-1" value="<%=string.Format("{0}",DateTime.Today.ToString("yyyy-MM-dd")) %>"
|
type="text">
|
</div>
|
</div>
|
<div class="form-group">
|
<div class="input-group m-b">
|
<input type="button" value="查询" class="btn btn-primary action-query" />
|
</div>
|
</div>
|
</div>
|
</form>
|
<div class="table-responsive">
|
<table class="table table-striped table-bordered table-hover" id="gwDmTable">
|
<thead>
|
<tr class="header">
|
<th>
|
消息ID
|
</th>
|
<th>
|
客户账户
|
</th>
|
<th>
|
短信账号
|
</th>
|
<th>
|
接入点ID
|
</th>
|
<th>
|
通道ID
|
</th>
|
<th>
|
源发号码
|
</th>
|
<th>
|
接收号码
|
</th>
|
<th>
|
扩展号
|
</th>
|
<th>
|
发送标识
|
</th>
|
<th>
|
消息格式
|
</th>
|
<th>
|
消息长度
|
</th>
|
<th>
|
时间
|
</th>
|
</tr>
|
</thead>
|
<tbody>
|
</tbody>
|
</table>
|
</div>
|
<div id="pager">
|
</div>
|
</asp:Content>
|