@model EMIS.ViewModel.ExaminationProjectFeeView @using EMIS.Web.Controls; @using EMIS.Entities; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; ComboGridOptions cgopProject = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationProjectID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center ,Width=0.3} }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ChargeProject/GetProjectListViewGrid"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false }, Width = 400 }; ComboGridOptions cgopExamType = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationTypeID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="考试类型名称", Align=AlignStyle.Center ,Width=0.4}, }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ChargeProject/GetExaminationTypeList"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false }, OnSelect = "cgopProjectSelect" }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@if (Request.QueryString["Type"] != "1")//控制列表进入、屏蔽按钮权限 { @Html.ContextMenuBar("Edit") }
@Html.LabelFor(x => x.ExaminationTypeID): @Html.ComboGridFor(x => x.ExaminationTypeID, cgopExamType)
@Html.LabelFor(x => x.ProjectName): @Html.ComboGridFor(x => x.ExaminationProjectID, cgopProject)
@Html.LabelFor(x => x.Name): @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = true }, new Dictionary { { "style", "width:85%;" } })
收费项目信息列表
@if (Request.QueryString["Type"] != "1")//控制列表进入、屏蔽按钮权限 { @Html.ContextMenuBar("EditList")}
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationProjectFeeTypeID"}, new LinkButtonColumn { FieldName="FeeTypeName", HeaderText="收费项目", Align=AlignStyle.Center, Width=0.06, Handle="editFee" }, new BoundFieldColumn { FieldName="Fee", HeaderText="费用", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="IsResitText", HeaderText="是否补考项目", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="IsTrainingFeeText", HeaderText="是否需要培训", Align=AlignStyle.Center,Width=0.06 }, new BoundFieldColumn { FieldName="IsMaterialText", HeaderText="是否需要教材", Align=AlignStyle.Center, Width=0.1 }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ChargeProject/List?ExaminationProjectFeeID=" + Model.ExaminationProjectFeeID), ID = "dgProjectFeeTypeList", IsPagination = true, IsShowRowNumbers = true, IsPostBack = true, QueryParams = new { ExaminationProjectFeeID = Model.ExaminationProjectFeeID }, IsSingleSelect = false })
}