123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- @model EMIS.ViewModel.ScoreManage.MisconductView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- ComboGridOptions cgopCourse = new ComboGridOptions
- {
- TextField = "CourseName",
- ValueField = "CoursematerialID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center }
- },
- IsAutoLoad = (Model.MisconductID != Guid.Empty),
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Misconduct/GetCoursematerial?schoolyearID=" + Model.SchoolyearID + "&userID=" + Model.UserID),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions cgopStudent = new ComboGridOptions
- {
- TextField = "LoginID",
- ValueField = "UserID",
- OnSelect = "setName",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Students/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/ScoreManage/MisconductEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions
- {
- OnSuccess = "EMISFunction.FormSuccess",
- OnBegin = "EMISFunction.FormSubmit",
- OnComplete = "EMISFunction.FormComplete"
- }))
- {
- <div class="p_title">
- <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;">@Html.ContextMenuBar("Edit")</div>
- </div>
- <div class="search_list">
- <table cellpadding="0" cellspacing="0">
- <tr>
- <td>@Html.LabelFor(x => x.UserID):</td>
- <td>@Html.ComboGridFor(x => x.UserID, cgopStudent)</td>
- <td>@Html.LabelFor(x => x.Name):</td>
- <td>@Html.DisplayFor(x => x.Name)</td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.SchoolyearID):</td>
- <td>@Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), OnSelect = "queryCoursematerial" })</td>
- <td>@Html.LabelFor(x => x.CoursematerialID):
- </td>
- <td>@Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.ExamsCategoryID):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExamsCategory, x => x.ExamsCategoryID)
- </td>
- <td>@Html.LabelFor(x => x.ExamsStateID):
- </td>
- <td>@Html.DropdownListFor(x => x.ExamsStateID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/Misconduct/GetMisconductExamsStateList") })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Reason):
- </td>
- <td colspan="3">@Html.TextAreaFor(x => x.Reason, new Dictionary<string, object> { { "style", "width: 98%;" } })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|