|
|
@ -21,6 +21,7 @@ using Tiobon.Core.Model.Models; |
|
|
|
using System.Reflection; |
|
|
|
using System.Reflection; |
|
|
|
using System.Collections; |
|
|
|
using System.Collections; |
|
|
|
using Microsoft.IdentityModel.Tokens; |
|
|
|
using Microsoft.IdentityModel.Tokens; |
|
|
|
|
|
|
|
using System.Collections.Generic; |
|
|
|
|
|
|
|
|
|
|
|
namespace Tiobon.Core.Services.BASE; |
|
|
|
namespace Tiobon.Core.Services.BASE; |
|
|
|
|
|
|
|
|
|
|
@ -1383,6 +1384,16 @@ public class BaseServices<TEntity, TEntityDto, TInsertDto, TEditDto> : IBaseServ |
|
|
|
return queryString; |
|
|
|
return queryString; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int? GetStaffId() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
int? StaffId = null; |
|
|
|
|
|
|
|
string sql = $"SELECT UserStaffID FROM Ghrs_User WHERE UserId='{App.User.ID}'"; |
|
|
|
|
|
|
|
string StaffId1 = Convert.ToString(DbAccess.ExecuteScalar(sql)); |
|
|
|
|
|
|
|
if (!StaffId1.IsNull()) |
|
|
|
|
|
|
|
StaffId = Convert.ToInt32(StaffId1); |
|
|
|
|
|
|
|
return StaffId; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//public int GetTotalCount(string sqlSelect) |
|
|
|
//public int GetTotalCount(string sqlSelect) |
|
|
|
//{ |
|
|
|
//{ |
|
|
|
// string sql = string.Empty; |
|
|
|
// string sql = string.Empty; |
|
|
|