@model EMIS.ViewModel.ChargeManage.ChargeSituation.StudentChargeView @using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "Edit"; var isEdit = (Request["StudentChargeID"] ?? "") == ""; //学生信息 ComboGridOptions cgopStudent = new ComboGridOptions { TextField = "LoginID", ValueField = "UserID", OnSelect = "queryStudentChargeAmount", IsEnabled = isEdit, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Width=0.25, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.15, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Students/BaseStudentViewList"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //收费项目 ComboGridOptions cgopChargeProject = new ComboGridOptions { TextField = "ChrageProjectName", ValueField = "ChargeProjectID", ID = "ChargeProjectComboGrid", Name = "ChargeProjectComboGrid", OnSelect = "queryStudentChargeAmount", IsEnabled = isEdit, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="ChrageProjectName", HeaderText="收费项目", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ChargeProject/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@Html.ContextMenuBar("Edit")
@Html.HiddenFor(x => x.StudentChargeID)
@Html.LabelFor(x => x.StudentNo): @Html.ComboGridFor(x => x.UserID, cgopStudent) @Html.LabelFor(x => x.ChargeYear): @Html.SchoolYearDropDownListFor(x => x.ChargeYear, new DropdownListOptions { OnSelect = "queryStudentChargeAmount", IsEnabled = isEdit })
@Html.LabelFor(x => x.ChargeProjectStr): @Html.ComboGridFor((x => x.ChargeProjectID), cgopChargeProject) @Html.LabelFor(x => x.Amount): @Html.TextBoxFor(x => x.Amount, new TextBoxOptions() { IsEnabled = false })
@Html.LabelFor(x => x.ActualAmount): @Html.TextBoxFor(x => x.ActualAmount) @Html.LabelFor(x => x.ChargeTag): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EC_ChargeTag ,x => x.ChargeTag)
@Html.LabelFor(x => x.Remark): @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 60px" } })
}