123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- @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<DataGridColumn>()
- {
- 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<DataGridColumn>()
- {
-
- new BoundFieldColumn { FieldName="ChrageProjectName", HeaderText="收费项目", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ChargeProject/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @{
- <script src="~/Scripts/Business/ChargeManage/ChargeSituation/StudentChargePaymenEdit.js" type="text/javascript"></script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions
- {
- OnSuccess = "EMISFunction.FormSuccess",
- OnBegin = "EMISFunction.FormSubmit",
- OnComplete = "EMISFunction.FormComplete"
- }))
- {
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- </div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.StudentChargePaymentID)
- <table cellpadding="0" cellspacing="0" id="studentchargetable">
- <tr>
- <td>
- @Html.LabelFor(x => x.StudentNo):
- </td>
- <td>
- @Html.ComboGridFor(x => x.UserID, cgopStudent)
- </td>
- <td>
- @Html.LabelFor(x => x.ChargeYear):
- </td>
- <td>
- @Html.SchoolYearDropDownListFor(x => x.ChargeYear, new DropdownListOptions
- {
- OnSelect = "queryStudentChargeAmount",
- IsEnabled = isEdit
- })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.ChargeProjectStr):
- </td>
- <td>
- @Html.ComboGridFor((x => x.ChargeProjectID), cgopChargeProject)
- </td>
- <td>
- @Html.LabelFor(x => x.StandardAmount):
- </td>
- <td>
- @Html.TextBoxFor(x => x.StandardAmount, new TextBoxOptions() { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.ChargeAmount):
- </td>
- <td>
- @Html.TextBoxFor(x => x.ChargeAmount, new TextBoxOptions() { IsEnabled = false })
- </td>
- <td>
- @Html.LabelFor(x => x.ChargeTag):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EC_ChargeTag, x => x.ChargeTag, new DropdownListOptions() { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td style="color: red;">
- @Html.LabelFor(x => x.ActualAmount):
- </td>
- <td>
- @Html.TextBoxFor(x => x.ActualAmount, new TextBoxOptions() { IsEnabled = false })
- </td>
- <td style="color: red;">
- @Html.LabelFor(x => x.PaidAmount):
- </td>
- <td>
- @Html.TextBoxFor(x => x.PaidAmount, new TextBoxOptions() { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Amount):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Amount)
- </td>
- <td>
- @Html.LabelFor(x => x.ChargeDate):
- </td>
- <td>
- @Html.TextBoxFor(x => x.ChargeDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Remark):
- </td>
- <td colspan="3">
- @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 60px" } })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|