1
This commit is contained in:
@@ -362,7 +362,7 @@ namespace BLL
|
|||||||
public static bool IsThisUnitLeaderOfficeOrManage(string userId)
|
public static bool IsThisUnitLeaderOfficeOrManage(string userId)
|
||||||
{
|
{
|
||||||
bool result = false;
|
bool result = false;
|
||||||
if (userId == Const.sysglyId || userId == Const.hfnbdId )
|
if (userId == Const.sysglyId || userId == Const.hfnbdId)
|
||||||
{
|
{
|
||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
@@ -394,7 +394,7 @@ namespace BLL
|
|||||||
var getUser = db.Sys_User.FirstOrDefault(x => x.UserId == userId);
|
var getUser = db.Sys_User.FirstOrDefault(x => x.UserId == userId);
|
||||||
if (getUser != null)
|
if (getUser != null)
|
||||||
{
|
{
|
||||||
if (userId == Const.sysglyId || userId == Const.hfnbdId )
|
if (userId == Const.sysglyId || userId == Const.hfnbdId)
|
||||||
{
|
{
|
||||||
isHave = true;
|
isHave = true;
|
||||||
}
|
}
|
||||||
@@ -612,24 +612,6 @@ namespace BLL
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static decimal GetLikeRate(string oldStr, string newStr)
|
public static decimal GetLikeRate(string oldStr, string newStr)
|
||||||
{
|
{
|
||||||
//decimal Kq = 2;
|
|
||||||
//decimal Kr = 1;
|
|
||||||
//decimal Ks = 1;
|
|
||||||
//char[] ss = oldStr.ToCharArray();
|
|
||||||
//char[] st = newStr.ToCharArray();
|
|
||||||
////获取交集数量
|
|
||||||
//int q = 0;
|
|
||||||
//foreach (var s in ss)
|
|
||||||
//{
|
|
||||||
// if (st.Contains(s))
|
|
||||||
// {
|
|
||||||
// q++;
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
////int q = ss.Intersect(st).Count();
|
|
||||||
//int s1 = ss.Length - q;
|
|
||||||
//int r = st.Length - q;
|
|
||||||
//return Kq * q / (Kq * q + Kr * r + Ks * s1);
|
|
||||||
if (!string.IsNullOrEmpty(oldStr) && !string.IsNullOrEmpty(newStr))
|
if (!string.IsNullOrEmpty(oldStr) && !string.IsNullOrEmpty(newStr))
|
||||||
{
|
{
|
||||||
char[] ss = oldStr.ToCharArray();
|
char[] ss = oldStr.ToCharArray();
|
||||||
@@ -673,10 +655,13 @@ namespace BLL
|
|||||||
public static string GetThisUnitId()
|
public static string GetThisUnitId()
|
||||||
{
|
{
|
||||||
string unitId = Const.UnitId_XJYJ;
|
string unitId = Const.UnitId_XJYJ;
|
||||||
|
|
||||||
return unitId;
|
return unitId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 本单位信息
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
public static Model.Base_Unit GetIsThisUnit()
|
public static Model.Base_Unit GetIsThisUnit()
|
||||||
{
|
{
|
||||||
return (Funs.DB.Base_Unit.FirstOrDefault(e => e.UnitId == Const.UnitId_XJYJ)); //本单位
|
return (Funs.DB.Base_Unit.FirstOrDefault(e => e.UnitId == Const.UnitId_XJYJ)); //本单位
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
|
|
||||||
Reference in New Issue
Block a user