@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; 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.Position()
查询条件
@Html.PositionCondition()
  • 学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "ddlSchoolyear", ID = "ddlSchoolyear", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnSelect = "queryCourse", OnLoadSuccess = "queryCourse" }, new Dictionary { { "data-condition", "dgSOCDetailStudentScoreList" } })
  • @(EMIS.Utility.RSL.Get("College")):
  • @Html.ComboGrid(optCollege, new Dictionary { { "data-condition", "dgSOCDetailStudentScoreList" } })
  • 年级:
  • @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "ddlYear", ID = "ddlYear", OnSelect = "queryStandard" }, new Dictionary { { "data-condition", "dgSOCDetailStudentScoreList" } })
  • 专业:
  • @Html.ComboGrid(optStandard, new Dictionary { { "data-condition", "dgSOCDetailStudentScoreList" } })
  • 班级:
  • @Html.ComboGrid(optClassmajor, new Dictionary { { "data-condition", "dgSOCDetailStudentScoreList" } })
  • 课程名称:
  • @Html.ComboGrid(optCourse, new Dictionary { { "data-condition", "dgSOCDetailStudentScoreList" } })
  • 成果状态:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.DQP_SOCDetailSubmitStatus, new DropdownListOptions{ BindType = DropdownListBindType.SelectAll, Name = "ddlStatus", ID = "ddlStatus", OnSelect = "reload", SelectedValue = (int)EMIS.ViewModel.DQP_SOCDetailSubmitStatus.Submited }, new Dictionary { { "data-condition", "dgSOCDetailStudentScoreList" } })
学生评分
@Html.ContextMenuBar("List")
@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=60 }, //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/StudentList"), ID = "dgSOCDetailStudentScoreList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })
}