@using Bowin.Web.Controls.Mvc;
@using EMIS.Entities;
@using EMIS.Web.Controls;
@{
ViewBag.Title = "StudentFamily";
}
@section scripts{
}
@Html.Position()
家庭成员
@Html.ContextMenuBar("List")
@using (Ajax.BeginForm("SaveStudentFamily", "Students", new AjaxOptions
{
OnSuccess = "EMISFunction.FormSuccess",
OnBegin = "EMISFunction.FormSubmit",
OnComplete = "EMISFunction.FormComplete"
}))
{
@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new TextBoxColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center,Width=0.15 },
new TextBoxColumn { FieldName="Relation", HeaderText="关系", Align=AlignStyle.Center,Width=0.1 },
new TextBoxColumn { FieldName="Age", HeaderText="年龄", Validator=new OnlyNumberValidator() { Required = false }, Align=AlignStyle.Center,Width=0.1 },
new DictionaryDropdownListColumn { DictionaryType=EMIS.ViewModel.DictionaryItem.CF_Politics, FieldName="Politics", HeaderText="政治面貌", Align=AlignStyle.Center,Width=0.15 },
new TextBoxColumn { FieldName="Unit", HeaderText="工作单位", Align=AlignStyle.Center,Width=0.25 },
new TextBoxColumn { FieldName="PhoneNumber", HeaderText="联系电话", Align=AlignStyle.Center,Width=0.2 }
},
IsPostBack = true,
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/Students/StudentFamilyList"),
ID = "dgStudentFamilyList",
IsPagination = false,
IsShowRowNumbers = true,
IsSingleSelect = false,
IsAutoHeight = false,
})
}