123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- @model EMIS.ViewModel.ScoreManage.FinalExaminationView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- string type = ViewBag.type;
- ComboGridOptions cgop = new ComboGridOptions
- {
- TextField = "LoginID",
- ValueField = "UserID",
- EmptyText = "请选择",
- Name = "UserID",
- ID = "UserID",
- OnSelect = "SelectStarttermID",
- IsAutoComplete = true,
- MinReloadCharactor = EMIS.Utility.Const.LOCAL_SETTING_LoginIDLength,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.3 },
- new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.1 },
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Students/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script type="text/javascript">
- function SelectStarttermID() {
- var FinalExaminationID = $("#FinalExaminationID").val();
- var UserID = $("#UserID").combogridX("getValue");
- if (UserID == "" || UserID == -1) {
- $.messager.alert("系统提示", "请选择学号");
- return;
- }
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/ResitExamination/GetStarttermID', { finalExaminationID: FinalExaminationID, UserID: UserID }, function (data) {
- $("#StarttermID").combobox("setValue", data.StarttermID)
- document.getElementById("UserName").value = data.UserName;
- });
- }
- function ResitExamination_Save() {
- var FinalExaminationID = $("#FinalExaminationID").val();
- var UserID = $("#UserID").combogridX("getValue");
- var isAdd = $("#isAutoAdd").val();
- if (UserID == "" || UserID == -1) {
- $.messager.alert("系统提示", "请选择学号");
- return;
- }
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/ResitExamination/Verification', { finalExaminationID: FinalExaminationID, UserID: UserID }, function (data) {
- if (data == "不存在") {
- $(document.forms[0]).submit();
- }
- else {
- if (isAdd == "True") {
- $.messager.confirm("系统提示", "选择的学生已在录入名单中,是否修改?", function (r) {
- if (r) {
- $(document.forms[0]).submit();
- }
- });
- }
- else {
- $(document.forms[0]).submit();
- }
- }
- });
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions
- {
- //OnSuccess = "EMISFunction.FormSuccess",
- //保存后不关闭页面
- OnSuccess = "EMISFunction.FormSuccessNoClose",
- OnBegin = "EMISFunction.FormSubmit",
- OnComplete = "EMISFunction.FormComplete"
- }))
- {
- @Html.Hidden("hid_ExamsCategory")
- <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("StudentEdit")</div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.ExamsCategoryID)
- @Html.HiddenFor(x => x.FinalExaminationID)
- @Html.HiddenFor(x=>x.isAutoAdd)
- <table cellpadding="0" cellspacing="0" id="FinalExaminationtable">
- <tr>
- <td>
- @Html.LabelFor(x=>x.UserID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.UserID, cgop)
- </td>
- <td>
- @Html.LabelFor(x=>x.UserName):
- </td>
- <td>
- @Html.TextBoxFor(x => x.UserName, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.SchoolyearID):
- </td>
- <td>
- @Html.TextBoxFor(x => x.SchoolyearCode, new TextBoxOptions { IsEnabled = false })
- @*@Html.DropdownListFor(x=>x.SchoolyearID,new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid") })*@
- </td>
- <td>
- @Html.LabelFor(x=> x.StarttermID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Startterm, (x => x.StarttermID))
- </td>
- </tr>
-
- <tr>
- <td>
- @Html.LabelFor(x => x.ExamsCategoryID):
- </td>
- <td>
- @Html.TextBoxFor(x => x.ExamsCategoryName, new TextBoxOptions { IsEnabled = false })
- @*@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExamsCategory, x => x.ExamsCategoryID, new DropdownListOptions { OnSelect = "QueryExamsCategory" })*@
- </td>
- <td>
- @Html.LabelFor(x => x.CourseTypeID):
- </td>
- <td>
- @Html.TextBoxFor(x => x.CourseTypeName, new TextBoxOptions { IsEnabled = false })
- @*@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseType, x => x.CourseTypeID)*@
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Credit):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Credit, new TextBoxOptions { IsEnabled = false })
- </td>
- <td>
- @Html.LabelFor(x => x.ExaminationModeID):
- </td>
- <td>
- @Html.TextBoxFor(x => x.ExaminationModeName, new TextBoxOptions { IsEnabled = false })
- @*@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExaminationMode, (x => x.ExaminationModeID))*@
- </td>
- </tr>
- @*<tr>
- <td>
- @Html.LabelFor(x => x.ClassName):
- </td>
- <td colspan="3">
- @Html.TextBoxFor(x => x.ClassName, new Dictionary<string, object> { { "style", "width:85%;" } })
- </td>
- </tr>*@
- </table>
- </div>
- }
- </div>
|