123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- @model EMIS.ViewModel.Cultureplan.CoursematerialView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- var isEnable = Request["type"] == "detail" ? false : true;
-
- //上课类型
- ComboGridOptions cgopTeachType = new ComboGridOptions
- {
- TextField = "ClassName",
- ValueField = "ClassGroupingID",
- ID = "TeachTypeDropdown",
- Name = "TeachTypeDropdown",
- IsEnabled = isEnable,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="ClassName", HeaderText="上课类型", Align=AlignStyle.Center, Width=0.12 }
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/TeachType/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/CultureplanManage/CoursematerialEdit.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;">
- @if (Request["type"] != "detail")
- {
- @Html.ContextMenuBar("Edit")
- }
- </div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.CoursematerialID)
- <table cellpadding="0" cellspacing="0" id="Coursematerialtable">
- <tr>
- <td style="color:red;">
- @Html.LabelFor(x => x.CourseCode):
- </td>
- <td>
- @Html.TextBoxFor(x => x.CourseCode, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td style="color:red;">
- @Html.LabelFor(x => x.CourseName):
- </td>
- <td>
- @Html.TextBoxFor(x => x.CourseName, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Abbreviation):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Abbreviation, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.EnglishName):
- </td>
- <td>
- @Html.TextBoxFor(x => x.EnglishName, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.StandardName):
- </td>
- <td>
- @Html.TextBoxFor(x => x.StandardName, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.CourseEdition):
- </td>
- <td>
- @Html.TextBoxFor(x => x.CourseEdition, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.CourseLevelID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseLevel, (x => x.CourseLevelID), new DropdownListOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.CourseScienceID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseScience, (x => x.CourseScienceID), new DropdownListOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td style="color:red;">
- @Html.LabelFor(x => x.ClassName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.ClassGroupingID, cgopTeachType)
- </td>
- <td style="color:red;">
- @Html.LabelFor(x => x.IsEnable):
- </td>
- <td>
- @if (!isEnable)
- {
- @Html.CheckBoxFor(x => x.IsEnable, new Dictionary<string, object>() { { "disabled", isEnable } })
- }
- else
- {
- @Html.CheckBoxFor(x => x.IsEnable)
- }
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.CourseSynopsis):
- </td>
- <td colspan="3">
- @if (!isEnable)
- {
- @Html.TextAreaFor(x => x.CourseSynopsis, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 45px" },
- { "disabled", "true" }
- })
- }
- else
- {
- @Html.TextAreaFor(x => x.CourseSynopsis, new Dictionary<string, object> { { "style", "width: 90%;min-height: 45px" } })
- }
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.CourseReserve):
- </td>
- <td colspan="3">
- @if (!isEnable)
- {
- @Html.TextAreaFor(x => x.CourseReserve, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 40px" },
- { "disabled", "true" }
- })
- }
- else
- {
- @Html.TextAreaFor(x => x.CourseReserve, new Dictionary<string, object> { { "style", "width: 90%;min-height: 40px" } })
- }
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Remark):
- </td>
- <td colspan="3">
- @if (!isEnable)
- {
- @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 30px" },
- { "disabled", "true" }
- })
- }
- else
- {
- @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 30px" } })
- }
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|