@using (Ajax.BeginForm(new AjaxOptions
{
OnSuccess = "EMISFunction.FormSuccess",
OnBegin = "EMISFunction.FormSubmit",
OnComplete = "EMISFunction.FormComplete"
}))
{
评分标准明细列表
@if (Request["type"] != "detail")
{
@Html.ContextMenuBar("DetailList")
}
@if (!isEnable)
{
@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
//new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationNormDetailID" },
new LinkButtonColumn { FieldName="OrderNo", HeaderText="次序", Align=AlignStyle.Center, Handle="edit", Width=0.03 },
new BoundFieldColumn { FieldName="Name", HeaderText="名称", Align=AlignStyle.Center, Width=0.06, CustomFormatFun="SetRedColumn" },
new BoundFieldColumn { FieldName="Weight", HeaderText="权重(100%)", Align=AlignStyle.Center, Width=0.06, CustomFormatFun="SetRedColumn" },
new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.05 }
},
PageSize = 5,
IsCheckOnSelect = true,
IsPostBack = true,
DataSourceUrl = Url.Content("~/EvaluationNorm/EvaluationNormDetailViewList?evaluationNormID=" + Model.EvaluationNormID),
ID = "dgEvaluationNormDetailList",
IsPagination = true,
IsShowRowNumbers = true,
IsSingleSelect = false,
MaxHeight = 125
})
}
else
{
@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationNormDetailID" },
new LinkButtonColumn { FieldName="OrderNo", HeaderText="次序", Align=AlignStyle.Center, Handle="edit", Width=0.03 },
new BoundFieldColumn { FieldName="Name", HeaderText="名称", Align=AlignStyle.Center, Width=0.06, CustomFormatFun="SetRedColumn" },
new BoundFieldColumn { FieldName="Weight", HeaderText="权重(100%)", Align=AlignStyle.Center, Width=0.06, CustomFormatFun="SetRedColumn" },
new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.05 }
},
PageSize = 5,
IsCheckOnSelect = true,
IsPostBack = true,
DataSourceUrl = Url.Content("~/EvaluationNorm/EvaluationNormDetailViewList?evaluationNormID=" + Model.EvaluationNormID),
ID = "dgEvaluationNormDetailList",
IsPagination = true,
IsShowRowNumbers = true,
IsSingleSelect = false,
MaxHeight = 125
})
}