123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- @model EMIS.ViewModel.ScoreManage.ImportScoreView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
-
- //学生信息
- ComboGridOptions cgopStudent = new ComboGridOptions
- {
- TextField = "LoginID",
- ValueField = "UserID",
- EmptyText = "请选择",
- 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 },
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Students/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
-
- //课程信息
- ComboGridOptions cgopCoursematerial = new ComboGridOptions
- {
- TextField = "CourseName",
- ValueField = "CoursematerialID",
- EmptyText = "请选择",
- IsAutoComplete = true,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.3 }
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Coursematerial/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/ScoreManage/ImportScoreEdit.js" type="text/javascript"></script>
- <script 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">
- <table cellpadding="0" cellspacing="0" id="importscoretable">
- <tr>
- <td>
- @Html.LabelFor(x => x.StudentNo):
- </td>
- <td>
- @Html.ComboGridFor(x => x.UserID, cgopStudent)
- </td>
- <td>
- @Html.LabelFor(x => x.SchoolyearCode):
- </td>
- <td>
- @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions
- {
- BindType = DropdownListBindType.PleaseSelect,
- ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid")
- })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.CourseName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.CoursematerialID, cgopCoursematerial)
- </td>
- <td>
- @Html.LabelFor(x => x.Score):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Score, new Dictionary<string, object> { })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Remark):
- </td>
- <td colspan="3">
- @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width:98%;" } })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|