123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225 |
- @model EMIS.ViewModel.DQPSystem.SOCTemplateView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.ViewModel;
- @{
- ViewBag.Title = "Edit";
- 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 BoundFieldColumn { 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,
- }
- };
- ComboGridOptions cgopStandard = new ComboGridOptions
- {
- TextField = "StandardName",
- ValueField = "StandardID",
- Name = "StandardDictionaryDropDown",
- ID = "StandardDictionaryDropDown",
- IsEnabled = false,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions cgopStandardCan = new ComboGridOptions
- {
- TextField = "StandardName",
- ValueField = "StandardID",
- Name = "StandardDictionaryDropDown",
- ID = "StandardDictionaryDropDown",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/DQPSystem/SOCTemplateEdit.js" type="text/javascript"></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.SOCTemplateID)
- <table cellpadding="0" cellspacing="0" id="departmenttable">
- <tr>
- <td>
- @Html.LabelFor(x => x.StandardName):
- </td>
- <td>
- @if (Model.SOCTemplateID == null || Model.SOCTemplateID == Guid.Empty)
- {
- @Html.ComboGridFor(x => x.StandardID, cgopStandardCan)
- }
- else
- {
- @Html.ComboGridFor(x => x.StandardID, cgopStandard)
- }
- </td>
- <td>
- @Html.LabelFor(x => x.FacultymajorName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.FacultymajorID, cgopFacultymajor)
- </td>
- <td>
- @Html.LabelFor(x => x.CourseName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.CreditStr):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Credit)
- </td>
- <td>
- @Html.LabelFor(x => x.SchoolyearNumName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, x => x.SchoolyearNumID)
- </td>
- <td>
- @Html.LabelFor(x => x.SchoolcodeName):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Semester, x => x.SchoolcodeID)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.DepartmentName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.DepartmentID, cgopDepartment)
- </td>
- <td>
- @Html.LabelFor(x => x.HandleModeID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HandleMode, x => x.HandleModeID)
- </td>
- <td>
- @Html.LabelFor(x => x.IsEnableName):
- </td>
- <td>
- @Html.CheckBoxFor(x => x.IsEnable)
- </td>
- </tr>
- <tr>
- <td>
- @Html.Label("SOC设置"):
- </td>
- <td colspan="5">
- @Html.ContextMenuBar("Edit-SOCTemplateDetailGrid")
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="SOCTemplateItemID" },
- new TextBoxColumn { FieldName="Name", HeaderText="成果名称", Align=AlignStyle.Center, Width=80 },
- new TextBoxColumn { FieldName="Credit", HeaderText="成果学分", Align=AlignStyle.Center, Width=60 },
- new TextBoxColumn { FieldName="Weight", HeaderText="成果权重", Align=AlignStyle.Center, Width=60 },
- new TextBoxColumn { FieldName="Description", IsMultiLine=true, HeaderText="成果描述", Align=AlignStyle.Center, Width=320 },
- new BoundFieldColumn { FieldName="AttachmentName", HeaderText="附件说明", Align=AlignStyle.Center, Width=120 },
- new CheckButtonColumn { FieldName="IsGroup", HeaderText="是否分组", Align=AlignStyle.Center, Width=60 },
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/SOCTemplate/TemplateDetail?templateID=" + Request.Params["templateID"]),
- ID = "dgSOCTemplateDetailList",
- IsPagination = true,
- IsPostBack = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- MaxHeight = 180
- })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|