123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- @model EMIS.ViewModel.ScoreManage.LevelScoreView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- ComboGridOptions ExaminationSubject = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ExaminationSubjectID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- //new BoundFieldColumn { 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
- }
- };
- ComboGridOptions Student = new ComboGridOptions
- {
- TextField = "LoginID",
- ValueField = "UserID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="ClassMajorName", HeaderText="班级名称", Width=0.1, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.1, Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Students/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/ScoreManage/LevelScoreEdit.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("Edit")</div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.LevelScoreID)
- <table cellpadding="0" cellspacing="0" id="levelSettingTable">
- <tr>
- <td>@Html.LabelFor(x => x.ExaminationSubjectID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.ExaminationSubjectID, ExaminationSubject)
- </td>
- <td>@Html.LabelFor(x => x.SchoolyearID):
- </td>
- <td>@Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "SchoolyearDropdown", ID = "SchoolyearDropdown", OnSelect = "", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnLoadSuccess = "" }, new Dictionary<string, string> { })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.LoginID):
- </td>
- <td>@Html.ComboGridFor(x => x.UserID, Student)
- @*@Html.TextBoxFor(x => x.StudentCardNo, new Dictionary<string, object> { })*@
- </td>
- <td>@Html.LabelFor(x => x.ScoreNo):
- </td>
- <td>@Html.TextBoxFor(x => x.ScoreNo, new TextBoxOptions { TextBoxType = TextBoxType.Normal })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.TotalScore):
- </td>
- <td>@Html.TextBoxFor(x => x.TotalScore, new TextBoxOptions { TextBoxType = TextBoxType.Normal })
- </td>
- <td>@Html.Label("")
- </td>
- <td>@Html.Label("")
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.ExaminationDate):
- </td>
- <td>@Html.TextBoxFor(x => x.ExaminationDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
- </td>
- <td>@Html.LabelFor(x => x.ValidDate):
- </td>
- <td>@Html.TextBoxFor(x => x.ValidDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
- </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>
|