/// <summary> /// 统计数据填报进度情况 /// </summary> /// <param name="Staff"></param> /// <param name="Month"></param> /// <param name="byCache"></param> /// <returns></returns> public static DataTable GetFillDataProgress(int Staff, int Month, bool NoCache) { string CacheKey = "Cache-OrgStaffBLL-FillDataProgress-" + Staff.ToString() + "-" + Month.ToString(); DataTable dt = (DataTable)DataCache.GetCache(CacheKey); if (dt == null || NoCache) { Org_Staff_DAL dal = (Org_Staff_DAL)DataAccess.CreateObject(DALClassName); dt = dal.GetFillDataProgress(Staff, Month); #region 写入缓存 DataCache.SetCache(CacheKey, dt, DateTime.Now.AddMinutes(60), Cache.NoSlidingExpiration); #endregion } return(dt); }
/// <summary> /// 根据员工ID获取今日任务 /// </summary> /// <param name="client"></param> /// <returns></returns> public static DataTable GetTodayTask(string username, bool NoCache) { string CacheKey = "Cache-OrgStaffBLL-TodayTask-" + username; DataTable dt = (DataTable)DataCache.GetCache(CacheKey); if (dt == null || NoCache) { Org_Staff_DAL dal = (Org_Staff_DAL)DataAccess.CreateObject(DALClassName); dt = dal.GetTodayTask(username); #region 写入缓存 DataCache.SetCache(CacheKey, dt, DateTime.Now.AddMinutes(15), Cache.NoSlidingExpiration); #endregion } return(dt); }
public Org_StaffBLL(int id, bool bycache) : base(DALClassName) { _dal = (Org_Staff_DAL)_DAL; FillModel(id, bycache); }
public Org_StaffBLL(int id) : base(DALClassName) { _dal = (Org_Staff_DAL)_DAL; FillModel(id); }
public DataTable GetLowerPositionTask(int type, int city, int month) { Org_Staff_DAL dal = (Org_Staff_DAL)DataAccess.CreateObject(DALClassName); return(dal.GetLowerPositionTask(this.Model.ID, type, city, month)); }
public DataTable GetFillProcessDetail(int Type) { Org_Staff_DAL dal = (Org_Staff_DAL)DataAccess.CreateObject(DALClassName); return(dal.GetFillProcessDetail(this.Model.ID, 0, Type)); }
public static int GetPMSalaryApproveState(int Staff, int Month, int city) { Org_Staff_DAL dal = (Org_Staff_DAL)DataAccess.CreateObject(DALClassName); return(dal.GetPMSalaryApproveState(Staff, Month, city)); }
public static int GetStaffIDByUserName(string userName) { return(Org_Staff_DAL.GetStaffIDByUserName(userName)); }
public Org_StaffBLL() : base(DALClassName) { _dal = (Org_Staff_DAL)_DAL; _m = new Org_Staff(); //实例化Model }
public static bool IsMyOrganizeCity(int OrganizeCity, int Staff) { Org_Staff_DAL dal = (Org_Staff_DAL)DataAccess.CreateObject(DALClassName); return(dal.IsMyOrganizeCity(OrganizeCity, Staff)); }
/// <summary> /// 根据员工职位获取属于该职位的员工及登录用户名列表 /// </summary> /// <param name="Positions"></param> /// <returns></returns> public static DataTable GetRealNameAndUserNameByPosition(string Positions) { Org_Staff_DAL dal = (Org_Staff_DAL)DataAccess.CreateObject(DALClassName); return(dal.GetRealNameAndUserNameByPosition(Positions)); }