123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- @model EMIS.ViewModel.CultureplanManage.CourseMaterial.TeachTypeView
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "Edit";
- var isEnable = Request["type"] == "detail" ? false : true;
- }
- @section scripts{
- <script src="~/Scripts/Business/CultureplanManage/TeachTypeEdit.js" type="text/javascript"></script>
- <script 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>
- <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.ClassGroupingID)
- <table cellpadding="0" cellspacing="0" id="teachTypetable">
- <tr>
- <td style="color: red;">
- @Html.LabelFor(x => x.ClassName):
- </td>
- <td colspan="3">
- @Html.TextBoxFor(x => x.ClassName, new TextBoxOptions()
- {
- IsEnabled = isEnable
- }, new Dictionary<string, string> { { "style", "width:54%;" } })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.TeachingModeIDListName):
- </td>
- <td colspan="3">
- @if (!isEnable)
- {
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="TeachingModeID", HeaderText="类型代码", Align=AlignStyle.Center, Width=0.02 },
- new BoundFieldColumn { FieldName="TeachingModeName", HeaderText="授课方式", Align=AlignStyle.Center, OrderFieldName="TeachingModeID", Width=0.02 },
- new BoundFieldColumn { FieldName="IsDisplayName", HeaderText="是否显示", Align=AlignStyle.Center, OrderFieldName="IsDisplay", Width=0.02, CustomFormatFun="SetRedColumn" },
- new CheckButtonColumn { FieldName = "IsDivide", HeaderText= "是否分班", Align=AlignStyle.Center, OrderFieldName="IsDivide", Width=0.02, EnableFieldName="false" }
- },
- PageSize = 10,
- IsPostBack = true,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/TeachType/TeachingModeList?classGroupingID=" + Model.ClassGroupingID),
- ID = "dgTeachingModeList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- MaxHeight = 200
- })
- }
- else
- {
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="TeachingModeID", HeaderText="类型代码", Align=AlignStyle.Center, Width=0.02 },
- new BoundFieldColumn { FieldName="TeachingModeName", HeaderText="授课方式", Align=AlignStyle.Center, OrderFieldName="TeachingModeID", Width=0.02 },
- new BoundFieldColumn { FieldName="IsDisplayName", HeaderText="是否显示", Align=AlignStyle.Center, OrderFieldName="IsDisplay", Width=0.02, CustomFormatFun="SetRedColumn" },
- new CheckButtonColumn { FieldName = "IsDivide", HeaderText= "是否分班", Align=AlignStyle.Center, OrderFieldName="IsDivide", Width=0.02 }
- },
- PageSize = 10,
- IsPostBack = true,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/TeachType/TeachingModeList?classGroupingID=" + Model.ClassGroupingID),
- ID = "dgTeachingModeList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- MaxHeight = 200
- })
- }
- </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: 45px" },
- { "disabled", "true" }
- })
- }
- else
- {
- @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 45px" }
- })
- }
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|