From a6a84e6f677447342e8c5984fdc0b52241b92ce3 Mon Sep 17 00:00:00 2001
From: yzh <snbbt@21cn.com>
Date: 星期四, 30 六月 2022 01:20:34 +0800
Subject: [PATCH] 客户管理分配个性产品优化、返回URL优化
---
web/web/Welcome.aspx | 256 +++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 247 insertions(+), 9 deletions(-)
diff --git a/web/web/Welcome.aspx b/web/web/Welcome.aspx
index deabbf1..484ddde 100644
--- a/web/web/Welcome.aspx
+++ b/web/web/Welcome.aspx
@@ -1,6 +1,27 @@
锘�<%@ Page Language="C#" masterpagefile="~/Main.master" AutoEventWireup="true" CodeFile="Welcome.aspx.cs" Inherits="Welcome" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
- <script>
+ <script type="text/javascript" src="js/contabs.min.js"></script>
+
+ <style type="text/css">
+ .dotRed {
+ //position: absolute;
+ width: 15px;
+ height: 15px;
+ border-radius: 100%;
+ background: #FF0000;
+ //box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .2);
+ }
+
+ .dotGreen {
+ //position: absolute;
+ width: 15px;
+ height: 15px;
+ border-radius: 100%;
+ background: #00FF00;
+ //box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .2);
+ }
+ </style>
+ <script type="text/javascript">
$(function () {
function getClass(b) {
return b ? "label m-b label-warning" : "label m-b label-primary";
@@ -11,8 +32,99 @@
setTimeout(refreshStatis, 50000);
}
else {
+
$.post("gwstatisv3.ashx", { action: "getRealtimeStatis5m" }, function (r) {
+
if (r.OK) {
+ //娲诲姩瀹㈡埛鍓峏涓細瀹㈡埛-鍙戦�侀噺銆愬綋鏃ャ��
+ var activeClientDayhtml = [];
+
+ $.each(r.Message.ActiveClientDayList, function (i) {
+ activeClientDayhtml.push("<tr>");
+ activeClientDayhtml.push("<td>" + this.clientId + "</td>");
+ activeClientDayhtml.push("<td>" + this.company + "</td>");
+ activeClientDayhtml.push("<td><span class='" + getClass(false) + "'>" + this.ap_status0 + "</span></td>");
+ activeClientDayhtml.push("</tr>");
+ });
+
+ $("#activeClientDayTable tbody").html(activeClientDayhtml.join("\n"));
+
+ //閫氶亾-鍙戦�侀噺銆愬綋鏃ャ��
+ var opSendDayhtml = [];
+
+ $.each(r.Message.OpSendDayList, function (i) {
+ opSendDayhtml.push("<tr>");
+ opSendDayhtml.push("<td>" + this.opId + "</td>");
+ opSendDayhtml.push("<td>" + this.opName + "</td>");
+ opSendDayhtml.push("<td><span class='" + getClass(false) + "'>" + this.op_status0 + "</span></td>");
+ opSendDayhtml.push("</tr>");
+ });
+
+ $("#opSendDayTable tbody").html(opSendDayhtml.join("\n"));
+
+ //浜у搧-鍙戦�侀噺銆愬綋鏃ャ��
+ var productSendDayhtml = [];
+
+ $.each(r.Message.ProductSendDayList, function (i) {
+ productSendDayhtml.push("<tr>");
+ productSendDayhtml.push("<td>" + this.productName + "</td>");
+ productSendDayhtml.push("<td><span class='" + getClass(false) + "'>" + this.ap_status0 + "</span></td>");
+ productSendDayhtml.push("</tr>");
+ });
+
+ $("#productSendDayTable tbody").html(productSendDayhtml.join("\n"));
+
+ //璁㈠崟
+ var orderhtml = [];
+ $.each(r.Message.OrderDayList, function (i) {
+ orderhtml.push("<tr>");
+ orderhtml.push("<td>浠婃棩宸插畬鎴� <a href='javascript:;' onclick='doTabOpen(\"MenuId_GwOrderComplete\")' data-id='{0}' class='btn btn-success btn-xs'><u>" + this.orderNum + " </u></a>涓鍗曪紝鎬婚噾棰濓細<span class='" + getClass(false) + "'>" + this.orderAmountTotal/1000 + "</span> 鍏�</td>");
+ orderhtml.push("</tr>");
+ });
+
+ $.each(r.Message.OrderAuditList, function (i) {
+ orderhtml.push("<tr>");
+ orderhtml.push("<td>寰呭鎵� <a href='javascript:;' onclick='doTabOpen(\"MenuId_GwOrderAudit\")' data-id='{0}' class='btn btn-success btn-xs'><u>" + this.orderNum + " </u></a>涓鍗曪紝鎬婚噾棰濓細<span class='" + getClass(false) + "'>" + this.orderAmountTotal / 1000 + "</span> 鍏�</td>");
+ orderhtml.push("</tr>");
+ });
+ $("#orderTable tbody").html(orderhtml.join("\n"));
+
+ //寰呭鏍稿彂閫�
+ var sendAudithtml = [];
+ $.each(r.Message.SendAuditList, function (i) {
+ sendAudithtml.push("<tr>");
+ sendAudithtml.push("<td>寰呭鏍哥煭淇� <a href='javascript:;' onclick='doTabOpen(\"MenuId_GwAuditCache\")' data-id='{0}' class='btn btn-success btn-xs'>" + this.count + " </a>鏉★紝璇风珛鍗冲鐞�</td>");
+ sendAudithtml.push("</tr>");
+ });
+
+ $.each(r.Message.SendAuditTowList, function (i) {
+ sendAudithtml.push("<tr>");
+ //sendAudithtml.push("<td>寰呬簩娆¢壌瀹氱煭淇� <a href='GwAuditCache.aspx?StatusFlag=0&AuditingStatus=10' onclick='doTabOpen(\"MenuId_GwAuditCache\")' data-id='{0}' class='btn btn-success btn-xs'>" + this.count + " </a>鏉★紝璇风珛鍗冲鐞�</td>");
+ sendAudithtml.push("<td>寰呬簩娆¢壌瀹氱煭淇� <a href='javascript:;' onclick='doTabOpen(\"MenuId_GwAuditCache\")' data-id='{0}' class='btn btn-success btn-xs'>" + this.count + " </a>鏉★紝璇风珛鍗冲鐞�</td>");
+ sendAudithtml.push("</tr>");
+ });
+
+ $.each(r.Message.SpPrePatternAuditList, function (i) {
+ sendAudithtml.push("<tr>");
+ sendAudithtml.push("<td>璐﹀彿鎶ュ鍐呭寰呭鏍� <a href='javascript:;' onclick='doTabOpen(\"MenuId_GwSpPrePattern\")' data-id='{0}' class='btn btn-success btn-xs'>" + this.count + " </a>鏉★紝璇风珛鍗冲鐞�</td>");
+ sendAudithtml.push("</tr>");
+ });
+ $("#sendAuditTable tbody").html(sendAudithtml.join("\n"));
+
+ //閫氶亾鐘舵��
+ var opStatushtml = [];
+ $.each(r.Message.OpStatusList, function (i) {
+ opStatushtml.push("<tr>");
+ opStatushtml.push("<td>" + this.opId + "</td>");
+ opStatushtml.push("<td>" + this.opName + "</td>");
+ opStatushtml.push("<td>" + this.content + "</td>");
+ //opStatushtml.push("<td><span class='" + getClass(false) + "'>" + this.handleFlag + "</span></td>");
+ opStatushtml.push("<td>" + ((this.handleFlag == 1) ? "<div class='dotGreen'>" : "<div class='dotRed'>") + "</div></td>");
+ opStatushtml.push("</tr>");
+ });
+ $("#opStatusTable tbody").html(opStatushtml.join("\n"));
+
+ /**
var ophtml = [];
$.each(r.Message.OpList, function (i) {
@@ -46,6 +158,7 @@
aphtml.push("</tr>");
});
$("#apTable tbody").html(aphtml.join("\n"));
+ **/
setTimeout(refreshStatis, 3000);
}
@@ -55,13 +168,137 @@
refreshStatis();
});
+
+ //閾炬帴TABS鏂瑰紡鎵撳紑
+ function doTabOpen(menuId) {
+ //parent.$('#' + menuId).attr("href", "GwAuditCache.aspx?StatusFlag=0&AuditingStatus=10");
+ //parent.$('#' + menuId).attr("data-id", "GwAuditCache.aspx?StatusFlag=0&AuditingStatus=10");
+ //window.parent.document.getElementById(menuId).click(); //js鏂瑰紡
+ //console.log(parent.$('#' + menuId).attr("data-id"));
+ parent.$('#' + menuId).click(); //jquery鏂瑰紡
+ }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server">
<div class="ibox">
+
<div class="ibox-title">
- <h3>
- 鎺ュ叆鐐圭姸鎬�</h3>
+ <h3>娲诲姩瀹㈡埛锛氬鎴�-鍙戦�侀噺銆愬綋鏃ャ��</h3>
+ </div>
+ <div class="ibox-content">
+ <table class="table table-striped table-bordered table-hover" id="activeClientDayTable">
+ <thead>
+ <tr>
+ <td>
+ 瀹㈡埛璐﹀彿
+ </td>
+ <td>
+ 瀹㈡埛鍏徃
+ </td>
+ <td>
+ 鍙戦�佹�婚噺
+ </td>
+ </tr>
+ </thead>
+ <tbody>
+ </tbody>
+ </table>
+ </div>
+ <div id="activeClientDayPagination">
+ </div>
+
+ <div class="ibox-title">
+ <h3>閫氶亾-鍙戦�侀噺銆愬綋鏃ャ��</h3>
+ </div>
+ <div class="ibox-content">
+ <table class="table table-striped table-bordered table-hover" id="opSendDayTable">
+ <thead>
+ <tr>
+ <td>
+ 閫氶亾缂栧彿
+ </td>
+ <td>
+ 閫氶亾鍚嶇О
+ </td>
+ <td>
+ 鍙戦�佹�婚噺
+ </td>
+ </tr>
+ </thead>
+ <tbody>
+ </tbody>
+ </table>
+ </div>
+
+ <div class="ibox-title">
+ <h3>浜у搧-鍙戦�侀噺銆愬綋鏃ャ��</h3>
+ </div>
+ <div class="ibox-content">
+ <table class="table table-striped table-bordered table-hover" id="productSendDayTable">
+ <thead>
+ <tr>
+ <td>
+ 浜у搧
+ </td>
+ <td>
+ 鍙戦�佹�婚噺
+ </td>
+ </tr>
+ </thead>
+ <tbody>
+ </tbody>
+ </table>
+ </div>
+
+ <div class="ibox-title">
+ <h3>璁㈠崟</h3>
+ </div>
+ <div class="ibox-content">
+ <table class="table table-striped table-bordered table-hover" id="orderTable">
+ <tbody>
+ </tbody>
+ </table>
+ </div>
+
+ <div class="ibox-title">
+ <h3>寰呭鏍稿彂閫�</h3>
+ </div>
+ <div class="ibox-content">
+ <table class="table table-striped table-bordered table-hover" id="sendAuditTable">
+ <tbody>
+ </tbody>
+ </table>
+ </div>
+
+ <div class="ibox-title">
+ <h3>閫氶亾鐘舵��</h3>
+ </div>
+ <div class="ibox-content">
+ <table class="table table-striped table-bordered table-hover" id="opStatusTable">
+ <thead>
+ <tr>
+ <td>
+ 閫氶亾缂栧彿
+ </td>
+ <td>
+ 閫氶亾鍚嶇О
+ </td>
+ <td>
+ 鐘舵�佹弿杩�
+ </td>
+ <td>
+ 鐘舵��
+ </td>
+ </tr>
+ </thead>
+ <tbody>
+ </tbody>
+ </table>
+ </div>
+
+ <!--
+ <div class="ibox-title">
+ <h3>鎺ュ叆鐐圭姸鎬�</h3>
</div>
<div class="ibox-content">
<table class="table table-striped table-bordered table-hover" id="apTable">
@@ -91,9 +328,9 @@
</tbody>
</table>
</div>
+
<div class="ibox-title">
- <h3>
- 閫氶亾鐘舵��</h3>
+ <h3>閫氶亾鐘舵��</h3>
</div>
<div class="ibox-content">
<table class="table table-striped table-bordered table-hover" id="opTable">
@@ -130,14 +367,15 @@
</table>
</div>
- <div class="ibox-title">
- <h3>
- 鏁版嵁搴撹〃绌洪棿</h3>
+ <div class="ibox-title">
+ <h3>鏁版嵁搴撹〃绌洪棿</h3>
</div>
<div class="ibox-content">
<table class="table table-striped table-bordered table-hover">
- <%= RenderTableSpaceTable() %>
+ <!%= RenderTableSpaceTable() %>
</table>
</div>
+ -->
+
</div>
</asp:Content>
--
Gitblit v1.9.1