Ver a proveniência

功能授权:取消表单权限的授权;学籍实体:增加异动状态字段;

中职版本
dyy há 4 anos
ascendente
cometimento
b4ca580613
10 ficheiros alterados com 73 adições e 42 eliminações
  1. +5
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_AuthorizeModule/Controllers/AuthorizeController.cs
  2. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_AuthorizeModule/Views/Authorize/Form.cshtml
  3. +14
    -13
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_AuthorizeModule/Views/Authorize/Form.js
  4. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/ModuleController.cs
  5. +12
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/plugin/tree/lr-tree.js
  6. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Website/Learun.Application.Website.csproj
  7. +18
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Website/Properties/PublishProfiles/FolderProfile.pubxml
  8. +10
    -10
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/AuthorizeModule/Authorize/AuthorizeService.cs
  9. +1
    -8
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/Module/ModuleService.cs
  10. +6
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicEntity.cs

+ 5
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_AuthorizeModule/Controllers/AuthorizeController.cs Ver ficheiro

@@ -48,14 +48,14 @@ namespace Learun.Application.Web.Areas.LR_AuthorizeModule.Controllers
var modules = authorizeIBLL.GetItemIdList(objectId, 1);
var buttons = authorizeIBLL.GetItemIdList(objectId, 2);
var columns = authorizeIBLL.GetItemIdList(objectId, 3);
var forms = authorizeIBLL.GetItemIdList(objectId, 4);
//var forms = authorizeIBLL.GetItemIdList(objectId, 4);

var datajson = new
{
modules,
buttons,
columns,
forms
columns
//forms
};
return JsonResult(datajson);
}
@@ -92,7 +92,8 @@ namespace Learun.Application.Web.Areas.LR_AuthorizeModule.Controllers
string[] moduleIds = strModuleId.Split(',');
string[] moduleButtonIds = strModuleButtonId.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);
return Success("保存成功!");


+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_AuthorizeModule/Views/Authorize/Form.cshtml Ver ficheiro

@@ -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-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-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>
</div>
<div class="step-content" id="wizard-steps">
@@ -22,9 +22,9 @@
<div class="step-pane" id="step-3">

</div>
<div class="step-pane" id="step-4">
@*<div class="step-pane" id="step-4">

</div>
</div>*@
</div>

<div class="lr-form-bottom-button" id="wizard-actions">


+ 14
- 13
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_AuthorizeModule/Views/Authorize/Form.js Ver ficheiro

@@ -78,14 +78,14 @@ var bootstrap = function ($, learun) {
$('#step-3').lrtree({
data: treeData.columnList
});
$('#step-4').lrtree({
data: treeData.formList
});
//$('#step-4').lrtree({
// data: treeData.formList
//});
if (!!objectId) {
setTreeData1();
setTreeData2();
setTreeData3();
setTreeData4();
//setTreeData4();
}
}
setTimeout(function () {
@@ -101,13 +101,14 @@ var bootstrap = function ($, learun) {
checkModuleIds = $('#step-1').lrtreeSet('getCheckNodeIds');
$('#step-2 .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) {
$('#step-2_' + 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');
$next.attr('disabled', 'disabled');
@@ -140,7 +141,7 @@ var bootstrap = function ($, learun) {
var buttonList = [], columnList = [], formList = [];
var checkButtonIds = $('#step-2').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) {
@@ -153,11 +154,11 @@ var bootstrap = function ($, learun) {
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 = {


+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/ModuleController.cs Ver ficheiro

@@ -108,15 +108,15 @@ namespace Learun.Application.Web.Areas.LR_SystemModule.Controllers
var moduleList = moduleIBLL.GetModuleCheckTree();
var buttonList = moduleIBLL.GetButtonCheckTree();
var columnList = moduleIBLL.GetColumnCheckTree();
var formList = moduleIBLL.GetFormCheckTree();
//var formList = moduleIBLL.GetFormCheckTree();


var jsonData = new
{
moduleList,
buttonList,
columnList,
formList
columnList
//formList
};

return this.JsonResult(jsonData);


+ 12
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/plugin/tree/lr-tree.js Ver ficheiro

@@ -226,6 +226,11 @@
if (!!dfop.nodeClick) {
dfop.nodeClick(node, $this);
}
if (dfop.isTextCheck) {
setTimeout(function () {
$this.find('.lr-tree-node-cb').trigger('click');
});
}
}
return false;
},
@@ -529,7 +534,13 @@
setNoCheck(dfop.data);
break;
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;
case 'setCheck':
var list = op;


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Website/Learun.Application.Website.csproj Ver ficheiro

@@ -295,6 +295,7 @@
<ItemGroup />
<ItemGroup>
<None Include="packages.config" />
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Learun.Framework.Module\Learun.Application.Module\Learun.Application.Extention\Learun.Application.Extention.csproj">


+ 18
- 0
Learun.Framework.Ultimate V7/Learun.Application.Website/Properties/PublishProfiles/FolderProfile.pubxml Ver ficheiro

@@ -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>

+ 10
- 10
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/AuthorizeModule/Authorize/AuthorizeService.cs Ver ficheiro

@@ -161,16 +161,16 @@ namespace Learun.Application.Base.AuthorizeModule
#endregion

#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

db.Commit();


+ 1
- 8
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/Module/ModuleService.cs Ver ficheiro

@@ -38,14 +38,7 @@ namespace Learun.Application.Base.SystemModule
t.F_AllowDelete,
t.F_SortCode,
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 = @"
t.F_ModuleButtonId,


+ 6
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicEntity.cs Ver ficheiro

@@ -459,6 +459,12 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
[Column("STUDYMODALITY")]
public string StudyModality { get; set; }
/// <summary>
/// 学籍异动状态
/// </summary>
/// <returns></returns>
[Column("CHANGESTATUS")]
public int? ChangeStatus { get; set; }
/// <summary>
/// SyncFlag
/// </summary>
[Column("SYNCFLAG")]


Carregando…
Cancelar
Guardar