@model EMIS.ViewModel.ChargeManage.ChargeSituation.ChargeDelayView @using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "Edit"; var isEdit = (Request["ChargeDelayID"] ?? "") == ""; //学生信息 ComboGridOptions cgopStudent = new ComboGridOptions { TextField = "LoginID", ValueField = "UserID", IsEnabled = isEdit, OnSelect = "queryChargeDelayStandard", 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", IsEnabled = isEdit, OnSelect = "queryChargeDelayStandard", 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" })) {
@if (Request["Type"] != "1") { @Html.ContextMenuBar("Edit") }
@Html.HiddenFor(x => x.ChargeDelayID) @Html.HiddenFor(x => x.RecordStatus)
@Html.LabelFor(x => x.StudentNo): @Html.ComboGridFor(x => x.UserID, cgopStudent) @Html.LabelFor(x => x.UserName): @Html.TextBoxFor(x => x.UserName, new TextBoxOptions() { IsEnabled = false })
@Html.LabelFor(x => x.ChargeYear): @Html.SchoolYearDropDownListFor(x => x.ChargeYear, new DropdownListOptions { OnSelect = "queryChargeDelayStandard", 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.ChargeTag): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EC_ChargeTag, x => x.ChargeTag, new DropdownListOptions() { IsEnabled = false })
@Html.LabelFor(x => x.ChargeAmount): @Html.TextBoxFor(x => x.ChargeAmount, new TextBoxOptions() { 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.PassDelayAmount): @Html.TextBoxFor(x => x.PassDelayAmount, new TextBoxOptions() { IsEnabled = false })
@Html.LabelFor(x => x.CanDelayAmount): @Html.TextBoxFor(x => x.CanDelayAmount, new TextBoxOptions() { IsEnabled = false }) @Html.LabelFor(x => x.ApplyDelayAmount): @Html.TextBoxFor(x => x.ApplyDelayAmount, new TextBoxOptions() { IsEnabled = false })
@Html.LabelFor(x => x.DelayAmount): @*@Html.RadioButton("Delaychoose", true)*@ @Html.TextBoxFor(x => x.DelayAmount) @Html.LabelFor(x => x.DelayPercent): @*@Html.RadioButton("Delaychoose", true)*@ @Html.TextBoxFor(x => x.DelayPercent)%
@Html.LabelFor(x => x.Reason): @Html.TextAreaFor(x => x.Reason, new Dictionary { { "style", "width: 90%;min-height: 60px" } })
}