Edit.cshtml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. @model EMIS.ViewModel.ScoreManage.ImportScoreView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. //学生信息
  7. ComboGridOptions cgopStudent = new ComboGridOptions
  8. {
  9. TextField = "LoginID",
  10. ValueField = "UserID",
  11. EmptyText = "请选择",
  12. IsAutoComplete = true,
  13. MinReloadCharactor = EMIS.Utility.Const.LOCAL_SETTING_LoginIDLength,
  14. GridOptions = new DataGridOptions
  15. {
  16. Columns = new List<DataGridColumn>()
  17. {
  18. new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.3 },
  19. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.1 },
  20. },
  21. PageSize = 5,
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Content("~/Students/List"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false
  27. }
  28. };
  29. //课程信息
  30. ComboGridOptions cgopCoursematerial = new ComboGridOptions
  31. {
  32. TextField = "CourseName",
  33. ValueField = "CoursematerialID",
  34. EmptyText = "请选择",
  35. IsAutoComplete = true,
  36. GridOptions = new DataGridOptions
  37. {
  38. Columns = new List<DataGridColumn>()
  39. {
  40. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 },
  41. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.3 }
  42. },
  43. PageSize = 5,
  44. IsCheckOnSelect = true,
  45. DataSourceUrl = Url.Content("~/Coursematerial/List"),
  46. IsPagination = true,
  47. IsShowRowNumbers = true,
  48. IsSingleSelect = false
  49. }
  50. };
  51. }
  52. @section scripts{
  53. <script src="~/Scripts/Business/ScoreManage/ImportScoreEdit.js" type="text/javascript"></script>
  54. <script type="text/javascript">
  55. </script>
  56. }
  57. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  58. @using (Ajax.BeginForm(new AjaxOptions
  59. {
  60. OnSuccess = "EMISFunction.FormSuccess",
  61. OnBegin = "EMISFunction.FormSubmit",
  62. OnComplete = "EMISFunction.FormComplete"
  63. }))
  64. {
  65. <div class="p_title">
  66. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  67. </div>
  68. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  69. </div>
  70. <div class="search_list">
  71. <table cellpadding="0" cellspacing="0" id="importscoretable">
  72. <tr>
  73. <td>
  74. @Html.LabelFor(x => x.StudentNo):
  75. </td>
  76. <td>
  77. @Html.ComboGridFor(x => x.UserID, cgopStudent)
  78. </td>
  79. <td>
  80. @Html.LabelFor(x => x.SchoolyearCode):
  81. </td>
  82. <td>
  83. @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions
  84. {
  85. BindType = DropdownListBindType.PleaseSelect,
  86. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid")
  87. })
  88. </td>
  89. </tr>
  90. <tr>
  91. <td>
  92. @Html.LabelFor(x => x.CourseName):
  93. </td>
  94. <td>
  95. @Html.ComboGridFor(x => x.CoursematerialID, cgopCoursematerial)
  96. </td>
  97. <td>
  98. @Html.LabelFor(x => x.Score):
  99. </td>
  100. <td>
  101. @Html.TextBoxFor(x => x.Score, new Dictionary<string, object> { })
  102. </td>
  103. </tr>
  104. <tr>
  105. <td>
  106. @Html.LabelFor(x => x.Remark):
  107. </td>
  108. <td colspan="3">
  109. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width:98%;" } })
  110. </td>
  111. </tr>
  112. </table>
  113. </div>
  114. }
  115. </div>