Detail.cshtml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. @{
  2. ViewBag.Title = "Detail";
  3. Layout = "~/Views/Shared/_Layout.cshtml";
  4. }
  5. @using MES.Production.Service;
  6. @using Central.Control.Domain;
  7. @using Ant.Service.Common;
  8. @using Ant.Service.Common.Enums;
  9. @model SYS_ROLE
  10. <style>
  11. body {
  12. background-color: white;
  13. }
  14. </style>
  15. @using (Ajax.BeginForm("Save", null, new AjaxOptions()
  16. {
  17. HttpMethod = "Post",
  18. OnBegin = "SubAjax.Loading",
  19. OnComplete = "SubAjax.Complate",
  20. OnFailure = "SubAjax.Failure",
  21. OnSuccess = "SubAjax.Success"
  22. },
  23. new { @class = "form-horizontal dig-from", @role = "form" }))
  24. {
  25. <div class="wrapper-content">
  26. <div class="panel-body">
  27. <div class="tab-content">
  28. <div id="tab-1" class="tab-pane active">
  29. <div class="form-group">
  30. <label class="col-lg-3 control-label">角色名称:</label>
  31. <div class="col-lg-8">
  32. @Html.HiddenFor(p => p.ID)
  33. @Html.TextBoxFor(p => p.ROLENAME, new { @class = "form-control", @id = "rolename", @placeholder = "请输入角色名称", @datatype = "*", @nullmsg = "请输入角色名称!", @errormsg = "请输入角色名称!" })
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="col-lg-3 control-label">特殊属性:</label>
  38. <div class="col-lg-8">
  39. <label class="checkbox-inline">
  40. <input type="checkbox" name="iscustom" class="i-checks" @(Model.ISCUSTOM==0?"checked=\"checked\"":"") />
  41. 是否系统预定义</label>
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label class="col-lg-3 control-label">备注:</label>
  46. <div class="col-lg-8">
  47. @Html.TextAreaFor(p => p.ROLEDESC, new { @class = "form-control" ,@rows="3", @cols="20" })
  48. </div>
  49. </div>
  50. <div class="hr-line-dashed">
  51. <div class="form-group m20">
  52. <div class="col-sm-2 col-sm-offset-2">
  53. <button class="btn btn-primary btn-save" type="submit"><i class="fa fa-check"></i> <span>确定保存</span></button>
  54. <button class="btn btn-warning" id="btn-dig-close" type="button"><i class="im-undo2"></i> 取消返回</button>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. }
  63. @section scripts{
  64. <script type="text/javascript">
  65. $(function () {
  66. $('.form-horizontal').initValidform();
  67. });
  68. </script>
  69. }