123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- @model EMIS.ViewModel.SelectCourse.OptionalCourseSettingView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- ComboGridOptions cgop = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "GrademajorID",
- OnSelect = "QueryGrademajorGridOptions",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Grademajor/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/CultureplanManage/OptionalCoursePlanEdit.js" type="text/javascript"></script>
- }
- <style type="text/css">
- #optionalCoursePlantable
- {
- width: 100%;
- border: 0px none;
- }
- #optionalCoursePlantable tr
- {
- min-height: 30px;
- }
- </style>
- <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">
- @Html.HiddenFor(x => x.OptionalCourseID)
- @Html.HiddenFor(x => x.SpecialtyCourseID)
- <table cellpadding="0" cellspacing="0" id="optionalCoursePlantable">
- <tr>
- <td>@Html.LabelFor(x => x.GrademajorID):
- </td>
- <td>@Html.ComboGridFor(x => x.GrademajorID, cgop, new Dictionary<string, string> { { "data-condition", "dgGrademajorAndSpecialtyCourseList" } })
- </td>
- <td>@Html.LabelFor(x => x.HandleModeID):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HandleMode, (x => x.HandleModeID))
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.PeopleNumlimit):
- </td>
- <td>@Html.TextBoxFor(x => x.PeopleNumlimit)
- </td>
- <td>@Html.LabelFor(x => x.PeopleNumlower)
- </td>
- <td>@Html.TextBoxFor(x => x.PeopleNumlower)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.IsNeedMaterial):
- </td>
- <td>@Html.CheckBoxFor(x => x.IsNeedMaterial)
- </td>
- <td>@Html.LabelFor(x => x.IsOpened):
- </td>
- <td>@Html.CheckBoxFor(x => x.IsOpened)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.SpecialtyCourseID):
- </td>
- <td colspan="3">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="SpecialtyCourseID" },
- new BoundFieldColumn { FieldName="StandardCode", HeaderText="标准专业代码", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="StandardName", HeaderText="标准专业名称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CourseCategoryName", HeaderText="课程属性", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CourseQualityName", HeaderText="课程性质", Align=AlignStyle.Center }
- },
- IsAutoLoad = false,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/OptionalCoursePlan/GrademajorAndSpecialtyCourseViewList"),
- ID = "dgGrademajorAndSpecialtyCourseList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Remarks):
- </td>
- <td colspan="3">@Html.TextAreaFor(x => x.Remarks, new Dictionary<string, object> { { "style", "width:500px;" } })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|