123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- @model EMIS.ViewModel.ScoreManage.ScoreConvertByApplyView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.ViewModel;
- @{
- ViewBag.Title = "Edit";
- ComboGridOptions optUser = new ComboGridOptions
- {
- TextField = "LoginID",
- ValueField = "UserID",
- IsAutoComplete = true,
- MinReloadCharactor = EMIS.Utility.Const.LOCAL_SETTING_LoginIDLength,
- OnSelect = "queryCourse",
- IsEnabled = false,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Width=0.1, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.1, Align=AlignStyle.Center },
- },
- OnLoadSuccessFun = "queryCourse",
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Students/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions optTargetCoursematerial = new ComboGridOptions
- {
- TextField = "CourseName",
- ValueField = "CoursematerialID",
- MinReloadCharactor = EMIS.Utility.Const.LOCAL_SETTING_LoginIDLength,
- OnSelect = "queryScore",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.1, Align=AlignStyle.Center },
- },
- OnLoadSuccessFun = "queryScore",
- IsAutoLoad = false,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ScoreConvert/TargetCoursematerialList"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/ScoreManage/StudentScoreConvertByApplyEdit.js" type="text/javascript"></script>
- <script type = "text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- </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="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.ScoreConvertByApplyID)
- @Html.HiddenFor(x => x.IsChangeAttachment)
- <table cellpadding="0" cellspacing="0" id="departmenttable">
- <tr>
- <td>
- @Html.LabelFor(x => x.UserID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.UserID, optUser)
- </td>
- <td>
- @Html.LabelFor(x => x.CoursematerialID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.CoursematerialID, optTargetCoursematerial)
- </td>
- </tr>
- <tr>
- <td>
- @Html.Label("学时数"):
- </td>
- <td>
- @Html.TextBox(new TextBoxOptions { ID = "TotalHours", IsEnabled = false })
- </td>
- <td>
- @Html.LabelFor(x => x.TotalScore):
- </td>
- <td>
- @Html.TextBoxFor(x => x.TotalScore)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Reason):
- </td>
- <td colspan="3">
- @Html.TextAreaFor(x => x.Reason, new { style = "width: 98%;" })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.UploadAttachmentName):
- </td>
- <td colspan="3">
- @Html.TextBoxFor(x => x.UploadAttachmentName, new TextBoxOptions { IsEnabled = false }, new Dictionary<string, string> { { "style", "width:98%;" } })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|