123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249 |
- @model EMIS.ViewModel.PaymentManage.WorktimeAdditionView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- ComboGridOptions optCollege = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- OnSelect = "queryUser",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
- },
- OnLoadSuccessFun = "queryUser",
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions optStudentCollege = 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 }
- },
- OnLoadSuccessFun = "queryStandard",
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions optCourseCollege = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions optStandard = new ComboGridOptions
- {
- TextField = "StandardName",
- ValueField = "StandardID",
- OnSelect = "queryGrademajor",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
- },
- OnLoadSuccessFun = "queryGrademajor",
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- IsShowHeader = false
- }
- };
- ComboGridOptions optGrademajor = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "GrademajorID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Grademajor/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
-
- ComboGridOptions optUser = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "UserID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.2 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Staff/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions optCoursematerial = new ComboGridOptions
- {
- TextField = "CourseName",
- ValueField = "CoursematerialID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/PaymentManage/WorktimeAdditionEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.PLEASE_SELECT";
- </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">
- <tr>
- <td>@Html.LabelFor(x => x.CollegeID):
- </td>
- <td>@Html.ComboGridFor(x => x.CollegeID, optCollege)
- </td>
- <td>@Html.LabelFor(x => x.UserID):
- </td>
- <td>@Html.ComboGridFor(x => x.UserID, optUser)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.SchoolyearID):
- </td>
- <td>@Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid") })
- </td>
- <td>@Html.LabelFor(x => x.StudentCollegeID):
- </td>
- <td>@Html.ComboGridFor(x => x.StudentCollegeID, optStudentCollege)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.GradeYearID):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Grade, (x => x.GradeYearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, OnSelect = "queryStandard", OnLoadSuccess = "queryStandard" })
- </td>
- <td>@Html.LabelFor(x => x.StandardID):
- </td>
- <td>@Html.ComboGridFor(x => x.StandardID, optStandard)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.GrademajorID):
- </td>
- <td>@Html.ComboGridFor(x => x.GrademajorID, optGrademajor)
- </td>
- <td>@Html.LabelFor(x => x.CourseCollegeID):
- </td>
- <td>@Html.ComboGridFor(x => x.CourseCollegeID, optCourseCollege)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.CoursematerialID):
- </td>
- <td>@Html.ComboGridFor(x => x.CoursematerialID, optCoursematerial)
- </td>
- <td>@Html.LabelFor(x => x.EducationMissionClassName):
- </td>
- <td>@Html.TextBoxFor(x => x.EducationMissionClassName)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.TeachingModeID):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, (x => x.TeachingModeID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect })
- </td>
- <td>@Html.LabelFor(x => x.TeachType):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_TeachingMethod, (x => x.TeachType), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.StudentCount):
- </td>
- <td>@Html.TextBoxFor(x => x.StudentCount)
- </td>
- <td>@Html.LabelFor(x => x.CourseTime):
- </td>
- <td>@Html.TextBoxFor(x => x.CourseTime)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x=>x.Month):
- </td>
- <td colspan="3">@Html.TextBoxFor(x=>x.Month)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Remark):
- </td>
- <td colspan="3">@Html.TextAreaFor(x => x.Remark, new { style = "width:98%;" })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|