@model EMIS.ViewModel.StudentManage.StudentChange.ChangeReportView @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); }
@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.ChangeReportID)
@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.Url): @Html.TextBoxFor(x => x.Url, new TextBoxOptions() { IsEnabled = isEnable }, new Dictionary { { "style", "width:90%;" } })
}
@section scripts{ }