@using EMIS.Web.Controls;
@using Bowin.Web.Controls.Mvc;
@{
ViewBag.Title = "SpecialtyPlanList";
Guid? graduationApplyID = new Guid(Request["graduationApplyID"]);
}
@section scripts{
}
@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new CheckBoxFieldColumn{ HeaderText="", FieldName="SpecialtyPlanID" },
new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08 },
new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1, OverflowLength=10 },
new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, OrderFieldName="CourseTypeID", Width=0.05 },
new BoundFieldColumn { FieldName="Credit", HeaderText="课程学分", Align=AlignStyle.Center, Width=0.04 },
new BoundFieldColumn { FieldName="IsMainCourseName", HeaderText="学位课程", OrderFieldName="IsMainCourse", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
new BoundFieldColumn { FieldName="StarttermName", HeaderText="开课学期", OrderFieldName="StarttermID", Align=AlignStyle. Center, Width=0.04 },
new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", OrderFieldName="Totalhours", Align=AlignStyle.Center, Width=0.03 },
new BoundFieldColumn { FieldName="HandleModeName", HeaderText="处理方式", OrderFieldName="HandleModeID", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=3 }
},
IsPostBack = true,
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/GraduationApply/SpecialtyPlanList?graduationApplyID=" + graduationApplyID),
ID = "dgSpecialtyPlanList",
IsPagination = true,
IsShowRowNumbers = true,
IsSingleSelect = false
})