@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @model EMIS.ViewModel.TeachingMaterial.StudentDistributeView @{ ViewBag.Title = "SubmitStudentDistribute"; ComboGridOptions cgopUser = new ComboGridOptions { TextField = "UserName", ValueField = "UserID", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Width=0.25, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.1, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Students/StudentOnlyInSchool"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { Url = "/StudentDistribute/SubmitStudentDistribute", OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) { @Html.HiddenFor(x => x.StudentDistributeID)
@*
发放提交确定
*@
@Html.ContextMenuBar("SubmitConfirm")
@Html.LabelFor(x => x.StudentDistributeNo): @Html.TextBoxFor(x => x.StudentDistributeNo) @Html.LabelFor(x => x.RecipientUser): @Html.ComboGridFor(x => x.RecipientUserID, cgopUser)
@Html.LabelFor(x => x.Remark): @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 500px;" } })
}