@using Bowin.Web.Controls.Mvc;
@using EMIS.Entities;
@using EMIS.Web.Controls;
@using EMIS.Utility;
@{
ViewBag.Title = "List";
}
@section scripts{
}
@Html.Position()
@using (Ajax.BeginForm(new AjaxOptions
{
Url = @Url.Content("~/InSchoolSetting/Edit?MNU=" + Request["MNU"]),
OnSuccess = "EMISFunction.FormSuccess",
OnBegin = "EMISFunction.FormSubmit",
OnComplete = "EMISFunction.FormComplete"
}))
{
@Html.PositionCondition()
在校设定列表
@Html.ContextMenuBar("List")
@*@Html.PositionBatchModify()*@
@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
//new CheckBoxFieldColumn{ HeaderText="", FieldName="InSchoolSettingID" },
new BoundFieldColumn { FieldName="InSchoolStatusID", HeaderText="类型代码", Align=AlignStyle.Center, Width=0.04 },
new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.05, CustomFormatFun="SetRedColumn" },
new CheckButtonColumn { FieldName="IsSelected", HeaderText="是否选中", Align=AlignStyle.Center, Width=0.04 },
new BoundFieldColumn { FieldName="IsDisplayName", HeaderText="可否显示", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
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 }
},
IsCheckOnSelect = true,
IsPostBack = true,
DataSourceUrl = Url.Content("~/InSchoolSetting/List"),
ID = "dgInSchoolSettingList",
IsPagination = true,
IsShowRowNumbers = true,
IsSingleSelect = false
})
}