@using Bowin.Web.Controls.Mvc;
@using EMIS.Web.Controls;
@{
ViewBag.Title = "List";
}
@section scripts{
}
@Html.Position()
异动申请列表
@Html.ContextMenuBar("List")
@*Html.PositionBatchModify()*@
@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new CheckBoxFieldColumn{ HeaderText="", FieldName="StudentChangeID" },
new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="异动学期", Align=AlignStyle.Center, Handle="edit", Width=0.06 },
new BoundFieldColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center, Width=0.06 },
new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, OrderFieldName="SexID", Width=0.02 },
new BoundFieldColumn { FieldName="ChangeTypeName", HeaderText="异动类型", Align=AlignStyle.Center, OrderFieldName="ChangeTypeID", Width=0.04, CustomFormatFun="SetRedColumn" },
new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, OrderFieldName="InSchoolStatusID", Width=0.04, CustomFormatFun="SetRedColumn" },
//new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center, OrderFieldName="StudentStatus", Width=0.04, CustomFormatFun="SetRedColumn" },
//new BoundFieldColumn { FieldName="BeforeStandardName", HeaderText="异动前专业", Align=AlignStyle.Center, Width=0.06 },
new BoundFieldColumn { FieldName="BeforeClassmajorName", HeaderText="异动前班级", Align=AlignStyle.Center, Width=0.12 },
new BoundFieldColumn { FieldName="BeforeInSchoolStatusName", HeaderText="在校状态(前)", Align=AlignStyle.Center, OrderFieldName="BeforeInSchoolStatusID", Width=0.05, CustomFormatFun="SetRedColumn" },
//new BoundFieldColumn { FieldName="BeforeStudentStatusName", HeaderText="学籍状态(前)", Align=AlignStyle.Center, OrderFieldName="BeforeStudentStatus", Width=0.05, CustomFormatFun="SetRedColumn" },
//new BoundFieldColumn { FieldName="AfterStandardName", HeaderText="异动后专业", Align=AlignStyle.Center, Width=0.06 },
new BoundFieldColumn { FieldName="AfterClassmajorName", HeaderText="异动后班级", Align=AlignStyle.Center, Width=0.12 },
new BoundFieldColumn { FieldName="AfterInSchoolStatusName", HeaderText="在校状态(后)", Align=AlignStyle.Center, OrderFieldName="AfterInSchoolStatusID", Width=0.05, CustomFormatFun="SetRedColumn" },
//new BoundFieldColumn { FieldName="AfterStudentStatusName", HeaderText="学籍状态(后)", Align=AlignStyle.Center, OrderFieldName="AfterStudentStatus", Width=0.05, CustomFormatFun="SetRedColumn" },
new BoundFieldColumn { FieldName="ChangeReasonName", HeaderText="异动原因", Align=AlignStyle.Center, OrderFieldName="ChangeReasonID", Width=0.08, OverflowLength=10 },
new BoundFieldColumn { FieldName="Description", HeaderText="申请说明", Align=AlignStyle.Center, Width=0.08, OverflowLength=10 },
//new BoundFieldColumn { FieldName="ReturnSchoolyearCode", HeaderText="返校学期", Align=AlignStyle.Center, Width=0.06 },
new BoundFieldColumn { FieldName="ChangeDate", HeaderText="异动日期", Align=AlignStyle.Center, Width=0.06, Formatter = Formatter.OnlyYearMonthDay },
//new BoundFieldColumn { FieldName="ReportStatusName", HeaderText="注册状态", Align=AlignStyle.Center, OrderFieldName="ReportStatus", Width=0.04, CustomFormatFun="SetRedColumn" },
//new BoundFieldColumn { FieldName="CampusCode", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.05 },
//new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("Campus"), Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
//new BoundFieldColumn { FieldName="CollegeNo", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
//new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
//new BoundFieldColumn { FieldName="CreateUserName", HeaderText="申请人", Align=AlignStyle.Center, Width=0.04 },
new ApproveStatusColumn { FieldName="ApprovalStatusName", TableName=typeof(EMIS.Entities.CF_DifferentDynamic).Name, IDFieldName="StudentChangeID", HeaderText="状态", Align=AlignStyle.Center, Width=0.03 }
//new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.02, OverflowLength=3 }
},
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/StudentChange/List"),
ID = "dgStudentChangeList",
IsPagination = true,
IsShowRowNumbers = true,
IsSingleSelect = false
})