123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- @model EMIS.ViewModel.ExaminationProjectFeeView
- @using EMIS.Web.Controls;
- @using EMIS.Entities;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- ComboGridOptions cgopProject = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ExaminationProjectID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center ,Width=0.3}
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ChargeProject/GetProjectListViewGrid"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- },
- Width = 400
- };
- ComboGridOptions cgopExamType = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ExaminationTypeID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="考试类型名称", Align=AlignStyle.Center ,Width=0.4},
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ChargeProject/GetExaminationTypeList"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- },
- OnSelect = "cgopProjectSelect"
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/ExamManage/ChargeProjectFee.js" type="text/javascript"></script>
- <script 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;">
- @if (Request.QueryString["Type"] != "1")//控制列表进入、屏蔽按钮权限
- {
- @Html.ContextMenuBar("Edit")
- }
- </div>
- </div>
- <div class="search_list">
- <input type="hidden" name="ExaminationProjectFeeID" id="ExaminationProjectFeeID" value="@( Model.ExaminationProjectFeeID)"/>
- <table cellpadding="0" cellspacing="0" id="Campustable">
- <tr>
- <td>
- @Html.LabelFor(x => x.ExaminationTypeID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.ExaminationTypeID, cgopExamType)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.ProjectName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.ExaminationProjectID, cgopProject)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Name):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = true }, new Dictionary<string, string> { { "style", "width:85%;" } })
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <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;">
- @if (Request.QueryString["Type"] != "1")//控制列表进入、屏蔽按钮权限
- {
- @Html.ContextMenuBar("EditList")}</div>
- </div>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationProjectFeeTypeID"},
- new LinkButtonColumn { FieldName="FeeTypeName", HeaderText="收费项目", Align=AlignStyle.Center, Width=0.06, Handle="editFee" },
- new BoundFieldColumn { FieldName="Fee", HeaderText="费用", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="IsResitText", HeaderText="是否补考项目", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="IsTrainingFeeText", HeaderText="是否需要培训", Align=AlignStyle.Center,Width=0.06 },
- new BoundFieldColumn { FieldName="IsMaterialText", HeaderText="是否需要教材", Align=AlignStyle.Center, Width=0.1 },
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ChargeProject/List?ExaminationProjectFeeID=" + Model.ExaminationProjectFeeID),
- ID = "dgProjectFeeTypeList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsPostBack = true,
- QueryParams = new { ExaminationProjectFeeID = Model.ExaminationProjectFeeID },
- IsSingleSelect = false
- })
- </div>
- </td>
- </tr>
- </table>
- </div>
-
- }
- </div>
|