123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291 |
- @model EMIS.ViewModel.ScoreManage.ExaminationScoreView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- List<ListControlItem> lct = ViewData["lct"] as List<ListControlItem>;
- ComboGridOptions cgopExaminationBatch = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ExaminationBatchID",
- ID = "cgExaminationBatch",
- Name = "cgExaminationBatch",
- //OnSelect = "queryProject",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="考试批次", Align=AlignStyle.Center, Width = 0.3 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetExaminationBatchViewGrid"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- IsAutoLoad = false,
- }
- };
- ComboGridOptions cgopExaminationType = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ExaminationTypeID",
- Width = 171,
- Name = "cgExaminationType",
- ID = "cgExaminationType",
- //OnSelect = "queryProject",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="考试类型", Align=AlignStyle.Center, Width = 0.3 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ExaminationType/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- IsAutoLoad = false
- }
- };
- ComboGridOptions cgopExaminationProject = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ExaminationProjectID",
- Name = "cgExaminationProject",
- ID = "cgExaminationProject",
- //OnSelect = "querySubject",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center, Width = 0.3 }
- },
- //OnLoadSuccessFun = "querySubject",
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetProjectListViewGrid"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- IsAutoLoad = false
- }
- };
- ComboGridOptions cgopExaminationSubject = new ComboGridOptions
- {
- TextField = "ExaminationSubject",
- ValueField = "ExaminationSubjectID",
- Name = "cgExaminationSubject",
- ID = "cgExaminationSubject",
- Width = 171,
- //SelectedValue = Model.ExaminationSubjectID,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="ExaminationSubject", HeaderText="科目考核项", Align=AlignStyle.Center, Width = 0.3 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ExaminationScore/GetSubjectViewByProjectID"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- IsAutoLoad = false,
- }
- };
- //证件号
- ComboGridOptions cgopIDNumber = new ComboGridOptions
- {
- TextField = "IDNumber",
- ValueField = "UserID",
- OnSelect = "setUserName",
- Width = 171,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号", Width=0.25, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.1, Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Students/BaseStudentViewList"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- //学生信息
- ComboGridOptions cgopStudent = new ComboGridOptions
- {
- TextField = "UserName",
- ValueField = "UserID",
- IsEnabled = false,
- SelectedValue = Model.UserID,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号", Width=0.25, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.15, Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Students/BaseStudentViewList"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- var subjectID = @Model.ExaminationSubjectID;
- </script>
- <script src="~/Scripts/Business/ScoreManage/ExaminationScoreEdit.js"></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">
- @Html.HiddenFor(x => x.ExaminationScoreID)
- <table cellpadding="0" cellspacing="0" id="educationMissionClasstable">
- <tr>
- <td>
- @Html.LabelFor(x => x.SchoolyearCode):
- </td>
- <td>
- @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions
- {
- BindType = DropdownListBindType.PleaseSelect,
- ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
- OnSelect = "schoolyearChange",
- SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
- OnLoadSuccess = "schoolyearChange",
-
- })
- @*<span style="color:red">*</span>*@
- </td>
- <td>
- @Html.LabelFor(x => x.ExaminationBatchName):
- </td>
- <td>
- @Html.DropdownListFor(x => x.ExaminationBatchID, new DropdownListOptions
- {
- BindType = DropdownListBindType.PleaseSelect,
- ItemSourceUrl = Url.Content("~/ExaminationBatch/DropDownList?schoolyearID=" + Model.SchoolyearID),
- OnSelect = "examinationBatchChange",
- OnLoadSuccess = "examinationBatchChange",
- })
- @*@Html.ComboGridFor(x => x.ExaminationBatchID, cgopExaminationBatch)*@
- @*<span style="color:red">*</span>*@
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.ExaminationTypeName):
- </td>
- <td>
- @Html.DropdownListFor(x => x.ExaminationTypeID, new DropdownListOptions
- {
- BindType = DropdownListBindType.PleaseSelect,
- ItemSourceUrl = Url.Content("~/ExamBatchProject/TypeDropDownList?ExaminationBatchID=" + Model.ExaminationBatchID),
- OnSelect = "examinationTypeChange",
- OnLoadSuccess = "examinationTypeChange"
- })
- @*@Html.ComboGridFor(x => x.ExaminationTypeID, cgopExaminationType)*@
- @*<span style="color:red">*</span>*@
- </td>
- <td>
- @Html.LabelFor(x => x.ExaminationProjectName):
- </td>
- <td>
- @Html.DropdownListFor(x => x.ExaminationProjectID, new DropdownListOptions
- {
- BindType = DropdownListBindType.PleaseSelect,
- //OnChange = "querySubject",
- ItemSourceUrl = Url.Content("~/ExamBatchProject/DropDownList?ExaminationBatchID=" + Model.ExaminationBatchID + "&ExaminationTypeID=" + Model.ExaminationTypeID),
- OnSelect = "examinationProjectChange",
- OnLoadSuccess = "examinationProjectChange",
- })
- @*@Html.ComboGridFor(x => x.ExaminationProjectID, cgopExaminationProject)*@
- @*<span style="color:red">*</span>*@
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.IDNumber):
- </td>
- <td>
- @Html.ComboGridFor(x => x.UserIDForIDNumber, cgopIDNumber)
- </td>
- <td>
- @Html.LabelFor(x => x.UserName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.UserID, cgopStudent)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.ExaminationSubjectName):
- </td>
- <td>
- @Html.DropdownListFor(x => x.ExaminationSubjectID, new DropdownListOptions
- {
- BindType = DropdownListBindType.PleaseSelect,
- //OnChange = "querySubject",
- ItemSourceUrl = Url.Content("~/ExaminationScore/SubjectDropDownList?ExaminationProjectID=" + Model.ExaminationProjectID),
- //OnSelect = "examinationProjectChange",
- //OnLoadSuccess = "examinationProjectChange",
- })
- @*@Html.ComboGridFor(x => x.ExaminationSubjectID, cgopExaminationSubject)*@
- @*@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EX_ExaminationSubject, x => x.ExaminationSubjectID)*@
- </td>
- <td>
- @Html.LabelFor(x => x.Score):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Score)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Expire):
- </td>
- <td colspan="3">
- @Html.TextBoxFor(x => x.Expire, new TextBoxOptions { TextBoxType = TextBoxType.Date })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Remark):
- </td>
- <td colspan="3">
- @Html.TextAreaFor(x => x.Remark, new { style = "width: 98%;" })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|