/// <summary> /// 删除员工 /// </summary> /// <param name="employee">要删除的员工</param> public void DeleteEmployee(Employee employee) { Employee obj = GetEmployee(employee.EmployeeID); SystemLogBLL systemLogBLL = new SystemLogBLL(); systemLogBLL.WriteLog("删除员工:" + obj.EmployeeName + "(" + obj.WorkNo + ")基本信息"); dal.DeleteEmployee(employee.EmployeeID); }
/// <summary> /// 删除角色 /// </summary> /// <param name="roleID">要删除的角色ID</param> public void DeleteRole(int roleID) { string strName = GetRole(roleID).RoleName; SystemLogBLL systemLogBLL = new SystemLogBLL(); systemLogBLL.WriteLog("删除角色“" + strName + "”基本信息"); dal.DeleteRole(roleID); }
/// <summary> /// 删除用户 /// </summary> /// <param name="userID">要删除的用户ID</param> public void DeleteUser(string userID) { EmployeeBLL objBll = new EmployeeBLL(); Employee obj = objBll.GetEmployee(GetUser(userID).EmployeeID); SystemLogBLL systemLogBLL = new SystemLogBLL(); systemLogBLL.WriteLog("删除员工“" + obj.EmployeeName + "(" + obj.WorkNo + ")”用户登录信息"); dal.DeleteUser(userID); }
public void UpdateEmployee1(Employee employee) { if (dal.UpdateEmployee1(employee) && employee.Flag) { SystemLogBLL systemLogBLL = new SystemLogBLL(); systemLogBLL.WriteLog("修改员工:" + employee.EmployeeName + "(" + employee.WorkNo + ")基本信息"); } }
public void DeleteBulletin(int bulletinID) { if (dal.DeleteBulletin(bulletinID)) { SystemLogBLL systemLogBLL = new SystemLogBLL(); systemLogBLL.WriteLog("删除的信息公告ID为:" + bulletinID.ToString()); } }
public void UpdateBulletin(Bulletin bulletin) { if (dal.UpdateBulletin(bulletin)) { SystemLogBLL systemLogBLL = new SystemLogBLL(); systemLogBLL.WriteLog("更新的信息公告ID为:" + bulletin.BulletinID.ToString()); } }
/// <summary> /// 更新角色 /// </summary> /// <param name="role">更新后的角色信息</param> public void UpdateRole(SystemRole systemRole) { if (dal.UpdateRole(systemRole)) { SystemLogBLL systemLogBLL = new SystemLogBLL(); systemLogBLL.WriteLog("修改角色“" + systemRole.RoleName + "”基本信息"); } }
public void DeleteNotice(int noticeID) { if (dal.DeleteNotice(noticeID)) { SystemLogBLL systemLogBLL = new SystemLogBLL(); systemLogBLL.WriteLog("删除通知"); } }
public void UpdateNotice(Notice notice) { if (dal.UpdateNotice(notice)) { SystemLogBLL systemLogBLL = new SystemLogBLL(); systemLogBLL.WriteLog("修改通知"); } }
/// <summary> /// 更新用户 /// </summary> /// <param name="user">更新后的用户信息</param> public void UpdateUser(SystemUser systemUser) { if (dal.UpdateUser(systemUser) && systemUser.Flag) { EmployeeBLL objBll = new EmployeeBLL(); Employee obj = objBll.GetEmployee(systemUser.EmployeeID); SystemLogBLL systemLogBLL = new SystemLogBLL(); systemLogBLL.WriteLog("修改员工“" + obj.EmployeeName + "(" + obj.WorkNo + ")”用户登录信息"); } }
/// <summary> /// 新增用户 /// </summary> /// <param name="user">新增的用户信息</param> /// <returns></returns> public void AddUser(SystemUser systemUser) { if (dal.AddUser(systemUser)) { EmployeeBLL objBll = new EmployeeBLL(); Employee obj = objBll.GetEmployee(systemUser.EmployeeID); SystemLogBLL systemLogBLL = new SystemLogBLL(); systemLogBLL.WriteLog("新增员工“" + obj.EmployeeName + "(" + obj.WorkNo + ")”用户登录信息"); } }
/// <summary> /// 更新范围权限 /// </summary> /// <param name="roleID"></param> /// <param name="systemRoleRights"></param> public void UpdateRoleRightClass(int roleID, IList <SystemRoleRight> systemRoleRights) { if (dal.UpdateRoleRightClass(roleID, systemRoleRights)) { SystemRoleBLL objBll = new SystemRoleBLL(); string strName = objBll.GetRole(roleID).RoleName; SystemLogBLL systemLogBLL = new SystemLogBLL(); systemLogBLL.WriteLog("修改角色“" + strName + "”范围权限"); } }
/// <summary> /// 新增员工 /// </summary> /// <param name="employee">新增的员工信息</param> /// <returns></returns> public int AddEmployee(Employee employee) { int nEmployeeID = dal.AddEmployee(employee); if (nEmployeeID > 0) { SystemLogBLL systemLogBLL = new SystemLogBLL(); systemLogBLL.WriteLog("新增员工:" + employee.EmployeeName + "(" + employee.WorkNo + ")基本信息"); } return(nEmployeeID); }
public int AddBulletin(Bulletin bulletin) { int nBulletinID = dal.AddBulletin(bulletin, SessionSet.EmployeeID); if (nBulletinID > 0) { SystemLogBLL systemLogBLL = new SystemLogBLL(); systemLogBLL.WriteLog("添加的信息公告ID为:" + nBulletinID.ToString()); } return(nBulletinID); }
/// <summary> /// 新增角色 /// </summary> /// <param name="role">新增的角色信息</param> /// <returns></returns> public int AddRole(SystemRole systemRole) { int nRoleID = dal.AddRole(systemRole); if (nRoleID > 0) { SystemLogBLL systemLogBLL = new SystemLogBLL(); systemLogBLL.WriteLog("新增角色“" + systemRole.RoleName + "”基本信息"); } return(nRoleID); }
public int AddNotice(Notice notice) { int nNoticeID = dal.AddNotice(notice, SessionSet.EmployeeID); if (nNoticeID > 0) { SystemLogBLL systemLogBLL = new SystemLogBLL(); systemLogBLL.WriteLog("新增通知"); } return(nNoticeID); }