123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- @model EMIS.ViewModel.EvaluationManage.EvaluationManage.EvaluationStudentScoreView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Approve";
- var isEnable = (Request["evaluationStudentScoreID"] ?? "") == "";
- //院系所
- ComboGridOptions cgopCollege = new ComboGridOptions
- {
- ID = "CollegeID",
- TextField = "Name",
- ValueField = "CollegeID",
- IsEnabled = isEnable,
- OnSelect = "queryCollege",
- 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.2 }
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- //教研室
- ComboGridOptions cgopDepartment = new ComboGridOptions
- {
- ID = "DepartmentID",
- TextField = "Name",
- ValueField = "DepartmentID",
- IsEnabled = isEnable,
- OnSelect = "queryDepartment",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="Name", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.2 },
- new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CourseCollege"), Align=AlignStyle.Center, Width=0.2 }
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Department/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- //课程信息
- ComboGridOptions cgopCourse = new ComboGridOptions
- {
- ID = "CoursematerialID",
- TextField = "CourseName",
- ValueField = "CoursematerialID",
- IsEnabled = isEnable,
- 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.2 },
- new BoundFieldColumn { FieldName="IsEnableName", HeaderText="是否启用", Align=AlignStyle.Center, Width=0.1, CustomFormatFun="SetRedColumn" }
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Coursematerial/GetEnableAndUseCoursematerialView?coursematerialID=" + Model.CoursematerialID),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- //任课教师
- ComboGridOptions cgopStaff = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "UserID",
- IsEnabled = isEnable,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="StaffCode", HeaderText="教师工号", Align=AlignStyle.Center ,Width=0.1 },
- new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center ,Width=0.1 }
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Staff/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @{
- var listAction = ViewBag.ListAction as List<DropdownListItem>;
- var defaultAction = listAction.FirstOrDefault(x => true);
- var defaultActionValue = (defaultAction == null ? null : defaultAction.Value);
- }
- @section scripts{
- <script src="~/Scripts/Business/EvaluationManage/EvaluationManage/EvaluationStudentScoreApprove.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("Approve")</div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.EvaluationStudentScoreID)
- <table cellpadding="0" cellspacing="0" id="evaluationstudentscoretable">
- <tr>
- <td>
- @Html.LabelFor(x => x.SchoolyearCode):
- </td>
- <td>
- @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions
- {
- BindType = DropdownListBindType.PleaseSelect,
- TextField = "Text",
- ValueField = "Value",
- IsEnabled = isEnable,
- ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid")
- })
- </td>
- <td>
- @Html.LabelFor(x => x.CollegeName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.CourseName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
- </td>
- <td>
- @Html.LabelFor(x => x.DepartmentName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.DepartmentID, cgopDepartment)
- </td>
- </tr>
- <tr>
- <td style="color:red;">
- @Html.LabelFor(x => x.StaffName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.UserID, cgopStaff)
- </td>
- <td style="color:red;">
- @Html.LabelFor(x => x.TotalScore):
- </td>
- <td>
- @Html.TextBoxFor(x => x.TotalScore, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Remark):
- </td>
- <td colspan="3">
- @if (!isEnable)
- {
- @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 45px" },
- { "disabled", "true" }
- })
- }
- else
- {
- @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 45px" } })
- }
- </td>
- </tr>
- <tr>
- <td style="color: red;">
- @Html.LabelFor(x => x.Action):
- </td>
- <td colspan="3">
- @Html.DropdownList(new DropdownListOptions
- {
- BindType = DropdownListBindType.None,
- ID = "ddlAction",
- Name = "ddlAction",
- ItemList = listAction,
- SelectedValue = defaultActionValue
- })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Comment):
- </td>
- <td colspan="3">
- @Html.TextAreaFor(x => x.Comment, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 50px" }
- })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|