@model EMIS.ViewModel.EvaluationManage.EvaluationSetting.EvaluationParticipateTypeView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; var isEnable = Request["type"] == "detail" ? false : true; var isDisable = Request["type"] == "detail" ? false : (Request["type"] == "edit" ? false : true); } @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.EvaluationParticipateTypeID)
@Html.LabelFor(x => x.ParticipateTypeID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.EM_ParticipateType, (x => x.ParticipateTypeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isDisable, OnSelect = "queryParticipateType" }) @Html.LabelFor(x => x.ParticipateTypeCode): @Html.TextBoxFor(x => x.ParticipateTypeCode, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.IsStudent): @if (!isDisable) { @Html.CheckBoxFor(x => x.IsStudent, new Dictionary() { { "disabled", isDisable } }) } else { @Html.CheckBoxFor(x => x.IsStudent) } @Html.LabelFor(x => x.Number): @Html.TextBoxFor(x => x.Number, new TextBoxOptions { IsEnabled = isEnable })
@Html.LabelFor(x => x.StartTime): @Html.TextBoxFor(x => x.StartTime, new TextBoxOptions { TextBoxType = TextBoxType.DateTime, IsEnabled = isEnable }) @Html.LabelFor(x => x.EndTime): @Html.TextBoxFor(x => x.EndTime, new TextBoxOptions { TextBoxType = TextBoxType.DateTime, IsEnabled = isEnable })
@Html.LabelFor(x => x.Remark): @if (!isEnable) { @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 20px" }, { "disabled", "true" } }) } else { @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 20px" } }) }
}