From 08be5b93b8b78c83b16b0050134935e3b9f992dd Mon Sep 17 00:00:00 2001
From: wangsheng <123456>
Date: 星期三, 15 九月 2021 11:57:57 +0800
Subject: [PATCH] 下发/重发记录,增加字段,显示发送->接收所用的秒数(时间)

---
 web/web/GwSm.ashx |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/web/web/GwSm.ashx b/web/web/GwSm.ashx
index 832050d..e2c8e76 100644
--- a/web/web/GwSm.ashx
+++ b/web/web/GwSm.ashx
@@ -93,6 +93,7 @@
                 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>";
@@ -101,7 +102,7 @@
                 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>";
             }
@@ -157,15 +158,17 @@
         int pageSize = context.GetInt("pageSize", 20);
         int pageIndex = context.GetInt("pageIndex", 1);
 
-        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, 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++;
@@ -188,6 +191,7 @@
                     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>";
@@ -196,10 +200,13 @@
                     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

--
Gitblit v1.9.1