123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- @model EMIS.ViewModel.DQPSystem.SOCDetailView
- @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 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 type = "text/javascript">
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- function SOCDetail_Save() {
- $(document.forms[0]).submit();
- }
- function SOCDetail_Upload() {
- // var d = validChoose();
- // if (d.length == 0) {
- // $.messager.alert("系统信息", "请选择您要进行附件管理的信息。");
- // return;
- // }
- // if (d.length > 1) {
- // $.messager.alert("系统信息", "只能选择单个记录进行附件管理。");
- // return;
- // }
- var socDetailID = $("#SOCDetailID").val();
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + "/SOCDetail/Upload?detailID=" + socDetailID + "&MNU=" + mnu;
- $.popupTopWindow('附件管理', redirectTo, 800, 600, setAttachment);
- }
- function setAttachment() {
- $.ajaxSetup({
- async: false
- });
- var fileList;
- var socDetailID = $("#SOCDetailID").val();
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/SOC/GetFileListByDetailID', { DetailID: socDetailID }, function (data) {
- fileList = data;
- });
-
- var count = fileList.length;
- //var roleViewList = $("#dgSOCDetailList").cmsXDataTable("getRows");
- var nameStr = "";
- for (var i = 0; i < count; i++) {
- var name = fileList[i].FileName;
- nameStr = nameStr + "、" + name;
- }
- $("#IsChangeAttachment").val(1);
- nameStr = nameStr.substr(1, (nameStr.length - 1));
- $("#SOCDetailAttachment").val(nameStr);
- }
- </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("Edit")</div>
- </div>
- <div class="search_list">
- @Html.Hidden("hid_ActionsType")
- @Html.HiddenFor(x => x.SOCDetailID)
- @Html.HiddenFor(x => x.IsChangeAttachment)
- <table cellpadding="0" cellspacing="0" id="departmenttable">
- <tr>
- <td>
- @Html.LabelFor(x => x.Name):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Name)
- </td>
- <td>
- @Html.LabelFor(x => x.Credit):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Credit, new TextBoxOptions { IsEnabled = false })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Description):
- </td>
- <td colspan="3">
- @Html.TextAreaFor(x => x.Description, 3, 70, null)
- </td>
-
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.StartTime):
- </td>
- <td>
- @Html.TextBoxFor(x => x.StartTime, new TextBoxOptions { TextBoxType = TextBoxType.Date })
- </td>
- <td>
- @Html.LabelFor(x => x.EndTime):
- </td>
- <td>
- @Html.TextBoxFor(x => x.EndTime, new TextBoxOptions { TextBoxType = TextBoxType.Date })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.SOCDetailAttachment):
- </td>
- <td>
- @Html.TextBoxFor(x => x.SOCDetailAttachment, new TextBoxOptions { IsEnabled = false, ID = "SOCDetailAttachment", Name = "SOCDetailAttachment" })
- </td>
- <td>
- @Html.LabelFor(x => x.IsGroup):
- </td>
- <td>
- @Html.CheckBoxFor(x => x.IsGroupin)
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|