123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- @model EMIS.ViewModel.ExamManage.LevelSettingView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- var url = ViewBag.Url;
- ComboGridOptions ExaminationType = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ExaminationTypeID",
- ID = "ExaminationTypeID",
- Name = "ExaminationTypeID",
- OnSelect = "queryProject",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="类型名称", Width=0.1, Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ExaminationType/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions ExaminationSubject = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ExaminationProjectID",
- ID = "ExaminationProjectID",
- Name = "ExaminationProjectID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Width=0.1, Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetProjectListViewGrid"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/ExamManage/LevelSettingEdit.js"></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;">
- @if (Request["type"] != "detail")
- {
- @Html.ContextMenuBar("Edit")
- }
- </div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.LevelSettingID)
- <table cellpadding="0" cellspacing="0" id="levelSettingTable">
- <tr>
- <td>@Html.LabelFor(x => x.ExaminationTypeName):
- </td>
- <td>@Html.ComboGridFor(x => x.ExaminationTypeID, ExaminationType)
- </td>
- <td>@Html.LabelFor(x => x.ExaminationProjectName):
- </td>
- <td>@Html.ComboGridFor(x => x.ExaminationProjectID, ExaminationSubject)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.LevelName):
- </td>
- <td>@Html.TextBoxFor(x => x.LevelName, new Dictionary<string, object> { })
- </td>
- <td>@Html.LabelFor(x => x.IsPassed):
- </td>
- <td>@Html.CheckBoxFor(x => x.IsPassedEdit)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.IsPassedEdit):
- </td>
- <td colspan="3">
- @Html.CheckBoxFor(x => x.IsPassLineEdit)
- </td>
- </tr>
- <tr>
- <td>
- <label>
- 科目:
- </label>
- </td>
- <td colspan="3">
- @if (Request["type"] != "detail")
- {
- @Html.ContextMenuBar("Edit-SubjectGrid")
- }
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn { FieldName="ExaminationSubjectID" },
- new BoundFieldColumn { FieldName="ExaminationSubjectName", HeaderText="科目考核项", Align=AlignStyle.Center },
- new TextBoxColumn { FieldName="PassScore", HeaderText="分数", Align=AlignStyle.Center },
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/LevelSetting/GetLevelSettingSubjectList?levelSettingID=" + Model.LevelSettingID),
- IsPostBack = true,
- ID = "dgLevelSettingSubjectList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|