@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "StudentDetail"; ComboGridOptions optCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "queryStandard", Name = "cgbCollege", ID = "cgbCollege", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/SOC/TeacherCollegeList"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions optStandard = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", OnSelect = "queryClass", Name = "cbgStandard", ID = "cbgStandard", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center } }, OnLoadSuccessFun = "queryClass", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions optCourse = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", OnSelect = "reload", Name = "cgbCourse", ID = "cgbCourse", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 } }, IsAutoLoad = false, OnLoadSuccessFun = "reload", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/SOC/TeacherCoursematerialList"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions optClassmajor = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", Name = "cbgClassmajor", ID = "cbgClassmajor", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center } }, IsAutoLoad = false, OnLoadSuccessFun = "reload", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/SOC/TeacherClassmajorList"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@Html.ContextMenuBar("StudentDetail")
@Html.Hidden("SOCDetailID") @Html.Hidden("SelectIDs")
@using (Ajax.BeginForm(new AjaxOptions { Url = Url.Content("~/SOCDetailScore/StudentSave"), OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn { HeaderText="", FieldName = "SOCDetailStudentID" }, new BoundFieldColumn { FieldName="UserID", HeaderText="学生ID", Align=AlignStyle.Center, Width=50, IsHidden = true }, new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=60 }, new BoundFieldColumn { FieldName="EducationMissionNameStr", HeaderText="任务班名", Align=AlignStyle.Center, Width=140 }, new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=60 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=120 }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=50 }, new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=100 }, //new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="所在班级", Align=AlignStyle.Center, Width=160 }, new BoundFieldColumn { FieldName="SOCDetailName", HeaderText="成果名称", Align=AlignStyle.Center, Width=40 }, new BoundFieldColumn { FieldName="SOCDetailCredit", HeaderText="成果学分", Align=AlignStyle.Center, Width=40, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" }, new BoundFieldColumn { FieldName="Weight", HeaderText="成果权重", Align=AlignStyle.Center, Width=40, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" }, new LinkButtonColumn { FieldName="RecordStatusDesc", HeaderText="成果状态", Align=AlignStyle.Center, Width=40, Handle="remark" }, new TextBoxColumn { FieldName="Score", HeaderText="成果得分", EnableFieldName="IsCanEdit", Align=AlignStyle.Center, Width=40, Validator = new OnlyMoneyValidator() }, new BoundFieldColumn { FieldName="Remark", HeaderText="修改意见", Align=AlignStyle.Center, Width=0.05, IsHidden = true }, new LinkButtonColumn { HeaderText="成果查看", Text="查看", Align=AlignStyle.Center, Width=40, Handle="showAttachment" } }, IsPostBack = true, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/SOCDetailScore/StudentDetail?SOCDetailID=" + @ViewBag.SOCDetailID), ID = "dgSOCDetailStudentScoreList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })
}