Add.cshtml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. @using EMIS.Web.Controls;
  2. @using Bowin.Web.Controls.Mvc;
  3. @{
  4. ViewBag.Title = "Edit";
  5. ComboGridOptions cgop = new ComboGridOptions
  6. {
  7. TextField = "LoginID",
  8. ValueField = "UserID",
  9. Name = "userID",
  10. ID = "userID",
  11. GridOptions = new DataGridOptions
  12. {
  13. Columns = new List<DataGridColumn>()
  14. {
  15. new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Width=0.1, Align=AlignStyle.Center },
  16. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.3, Align=AlignStyle.Center }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/Students/List"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false
  23. }
  24. };
  25. }
  26. @section scripts{
  27. <script src="~/Scripts/Business/RetakeManage/RetakePlanPrescanAdd.js" type="text/javascript"></script>
  28. <script type="text/javascript">
  29. var nonSelect = "@DropdownList.SELECT_ALL";
  30. </script>
  31. }
  32. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  33. @using (Ajax.BeginForm(new AjaxOptions
  34. {
  35. OnSuccess = "EMISFunction.FormSuccess",
  36. OnBegin = "EMISFunction.FormSubmit",
  37. OnComplete = "EMISFunction.FormComplete"
  38. }))
  39. {
  40. <div class="p_title">
  41. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  42. 添加重修学生</div>
  43. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Add")</div>
  44. </div>
  45. <div class="search_list">
  46. <table cellpadding="0" cellspacing="0">
  47. <tr>
  48. <td>学号:
  49. </td>
  50. <td>@Html.ComboGrid(cgop)
  51. </td>
  52. </tr>
  53. </table>
  54. </div>
  55. }
  56. </div>