123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.ViewModel;
- @using Bowin.Common.Utility;
- @model EMIS.ViewModel.TeachingMaterial.StudentDistributeView
- @section scripts{
- <script src="~/Scripts/Business/TeachingMaterial/StudentDistributeEdit.js"></script>
- <script type="text/javascript">
- $(document).ready(function () {
- var JsonDate = top.$("#@(Request["WindowID"])").data("inputData");
- $("#studentDistributeID").val(JsonDate.studentDistributeID);
- $("#GrademajorID").val(JsonDate.GrademajorID);
- });
- //保存未发放学生数
- function StudentDistribute_Save() {
- $(document.forms[0]).submit(); //提交表单
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions { Url = "/StudentDistribute/Edit", OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
- {
- <div class="p_title">
- @Html.HiddenFor(x => x.StudentDistributeID)
- @Html.HiddenFor(x => x.StudentQty)
- @Html.Hidden("GrademajorID")
- @Html.Hidden("studentDistributeID")
- @* <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 未发放学生信息
- </div>*@
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
- @if (Model.IsDistribute != (int)CF_GeneralPurpose.IsYes)//如果已经提交、那么删除、增加按钮不显示
- {
- @Html.ContextMenuBar("UnDisConfirm")
- }
- </div>
- </div>
- <div class="search_list">
- @if (Model.IsDistribute != (int)CF_GeneralPurpose.IsYes)//如果已经提交、那么删除、增加按钮不显示
- {
- @Html.ContextMenuBar("Edit-StudentGrid")
- }
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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
- })
- </div>
- }
- </div>
|