123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- @model EMIS.ViewModel.ExaminationManage.ExaminationPlanGdssView
- @using EMIS.Web.Controls;
- @using EMIS.ViewModel;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- }
- @section scripts{
- <script src="~/Scripts/Business/ExaminationManage/ExaminationPlanClassroomGdss.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- </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.SchoolyearID)
- @Html.HiddenFor(x => x.ExaminationPlanID)
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 考场安排</div>
- @if (Request["isView"] != "1")
- {
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar(Model.RecordStatus == (int)CF_ApprovalStatus.NotSubmitted ? "ExamPlan_Confirm" : "Hiddened")</div>
- }
- </div>
- <div class="search_list popupWindowContent">
- <table cellpadding="0" cellspacing="0" id="departmenttable">
- <tr>
- <td>@Html.LabelFor(x => x.SchoolyearID):
- </td>
- <td>@Html.DisplayFor(x => x.SchoolyearCode)
- </td>
- <td>@Html.LabelFor(x => x.CampusID):
- </td>
- <td>@Html.DisplayFor(x => x.CampusName)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.CollegeID):
- </td>
- <td>@Html.DisplayFor(x => x.CollegeName)
- </td>
- <td>@Html.LabelFor(x => x.CoursematerialID):
- </td>
- <td>@Html.DisplayFor(x => x.CoursematerialName)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.ClassName):
- </td>
- <td>@Html.DisplayFor(x => x.ClassName)
- </td>
- <td>@Html.LabelFor(x => x.ExaminationModeID):
- </td>
- <td>@Html.DisplayFor(x => x.ExaminationModeName)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.StudentCount):
- </td>
- <td>@Html.DisplayFor(x => x.StudentCount)
- </td>
- <td>@Html.LabelFor(x => x.ExaminationDate):
- </td>
- <td>@Html.TextBoxFor(x => x.ExaminationDate, new TextBoxOptions { TextBoxType = TextBoxType.Date, OnChange = "queryClassroom" })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.StartTime):
- </td>
- <td>@Html.TextBoxFor(x => x.StartTime, new TextBoxOptions { TextBoxType = TextBoxType.Time, OnChange = "queryClassroom" })
- </td>
- <td>@Html.LabelFor(x => x.EndTime):
- </td>
- <td>@Html.TextBoxFor(x => x.EndTime, new TextBoxOptions { TextBoxType = TextBoxType.Time, OnChange = "queryClassroom" })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.BuildingsInfoID):
- </td>
- <td>@Html.ComboGridFor(x => x.BuildingsInfoID, new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "BuildingsInfoID",
- OnSelect = "buildingSelected",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="建筑名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Buildings/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- })
- </td>
- <td>@Html.LabelFor(x => x.ClassroomID):
- </td>
- <td>@Html.ComboGridFor(x => x.ClassroomID, new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ClassroomID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="FloorLevel", HeaderText="所在楼层", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Examinationseating", HeaderText="总座位数", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="RemainSeatCount", HeaderText="剩余座位数", Align=AlignStyle.Center }
- },
- IsAutoLoad = false,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ExaminationRoomSetting/AvailableListGdss?examinationPlanID=" + Request["ExaminationPlanID"]
- + "&examinationDate=" + (Model.ExaminationDate.HasValue ? Model.ExaminationDate.Value.ToString("yyyy-MM-dd") : "")
- + "&startTime=" + (Model.StartTime.HasValue ? Model.StartTime.Value.ToString("hh\\:mm\\:ss") : "")
- + "&endTime=" + (Model.EndTime.HasValue ? Model.EndTime.Value.ToString("hh\\:mm\\:ss") : "")),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.StudentOrderType):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentOrderType, x => x.StudentOrderType)
- </td>
- <td>
- <label></label>
- </td>
- <td>
-
- </td>
- </tr>
- <tr>
- <td>
- <label>监考老师:</label>
- </td>
- <td colspan="3">
- @Html.ContextMenuBar(Model.RecordStatus == (int)CF_ApprovalStatus.NotSubmitted ? "Edit-TeacherGrid" : "Hiddened")
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" },
- new BoundFieldColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ExaminationPlan/GetExaminationTeachersGdss?examinationPlanID=" + Request["ExaminationPlanID"]),
- IsPostBack = true,
- ID = "dgRoomTeacher",
- IsPagination = false,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </td>
- </tr>
- <tr>
- <td>
- <label>考生:</label>
- </td>
- <td colspan="3">
- @Html.ContextMenuBar(Model.RecordStatus == (int)CF_ApprovalStatus.NotSubmitted ? "Edit-StudentGrid" : "Hiddened")
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
- new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center }
- },
- OnLoadSuccessFun = "queryClassroom",
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ExaminationPlan/GetExaminationPlanStudentList?examinationPlanID=" + Request["ExaminationPlanID"]),
- IsPostBack = true,
- ID = "dgStudent",
- IsPagination = false,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|