@model EMIS.ViewModel.ChargeManage.ChargeSituation.StudentChargePaymenView @using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "Edit"; var isEdit = (Request["StudentChargePaymentID"] ?? "") == ""; //学生信息 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 } }; } @{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@Html.ContextMenuBar("Edit")
@Html.HiddenFor(x => x.StudentChargePaymentID)
@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.StandardAmount): @Html.TextBoxFor(x => x.StandardAmount, new TextBoxOptions() { IsEnabled = false })
@Html.LabelFor(x => x.ChargeAmount): @Html.TextBoxFor(x => x.ChargeAmount, new TextBoxOptions() { IsEnabled = false }) @Html.LabelFor(x => x.ChargeTag): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EC_ChargeTag, x => x.ChargeTag, new DropdownListOptions() { IsEnabled = false })
@Html.LabelFor(x => x.ActualAmount): @Html.TextBoxFor(x => x.ActualAmount, new TextBoxOptions() { IsEnabled = false }) @Html.LabelFor(x => x.PaidAmount): @Html.TextBoxFor(x => x.PaidAmount, new TextBoxOptions() { IsEnabled = false })
@Html.LabelFor(x => x.Amount): @Html.TextBoxFor(x => x.Amount) @Html.LabelFor(x => x.ChargeDate): @Html.TextBoxFor(x => x.ChargeDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
@Html.LabelFor(x => x.Remark): @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 60px" } })
}