Edit.cshtml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. @model EMIS.ViewModel.SystemSetting.DictionaryView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/System/DictionaryEdit.js" type="text/javascript"></script>
  9. <script type="text/javascript">
  10. </script>
  11. }
  12. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  13. @using (Ajax.BeginForm(new AjaxOptions
  14. {
  15. OnSuccess = "EMISFunction.FormSuccess",
  16. OnBegin = "EMISFunction.FormSubmit",
  17. OnComplete = "EMISFunction.FormComplete"
  18. }))
  19. {
  20. <div class="p_title">
  21. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  22. @*字典类型信息*@
  23. </div>
  24. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  25. </div>
  26. <div class="search_list">
  27. <table cellpadding="0" cellspacing="0">
  28. <tr>
  29. <td>
  30. @Html.LabelFor(x => x.OrderNo):
  31. </td>
  32. <td>
  33. @Html.TextBoxFor(x => x.OrderNo)
  34. </td>
  35. <td>
  36. @Html.LabelFor(x => x.DictionaryCode):
  37. </td>
  38. <td>
  39. @Html.TextBoxFor(x => x.DictionaryCode, new TextBoxOptions() { IsEnabled = false })
  40. </td>
  41. </tr>
  42. <tr>
  43. <td>
  44. @Html.LabelFor(x => x.DictionaryName):
  45. </td>
  46. <td>
  47. @Html.TextBoxFor(x => x.DictionaryName)
  48. </td>
  49. <td style="color: red;">
  50. @Html.LabelFor(x => x.IsEditableName):
  51. </td>
  52. <td>
  53. @Html.CheckBoxFor(x => x.IsEditable, new Dictionary<string, object>() { { "disabled", "false" } })
  54. </td>
  55. </tr>
  56. </table>
  57. </div>
  58. }
  59. </div>