12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- @{
- ViewBag.Title = "小区管理";
- Layout = "~/Views/Shared/_Form.cshtml";
- }
- <script>
- var addr = request('addr');
- var id = request('id');
- var IOT_Code = request('IOT_Code');
- $(function () {
- //水表状态
- $("#MeterStata").ComboBox({
- description: "==请选择==",
- }).bind("change", function () {
- value = $(this).attr('data-value');
- if (value == "01") {
- var geth1 = document.getElementById("trTime");
- geth1.style.display = "none";
- }
- else {
- var geth1 = document.getElementById("trTime");
- geth1.style.display = "";
- }
- });
- })
- //保存表单
- function AcceptClick() {
- if (!$('#form1').Validform()) {
- return false;
- }
- var metesta = $("#MeterStata").attr('data-value');
- var timeStart = $("#PointStartTime").val();
- var timeEnd = $("#PointEndTime").val();
-
- //postData 格式化 将 替换为 ""
- $.SaveForm({
- url: "/NBManage/ReSetMeterAddress/SendCommand",
- param: { "id": id, "addr": addr, "metesta": metesta, "IOT_Code": IOT_Code, "timeStart": timeStart, "timeEnd": timeEnd },
- loading: "正在保存数据...",
- success: function () {
- $.currentIframe().$("#gridTable").resetSelection();
- $.currentIframe().$("#gridTable").trigger("reloadGrid");
- }
- })
- }
- </script>
- <style type="text/css">
- .form .formTitle {
- width: 100px;
- }
- </style>
- <div style="margin-left: 10px; margin-top: 20px; margin-right: 30px;">
- <table id="form1" class="form">
- <tr>
- <th class="formTitle">水表状态<font face="宋体">*</font></th>
- <td class="formValue" colspan="3">
- @*<input id="oldAddr" type="text" class="form-control" isvalid="yes" checkexpession="Num" errormsg="请输入旧表地址" placeholder="请输入旧表地址" readonly/>*@
- <div id="MeterStata" type="select" class="ui-select">
- <ul>
- <li data-value="01">正常</li>
- <li data-value="02">限制</li>
- <li data-value="03">管阀</li>
- </ul>
- </div>
- </td>
- @* <th class="formTitle">ICCID<font face="宋体">*</font></th>
- <td class="formValue">
- <input id="ICCID" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" errormsg="IMEI号" placeholder="请输入ICCID" />
- </td>*@
- </tr>
- <tr id="trTime" style="">
- <th class="formTitle">开始时间<font face="宋体">*</font></th>
- <td class="formValue">
- <input id="PointStartTime" readonly type="text" value="@LeaRun.Util.Time.ShortTime" class="form-control input-wdatepicker" onfocus="WdatePicker({maxDate:'%HH%mm',dateFmt:'HH:mm'})" >
- </td>
- <th class="formTitle">开始时间<font face="宋体">*</font></th>
- <td class="formValue">
- <input id="PointEndTime" readonly type="text" value="@LeaRun.Util.Time.ShortTime" class="form-control input-wdatepicker" onfocus="WdatePicker({maxDate:'%HH%mm',dateFmt:'HH:mm'})" >
- </td>
- </tr>
- </table>
- </div>
|