天津投入产出系统后端
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.

88 lines
3.0 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.EM.EmMeterReadingsModel>" %>
<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.METER_CODE)%>
</th>
<td>
<%=Html.QC(p => p.METER_CODE)%>
</td>
<th align="right">
<%=Html.QV(p => p.STARTCREATEDATE)%>
</th>
<td>
<%=Html.QC(p => p.STARTCREATEDATE)%>
</td>
<th align="right">
<%=Html.QV(p => p.ENDCREATEDATE)%>
</th>
<td>
<%=Html.QC(p => p.ENDCREATEDATE)%>
</td>
<th align="right">
<%=Html.QV(p => p.FLAG_TIME)%>
</th>
<td>
<%=Html.QC(p => p.FLAG_TIME)%>
</td>
</tr>
</table>
<div style="left: 1px; position: relative;"></div>
<%=Html.QPEnd()%>
<%=Html.QPList() %>
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.EM.EmMeterReadingsModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("selectKey")%>
<script language="javascript" type="text/javascript">
//统计
function Count() {
//debugger;
var ids = getSelectKey();
if (ids == "") {
MSI("提示", "请选择设备记录。");
return;
}
if (ids.indexOf(":") > 0) {
MSI("提示", "每次只能选择一条记录。");
return;
}
document.getElementById("selectKey").value = ids;
var stime = $('#STARTCREATEDATE').val();
var etime = $('#ENDCREATEDATE').val();
var ftime = $('#FLAG_TIME').combobox('getValue');
if (stime == "" || etime == "") {
MSI("提示", "请选择查询日期。");
return;
}
if (ftime == "") {
MSI("提示", "请选择统计标识。");
return;
}
openAppWindow1('统计', 'Count?PID=' + ids + '&STARTCREATEDATE=' + stime + '&ENDCREATEDATE=' + etime + '&FLAG_TIME=' + ftime, '950', '500');
}
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<%=Html.QTButtonSearch("EmMeterReadings", "List", "List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButton("Count", "Count", QMFrameWork.WebUI.IconCls.detail, "Count()", QMAPP.Common.Web.SystemLimit.isLimt)%>
</td>
</tr>
</table>
</asp:Content>