@@ -48,14 +48,14 @@ namespace Learun.Application.Web.Areas.LR_AuthorizeModule.Controllers | |||||
var modules = authorizeIBLL.GetItemIdList(objectId, 1); | var modules = authorizeIBLL.GetItemIdList(objectId, 1); | ||||
var buttons = authorizeIBLL.GetItemIdList(objectId, 2); | var buttons = authorizeIBLL.GetItemIdList(objectId, 2); | ||||
var columns = authorizeIBLL.GetItemIdList(objectId, 3); | var columns = authorizeIBLL.GetItemIdList(objectId, 3); | ||||
var forms = authorizeIBLL.GetItemIdList(objectId, 4); | |||||
//var forms = authorizeIBLL.GetItemIdList(objectId, 4); | |||||
var datajson = new | var datajson = new | ||||
{ | { | ||||
modules, | modules, | ||||
buttons, | buttons, | ||||
columns, | |||||
forms | |||||
columns | |||||
//forms | |||||
}; | }; | ||||
return JsonResult(datajson); | return JsonResult(datajson); | ||||
} | } | ||||
@@ -92,7 +92,8 @@ namespace Learun.Application.Web.Areas.LR_AuthorizeModule.Controllers | |||||
string[] moduleIds = strModuleId.Split(','); | string[] moduleIds = strModuleId.Split(','); | ||||
string[] moduleButtonIds = strModuleButtonId.Split(','); | string[] moduleButtonIds = strModuleButtonId.Split(','); | ||||
string[] moduleColumnIds = strModuleColumnId.Split(','); | string[] moduleColumnIds = strModuleColumnId.Split(','); | ||||
string[] moduleFormIds = strModuleFormId.Split(','); | |||||
//string[] moduleFormIds = strModuleFormId.Split(','); | |||||
string[] moduleFormIds = new string[0]; | |||||
authorizeIBLL.SaveAuthorize(objectType, objectId, moduleIds, moduleButtonIds, moduleColumnIds, moduleFormIds); | authorizeIBLL.SaveAuthorize(objectType, objectId, moduleIds, moduleButtonIds, moduleColumnIds, moduleFormIds); | ||||
return Success("保存成功!"); | return Success("保存成功!"); | ||||
@@ -9,7 +9,7 @@ | |||||
<li data-target="#step-1" class="active"><span class="step">1</span>系统功能<span class="chevron"></span></li> | <li data-target="#step-1" class="active"><span class="step">1</span>系统功能<span class="chevron"></span></li> | ||||
<li data-target="#step-2"><span class="step">2</span>系统按钮<span class="chevron"></span></li> | <li data-target="#step-2"><span class="step">2</span>系统按钮<span class="chevron"></span></li> | ||||
<li data-target="#step-3"><span class="step">3</span>系统视图<span class="chevron"></span></li> | <li data-target="#step-3"><span class="step">3</span>系统视图<span class="chevron"></span></li> | ||||
<li data-target="#step-4"><span class="step">4</span>系统表单<span class="chevron"></span></li> | |||||
@*<li data-target="#step-4"><span class="step">4</span>系统表单<span class="chevron"></span></li>*@ | |||||
</ul> | </ul> | ||||
</div> | </div> | ||||
<div class="step-content" id="wizard-steps"> | <div class="step-content" id="wizard-steps"> | ||||
@@ -22,9 +22,9 @@ | |||||
<div class="step-pane" id="step-3"> | <div class="step-pane" id="step-3"> | ||||
</div> | </div> | ||||
<div class="step-pane" id="step-4"> | |||||
@*<div class="step-pane" id="step-4"> | |||||
</div> | |||||
</div>*@ | |||||
</div> | </div> | ||||
<div class="lr-form-bottom-button" id="wizard-actions"> | <div class="lr-form-bottom-button" id="wizard-actions"> | ||||
@@ -78,14 +78,14 @@ var bootstrap = function ($, learun) { | |||||
$('#step-3').lrtree({ | $('#step-3').lrtree({ | ||||
data: treeData.columnList | data: treeData.columnList | ||||
}); | }); | ||||
$('#step-4').lrtree({ | |||||
data: treeData.formList | |||||
}); | |||||
//$('#step-4').lrtree({ | |||||
// data: treeData.formList | |||||
//}); | |||||
if (!!objectId) { | if (!!objectId) { | ||||
setTreeData1(); | setTreeData1(); | ||||
setTreeData2(); | setTreeData2(); | ||||
setTreeData3(); | setTreeData3(); | ||||
setTreeData4(); | |||||
//setTreeData4(); | |||||
} | } | ||||
} | } | ||||
setTimeout(function () { | setTimeout(function () { | ||||
@@ -101,13 +101,14 @@ var bootstrap = function ($, learun) { | |||||
checkModuleIds = $('#step-1').lrtreeSet('getCheckNodeIds'); | checkModuleIds = $('#step-1').lrtreeSet('getCheckNodeIds'); | ||||
$('#step-2 .lr-tree-root [id$="_learun_moduleId"]').parent().hide(); | $('#step-2 .lr-tree-root [id$="_learun_moduleId"]').parent().hide(); | ||||
$('#step-3 .lr-tree-root [id$="_learun_moduleId"]').parent().hide(); | $('#step-3 .lr-tree-root [id$="_learun_moduleId"]').parent().hide(); | ||||
$('#step-4 .lr-tree-root [id$="_learun_moduleId"]').parent().hide(); | |||||
//$('#step-4 .lr-tree-root [id$="_learun_moduleId"]').parent().hide(); | |||||
$.each(checkModuleIds, function (id, item) { | $.each(checkModuleIds, function (id, item) { | ||||
$('#step-2_' + item.replace(/-/g, '_') + '_learun_moduleId').parent().show(); | $('#step-2_' + item.replace(/-/g, '_') + '_learun_moduleId').parent().show(); | ||||
$('#step-3_' + item.replace(/-/g, '_') + '_learun_moduleId').parent().show(); | $('#step-3_' + item.replace(/-/g, '_') + '_learun_moduleId').parent().show(); | ||||
$('#step-4_' + item.replace(/-/g, '_') + '_learun_moduleId').parent().show(); | |||||
//$('#step-4_' + item.replace(/-/g, '_') + '_learun_moduleId').parent().show(); | |||||
}); | }); | ||||
} else if (data.step == 3) { | |||||
//} else if (data.step == 3) { | |||||
} else if (data.step == 2) { | |||||
$finish.removeAttr('disabled'); | $finish.removeAttr('disabled'); | ||||
$next.attr('disabled', 'disabled'); | $next.attr('disabled', 'disabled'); | ||||
@@ -140,7 +141,7 @@ var bootstrap = function ($, learun) { | |||||
var buttonList = [], columnList = [], formList = []; | var buttonList = [], columnList = [], formList = []; | ||||
var checkButtonIds = $('#step-2').lrtreeSet('getCheckNodeIds'); | var checkButtonIds = $('#step-2').lrtreeSet('getCheckNodeIds'); | ||||
var checkColumnIds = $('#step-3').lrtreeSet('getCheckNodeIds'); | var checkColumnIds = $('#step-3').lrtreeSet('getCheckNodeIds'); | ||||
var checkFormIds = $('#step-4').lrtreeSet('getCheckNodeIds'); | |||||
//var checkFormIds = $('#step-4').lrtreeSet('getCheckNodeIds'); | |||||
$.each(checkButtonIds, function (id, item) { | $.each(checkButtonIds, function (id, item) { | ||||
@@ -153,11 +154,11 @@ var bootstrap = function ($, learun) { | |||||
columnList.push(item); | columnList.push(item); | ||||
} | } | ||||
}); | }); | ||||
$.each(checkFormIds, function (id, item) { | |||||
if (item.indexOf('_learun_moduleId') == -1) { | |||||
formList.push(item); | |||||
} | |||||
}); | |||||
//$.each(checkFormIds, function (id, item) { | |||||
// if (item.indexOf('_learun_moduleId') == -1) { | |||||
// formList.push(item); | |||||
// } | |||||
//}); | |||||
var postData = { | var postData = { | ||||
@@ -108,15 +108,15 @@ namespace Learun.Application.Web.Areas.LR_SystemModule.Controllers | |||||
var moduleList = moduleIBLL.GetModuleCheckTree(); | var moduleList = moduleIBLL.GetModuleCheckTree(); | ||||
var buttonList = moduleIBLL.GetButtonCheckTree(); | var buttonList = moduleIBLL.GetButtonCheckTree(); | ||||
var columnList = moduleIBLL.GetColumnCheckTree(); | var columnList = moduleIBLL.GetColumnCheckTree(); | ||||
var formList = moduleIBLL.GetFormCheckTree(); | |||||
//var formList = moduleIBLL.GetFormCheckTree(); | |||||
var jsonData = new | var jsonData = new | ||||
{ | { | ||||
moduleList, | moduleList, | ||||
buttonList, | buttonList, | ||||
columnList, | |||||
formList | |||||
columnList | |||||
//formList | |||||
}; | }; | ||||
return this.JsonResult(jsonData); | return this.JsonResult(jsonData); | ||||
@@ -226,6 +226,11 @@ | |||||
if (!!dfop.nodeClick) { | if (!!dfop.nodeClick) { | ||||
dfop.nodeClick(node, $this); | dfop.nodeClick(node, $this); | ||||
} | } | ||||
if (dfop.isTextCheck) { | |||||
setTimeout(function () { | |||||
$this.find('.lr-tree-node-cb').trigger('click'); | |||||
}); | |||||
} | |||||
} | } | ||||
return false; | return false; | ||||
}, | }, | ||||
@@ -529,7 +534,13 @@ | |||||
setNoCheck(dfop.data); | setNoCheck(dfop.data); | ||||
break; | break; | ||||
case 'allCheck': | case 'allCheck': | ||||
$self.find('.lr-tree-node-cb[src$="checkbox_0.png"]').trigger('click'); | |||||
$self.find('.lr-tree-node-cb[src$="checkbox_0.png"]').each(function () { | |||||
var $this = $(this); | |||||
if ($this.parent().parent().find('.lr-tree-node-ct').length == 0) { | |||||
$this.trigger('click'); | |||||
} | |||||
$this = null; | |||||
}); | |||||
break; | break; | ||||
case 'setCheck': | case 'setCheck': | ||||
var list = op; | var list = op; | ||||
@@ -295,6 +295,7 @@ | |||||
<ItemGroup /> | <ItemGroup /> | ||||
<ItemGroup> | <ItemGroup> | ||||
<None Include="packages.config" /> | <None Include="packages.config" /> | ||||
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<ProjectReference Include="..\Learun.Framework.Module\Learun.Application.Module\Learun.Application.Extention\Learun.Application.Extention.csproj"> | <ProjectReference Include="..\Learun.Framework.Module\Learun.Application.Module\Learun.Application.Extention\Learun.Application.Extention.csproj"> | ||||
@@ -0,0 +1,18 @@ | |||||
<?xml version="1.0" encoding="utf-8"?> | |||||
<!-- | |||||
此文件由 Web 项目的发布/打包过程使用。可以通过编辑此 MSBuild 文件 | |||||
自定义此过程的行为。为了解与此相关的更多内容,请访问 https://go.microsoft.com/fwlink/?LinkID=208121。 | |||||
--> | |||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||||
<PropertyGroup> | |||||
<WebPublishMethod>FileSystem</WebPublishMethod> | |||||
<PublishProvider>FileSystem</PublishProvider> | |||||
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> | |||||
<LastUsedPlatform>Any CPU</LastUsedPlatform> | |||||
<SiteUrlToLaunchAfterPublish /> | |||||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish> | |||||
<ExcludeApp_Data>False</ExcludeApp_Data> | |||||
<publishUrl>D:\Job-release\DigitalCampusWebSite-release</publishUrl> | |||||
<DeleteExistingFiles>True</DeleteExistingFiles> | |||||
</PropertyGroup> | |||||
</Project> |
@@ -161,16 +161,16 @@ namespace Learun.Application.Base.AuthorizeModule | |||||
#endregion | #endregion | ||||
#region 表单 | #region 表单 | ||||
foreach (string item in moduleForms) | |||||
{ | |||||
AuthorizeEntity authorizeEntity = new AuthorizeEntity(); | |||||
authorizeEntity.Create(); | |||||
authorizeEntity.F_ObjectType = objectType; | |||||
authorizeEntity.F_ObjectId = objectId; | |||||
authorizeEntity.F_ItemType = 4; | |||||
authorizeEntity.F_ItemId = item; | |||||
db.Insert(authorizeEntity); | |||||
} | |||||
//foreach (string item in moduleForms) | |||||
//{ | |||||
// AuthorizeEntity authorizeEntity = new AuthorizeEntity(); | |||||
// authorizeEntity.Create(); | |||||
// authorizeEntity.F_ObjectType = objectType; | |||||
// authorizeEntity.F_ObjectId = objectId; | |||||
// authorizeEntity.F_ItemType = 4; | |||||
// authorizeEntity.F_ItemId = item; | |||||
// db.Insert(authorizeEntity); | |||||
//} | |||||
#endregion | #endregion | ||||
db.Commit(); | db.Commit(); | ||||
@@ -38,14 +38,7 @@ namespace Learun.Application.Base.SystemModule | |||||
t.F_AllowDelete, | t.F_AllowDelete, | ||||
t.F_SortCode, | t.F_SortCode, | ||||
t.F_DeleteMark, | t.F_DeleteMark, | ||||
t.F_EnabledMark, | |||||
t.F_Description, | |||||
t.F_CreateDate, | |||||
t.F_CreateUserId, | |||||
t.F_CreateUserName, | |||||
t.F_ModifyDate, | |||||
t.F_ModifyUserId, | |||||
t.F_ModifyUserName | |||||
t.F_EnabledMark | |||||
"; | "; | ||||
btnfieldSql = @" | btnfieldSql = @" | ||||
t.F_ModuleButtonId, | t.F_ModuleButtonId, | ||||
@@ -459,6 +459,12 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
[Column("STUDYMODALITY")] | [Column("STUDYMODALITY")] | ||||
public string StudyModality { get; set; } | public string StudyModality { get; set; } | ||||
/// <summary> | /// <summary> | ||||
/// 学籍异动状态 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[Column("CHANGESTATUS")] | |||||
public int? ChangeStatus { get; set; } | |||||
/// <summary> | |||||
/// SyncFlag | /// SyncFlag | ||||
/// </summary> | /// </summary> | ||||
[Column("SYNCFLAG")] | [Column("SYNCFLAG")] | ||||