ByApplyEdit.cshtml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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 optCollege = new ComboGridOptions
  8. {
  9. TextField = "Name",
  10. ValueField = "CollegeID",
  11. OnSelect = "queryStandard",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/College/List"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false,
  23. }
  24. };
  25. ComboGridOptions optStandard = new ComboGridOptions
  26. {
  27. TextField = "StandardName",
  28. ValueField = "StandardID",
  29. OnSelect = "queryClass",
  30. GridOptions = new DataGridOptions
  31. {
  32. Columns = new List<DataGridColumn>()
  33. {
  34. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  35. },
  36. OnLoadSuccessFun = "queryClass",
  37. IsCheckOnSelect = true,
  38. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  39. IsPagination = true,
  40. IsShowRowNumbers = true,
  41. IsSingleSelect = false,
  42. }
  43. };
  44. ComboGridOptions optClassmajor = new ComboGridOptions
  45. {
  46. TextField = "Name",
  47. ValueField = "ClassmajorID",
  48. OnSelect = "queryUser",
  49. GridOptions = new DataGridOptions
  50. {
  51. Columns = new List<DataGridColumn>()
  52. {
  53. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  54. },
  55. IsAutoLoad = false,
  56. OnLoadSuccessFun = "queryUser",
  57. IsCheckOnSelect = true,
  58. DataSourceUrl = Url.Content("~/Classmajor/List"),
  59. IsPagination = true,
  60. IsShowRowNumbers = true,
  61. IsSingleSelect = false
  62. }
  63. };
  64. ComboGridOptions optUser = new ComboGridOptions
  65. {
  66. TextField = "LoginID",
  67. ValueField = "UserID",
  68. IsAutoComplete = true,
  69. MinReloadCharactor = EMIS.Utility.Const.LOCAL_SETTING_LoginIDLength,
  70. OnSelect = "queryCourse",
  71. GridOptions = new DataGridOptions
  72. {
  73. Columns = new List<DataGridColumn>()
  74. {
  75. new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Width=0.1, Align=AlignStyle.Center },
  76. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.1, Align=AlignStyle.Center },
  77. },
  78. OnLoadSuccessFun = "queryCourse",
  79. IsCheckOnSelect = true,
  80. DataSourceUrl = Url.Content("~/Students/List"),
  81. IsPagination = true,
  82. IsShowRowNumbers = true,
  83. IsSingleSelect = false
  84. }
  85. };
  86. ComboGridOptions optTargetCoursematerial = new ComboGridOptions
  87. {
  88. TextField = "CourseName",
  89. ValueField = "CoursematerialID",
  90. MinReloadCharactor = EMIS.Utility.Const.LOCAL_SETTING_LoginIDLength,
  91. OnSelect = "queryScore",
  92. GridOptions = new DataGridOptions
  93. {
  94. Columns = new List<DataGridColumn>()
  95. {
  96. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.1, Align=AlignStyle.Center },
  97. },
  98. OnLoadSuccessFun = "queryScore",
  99. IsAutoLoad = false,
  100. IsCheckOnSelect = true,
  101. DataSourceUrl = Url.Content("~/ScoreConvert/TargetCoursematerialList"),
  102. IsPagination = true,
  103. IsShowRowNumbers = true,
  104. IsSingleSelect = false
  105. }
  106. };
  107. }
  108. @section scripts{
  109. <script src="~/Scripts/Business/ScoreManage/ScoreConvertByApplyEdit.js" type="text/javascript"></script>
  110. <script type = "text/javascript">
  111. var nonSelect = "@DropdownList.SELECT_ALL";
  112. </script>
  113. }
  114. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  115. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  116. {
  117. <div class="p_title">
  118. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  119. </div>
  120. <div class="search_list">
  121. @Html.HiddenFor(x => x.ScoreConvertByApplyID)
  122. @Html.HiddenFor(x => x.IsChangeAttachment)
  123. <table cellpadding="0" cellspacing="0" id="departmenttable">
  124. <tr>
  125. <td>
  126. @Html.LabelFor(x => x.CollegeID):
  127. </td>
  128. <td>
  129. @Html.ComboGridFor(x => x.CollegeID, optCollege)
  130. </td>
  131. <td>
  132. @Html.LabelFor(x => x.YearID):
  133. </td>
  134. <td>
  135. @Html.DictionaryDropDownListFor(DictionaryItem.CF_Year, (x => x.YearID))
  136. </td>
  137. </tr>
  138. <tr>
  139. <td>
  140. @Html.LabelFor(x => x.StandardID):
  141. </td>
  142. <td>
  143. @Html.ComboGridFor(x => x.StandardID, optStandard)
  144. </td>
  145. <td>
  146. @Html.LabelFor(x => x.ClassmajorID):
  147. </td>
  148. <td>
  149. @Html.ComboGridFor(x => x.ClassmajorID, optClassmajor)
  150. </td>
  151. </tr>
  152. <tr>
  153. <td>
  154. @Html.LabelFor(x => x.UserID):
  155. </td>
  156. <td>
  157. @Html.ComboGridFor(x => x.UserID, optUser)
  158. </td>
  159. <td>
  160. @Html.LabelFor(x => x.CoursematerialID):
  161. </td>
  162. <td>
  163. @Html.ComboGridFor(x => x.CoursematerialID, optTargetCoursematerial)
  164. </td>
  165. </tr>
  166. <tr>
  167. <td>
  168. @Html.Label("学时数"):
  169. </td>
  170. <td>
  171. @Html.TextBox(new TextBoxOptions { ID = "TotalHours", IsEnabled = false })
  172. </td>
  173. <td>
  174. @Html.LabelFor(x => x.TotalScore):
  175. </td>
  176. <td>
  177. @Html.TextBoxFor(x => x.TotalScore)
  178. </td>
  179. </tr>
  180. <tr>
  181. <td>
  182. @Html.LabelFor(x => x.Reason):
  183. </td>
  184. <td colspan="3">
  185. @Html.TextAreaFor(x => x.Reason, new { style = "width: 98%;" })
  186. </td>
  187. </tr>
  188. <tr>
  189. <td>
  190. @Html.LabelFor(x => x.UploadAttachmentName):
  191. </td>
  192. <td colspan="3">
  193. @Html.TextBoxFor(x => x.UploadAttachmentName, new TextBoxOptions { IsEnabled = false }, new Dictionary<string, string> { { "style", "width:98%;" } })
  194. </td>
  195. </tr>
  196. </table>
  197. </div>
  198. }
  199. </div>