@model EMIS.ViewModel.SupervisionManage.ProjectRecordTeacherView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; ComboGridOptions teacher = new ComboGridOptions { TextField = "Name", ValueField = "UserID", OnSelect = "", ID = "StaffDropdown", Name = "StaffDropdown", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StaffCode", HeaderText="工号", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="教师名字", Width=0.1, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Staff/ListWithNoDataRange"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsAutoLoad = true } }; } @section scripts{ } @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@Html.ContextMenuBar("Edit")
@Html.HiddenFor(x => x.SupervisionUserID)
@Html.Label("督导员"): @Html.ComboGridFor(x => x.TeacherID, teacher)
}