@model EMIS.ViewModel.EvaluationManage.EvaluationTable.EvaluationNormView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; var isEnable = Request["type"] == "detail" ? 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.EvaluationNormID)
@Html.LabelFor(x => x.Name): @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = isEnable }, new Dictionary { { "style", "width:84%;" } })
@Html.LabelFor(x => x.NormTypeID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.EM_EvaluationNormType, (x => x.NormTypeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { OnSelect="queryNormType", IsEnabled = isEnable }) @Html.LabelFor(x => x.SatisfyWeight): @Html.TextBoxFor(x => x.SatisfyWeight, new TextBoxOptions() { IsEnabled = isEnable })
@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" } }) }
评分标准明细列表
@if (Request["type"] != "detail") { @Html.ContextMenuBar("DetailList") }
@if (!isEnable) { @Html.DataGrid(new DataGridOptions { Columns = new List() { //new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationNormDetailID" }, new LinkButtonColumn { FieldName="OrderNo", HeaderText="次序", Align=AlignStyle.Center, Handle="edit", Width=0.03 }, new BoundFieldColumn { FieldName="Name", HeaderText="名称", Align=AlignStyle.Center, Width=0.06, CustomFormatFun="SetRedColumn" }, new BoundFieldColumn { FieldName="Weight", HeaderText="权重(100%)", Align=AlignStyle.Center, Width=0.06, CustomFormatFun="SetRedColumn" }, new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.05 } }, PageSize = 5, IsCheckOnSelect = true, IsPostBack = true, DataSourceUrl = Url.Content("~/EvaluationNorm/EvaluationNormDetailViewList?evaluationNormID=" + Model.EvaluationNormID), ID = "dgEvaluationNormDetailList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, MaxHeight = 125 }) } else { @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationNormDetailID" }, new LinkButtonColumn { FieldName="OrderNo", HeaderText="次序", Align=AlignStyle.Center, Handle="edit", Width=0.03 }, new BoundFieldColumn { FieldName="Name", HeaderText="名称", Align=AlignStyle.Center, Width=0.06, CustomFormatFun="SetRedColumn" }, new BoundFieldColumn { FieldName="Weight", HeaderText="权重(100%)", Align=AlignStyle.Center, Width=0.06, CustomFormatFun="SetRedColumn" }, new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.05 } }, PageSize = 5, IsCheckOnSelect = true, IsPostBack = true, DataSourceUrl = Url.Content("~/EvaluationNorm/EvaluationNormDetailViewList?evaluationNormID=" + Model.EvaluationNormID), ID = "dgEvaluationNormDetailList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, MaxHeight = 125 }) }
}