@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; //参评类型 ComboGridOptions cgopEvaluationParticipateType = new ComboGridOptions { TextField = "ParticipateTypeName", ValueField = "EvaluationParticipateTypeID", ID = "EvaluationParticipateTypeDropdown", Name = "EvaluationParticipateTypeDropdown", OnSelect = "queryEvaluationParticipateType", 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 = "queryEvaluationType", 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 } }; //评价表名 ComboGridOptions cgopEvaluationTable = new ComboGridOptions { TextField = "Name", ValueField = "EvaluationTableID", ID = "EvaluationTableDropdown", Name = "EvaluationTableDropdown", OnSelect = "queryEvaluationTable", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Code", HeaderText="编号", Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="Name", HeaderText="评价表名", Align=AlignStyle.Center, Width=0.2 }, //new BoundFieldColumn { FieldName="ParticipateTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.06, OrderFieldName="ParticipateTypeID" }, new BoundFieldColumn { FieldName="IsStudentName", HeaderText="学生用", Align=AlignStyle.Center, Width=0.04, OrderFieldName="IsStudent", CustomFormatFun="SetRedColumn" }, //new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="评价类型", Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="IsEnabledName", HeaderText="是否启用", Align=AlignStyle.Center, Width=0.04, OrderFieldName="IsEnabled", CustomFormatFun="SetRedColumn" } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EvaluationTable/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; //评价指标 ComboGridOptions cgopEvaluationTarget = new ComboGridOptions { TextField = "Name", ValueField = "EvaluationTargetID", ID = "EvaluationTargetDropdown", Name = "EvaluationTargetDropdown", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Code", HeaderText="指标编号", Align=AlignStyle.Center, Width=0.08 }, new BoundFieldColumn { FieldName="Name", HeaderText="指标名称", Align=AlignStyle.Center, Width=0.12 }, new BoundFieldColumn { FieldName="EvaluationTableName", HeaderText="评价表名", Align=AlignStyle.Center, Width=0.12 }, new BoundFieldColumn { FieldName="EvaluationNormName", HeaderText="评分标准", Align=AlignStyle.Center, Width=0.08 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EvaluationTarget/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@Html.Position()
查询条件
@Html.PositionCondition()
  • 参评类型:
  • @Html.ComboGrid(cgopEvaluationParticipateType, new Dictionary { { "data-condition", "dgEvaluationProjectList" } })
  • 评价类型:
  • @Html.ComboGrid(cgopEvaluationType, new Dictionary { { "data-condition", "dgEvaluationProjectList" } })
  • 评价表名:
  • @Html.ComboGrid(cgopEvaluationTable, new Dictionary { { "data-condition", "dgEvaluationProjectList" } })
  • 评价指标:
  • @Html.ComboGrid(cgopEvaluationTarget, new Dictionary { { "data-condition", "dgEvaluationProjectList" } })
评价项目列表
@Html.ContextMenuBar("List")
@Html.PositionBatchModify()
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationProjectID" }, new BoundFieldColumn { FieldName="OrderNo", HeaderText="次序", Align=AlignStyle.Center, Width=0.03 }, 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="EvaluationTargetCode", HeaderText="指标编号", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="EvaluationTargetName", HeaderText="指标名称", Align=AlignStyle.Center, Width=0.1 }, //new BoundFieldColumn { FieldName="EvaluationTableCode", HeaderText="评价表编号", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="EvaluationTableName", HeaderText="评价表名", Align=AlignStyle.Center, Width=0.1, CustomFormatFun="SetRedColumn" }, 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 }, //new BoundFieldColumn { FieldName="EvaluationTypeCode", HeaderText="评价类型编号", Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="评价类型", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="TeachingModeIDListName", HeaderText="授课方式", Align=AlignStyle.Center, OrderFieldName="", Width=0.05, OverflowLength=8, CustomFormatFun="SetRedColumn" }, new BoundFieldColumn { FieldName="EvaluationNormName", HeaderText="评分标准", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="NormTypeName", HeaderText="评分类型", Align=AlignStyle.Center, OrderFieldName="NormTypeID", Width=0.04 }, new BoundFieldColumn { FieldName="Weight", HeaderText="权重", Align=AlignStyle.Center, Width=0.03, 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.08, Formatter= Formatter.LongDate } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EvaluationProject/List"), ID = "dgEvaluationProjectList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })