123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- @{
- ViewBag.Title = "Detail";
- Layout = "~/Views/Shared/_Layout.cshtml";
- }
- @using MES.Production.Service;
- @using Central.Control.Domain;
- @using Ant.Service.Common;
- @using Ant.Service.Common.Enums;
- @using MES.Production.Entity.Entity
- @model SYS_Device
- <style>
- body {
- background-color: white;
- }
- </style>
- @using (Ajax.BeginForm("Save", null, new AjaxOptions()
- {
- HttpMethod = "Post",
- OnBegin = "SubAjax.Loading",
- OnComplete = "SubAjax.Complate",
- OnFailure = "SubAjax.Failure",
- OnSuccess = "SubAjax.Success"
- },
- new { @class = "form-horizontal dig-from", @role = "form" }))
- {
- <div class="wrapper-content">
- <div class="panel-body">
- <div class="tab-content">
- <div id="tab-1" class="tab-pane active">
- <div class="form-group">
- <label class="col-lg-3 control-label">设备名称:</label>
- <div class="col-lg-8">
- @Html.HiddenFor(p => p.Id)
- @Html.TextBoxFor(p => p.Name, new { @class = "form-control", @id = "Name", @placeholder = "请输入设备名称", @datatype = "*", @nullmsg = "请输入设备名称!", @errormsg = "请输入设备名称!" })
- </div>
- </div>
- <div class="form-group">
- <label class="col-lg-3 control-label">设备编码:</label>
- <div class="col-lg-8">
- @Html.TextBoxFor(p => p.Code, new { @class = "form-control", @id = "Code", @placeholder = "请输入设备编码", @datatype = "*", @nullmsg = "请输入设备编码!", @errormsg = "请输入设备编码!" })
- </div>
- </div>
- <div class="form-group">
- <label class="col-lg-3 control-label">设备地址:</label>
- <div class="col-lg-8">
- @Html.TextBoxFor(p => p.Address, new { @class = "form-control", @id = "Address", @placeholder = "请输入设备地址" })
- </div>
- </div>
- <div class="hr-line-dashed">
- <div class="form-group m20">
- <div class="col-sm-2 col-sm-offset-2">
- <button class="btn btn-primary btn-save" type="submit"><i class="fa fa-check"></i> <span>确定保存</span></button>
- <button class="btn btn-warning" id="btn-dig-close" type="button"><i class="im-undo2"></i> 取消返回</button>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- }
- @section scripts{
- <script type="text/javascript">
- $(function () {
- $('.form-horizontal').initValidform();
- //$('.select2').select2();
- });
-
- </script>
- }
|