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.
97 lines
3.2 KiB
97 lines
3.2 KiB
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.MESReport.Web.Models.LineQTY.StandardRateVModel>" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|
合格率分析
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
|
|
|
<%=Html.QPSeach(80,true) %>
|
|
<table id="condiTable">
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.WORKCELL_CODE)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.WORKCELL_CODE)%>
|
|
</td>
|
|
<th align="right">
|
|
日期
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.START_DATE)%>
|
|
</td>
|
|
<th align="right">
|
|
至
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.END_DATE)%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<%=Html.QPEnd()%>
|
|
<%=Html.QPList() %>
|
|
|
|
<!--图表配置-->
|
|
<%=QMAPP.Common.Web.AppConfig.QMEChartPageConfig()%>
|
|
<%--异步获取数据生成图表--%>
|
|
<%=QMFrameWork.WebUI.QMEChart.QMEChartHelper.CreateEchart("echartID", "/StandardRateCount/GetEchartDataBar2", new string[] { "line", "bar" }, "myEChart")%>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function () { refreshEChartbar2(); });
|
|
|
|
function refreshEChartbar2() {
|
|
var endtime = document.getElementById("END_DATE").value;
|
|
if (parseDate($("#START_DATE").val()) > parseDate($("#END_DATE").val()) && endtime != "") {
|
|
alert("开始时间不能大于结束时间!");
|
|
return;
|
|
}
|
|
var ps = [];
|
|
var WORKCELL_CODE = {};
|
|
WORKCELL_CODE.key = "WORKCELL_CODE";
|
|
WORKCELL_CODE.value = $("input[name='WORKCELL_CODE']").val();
|
|
ps.push(WORKCELL_CODE);
|
|
|
|
var START_DATE = {};
|
|
START_DATE.key = "START_DATE";
|
|
START_DATE.value = $("input[name='START_DATE']").val();
|
|
ps.push(START_DATE);
|
|
|
|
var END_DATE = {};
|
|
END_DATE.key = "END_DATE";
|
|
END_DATE.value = $("input[name='END_DATE']").val();
|
|
ps.push(END_DATE);
|
|
GetEchartData("/StandardRateCount/GetEchartDataBar2", myEChart, ps);
|
|
// debugger;
|
|
// var me = document.getElementById("echartID");
|
|
|
|
}
|
|
|
|
//导出
|
|
function Export() {
|
|
var img = myEChart.getDataURL("png");
|
|
$("#hiChartImg").val(img);
|
|
submitByButton("ExportBanCi");
|
|
}
|
|
</script>
|
|
<input id="hiChartImg" name="hiChartImg" type="hidden" />
|
|
|
|
|
|
<%=Html.QPEnd() %>
|
|
<%=Html.Hidden("selectKey")%>
|
|
<%=Html.Hidden("PID")%>
|
|
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
|
|
<table cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td align="center">
|
|
<%=Html.QTButtonSearch("StandardRateCount", "GetTrendData", "refreshEChartbar2()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButton("export", "ExportBanCi", QMFrameWork.WebUI.IconCls.redo, "Export()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</asp:Content>
|
|
|