Parcourir la source

增加开关控制项目初始化值

新疆体育高职分支
liangkun il y a 1 an
Parent
révision
c7b3cdaa30
3 fichiers modifiés avec 24 ajouts et 3 suppressions
  1. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeachSwitch/Index.cshtml
  2. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeachSwitch/Index.js
  3. +20
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeachSwitch/TeachSwitchService.cs

+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeachSwitch/Index.cshtml Voir le fichier

@@ -13,10 +13,10 @@
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;录入</a>
@*<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;录入</a>*@
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
@*<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>*@
</div>
</div>
</div>


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeachSwitch/Index.js Voir le fichier

@@ -82,8 +82,9 @@ var bootstrap = function ($, learun) {
return '微信快捷登录PC端';
} else if (val == 'modifypwdtip') {
return '30天未修改密码登录后提示修改';
}else if (val == 'modifypwdfirstday') {
return '每月1日强制修改密码';
}

}
},
{


+ 20
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/TeachSwitch/TeachSwitchService.cs Voir le fichier

@@ -72,6 +72,26 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
jsEntity.Create();
this.BaseRepository().Insert(jsEntity);
}
if (!data.Any(a => a.type == "modifypwdfirstday"))
{
var jsEntity = new TeachSwitchEntity()
{
status = "0",
type = "modifypwdfirstday"
};
jsEntity.Create();
this.BaseRepository().Insert(jsEntity);
}
if (!data.Any(a => a.type == "modifypwdtip"))
{
var jsEntity = new TeachSwitchEntity()
{
status = "0",
type = "modifypwdtip"
};
jsEntity.Create();
this.BaseRepository().Insert(jsEntity);
}
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@"


Chargement…
Annuler
Enregistrer