123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- @model EMIS.ViewModel.EnrollManage.SpecialtyManage.SpecialtyClassSettingView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- var isEnable = Request["type"] == "detail" ? false : true;
- //专业信息
- ComboGridOptions cgopSpecialty = new ComboGridOptions
- {
- TextField = "StandardName",
- ValueField = "SpecialtyID",
- OnSelect = "querySpecialty",
- IsEnabled = isEnable,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardCode", Width=0.1 },
- new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, OrderFieldName="StandardName", Width=0.2 },
- new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, OrderFieldName="EducationID", Width=0.12 },
- new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, OrderFieldName="LearningformID", Width=0.12 },
- new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="RecordStatusStr", HeaderText="状态", Align=AlignStyle.Center, OrderFieldName="RecordStatus", Width=0.12 }
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Specialty/GetEnableAndUseSpecialtyView" + "?specialtyID=" + Model.SpecialtyID),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/EnrollManage/SpecialtyManage/SpecialtyClassSettingEdit.js" type="text/javascript"></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>
- @if (Request["type"] != "detail")
- {
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
- }
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.SpecialtyClassSettingID)
- <table cellpadding="0" cellspacing="0" id="recruitspecialtytable">
- <tr>
- <td style="color:red;">
- @Html.LabelFor(x => x.StandardName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.SpecialtyID, cgopSpecialty)
- </td>
- <td>
- @Html.LabelFor(x => x.Code):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Code, new TextBoxOptions() { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.EducationID):
- </td>
- <td>
- @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Education, (x => x.EducationID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
- </td>
- <td>
- @Html.LabelFor(x => x.LearningformID):
- </td>
- <td>
- @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Learningform, (x => x.LearningformID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.LearnSystem):
- </td>
- <td>
- @Html.TextBoxFor(x => x.LearnSystem, new TextBoxOptions() { IsEnabled = false })
- </td>
- <td>
- @Html.LabelFor(x => x.ScienceclassID):
- </td>
- <td>
- @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Scienceclass, (x => x.ScienceclassID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td style="color:red;">
- @Html.LabelFor(x => x.PlanRecruitStudentCount):
- </td>
- <td>
- @Html.TextBoxFor(x => x.PlanRecruitStudentCount, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td style="color:red;">
- @Html.LabelFor(x => x.ClassArrangeStudentCount):
- </td>
- <td>
- @Html.TextBoxFor(x => x.ClassArrangeStudentCount, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td style="color:red;">
- @Html.LabelFor(x => x.ClassMaxStudentCount):
- </td>
- <td>
- @Html.TextBoxFor(x => x.ClassMaxStudentCount, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td style="color:red;">
- @Html.LabelFor(x => x.ClassNumber):
- </td>
- <td>
- @Html.TextBoxFor(x => x.ClassNumber, new TextBoxOptions() { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td style="text-align:left;color:red;height:25px;font-size:12px;" colspan="4">
- 注:当 @Html.LabelFor(x => x.PlanRecruitStudentCount)、@Html.LabelFor(x => x.ClassArrangeStudentCount) 或
- @Html.LabelFor(x => x.ClassMaxStudentCount)为 0 时,@Html.LabelFor(x => x.ClassNumber) 默认为1个班。
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|