123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- @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<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
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/ChargeManage/ChargeSituation/StudentChargeEdit.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.StudentChargeID)
- <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.Amount):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Amount, new TextBoxOptions() { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.ActualAmount):
- </td>
- <td>
- @Html.TextBoxFor(x => x.ActualAmount)
- </td>
- <td>
- @Html.LabelFor(x => x.ChargeTag):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EC_ChargeTag ,x => x.ChargeTag)
- </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>
|