BatchUpdate.cshtml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. @model EMIS.ViewModel.EducationManagement.EducationMissionClassView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "DataRange";
  6. ComboGridOptions time = new ComboGridOptions
  7. {
  8. TextField = "time_starTime_endTime",
  9. ValueField = "CoursesTimeID",
  10. GridOptions = new DataGridOptions
  11. {
  12. Columns = new List<DataGridColumn>()
  13. {
  14. //new BoundFieldColumn { FieldName="TimesSegmentName", HeaderText="时间段", Align=AlignStyle.Center },
  15. new BoundFieldColumn { FieldName="time_starTime_endTime", HeaderText="上课时间", Align=AlignStyle.Center },
  16. //new BoundFieldColumn { FieldName="EndDate", HeaderText="结束时间", Align=AlignStyle.Center }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/CoursesTime/List"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false
  23. }
  24. };
  25. }
  26. @section scripts{
  27. <script type="text/javascript">
  28. var nonSelect = "@DropdownList.SELECT_ALL";
  29. function EducationMissionClass_BatchUpdateSave() {
  30. var id = $("#CourseTimeID").combogridX("getValue");
  31. if (id == nonSelect || id == "") {
  32. $.messager.alert("系统提示", "请选择课时类别。");
  33. return;
  34. }
  35. $(document.forms[0]).submit();
  36. }
  37. </script>
  38. }
  39. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  40. @using (Ajax.BeginForm(new AjaxOptions
  41. {
  42. OnSuccess = "EMISFunction.FormSuccess",
  43. OnBegin = "EMISFunction.FormSubmit",
  44. OnComplete = "EMISFunction.FormComplete"
  45. }))
  46. {
  47. <div class="p_title">
  48. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("BatchUpdate")</div>
  49. </div>
  50. <div class="search_list">
  51. @Html.HiddenFor(x => x.EducationMissionClassStr)
  52. <table cellpadding="0" cellspacing="0" id="BatchInitPassword">
  53. <tr>
  54. <td>@Html.LabelFor(x => x.CourseTimeID):
  55. </td>
  56. <td>@Html.ComboGridFor(x => x.CourseTimeID, time)
  57. </td>
  58. </tr>
  59. <tr>
  60. <td>@Html.LabelFor(x => x.ClassroomTypeID):
  61. </td>
  62. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ClassroomType, (x => x.ClassroomTypeID))
  63. </td>
  64. </tr>
  65. </table>
  66. </div>
  67. }
  68. </div>