474 lines
21 KiB
Plaintext
474 lines
21 KiB
Plaintext
@model GODATA.Models.Report.Analysis
|
|
@{
|
|
ViewBag.Title = "Geo Analysis Report";
|
|
Layout = "~/Views/Shared/_Layout.cshtml";
|
|
}
|
|
<div id="div_load">
|
|
<img src="../../Content/images/13.gif" style="position: absolute; top: 44%; left: 48%; z-index: 100000;" />
|
|
</div>
|
|
<div class="size20 left">
|
|
<div class="window">
|
|
<div class="titlebar">
|
|
<div class="title">
|
|
Controls
|
|
</div>
|
|
</div>
|
|
<div class="innerWindow">
|
|
<div class="menubar">
|
|
<div class="searchBox" title="Quick Search">
|
|
<div class="inputBox">
|
|
<input type="text" id="txtSearch" />
|
|
</div>
|
|
<div class="sIcon">
|
|
<img alt="" src="@Url.Content("~/Content/images/search-icon.png")" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="content contentoverflow withstatusbar">
|
|
<div class="listDetails">
|
|
<div class="ldSection shadow_btm">
|
|
<table class="themeTable" cellpadding="5" cellspacing="0">
|
|
<thead>
|
|
<th colspan="2" class="filter_head">
|
|
<img src="~/Content/css/images/filters-banner.jpg" border="0" />
|
|
</th>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">Select Year</span>
|
|
</td>
|
|
<td class="tableCellinfo darktxt lftpanelSmall">
|
|
@(Html.Kendo().DatePicker()
|
|
.Name("fromDatePicker")
|
|
.Format("yyyy")
|
|
.Value(DateTime.Now)
|
|
.Max(DateTime.Now)
|
|
.HtmlAttributes(new { @class = "kendo-make-readonly", style = "width:150px", type = "text" })
|
|
.Start(CalendarView.Decade)
|
|
.Depth(CalendarView.Decade)
|
|
)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">Select Month</span>
|
|
</td>
|
|
<td class="tableCellinfo darktxt lftpanelSmall">
|
|
@(Html.Kendo().DatePicker()
|
|
.Name("fromMonthPicker")
|
|
.Format("MMM")
|
|
.Start(CalendarView.Year)
|
|
.Depth(CalendarView.Year)
|
|
.HtmlAttributes(new { style = "width:150px", type = "text" })
|
|
.Max(DateTime.Now)
|
|
)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">EOS VAN</span>
|
|
</td>
|
|
<td class="tableCellinfo darktxt">
|
|
@Html.CheckBoxFor(p => p.IsVan, new { @checked = true })
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt ">Dealer</span>
|
|
</td>
|
|
<td class="tableCellinfo darktxt">
|
|
@Html.CheckBoxFor(p => p.IsDealer, new { @checked = true })
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt ">Open Ticket</span>
|
|
</td>
|
|
<td class="tableCellinfo darktxt">
|
|
@Html.CheckBoxFor(p => p.IsOpenTicket, new { @checked = true })
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt ">Close Ticket</span>
|
|
</td>
|
|
<td class="tableCellinfo darktxt">
|
|
@Html.CheckBoxFor(p => p.IsClosedTickets, new { @checked = true })
|
|
</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
<div class="btn_wrapper aling_left">
|
|
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
<input type="button" value="Submit" class="button_blue custom_postool_btn" onclick="showReport()" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div id="blindSpot_toolbox" class="shadow_btm AdvanceFiltering">
|
|
<table class="themeTable" cellpadding="5" cellspacing="0" style="border: 1px solid #dedede">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="2">
|
|
<img src="~/Content/css/images/advanced-filtering-banner.png" border="0" />
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<div class="onoffswitch">
|
|
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" onclick="GetSLAMeet()" id="btnSlaMeet" checked="false">
|
|
<label class="onoffswitch-label" for="btnSlaMeet">
|
|
<span class="onoffswitch-inner"></span>
|
|
<span class="onoffswitch-switch"></span>
|
|
</label>
|
|
</div>
|
|
</td>
|
|
|
|
<td>
|
|
<div class="onoffswitch">
|
|
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" onclick="GetSLANotMeet()" id="btnSlaNotMeet" checked="false">
|
|
<label class="onoffswitch-label" for="btnSlaNotMeet">
|
|
<span class="onoffswitch-inner notMET"></span>
|
|
<span class="onoffswitch-switch notMET"></span>
|
|
</label>
|
|
</div>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<div class="onoffswitch opprtunityLostSwitch">
|
|
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" onclick="GetOpportunityLost()" id="btnOpportunityLost" checked="false">
|
|
<label class="onoffswitch-label" for="btnOpportunityLost">
|
|
<span class="onoffswitch-inner opportunityLost"></span>
|
|
<span class="onoffswitch-switch opportunityLost"></span>
|
|
</label>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
@*<tr>
|
|
<td class="tableCellinfo AlignCenter bdrightnone">
|
|
<div class="onoffswitch">
|
|
|
|
<input type="checkbox" onclick="GetSLAMeet()" id="btnSlaMeet" />
|
|
|
|
<label class="onoffswitch-label" for="myonoffswitch">
|
|
<span class="onoffswitch-inner"></span>
|
|
<span class="onoffswitch-switch"></span>
|
|
</label>
|
|
</div>
|
|
</td>
|
|
<td class="AlignCenter bdright">
|
|
<div class="tooltip">
|
|
<label>
|
|
<input type="checkbox" onclick="GetSLANotMeet()" id="btnSlaNotMeet" />SLA Not Met</label>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableCellinfo AlignCenter bdrightnone">
|
|
<div class="tooltip">
|
|
<label>
|
|
<input type="checkbox" onclick="GetOpportunityLost()" id="btnOpportunityLost" />Opportunity Lost</label>
|
|
</div>
|
|
</td>
|
|
<td class="AlignCenter bdright">
|
|
<div class="tooltip">
|
|
<input type="submit" value="" class="" id="btnReset" onclick="ShowAllMap()" />
|
|
<span>
|
|
<img class="callout" src="/Content/css/images/callout.gif">
|
|
<strong>Reset</strong>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
</tr>*@
|
|
@*<tr>
|
|
<td class="tableCellinfo AlignCenter bdrightnone">
|
|
<div class="tooltip">
|
|
<input type="button" class="button_blue fleft" value="SLA Met" onclick="GetSLAMeet()" id="btnSlaMeet" />
|
|
<span>
|
|
<img class="callout" src="~/Content/css/images/callout.gif" />
|
|
<strong>SLA Met</strong>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
<td class="AlignCenter bdright">
|
|
<div class="tooltip">
|
|
<input type="button" class="button_blue fleft" value="SLA Not Met" id="btnSlaNotMeet" onclick="GetSLANotMeet()" />
|
|
<span>
|
|
<img class="callout" src="~/Content/css/images/callout.gif" />
|
|
<strong>SLA Not Met</strong>
|
|
</span>
|
|
</div>
|
|
</td>
|
|
</tr>*@
|
|
</tbody>
|
|
</table>
|
|
<div class="btn_wrapper aling_left">
|
|
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
<input type="submit" value="Reset" class="button_blue fleft resetauto custom_postool_btn" style="margin: -5px 0px 0 0;" onclick="ShowAllMap()" />
|
|
@*<input type="button" value="Reset" class="button_blue custom_postool_btn" onclick="showReport()" />*@
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
@*<div class="btn_wrapper">
|
|
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
|
<tr>
|
|
<td class="bdrbtmnone Leftindent">
|
|
<input type="submit" value="Opportunity Lost" style="width: auto; margin: -3px 0px 0 0;" class="button_blue fleft" id="btnOpportunityLost" onclick="GetOpportunityLost()" />
|
|
</td>
|
|
<td class="bdrbtmnone">
|
|
<input type="submit" value="Reset" class="button_blue fleft resetauto" id="btnReset" style="margin: -3px 0px 0 0;" onclick="ShowAllMap()" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>*@
|
|
</div>
|
|
|
|
|
|
<div class="legendsx">
|
|
<ul>
|
|
<li><span class="openticket"></span><div>Open Ticket</div> </li>
|
|
<li><span class="slamatticket"></span><div> Close Ticket</div> </li>
|
|
<li><span class="closeticket"></span><div>SLA Met</div> </li>
|
|
<li><span class="slanotticket"></span><div>SLA Not Met</div> </li>
|
|
<li><span class="operyunitylost"></span><div>Opportunity Lost</div> </li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="statusbar"style="height:15px" >
|
|
@*<div class="onoffswitch">
|
|
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="myonoffswitch" checked="false">
|
|
<label class="onoffswitch-label" for="myonoffswitch">
|
|
<span class="onoffswitch-inner"></span>
|
|
<span class="onoffswitch-switch"></span>
|
|
</label>
|
|
</div>*@
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="size80 right">
|
|
<div class="window">
|
|
<div class="titlebar">
|
|
<div class="title fleft">
|
|
Geo Analysis Report
|
|
</div>
|
|
|
|
<div class="datalist_wrp fright">
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
<div id="divDetail" class="innerWindow">
|
|
<div id="divMapContainerGeo" class="content">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@*Popup dialog box div *@
|
|
<div id="divTicketDetails" style="display: none; height: 500px;"></div>
|
|
@*Popup dialog box div *@
|
|
<div id="divFleetDetail" style="display: none; height: 600px;"></div>
|
|
@*<div class="size75 right">
|
|
<div class="window">
|
|
<div class="titlebar">
|
|
<div class="title fleft">
|
|
Device on Map
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
<div id="divDetail" class="innerWindow">
|
|
<div id="divMapContainer" class="content">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>*@
|
|
@{
|
|
|
|
var mapApiKey = System.Configuration.ConfigurationManager.AppSettings["GoogleId"];
|
|
//(mapApiKey);
|
|
var src1 = "http://maps.googleapis.com/maps/api/js?v=3.exp&type=restaurant,establishment,fire_station&sensor=false&key="+mapApiKey;
|
|
}
|
|
<script src="@src1"></script>
|
|
<script src="@Url.Content("~/Scripts/Report/AnlysisReport.js")" type="text/javascript"></script>
|
|
<script src="@Url.Content("~/Scripts/Inventory/ManageFleet_Detail.js")" type="text/javascript"></script>*@
|
|
@Scripts.Render("~/bundles/jsGeoAnalysisReport")
|
|
<script type="text/javascript">
|
|
var securityToken = '@ViewBag.SecurityToken';
|
|
var UtcMinutes = '@ViewBag.UtcMinutes';
|
|
var userId = '@ViewBag.Userid';
|
|
//function calling on document ready
|
|
$(document).ready(function () {
|
|
SetMap("divMapContainerGeo");
|
|
addKendoWindowToDiv("#divTicketDetails", "Ticket Details", "1050px", 278, 100);
|
|
addKendoWindowToDiv("#divFleetDetail", "Ticket Details", "1050px", 286, 100);
|
|
$("#divTicketDetails").parent().addClass("TicketReportDetails_Window");
|
|
$("#divFleetDetail").parent().addClass("FleetDetails_Window");
|
|
//$("#divFleetDetail").parent().addClass("TicketReportDetails_Window");
|
|
UncheckCheckBox();
|
|
});
|
|
</script>
|
|
<style type="text/css">
|
|
.onoffswitch {
|
|
position: relative;
|
|
width: 111px;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
margin-top: 14px;
|
|
margin-left: 14px;
|
|
}
|
|
|
|
.onoffswitch-checkbox {
|
|
display: none;
|
|
}
|
|
|
|
.onoffswitch-label {
|
|
display: block;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
border: 2px solid #999999;
|
|
border-radius: 0px;
|
|
height: 22px;
|
|
}
|
|
|
|
.onoffswitch-inner {
|
|
display: block;
|
|
width: 200%;
|
|
margin-left: -100%;
|
|
-moz-transition: margin 0.3s ease-in 0s;
|
|
-webkit-transition: margin 0.3s ease-in 0s;
|
|
-o-transition: margin 0.3s ease-in 0s;
|
|
transition: margin 0.3s ease-in 0s;
|
|
}
|
|
|
|
.onoffswitch-inner:before, .onoffswitch-inner:after {
|
|
display: block;
|
|
float: left;
|
|
width: 50%;
|
|
height: 30px;
|
|
padding: 0;
|
|
line-height: 26px;
|
|
font-size: 14px;
|
|
color: white;
|
|
font-family: Trebuchet, Arial, sans-serif;
|
|
font-weight: bold;
|
|
-moz-box-sizing: border-box;
|
|
-webkit-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
border: 2px solid transparent;
|
|
background-clip: padding-box;
|
|
}
|
|
|
|
.onoffswitch-inner:before {
|
|
content: "SLA Met";
|
|
/*padding-left: 10px;*/
|
|
background-color: #EE2622;
|
|
padding-left: 16px;
|
|
color: #FFFFFF;
|
|
text-align: left;
|
|
font-size: 12px;
|
|
height: 22px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.onoffswitch-inner:after {
|
|
content: "SLA Met";
|
|
padding-right: 10px;
|
|
background-color: #CCCCCC;
|
|
color: #1B3F94;
|
|
text-align: right;
|
|
color: #949494;
|
|
font-size: 12px;
|
|
padding-right: 16px;
|
|
height: 22px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.onoffswitch-switch {
|
|
display: block;
|
|
width: 28px;
|
|
margin: 0px;
|
|
background: #1B3F94;
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
right: 82px;
|
|
-moz-transition: all 0.3s ease-in 0s;
|
|
-webkit-transition: all 0.3s ease-in 0s;
|
|
-o-transition: all 0.3s ease-in 0s;
|
|
transition: all 0.3s ease-in 0s;
|
|
}
|
|
|
|
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
|
|
right: 0px;
|
|
}
|
|
|
|
.onoffswitch-inner.notMET:after, .onoffswitch-inner.notMET:before {
|
|
content: "SLA Not Met";
|
|
}
|
|
|
|
.onoffswitch-inner.notMET:after, .onoffswitch-inner.opportunityLost:after {
|
|
padding-right: 4px;
|
|
}
|
|
|
|
.onoffswitch-inner.notMET:before, .onoffswitch-inner.opportunityLost:before {
|
|
padding-left: 4px;
|
|
}
|
|
|
|
.onoffswitch-inner.opportunityLost:after, .onoffswitch-inner.opportunityLost:before {
|
|
content: "Opportunity Lost";
|
|
}
|
|
|
|
.opprtunityLostSwitch {
|
|
width: 135px;
|
|
left: 22%;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.opportunityLost {
|
|
right: 106px;
|
|
}
|
|
|
|
input[type="checkbox"] {
|
|
height:20px !important;
|
|
width:20px !important;
|
|
}
|
|
|
|
|
|
.TicketReportDetails_Window {
|
|
width: 90% !important;
|
|
top: 12% !important;
|
|
left: 5% !important;
|
|
}
|
|
|
|
|
|
.FleetDetails_Window {
|
|
width: 90% !important;
|
|
top: 9% !important;
|
|
left: 5% !important;
|
|
}
|
|
|
|
</style>
|