StudentByApplyEdit.cshtml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. @model EMIS.ViewModel.ScoreManage.ScoreConvertByApplyView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @using EMIS.ViewModel;
  5. @{
  6. ViewBag.Title = "Edit";
  7. ComboGridOptions optUser = new ComboGridOptions
  8. {
  9. TextField = "LoginID",
  10. ValueField = "UserID",
  11. IsAutoComplete = true,
  12. MinReloadCharactor = EMIS.Utility.Const.LOCAL_SETTING_LoginIDLength,
  13. OnSelect = "queryCourse",
  14. IsEnabled = false,
  15. GridOptions = new DataGridOptions
  16. {
  17. Columns = new List<DataGridColumn>()
  18. {
  19. new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Width=0.1, Align=AlignStyle.Center },
  20. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.1, Align=AlignStyle.Center },
  21. },
  22. OnLoadSuccessFun = "queryCourse",
  23. IsCheckOnSelect = true,
  24. DataSourceUrl = Url.Content("~/Students/List"),
  25. IsPagination = true,
  26. IsShowRowNumbers = true,
  27. IsSingleSelect = false,
  28. }
  29. };
  30. ComboGridOptions optTargetCoursematerial = new ComboGridOptions
  31. {
  32. TextField = "CourseName",
  33. ValueField = "CoursematerialID",
  34. MinReloadCharactor = EMIS.Utility.Const.LOCAL_SETTING_LoginIDLength,
  35. OnSelect = "queryScore",
  36. GridOptions = new DataGridOptions
  37. {
  38. Columns = new List<DataGridColumn>()
  39. {
  40. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.1, Align=AlignStyle.Center },
  41. },
  42. OnLoadSuccessFun = "queryScore",
  43. IsAutoLoad = false,
  44. IsCheckOnSelect = true,
  45. DataSourceUrl = Url.Content("~/ScoreConvert/TargetCoursematerialList"),
  46. IsPagination = true,
  47. IsShowRowNumbers = true,
  48. IsSingleSelect = false
  49. }
  50. };
  51. }
  52. @section scripts{
  53. <script src="~/Scripts/Business/ScoreManage/StudentScoreConvertByApplyEdit.js" type="text/javascript"></script>
  54. <script type = "text/javascript">
  55. var nonSelect = "@DropdownList.SELECT_ALL";
  56. </script>
  57. }
  58. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  59. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  60. {
  61. <div class="p_title">
  62. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  63. </div>
  64. <div class="search_list">
  65. @Html.HiddenFor(x => x.ScoreConvertByApplyID)
  66. @Html.HiddenFor(x => x.IsChangeAttachment)
  67. <table cellpadding="0" cellspacing="0" id="departmenttable">
  68. <tr>
  69. <td>
  70. @Html.LabelFor(x => x.UserID):
  71. </td>
  72. <td>
  73. @Html.ComboGridFor(x => x.UserID, optUser)
  74. </td>
  75. <td>
  76. @Html.LabelFor(x => x.CoursematerialID):
  77. </td>
  78. <td>
  79. @Html.ComboGridFor(x => x.CoursematerialID, optTargetCoursematerial)
  80. </td>
  81. </tr>
  82. <tr>
  83. <td>
  84. @Html.Label("学时数"):
  85. </td>
  86. <td>
  87. @Html.TextBox(new TextBoxOptions { ID = "TotalHours", IsEnabled = false })
  88. </td>
  89. <td>
  90. @Html.LabelFor(x => x.TotalScore):
  91. </td>
  92. <td>
  93. @Html.TextBoxFor(x => x.TotalScore)
  94. </td>
  95. </tr>
  96. <tr>
  97. <td>
  98. @Html.LabelFor(x => x.Reason):
  99. </td>
  100. <td colspan="3">
  101. @Html.TextAreaFor(x => x.Reason, new { style = "width: 98%;" })
  102. </td>
  103. </tr>
  104. <tr>
  105. <td>
  106. @Html.LabelFor(x => x.UploadAttachmentName):
  107. </td>
  108. <td colspan="3">
  109. @Html.TextBoxFor(x => x.UploadAttachmentName, new TextBoxOptions { IsEnabled = false }, new Dictionary<string, string> { { "style", "width:98%;" } })
  110. </td>
  111. </tr>
  112. </table>
  113. </div>
  114. }
  115. </div>