GroupScore.cshtml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "GroupScore";
  5. }
  6. @section scripts
  7. {
  8. <script type="text/javascript" src="~/Scripts/Business/DQPSystem/SOCDetailGroupScoreEdit.js"></script>
  9. }
  10. <div class="p_title">
  11. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  12. </div>
  13. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  14. </div>
  15. @using (Ajax.BeginForm(new AjaxOptions { Url = Url.Content("~/SOCDetailScore/GroupScoreSave?socDetailGroupID=" + Request["socDetailGroupID"]), OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  16. {
  17. <div class="search_list">
  18. <table cellpadding="0" cellspacing="0">
  19. <tr>
  20. <td>
  21. <label>统一评分:</label>
  22. </td>
  23. <td>
  24. @Html.TextBox(new TextBoxOptions { ID = "Score", Name = "Score", OnChange = "", Validator = new OnlyMoneyValidator() })
  25. </td>
  26. </tr>
  27. <tr>
  28. <td>
  29. <label>单独评分:</label>
  30. </td>
  31. <td>
  32. @Html.DataGrid(new DataGridOptions
  33. {
  34. Columns = new List<DataGridColumn>()
  35. {
  36. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center },
  37. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center },
  38. new TextBoxColumn { FieldName="Score", HeaderText="评分", Align=AlignStyle.Center, Validator=new OnlyMoneyValidator() }
  39. },
  40. IsPostBack = true,
  41. IsCheckOnSelect = true,
  42. OnLoadSuccessFun = "onGridLoadSuccess",
  43. DataSourceUrl = Url.Content("~/SOCDetailScore/GroupScore?SOCDetailGroupID=" + Request["socDetailGroupID"]),
  44. ID = "dgStudentScoreList",
  45. IsPagination = false,
  46. IsShowRowNumbers = true,
  47. IsSingleSelect = false
  48. })
  49. </td>
  50. </tr>
  51. </table>
  52. </div>
  53. }