@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; //参评类型 ComboGridOptions cgopEvaluationParticipateType = new ComboGridOptions { TextField = "ParticipateTypeName", ValueField = "EvaluationParticipateTypeID", Name = "EvaluationParticipateTypeDropdown", ID = "EvaluationParticipateTypeDropdown", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="ParticipateTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.1, OrderFieldName="ParticipateTypeID" }, new BoundFieldColumn { FieldName="IsStudentName", HeaderText="学生用", Align=AlignStyle.Center, Width=0.05, OrderFieldName="IsStudent", CustomFormatFun="SetRedColumn"} }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EvaluationParticipateType/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; //评价类型 ComboGridOptions cgopEvaluationType = new ComboGridOptions { TextField = "Name", ValueField = "EvaluationIntTypeID", ID = "EvaluationTypeDropdown", Name = "EvaluationTypeDropdown", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Code", HeaderText="编号", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="Name", HeaderText="名称", Align=AlignStyle.Center, Width=0.08 }, new BoundFieldColumn { FieldName="TeachingModeIDListName", HeaderText="授课方式", Align=AlignStyle.Center, Width=0.08, OrderFieldName="", CustomFormatFun="SetRedColumn" } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EvaluationIntType/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@Html.Position()
查询条件
@Html.PositionCondition()
  • 参评类型:
  • @Html.ComboGrid(cgopEvaluationParticipateType, new Dictionary { { "data-condition", "dgEvaluationTableList" } })
  • 评价类型:
  • @Html.ComboGrid(cgopEvaluationType, new Dictionary { { "data-condition", "dgEvaluationTableList" } })
  • 学生用:
  • @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "IsStudentDropdown", Name = "IsStudentDropdown", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgEvaluationTableList" } })
  • 是否启用:
  • @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "IsEnabledDropdown", Name = "IsEnabledDropdown", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgEvaluationTableList" } })
评价表名列表
@Html.ContextMenuBar("List")
@Html.PositionBatchModify()
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationTableID" }, new LinkButtonColumn { FieldName="Code", HeaderText="编号", Align=AlignStyle.Center, Handle="edit", Width=0.05 }, new BoundFieldColumn { FieldName="Name", HeaderText="评价表名", Align=AlignStyle.Center, Width=0.12 }, new BoundFieldColumn { FieldName="ParticipateTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.04, OrderFieldName="ParticipateTypeID" }, new BoundFieldColumn { FieldName="IsStudentName", HeaderText="学生用", Align=AlignStyle.Center, OrderFieldName="IsStudent", Width=0.03, CustomFormatFun="SetRedColumn" }, //new BoundFieldColumn { FieldName="EvaluationTypeCode", HeaderText="评价类型编号", Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="评价类型", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="TeachingModeIDListName", HeaderText="授课方式", Align=AlignStyle.Center, OrderFieldName="", Width=0.08, CustomFormatFun="SetRedColumn", OverflowLength=8 }, new BoundFieldColumn { FieldName="Weight", HeaderText="权重", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" }, new LinkButtonColumn { FieldName="TargetCount", HeaderText="指标个数", Align=AlignStyle.Center, Handle="editTarget", Width=0.04 }, new LinkButtonColumn { FieldName="ProjectCount", HeaderText="项目个数", Align=AlignStyle.Center, Handle="editProject", Width=0.04 }, new BoundFieldColumn { FieldName="IsEnabledName", HeaderText="是否启用", Align=AlignStyle.Center, OrderFieldName="IsEnabled", Width=0.04, CustomFormatFun="SetRedColumn" }, new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=5 } //new BoundFieldColumn { FieldName="CreateUserName", HeaderText="创建人", Align=AlignStyle.Center, Width=0.04 }, //new BoundFieldColumn { FieldName="ModifyUserName", HeaderText="修改人", Align=AlignStyle.Center, Width=0.04 }, //new BoundFieldColumn { FieldName="ModifyTime", HeaderText="修改时间", Align=AlignStyle.Center, Width=0.06, Formatter= Formatter.LongDate } }, CustomerRowStyleFun="SetRedGrid", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EvaluationTable/List"), ID = "dgEvaluationTableList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })