Skip to content

Z3r0J/NomineeSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sistema de Nóminas

Este es un proyecto de sistema de nóminas que ayuda a gestionar los empleados de una compañia

Pagina principal

Login

Dashboard

Vista de empleados

Requisitos 📋

Instalación 🔧

  1. Clonar el proyacto usando Git ejecutando: git clone https://github.com/Z3r0J/NomineeSystem.git

  2. Abrir la solucion del proyecto en Visual Studio.

  3. Abrir el appsettings.json y reemplazar la linea siguiente.

 "DefaultConnection": "Data Source=(localdb)\\MSSQLLOCALDB;Initial Catalog=NomineeProject;Integrated Security=True;Pooling=False"

Reemplazando '(localdb)\MSSQLLOCALDB' con tu conexion de SQL Server.

  1. Abrir en Visual Studio el Package Manager Console y ejecutar estas lineas de comando Add-Migration Update-Database
  2. Abrir SQL Server Buscar la base de datos creada y agregar un usuario y asignar ese usuario a un empleado luego iniciar sesion

Nota: Si tiene problemas al realizar las migraciones puede ejecutar los scripts de 'NomineeSQL.sql' para obtener la base de datos.

Ejecutando las pruebas ⚙️

Despues de haber realizado la instalacion asegurese que antes de ejecutar el programa si se encuentra en IIS Express:

Debe cambiarlo a NominaProject:

Las modelos que se han creado son las siguientes:

  • Deduction.cs
  • Department.cs
  • Employee.cs
  • ErrorViewMode.cs
  • GetNameAndLastName.cs
  • Income.cs
  • JobPosition.cs
  • Payroll.cs
  • TransactionRegister.cs
  • TransactionRegister.cs
  • Users.cs

Estas se encuentran en la siguiente carpeta: Models

Deduction:
public class Deduction
    {
        [Key]
        public int IdDeduction { get; set; }
        public string DeductionName { get; set; }
        public bool Apply { get; set; }
        public char State { get; set; }
    }
Department:
    public class Department
    {
        [Key]
        public int DepartmentId { get; set; }
        public string departmentName { get; set; }
        public string location { get; set; }
        public string departmentLeader { get; set; }
        public int IdPayroll { get; set; }
        public virtual ICollection<Employee> Employees { get; set; }
        public virtual ICollection<JobPosition> JobPositions { get; set; }
    }
Employee:
public class Employee
    {
        [Key]
        public int IdEmployee { get; set; }
        [Required]
        public string Documents { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public int DepartmentId { get; set; }
        public virtual Department Department { get; set; }
        public int JobPositionId { get; set; }
        public virtual JobPosition JobPosition { get; set; }
        public double MonthlySalary { get; set; }
        public int UsersIdUsers { get; set; }
        public virtual Users Users { get; set; }
        public static bool IsLogged { get; set; } 
    }
ErrorViewModel:
public class ErrorViewModel
    {
        public string RequestId { get; set; }

        public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
    }
GetNameAndLastName:
public class GetNameAndLastName
    {
        public static string Name { get; set; }
        public static string LastName { get; set; }
        public static List<double> NetSalary { get; set; } = new List<double>();
    }
Income:
    public class Income
    {
        [Key]
        public int incomeId { get; set; } 
        public string incomeName { get; set; }
        public bool apply { get; set; }
        public string state { get; set; }
    }
JobPosition:
public class JobPosition
    {
        [Key]
        public int IdPosition { get; set; }
        [Required]
        public string PositionName { get; set; }
        public int DepartmentId { get; set; }
        public virtual Department Department { get; set; }
        public string RiskLevel { get; set; }
        public int MaxSalary { get; set; }
        public int MinSalary { get; set; }
        public virtual ICollection<Employee> Employees { get; set; }
    }
Payroll:
public class Payroll
    {   [Key]
        public int IdPayroll { get; set; }
        public string payName { get; set; }
        public virtual ICollection<Department> Departments { get; set; }
    }
TransactionRegister:
public class TransactionRegister
    {
        [Key]
        public int IdTransaction { get; set; }
        public int IdEmployee { get; set; }
        public virtual Employee Employee { get; set; }
        public int IdDeductionOrIncome { get; set; }
        public int IdTypeTransaction { get; set; }
        public virtual TypeTransaction TypeTransaction { get; set; }
        public DateTime Date { get; set; }
        public long Amount { get; set; }
        public bool State { get; set; }
    }
TypeTransaction:
public class TypeTransaction
    {
        [Key]
        public int IdTypeTransaction { get; set; }
        public string TypeName { get; set; }
    }
Users:
public class Users
    {
        [Key]
        public int IdUsers { get; set; }
        public string UserName { get; set; }
        public string Password { get; set; }
        public virtual ICollection<Employee> Employees { get; set; }
    }

Construido con 🛠️

  • Patron de diseño MVC
  • ASP.NET Core
  • Entity Framework
  • SQL Server

Autores ✒️

  • Junior Sánchez
  • Francisco Medina
  • Jean Carlos Reyes

----------------------------------------

Creado con ❤️ por Junior06sre 😊

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published