@model EMIS.ViewModel.ScoreManage.ScoreConvertByReplaceView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @using EMIS.ViewModel; @{ ViewBag.Title = "Edit"; ComboGridOptions optCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "queryStandard", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 } }, IsAutoLoad = false, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions optStandard = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", OnSelect = "queryClass", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center } }, IsAutoLoad = false, OnLoadSuccessFun = "queryClass", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions optClassmajor = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", OnSelect = "queryUser", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center } }, IsAutoLoad = false, OnLoadSuccessFun = "queryUser", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classmajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions optUser = new ComboGridOptions { TextField = "LoginID", ValueField = "UserID", IsAutoComplete = true, MinReloadCharactor = EMIS.Utility.Const.LOCAL_SETTING_LoginIDLength, OnSelect = "queryCourse", 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 }, }, IsAutoLoad = false, OnLoadSuccessFun = "queryCourse", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Students/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions optSourceCoursematerial = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", OnSelect = "querySourceScore", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.1, Align=AlignStyle.Center }, }, OnLoadSuccessFun = "querySourceScore", IsAutoLoad = false, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ScoreConvert/SourceCoursematerialList"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions optTargetCoursematerial = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", OnSelect = "queryTargetScore", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.1, Align=AlignStyle.Center }, }, OnLoadSuccessFun = "queryTargetScore", 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.ScoreConvertByReplaceID)
@Html.LabelFor(x => x.CollegeID): @Html.ComboGridFor(x => x.CollegeID, optCollege) @Html.LabelFor(x => x.YearID): @Html.DictionaryDropDownListFor(DictionaryItem.CF_Year, (x => x.YearID))
@Html.LabelFor(x => x.StandardID): @Html.ComboGridFor(x => x.StandardID, optStandard) @Html.LabelFor(x => x.ClassmajorID): @Html.ComboGridFor(x => x.ClassmajorID, optClassmajor)
@Html.LabelFor(x => x.UserID): @Html.ComboGridFor(x => x.UserID, optUser) @Html.LabelFor(x => x.SourceCoursematerialID): @Html.ComboGridFor(x => x.SourceCoursematerialID, optSourceCoursematerial)
@Html.Label("学时数"): @Html.TextBox(new TextBoxOptions { ID = "SourceTotalHours", IsEnabled = false }) @Html.LabelFor(x => x.TotalScore): @Html.TextBox(new TextBoxOptions { IsEnabled = false, ID = "txtTotalScore", Value = Model.TotalScore }) @Html.HiddenFor(x => x.TotalScore)
@Html.LabelFor(x => x.TargetCoursematerialID): @Html.ComboGridFor(x => x.TargetCoursematerialID, optTargetCoursematerial) @Html.Label("学时数"): @Html.TextBox(new TextBoxOptions { ID = "TargetTotalHours", IsEnabled = false })
@Html.LabelFor(x => x.Reason): @Html.TextAreaFor(x => x.Reason, new { style = "width: 98%;" })
}