Generate.cshtml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. @using EMIS.Web.Controls;
  2. @using Bowin.Web.Controls.Mvc;
  3. @{
  4. ViewBag.Title = "Edit";
  5. string SchoolYearID = ViewBag.SchoolYearID;
  6. ComboGridOptions cgop = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. Name = "CollegeDropdown",
  11. ID = "CollegeDropdown",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. }
  27. <style type="text/css">
  28. </style>
  29. @section scripts{
  30. <script type="text/javascript">
  31. var nonSelect = "@DropdownList.SELECT_ALL";
  32. function MinorGraduationApply_Generate(){
  33. $(document.forms[0]).submit();
  34. }
  35. </script>
  36. }
  37. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  38. @using (Ajax.BeginForm(new AjaxOptions
  39. {
  40. OnSuccess = "EMISFunction.FormSuccess",
  41. OnBegin = "EMISFunction.FormSubmit",
  42. OnComplete = "EMISFunction.FormComplete"
  43. }))
  44. {
  45. @Html.Hidden("IsGenerateNotSubmit")
  46. <div class="p_title">
  47. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  48. 生成辅修毕业名单</div>
  49. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  50. <div class="current_navbar toolbar">
  51. <div class="func_info">
  52. <a class="easyui-linkbutton" href="javascript:MinorGraduationApply_Generate()" data-options="iconCls:'icon-ok',plain:'true'"
  53. onfocus="this.blur()">生成</a>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. <div class="search_list">
  59. <table cellpadding="0" cellspacing="0" id="MinorGraduationApplytable">
  60. <tr>
  61. <td>
  62. <label>年级:</label>
  63. </td>
  64. <td>
  65. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "YearDropDown", Name = "YearDropDown" })
  66. </td>
  67. </tr>
  68. </table>
  69. </div>
  70. }
  71. </div>