123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200 |
- @model EMIS.ViewModel.ExamBatchProjectView
- @using EMIS.Web.Controls;
- @using EMIS.Entities;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- ComboGridOptions cgopSchoolYear = new ComboGridOptions
- {
- TextField = "Code",
- ValueField = "SchoolYearID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Code", HeaderText="学年学期", Align=AlignStyle.Center ,Width=0.2},
- new BoundFieldColumn { FieldName="Years", HeaderText="学年", Align=AlignStyle.Center ,Width=0.2},
- new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="学期", Align=AlignStyle.Center ,Width=0.2},
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/SchoolYear/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- },
- IsEnabled = Request.QueryString["Type"] == null,
- //OnSelect = "cgopSchoolYearSelect",
- OnChange = "cgopSchoolYearSelect",
- };
- ComboGridOptions cgopBatchProject = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ExaminationBatchID",
- 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("~/ExaminationBatch/GetProjectListViewGrid"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- },
- Width = 300,
- IsEnabled=Request.QueryString["Type"] == null,
- OnSelect = "cgopBatchProjectSelect"
- };
-
- }
- @section scripts{
- <script src="~/Scripts/Business/ExamManage/ExamBatchProjectEdit.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">
- <table cellpadding="0" cellspacing="0" id="Campustable">
- <tr>
- <td style="width: 150px">
- @Html.LabelFor(x => x.SchoolyearID):
- </td>
- <td colspan="3">
- @Html.ComboGridFor(x => x.SchoolyearID, cgopSchoolYear)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.ExaminationBatchID):
- </td>
- <td colspan="3">
- @Html.ComboGridFor(x => x.ExaminationBatchID, cgopBatchProject)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.StartDate):
- </td>
- <td>
- @Html.TextBoxFor(x => x.StartDate, new TextBoxOptions { TextBoxType = TextBoxType.Date })
- </td>
- <td style="width: 150px">
- @Html.LabelFor(x => x.EndDate):
- </td>
- <td>
- @Html.TextBoxFor(x => x.EndDate, new TextBoxOptions { TextBoxType = TextBoxType.Date })
- </td>
- </tr>
- @if (Request.QueryString["Type"] != null)//非新增
- {
- <tr>
- <td>
- @Html.LabelFor(x => x.Name):
- </td>
- <td colspan="3">
- @Model.Name
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.SimulateTime):
- </td>
- <td>
- @Html.TextBoxFor(x => x.SimulateTime, new TextBoxOptions { })
- </td>
- <td style="width: 150px">
- @Html.LabelFor(x => x.Training):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Training, new TextBoxOptions { })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.TakeCourseTime):
- </td>
- <td>
- @Html.TextBoxFor(x => x.TakeCourseTime, new TextBoxOptions { })
- </td>
- <td style="width: 150px">
- @Html.LabelFor(x => x.MaxRegistCount):
- </td>
- <td>
- @Html.TextBoxFor(x => x.MaxRegistCount, new TextBoxOptions { })
- </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: 50px" } })
- </td>
- </tr>
- }
- @if (Request.QueryString["Type"] == null)//新增
- {
- <tr>
- <td colspan="4">
- <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="ExaminationProjectID"},
- new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center, Width=0.06, },
- new BoundFieldColumn { FieldName="ExaminationType", HeaderText="考试类型", Align=AlignStyle.Center, Width=0.1 },
- new TextBoxColumn { FieldName="SimulateTime", HeaderText="预考试时间", IsRequired=true,Align=AlignStyle.Center, Width=0.1 },
- new TextBoxColumn { FieldName="Training", HeaderText="培训情况", IsRequired=true,Align=AlignStyle.Center, Width=0.1 },
- new TextBoxColumn { FieldName="TakeCourseTime", HeaderText="预开课时间",IsRequired=true, Align=AlignStyle.Center, Width=0.1 },
- new TextBoxColumn { FieldName="MaxRegistCount", Validator=new OnlyNumberValidator(){ Required=false}, HeaderText="最大报名人数", Align=AlignStyle.Center, Width=0.1 },
- new TextBoxColumn { FieldName="Remark", HeaderText="需提交资料及注意事项", Align=AlignStyle.Center, Width=0.1 },
- },
- IsCheckOnSelect = true,
- //DataSourceUrl = Url.Content("~/ExamBatchProject/GetExamBatchProjectListEdiGrid"),
- ID = "dgProjectList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- IsPostBack = true,
- })
- </div>
- </td>
- </tr>
- }
- </table>
- </div>
-
- }
- </div>
|