@using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; //List listdlt = new List { new DropdownListItem { Text = "通过", Value = (int)EMIS.ViewModel.CF_ScoreState.Approved }, new DropdownListItem { Text = "驳回", Value = (int)EMIS.ViewModel.CF_ScoreState.Rebut } }; List listAction = ViewData["listAction"] as List; List firstListAction = ViewData["firstListAction"] as List; var firstListActionValue = (firstListAction.FirstOrDefault() == null ? null : firstListAction.FirstOrDefault().Value); //var defaultAction = listAction.FirstOrDefault(x => x.Text == "同意" || x.Text == "通过"); //var defaultActionValue = (defaultAction == null ? null : defaultAction.Value); } @section scripts{ } @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
审核信息
@Html.ContextMenuBar("Edit")
@Html.Hidden("FinalExaminationIDs")
处理动作: @*@Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ID = "ddlAction", Name = "Action", ItemList = listdlt, SelectedValue = (int)EMIS.ViewModel.CF_ScoreState.Approved })*@ @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ID = "ddlAction", Name = "Action", ItemList = listAction, SelectedValue = firstListActionValue })
处理意见: @Html.TextArea("Opinioncomment", "", 5, 30, new { })
}