123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- @model EMIS.ViewModel.ExaminationManage.ExaminationPlanView
- @using EMIS.Web.Controls;
- @using EMIS.ViewModel;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- ComboGridOptions cgopCampus = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CampusID",
- OnSelect = "queryCollege",
- Name = "CampusDropdown",
- ID = "CampusDropdown",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Campus/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions cgopcollege = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- //OnSelect = "QueryCollegeComboGridList",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 }
- },
- //OnLoadSuccessFun = "queryClass",
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions cgopCourse = new ComboGridOptions
- {
- TextField = "CourseName",
- ValueField = "CoursematerialID",
- //OnSelect = "QueryComboGridCourse",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.3 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/ExaminationManage/ExaminationPlanAdd.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 popupWindowContent">
- <table cellpadding="0" cellspacing="0" id="departmenttable">
- <tr>
- <td>@Html.LabelFor(x => x.SchoolyearID):
- </td>
- <td>@Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid") })
- </td>
- <td>@Html.LabelFor(x => x.CampusID):
- </td>
- <td>@Html.ComboGridFor(x => x.CampusID, cgopCampus)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.CollegeID):
- </td>
- <td>@Html.ComboGridFor(x => x.CollegeID, cgopcollege)
- </td>
- <td>@Html.LabelFor(x => x.CoursematerialID):
- </td>
- <td>@Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.ClassName):
- </td>
- <td>@Html.TextBoxFor(x => x.ClassName)
- </td>
- <td>@Html.LabelFor(x => x.ExaminationModeID):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExaminationMode,x => x.ExaminationModeID)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.ExamsCategoryID):
- </td>
- <td>@Html.DictionaryDropDownListFor(DictionaryItem.CF_ExamsCategory, x => x.ExamsCategoryID)
- </td>
- <td>@Html.LabelFor(x => x.ExaminationStyleID):
- </td>
- <td>@Html.DictionaryDropDownListFor(DictionaryItem.EX_ExaminationStyle, x => x.ExaminationStyleID)
- </td>
- </tr>
- <tr>
- <td><label></label>
- </td>
- <td>@Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ID = "ddlTimeSegment", ItemSourceUrl = Url.Content("~/TimeSegment/Dropdown"), TextField = "Text", ValueField = "Value", OnSelect = "setDateTime" })
- </td>
- <td>@Html.LabelFor(x => x.ExaminationDate):
- </td>
- <td>@Html.TextBoxFor(x => x.ExaminationDate, new TextBoxOptions { TextBoxType = TextBoxType.Date, OnChange = "setFormChanged" })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.StartTime):
- </td>
- <td>@Html.TextBoxFor(x => x.StartTime, new TextBoxOptions { TextBoxType = TextBoxType.Time, OnChange = "setFormChanged" })
- </td>
- <td>@Html.LabelFor(x => x.EndTime):
- </td>
- <td>@Html.TextBoxFor(x => x.EndTime, new TextBoxOptions { TextBoxType = TextBoxType.Time, OnChange = "setFormChanged" })
- </td>
- </tr>
- @*<tr>
- <td>
- <label>考室:</label>
- </td>
- <td colspan="3">
- @Html.ContextMenuBar("Edit-ClassroomGrid")
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationRoomLayoutID"},
- new LinkButtonColumn { FieldName="ClassroomName", HeaderText="考室", Align=AlignStyle.Center, Handle="edit", Width=0.1 },
- new BoundFieldColumn { FieldName="SpacingDesc", HeaderText="座位排列模式", Align=AlignStyle.Center, OverflowLength=22, Width=0.2 },
- new BoundFieldColumn { FieldName="Examinationseating", HeaderText="考场座位数", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="StudentNum", HeaderText="排考人数", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="TeacherNames", HeaderText="监考老师", Align=AlignStyle.Center, Width=0.1 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ExaminationPlan/GetExaminationRoomLayoutViewList"),
- ID = "dgExaminationRoomLayoutList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </td>
- </tr>*@
- </table>
- </div>
- }
- </div>
|