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

75 lines
2.6 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.EnergyManage.MeterReadingsModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
电表编辑
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%=Html.QPEdit("电表编辑", string.IsNullOrEmpty(Model.PID) ? QMFrameWork.WebUI.panelType.Add : QMFrameWork.WebUI.panelType.Update)%>
<table id="editTable" cellpadding="0" cellspacing="0">
<tr>
<td>
<table>
<tr>
<th align="right">
<%=Html.QV(p => p.READ_TIME)%>
</th>
<td>
<%=Html.QC(p => p.READ_TIME)%>
</td>
</tr>
<tr>
<th align="right">
<%=Html.QV(p => p.READING)%>
</th>
<td>
<%=Html.QC(p => p.READING)%>
<script type="text/javascript" language="javascript">
$(function () {
$("#READING").numberbox({ min: 1, precision: 2 });
});
</script>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%=Html.HiddenFor(p => p.PID)%>
<%=Html.HiddenFor(p => p.METER_PID)%>
<%=Html.QPEnd() %>
<script type="text/javascript">
// $(function() {
// var PID = $("#METER_PID").val();
// alert(PID);
// });
function Save() {
if (isValidate() == false) {
return false;
}
//把设备ID赋值给MACHNEID保存到数据库
// var METER_NAME = $("#EQPT_CODE").combobox("getText");
// $("#METER_NAME").val(METER_NAME);
//$("#NET_ID").val('12345');
submitByButton("MeterReadingsSave");
}
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<%=Html.QTButtonSave("User", "Save", "return Save();")%>
<%=Html.QTButtonBack("close", "List", "parent.closeAppWindow1();return false;")%>
</td>
</tr>
</table>
</asp:Content>