| | |
| | | |
| | | public class GwSm : PageHandler<SysUser> |
| | | { |
| | | private int _userId = -1; |
| | | private string _userType = ""; |
| | | private string _account = ""; |
| | | |
| | | public override JsonPageResult ProcessRequestInternal(PageContext<Model.SysUser> context) |
| | | { |
| | | string action = context.GetString("action"); |
| | | _userId = context.SessionObject.UserID; |
| | | _userType = context.SessionObject.UserType; |
| | | _account = context.SessionObject.Account; |
| | | |
| | | switch (action) |
| | | { |
| | |
| | | int recordCount = 0; |
| | | int pageSize = context.GetInt("pageSize", 20); |
| | | int pageIndex = context.GetInt("pageIndex", 1); |
| | | |
| | | //根据系统用户获取有权限客户账号 |
| | | string permissionsSQL = new GwClientDao().GetSpPermissions(_userId, _userType, "sm"); |
| | | |
| | | List<Model.GwSm> list = dao.LoadInfoList(selectedApMID, selectedOpName, selectedClientID, selectedSpID, selectedDestnationID, selectedDate, selectedBeginTime, selectedEndTime, selectedContent, selectedOpStat, TStatus, out recordCount, pageSize, pageIndex); |
| | | List<Model.GwSm> list = dao.LoadInfoList(selectedApMID, selectedOpName, selectedClientID, selectedSpID, selectedDestnationID, selectedDate, selectedBeginTime, selectedEndTime, selectedContent, selectedOpStat, TStatus, permissionsSQL, out recordCount, pageSize, pageIndex ); |
| | | |
| | | string str = ""; |
| | | |
| | |
| | | if (item.ResendStatus == 1 && item.ResendFlag == 1) { resendStatusText = "<span class='text-danger'>失败短信已补发</span>"; } |
| | | if (item.ResendStatus == 1 && item.ResendFlag == 0) { resendStatusText = "<span class='text-success'>补发记录</span>"; } |
| | | str += "<td>" + resendStatusText + "</td>"; |
| | | if (item.OpDeliverTime.ToString() == "0001/1/1 0:00:00" || item.OpDeliverTime == null) |
| | | { |
| | | str += "<td>" + "无法计算" + "</td>"; |
| | | } |
| | | else |
| | | { |
| | | str += "<td>" + (item.OpDeliverTime - item.SubmitTime).TotalSeconds + "</td>"; |
| | | } |
| | | |
| | | str += "<td>" + item.APFeeCount + "/" + item.OPFeeCount + "</td>"; |
| | | str += "<td>" + item.APResult + "/" + item.OPResult + "</td>"; |
| | | str += @"<td class=""text-right"">" + (item.SubmitTime == DateTime.MinValue ? string.Empty : item.SubmitTime.ToString("yy-MM-dd HH:mm:ss")) + "</td>"; |
| | |
| | | str += @"<tr>"; |
| | | str += @"<td>" + item.OPMID + "</td>"; |
| | | str += @"<td><span class=""label " + css + @""">" + errorMsg + "</span></td>"; |
| | | str += @"<td colspan=""8"" class=""text-right"">" + item.MsgContent + "</td>"; |
| | | str += @"<td colspan=""9"" class=""text-right"">" + item.MsgContent + "</td>"; |
| | | str += @"<td class=""text-right text-info"">" + (item.OpDeliverTime == DateTime.MinValue ? string.Empty : item.OpDeliverTime.ToString("yy-MM-dd HH:mm:ss")) + "</td>"; |
| | | str += "</tr>"; |
| | | } |
| | |
| | | int recordCount = 0; |
| | | int pageSize = context.GetInt("pageSize", 20); |
| | | int pageIndex = context.GetInt("pageIndex", 1); |
| | | |
| | | string permissionsSQL = new GwClientDao().GetSpPermissions(_userId, _userType, "sm"); |
| | | |
| | | List<Model.GwSm> list = dao.LoadInfoList(selectedApMID, selectedOpName, selectedClientID, selectedSpID, selectedDestnationID, selectedDate, selectedBeginTime, selectedEndTime, selectedContent, selectedOpStat, TStatus, out recordCount, pageSize, pageIndex,"ReSend"); |
| | | List<Model.GwSm> list = dao.LoadInfoList(selectedApMID, selectedOpName, selectedClientID, selectedSpID, selectedDestnationID, selectedDate, selectedBeginTime, selectedEndTime, selectedContent, selectedOpStat, TStatus, permissionsSQL, out recordCount, pageSize, pageIndex, "ReSend"); |
| | | |
| | | string str = ""; |
| | | |
| | | if (list != null && list.Count > 0) |
| | | { |
| | | int i = 0; |
| | | int j = 0; |
| | | foreach (Model.GwSm item in list) |
| | | { |
| | | |
| | | if (item.ResendStatus == 1 && item.ResendFlag == 0) |
| | | { |
| | | i++; |
| | |
| | | if (item.ResendStatus == 1 && item.ResendFlag == 1) { resendStatusText = "<span class='text-danger'>失败短信已补发</span>"; } |
| | | if (item.ResendStatus == 1 && item.ResendFlag == 0) { resendStatusText = "<span class='text-success'>补发记录</span>"; } |
| | | str += "<td>" + resendStatusText + "</td>"; |
| | | str += "<td>" + (item.OpDeliverTime - item.SubmitTime).TotalSeconds + "</td>"; |
| | | str += "<td>" + item.APFeeCount + "/" + item.OPFeeCount + "</td>"; |
| | | str += "<td>" + item.APResult + "/" + item.OPResult + "</td>"; |
| | | str += @"<td class=""text-right"">" + (item.SubmitTime == DateTime.MinValue ? string.Empty : item.SubmitTime.ToString("yy-MM-dd HH:mm:ss")) + "</td>"; |
| | |
| | | str += @"<tr>"; |
| | | str += @"<td>" + item.OPMID + "</td>"; |
| | | str += @"<td><span class=""label " + css + @""">" + errorMsg + "</span></td>"; |
| | | str += @"<td colspan=""8"" class=""text-right"">" + item.MsgContent + "</td>"; |
| | | str += @"<td colspan=""9"" class=""text-right"">" + item.MsgContent + "</td>"; |
| | | str += @"<td class=""text-right text-info"">" + (item.OpDeliverTime == DateTime.MinValue ? string.Empty : item.OpDeliverTime.ToString("yy-MM-dd HH:mm:ss")) + "</td>"; |
| | | str += "</tr>"; |
| | | } |
| | | }//补发状态显示 |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | else |