Edit.cshtml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. @model EMIS.ViewModel.EvaluationManage.EvaluationSetting.EvaluationIntTypeView
  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. ListControlOptions lcoptm = new ListControlOptions
  9. {
  10. ID = "TeachingModeIDList",
  11. Name = "TeachingModeIDList",
  12. TextField = "Name",
  13. ValueField = "Value",
  14. ColumnCount = 4,
  15. IsEnabled = isEnable,
  16. SelectedValueUrl = @Url.Content("~/EvaluationIntType/TeachingModeTypeList?evaluationIntTypeID=" + Model.EvaluationIntTypeID)
  17. };
  18. }
  19. @section scripts{
  20. <script src="~/Scripts/Business/EvaluationManage/EvaluationSetting/EvaluationIntTypeEdit.js" type="text/javascript"></script>
  21. <script type="text/javascript">
  22. var nonSelect = "@DropdownList.SELECT_ALL";
  23. </script>
  24. }
  25. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  26. @using (Ajax.BeginForm(new AjaxOptions
  27. {
  28. OnSuccess = "EMISFunction.FormSuccess",
  29. OnBegin = "EMISFunction.FormSubmit",
  30. OnComplete = "EMISFunction.FormComplete"
  31. }))
  32. {
  33. <div class="p_title">
  34. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  35. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  36. @if (Request["type"] != "detail")
  37. {
  38. @Html.ContextMenuBar("Edit")
  39. }
  40. </div>
  41. </div>
  42. <div class="search_list">
  43. @Html.HiddenFor(x => x.EvaluationIntTypeID)
  44. <table cellpadding="0" cellspacing="0" id="specialtyCourseable">
  45. <tr>
  46. <td style="color:red;">
  47. @Html.LabelFor(x => x.Code):
  48. </td>
  49. <td>
  50. @Html.TextBoxFor(x => x.Code, new TextBoxOptions() { IsEnabled = isEnable })
  51. </td>
  52. <td style="color:red;">
  53. @Html.LabelFor(x => x.Name):
  54. </td>
  55. <td>
  56. @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = isEnable })
  57. </td>
  58. </tr>
  59. <tr>
  60. <td>
  61. @Html.LabelFor(x => x.TeachingModeIDList):
  62. </td>
  63. <td colspan="3">
  64. @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, lcoptm)
  65. </td>
  66. </tr>
  67. <tr>
  68. <td>
  69. @Html.LabelFor(x => x.Remark):
  70. </td>
  71. <td colspan="3">
  72. @if (!isEnable)
  73. {
  74. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object>
  75. {
  76. { "style", "width: 90%;min-height: 60px" },
  77. { "disabled", "true" }
  78. })
  79. }
  80. else
  81. {
  82. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 60px" } })
  83. }
  84. </td>
  85. </tr>
  86. </table>
  87. </div>
  88. }
  89. </div>