@using Bowin.Web.Controls.Mvc;
@using EMIS.Entities;
@using EMIS.Web.Controls;
@{
ViewBag.Title = "List";
}
@section scripts{
}
@Html.Position()
@Html.ContextMenuBar("List")
@using (Ajax.BeginForm("Edit", "PostPractice", new AjaxOptions
{
OnSuccess = "EMISFunction.FormSuccess",
OnBegin = "EMISFunction.FormSubmit",
OnComplete = "EMISFunction.FormComplete"
}))
{
@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new CheckBoxFieldColumn{ HeaderText="", FieldName="StudentPostPracticeID", IsHidden=true },
new TextBoxColumn { FieldName="PracticePlace", HeaderText="实习地点", Align=AlignStyle.Center, Width=0.1 },
new TextBoxColumn { FieldName="StartYear", HeaderText="开始年份", Validator=new OnlyNumberValidator() { Required = false }, IsRequired=false,
Align=AlignStyle.Center, Width=0.03 },
new TextBoxColumn { FieldName="StartMonth", HeaderText="月", Validator=new OnlyNumberValidator() { Required = false }, IsRequired=false,
Align=AlignStyle.Center, Width=0.02 },
new TextBoxColumn { FieldName="EndYear", HeaderText="至年", Validator=new OnlyNumberValidator() { Required = false }, IsRequired=false,
Align=AlignStyle.Center, Width=0.03 },
new TextBoxColumn { FieldName="EndMonth", HeaderText="月", Validator=new OnlyNumberValidator() { Required = false }, IsRequired=false,
Align=AlignStyle.Center, Width=0.02 },
new TextBoxColumn { FieldName="PracticeMentor", HeaderText="指导教师", Align=AlignStyle.Center, Width=0.04 },
new TextBoxColumn { FieldName="PracticeContent", HeaderText="实习内容", Align=AlignStyle.Center, Width=0.2 },
new TextBoxColumn { FieldName="SelfAppraise", HeaderText="自我鉴定", Align=AlignStyle.Center, Width=0.2 }
},
IsPostBack = true,
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/PostPractice/List"),
ID = "dgStudentPostPracticeList",
IsPagination = false,
IsShowRowNumbers = true,
IsSingleSelect = false,
IsAutoHeight = false,
})
}