Edit.cshtml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. @model EMIS.ViewModel.EvaluationManage.EvaluationSetting.EvaluationNeedView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. var isEnable = Request["type"] == "detail" ? false : true;
  7. }
  8. @section scripts{
  9. <script src="~/Scripts/Business/EvaluationManage/EvaluationSetting/EvaluationNeedEdit.js" type="text/javascript"></script>
  10. <script type="text/javascript">
  11. var nonSelect = "@DropdownList.SELECT_ALL";
  12. </script>
  13. }
  14. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  15. @using (Ajax.BeginForm(new AjaxOptions
  16. {
  17. OnSuccess = "EMISFunction.FormSuccess",
  18. OnBegin = "EMISFunction.FormSubmit",
  19. OnComplete = "EMISFunction.FormComplete"
  20. }))
  21. {
  22. <div class="p_title">
  23. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  24. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  25. @if (Request["type"] != "detail")
  26. {
  27. @Html.ContextMenuBar("Edit")
  28. }
  29. </div>
  30. </div>
  31. <div class="search_list">
  32. @Html.HiddenFor(x => x.EvaluationNeedID)
  33. <table cellpadding="0" cellspacing="0" id="evaluationtabletable">
  34. <tr>
  35. <td style="color:red;">
  36. @Html.LabelFor(x => x.Code):
  37. </td>
  38. <td>
  39. @Html.TextBoxFor(x => x.Code, new TextBoxOptions() { IsEnabled = isEnable })
  40. </td>
  41. <td>
  42. @Html.LabelFor(x => x.Title):
  43. </td>
  44. <td>
  45. @Html.TextBoxFor(x => x.Title, new TextBoxOptions() { IsEnabled = isEnable })
  46. </td>
  47. </tr>
  48. <tr>
  49. <td style="color:red;">
  50. @Html.LabelFor(x => x.ParticipateTypeID):
  51. </td>
  52. <td>
  53. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.EM_ParticipateType, (x => x.ParticipateTypeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
  54. </td>
  55. <td style="color:red;">
  56. @Html.LabelFor(x => x.IsEnabledName):
  57. </td>
  58. <td>
  59. @if (!isEnable)
  60. {
  61. @Html.CheckBoxFor(x => x.IsEnabled, new Dictionary<string, object>() { { "disabled", isEnable } })
  62. }
  63. else
  64. {
  65. @Html.CheckBoxFor(x => x.IsEnabled)
  66. }
  67. </td>
  68. </tr>
  69. <tr>
  70. <td>
  71. @Html.LabelFor(x => x.Content):
  72. </td>
  73. <td colspan="3">
  74. @if (!isEnable)
  75. {
  76. @Html.TextAreaFor(x => x.Content, new Dictionary<string, object>
  77. {
  78. { "style", "width: 90%;min-height: 80px" },
  79. { "disabled", "true" }
  80. })
  81. }
  82. else
  83. {
  84. @Html.TextAreaFor(x => x.Content, new Dictionary<string, object> { { "style", "width: 90%;min-height: 80px" } })
  85. }
  86. </td>
  87. </tr>
  88. <tr>
  89. <td>
  90. @Html.LabelFor(x => x.Remark):
  91. </td>
  92. <td colspan="3">
  93. @if (!isEnable)
  94. {
  95. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object>
  96. {
  97. { "style", "width: 90%;min-height: 30px" },
  98. { "disabled", "true" }
  99. })
  100. }
  101. else
  102. {
  103. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 30px" } })
  104. }
  105. </td>
  106. </tr>
  107. </table>
  108. </div>
  109. }
  110. </div>