Cancel.cshtml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. @model EMIS.ViewModel.EvaluationManage.EvaluationManage.EvaluationCollegeScoreView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Cancel";
  6. var isEnable = (Request["evaluationCollegeScoreID"] ?? "") == "";
  7. //院系所
  8. ComboGridOptions cgopCollege = new ComboGridOptions
  9. {
  10. ID = "CollegeID",
  11. TextField = "Name",
  12. ValueField = "CollegeID",
  13. IsEnabled = isEnable,
  14. OnSelect = "queryCollege",
  15. GridOptions = new DataGridOptions
  16. {
  17. Columns = new List<DataGridColumn>()
  18. {
  19. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  20. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  21. },
  22. PageSize = 5,
  23. IsCheckOnSelect = true,
  24. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  25. IsPagination = true,
  26. IsShowRowNumbers = true,
  27. IsSingleSelect = false,
  28. }
  29. };
  30. //教研室
  31. ComboGridOptions cgopDepartment = new ComboGridOptions
  32. {
  33. ID = "DepartmentID",
  34. TextField = "Name",
  35. ValueField = "DepartmentID",
  36. IsEnabled = isEnable,
  37. OnSelect = "queryDepartment",
  38. GridOptions = new DataGridOptions
  39. {
  40. Columns = new List<DataGridColumn>()
  41. {
  42. new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.1 },
  43. new BoundFieldColumn { FieldName="Name", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.2 },
  44. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CourseCollege"), Align=AlignStyle.Center, Width=0.2 }
  45. },
  46. PageSize = 5,
  47. IsCheckOnSelect = true,
  48. DataSourceUrl = Url.Content("~/Department/List"),
  49. IsPagination = true,
  50. IsShowRowNumbers = true,
  51. IsSingleSelect = false
  52. }
  53. };
  54. //课程信息
  55. ComboGridOptions cgopCourse = new ComboGridOptions
  56. {
  57. ID = "CoursematerialID",
  58. TextField = "CourseName",
  59. ValueField = "CoursematerialID",
  60. IsEnabled = isEnable,
  61. GridOptions = new DataGridOptions
  62. {
  63. Columns = new List<DataGridColumn>()
  64. {
  65. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 },
  66. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 },
  67. new BoundFieldColumn { FieldName="IsEnableName", HeaderText="是否启用", Align=AlignStyle.Center, Width=0.1, CustomFormatFun="SetRedColumn" }
  68. },
  69. PageSize = 5,
  70. IsCheckOnSelect = true,
  71. DataSourceUrl = Url.Content("~/Coursematerial/GetEnableAndUseCoursematerialView?coursematerialID=" + Model.CoursematerialID),
  72. IsPagination = true,
  73. IsShowRowNumbers = true,
  74. IsSingleSelect = false
  75. }
  76. };
  77. //任课教师
  78. ComboGridOptions cgopStaff = new ComboGridOptions
  79. {
  80. TextField = "Name",
  81. ValueField = "UserID",
  82. IsEnabled = isEnable,
  83. GridOptions = new DataGridOptions
  84. {
  85. Columns = new List<DataGridColumn>()
  86. {
  87. new LinkButtonColumn { FieldName="StaffCode", HeaderText="教师工号", Align=AlignStyle.Center ,Width=0.1 },
  88. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center ,Width=0.1 }
  89. },
  90. PageSize = 5,
  91. IsCheckOnSelect = true,
  92. DataSourceUrl = Url.Content("~/Staff/List"),
  93. IsPagination = true,
  94. IsShowRowNumbers = true,
  95. IsSingleSelect = false
  96. }
  97. };
  98. }
  99. @section scripts{
  100. <script src="~/Scripts/Business/EvaluationManage/EvaluationManage/EvaluationCollegeScoreCancel.js" type="text/javascript"></script>
  101. }
  102. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  103. @using (Ajax.BeginForm(new AjaxOptions
  104. {
  105. OnSuccess = "EMISFunction.FormSuccess",
  106. OnBegin = "EMISFunction.FormSubmit",
  107. OnComplete = "EMISFunction.FormComplete"
  108. }))
  109. {
  110. <div class="p_title">
  111. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  112. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Cancel")</div>
  113. </div>
  114. <div class="search_list">
  115. @Html.HiddenFor(x => x.EvaluationCollegeScoreID)
  116. <table cellpadding="0" cellspacing="0" id="evaluationcollegescoretable">
  117. <tr>
  118. <td>
  119. @Html.LabelFor(x => x.SchoolyearCode):
  120. </td>
  121. <td>
  122. @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions
  123. {
  124. BindType = DropdownListBindType.PleaseSelect,
  125. TextField = "Text",
  126. ValueField = "Value",
  127. IsEnabled = isEnable,
  128. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid")
  129. })
  130. </td>
  131. <td>
  132. @Html.LabelFor(x => x.CollegeName):
  133. </td>
  134. <td>
  135. @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
  136. </td>
  137. </tr>
  138. <tr>
  139. <td>
  140. @Html.LabelFor(x => x.CourseName):
  141. </td>
  142. <td>
  143. @Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
  144. </td>
  145. <td>
  146. @Html.LabelFor(x => x.DepartmentName):
  147. </td>
  148. <td>
  149. @Html.ComboGridFor(x => x.DepartmentID, cgopDepartment)
  150. </td>
  151. </tr>
  152. <tr>
  153. <td style="color:red;">
  154. @Html.LabelFor(x => x.StaffName):
  155. </td>
  156. <td>
  157. @Html.ComboGridFor(x => x.UserID, cgopStaff)
  158. </td>
  159. <td style="color:red;">
  160. @Html.LabelFor(x => x.TotalScore):
  161. </td>
  162. <td>
  163. @Html.TextBoxFor(x => x.TotalScore, new TextBoxOptions() { IsEnabled = isEnable })
  164. </td>
  165. </tr>
  166. <tr>
  167. <td>
  168. @Html.LabelFor(x => x.Remark):
  169. </td>
  170. <td colspan="3">
  171. @if (!isEnable)
  172. {
  173. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object>
  174. {
  175. { "style", "width: 90%;min-height: 45px" },
  176. { "disabled", "true" }
  177. })
  178. }
  179. else
  180. {
  181. @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 45px" } })
  182. }
  183. </td>
  184. </tr>
  185. <tr>
  186. <td>
  187. @Html.LabelFor(x => x.Comment):
  188. </td>
  189. <td colspan="3">
  190. @Html.TextAreaFor(x => x.Comment, new Dictionary<string, object>
  191. {
  192. { "style", "width: 90%;min-height: 50px" }
  193. })
  194. </td>
  195. </tr>
  196. </table>
  197. </div>
  198. }
  199. </div>