@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{ }
@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 |
@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 |