123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225 |
- @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<DataGridColumn>()
- {
- 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<DataGridColumn>()
- {
- 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<DataGridColumn>()
- {
- 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<DataGridColumn>()
- {
- 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<DataGridColumn>()
- {
- 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<DataGridColumn>()
- {
- 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{
- <script src="~/Scripts/Business/ScoreManage/ScoreConvertByReplaceEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- </script>
- }
- @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.ScoreConvertByReplaceID)
- <table cellpadding="0" cellspacing="0" id="departmenttable">
- <tr>
- <td>
- @Html.LabelFor(x => x.CollegeID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.CollegeID, optCollege)
- </td>
- <td>
- @Html.LabelFor(x => x.YearID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(DictionaryItem.CF_Year, (x => x.YearID))
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.StandardID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.StandardID, optStandard)
- </td>
- <td>
- @Html.LabelFor(x => x.ClassmajorID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.ClassmajorID, optClassmajor)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.UserID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.UserID, optUser)
- </td>
- <td>
- @Html.LabelFor(x => x.SourceCoursematerialID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.SourceCoursematerialID, optSourceCoursematerial)
- </td>
- </tr>
- <tr>
- <td>
- @Html.Label("学时数"):
- </td>
- <td>
- @Html.TextBox(new TextBoxOptions { ID = "SourceTotalHours", IsEnabled = false })
- </td>
- <td>
- @Html.LabelFor(x => x.TotalScore):
- </td>
- <td>
- @Html.TextBox(new TextBoxOptions { IsEnabled = false, ID = "txtTotalScore", Value = Model.TotalScore })
- @Html.HiddenFor(x => x.TotalScore)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.TargetCoursematerialID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.TargetCoursematerialID, optTargetCoursematerial)
- </td>
- <td>
- @Html.Label("学时数"):
- </td>
- <td>
- @Html.TextBox(new TextBoxOptions { ID = "TargetTotalHours", IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Reason):
- </td>
- <td colspan="3">
- @Html.TextAreaFor(x => x.Reason, new { style = "width: 98%;" })
- </td>
- </tr>
- </table>
- </div>
- }
|