@@ -13,10 +13,10 @@ | |||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | <div class=" btn-group btn-group-sm" learun-authorize="yes"> | ||||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 录入</a> | |||||
@*<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 录入</a>*@ | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 修改</a> | <a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 修改</a> | ||||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | <a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | ||||
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i> 打印</a> | |||||
@*<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i> 打印</a>*@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -82,8 +82,9 @@ var bootstrap = function ($, learun) { | |||||
return '微信快捷登录PC端'; | return '微信快捷登录PC端'; | ||||
} else if (val == 'modifypwdtip') { | } else if (val == 'modifypwdtip') { | ||||
return '30天未修改密码登录后提示修改'; | return '30天未修改密码登录后提示修改'; | ||||
}else if (val == 'modifypwdfirstday') { | |||||
return '每月1日强制修改密码'; | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
{ | { | ||||
@@ -72,6 +72,26 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
jsEntity.Create(); | jsEntity.Create(); | ||||
this.BaseRepository().Insert(jsEntity); | 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(); | var strSql = new StringBuilder(); | ||||
strSql.Append("SELECT "); | strSql.Append("SELECT "); | ||||
strSql.Append(@" | strSql.Append(@" | ||||