123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200 |
- @model EMIS.ViewModel.ExaminationProjectView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- 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
- }
- };
- ComboGridOptions cgopProject = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ExaminationProjectID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="ExaminationType", HeaderText="考试类型", Align=AlignStyle.Center ,Width=0.4},
- new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center ,Width=0.2}
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ChargeProject/GetProjectListViewGrid"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- },
- };
- ComboGridOptions cgopProjectSubject = new ComboGridOptions
- {
- TextField = "ExaminationSubject",
- ValueField = "ExaminationProjectSubjectID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="ExaminationSubject", HeaderText="考试科目", Align=AlignStyle.Center ,Width=0.1}
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ChargeProject/GetProjectSubjectListViewGrid"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = true
- },
- };
- ComboGridOptions cgopIssuedBy = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "Value",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="发证机关", Align=AlignStyle.Center ,Width=0.1}
- },
- PageSize = 5,
- DataSourceUrl = Url.Content("~/DictionaryItem/DictionItemList?DictionaryDropdown=EX_Issuer"),
- IsPagination = true,
- },
- };
- ListControlOptions lcoptm = new ListControlOptions
- {
- ID = "ProjectSubjects",
- Name = "ProjectSubjects",
- TextField = "ExaminationSubject",
- ValueField = "ExaminationProjectSubjectID",
- ColumnCount = 4,
- SelectedValues = Model.ProjectSubjects == null ? new List<object>() : Model.ProjectSubjects
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/ExamManage/ProjectEdit.js"></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("ProjectEdit")
- }
- </div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.ExaminationProjectID)
- <table cellpadding="0" cellspacing="0" id="Campustable">
- <tr>
- <td style="width: 150px">
- @Html.LabelFor(x => x.Name):
- </td>
- <td colspan="3">
- @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = true }, new Dictionary<string, string> { { "style", "width:85%;" } })
- </td>
- </tr>
- <tr>
- <td style="width: 150px">
- @Html.LabelFor(x => x.ExaminationLevelID):
- </td>
- <td colspan="3">
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EX_ExaminationLevel, (x) => x.ExaminationLevelID, new DropdownListOptions() { })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.ExaminationTypeID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.ExaminationTypeID, cgopExamType)
- </td>
- <td style="width: 150px">
- @Html.LabelFor(x => x.IssuedByID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.IssuedByID, cgopIssuedBy)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.PreposeProjectID):
- </td>
- <td colspan="3">
- @Html.ComboGridFor(x => x.PreposeProjectID, cgopProject)
- </td>
- </tr>
- @*<tr>
- <td>
- @Html.LabelFor(x => x.ProjectSubjects):
- </td>
- <td colspan="3">
- @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.EX_ExaminationSubject, lcoptm)
- </td>
- </tr>*@
- <tr>
- <td>
- @Html.LabelFor(x => x.Remark):
- </td>
- <td colspan="3">
- @Html.TextAreaFor(x => x.Remark, 5, 80, new Dictionary<string, string> { { "style", "width:85%;" } })
- </td>
- </tr>
- <tr>
- <td>
- <label>
- 考试科目信息:
- </label>
- </td>
- <td colspan="3">
- @if (Request.QueryString["Type"] != "1")//控制列表进入、屏蔽按钮权限
- {
- @Html.ContextMenuBar("EditList")
- }
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationSubjectID"},
- new BoundFieldColumn { FieldName="ExaminationSubjectName", HeaderText="科目名称", Align=AlignStyle.Center, Width=0.06, },
- new TextBoxColumn { FieldName="ResitCount", HeaderText="可补考次数", Align=AlignStyle.Center, Width=0.06, },
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ChargeProject/SubjectListByProjectID?projectID=" + Model.ExaminationProjectID),
- ID = "dgSubjectList",
- IsPagination = false,
- IsShowRowNumbers = false,
- IsSingleSelect = false,
- IsPostBack = true,
- })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|