Edit.cshtml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. @model EMIS.ViewModel.EvaluationManage.EvaluationSetting.EvaluationParticipateTypeView
  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. var isDisable = Request["type"] == "detail" ? false : (Request["type"] == "edit" ? false : true);
  8. }
  9. @section scripts{
  10. <script src="~/Scripts/Business/EvaluationManage/EvaluationSetting/EvaluationParticipateTypeEdit.js" type="text/javascript"></script>
  11. <script type="text/javascript">
  12. var nonSelect = "@DropdownList.SELECT_ALL";
  13. </script>
  14. }
  15. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  16. @using (Ajax.BeginForm(new AjaxOptions
  17. {
  18. OnSuccess = "EMISFunction.FormSuccess",
  19. OnBegin = "EMISFunction.FormSubmit",
  20. OnComplete = "EMISFunction.FormComplete" }))
  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.EvaluationParticipateTypeID)
  33. <table cellpadding="0" cellspacing="0" id="collegePrioritytable">
  34. <tr>
  35. <td>
  36. @Html.LabelFor(x => x.ParticipateTypeID):
  37. </td>
  38. <td>
  39. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.EM_ParticipateType, (x => x.ParticipateTypeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isDisable, OnSelect = "queryParticipateType" })
  40. </td>
  41. <td>
  42. @Html.LabelFor(x => x.ParticipateTypeCode):
  43. </td>
  44. <td>
  45. @Html.TextBoxFor(x => x.ParticipateTypeCode, new TextBoxOptions { IsEnabled = false })
  46. </td>
  47. </tr>
  48. <tr>
  49. <td style="color:red;">
  50. @Html.LabelFor(x => x.IsStudent):
  51. </td>
  52. <td>
  53. @if (!isDisable)
  54. {
  55. @Html.CheckBoxFor(x => x.IsStudent, new Dictionary<string, object>() { { "disabled", isDisable } })
  56. }
  57. else
  58. {
  59. @Html.CheckBoxFor(x => x.IsStudent)
  60. }
  61. </td>
  62. <td style="color:red;">
  63. @Html.LabelFor(x => x.Number):
  64. </td>
  65. <td>
  66. @Html.TextBoxFor(x => x.Number, new TextBoxOptions { IsEnabled = isEnable })
  67. </td>
  68. </tr>
  69. <tr>
  70. <td>
  71. @Html.LabelFor(x => x.StartTime):
  72. </td>
  73. <td>
  74. @Html.TextBoxFor(x => x.StartTime, new TextBoxOptions
  75. {
  76. TextBoxType = TextBoxType.DateTime,
  77. IsEnabled = isEnable
  78. })
  79. </td>
  80. <td>
  81. @Html.LabelFor(x => x.EndTime):
  82. </td>
  83. <td>
  84. @Html.TextBoxFor(x => x.EndTime, new TextBoxOptions
  85. {
  86. TextBoxType = TextBoxType.DateTime,
  87. IsEnabled = isEnable
  88. })
  89. </td>
  90. </tr>
  91. <tr>
  92. <td>
  93. @Html.LabelFor(x => x.Remark):
  94. </td>
  95. <td colspan="3">
  96. @if (!isEnable)
  97. {
  98. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object>
  99. {
  100. { "style", "width: 90%;min-height: 20px" },
  101. { "disabled", "true" }
  102. })
  103. }
  104. else
  105. {
  106. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 20px" } })
  107. }
  108. </td>
  109. </tr>
  110. </table>
  111. </div>
  112. }
  113. </div>