@using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @using EMIS.ViewModel; @using Bowin.Common.Utility; @model EMIS.ViewModel.TeachingMaterial.StudentDistributeView @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { Url = "/StudentDistribute/Edit", OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@Html.HiddenFor(x => x.StudentDistributeID) @Html.HiddenFor(x => x.StudentQty) @Html.Hidden("GrademajorID") @Html.Hidden("studentDistributeID") @*
未发放学生信息
*@
@if (Model.IsDistribute != (int)CF_GeneralPurpose.IsYes)//如果已经提交、那么删除、增加按钮不显示 { @Html.ContextMenuBar("UnDisConfirm") }
@if (Model.IsDistribute != (int)CF_GeneralPurpose.IsYes)//如果已经提交、那么删除、增加按钮不显示 { @Html.ContextMenuBar("Edit-StudentGrid") } @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"}, new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.05 }, //new BoundFieldColumn { FieldName="", HeaderText="性别", Align=AlignStyle.Center, Width=0.03 }, //new BoundFieldColumn { FieldName="", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.1, OverflowLength=10 }, //new BoundFieldColumn { FieldName="", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.1, OverflowLength=10 }, new BoundFieldColumn { FieldName="CreateUserName", HeaderText="创建人", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="CreateTime", HeaderText="创建日期", Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay, Width=0.08 }, new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 } }, PageSize = 30, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/StudentDistribute/GetStudentList?studentDistributeID=" + Request.Params["studentDistributeID"]), ID = "dgStudentList", IsPagination = true, IsShowRowNumbers = true, IsPostBack = true, IsSingleSelect = false })
}