@Html.LabelFor(x => x.TeachingModeIDListName):
|
@if (!isEnable)
{
@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new BoundFieldColumn { FieldName="TeachingModeID", HeaderText="类型代码", Align=AlignStyle.Center, Width=0.02 },
new BoundFieldColumn { FieldName="TeachingModeName", HeaderText="授课方式", Align=AlignStyle.Center, OrderFieldName="TeachingModeID", Width=0.02 },
new BoundFieldColumn { FieldName="IsDisplayName", HeaderText="是否显示", Align=AlignStyle.Center, OrderFieldName="IsDisplay", Width=0.02, CustomFormatFun="SetRedColumn" },
new CheckButtonColumn { FieldName = "IsDivide", HeaderText= "是否分班", Align=AlignStyle.Center, OrderFieldName="IsDivide", Width=0.02, EnableFieldName="false" }
},
PageSize = 10,
IsPostBack = true,
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/TeachType/TeachingModeList?classGroupingID=" + Model.ClassGroupingID),
ID = "dgTeachingModeList",
IsPagination = true,
IsShowRowNumbers = true,
IsSingleSelect = false,
MaxHeight = 200
})
}
else
{
@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new BoundFieldColumn { FieldName="TeachingModeID", HeaderText="类型代码", Align=AlignStyle.Center, Width=0.02 },
new BoundFieldColumn { FieldName="TeachingModeName", HeaderText="授课方式", Align=AlignStyle.Center, OrderFieldName="TeachingModeID", Width=0.02 },
new BoundFieldColumn { FieldName="IsDisplayName", HeaderText="是否显示", Align=AlignStyle.Center, OrderFieldName="IsDisplay", Width=0.02, CustomFormatFun="SetRedColumn" },
new CheckButtonColumn { FieldName = "IsDivide", HeaderText= "是否分班", Align=AlignStyle.Center, OrderFieldName="IsDivide", Width=0.02 }
},
PageSize = 10,
IsPostBack = true,
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/TeachType/TeachingModeList?classGroupingID=" + Model.ClassGroupingID),
ID = "dgTeachingModeList",
IsPagination = true,
IsShowRowNumbers = true,
IsSingleSelect = false,
MaxHeight = 200
})
}
|