You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
128 lines
4.1 KiB
128 lines
4.1 KiB
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.SendPlanManage.SendStatisticsModel>" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|
发车统计分析
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
|
<style type="text/css">
|
|
.tdset
|
|
{
|
|
border-top: 1px solid black;
|
|
border-left: 1px solid black;
|
|
width: 100px;
|
|
text-align: center;
|
|
}
|
|
|
|
.tdright
|
|
{
|
|
border-right: 1px solid black;
|
|
}
|
|
|
|
.tdbottom
|
|
{
|
|
border-bottom: 1px solid black;
|
|
}
|
|
</style>
|
|
<%=Html.QPSeach(80,true) %>
|
|
<table id="condiTable">
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.COLORCODE)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.COLORCODE)%>
|
|
</td>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.VERSION)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.VERSION)%>
|
|
</td>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.CreateDateStart)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.CreateDateStart)%>
|
|
</td>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.CreateDateEnd)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.CreateDateEnd)%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div style="left: 1px; position: relative;">
|
|
</div>
|
|
<%=Html.QPEnd()%>
|
|
<%=Html.QPList() %>
|
|
<table cellpadding="0" cellspacing="0" align="center" style="margin-left: 5px; margin-top: 5px;">
|
|
<tr style="height: 10px">
|
|
</tr>
|
|
<tr>
|
|
<td align="center">
|
|
<div id="divCurve" style="width:1000px; height: 400px;">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<%=Html.QPEnd() %>
|
|
<%=Html.Hidden("Arr", Model.arr)%>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
|
|
<table id="EditTable" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td align="center">
|
|
<%=Html.QTButtonSearch("SendStatistics", "List", "Search()", (s, f) => { return true; })%>
|
|
<%=Html.QTButton("export", "ExportExcel", QMFrameWork.WebUI.IconCls.redo, "Export()", (s, f) => { return true; })%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<script type="text/javascript">
|
|
var chart;
|
|
var legend;
|
|
|
|
$(function () {
|
|
var chartData = eval($("#Arr").val());
|
|
if (chartData != undefined && chartData.length > 0) {
|
|
AmCharts.ready(function () {
|
|
|
|
// PIE CHART
|
|
chart = new AmCharts.AmPieChart();
|
|
//数据源
|
|
chart.dataProvider = chartData;
|
|
chart.titleField = "PeiZhi";
|
|
chart.valueField = "Count";
|
|
|
|
chart.outlineColor = "#FFFFFF";
|
|
chart.outlineAlpha = 0.8;
|
|
chart.outlineThickness = 2;
|
|
chart.balloonText = "[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]%)</span>";
|
|
// this makes the chart 3D
|
|
chart.depth3D = 15;
|
|
chart.angle = 30;
|
|
//图例
|
|
var legend = new AmCharts.AmLegend();
|
|
legend.markerBorderColor = "#000000";
|
|
legend.switchType = undefined;
|
|
legend.align = "center";
|
|
chart.addLegend(legend);
|
|
|
|
//把图画到页面
|
|
chart.write("divCurve");
|
|
});
|
|
}
|
|
});
|
|
|
|
//查询
|
|
function Search() {
|
|
submitByButton("List");
|
|
}
|
|
//导出
|
|
function Export() {
|
|
submitByButton("ExportExcel");
|
|
}
|
|
|
|
</script>
|
|
</asp:Content>
|
|
|