123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- @model EMIS.ViewModel.PaymentManage.WorktimeAdjustmentView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- ComboGridOptions optCourse = new ComboGridOptions
- {
- TextField = "CourseName",
- ValueField = "CoursematerialID",
- OnSelect = "queryMissionClass",
- 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 }
- },
- IsAutoLoad = false,
- OnLoadSuccessFun = "queryMissionClass",
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions optMissionClass = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "EducationMissionClassID",
- PanelWidth = 350,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="任务班名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/WorktimeAdjustment/GetEducationMissionClass"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions optUser = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "UserID",
- OnSelect = "queryMissionClass",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.2 }
- },
- OnLoadSuccessFun = "queryMissionClass",
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Staff/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions optStandard = new ComboGridOptions
- {
- TextField = "StandardName",
- ValueField = "StandardID",
- OnSelect = "queryMissionClass",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 }
- },
- IsAutoLoad = false,
- OnLoadSuccessFun = "queryCourse",
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/PaymentManage/WorktimeAdjustmentEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.PLEASE_SELECT";
- </script>
- }
- @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.SchoolyearID):
- </td>
- <td>@Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), OnSelect = "queryMissionClass", OnLoadSuccess = "queryMissionClass" })
- </td>
- <td>@Html.LabelFor(x => x.WorktimeAdjustmentTypeID):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.TP_WorktimeAdjustmentType, (x => x.WorktimeAdjustmentTypeID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.AdjustDate):
- </td>
- <td>@Html.TextBoxFor(x => x.AdjustDate, new TextBoxOptions { TextBoxType = TextBoxType.Date, OnChange = "adjustDateChanged" })
- </td>
- <td>@Html.LabelFor(x => x.UserID):
- </td>
- <td>@Html.ComboGridFor(x => x.UserID, optUser)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.CollegeID):
- </td>
- <td>@Html.DropdownListFor(x => x.CollegeID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanids"), OnLoadSuccess = "queryStandard", OnSelect = "queryStandard" })
- </td>
- <td>@Html.LabelFor(x => x.GradeYearID):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Grade, (x => x.GradeYearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, OnLoadSuccess = "queryStandard", OnSelect = "queryStandard" })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.StandardID):
- </td>
- <td>@Html.ComboGridFor(x => x.StandardID, optStandard)
- </td>
- <td>@Html.LabelFor(x => x.CoursematerialID):
- </td>
- <td>@Html.ComboGridFor(x => x.CoursematerialID, optCourse)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.EducationMissionClassID):
- </td>
- <td>@Html.ComboGridFor(x => x.EducationMissionClassID, optMissionClass)
- </td>
- <td>@Html.LabelFor(x => x.Worktime):
- </td>
- <td>@Html.TextBoxFor(x => x.Worktime)
- </td>
- </tr>
- </table>
- </div>
- }
|