123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
- @model EMIS.ViewModel.ExamProjectControlView
- @using EMIS.Web.Controls;
- @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,
- },
- //OnSelect = "cgopSchoolYearSelect",
- OnChange = "cgopSchoolYearSelect"
- };
- ComboGridOptions cgopProjectFee = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ExaminationProjectFeeID",
- 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("~/ExaminationApplayStudentList/GetExaminationProjectFeeViewByBaseGrid"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- },
- };
- ComboGridOptions cgopCollege = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
- },
- //OnLoadSuccessFun = "queryClass",
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions cgopExamType = new ComboGridOptions
- {
- TextField = "ExaminationType",
- ValueField = "ExaminationTypeID",
- ID = "ExaminationTypeID",
- Name = "ExaminationTypeID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="ExaminationType", HeaderText="考试类型名称", Align=AlignStyle.Center ,Width=0.4},
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ExamBatchProject/GetExamTypeListViewGrid"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- },
- OnChange = "cgopExamTypeSelect"
- };
- ComboGridOptions cgopBatch = 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
- },
- OnChange = "cgopBatchSelect"
- };
- ComboGridOptions cgopBatchProject = 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("~/ExamBatchProject/GetExamBatchProjectListViewGrid"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- },
- //OnSelect = "cgopBatchProjectSelect",
- OnChange = "cgopBatchProjectSelect"
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/ExamManage/ExamProjectControlEdit.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"
- }))
- {
- @Html.HiddenFor(x => x.ExaminationBatchProjectControlID)
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 批次报名控制信息</div>
- @if (Request.QueryString["Type"] != "1")
- {
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
- }
- </div>
- <div class="search_list popupWindowContent">
- <table cellpadding="0" cellspacing="0" id="departmenttable">
- <tr>
- <td style="width: 150px">
- @Html.LabelFor(x => x.SchoolYearCode):
- </td>
- <td>
- @Html.ComboGridFor(x => x.SchoolYearCode, cgopSchoolYear)
- </td>
- <td>
- @Html.LabelFor(x => x.ExaminationBatchID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.ExaminationBatchID, cgopBatch)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.ExaminationTypeID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.ExaminationTypeID, cgopExamType)
- </td>
- <td>
- @Html.LabelFor(x => x.ProjectName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.ExaminationProjectID, cgopBatchProject)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.ExaminationProjectFeeID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.ExaminationProjectFeeID, cgopProjectFee)
- </td>
- <td>@Html.LabelFor(x => x.IsOnlinePay):
- </td>
- <td>
- @Html.CheckBox("IsOnlinePay", Model.IsOnlinePay == true)
- </td>
- </tr>
- @if (Request.QueryString["Type"] != null)//非新增
- {
- <tr>
- <td>@Html.LabelFor(x => x.CollegeID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
- </td>
- <td>@Html.LabelFor(x => x.StandardID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Standard, (x) => x.StandardID, new DropdownListOptions() { })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.SchoolyearID):
- </td>
- <td colspan="3">
- @Html.SchoolYearDropDownListFor(x => x.SchoolyearID, new DropdownListOptions { }, new Dictionary<string, string> { })
- </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;">
- 专业信息列表<span style="color:red">(不新增则默认所有专业)</span></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="StandardID" },
- new BoundFieldColumn { FieldName="CollegeCode", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
- new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 },
- new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.08 },
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ExamSubjectLimit/EditList?ExaminationSubjectCountLimitID=" + Model.ExaminationBatchProjectControlID),
- ID = "dgStandardList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- IsPostBack = true,
- })
- </div>
- </td>
- </tr>
- }
- </table>
- </div>
- }
- </div>
|