123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- @model EMIS.ViewModel.ScoreManage.LevelSettingView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- var url = ViewBag.Url;
- ComboGridOptions ExaminationSubject = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ExaminationSubjectID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- //new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Width=0.1, Align=AlignStyle.Center },
- //new BoundFieldColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Width=0.1, Align=AlignStyle.Center },
- //new BoundFieldColumn { FieldName="ExaminationFormName", HeaderText="考试类别", Width=0.1, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="科目名称", Width=0.1, Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ExaminationSubject/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script type="text/javascript">
- function LevelSetting_Save() {
- if (Range() != false)
- $(document.forms[0]).submit();
- }
- function Range() {
- $("#ScoreRange").val($("#MinScore").val() + " <= 总成绩 <= " + $("#MaxScore").val())
- if (parseFloat($("#MinScore").val()) >= parseFloat($("#MaxScore").val())) {
- $.messager.alert("系统提示", "起始分必须小于终止分。");
- return false;
- }
- }
- function onchangeRange() {
- $("#ScoreRange").val($("#MinScore").val() + " <= 总成绩 <= " + $("#MaxScore").val())
- }
- function reload() {
- $("#ExaminationSubjectID").combogridX("reload", eval("({'QueryParamsDatas':'SchoolYearDropdown|*|" + $("#SchoolyearDropdown").combobox("getValue") + "|@@|'})"));
- }
- </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.LevelSettingID)
- <table cellpadding="0" cellspacing="0" id="levelSettingTable">
- <tr>
- @*<td>@Html.LabelFor(x => x.SchoolyearID):
- </td>
- <td>@Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "SchoolyearDropdown", ID = "SchoolyearDropdown", OnSelect = "reload", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnLoadSuccess = "reload" }, new Dictionary<string, string> { })
- </td>*@
- <td>@Html.LabelFor(x => x.ExaminationSubjectID):
- </td>
- <td>
- @*@Html.DropdownListFor((x => x.ExaminationSubjectID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/ExaminationSubject/DropdownList") })*@
- @Html.ComboGridFor(x => x.ExaminationSubjectID, ExaminationSubject)
- </td>
- <td></td><td></td>
- </tr>
-
- <tr>
- <td>@Html.LabelFor(x => x.MinScore):
- </td>
- <td>@Html.TextBoxFor(x => x.MinScore, new Dictionary<string, object> { { "onPropertyChange", "onchangeRange()" } })
- </td>
- <td>@Html.LabelFor(x => x.MaxScore):
- </td>
- <td>@Html.TextBoxFor(x => x.MaxScore, new Dictionary<string, object> { { "onPropertyChange", "onchangeRange()" } })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.LevelName):
- </td>
- <td>@Html.TextBoxFor(x => x.LevelName, new Dictionary<string, object> { })
- </td>
- @*<td>@Html.LabelFor(x => x.LevelNo):
- </td>
- <td>@Html.TextBoxFor(x => x.LevelNo, new Dictionary<string, object> { })
- </td>*@
- @*</tr>
- <tr>*@
- <td>@Html.LabelFor(x => x.ScoreRange):
- </td>
- <td>@Html.TextBoxFor(x => x.ScoreRange, new Dictionary<string, object> { { "disabled", "true" } })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Remark):
- </td>
- <td colspan="3">@Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width:460px;" } })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|