@model EMIS.ViewModel.EvaluationManage.EvaluationSetting.EvaluationIntTypeView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; var isEnable = Request["type"] == "detail" ? false : true; //授课方式 ListControlOptions lcoptm = new ListControlOptions { ID = "TeachingModeIDList", Name = "TeachingModeIDList", TextField = "Name", ValueField = "Value", ColumnCount = 4, IsEnabled = isEnable, SelectedValueUrl = @Url.Content("~/EvaluationIntType/TeachingModeTypeList?evaluationIntTypeID=" + Model.EvaluationIntTypeID) }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@if (Request["type"] != "detail") { @Html.ContextMenuBar("Edit") }
@Html.HiddenFor(x => x.EvaluationIntTypeID)
@Html.LabelFor(x => x.Code): @Html.TextBoxFor(x => x.Code, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.Name): @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.TeachingModeIDList): @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, lcoptm)
@Html.LabelFor(x => x.Remark): @if (!isEnable) { @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 60px" }, { "disabled", "true" } }) } else { @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 60px" } }) }
}