SubmitStudentDistribute.cshtml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @model EMIS.ViewModel.TeachingMaterial.StudentDistributeView
  4. @{
  5. ViewBag.Title = "SubmitStudentDistribute";
  6. ComboGridOptions cgopUser = new ComboGridOptions
  7. {
  8. TextField = "UserName",
  9. ValueField = "UserID",
  10. GridOptions = new DataGridOptions
  11. {
  12. Columns = new List<DataGridColumn>()
  13. {
  14. new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Width=0.25, Align=AlignStyle.Center },
  15. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.1, Align=AlignStyle.Center }
  16. },
  17. IsCheckOnSelect = true,
  18. DataSourceUrl = Url.Content("~/Students/StudentOnlyInSchool"),
  19. IsPagination = true,
  20. IsShowRowNumbers = true,
  21. IsSingleSelect = false
  22. }
  23. };
  24. }
  25. @section scripts{
  26. <script type="text/javascript">
  27. //保存信息
  28. function StudentDistribute_Save() {
  29. $(document.forms[0]).submit();
  30. }
  31. </script>
  32. <style type="text/css">
  33. #stafftable
  34. {
  35. width: 100%;
  36. border: 0px none;
  37. }
  38. #stafftable tr
  39. {
  40. min-height: 30px;
  41. }
  42. </style>
  43. }
  44. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  45. @using (Ajax.BeginForm(new AjaxOptions { Url = "/StudentDistribute/SubmitStudentDistribute", OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  46. {
  47. @Html.HiddenFor(x => x.StudentDistributeID)
  48. <div class="p_title">
  49. @* <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  50. 发放提交确定
  51. </div>*@
  52. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("SubmitConfirm")</div>
  53. </div>
  54. <div class="search_list">
  55. <table cellpadding="0" cellspacing="0" id="stafftable">
  56. <tr>
  57. <td>@Html.LabelFor(x => x.StudentDistributeNo):
  58. </td>
  59. <td>@Html.TextBoxFor(x => x.StudentDistributeNo)
  60. </td>
  61. <td>@Html.LabelFor(x => x.RecipientUser):
  62. </td>
  63. <td>@Html.ComboGridFor(x => x.RecipientUserID, cgopUser)
  64. </td>
  65. </tr>
  66. <tr>
  67. <td>@Html.LabelFor(x => x.Remark):
  68. </td>
  69. <td colspan="3">@Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 500px;" } })
  70. </td>
  71. </tr>
  72. </table>
  73. </div>
  74. }
  75. </div>