@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; ComboGridOptions optCourse = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", OnSelect = "reload", Name = "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 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions optUser = new ComboGridOptions { TextField = "Name", ValueField = "UserID", OnSelect = "reload", Name = "cgbUser", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Staff/List"), 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 = "reload" }, new Dictionary { { "data-condition", "dgWorktimeAdjustmentList" } })
  • 课程名称:
  • @Html.ComboGrid(optCourse, new Dictionary { { "data-condition", "dgWorktimeAdjustmentList" } })
  • 教师:
  • @Html.ComboGrid(optUser, new Dictionary { { "data-condition", "dgWorktimeAdjustmentList" } })
  • 登记类型:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.TP_WorktimeAdjustmentType, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "ddlWorktimeAdjustmentType", ID = "ddlWorktimeAdjustmentType", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgWorktimeAdjustmentList" } })
工作量调整
@Html.ContextMenuBar("List")
@Html.PositionBatchModify()
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="WorktimeAdjustmentID" }, new BoundFieldColumn { FieldName="AdjustDate", HeaderText="记录时间", Align=AlignStyle.Center, Formatter=Formatter.OnlyYearMonthDay, Width=60 }, new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=60 }, new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班级", Align=AlignStyle.Center, Width=240 }, new BoundFieldColumn { FieldName="TeacherName", HeaderText="教师", Align=AlignStyle.Center, Width=50 }, new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程编码", Align=AlignStyle.Center, Width=50 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=100 }, new BoundFieldColumn { FieldName="WorktimeAdjustmentTypeDesc", HeaderText="登记类型", Align=AlignStyle.Center, Width=60 }, new BoundFieldColumn { FieldName="Worktime", HeaderText="课时数", Align=AlignStyle.Center, Width=40 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/WorktimeAdjustment/List"), ID = "dgWorktimeAdjustmentList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })