123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- @model EMIS.ViewModel.EvaluationManage.EvaluationOpenControlView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- String SchoolYearID = ViewBag.SchoolYearID;
- ComboGridOptions cgopCollege = 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 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions cgopGrademajor = 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
- }
- };
- }
- <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">
- @Html.HiddenFor(x => x.EvaluationGradeControlID)
- <table cellpadding="0" cellspacing="0" class="universitytable">
-
- <tr>
- <td>@Html.LabelFor(x => x.SchoolyearID):
- </td>
- <td>@Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { ItemSourceUrl = "~/SchoolYear/DropDown", TextField = "Text", ValueField = "Value"})
- </td>
- <td>@Html.LabelFor(x => x.CollegeID):
- </td>
- <td>@Html.ComboGridFor(x => x.CollegeID, cgopCollege)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.GrademajorID):
- </td>
- <td>@Html.ComboGridFor(x => x.GrademajorID, cgopGrademajor)
- </td>
- <td>@Html.LabelFor(x => x.StartTime):
- </td>
- <td>@Html.TextBoxFor(x => x.StartTime, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.EndTime):
- </td>
- <td>@Html.TextBoxFor(x => x.EndTime, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
- </td>
- <td>@Html.LabelFor(x => x.EvaluationCount):
- </td>
- <td>@Html.TextBoxFor(x => x.EvaluationCount)
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
- @section scripts{
- <script type="text/javascript">
- function EvaluationOpenControl_Save() {
- $(document.forms[0]).submit();
- }
- </script>
- }
|