@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() { 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() { 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{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@Html.ContextMenuBar("Edit")
@Html.HiddenFor(x => x.ScoreConvertByApplyID) @Html.HiddenFor(x => x.IsChangeAttachment)
@Html.LabelFor(x => x.UserID): @Html.ComboGridFor(x => x.UserID, optUser) @Html.LabelFor(x => x.CoursematerialID): @Html.ComboGridFor(x => x.CoursematerialID, optTargetCoursematerial)
@Html.Label("学时数"): @Html.TextBox(new TextBoxOptions { ID = "TotalHours", IsEnabled = false }) @Html.LabelFor(x => x.TotalScore): @Html.TextBoxFor(x => x.TotalScore)
@Html.LabelFor(x => x.Reason): @Html.TextAreaFor(x => x.Reason, new { style = "width: 98%;" })
@Html.LabelFor(x => x.UploadAttachmentName): @Html.TextBoxFor(x => x.UploadAttachmentName, new TextBoxOptions { IsEnabled = false }, new Dictionary { { "style", "width:98%;" } })
}