EvaluationSettingStaffDetail.cshtml 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Common.Utility;
  4. @using EMIS.ViewModel;
  5. @{
  6. ViewBag.Title = "List";
  7. Guid? evaluationSettingID = Request.QueryString["evaluationSettingID"].ParseStrTo<Guid>();
  8. }
  9. @section scripts{
  10. <script src="~/Scripts/Business/EvaluationManage/EvaluationManage/EvaluationSettingEdit.js"></script>
  11. <script type="text/javascript">
  12. $(document).ready(function () {
  13. var JsonDate = top.$("#@(Request["WindowID"])").data("inputData");
  14. $("#evaluationSettingID").val(JsonDate.evaluationSettingID);
  15. });
  16. function EvaluationStudent_Save() {
  17. $("#SaveType").val(1);
  18. $(document.forms[0]).submit(); //提交表单
  19. }
  20. </script>
  21. }
  22. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  23. @using (Ajax.BeginForm(new AjaxOptions { Url = "/EvaluationSetting/Save", OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  24. {
  25. <div class="p_title">
  26. @Html.Hidden("evaluationSettingID")
  27. @Html.Hidden("SaveType")
  28. @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  29. 同行明细信息
  30. </div>*@
  31. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  32. @if (ViewBag.OpenStatus != CF_GeneralPurpose.IsYes.ToString())//如果已经提交、那么删除、增加按钮不显示
  33. {
  34. @Html.ContextMenuBar("TeaConfirm")
  35. }
  36. </div>
  37. </div>
  38. <div class="search_list">
  39. @if (ViewBag.OpenStatus != CF_GeneralPurpose.IsYes.ToString())//如果已经提交、那么删除、增加按钮不显示
  40. {
  41. @Html.ContextMenuBar("Edit-TeacherGrid")
  42. }
  43. @Html.DataGrid(new DataGridOptions
  44. {
  45. Columns = new List<DataGridColumn>()
  46. {
  47. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
  48. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08 },
  49. new BoundFieldColumn { FieldName="StaffCode", HeaderText="教职工", Align=AlignStyle.Center, Width=0.06 },
  50. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.05 },
  51. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="教研室", Align=AlignStyle.Center, Width=0.1, OverflowLength=10 },
  52. //new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.04 },
  53. new BoundFieldColumn { FieldName="UserCodes", HeaderText="被评教师编号", Align=AlignStyle.Center, Width=0.06, OverflowLength=8 },
  54. new BoundFieldColumn { FieldName="UserNames", HeaderText="被评教师",Align=AlignStyle.Center, Width=0.04, OverflowLength=4 },
  55. new BoundFieldColumn { FieldName="EvaluationTableName", HeaderText="评价表名",Align=AlignStyle.Center, Width=0.05, OverflowLength=8 }
  56. },
  57. PageSize =50,
  58. IsCheckOnSelect = true,
  59. DataSourceUrl = Url.Content("~/EvaluationSetting/GetStaffDetail?evaluationSettingID=" + evaluationSettingID),
  60. ID = "dgEvaluationSettingStaffDetailList",
  61. IsPagination = true,
  62. IsShowRowNumbers = true,
  63. IsPostBack = true,
  64. IsSingleSelect = false
  65. })
  66. </div>
  67. }
  68. </div>