Browse Source

Change Request #17732 Remove/Disable Dashboard

Prod
shakun 1 year ago
parent
commit
0e11421d60
  1. 4
      Swift.web/Bootstrap/css/bootstrap.css
  2. 8
      Swift.web/DashboardV2/Dashboard2.aspx
  3. 12
      Swift.web/DashboardV2/Dashboard2.aspx.cs
  4. 18
      Swift.web/DashboardV2/Dashboard2.aspx.designer.cs
  5. 50
      Swift.web/DashboardV2/assets/js/dashboardv2.js
  6. 16
      Swift.web/ui/bootstrap/css/bootstrap.css
  7. 4
      Swift.web/ui/css/style.css

4
Swift.web/Bootstrap/css/bootstrap.css

@ -4837,9 +4837,9 @@ select[multiple].input-group-sm > .input-group-btn > .btn {
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
color: #555;
color: #fff;
cursor: default;
background-color: #fff;
background-color: #262262;
border: 1px solid #ddd;
border-bottom-color: transparent;
}

8
Swift.web/DashboardV2/Dashboard2.aspx

@ -304,7 +304,7 @@
<!-- row -->
<!-- products -->
<div class="col-xl-6" id="lawsonCardSummaryRoleDiv" runat="server">
<%--<div class="col-xl-6" id="lawsonCardSummaryRoleDiv" runat="server">
<div class="card">
<div class="card-body">
<button type="button" onclick="ShowLawsonCardSummaryModal()" class="btn btn-primary btn-sm float-end" data-toggle="modal" style="display: none;">
@ -329,8 +329,8 @@
</div>
</div>
</div>
</div>
<div class="col-xl-6" id="agentWiseTxnRoleDiv" runat="server">
</div>--%>
<%--<div class="col-xl-6" id="agentWiseTxnRoleDiv" runat="server">
<div class="card">
<div class="card-body">
<button type="button" onclick="ShowAgentModal()" class="btn btn-primary btn-sm float-end" data-toggle="modal" data-target="#gridAgentWiseModal">
@ -356,7 +356,7 @@
</div>
</div>
</div>
</div>
</div>--%>
<div class="col-xl-3" id="customerOverviewRoleDiv" runat="server">
<div class="card">

12
Swift.web/DashboardV2/Dashboard2.aspx.cs

@ -52,9 +52,9 @@ namespace Swift.web.DashboardV2
branchTransactionRoleDiv.Attributes.Remove("style");
customerOverviewRoleDiv.Attributes.Remove("style");
complianceOfacRoleDiv.Attributes.Remove("style");
agentWiseTxnRoleDiv.Attributes.Remove("style");
//agentWiseTxnRoleDiv.Attributes.Remove("style");
userwiseDailyTxnRoleDiv.Attributes.Remove("style");
lawsonCardSummaryRoleDiv.Attributes.Remove("style");
//lawsonCardSummaryRoleDiv.Attributes.Remove("style");
if (!sl.HasRight(TodaysSentPaidRole))
todaysSentPaidRoleDiv.Attributes.Add("style", "display:none;");
@ -66,12 +66,12 @@ namespace Swift.web.DashboardV2
customerOverviewRoleDiv.Attributes.Add("style", "display:none;");
if (!sl.HasRight(ComplianceOfacRole))
complianceOfacRoleDiv.Attributes.Add("style", "display:none;");
if (!sl.HasRight(AgentwiseNumberRole))
agentWiseTxnRoleDiv.Attributes.Add("style", "display:none;");
//if (!sl.HasRight(AgentwiseNumberRole))
// agentWiseTxnRoleDiv.Attributes.Add("style", "display:none;");
if (!sl.HasRight(UserwiseNumberRole))
userwiseDailyTxnRoleDiv.Attributes.Add("style", "display:none;");
if (!sl.HasRight(LawsonSummaryRole))
lawsonCardSummaryRoleDiv.Attributes.Add("style", "display:none;");
//if (!sl.HasRight(LawsonSummaryRole))
// lawsonCardSummaryRoleDiv.Attributes.Add("style", "display:none;");
}
private void GetDashboardData()

18
Swift.web/DashboardV2/Dashboard2.aspx.designer.cs

@ -50,24 +50,6 @@ namespace Swift.web.DashboardV2
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl branchTransactionRoleDiv;
/// <summary>
/// lawsonCardSummaryRoleDiv control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl lawsonCardSummaryRoleDiv;
/// <summary>
/// agentWiseTxnRoleDiv control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl agentWiseTxnRoleDiv;
/// <summary>
/// customerOverviewRoleDiv control.
/// </summary>

50
Swift.web/DashboardV2/assets/js/dashboardv2.js

@ -123,33 +123,33 @@ function LoadChartData() {
$('#mobileCustomerCount').text(Response.CustomerData.MobileCustomers);
//Agent wise transaction show
let html = '';
if (AgentWiseTxn.length > 0) {
$('#tableAgentWise tbody').empty();
$('#tableAgentWisePopup tbody').empty();
}
for (var i = 0; i < 4; i++) {
html += '<tr>';
html += '<td>' + (i + 1).toString() + '</td>';
html += '<td>' + AgentWiseTxn[i].BranchName + '</td>';
html += '<td>' + AgentWiseTxn[i].CurrentMonth + '</td>';
html += '<td>' + AgentWiseTxn[i].PreviousMonth + '</td>';
html += '</tr>';
}
$('#tableAgentWise tbody').append(html);
//let html = '';
//if (AgentWiseTxn.length > 0) {
// $('#tableAgentWise tbody').empty();
// $('#tableAgentWisePopup tbody').empty();
//}
//for (var i = 0; i < 4; i++) {
// html += '<tr>';
// html += '<td>' + (i + 1).toString() + '</td>';
// //html += '<td>' + AgentWiseTxn[i].BranchName + '</td>';
// html += '<td>' + AgentWiseTxn[i].CurrentMonth + '</td>';
// html += '<td>' + AgentWiseTxn[i].PreviousMonth + '</td>';
// html += '</tr>';
//}
//$('#tableAgentWise tbody').append(html);
//populate popup for all agent list
html = '';
for (var j = 0; j < AgentWiseTxn.length; j++) {
html += '<tr>';
html += '<td>' + (j + 1).toString() + '</td>';
html += '<td>' + AgentWiseTxn[j].BranchName + '</td>';
html += '<td>' + AgentWiseTxn[j].CurrentMonth + '</td>';
html += '<td>' + AgentWiseTxn[j].PreviousMonth + '</td>';
html += '</tr>';
}
$('#tableAgentWisePopup tbody').append(html);
//html = '';
//for (var j = 0; j < AgentWiseTxn.length; j++) {
// html += '<tr>';
// html += '<td>' + (j + 1).toString() + '</td>';
// // html += '<td>' + AgentWiseTxn[j].BranchName + '</td>';
// html += '<td>' + AgentWiseTxn[j].CurrentMonth + '</td>';
// html += '<td>' + AgentWiseTxn[j].PreviousMonth + '</td>';
// html += '</tr>';
//}
//$('#tableAgentWisePopup tbody').append(html);
//user wise txn
html = '';

16
Swift.web/ui/bootstrap/css/bootstrap.css

@ -3118,8 +3118,8 @@ fieldset[disabled] .btn-default.focus {
}
.btn-primary {
color: #fff;
background-color: #337ab7;
border-color: #2e6da4;
/*background-color: #337ab7;*/
/*border-color: #2e6da4;*/
}
.btn-primary:focus,
.btn-primary.focus {
@ -4034,15 +4034,15 @@ select[multiple].input-group-sm > .input-group-btn > .btn {
.nav-tabs > li > a:hover {
border-color: #eee #eee #ddd;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
color: #555;
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
color: #fff;
cursor: default;
background-color: #fff;
background-color:#262262;
border: 1px solid #ddd;
border-bottom-color: transparent;
}
}
.nav-tabs.nav-justified {
width: 100%;
border-bottom: 0;

4
Swift.web/ui/css/style.css

@ -1369,8 +1369,8 @@ ul.wysihtml5-toolbar a.btn.wysihtml5-command-active {
}
.btn-primary {
background-color: #262262 !important;
border-color: #262262 !important;
/*background-color: #262262 !important;
border-color: #262262 !important;*/
}
.btn-primary:hover {

Loading…
Cancel
Save