123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- @model EMIS.ViewModel.DQPSystem.SOCView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.ViewModel;
- @{
- ViewBag.Title = "Edit";
- var socIDList = ViewBag.SOCIDList;
- ComboGridOptions cgopFacultymajor = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "FacultymajorID",
- Name = "FacultymajorComboGrid",
- ID = "FacultymajorComboGrid",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Code", HeaderText="院系专业编号", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="院系专业名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Facultymajor/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- IsShowHeader = false
- }
- };
- ComboGridOptions cgopCourse = new ComboGridOptions
- {
- TextField = "CourseName",
- ValueField = "CoursematerialID",
- Name = "CoursematerialIDDropdownGridBo",
- ID = "CoursematerialIDDropdownGridBo",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- //new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- //开课教研室
- ComboGridOptions cgopDepartment = new ComboGridOptions
- {
- ID = "DepartmentDropdown",
- Name = "DepartmentDropdown",
- TextField = "Name",
- ValueField = "DepartmentID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- //new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.2 }
- },
- //IsAutoLoad = false,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Department/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/DQPSystem/SOCEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- $("#socIDList").val("@ViewBag.SOCIDList");
- </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="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Setting")</div>
- </div>
- <div class="search_list">
- @Html.Hidden("hid_ActionsType")
- @Html.HiddenFor(x => x.SOCID)
- @Html.HiddenFor(x => x.EducationMissionID)
- @Html.HiddenFor(x => x.CoursematerialID)
- @Html.HiddenFor(x => x.DepartmentID)
- @Html.HiddenFor(x => x.HandleModeID)
- @Html.HiddenFor(x => x.OptionalCourseTypeID)
- @Html.Hidden("socIDList")
- <table cellpadding="0" cellspacing="0" id="departmenttable">
- <tr>
- <td style = "width:8%">
- @Html.LabelFor(x => x.SchoolyearCode):
- </td>
- <td>
- @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), IsEnabled = false })
- </td>
- <td>
- @Html.LabelFor(x => x.CourseCode):
- </td>
- <td>
- @Html.TextBoxFor(x => x.CourseCode, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.CourseName):
- </td>
- <td>
- @Html.TextBoxFor(x => x.CourseName, new TextBoxOptions { IsEnabled = false })
- </td>
- <td>
- @Html.LabelFor(x => x.Credit):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Credit)
- </td>
- @* <td>
- @Html.LabelFor(x => x.StudentCount):
- </td>
- <td>
- @Html.TextBoxFor(x => x.StudentCount, new TextBoxOptions { IsEnabled = false })
- </td>*@
- </tr>
- <tr>
- <td>
- @Html.Label("SOC设置"):
- </td>
- <td colspan="3">
- @Html.ContextMenuBar("Edit-SOCDetailGrid")
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="SOCDetailID" },
- new BoundFieldColumn { FieldName="Name", HeaderText="成果名称", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="Credit", HeaderText="成果学分", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="Weight", HeaderText="成果权重", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="Description", HeaderText="成果描述", Align=AlignStyle.Center, Width=0.2 },
- new BoundFieldColumn { FieldName="StartTimeStr", HeaderText="开始上传时间", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="EndTimeStr", HeaderText="截止上传时间", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="SOCDetailAttachment", HeaderText="附件说明", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="IsGroupStr", HeaderText="是否分组", Align=AlignStyle.Center, Width=0.04 },
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/SOC/SOCDetail?SOCID=" + Model.SOCID),
- ID = "dgSOCDetailList",
- IsPagination = true,
- IsPostBack = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|