diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..691272c --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,74 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, gender identity and expression, level of experience, +nationality, personal appearance, race, religion, or sexual identity and +orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or +advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the project team at imsoftwaredev@gmail.com. All +complaints will be reviewed and investigated and will result in a response that +is deemed necessary and appropriate to the circumstances. The project team is +obligated to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, +available at [http://contributor-covenant.org/version/1/4][version] + +[homepage]: http://contributor-covenant.org +[version]: http://contributor-covenant.org/version/1/4/ diff --git a/README.md b/README.md index e00e7b5..7efd4e2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# RS Tracker +# RSTracker ### Project Description Recruitment selection tracker known as RStracker is an web page application to track HR recruitment information. @@ -17,3 +17,16 @@ Recruitment selection tracker known as RStracker is an web page application to t * Entity Framewokr 6 * SQL Server * Visual Studio 2015 (IDE) + +### Contributing + +The RSTracker is an open source Project. It is open to everyone. + + +Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms. + +----- + +### Security + +To report a security vulnerability, please email imsoftwaredev@gmail.com instead of using the issue tracker. diff --git a/doc/Git Branching and Merging step by step.txt b/doc/Git Branching and Merging step by step.txt deleted file mode 100644 index fb823bb..0000000 --- a/doc/Git Branching and Merging step by step.txt +++ /dev/null @@ -1,45 +0,0 @@ -1. Create a branch - $ git checkout -b mbranch1 -2. $ git add . -3. git commit -$ git commit -m "modified division info" - -4. $ git push --set-upstream origin mbranch1 - -5. $ git fetch origin - ----For checking--- -$ git remote -v -origin https://github.com/Shaongit/rstracker (fetch) -origin https://github.com/Shaongit/rstracker (push) - -mahedee@Mahedee-DELL MINGW64 /d/Projects/Github-shaon/rstracker (mbranch1) -$ git branch -v - master a2f60f1 [behind 6] edit home page -* mbranch1 b34be54 modified division info - mtheme 6848278 Merge branch 'master' into mtheme - -mahedee@Mahedee-DELL MINGW64 /d/Projects/Github-shaon/rstracker (mbranch1) -$ git branch -av - master a2f60f1 [behind 6] edit home page -* mbranch1 b34be54 modified division info - mtheme 6848278 Merge branch 'master' into mtheme - remotes/origin/HEAD -> origin/master - remotes/origin/master 92360e6 Merge pull request #6 from Shaongit/mtheme - remotes/origin/mbranch1 b34be54 modified division info - remotes/origin/mtheme 6848278 Merge branch 'master' into mtheme - remotes/origin/sbranch1 16f3dc8 modified home/index - ----------------- - -6. $ git merge origin/master -7. $ git push -8. from https://github.com/Shaongit/rstracker/tree/mbranch1 -> Click button - Compare and pull request -9. Click pull request -10. Select Merge pull request e.g select sqash merge click Merge pull request button -> Confirm merge - ----------checkout master to keep update your local branch---- -11. git checkout master -12. $ git pull - -11. diff --git a/doc/readme.txt b/doc/readme.txt deleted file mode 100644 index fa779c5..0000000 --- a/doc/readme.txt +++ /dev/null @@ -1 +0,0 @@ -documents here \ No newline at end of file diff --git a/src/HSTrackerData/App.config b/src/HSTrackerData/App.config new file mode 100644 index 0000000..6c30f22 --- /dev/null +++ b/src/HSTrackerData/App.config @@ -0,0 +1,21 @@ + + + + +
+ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/RSTracker/RSTracker/Models/IdentityModels.cs b/src/HSTrackerData/AppDbContext.cs similarity index 66% rename from src/RSTracker/RSTracker/Models/IdentityModels.cs rename to src/HSTrackerData/AppDbContext.cs index f3d922b..51f44d2 100644 --- a/src/RSTracker/RSTracker/Models/IdentityModels.cs +++ b/src/HSTrackerData/AppDbContext.cs @@ -1,35 +1,22 @@ -using System.Data.Entity; -using System.Security.Claims; -using System.Threading.Tasks; -using Microsoft.AspNet.Identity; +using HSTrackerData.Configuration; +using HSTrackerModel.Models; using Microsoft.AspNet.Identity.EntityFramework; using RSTracker.Models; -using System.Data.Entity.ModelConfiguration.Conventions; +using System; +using System.Collections.Generic; +using System.Data.Entity; +using System.Linq; +using System.Text; +using System.Threading.Tasks; -namespace RSTracker.Models +namespace HSTrackerData { - // You can add profile data for the user by adding more properties to your ApplicationUser class, please visit http://go.microsoft.com/fwlink/?LinkID=317594 to learn more. - public class ApplicationUser : IdentityUser - { - public async Task GenerateUserIdentityAsync(UserManager manager) - { - // Note the authenticationType must match the one defined in CookieAuthenticationOptions.AuthenticationType - var userIdentity = await manager.CreateIdentityAsync(this, DefaultAuthenticationTypes.ApplicationCookie); - // Add custom user claims here - return userIdentity; - } - } - - public class ApplicationDbContext : IdentityDbContext + public class AppDbContext : IdentityDbContext { - public ApplicationDbContext() - : base("DefaultConnection", throwIfV1Schema: false) + public AppDbContext() : base("DefaultConnection") { } + public static AppDbContext Create() { - } - - public static ApplicationDbContext Create() - { - return new ApplicationDbContext(); + return new AppDbContext(); } public DbSet Dept { get; set; } @@ -41,6 +28,10 @@ public static ApplicationDbContext Create() public DbSet Circular { get; set; } public DbSet Status { get; set; } + public virtual void Commit() + { + base.SaveChanges(); + } protected override void OnModelCreating(DbModelBuilder modelBuilder) { @@ -79,7 +70,7 @@ protected override void OnModelCreating(DbModelBuilder modelBuilder) modelBuilder.Entity() .HasRequired(c => c.Division) - .WithMany(w=>w.Employees) + .WithMany(w => w.Employees) .HasForeignKey(d => d.DivisionId) .WillCascadeOnDelete(false); @@ -89,8 +80,20 @@ protected override void OnModelCreating(DbModelBuilder modelBuilder) .HasForeignKey(d => d.DeptId) .WillCascadeOnDelete(false); + modelBuilder.Configurations.Add(new CircularConfiguration()); + modelBuilder.Configurations.Add(new DeptConfiguration()); + modelBuilder.Configurations.Add(new DesignationConfiguration()); + modelBuilder.Configurations.Add(new DivisionConfiguration()); + modelBuilder.Configurations.Add(new EmployeeConfiguration()); + modelBuilder.Configurations.Add(new RequisitionConfiguration()); + modelBuilder.Configurations.Add(new StatusConfiguration()); + modelBuilder.Configurations.Add(new SubUnitConfiguration()); + base.OnModelCreating(modelBuilder); } + + + } -} \ No newline at end of file +} diff --git a/src/HSTrackerData/Configuration/CircularConfiguration.cs b/src/HSTrackerData/Configuration/CircularConfiguration.cs new file mode 100644 index 0000000..b87cc21 --- /dev/null +++ b/src/HSTrackerData/Configuration/CircularConfiguration.cs @@ -0,0 +1,20 @@ +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations.Schema; +using System.Data.Entity.ModelConfiguration; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Configuration +{ + public class CircularConfiguration : EntityTypeConfiguration + { + public CircularConfiguration() + { + ToTable("Circular"); + Property(c => c.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity); + } + } +} diff --git a/src/HSTrackerData/Configuration/DeptConfiguration.cs b/src/HSTrackerData/Configuration/DeptConfiguration.cs new file mode 100644 index 0000000..8638d4f --- /dev/null +++ b/src/HSTrackerData/Configuration/DeptConfiguration.cs @@ -0,0 +1,21 @@ +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations.Schema; +using System.Data.Entity.ModelConfiguration; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Configuration +{ + public class DeptConfiguration : EntityTypeConfiguration + { + public DeptConfiguration() + { + ToTable("Dept"); + Property(c => c.Name).IsRequired().HasMaxLength(80); + Property(c => c.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity); + } + } +} diff --git a/src/HSTrackerData/Configuration/DesignationConfiguration.cs b/src/HSTrackerData/Configuration/DesignationConfiguration.cs new file mode 100644 index 0000000..de5df36 --- /dev/null +++ b/src/HSTrackerData/Configuration/DesignationConfiguration.cs @@ -0,0 +1,21 @@ +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations.Schema; +using System.Data.Entity.ModelConfiguration; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Configuration +{ + public class DesignationConfiguration : EntityTypeConfiguration + { + public DesignationConfiguration() + { + ToTable("Designation"); + Property(d => d.Name).IsRequired().HasMaxLength(80); + Property(d => d.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity); + } + } +} diff --git a/src/HSTrackerData/Configuration/DivisionConfiguration.cs b/src/HSTrackerData/Configuration/DivisionConfiguration.cs new file mode 100644 index 0000000..7d1299b --- /dev/null +++ b/src/HSTrackerData/Configuration/DivisionConfiguration.cs @@ -0,0 +1,21 @@ +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations.Schema; +using System.Data.Entity.ModelConfiguration; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Configuration +{ + public class DivisionConfiguration : EntityTypeConfiguration + { + public DivisionConfiguration() + { + ToTable("Division"); + Property(d => d.Name).IsRequired().HasMaxLength(80); + Property(c => c.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity); + } + } +} diff --git a/src/HSTrackerData/Configuration/EmployeeConfiguration.cs b/src/HSTrackerData/Configuration/EmployeeConfiguration.cs new file mode 100644 index 0000000..860cd62 --- /dev/null +++ b/src/HSTrackerData/Configuration/EmployeeConfiguration.cs @@ -0,0 +1,21 @@ +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations.Schema; +using System.Data.Entity.ModelConfiguration; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Configuration +{ + public class EmployeeConfiguration : EntityTypeConfiguration + { + public EmployeeConfiguration() + { + ToTable("Employee"); + Property(e => e.Name).IsRequired().HasMaxLength(100); + Property(e => e.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity); + } + } +} diff --git a/src/HSTrackerData/Configuration/RequisitionConfiguration.cs b/src/HSTrackerData/Configuration/RequisitionConfiguration.cs new file mode 100644 index 0000000..c4ee965 --- /dev/null +++ b/src/HSTrackerData/Configuration/RequisitionConfiguration.cs @@ -0,0 +1,21 @@ +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations.Schema; +using System.Data.Entity.ModelConfiguration; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Configuration +{ + public class RequisitionConfiguration : EntityTypeConfiguration + { + public RequisitionConfiguration() + { + ToTable("Requisitions"); + Property(r => r.RefNo).IsRequired(); + Property(r => r.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity); + } + } +} diff --git a/src/HSTrackerData/Configuration/StatusConfiguration.cs b/src/HSTrackerData/Configuration/StatusConfiguration.cs new file mode 100644 index 0000000..6a56656 --- /dev/null +++ b/src/HSTrackerData/Configuration/StatusConfiguration.cs @@ -0,0 +1,21 @@ +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations.Schema; +using System.Data.Entity.ModelConfiguration; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Configuration +{ + public class StatusConfiguration : EntityTypeConfiguration + { + public StatusConfiguration() + { + ToTable("Status"); + Property(s => s.Name).IsRequired().HasMaxLength(100); + Property(s => s.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity); + } + } +} diff --git a/src/HSTrackerData/Configuration/SubUnitConfiguration.cs b/src/HSTrackerData/Configuration/SubUnitConfiguration.cs new file mode 100644 index 0000000..923709e --- /dev/null +++ b/src/HSTrackerData/Configuration/SubUnitConfiguration.cs @@ -0,0 +1,21 @@ +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations.Schema; +using System.Data.Entity.ModelConfiguration; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Configuration +{ + public class SubUnitConfiguration : EntityTypeConfiguration + { + public SubUnitConfiguration() + { + ToTable("SubUnit"); + Property(su => su.Name).IsRequired().HasMaxLength(100); + Property(su => su.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity); + } + } +} diff --git a/src/HSTrackerData/IdentityModels.cs b/src/HSTrackerData/IdentityModels.cs new file mode 100644 index 0000000..051cbe4 --- /dev/null +++ b/src/HSTrackerData/IdentityModels.cs @@ -0,0 +1,35 @@ +using System.Data.Entity; +using System.Security.Claims; +using System.Threading.Tasks; +using Microsoft.AspNet.Identity; +using Microsoft.AspNet.Identity.EntityFramework; +using System.Data.Entity.ModelConfiguration.Conventions; + +namespace RSTracker.Models +{ + // You can add profile data for the user by adding more properties to your ApplicationUser class, please visit http://go.microsoft.com/fwlink/?LinkID=317594 to learn more. + public class ApplicationUser : IdentityUser + { + public async Task GenerateUserIdentityAsync(UserManager manager) + { + // Note the authenticationType must match the one defined in CookieAuthenticationOptions.AuthenticationType + var userIdentity = await manager.CreateIdentityAsync(this, DefaultAuthenticationTypes.ApplicationCookie); + // Add custom user claims here + return userIdentity; + } + } + + //public class ApplicationDbContext : IdentityDbContext + //{ + // public ApplicationDbContext() + // : base("DefaultConnection", throwIfV1Schema: false) + // { + // } + + //public static ApplicationDbContext Create() + //{ + // return new ApplicationDbContext(); + //} + + //} +} \ No newline at end of file diff --git a/src/HSTrackerData/Infrastructure/DbFactory.cs b/src/HSTrackerData/Infrastructure/DbFactory.cs new file mode 100644 index 0000000..756db60 --- /dev/null +++ b/src/HSTrackerData/Infrastructure/DbFactory.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Infrastructure +{ + public class DbFactory : Disposable, IDbFactory + { + AppDbContext dbContext; + + public AppDbContext Init() + { + return dbContext ?? (dbContext = new AppDbContext()); + } + + protected override void DisposeCore() + { + if (dbContext != null) + dbContext.Dispose(); + } + } +} diff --git a/src/HSTrackerData/Infrastructure/Disposable.cs b/src/HSTrackerData/Infrastructure/Disposable.cs new file mode 100644 index 0000000..17eb0d9 --- /dev/null +++ b/src/HSTrackerData/Infrastructure/Disposable.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Infrastructure +{ + public class Disposable : IDisposable + { + private bool isDisposed; + + ~Disposable() + { + Dispose(false); + } + + public void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); + } + private void Dispose(bool disposing) + { + if (!isDisposed && disposing) + { + DisposeCore(); + } + + isDisposed = true; + } + + // Ovveride this to dispose custom objects + protected virtual void DisposeCore() + { + } + } +} diff --git a/src/HSTrackerData/Infrastructure/IDbFactory.cs b/src/HSTrackerData/Infrastructure/IDbFactory.cs new file mode 100644 index 0000000..17bffbb --- /dev/null +++ b/src/HSTrackerData/Infrastructure/IDbFactory.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Infrastructure +{ + public interface IDbFactory : IDisposable + { + AppDbContext Init(); + } +} diff --git a/src/HSTrackerData/Infrastructure/IRepository.cs b/src/HSTrackerData/Infrastructure/IRepository.cs new file mode 100644 index 0000000..541626b --- /dev/null +++ b/src/HSTrackerData/Infrastructure/IRepository.cs @@ -0,0 +1,22 @@ +using HSTrackerModel.SharedKernel; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Linq.Expressions; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Infrastructure +{ + public interface IRepository where T : Entity + { + void Add(T entity); + void Update(T entity); + void Delete(T entity); + void Delete(Expression> where); + T GetById(int? id); + T Get(Expression> where); + IEnumerable GetAll(); + IEnumerable GetMany(Expression> where); + } +} diff --git a/src/HSTrackerData/Infrastructure/IUnitOfWork.cs b/src/HSTrackerData/Infrastructure/IUnitOfWork.cs new file mode 100644 index 0000000..4d9a3b8 --- /dev/null +++ b/src/HSTrackerData/Infrastructure/IUnitOfWork.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Infrastructure +{ + public interface IUnitOfWork + { + void Commit(); + } +} diff --git a/src/HSTrackerData/Infrastructure/RepositoryBase.cs b/src/HSTrackerData/Infrastructure/RepositoryBase.cs new file mode 100644 index 0000000..544574d --- /dev/null +++ b/src/HSTrackerData/Infrastructure/RepositoryBase.cs @@ -0,0 +1,83 @@ +using HSTrackerModel.SharedKernel; +using System; +using System.Collections.Generic; +using System.Data.Entity; +using System.Linq; +using System.Linq.Expressions; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Infrastructure +{ + public abstract class RepositoryBase where T : Entity + { + #region Properties + private AppDbContext dataContext; + private readonly IDbSet dbSet; + + protected IDbFactory DbFactory + { + get; + private set; + } + + protected AppDbContext DbContext + { + get { return dataContext ?? (dataContext = DbFactory.Init()); } + } + #endregion + + protected RepositoryBase(IDbFactory dbFactory) + { + DbFactory = dbFactory; + dbSet = DbContext.Set(); + } + + #region Implementation + public virtual void Add(T entity) + { + dbSet.Add(entity); + } + + public virtual void Update(T entity) + { + dbSet.Attach(entity); + dataContext.Entry(entity).State = EntityState.Modified; + } + + public virtual void Delete(T entity) + { + dbSet.Remove(entity); + } + + public virtual void Delete(Expression> where) + { + IEnumerable objects = dbSet.Where(where).AsEnumerable(); + foreach (T obj in objects) + dbSet.Remove(obj); + } + + public virtual T GetById(int? id) + { + return dbSet.Find(id); + } + + public virtual IEnumerable GetAll() + { + return dbSet.ToList(); + } + + public virtual IEnumerable GetMany(Expression> where) + { + return dbSet.Where(where).ToList(); + } + + public T Get(Expression> where) + { + return dbSet.Where(where).FirstOrDefault(); + } + + #endregion + + } +} diff --git a/src/HSTrackerData/Infrastructure/UnitOfWork.cs b/src/HSTrackerData/Infrastructure/UnitOfWork.cs new file mode 100644 index 0000000..9f9e2b2 --- /dev/null +++ b/src/HSTrackerData/Infrastructure/UnitOfWork.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Infrastructure +{ + public class UnitOfWork : IUnitOfWork + { + private readonly IDbFactory dbFactory; + private AppDbContext dbContext; + + public UnitOfWork(IDbFactory dbFactory) + { + this.dbFactory = dbFactory; + } + + public AppDbContext DbContext + { + get { return dbContext ?? (dbContext = dbFactory.Init()); } + } + + public void Commit() + { + DbContext.Commit(); + } + } +} diff --git a/src/RSTracker/RSTracker/Migrations/201803111051070_modifycircular.Designer.cs b/src/HSTrackerData/Migrations/201810191635167_InitialCreate.Designer.cs similarity index 68% rename from src/RSTracker/RSTracker/Migrations/201803111051070_modifycircular.Designer.cs rename to src/HSTrackerData/Migrations/201810191635167_InitialCreate.Designer.cs index c01bd55..f41e277 100644 --- a/src/RSTracker/RSTracker/Migrations/201803111051070_modifycircular.Designer.cs +++ b/src/HSTrackerData/Migrations/201810191635167_InitialCreate.Designer.cs @@ -1,19 +1,19 @@ // -namespace RSTracker.Migrations +namespace HSTrackerData.Migrations { using System.CodeDom.Compiler; using System.Data.Entity.Migrations; using System.Data.Entity.Migrations.Infrastructure; using System.Resources; - [GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")] - public sealed partial class modifycircular : IMigrationMetadata + [GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")] + public sealed partial class InitialCreate : IMigrationMetadata { - private readonly ResourceManager Resources = new ResourceManager(typeof(modifycircular)); + private readonly ResourceManager Resources = new ResourceManager(typeof(InitialCreate)); string IMigrationMetadata.Id { - get { return "201803111051070_modifycircular"; } + get { return "201810191635167_InitialCreate"; } } string IMigrationMetadata.Source diff --git a/src/RSTracker/RSTracker/Migrations/201803080926442_mig01.cs b/src/HSTrackerData/Migrations/201810191635167_InitialCreate.cs similarity index 67% rename from src/RSTracker/RSTracker/Migrations/201803080926442_mig01.cs rename to src/HSTrackerData/Migrations/201810191635167_InitialCreate.cs index 0b10510..b60c66d 100644 --- a/src/RSTracker/RSTracker/Migrations/201803080926442_mig01.cs +++ b/src/HSTrackerData/Migrations/201810191635167_InitialCreate.cs @@ -1,32 +1,43 @@ -namespace RSTracker.Migrations +namespace HSTrackerData.Migrations { using System; using System.Data.Entity.Migrations; - public partial class mig01 : DbMigration + public partial class InitialCreate : DbMigration { public override void Up() { CreateTable( - "dbo.Circulars", + "dbo.Circular", c => new { - ID = c.Int(nullable: false, identity: true), + Id = c.Int(nullable: false, identity: true), RequisitionId = c.Int(nullable: false), - CircularDate = c.DateTime(nullable: false), - NoOfCvFrom = c.Int(nullable: false), - NoOfCvFromAD = c.Int(nullable: false), - NoOfCvFromOnline = c.Int(nullable: false), - NoOfCvFromHardcopy = c.Int(nullable: false), - NoOfCvFromRef = c.Int(nullable: false), - ShortLinedCvSendtoLm = c.Int(nullable: false), - FinalSelectedCandidate = c.Int(nullable: false), - WrittentestDate = c.DateTime(nullable: false), - WrittenTestPassedCandidate = c.Int(nullable: false), - VivaDate = c.DateTime(nullable: false), - VivaCandidate = c.Int(nullable: false), + CircularDate = c.DateTime(), + NoOfCvFromAD = c.Int(), + NoOfCvFromOnline = c.Int(), + NoOfCvFromHardcopy = c.Int(), + NoOfCvFromRef = c.Int(), + CvSendtoLM = c.Int(), + SortedCvFromLM = c.Int(), + FinalSelectedCandidate = c.Int(), + WrittentestDate = c.DateTime(), + WrittenTestPassedCandidate = c.Int(), + VivaDate = c.DateTime(), + VivaCandidate = c.Int(), + FinalVivaCandidate = c.Int(), + ReferenceCheck = c.String(), + FinalMeetingWithCEO = c.String(), + SelectedCandidateDetails = c.String(), + ALIssueDate = c.DateTime(), + DateOfJoining = c.DateTime(), + ProcessLength = c.Int(), + CreateDate = c.DateTime(nullable: false), + ModifiedDate = c.DateTime(nullable: false), + CreatedBy = c.String(), + ModifiedBy = c.String(), }) - .PrimaryKey(t => t.ID) + .PrimaryKey(t => t.Id) .ForeignKey("dbo.Requisitions", t => t.RequisitionId, cascadeDelete: true) .Index(t => t.RequisitionId); @@ -52,13 +63,13 @@ public override void Up() ModifiedBy = c.String(), }) .PrimaryKey(t => t.Id) - .ForeignKey("dbo.Depts", t => t.DeptId) - .ForeignKey("dbo.Designations", t => t.PositionId) - .ForeignKey("dbo.Divisions", t => t.DivisionId) - .ForeignKey("dbo.Employees", t => t.RaisedBy) - .ForeignKey("dbo.Employees", t => t.RequiredBy) + .ForeignKey("dbo.Dept", t => t.DeptId) + .ForeignKey("dbo.Designation", t => t.PositionId) + .ForeignKey("dbo.Division", t => t.DivisionId) + .ForeignKey("dbo.Employee", t => t.RaisedBy) + .ForeignKey("dbo.Employee", t => t.RequiredBy) .ForeignKey("dbo.Status", t => t.StatusId) - .ForeignKey("dbo.SubUnits", t => t.SubUnitId) + .ForeignKey("dbo.SubUnit", t => t.SubUnitId) .Index(t => t.RaisedBy) .Index(t => t.PositionId) .Index(t => t.DivisionId) @@ -68,23 +79,23 @@ public override void Up() .Index(t => t.StatusId); CreateTable( - "dbo.Depts", + "dbo.Dept", c => new { Id = c.Int(nullable: false, identity: true), - Name = c.String(nullable: false), + Name = c.String(nullable: false, maxLength: 80), DivisionId = c.Int(nullable: false), }) .PrimaryKey(t => t.Id) - .ForeignKey("dbo.Divisions", t => t.DivisionId, cascadeDelete: true) + .ForeignKey("dbo.Division", t => t.DivisionId, cascadeDelete: true) .Index(t => t.DivisionId); CreateTable( - "dbo.Divisions", + "dbo.Division", c => new { Id = c.Int(nullable: false, identity: true), - Name = c.String(nullable: false), + Name = c.String(nullable: false, maxLength: 80), CreateDate = c.DateTime(nullable: false), ModifiedDate = c.DateTime(nullable: false), CreatedBy = c.String(), @@ -93,48 +104,48 @@ public override void Up() .PrimaryKey(t => t.Id); CreateTable( - "dbo.Employees", + "dbo.Employee", c => new { Id = c.Int(nullable: false, identity: true), - Name = c.String(nullable: false), + Name = c.String(nullable: false, maxLength: 100), DesignationId = c.Int(), DeptId = c.Int(nullable: false), DivisionId = c.Int(nullable: false), SubUnitId = c.Int(nullable: false), }) .PrimaryKey(t => t.Id) - .ForeignKey("dbo.Depts", t => t.DeptId, cascadeDelete: true) - .ForeignKey("dbo.Designations", t => t.DesignationId) - .ForeignKey("dbo.Divisions", t => t.DivisionId) - .ForeignKey("dbo.SubUnits", t => t.SubUnitId, cascadeDelete: true) + .ForeignKey("dbo.Dept", t => t.DeptId, cascadeDelete: true) + .ForeignKey("dbo.Designation", t => t.DesignationId) + .ForeignKey("dbo.Division", t => t.DivisionId, cascadeDelete: false) + .ForeignKey("dbo.SubUnit", t => t.SubUnitId, cascadeDelete: true) .Index(t => t.DesignationId) .Index(t => t.DeptId) .Index(t => t.DivisionId) .Index(t => t.SubUnitId); CreateTable( - "dbo.Designations", + "dbo.Designation", c => new { Id = c.Int(nullable: false, identity: true), - Name = c.String(nullable: false), + Name = c.String(nullable: false, maxLength: 80), DivisionId = c.Int(nullable: false), }) .PrimaryKey(t => t.Id) - .ForeignKey("dbo.Divisions", t => t.DivisionId, cascadeDelete: true) + .ForeignKey("dbo.Division", t => t.DivisionId, cascadeDelete: true) .Index(t => t.DivisionId); CreateTable( - "dbo.SubUnits", + "dbo.SubUnit", c => new { Id = c.Int(nullable: false, identity: true), - Name = c.String(nullable: false), + Name = c.String(nullable: false, maxLength: 100), DeptId = c.Int(nullable: false), }) .PrimaryKey(t => t.Id) - .ForeignKey("dbo.Depts", t => t.DeptId) + .ForeignKey("dbo.Dept", t => t.DeptId, cascadeDelete: false) .Index(t => t.DeptId); CreateTable( @@ -142,7 +153,7 @@ public override void Up() c => new { Id = c.Int(nullable: false, identity: true), - Name = c.String(nullable: false), + Name = c.String(nullable: false, maxLength: 100), }) .PrimaryKey(t => t.Id); @@ -222,34 +233,34 @@ public override void Down() DropForeignKey("dbo.AspNetUserLogins", "UserId", "dbo.AspNetUsers"); DropForeignKey("dbo.AspNetUserClaims", "UserId", "dbo.AspNetUsers"); DropForeignKey("dbo.AspNetUserRoles", "RoleId", "dbo.AspNetRoles"); - DropForeignKey("dbo.Circulars", "RequisitionId", "dbo.Requisitions"); - DropForeignKey("dbo.Requisitions", "SubUnitId", "dbo.SubUnits"); + DropForeignKey("dbo.Circular", "RequisitionId", "dbo.Requisitions"); + DropForeignKey("dbo.Requisitions", "SubUnitId", "dbo.SubUnit"); DropForeignKey("dbo.Requisitions", "StatusId", "dbo.Status"); - DropForeignKey("dbo.Requisitions", "RequiredBy", "dbo.Employees"); - DropForeignKey("dbo.Requisitions", "RaisedBy", "dbo.Employees"); - DropForeignKey("dbo.Requisitions", "DivisionId", "dbo.Divisions"); - DropForeignKey("dbo.Requisitions", "PositionId", "dbo.Designations"); - DropForeignKey("dbo.Requisitions", "DeptId", "dbo.Depts"); - DropForeignKey("dbo.Depts", "DivisionId", "dbo.Divisions"); - DropForeignKey("dbo.Employees", "SubUnitId", "dbo.SubUnits"); - DropForeignKey("dbo.SubUnits", "DeptId", "dbo.Depts"); - DropForeignKey("dbo.Employees", "DivisionId", "dbo.Divisions"); - DropForeignKey("dbo.Employees", "DesignationId", "dbo.Designations"); - DropForeignKey("dbo.Designations", "DivisionId", "dbo.Divisions"); - DropForeignKey("dbo.Employees", "DeptId", "dbo.Depts"); + DropForeignKey("dbo.Requisitions", "RequiredBy", "dbo.Employee"); + DropForeignKey("dbo.Requisitions", "RaisedBy", "dbo.Employee"); + DropForeignKey("dbo.Requisitions", "DivisionId", "dbo.Division"); + DropForeignKey("dbo.Requisitions", "PositionId", "dbo.Designation"); + DropForeignKey("dbo.Requisitions", "DeptId", "dbo.Dept"); + DropForeignKey("dbo.Dept", "DivisionId", "dbo.Division"); + DropForeignKey("dbo.Employee", "SubUnitId", "dbo.SubUnit"); + DropForeignKey("dbo.SubUnit", "DeptId", "dbo.Dept"); + DropForeignKey("dbo.Employee", "DivisionId", "dbo.Division"); + DropForeignKey("dbo.Employee", "DesignationId", "dbo.Designation"); + DropForeignKey("dbo.Designation", "DivisionId", "dbo.Division"); + DropForeignKey("dbo.Employee", "DeptId", "dbo.Dept"); DropIndex("dbo.AspNetUserLogins", new[] { "UserId" }); DropIndex("dbo.AspNetUserClaims", new[] { "UserId" }); DropIndex("dbo.AspNetUsers", "UserNameIndex"); DropIndex("dbo.AspNetUserRoles", new[] { "RoleId" }); DropIndex("dbo.AspNetUserRoles", new[] { "UserId" }); DropIndex("dbo.AspNetRoles", "RoleNameIndex"); - DropIndex("dbo.SubUnits", new[] { "DeptId" }); - DropIndex("dbo.Designations", new[] { "DivisionId" }); - DropIndex("dbo.Employees", new[] { "SubUnitId" }); - DropIndex("dbo.Employees", new[] { "DivisionId" }); - DropIndex("dbo.Employees", new[] { "DeptId" }); - DropIndex("dbo.Employees", new[] { "DesignationId" }); - DropIndex("dbo.Depts", new[] { "DivisionId" }); + DropIndex("dbo.SubUnit", new[] { "DeptId" }); + DropIndex("dbo.Designation", new[] { "DivisionId" }); + DropIndex("dbo.Employee", new[] { "SubUnitId" }); + DropIndex("dbo.Employee", new[] { "DivisionId" }); + DropIndex("dbo.Employee", new[] { "DeptId" }); + DropIndex("dbo.Employee", new[] { "DesignationId" }); + DropIndex("dbo.Dept", new[] { "DivisionId" }); DropIndex("dbo.Requisitions", new[] { "StatusId" }); DropIndex("dbo.Requisitions", new[] { "RequiredBy" }); DropIndex("dbo.Requisitions", new[] { "SubUnitId" }); @@ -257,20 +268,20 @@ public override void Down() DropIndex("dbo.Requisitions", new[] { "DivisionId" }); DropIndex("dbo.Requisitions", new[] { "PositionId" }); DropIndex("dbo.Requisitions", new[] { "RaisedBy" }); - DropIndex("dbo.Circulars", new[] { "RequisitionId" }); + DropIndex("dbo.Circular", new[] { "RequisitionId" }); DropTable("dbo.AspNetUserLogins"); DropTable("dbo.AspNetUserClaims"); DropTable("dbo.AspNetUsers"); DropTable("dbo.AspNetUserRoles"); DropTable("dbo.AspNetRoles"); DropTable("dbo.Status"); - DropTable("dbo.SubUnits"); - DropTable("dbo.Designations"); - DropTable("dbo.Employees"); - DropTable("dbo.Divisions"); - DropTable("dbo.Depts"); + DropTable("dbo.SubUnit"); + DropTable("dbo.Designation"); + DropTable("dbo.Employee"); + DropTable("dbo.Division"); + DropTable("dbo.Dept"); DropTable("dbo.Requisitions"); - DropTable("dbo.Circulars"); + DropTable("dbo.Circular"); } } } diff --git a/src/HSTrackerData/Migrations/201810191635167_InitialCreate.resx b/src/HSTrackerData/Migrations/201810191635167_InitialCreate.resx new file mode 100644 index 0000000..ae314ca --- /dev/null +++ b/src/HSTrackerData/Migrations/201810191635167_InitialCreate.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, P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zdaVbrFruzsCCJQYFkfJ9QRpIcfdmMS1MNWJIp1MjkjD5uN59CMXRH8sbcCqD7Y1CMHczTyMQ706iT9FBx7uPBirD3L72Q9HmbI0sNoyZj1h9ZtmWfa85tgeWNwg8t+2JKDU8mgdcer0k1ZeuNATFepGjS0/SBPqNheCMABn0QQJkeB6j1zaiRCmaFImF0KIGVX90KpthX0QgGTT/UpFGb7BEg/1b1Qyl0tvUwkJyu9i6TLqSNkmKrLTmbFdlT5A/lTyCR1Mvu8DbMneIq/Ck+2JnFCaIbYYw4R6jpX4SqqzjI4jqoq/KO1OEVLlKKzOPVXyEvLrBZ5foz8RZPMsXjAy6vwbptutikZMl4/BExUZHYmour/ZCbwfHK3yQ8CuhgCYTNPOnIX/rL1g2XN96XkQQyARHbYUr51k+kyzd68eXytKd1GoSGhUnz1GdE9Jl4ZIZbchQv0jF14I/C7xo/Ie22eP4GI6BXBiv3k3EePMVonJY2mPfmTYHi5fvnT/wOBfo5PfBoBAA== + + + dbo + + \ No newline at end of file diff --git a/src/HSTrackerData/Migrations/Configuration.cs b/src/HSTrackerData/Migrations/Configuration.cs new file mode 100644 index 0000000..e88c836 --- /dev/null +++ b/src/HSTrackerData/Migrations/Configuration.cs @@ -0,0 +1,30 @@ +namespace HSTrackerData.Migrations +{ + using HSTrackerModel.Models; + using System; + using System.Data.Entity; + using System.Data.Entity.Migrations; + using System.Linq; + + internal sealed class Configuration : DbMigrationsConfiguration + { + public Configuration() + { + AutomaticMigrationsEnabled = false; + } + + protected override void Seed(HSTrackerData.AppDbContext context) + { + context.Status.AddOrUpdate( + p => p.Id, + new Status() { Id = 1, Name = "Open" }, + new Status() { Id = 2, Name = "In Progress" }, + new Status() { Id = 3, Name = "Closed" } + ); + // This method will be called after migrating to the latest version. + + // You can use the DbSet.AddOrUpdate() helper extension method + // to avoid creating duplicate seed data. + } + } +} diff --git a/src/HSTrackerData/Properties/AssemblyInfo.cs b/src/HSTrackerData/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..95bd053 --- /dev/null +++ b/src/HSTrackerData/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("HSTrackerData")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("HSTrackerData")] +[assembly: AssemblyCopyright("Copyright © 2018")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("8d70a0cb-f6a5-4a7f-8f28-7c3097ca2697")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/HSTrackerData/RSTrackerData.csproj b/src/HSTrackerData/RSTrackerData.csproj new file mode 100644 index 0000000..9fd368a --- /dev/null +++ b/src/HSTrackerData/RSTrackerData.csproj @@ -0,0 +1,151 @@ + + + + + Debug + AnyCPU + {8D70A0CB-F6A5-4A7F-8F28-7C3097CA2697} + Library + Properties + HSTrackerData + HSTrackerData + v4.5.2 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.dll + True + + + ..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.SqlServer.dll + True + + + ..\packages\Microsoft.AspNet.Identity.Core.2.2.2\lib\net45\Microsoft.AspNet.Identity.Core.dll + True + + + ..\packages\Microsoft.AspNet.Identity.EntityFramework.2.2.2\lib\net45\Microsoft.AspNet.Identity.EntityFramework.dll + True + + + ..\packages\Microsoft.AspNet.Identity.Owin.2.2.2\lib\net45\Microsoft.AspNet.Identity.Owin.dll + True + + + ..\packages\Microsoft.Owin.3.0.1\lib\net45\Microsoft.Owin.dll + True + + + ..\packages\Microsoft.Owin.Security.3.0.1\lib\net45\Microsoft.Owin.Security.dll + True + + + ..\packages\Microsoft.Owin.Security.Cookies.3.0.1\lib\net45\Microsoft.Owin.Security.Cookies.dll + True + + + ..\packages\Microsoft.Owin.Security.OAuth.3.0.1\lib\net45\Microsoft.Owin.Security.OAuth.dll + True + + + ..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll + True + + + ..\packages\Owin.1.0\lib\net40\Owin.dll + True + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 201810191635167_InitialCreate.cs + + + + + + + + + + + + + + + + + + + + + + + + + + + {a5b729db-9a38-4769-9859-7e0b6964afbe} + RSTrackerModel + + + + + 201810191635167_InitialCreate.cs + + + + + \ No newline at end of file diff --git a/src/HSTrackerData/Repositories/CircularRepository.cs b/src/HSTrackerData/Repositories/CircularRepository.cs new file mode 100644 index 0000000..9c8f485 --- /dev/null +++ b/src/HSTrackerData/Repositories/CircularRepository.cs @@ -0,0 +1,18 @@ +using HSTrackerData.Infrastructure; +using HSTrackerData.Repositories.Interface; +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Repositories +{ + public class CircularRepository : RepositoryBase, ICircularRepository + { + public CircularRepository(IDbFactory dbFactory) : base(dbFactory) + { + } + } +} diff --git a/src/HSTrackerData/Repositories/DeptRepository.cs b/src/HSTrackerData/Repositories/DeptRepository.cs new file mode 100644 index 0000000..0fc3917 --- /dev/null +++ b/src/HSTrackerData/Repositories/DeptRepository.cs @@ -0,0 +1,18 @@ +using HSTrackerData.Infrastructure; +using HSTrackerData.Repositories.Interface; +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Repositories +{ + public class DeptRepository : RepositoryBase, IDeptRepository + { + public DeptRepository(IDbFactory dbFactory) : base(dbFactory) + { + } + } +} diff --git a/src/HSTrackerData/Repositories/DesignationRepository.cs b/src/HSTrackerData/Repositories/DesignationRepository.cs new file mode 100644 index 0000000..25d1de2 --- /dev/null +++ b/src/HSTrackerData/Repositories/DesignationRepository.cs @@ -0,0 +1,18 @@ +using HSTrackerData.Infrastructure; +using HSTrackerData.Repositories.Interface; +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Repositories +{ + public class DesignationRepository : RepositoryBase, IDesignationRepository + { + public DesignationRepository(IDbFactory dbFactory) : base(dbFactory) + { + } + } +} diff --git a/src/HSTrackerData/Repositories/DivisionRepository.cs b/src/HSTrackerData/Repositories/DivisionRepository.cs new file mode 100644 index 0000000..770a9e7 --- /dev/null +++ b/src/HSTrackerData/Repositories/DivisionRepository.cs @@ -0,0 +1,18 @@ +using HSTrackerData.Infrastructure; +using HSTrackerData.Repositories.Interface; +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Repositories +{ + public class DivisionRepository : RepositoryBase, IDivisionRepository + { + public DivisionRepository(IDbFactory dbFactory) : base(dbFactory) + { + } + } +} diff --git a/src/HSTrackerData/Repositories/EmployeeRepository.cs b/src/HSTrackerData/Repositories/EmployeeRepository.cs new file mode 100644 index 0000000..ed7ada3 --- /dev/null +++ b/src/HSTrackerData/Repositories/EmployeeRepository.cs @@ -0,0 +1,18 @@ +using HSTrackerData.Infrastructure; +using HSTrackerData.Repositories.Interface; +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Repositories +{ + public class EmployeeRepository : RepositoryBase, IEmployeeRepository + { + public EmployeeRepository(IDbFactory dbFactory) : base(dbFactory) + { + } + } +} diff --git a/src/HSTrackerData/Repositories/Interface/ICircularRepository.cs b/src/HSTrackerData/Repositories/Interface/ICircularRepository.cs new file mode 100644 index 0000000..64de1af --- /dev/null +++ b/src/HSTrackerData/Repositories/Interface/ICircularRepository.cs @@ -0,0 +1,14 @@ +using HSTrackerData.Infrastructure; +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Repositories.Interface +{ + public interface ICircularRepository : IRepository + { + } +} diff --git a/src/HSTrackerData/Repositories/Interface/IDeptRepository.cs b/src/HSTrackerData/Repositories/Interface/IDeptRepository.cs new file mode 100644 index 0000000..e0d0536 --- /dev/null +++ b/src/HSTrackerData/Repositories/Interface/IDeptRepository.cs @@ -0,0 +1,14 @@ +using HSTrackerData.Infrastructure; +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Repositories.Interface +{ + public interface IDeptRepository : IRepository + { + } +} diff --git a/src/HSTrackerData/Repositories/Interface/IDesignationRepository.cs b/src/HSTrackerData/Repositories/Interface/IDesignationRepository.cs new file mode 100644 index 0000000..d082742 --- /dev/null +++ b/src/HSTrackerData/Repositories/Interface/IDesignationRepository.cs @@ -0,0 +1,14 @@ +using HSTrackerData.Infrastructure; +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Repositories.Interface +{ + public interface IDesignationRepository : IRepository + { + } +} diff --git a/src/HSTrackerData/Repositories/Interface/IDivisionRepository.cs b/src/HSTrackerData/Repositories/Interface/IDivisionRepository.cs new file mode 100644 index 0000000..9354ee4 --- /dev/null +++ b/src/HSTrackerData/Repositories/Interface/IDivisionRepository.cs @@ -0,0 +1,14 @@ +using HSTrackerData.Infrastructure; +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Repositories.Interface +{ + public interface IDivisionRepository : IRepository + { + } +} diff --git a/src/HSTrackerData/Repositories/Interface/IEmployeeRepository.cs b/src/HSTrackerData/Repositories/Interface/IEmployeeRepository.cs new file mode 100644 index 0000000..65ca8d3 --- /dev/null +++ b/src/HSTrackerData/Repositories/Interface/IEmployeeRepository.cs @@ -0,0 +1,14 @@ +using HSTrackerData.Infrastructure; +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Repositories.Interface +{ + public interface IEmployeeRepository: IRepository + { + } +} diff --git a/src/HSTrackerData/Repositories/Interface/IRequisitionRepository.cs b/src/HSTrackerData/Repositories/Interface/IRequisitionRepository.cs new file mode 100644 index 0000000..0828e75 --- /dev/null +++ b/src/HSTrackerData/Repositories/Interface/IRequisitionRepository.cs @@ -0,0 +1,14 @@ +using HSTrackerData.Infrastructure; +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Repositories.Interface +{ + public interface IRequisitionRepository : IRepository + { + } +} diff --git a/src/HSTrackerData/Repositories/Interface/IStatusRepository.cs b/src/HSTrackerData/Repositories/Interface/IStatusRepository.cs new file mode 100644 index 0000000..9cd81ae --- /dev/null +++ b/src/HSTrackerData/Repositories/Interface/IStatusRepository.cs @@ -0,0 +1,14 @@ +using HSTrackerData.Infrastructure; +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Repositories.Interface +{ + public interface IStatusRepository : IRepository + { + } +} diff --git a/src/HSTrackerData/Repositories/Interface/ISubUnitRepository.cs b/src/HSTrackerData/Repositories/Interface/ISubUnitRepository.cs new file mode 100644 index 0000000..85c9ae4 --- /dev/null +++ b/src/HSTrackerData/Repositories/Interface/ISubUnitRepository.cs @@ -0,0 +1,14 @@ +using HSTrackerData.Infrastructure; +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Repositories.Interface +{ + public interface ISubUnitRepository : IRepository + { + } +} diff --git a/src/HSTrackerData/Repositories/RequisitionRepository.cs b/src/HSTrackerData/Repositories/RequisitionRepository.cs new file mode 100644 index 0000000..93db906 --- /dev/null +++ b/src/HSTrackerData/Repositories/RequisitionRepository.cs @@ -0,0 +1,18 @@ +using HSTrackerData.Infrastructure; +using HSTrackerData.Repositories.Interface; +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Repositories +{ + public class RequisitionRepository : RepositoryBase, IRequisitionRepository + { + public RequisitionRepository(IDbFactory dbFactory) : base(dbFactory) + { + } + } +} diff --git a/src/HSTrackerData/Repositories/StatusRepository.cs b/src/HSTrackerData/Repositories/StatusRepository.cs new file mode 100644 index 0000000..f9da8aa --- /dev/null +++ b/src/HSTrackerData/Repositories/StatusRepository.cs @@ -0,0 +1,18 @@ +using HSTrackerData.Infrastructure; +using HSTrackerData.Repositories.Interface; +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Repositories +{ + public class StatusRepository : RepositoryBase, IStatusRepository + { + public StatusRepository(IDbFactory dbFactory) : base(dbFactory) + { + } + } +} diff --git a/src/HSTrackerData/Repositories/SubUnitRepository.cs b/src/HSTrackerData/Repositories/SubUnitRepository.cs new file mode 100644 index 0000000..ee54c67 --- /dev/null +++ b/src/HSTrackerData/Repositories/SubUnitRepository.cs @@ -0,0 +1,18 @@ +using HSTrackerData.Infrastructure; +using HSTrackerData.Repositories.Interface; +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerData.Repositories +{ + public class SubUnitRepository : RepositoryBase, ISubUnitRepository + { + public SubUnitRepository(IDbFactory dbFactory) : base(dbFactory) + { + } + } +} diff --git a/src/HSTrackerData/packages.config b/src/HSTrackerData/packages.config new file mode 100644 index 0000000..f8b51e6 --- /dev/null +++ b/src/HSTrackerData/packages.config @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/HSTrackerModel/App.config b/src/HSTrackerModel/App.config new file mode 100644 index 0000000..7e1d79c --- /dev/null +++ b/src/HSTrackerModel/App.config @@ -0,0 +1,17 @@ + + + + +
+ + + + + + + + + + + + \ No newline at end of file diff --git a/src/RSTracker/RSTracker/Models/Circular.cs b/src/HSTrackerModel/Models/Circular.cs similarity index 94% rename from src/RSTracker/RSTracker/Models/Circular.cs rename to src/HSTrackerModel/Models/Circular.cs index cb5d8f6..c2b8340 100644 --- a/src/RSTracker/RSTracker/Models/Circular.cs +++ b/src/HSTrackerModel/Models/Circular.cs @@ -1,13 +1,14 @@ -using System; +using HSTrackerModel.SharedKernel; +using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; -namespace RSTracker.Models +namespace HSTrackerModel.Models { - public class Circular + public class Circular : Entity { public Circular() { @@ -16,8 +17,6 @@ public Circular() CreatedBy = null; ModifiedBy = null; } - [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id {get; set;} [Display(Name = "Ref. No.")] public int RequisitionId { get; set; } diff --git a/src/RSTracker/RSTracker/Models/Dept.cs b/src/HSTrackerModel/Models/Dept.cs similarity index 73% rename from src/RSTracker/RSTracker/Models/Dept.cs rename to src/HSTrackerModel/Models/Dept.cs index a150f51..d92bda0 100644 --- a/src/RSTracker/RSTracker/Models/Dept.cs +++ b/src/HSTrackerModel/Models/Dept.cs @@ -1,19 +1,16 @@ -using System; +using HSTrackerModel.SharedKernel; +using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; -namespace RSTracker.Models +namespace HSTrackerModel.Models { - public class Dept + public class Dept : Entity { - [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } [Display(Name ="Department")] - [Required()] - public string Name { get; set; } public int DivisionId { get; set; } diff --git a/src/RSTracker/RSTracker/Models/Designation.cs b/src/HSTrackerModel/Models/Designation.cs similarity index 70% rename from src/RSTracker/RSTracker/Models/Designation.cs rename to src/HSTrackerModel/Models/Designation.cs index 156d9ea..803281b 100644 --- a/src/RSTracker/RSTracker/Models/Designation.cs +++ b/src/HSTrackerModel/Models/Designation.cs @@ -1,18 +1,16 @@ -using System; +using HSTrackerModel.SharedKernel; +using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; -namespace RSTracker.Models +namespace HSTrackerModel.Models { - public class Designation + public class Designation : Entity { - [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } [Display(Name ="Designation")] - [Required()] public string Name { get; set; } public int DivisionId { get; set; } diff --git a/src/RSTracker/RSTracker/Models/Division.cs b/src/HSTrackerModel/Models/Division.cs similarity index 78% rename from src/RSTracker/RSTracker/Models/Division.cs rename to src/HSTrackerModel/Models/Division.cs index 520acca..5881d39 100644 --- a/src/RSTracker/RSTracker/Models/Division.cs +++ b/src/HSTrackerModel/Models/Division.cs @@ -1,13 +1,14 @@ -using System; +using HSTrackerModel.SharedKernel; +using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; -namespace RSTracker.Models +namespace HSTrackerModel.Models { - public class Division + public class Division : Entity { public Division() { @@ -17,10 +18,7 @@ public Division() ModifiedBy = null; } - [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } [Display(Name ="Division Name")] - [Required()] public string Name { get; set; } public virtual List Employees { get; set; } diff --git a/src/RSTracker/RSTracker/Models/Employee.cs b/src/HSTrackerModel/Models/Employee.cs similarity index 82% rename from src/RSTracker/RSTracker/Models/Employee.cs rename to src/HSTrackerModel/Models/Employee.cs index 4594b45..8551394 100644 --- a/src/RSTracker/RSTracker/Models/Employee.cs +++ b/src/HSTrackerModel/Models/Employee.cs @@ -1,16 +1,15 @@ -using System; +using HSTrackerModel.SharedKernel; +using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; -namespace RSTracker.Models +namespace HSTrackerModel.Models { - public class Employee + public class Employee : Entity { - [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } [Display(Name ="Employee Name")] [Required()] public string Name { get; set; } diff --git a/src/RSTracker/RSTracker/Models/Requisition.cs b/src/HSTrackerModel/Models/Requisition.cs similarity index 92% rename from src/RSTracker/RSTracker/Models/Requisition.cs rename to src/HSTrackerModel/Models/Requisition.cs index 4401760..fb19701 100644 --- a/src/RSTracker/RSTracker/Models/Requisition.cs +++ b/src/HSTrackerModel/Models/Requisition.cs @@ -1,13 +1,14 @@ -using System; +using HSTrackerModel.SharedKernel; +using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; -namespace RSTracker.Models +namespace HSTrackerModel.Models { - public class Requisition + public class Requisition : Entity { public Requisition() { @@ -17,10 +18,6 @@ public Requisition() ModifiedBy = null; } - [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - [Required()] [Display(Name = "Ref. No")] public string RefNo { get; set; } diff --git a/src/RSTracker/RSTracker/Models/Status.cs b/src/HSTrackerModel/Models/Status.cs similarity index 57% rename from src/RSTracker/RSTracker/Models/Status.cs rename to src/HSTrackerModel/Models/Status.cs index b4683f3..ed9b515 100644 --- a/src/RSTracker/RSTracker/Models/Status.cs +++ b/src/HSTrackerModel/Models/Status.cs @@ -1,18 +1,16 @@ -using System; +using HSTrackerModel.SharedKernel; +using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; -namespace RSTracker.Models +namespace HSTrackerModel.Models { - public class Status + public class Status : Entity { - [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } [Display (Name ="Status")] - [Required()] public string Name { get; set; } } } \ No newline at end of file diff --git a/src/RSTracker/RSTracker/Models/SubUnit.cs b/src/HSTrackerModel/Models/SubUnit.cs similarity index 66% rename from src/RSTracker/RSTracker/Models/SubUnit.cs rename to src/HSTrackerModel/Models/SubUnit.cs index 52e64f2..668c05c 100644 --- a/src/RSTracker/RSTracker/Models/SubUnit.cs +++ b/src/HSTrackerModel/Models/SubUnit.cs @@ -1,18 +1,16 @@ -using System; +using HSTrackerModel.SharedKernel; +using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; -namespace RSTracker.Models +namespace HSTrackerModel.Models { - public class SubUnit + public class SubUnit : Entity { - [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } [Display(Name ="Sub Unit")] - [Required()] public string Name { get; set; } public int DeptId { get; set; } [ForeignKey("DeptId")] diff --git a/src/HSTrackerModel/Properties/AssemblyInfo.cs b/src/HSTrackerModel/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..157efd8 --- /dev/null +++ b/src/HSTrackerModel/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("HSTrackerModel")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("HSTrackerModel")] +[assembly: AssemblyCopyright("Copyright © 2018")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("a5b729db-9a38-4769-9859-7e0b6964afbe")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/HSTrackerModel/RSTrackerModel.csproj b/src/HSTrackerModel/RSTrackerModel.csproj new file mode 100644 index 0000000..77f88b6 --- /dev/null +++ b/src/HSTrackerModel/RSTrackerModel.csproj @@ -0,0 +1,75 @@ + + + + + Debug + AnyCPU + {A5B729DB-9A38-4769-9859-7E0B6964AFBE} + Library + Properties + HSTrackerModel + HSTrackerModel + v4.5.2 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.dll + True + + + ..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.SqlServer.dll + True + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/HSTrackerModel/SharedKernel/Entity.cs b/src/HSTrackerModel/SharedKernel/Entity.cs new file mode 100644 index 0000000..09ec73e --- /dev/null +++ b/src/HSTrackerModel/SharedKernel/Entity.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerModel.SharedKernel +{ + public abstract class Entity + { + public int Id { get; set; } + } +} diff --git a/src/HSTrackerModel/packages.config b/src/HSTrackerModel/packages.config new file mode 100644 index 0000000..6a70531 --- /dev/null +++ b/src/HSTrackerModel/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/HSTrackerService/Interface/ICircularService.cs b/src/HSTrackerService/Interface/ICircularService.cs new file mode 100644 index 0000000..ca29faa --- /dev/null +++ b/src/HSTrackerService/Interface/ICircularService.cs @@ -0,0 +1,19 @@ +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerService.Interface +{ + public interface ICircularService + { + IEnumerable GetAllCircular(int? requisitionId); + Circular GetCircular(int? id); + void CreateCircular(Circular circular); + void EditCircular(Circular circular); + void DeleteCircular(Circular circular); + void SaveCircular(); + } +} diff --git a/src/HSTrackerService/Interface/IDeptService.cs b/src/HSTrackerService/Interface/IDeptService.cs new file mode 100644 index 0000000..d9021ec --- /dev/null +++ b/src/HSTrackerService/Interface/IDeptService.cs @@ -0,0 +1,19 @@ +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerService.Interface +{ + public interface IDeptService + { + IEnumerable GetAllDept(); + Dept GetDept(int? id); + void CreateDept(Dept dept); + void EditDept(Dept dept); + void DeleteDept(Dept dept); + void SaveDept(); + } +} diff --git a/src/HSTrackerService/Interface/IDesignationService.cs b/src/HSTrackerService/Interface/IDesignationService.cs new file mode 100644 index 0000000..287804c --- /dev/null +++ b/src/HSTrackerService/Interface/IDesignationService.cs @@ -0,0 +1,19 @@ +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerService.Interface +{ + public interface IDesignationService + { + IEnumerable GetAllDesignation(); + Designation GetDesignation(int? id); + void CreateDesignation(Designation designation); + void EditDesignation(Designation designation); + void DeleteDesignation(Designation designation); + void SaveDesignation(); + } +} diff --git a/src/HSTrackerService/Interface/IDivisionService.cs b/src/HSTrackerService/Interface/IDivisionService.cs new file mode 100644 index 0000000..4dd0050 --- /dev/null +++ b/src/HSTrackerService/Interface/IDivisionService.cs @@ -0,0 +1,19 @@ +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerService.Interface +{ + public interface IDivisionService + { + IEnumerable GetAllDivision(); + Division GetDivision(int? id); + void CreateDivision(Division division); + void EditDivision(Division division); + void DeleteDivision(Division division); + void SaveDivision(); + } +} diff --git a/src/HSTrackerService/Interface/IEmployeeService.cs b/src/HSTrackerService/Interface/IEmployeeService.cs new file mode 100644 index 0000000..119fd9e --- /dev/null +++ b/src/HSTrackerService/Interface/IEmployeeService.cs @@ -0,0 +1,19 @@ +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerService.Interface +{ + public interface IEmployeeService + { + IEnumerable GetAllEmployee(); + Employee GetEmployee(int? id); + void CreateEmployee(Employee employee); + void EditEmployee(Employee employee); + void DeleteEmployee(Employee employee); + void SaveEmployee(); + } +} diff --git a/src/HSTrackerService/Interface/IRequisitionService.cs b/src/HSTrackerService/Interface/IRequisitionService.cs new file mode 100644 index 0000000..6c0180e --- /dev/null +++ b/src/HSTrackerService/Interface/IRequisitionService.cs @@ -0,0 +1,19 @@ +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerService.Interface +{ + public interface IRequisitionService + { + IEnumerable GetAllRequisition(); + Requisition GetRequisition(int? id); + void CreateRequisition(Requisition requisition); + void EditRequisition(Requisition requisition); + void DeleteRequisition(Requisition requisition); + void SaveRequisition(); + } +} diff --git a/src/HSTrackerService/Interface/IStatusService.cs b/src/HSTrackerService/Interface/IStatusService.cs new file mode 100644 index 0000000..dbc4da5 --- /dev/null +++ b/src/HSTrackerService/Interface/IStatusService.cs @@ -0,0 +1,19 @@ +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerService.Interface +{ + public interface IStatusService + { + IEnumerable GetAllStatus(); + Status GetStatus(int? id); + void CreateStatus(Status status); + void EditStatus(Status status); + void DeleteStatus(Status status); + void SaveStatus(); + } +} diff --git a/src/HSTrackerService/Interface/ISubUnitService.cs b/src/HSTrackerService/Interface/ISubUnitService.cs new file mode 100644 index 0000000..3421e37 --- /dev/null +++ b/src/HSTrackerService/Interface/ISubUnitService.cs @@ -0,0 +1,19 @@ +using HSTrackerModel.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerService.Interface +{ + public interface ISubUnitService + { + IEnumerable GetAllSubUnit(); + SubUnit GetSubUnit(int? id); + void CreateSubUnit(SubUnit subUnit); + void EditSubUnit(SubUnit subUnit); + void DeleteSubUnit(SubUnit subUnit); + void SaveSubUnit(); + } +} diff --git a/src/HSTrackerService/Properties/AssemblyInfo.cs b/src/HSTrackerService/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..871e451 --- /dev/null +++ b/src/HSTrackerService/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("HSTrackerService")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("HSTrackerService")] +[assembly: AssemblyCopyright("Copyright © 2018")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("49eeb116-e3aa-4ef7-9595-c7cc2f81e219")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/HSTrackerService/RSTrackerService.csproj b/src/HSTrackerService/RSTrackerService.csproj new file mode 100644 index 0000000..eb7efb0 --- /dev/null +++ b/src/HSTrackerService/RSTrackerService.csproj @@ -0,0 +1,79 @@ + + + + + Debug + AnyCPU + {49EEB116-E3AA-4EF7-9595-C7CC2F81E219} + Library + Properties + HSTrackerService + HSTrackerService + v4.5.2 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {8D70A0CB-F6A5-4A7F-8F28-7C3097CA2697} + RSTrackerData + + + {A5B729DB-9A38-4769-9859-7E0B6964AFBE} + RSTrackerModel + + + + + \ No newline at end of file diff --git a/src/HSTrackerService/Services/CircularService.cs b/src/HSTrackerService/Services/CircularService.cs new file mode 100644 index 0000000..fd3e11f --- /dev/null +++ b/src/HSTrackerService/Services/CircularService.cs @@ -0,0 +1,60 @@ +using HSTrackerService.Interface; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using HSTrackerModel.Models; +using HSTrackerData.Infrastructure; +using HSTrackerData.Repositories.Interface; + +namespace HSTrackerService.Services +{ + public class CircularService : ICircularService + { + private readonly ICircularRepository _circularRepository; + private readonly IUnitOfWork _unitOfWork; + public CircularService(ICircularRepository circularRepository, IUnitOfWork unitOfWork) + { + this._circularRepository = circularRepository; + this._unitOfWork = unitOfWork; + } + public void CreateCircular(Circular circular) + { + _circularRepository.Add(circular); + } + + public void DeleteCircular(Circular circular) + { + _circularRepository.Delete(circular); + } + + public void EditCircular(Circular circular) + { + _circularRepository.Update(circular); + } + + public IEnumerable GetAllCircular(int? requisitionId) + { + if(requisitionId == null) + { + return _circularRepository.GetAll(); + } + else + { + return _circularRepository.GetAll().Where(c => c.RequisitionId == requisitionId); + } + } + + public Circular GetCircular(int? id) + { + var circular = _circularRepository.GetById(id); + return circular; + } + + public void SaveCircular() + { + _unitOfWork.Commit(); + } + } +} diff --git a/src/HSTrackerService/Services/DeptService.cs b/src/HSTrackerService/Services/DeptService.cs new file mode 100644 index 0000000..3b8cee9 --- /dev/null +++ b/src/HSTrackerService/Services/DeptService.cs @@ -0,0 +1,53 @@ +using HSTrackerData.Infrastructure; +using HSTrackerData.Repositories.Interface; +using HSTrackerModel.Models; +using HSTrackerService.Interface; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HSTrackerService.Services +{ + public class DeptService : IDeptService + { + private readonly IDeptRepository deptRepository; + private readonly IUnitOfWork unitOfWork; + public DeptService(IDeptRepository deptRepository, IUnitOfWork unitOfWork) + { + this.deptRepository = deptRepository; + this.unitOfWork = unitOfWork; + } + + public void CreateDept(Dept dept) + { + deptRepository.Add(dept); + } + + public void DeleteDept(Dept dept) + { + deptRepository.Delete(dept); + } + + public void EditDept(Dept dept) + { + deptRepository.Update(dept); + } + + public IEnumerable GetAllDept() + { + return deptRepository.GetAll(); + } + + public Dept GetDept(int? id) + { + return deptRepository.GetById(id); + } + + public void SaveDept() + { + unitOfWork.Commit(); + } + } +} diff --git a/src/HSTrackerService/Services/DesignationService.cs b/src/HSTrackerService/Services/DesignationService.cs new file mode 100644 index 0000000..287fb47 --- /dev/null +++ b/src/HSTrackerService/Services/DesignationService.cs @@ -0,0 +1,52 @@ +using HSTrackerService.Interface; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using HSTrackerModel.Models; +using HSTrackerData.Repositories.Interface; +using HSTrackerData.Infrastructure; + +namespace HSTrackerService.Services +{ + public class DesignationService : IDesignationService + { + private readonly IDesignationRepository designationRepository; + private readonly IUnitOfWork unitOfWork; + public DesignationService(IDesignationRepository designationRepository, IUnitOfWork unitOfWork) + { + this.designationRepository = designationRepository; + this.unitOfWork = unitOfWork; + } + public void CreateDesignation(Designation designation) + { + designationRepository.Add(designation); + } + + public void DeleteDesignation(Designation designation) + { + designationRepository.Delete(designation); + } + + public void EditDesignation(Designation designation) + { + designationRepository.Update(designation); + } + + public IEnumerable GetAllDesignation() + { + return designationRepository.GetAll(); + } + + public Designation GetDesignation(int? id) + { + return designationRepository.GetById(id); + } + + public void SaveDesignation() + { + unitOfWork.Commit(); + } + } +} diff --git a/src/HSTrackerService/Services/DivisionService.cs b/src/HSTrackerService/Services/DivisionService.cs new file mode 100644 index 0000000..88ecaf4 --- /dev/null +++ b/src/HSTrackerService/Services/DivisionService.cs @@ -0,0 +1,52 @@ +using HSTrackerService.Interface; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using HSTrackerModel.Models; +using HSTrackerData.Repositories.Interface; +using HSTrackerData.Infrastructure; + +namespace HSTrackerService.Services +{ + public class DivisionService : IDivisionService + { + private readonly IDivisionRepository divisionRepository; + private readonly IUnitOfWork unitOfWork; + public DivisionService(IDivisionRepository divisionRepository, IUnitOfWork unitOfWork) + { + this.divisionRepository = divisionRepository; + this.unitOfWork = unitOfWork; + } + public void CreateDivision(Division division) + { + divisionRepository.Add(division); + } + + public void DeleteDivision(Division division) + { + divisionRepository.Delete(division); + } + + public void EditDivision(Division division) + { + divisionRepository.Update(division); + } + + public IEnumerable GetAllDivision() + { + return divisionRepository.GetAll(); + } + + public Division GetDivision(int? id) + { + return divisionRepository.GetById(id); + } + + public void SaveDivision() + { + unitOfWork.Commit(); + } + } +} diff --git a/src/HSTrackerService/Services/EmployeeService.cs b/src/HSTrackerService/Services/EmployeeService.cs new file mode 100644 index 0000000..96d0a6b --- /dev/null +++ b/src/HSTrackerService/Services/EmployeeService.cs @@ -0,0 +1,52 @@ +using HSTrackerService.Interface; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using HSTrackerModel.Models; +using HSTrackerData.Repositories.Interface; +using HSTrackerData.Infrastructure; + +namespace HSTrackerService.Services +{ + public class EmployeeService : IEmployeeService + { + private readonly IEmployeeRepository employeeRepository; + private readonly IUnitOfWork unitOfWork; + public EmployeeService(IEmployeeRepository employeeRepository, IUnitOfWork unitOfWork) + { + this.employeeRepository = employeeRepository; + this.unitOfWork = unitOfWork; + } + public void CreateEmployee(Employee employee) + { + employeeRepository.Add(employee); + } + + public void DeleteEmployee(Employee employee) + { + employeeRepository.Delete(employee); + } + + public void EditEmployee(Employee employee) + { + employeeRepository.Update(employee); + } + + public IEnumerable GetAllEmployee() + { + return employeeRepository.GetAll(); + } + + public Employee GetEmployee(int? id) + { + return employeeRepository.GetById(id); + } + + public void SaveEmployee() + { + unitOfWork.Commit(); + } + } +} diff --git a/src/HSTrackerService/Services/RequisitionService.cs b/src/HSTrackerService/Services/RequisitionService.cs new file mode 100644 index 0000000..0a11eaa --- /dev/null +++ b/src/HSTrackerService/Services/RequisitionService.cs @@ -0,0 +1,53 @@ +using HSTrackerService.Interface; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using HSTrackerModel.Models; +using HSTrackerData.Repositories.Interface; +using HSTrackerData.Infrastructure; + +namespace HSTrackerService.Services +{ + public class RequisitionService : IRequisitionService + { + private readonly IRequisitionRepository requisitionRepository; + private readonly IUnitOfWork unitOfWork; + public RequisitionService(IRequisitionRepository requisitionRepository, IUnitOfWork unitOfWork) + { + this.requisitionRepository = requisitionRepository; + this.unitOfWork = unitOfWork; + } + public void CreateRequisition(Requisition requisition) + { + requisitionRepository.Add(requisition); + } + + public void DeleteRequisition(Requisition requisition) + { + requisitionRepository.Delete(requisition); + } + + public void EditRequisition(Requisition requisition) + { + requisitionRepository.Update(requisition); + } + + public IEnumerable GetAllRequisition() + { + return requisitionRepository.GetAll(); + } + + public Requisition GetRequisition(int? id) + { + var req = requisitionRepository.GetById(id); + return req; + } + + public void SaveRequisition() + { + unitOfWork.Commit(); + } + } +} diff --git a/src/HSTrackerService/Services/StatusService.cs b/src/HSTrackerService/Services/StatusService.cs new file mode 100644 index 0000000..4403383 --- /dev/null +++ b/src/HSTrackerService/Services/StatusService.cs @@ -0,0 +1,52 @@ +using HSTrackerService.Interface; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using HSTrackerModel.Models; +using HSTrackerData.Repositories.Interface; +using HSTrackerData.Infrastructure; + +namespace HSTrackerService.Services +{ + public class StatusService : IStatusService + { + private readonly IStatusRepository statusRepository; + private readonly IUnitOfWork unitOfWork; + public StatusService(IStatusRepository statusRepository, IUnitOfWork unitOfWork) + { + this.statusRepository = statusRepository; + this.unitOfWork = unitOfWork; + } + public void CreateStatus(Status status) + { + statusRepository.Add(status); + } + + public void DeleteStatus(Status status) + { + statusRepository.Delete(status); + } + + public void EditStatus(Status status) + { + statusRepository.Update(status); + } + + public IEnumerable GetAllStatus() + { + return statusRepository.GetAll(); + } + + public Status GetStatus(int? id) + { + return statusRepository.GetById(id); + } + + public void SaveStatus() + { + unitOfWork.Commit(); + } + } +} diff --git a/src/HSTrackerService/Services/SubUnitService.cs b/src/HSTrackerService/Services/SubUnitService.cs new file mode 100644 index 0000000..7695216 --- /dev/null +++ b/src/HSTrackerService/Services/SubUnitService.cs @@ -0,0 +1,53 @@ +using HSTrackerService.Interface; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using HSTrackerModel.Models; +using HSTrackerData.Repositories.Interface; +using HSTrackerData.Infrastructure; + +namespace HSTrackerService.Services +{ + public class SubUnitService : ISubUnitService + { + private readonly ISubUnitRepository subUnitRepository; + private readonly IUnitOfWork unitOfWork; + + public SubUnitService(ISubUnitRepository subUnitRepository, IUnitOfWork unitOfWork) + { + this.subUnitRepository = subUnitRepository; + this.unitOfWork = unitOfWork; + } + public void CreateSubUnit(SubUnit subUnit) + { + subUnitRepository.Add(subUnit); + } + + public void DeleteSubUnit(SubUnit subUnit) + { + subUnitRepository.Delete(subUnit); + } + + public void EditSubUnit(SubUnit subUnit) + { + subUnitRepository.Update(subUnit); + } + + public IEnumerable GetAllSubUnit() + { + return subUnitRepository.GetAll(); + } + + public SubUnit GetSubUnit(int? id) + { + return subUnitRepository.GetById(id); + } + + public void SaveSubUnit() + { + unitOfWork.Commit(); + } + } +} diff --git a/src/RSTracker.sln b/src/RSTracker.sln new file mode 100644 index 0000000..ac40526 --- /dev/null +++ b/src/RSTracker.sln @@ -0,0 +1,40 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RSTrackerData", "HSTrackerData\RSTrackerData.csproj", "{8D70A0CB-F6A5-4A7F-8F28-7C3097CA2697}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RSTrackerService", "HSTrackerService\RSTrackerService.csproj", "{49EEB116-E3AA-4EF7-9595-C7CC2F81E219}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RSTrackerModel", "HSTrackerModel\RSTrackerModel.csproj", "{A5B729DB-9A38-4769-9859-7E0B6964AFBE}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RSTrackerWeb", "RSTracker\RSTrackerWeb.csproj", "{B50B0CE5-E14F-4896-848C-CAB1CFD08EB7}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8D70A0CB-F6A5-4A7F-8F28-7C3097CA2697}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8D70A0CB-F6A5-4A7F-8F28-7C3097CA2697}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8D70A0CB-F6A5-4A7F-8F28-7C3097CA2697}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8D70A0CB-F6A5-4A7F-8F28-7C3097CA2697}.Release|Any CPU.Build.0 = Release|Any CPU + {49EEB116-E3AA-4EF7-9595-C7CC2F81E219}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {49EEB116-E3AA-4EF7-9595-C7CC2F81E219}.Debug|Any CPU.Build.0 = Debug|Any CPU + {49EEB116-E3AA-4EF7-9595-C7CC2F81E219}.Release|Any CPU.ActiveCfg = Release|Any CPU + {49EEB116-E3AA-4EF7-9595-C7CC2F81E219}.Release|Any CPU.Build.0 = Release|Any CPU + {A5B729DB-9A38-4769-9859-7E0B6964AFBE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A5B729DB-9A38-4769-9859-7E0B6964AFBE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A5B729DB-9A38-4769-9859-7E0B6964AFBE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A5B729DB-9A38-4769-9859-7E0B6964AFBE}.Release|Any CPU.Build.0 = Release|Any CPU + {B50B0CE5-E14F-4896-848C-CAB1CFD08EB7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B50B0CE5-E14F-4896-848C-CAB1CFD08EB7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B50B0CE5-E14F-4896-848C-CAB1CFD08EB7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B50B0CE5-E14F-4896-848C-CAB1CFD08EB7}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/src/RSTracker/App_Start/Bootstrapper.cs b/src/RSTracker/App_Start/Bootstrapper.cs new file mode 100644 index 0000000..974cd47 --- /dev/null +++ b/src/RSTracker/App_Start/Bootstrapper.cs @@ -0,0 +1,44 @@ +using Autofac; +using Autofac.Integration.Mvc; +using HSTrackerData.Infrastructure; +using HSTrackerData.Repositories; +using HSTrackerService.Services; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using System.Web; +using System.Web.Mvc; + +namespace RSTracker.App_Start +{ + public static class Bootstrapper + { + public static void Run() + { + SetAutofacContainer(); + //Configure AutoMapper + // AutoMapperConfiguration.Configure(); + } + + private static void SetAutofacContainer() + { + var builder = new ContainerBuilder(); + builder.RegisterControllers(Assembly.GetExecutingAssembly()); + builder.RegisterType().As().InstancePerRequest(); + builder.RegisterType().As().InstancePerRequest(); + + // Repositories + builder.RegisterAssemblyTypes(typeof(CircularRepository).Assembly) + .Where(t => t.Name.EndsWith("Repository")) + .AsImplementedInterfaces().InstancePerRequest(); + // Services + builder.RegisterAssemblyTypes(typeof(CircularService).Assembly) + .Where(t => t.Name.EndsWith("Service")) + .AsImplementedInterfaces().InstancePerRequest(); + + IContainer container = builder.Build(); + DependencyResolver.SetResolver(new AutofacDependencyResolver(container)); + } + } +} \ No newline at end of file diff --git a/src/RSTracker/RSTracker/App_Start/BundleConfig.cs b/src/RSTracker/App_Start/BundleConfig.cs similarity index 100% rename from src/RSTracker/RSTracker/App_Start/BundleConfig.cs rename to src/RSTracker/App_Start/BundleConfig.cs diff --git a/src/RSTracker/RSTracker/App_Start/FilterConfig.cs b/src/RSTracker/App_Start/FilterConfig.cs similarity index 100% rename from src/RSTracker/RSTracker/App_Start/FilterConfig.cs rename to src/RSTracker/App_Start/FilterConfig.cs diff --git a/src/RSTracker/RSTracker/App_Start/IdentityConfig.cs b/src/RSTracker/App_Start/IdentityConfig.cs similarity index 98% rename from src/RSTracker/RSTracker/App_Start/IdentityConfig.cs rename to src/RSTracker/App_Start/IdentityConfig.cs index fb0d817..443f985 100644 --- a/src/RSTracker/RSTracker/App_Start/IdentityConfig.cs +++ b/src/RSTracker/App_Start/IdentityConfig.cs @@ -11,6 +11,7 @@ using Microsoft.Owin; using Microsoft.Owin.Security; using RSTracker.Models; +using HSTrackerData; namespace RSTracker { @@ -42,7 +43,7 @@ public ApplicationUserManager(IUserStore store) public static ApplicationUserManager Create(IdentityFactoryOptions options, IOwinContext context) { - var manager = new ApplicationUserManager(new UserStore(context.Get())); + var manager = new ApplicationUserManager(new UserStore(context.Get())); // Configure validation logic for usernames manager.UserValidator = new UserValidator(manager) { diff --git a/src/RSTracker/RSTracker/App_Start/RouteConfig.cs b/src/RSTracker/App_Start/RouteConfig.cs similarity index 100% rename from src/RSTracker/RSTracker/App_Start/RouteConfig.cs rename to src/RSTracker/App_Start/RouteConfig.cs diff --git a/src/RSTracker/RSTracker/App_Start/Startup.Auth.cs b/src/RSTracker/App_Start/Startup.Auth.cs similarity index 97% rename from src/RSTracker/RSTracker/App_Start/Startup.Auth.cs rename to src/RSTracker/App_Start/Startup.Auth.cs index 8e31cfa..fb839cc 100644 --- a/src/RSTracker/RSTracker/App_Start/Startup.Auth.cs +++ b/src/RSTracker/App_Start/Startup.Auth.cs @@ -6,6 +6,7 @@ using Microsoft.Owin.Security.Google; using Owin; using RSTracker.Models; +using HSTrackerData; namespace RSTracker { @@ -15,7 +16,7 @@ public partial class Startup public void ConfigureAuth(IAppBuilder app) { // Configure the db context, user manager and signin manager to use a single instance per request - app.CreatePerOwinContext(ApplicationDbContext.Create); + app.CreatePerOwinContext(AppDbContext.Create); app.CreatePerOwinContext(ApplicationUserManager.Create); app.CreatePerOwinContext(ApplicationSignInManager.Create); diff --git a/src/RSTracker/RSTracker/ApplicationInsights.config b/src/RSTracker/ApplicationInsights.config similarity index 100% rename from src/RSTracker/RSTracker/ApplicationInsights.config rename to src/RSTracker/ApplicationInsights.config diff --git a/src/RSTracker/RSTracker/Content/Site.css b/src/RSTracker/Content/Site.css similarity index 100% rename from src/RSTracker/RSTracker/Content/Site.css rename to src/RSTracker/Content/Site.css diff --git a/src/RSTracker/RSTracker/Content/_bootstrap-datetimepicker.less b/src/RSTracker/Content/_bootstrap-datetimepicker.less similarity index 100% rename from src/RSTracker/RSTracker/Content/_bootstrap-datetimepicker.less rename to src/RSTracker/Content/_bootstrap-datetimepicker.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap-datetimepicker-build.less b/src/RSTracker/Content/bootstrap-datetimepicker-build.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap-datetimepicker-build.less rename to src/RSTracker/Content/bootstrap-datetimepicker-build.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap-datetimepicker.css b/src/RSTracker/Content/bootstrap-datetimepicker.css similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap-datetimepicker.css rename to src/RSTracker/Content/bootstrap-datetimepicker.css diff --git a/src/RSTracker/RSTracker/Content/bootstrap-datetimepicker.min.css b/src/RSTracker/Content/bootstrap-datetimepicker.min.css similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap-datetimepicker.min.css rename to src/RSTracker/Content/bootstrap-datetimepicker.min.css diff --git a/src/RSTracker/RSTracker/Content/bootstrap-grid.css b/src/RSTracker/Content/bootstrap-grid.css similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap-grid.css rename to src/RSTracker/Content/bootstrap-grid.css diff --git a/src/RSTracker/RSTracker/Content/bootstrap-grid.css.map b/src/RSTracker/Content/bootstrap-grid.css.map similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap-grid.css.map rename to src/RSTracker/Content/bootstrap-grid.css.map diff --git a/src/RSTracker/RSTracker/Content/bootstrap-grid.min.css b/src/RSTracker/Content/bootstrap-grid.min.css similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap-grid.min.css rename to src/RSTracker/Content/bootstrap-grid.min.css diff --git a/src/RSTracker/RSTracker/Content/bootstrap-grid.min.css.map b/src/RSTracker/Content/bootstrap-grid.min.css.map similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap-grid.min.css.map rename to src/RSTracker/Content/bootstrap-grid.min.css.map diff --git a/src/RSTracker/RSTracker/Content/bootstrap-reboot.css b/src/RSTracker/Content/bootstrap-reboot.css similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap-reboot.css rename to src/RSTracker/Content/bootstrap-reboot.css diff --git a/src/RSTracker/RSTracker/Content/bootstrap-reboot.css.map b/src/RSTracker/Content/bootstrap-reboot.css.map similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap-reboot.css.map rename to src/RSTracker/Content/bootstrap-reboot.css.map diff --git a/src/RSTracker/RSTracker/Content/bootstrap-reboot.min.css b/src/RSTracker/Content/bootstrap-reboot.min.css similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap-reboot.min.css rename to src/RSTracker/Content/bootstrap-reboot.min.css diff --git a/src/RSTracker/RSTracker/Content/bootstrap-reboot.min.css.map b/src/RSTracker/Content/bootstrap-reboot.min.css.map similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap-reboot.min.css.map rename to src/RSTracker/Content/bootstrap-reboot.min.css.map diff --git a/src/RSTracker/RSTracker/Content/bootstrap.css b/src/RSTracker/Content/bootstrap.css similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap.css rename to src/RSTracker/Content/bootstrap.css diff --git a/src/RSTracker/RSTracker/Content/bootstrap.css.map b/src/RSTracker/Content/bootstrap.css.map similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap.css.map rename to src/RSTracker/Content/bootstrap.css.map diff --git a/src/RSTracker/RSTracker/Content/bootstrap.min.css b/src/RSTracker/Content/bootstrap.min.css similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap.min.css rename to src/RSTracker/Content/bootstrap.min.css diff --git a/src/RSTracker/RSTracker/Content/bootstrap.min.css.map b/src/RSTracker/Content/bootstrap.min.css.map similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap.min.css.map rename to src/RSTracker/Content/bootstrap.min.css.map diff --git a/src/RSTracker/RSTracker/Content/bootstrap/alerts.less b/src/RSTracker/Content/bootstrap/alerts.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/alerts.less rename to src/RSTracker/Content/bootstrap/alerts.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/badges.less b/src/RSTracker/Content/bootstrap/badges.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/badges.less rename to src/RSTracker/Content/bootstrap/badges.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/bootstrap.less b/src/RSTracker/Content/bootstrap/bootstrap.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/bootstrap.less rename to src/RSTracker/Content/bootstrap/bootstrap.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/breadcrumbs.less b/src/RSTracker/Content/bootstrap/breadcrumbs.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/breadcrumbs.less rename to src/RSTracker/Content/bootstrap/breadcrumbs.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/button-groups.less b/src/RSTracker/Content/bootstrap/button-groups.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/button-groups.less rename to src/RSTracker/Content/bootstrap/button-groups.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/buttons.less b/src/RSTracker/Content/bootstrap/buttons.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/buttons.less rename to src/RSTracker/Content/bootstrap/buttons.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/carousel.less b/src/RSTracker/Content/bootstrap/carousel.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/carousel.less rename to src/RSTracker/Content/bootstrap/carousel.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/close.less b/src/RSTracker/Content/bootstrap/close.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/close.less rename to src/RSTracker/Content/bootstrap/close.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/code.less b/src/RSTracker/Content/bootstrap/code.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/code.less rename to src/RSTracker/Content/bootstrap/code.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/component-animations.less b/src/RSTracker/Content/bootstrap/component-animations.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/component-animations.less rename to src/RSTracker/Content/bootstrap/component-animations.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/dropdowns.less b/src/RSTracker/Content/bootstrap/dropdowns.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/dropdowns.less rename to src/RSTracker/Content/bootstrap/dropdowns.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/forms.less b/src/RSTracker/Content/bootstrap/forms.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/forms.less rename to src/RSTracker/Content/bootstrap/forms.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/glyphicons.less b/src/RSTracker/Content/bootstrap/glyphicons.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/glyphicons.less rename to src/RSTracker/Content/bootstrap/glyphicons.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/grid.less b/src/RSTracker/Content/bootstrap/grid.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/grid.less rename to src/RSTracker/Content/bootstrap/grid.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/input-groups.less b/src/RSTracker/Content/bootstrap/input-groups.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/input-groups.less rename to src/RSTracker/Content/bootstrap/input-groups.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/jumbotron.less b/src/RSTracker/Content/bootstrap/jumbotron.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/jumbotron.less rename to src/RSTracker/Content/bootstrap/jumbotron.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/labels.less b/src/RSTracker/Content/bootstrap/labels.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/labels.less rename to src/RSTracker/Content/bootstrap/labels.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/list-group.less b/src/RSTracker/Content/bootstrap/list-group.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/list-group.less rename to src/RSTracker/Content/bootstrap/list-group.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/media.less b/src/RSTracker/Content/bootstrap/media.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/media.less rename to src/RSTracker/Content/bootstrap/media.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins.less b/src/RSTracker/Content/bootstrap/mixins.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins.less rename to src/RSTracker/Content/bootstrap/mixins.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/alerts.less b/src/RSTracker/Content/bootstrap/mixins/alerts.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/alerts.less rename to src/RSTracker/Content/bootstrap/mixins/alerts.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/background-variant.less b/src/RSTracker/Content/bootstrap/mixins/background-variant.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/background-variant.less rename to src/RSTracker/Content/bootstrap/mixins/background-variant.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/border-radius.less b/src/RSTracker/Content/bootstrap/mixins/border-radius.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/border-radius.less rename to src/RSTracker/Content/bootstrap/mixins/border-radius.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/buttons.less b/src/RSTracker/Content/bootstrap/mixins/buttons.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/buttons.less rename to src/RSTracker/Content/bootstrap/mixins/buttons.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/center-block.less b/src/RSTracker/Content/bootstrap/mixins/center-block.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/center-block.less rename to src/RSTracker/Content/bootstrap/mixins/center-block.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/clearfix.less b/src/RSTracker/Content/bootstrap/mixins/clearfix.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/clearfix.less rename to src/RSTracker/Content/bootstrap/mixins/clearfix.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/forms.less b/src/RSTracker/Content/bootstrap/mixins/forms.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/forms.less rename to src/RSTracker/Content/bootstrap/mixins/forms.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/gradients.less b/src/RSTracker/Content/bootstrap/mixins/gradients.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/gradients.less rename to src/RSTracker/Content/bootstrap/mixins/gradients.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/grid-framework.less b/src/RSTracker/Content/bootstrap/mixins/grid-framework.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/grid-framework.less rename to src/RSTracker/Content/bootstrap/mixins/grid-framework.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/grid.less b/src/RSTracker/Content/bootstrap/mixins/grid.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/grid.less rename to src/RSTracker/Content/bootstrap/mixins/grid.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/hide-text.less b/src/RSTracker/Content/bootstrap/mixins/hide-text.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/hide-text.less rename to src/RSTracker/Content/bootstrap/mixins/hide-text.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/image.less b/src/RSTracker/Content/bootstrap/mixins/image.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/image.less rename to src/RSTracker/Content/bootstrap/mixins/image.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/labels.less b/src/RSTracker/Content/bootstrap/mixins/labels.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/labels.less rename to src/RSTracker/Content/bootstrap/mixins/labels.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/list-group.less b/src/RSTracker/Content/bootstrap/mixins/list-group.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/list-group.less rename to src/RSTracker/Content/bootstrap/mixins/list-group.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/nav-divider.less b/src/RSTracker/Content/bootstrap/mixins/nav-divider.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/nav-divider.less rename to src/RSTracker/Content/bootstrap/mixins/nav-divider.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/nav-vertical-align.less b/src/RSTracker/Content/bootstrap/mixins/nav-vertical-align.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/nav-vertical-align.less rename to src/RSTracker/Content/bootstrap/mixins/nav-vertical-align.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/opacity.less b/src/RSTracker/Content/bootstrap/mixins/opacity.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/opacity.less rename to src/RSTracker/Content/bootstrap/mixins/opacity.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/pagination.less b/src/RSTracker/Content/bootstrap/mixins/pagination.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/pagination.less rename to src/RSTracker/Content/bootstrap/mixins/pagination.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/panels.less b/src/RSTracker/Content/bootstrap/mixins/panels.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/panels.less rename to src/RSTracker/Content/bootstrap/mixins/panels.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/progress-bar.less b/src/RSTracker/Content/bootstrap/mixins/progress-bar.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/progress-bar.less rename to src/RSTracker/Content/bootstrap/mixins/progress-bar.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/reset-filter.less b/src/RSTracker/Content/bootstrap/mixins/reset-filter.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/reset-filter.less rename to src/RSTracker/Content/bootstrap/mixins/reset-filter.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/reset-text.less b/src/RSTracker/Content/bootstrap/mixins/reset-text.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/reset-text.less rename to src/RSTracker/Content/bootstrap/mixins/reset-text.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/resize.less b/src/RSTracker/Content/bootstrap/mixins/resize.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/resize.less rename to src/RSTracker/Content/bootstrap/mixins/resize.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/responsive-visibility.less b/src/RSTracker/Content/bootstrap/mixins/responsive-visibility.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/responsive-visibility.less rename to src/RSTracker/Content/bootstrap/mixins/responsive-visibility.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/size.less b/src/RSTracker/Content/bootstrap/mixins/size.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/size.less rename to src/RSTracker/Content/bootstrap/mixins/size.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/tab-focus.less b/src/RSTracker/Content/bootstrap/mixins/tab-focus.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/tab-focus.less rename to src/RSTracker/Content/bootstrap/mixins/tab-focus.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/table-row.less b/src/RSTracker/Content/bootstrap/mixins/table-row.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/table-row.less rename to src/RSTracker/Content/bootstrap/mixins/table-row.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/text-emphasis.less b/src/RSTracker/Content/bootstrap/mixins/text-emphasis.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/text-emphasis.less rename to src/RSTracker/Content/bootstrap/mixins/text-emphasis.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/text-overflow.less b/src/RSTracker/Content/bootstrap/mixins/text-overflow.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/text-overflow.less rename to src/RSTracker/Content/bootstrap/mixins/text-overflow.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/mixins/vendor-prefixes.less b/src/RSTracker/Content/bootstrap/mixins/vendor-prefixes.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/mixins/vendor-prefixes.less rename to src/RSTracker/Content/bootstrap/mixins/vendor-prefixes.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/modals.less b/src/RSTracker/Content/bootstrap/modals.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/modals.less rename to src/RSTracker/Content/bootstrap/modals.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/navbar.less b/src/RSTracker/Content/bootstrap/navbar.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/navbar.less rename to src/RSTracker/Content/bootstrap/navbar.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/navs.less b/src/RSTracker/Content/bootstrap/navs.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/navs.less rename to src/RSTracker/Content/bootstrap/navs.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/normalize.less b/src/RSTracker/Content/bootstrap/normalize.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/normalize.less rename to src/RSTracker/Content/bootstrap/normalize.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/pager.less b/src/RSTracker/Content/bootstrap/pager.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/pager.less rename to src/RSTracker/Content/bootstrap/pager.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/pagination.less b/src/RSTracker/Content/bootstrap/pagination.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/pagination.less rename to src/RSTracker/Content/bootstrap/pagination.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/panels.less b/src/RSTracker/Content/bootstrap/panels.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/panels.less rename to src/RSTracker/Content/bootstrap/panels.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/popovers.less b/src/RSTracker/Content/bootstrap/popovers.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/popovers.less rename to src/RSTracker/Content/bootstrap/popovers.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/print.less b/src/RSTracker/Content/bootstrap/print.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/print.less rename to src/RSTracker/Content/bootstrap/print.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/progress-bars.less b/src/RSTracker/Content/bootstrap/progress-bars.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/progress-bars.less rename to src/RSTracker/Content/bootstrap/progress-bars.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/responsive-embed.less b/src/RSTracker/Content/bootstrap/responsive-embed.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/responsive-embed.less rename to src/RSTracker/Content/bootstrap/responsive-embed.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/responsive-utilities.less b/src/RSTracker/Content/bootstrap/responsive-utilities.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/responsive-utilities.less rename to src/RSTracker/Content/bootstrap/responsive-utilities.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/scaffolding.less b/src/RSTracker/Content/bootstrap/scaffolding.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/scaffolding.less rename to src/RSTracker/Content/bootstrap/scaffolding.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/tables.less b/src/RSTracker/Content/bootstrap/tables.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/tables.less rename to src/RSTracker/Content/bootstrap/tables.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/theme.less b/src/RSTracker/Content/bootstrap/theme.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/theme.less rename to src/RSTracker/Content/bootstrap/theme.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/thumbnails.less b/src/RSTracker/Content/bootstrap/thumbnails.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/thumbnails.less rename to src/RSTracker/Content/bootstrap/thumbnails.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/tooltip.less b/src/RSTracker/Content/bootstrap/tooltip.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/tooltip.less rename to src/RSTracker/Content/bootstrap/tooltip.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/type.less b/src/RSTracker/Content/bootstrap/type.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/type.less rename to src/RSTracker/Content/bootstrap/type.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/utilities.less b/src/RSTracker/Content/bootstrap/utilities.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/utilities.less rename to src/RSTracker/Content/bootstrap/utilities.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/variables.less b/src/RSTracker/Content/bootstrap/variables.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/variables.less rename to src/RSTracker/Content/bootstrap/variables.less diff --git a/src/RSTracker/RSTracker/Content/bootstrap/wells.less b/src/RSTracker/Content/bootstrap/wells.less similarity index 100% rename from src/RSTracker/RSTracker/Content/bootstrap/wells.less rename to src/RSTracker/Content/bootstrap/wells.less diff --git a/src/RSTracker/RSTracker/Content/fonts/glyphicons-halflings-regular.eot b/src/RSTracker/Content/fonts/glyphicons-halflings-regular.eot similarity index 100% rename from src/RSTracker/RSTracker/Content/fonts/glyphicons-halflings-regular.eot rename to src/RSTracker/Content/fonts/glyphicons-halflings-regular.eot diff --git a/src/RSTracker/RSTracker/Content/fonts/glyphicons-halflings-regular.svg b/src/RSTracker/Content/fonts/glyphicons-halflings-regular.svg similarity index 100% rename from src/RSTracker/RSTracker/Content/fonts/glyphicons-halflings-regular.svg rename to src/RSTracker/Content/fonts/glyphicons-halflings-regular.svg diff --git a/src/RSTracker/RSTracker/Content/fonts/glyphicons-halflings-regular.ttf b/src/RSTracker/Content/fonts/glyphicons-halflings-regular.ttf similarity index 100% rename from src/RSTracker/RSTracker/Content/fonts/glyphicons-halflings-regular.ttf rename to src/RSTracker/Content/fonts/glyphicons-halflings-regular.ttf diff --git a/src/RSTracker/RSTracker/Content/fonts/glyphicons-halflings-regular.woff b/src/RSTracker/Content/fonts/glyphicons-halflings-regular.woff similarity index 100% rename from src/RSTracker/RSTracker/Content/fonts/glyphicons-halflings-regular.woff rename to src/RSTracker/Content/fonts/glyphicons-halflings-regular.woff diff --git a/src/RSTracker/RSTracker/Content/fonts/glyphicons-halflings-regular.woff2 b/src/RSTracker/Content/fonts/glyphicons-halflings-regular.woff2 similarity index 100% rename from src/RSTracker/RSTracker/Content/fonts/glyphicons-halflings-regular.woff2 rename to src/RSTracker/Content/fonts/glyphicons-halflings-regular.woff2 diff --git a/src/RSTracker/RSTracker/Controllers/AccountController.cs b/src/RSTracker/Controllers/AccountController.cs similarity index 99% rename from src/RSTracker/RSTracker/Controllers/AccountController.cs rename to src/RSTracker/Controllers/AccountController.cs index 8da1192..2e7f4af 100644 --- a/src/RSTracker/RSTracker/Controllers/AccountController.cs +++ b/src/RSTracker/Controllers/AccountController.cs @@ -10,6 +10,7 @@ using Microsoft.Owin.Security; using RSTracker.Models; + namespace RSTracker.Controllers { [Authorize] diff --git a/src/RSTracker/RSTracker/Controllers/CircularsController.cs b/src/RSTracker/Controllers/CircularsController.cs similarity index 64% rename from src/RSTracker/RSTracker/Controllers/CircularsController.cs rename to src/RSTracker/Controllers/CircularsController.cs index f2a8d40..8346473 100644 --- a/src/RSTracker/RSTracker/Controllers/CircularsController.cs +++ b/src/RSTracker/Controllers/CircularsController.cs @@ -7,28 +7,28 @@ using System.Web; using System.Web.Mvc; using RSTracker.Models; +using HSTrackerModel.Models; +using HSTrackerService.Interface; namespace RSTracker.Controllers { [Authorize()] public class CircularsController : Controller { - private ApplicationDbContext db = new ApplicationDbContext(); + private readonly ICircularService circularService; + private readonly IRequisitionService requisitionService; + public CircularsController(IRequisitionService requisitionService, ICircularService circularService) + { + this.circularService = circularService; + this.requisitionService = requisitionService; + } // GET: Circulars public ActionResult Index(int? requisitionId) { - List circular = new List(); + var circular = circularService.GetAllCircular(requisitionId); - if (requisitionId != null) - { - circular = db.Circular.Include(c => c.Requisition).Where(p=>p.RequisitionId == requisitionId).ToList(); - } - else - { - circular = db.Circular.Include(c => c.Requisition).ToList(); - } - return View(circular.ToList()); + return View(circular); } // GET: Circulars/Details/5 @@ -38,7 +38,8 @@ public ActionResult Details(int? id) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } - Circular circular = db.Circular.Find(id); + + var circular = circularService.GetCircular(id); if (circular == null) { return HttpNotFound(); @@ -49,7 +50,7 @@ public ActionResult Details(int? id) // GET: Circulars/Create public ActionResult Create() { - ViewBag.RequisitionId = new SelectList(db.Requisitions, "Id", "RefNo"); + ViewBag.RequisitionId = new SelectList(requisitionService.GetAllRequisition(), "Id", "RefNo"); return View(); } @@ -62,12 +63,12 @@ public ActionResult Create(Circular circular) { if (ModelState.IsValid) { - db.Circular.Add(circular); - db.SaveChanges(); + circularService.CreateCircular(circular); + circularService.SaveCircular(); return RedirectToAction("Index"); } - ViewBag.RequisitionId = new SelectList(db.Requisitions, "Id", "RefNo", circular.RequisitionId); + ViewBag.RequisitionId = new SelectList(requisitionService.GetAllRequisition(), "Id", "RefNo", circular.RequisitionId); return View(circular); } @@ -78,12 +79,12 @@ public ActionResult Edit(int? id) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } - Circular circular = db.Circular.Find(id); + Circular circular = circularService.GetCircular(id); if (circular == null) { return HttpNotFound(); } - ViewBag.RequisitionId = new SelectList(db.Requisitions, "Id", "RefNo", circular.RequisitionId); + ViewBag.RequisitionId = new SelectList(requisitionService.GetAllRequisition(), "Id", "RefNo", circular.RequisitionId); return View(circular); } @@ -96,11 +97,11 @@ public ActionResult Edit(Circular circular) { if (ModelState.IsValid) { - db.Entry(circular).State = EntityState.Modified; - db.SaveChanges(); + circularService.EditCircular(circular); + circularService.SaveCircular(); return RedirectToAction("Index"); } - ViewBag.RequisitionId = new SelectList(db.Requisitions, "Id", "RefNo", circular.RequisitionId); + ViewBag.RequisitionId = new SelectList(requisitionService.GetAllRequisition(), "Id", "RefNo", circular.RequisitionId); return View(circular); } @@ -111,7 +112,7 @@ public ActionResult Delete(int? id) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } - Circular circular = db.Circular.Find(id); + Circular circular = circularService.GetCircular(id); if (circular == null) { return HttpNotFound(); @@ -124,19 +125,11 @@ public ActionResult Delete(int? id) [ValidateAntiForgeryToken] public ActionResult DeleteConfirmed(int id) { - Circular circular = db.Circular.Find(id); - db.Circular.Remove(circular); - db.SaveChanges(); + Circular circular = circularService.GetCircular(id); + circularService.DeleteCircular(circular); + circularService.SaveCircular(); return RedirectToAction("Index"); } - protected override void Dispose(bool disposing) - { - if (disposing) - { - db.Dispose(); - } - base.Dispose(disposing); - } } } diff --git a/src/RSTracker/RSTracker/Controllers/DeptsController.cs b/src/RSTracker/Controllers/DeptsController.cs similarity index 69% rename from src/RSTracker/RSTracker/Controllers/DeptsController.cs rename to src/RSTracker/Controllers/DeptsController.cs index 4ecf893..719bc5c 100644 --- a/src/RSTracker/RSTracker/Controllers/DeptsController.cs +++ b/src/RSTracker/Controllers/DeptsController.cs @@ -7,18 +7,26 @@ using System.Web; using System.Web.Mvc; using RSTracker.Models; +using HSTrackerModel.Models; +using HSTrackerService.Interface; namespace RSTracker.Controllers { [Authorize()] public class DeptsController : Controller { - private ApplicationDbContext db = new ApplicationDbContext(); + private readonly IDeptService deptService; + private readonly IDivisionService divisionService; + public DeptsController(IDeptService deptService, IDivisionService divisionService) + { + this.deptService = deptService; + this.divisionService = divisionService; + } // GET: Depts public ActionResult Index() { - var dept = db.Dept.Include(d => d.Division); + var dept = deptService.GetAllDept(); return View(dept.ToList()); } @@ -29,7 +37,7 @@ public ActionResult Details(int? id) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } - Dept dept = db.Dept.Find(id); + Dept dept = deptService.GetDept(id); if (dept == null) { return HttpNotFound(); @@ -40,7 +48,7 @@ public ActionResult Details(int? id) // GET: Depts/Create public ActionResult Create() { - ViewBag.DivisionId = new SelectList(db.Division, "Id", "Name"); + ViewBag.DivisionId = new SelectList(divisionService.GetAllDivision(), "Id", "Name"); return View(); } @@ -53,12 +61,12 @@ public ActionResult Create([Bind(Include = "Id,Name,DivisionId")] Dept dept) { if (ModelState.IsValid) { - db.Dept.Add(dept); - db.SaveChanges(); + deptService.CreateDept(dept); + deptService.SaveDept(); return RedirectToAction("Index"); } - ViewBag.DivisionId = new SelectList(db.Division, "Id", "Name", dept.DivisionId); + ViewBag.DivisionId = new SelectList(divisionService.GetAllDivision(), "Id", "Name", dept.DivisionId); return View(dept); } @@ -69,12 +77,12 @@ public ActionResult Edit(int? id) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } - Dept dept = db.Dept.Find(id); + Dept dept = deptService.GetDept(id); if (dept == null) { return HttpNotFound(); } - ViewBag.DivisionId = new SelectList(db.Division, "Id", "Name", dept.DivisionId); + ViewBag.DivisionId = new SelectList(divisionService.GetAllDivision(), "Id", "Name", dept.DivisionId); return View(dept); } @@ -87,11 +95,11 @@ public ActionResult Edit([Bind(Include = "Id,Name,DivisionId")] Dept dept) { if (ModelState.IsValid) { - db.Entry(dept).State = EntityState.Modified; - db.SaveChanges(); + deptService.EditDept(dept); + deptService.SaveDept(); return RedirectToAction("Index"); } - ViewBag.DivisionId = new SelectList(db.Division, "Id", "Name", dept.DivisionId); + ViewBag.DivisionId = new SelectList(divisionService.GetAllDivision(), "Id", "Name", dept.DivisionId); return View(dept); } @@ -102,7 +110,7 @@ public ActionResult Delete(int? id) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } - Dept dept = db.Dept.Find(id); + Dept dept = deptService.GetDept(id); if (dept == null) { return HttpNotFound(); @@ -115,19 +123,11 @@ public ActionResult Delete(int? id) [ValidateAntiForgeryToken] public ActionResult DeleteConfirmed(int id) { - Dept dept = db.Dept.Find(id); - db.Dept.Remove(dept); - db.SaveChanges(); + Dept dept = deptService.GetDept(id); + deptService.DeleteDept(dept); + deptService.SaveDept(); return RedirectToAction("Index"); } - protected override void Dispose(bool disposing) - { - if (disposing) - { - db.Dispose(); - } - base.Dispose(disposing); - } } } diff --git a/src/RSTracker/RSTracker/Controllers/DesignationsController.cs b/src/RSTracker/Controllers/DesignationsController.cs similarity index 65% rename from src/RSTracker/RSTracker/Controllers/DesignationsController.cs rename to src/RSTracker/Controllers/DesignationsController.cs index f91ff72..0d3e002 100644 --- a/src/RSTracker/RSTracker/Controllers/DesignationsController.cs +++ b/src/RSTracker/Controllers/DesignationsController.cs @@ -7,18 +7,26 @@ using System.Web; using System.Web.Mvc; using RSTracker.Models; +using HSTrackerModel.Models; +using HSTrackerService.Interface; namespace RSTracker.Controllers { [Authorize()] public class DesignationsController : Controller { - private ApplicationDbContext db = new ApplicationDbContext(); + private readonly IDesignationService designationService; + private readonly IDivisionService divisionService; + public DesignationsController(IDesignationService designationService, IDivisionService divisionService) + { + this.designationService = designationService; + this.divisionService = divisionService; + } // GET: Designations public ActionResult Index() { - var designation = db.Designation.Include(d => d.Division); + var designation = designationService.GetAllDesignation(); return View(designation.ToList()); } @@ -29,7 +37,7 @@ public ActionResult Details(int? id) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } - Designation designation = db.Designation.Find(id); + Designation designation = designationService.GetDesignation(id); if (designation == null) { return HttpNotFound(); @@ -40,7 +48,7 @@ public ActionResult Details(int? id) // GET: Designations/Create public ActionResult Create() { - ViewBag.DivisionId = new SelectList(db.Division, "Id", "Name"); + ViewBag.DivisionId = new SelectList(divisionService.GetAllDivision(), "Id", "Name"); return View(); } @@ -53,12 +61,12 @@ public ActionResult Create([Bind(Include = "Id,Name,DivisionId")] Designation de { if (ModelState.IsValid) { - db.Designation.Add(designation); - db.SaveChanges(); + designationService.CreateDesignation(designation); + designationService.SaveDesignation(); return RedirectToAction("Index"); } - ViewBag.DivisionId = new SelectList(db.Division, "Id", "Name", designation.DivisionId); + ViewBag.DivisionId = new SelectList(divisionService.GetAllDivision(), "Id", "Name", designation.DivisionId); return View(designation); } @@ -69,12 +77,12 @@ public ActionResult Edit(int? id) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } - Designation designation = db.Designation.Find(id); + Designation designation = designationService.GetDesignation(id); if (designation == null) { return HttpNotFound(); } - ViewBag.DivisionId = new SelectList(db.Division, "Id", "Name", designation.DivisionId); + ViewBag.DivisionId = new SelectList(divisionService.GetAllDivision(), "Id", "Name", designation.DivisionId); return View(designation); } @@ -87,11 +95,11 @@ public ActionResult Edit([Bind(Include = "Id,Name,DivisionId")] Designation desi { if (ModelState.IsValid) { - db.Entry(designation).State = EntityState.Modified; - db.SaveChanges(); + designationService.EditDesignation(designation); + designationService.SaveDesignation(); return RedirectToAction("Index"); } - ViewBag.DivisionId = new SelectList(db.Division, "Id", "Name", designation.DivisionId); + ViewBag.DivisionId = new SelectList(divisionService.GetAllDivision(), "Id", "Name", designation.DivisionId); return View(designation); } @@ -102,7 +110,7 @@ public ActionResult Delete(int? id) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } - Designation designation = db.Designation.Find(id); + Designation designation = designationService.GetDesignation(id); if (designation == null) { return HttpNotFound(); @@ -115,19 +123,11 @@ public ActionResult Delete(int? id) [ValidateAntiForgeryToken] public ActionResult DeleteConfirmed(int id) { - Designation designation = db.Designation.Find(id); - db.Designation.Remove(designation); - db.SaveChanges(); + Designation designation = designationService.GetDesignation(id); + designationService.DeleteDesignation(designation); + designationService.SaveDesignation(); return RedirectToAction("Index"); } - protected override void Dispose(bool disposing) - { - if (disposing) - { - db.Dispose(); - } - base.Dispose(disposing); - } } } diff --git a/src/RSTracker/RSTracker/Controllers/DivisionsController.cs b/src/RSTracker/Controllers/DivisionsController.cs similarity index 77% rename from src/RSTracker/RSTracker/Controllers/DivisionsController.cs rename to src/RSTracker/Controllers/DivisionsController.cs index c79996d..a5c683d 100644 --- a/src/RSTracker/RSTracker/Controllers/DivisionsController.cs +++ b/src/RSTracker/Controllers/DivisionsController.cs @@ -7,18 +7,23 @@ using System.Web; using System.Web.Mvc; using RSTracker.Models; +using HSTrackerService.Interface; +using HSTrackerModel.Models; namespace RSTracker.Controllers { [Authorize()] public class DivisionsController : Controller { - private ApplicationDbContext db = new ApplicationDbContext(); - + private readonly IDivisionService divisionService; + public DivisionsController(IDivisionService divisionService) + { + this.divisionService = divisionService; + } // GET: Divisions public ActionResult Index() { - return View(db.Division.ToList()); + return View(divisionService.GetAllDivision()); } // GET: Divisions/Details/5 @@ -28,7 +33,7 @@ public ActionResult Details(int? id) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } - Division division = db.Division.Find(id); + Division division = divisionService.GetDivision(id); if (division == null) { return HttpNotFound(); @@ -51,8 +56,8 @@ public ActionResult Create([Bind(Include = "Id,Name")] Division division) { if (ModelState.IsValid) { - db.Division.Add(division); - db.SaveChanges(); + divisionService.CreateDivision(division); + divisionService.SaveDivision(); return RedirectToAction("Index"); } @@ -66,7 +71,7 @@ public ActionResult Edit(int? id) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } - Division division = db.Division.Find(id); + Division division = divisionService.GetDivision(id); if (division == null) { return HttpNotFound(); @@ -83,8 +88,8 @@ public ActionResult Edit([Bind(Include = "Id,Name")] Division division) { if (ModelState.IsValid) { - db.Entry(division).State = EntityState.Modified; - db.SaveChanges(); + divisionService.EditDivision(division); + divisionService.SaveDivision(); return RedirectToAction("Index"); } return View(division); @@ -97,7 +102,7 @@ public ActionResult Delete(int? id) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } - Division division = db.Division.Find(id); + Division division = divisionService.GetDivision(id); if (division == null) { return HttpNotFound(); @@ -110,19 +115,11 @@ public ActionResult Delete(int? id) [ValidateAntiForgeryToken] public ActionResult DeleteConfirmed(int id) { - Division division = db.Division.Find(id); - db.Division.Remove(division); - db.SaveChanges(); + Division division = divisionService.GetDivision(id); + divisionService.DeleteDivision(division); + divisionService.SaveDivision(); return RedirectToAction("Index"); } - protected override void Dispose(bool disposing) - { - if (disposing) - { - db.Dispose(); - } - base.Dispose(disposing); - } } } diff --git a/src/RSTracker/Controllers/EmployeesController.cs b/src/RSTracker/Controllers/EmployeesController.cs new file mode 100644 index 0000000..a5c9acd --- /dev/null +++ b/src/RSTracker/Controllers/EmployeesController.cs @@ -0,0 +1,157 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.Entity; +using System.Linq; +using System.Net; +using System.Web; +using System.Web.Mvc; +using RSTracker.Models; +using HSTrackerService.Interface; +using HSTrackerModel.Models; + +namespace RSTracker.Controllers +{ + [Authorize()] + public class EmployeesController : Controller + { + private readonly IEmployeeService employeeService; + private readonly ISubUnitService subUnitService; + private readonly IDivisionService divisionService; + private readonly IDesignationService designationService; + private readonly IDeptService deptService; + public EmployeesController( + IEmployeeService employeeService, + ISubUnitService subUnitService, + IDivisionService divisionService, + IDesignationService designationService, + IDeptService deptService + ) + { + this.employeeService = employeeService; + this.subUnitService = subUnitService; + this.divisionService = divisionService; + this.designationService = designationService; + this.deptService = deptService; + } + + // GET: Employees + public ActionResult Index() + { + var employee = employeeService.GetAllEmployee(); + return View(employee.ToList()); + } + + // GET: Employees/Details/5 + public ActionResult Details(int? id) + { + if (id == null) + { + return new HttpStatusCodeResult(HttpStatusCode.BadRequest); + } + Employee employee = employeeService.GetEmployee(id); + if (employee == null) + { + return HttpNotFound(); + } + return View(employee); + } + + // GET: Employees/Create + public ActionResult Create() + { + ViewBag.DeptId = new SelectList(deptService.GetAllDept(), "Id", "Name"); + ViewBag.DesignationId = new SelectList(designationService.GetAllDesignation(), "Id", "Name"); + ViewBag.DivisionId = new SelectList(divisionService.GetAllDivision(), "Id", "Name"); + ViewBag.SubUnitId = new SelectList(subUnitService.GetAllSubUnit(), "Id", "Name"); + return View(); + } + + // POST: Employees/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public ActionResult Create([Bind(Include = "Id,Name,DesignationId,DeptId,DivisionId,SubUnitId")] Employee employee) + { + if (ModelState.IsValid) + { + employeeService.CreateEmployee(employee); + employeeService.SaveEmployee(); + return RedirectToAction("Index"); + } + + ViewBag.DeptId = new SelectList(deptService.GetAllDept(), "Id", "Name"); + ViewBag.DesignationId = new SelectList(designationService.GetAllDesignation(), "Id", "Name"); + ViewBag.DivisionId = new SelectList(divisionService.GetAllDivision(), "Id", "Name"); + ViewBag.SubUnitId = new SelectList(subUnitService.GetAllSubUnit(), "Id", "Name"); + return View(employee); + } + + // GET: Employees/Edit/5 + public ActionResult Edit(int? id) + { + if (id == null) + { + return new HttpStatusCodeResult(HttpStatusCode.BadRequest); + } + Employee employee = employeeService.GetEmployee(id); + if (employee == null) + { + return HttpNotFound(); + } + ViewBag.DeptId = new SelectList(deptService.GetAllDept(), "Id", "Name"); + ViewBag.DesignationId = new SelectList(designationService.GetAllDesignation(), "Id", "Name"); + ViewBag.DivisionId = new SelectList(divisionService.GetAllDivision(), "Id", "Name"); + ViewBag.SubUnitId = new SelectList(subUnitService.GetAllSubUnit(), "Id", "Name"); + return View(employee); + } + + // POST: Employees/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public ActionResult Edit([Bind(Include = "Id,Name,DesignationId,DeptId,DivisionId,SubUnitId")] Employee employee) + { + if (ModelState.IsValid) + { + employeeService.EditEmployee(employee); + employeeService.SaveEmployee(); + return RedirectToAction("Index"); + } + ViewBag.DeptId = new SelectList(deptService.GetAllDept(), "Id", "Name", employee.DeptId); + ViewBag.DesignationId = new SelectList(designationService.GetAllDesignation(), "Id", "Name", employee.DesignationId); + ViewBag.DivisionId = new SelectList(divisionService.GetAllDivision(), "Id", "Name", employee.DivisionId); + ViewBag.SubUnitId = new SelectList(subUnitService.GetAllSubUnit(), "Id", "Name", employee.SubUnitId); + return View(employee); + } + + // GET: Employees/Delete/5 + public ActionResult Delete(int? id) + { + if (id == null) + { + return new HttpStatusCodeResult(HttpStatusCode.BadRequest); + } + Employee employee = employeeService.GetEmployee(id); + if (employee == null) + { + return HttpNotFound(); + } + return View(employee); + } + + // POST: Employees/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public ActionResult DeleteConfirmed(int id) + { + Employee employee = employeeService.GetEmployee(id); + employeeService.DeleteEmployee(employee); + employeeService.SaveEmployee(); + return RedirectToAction("Index"); + } + + } +} diff --git a/src/RSTracker/RSTracker/Controllers/HomeController.cs b/src/RSTracker/Controllers/HomeController.cs similarity index 71% rename from src/RSTracker/RSTracker/Controllers/HomeController.cs rename to src/RSTracker/Controllers/HomeController.cs index c0a81d7..1127272 100644 --- a/src/RSTracker/RSTracker/Controllers/HomeController.cs +++ b/src/RSTracker/Controllers/HomeController.cs @@ -1,4 +1,5 @@ -using RSTracker.Models; +using HSTrackerService.Interface; +using RSTracker.Models; using System; using System.Collections.Generic; using System.Linq; @@ -10,10 +11,14 @@ namespace RSTracker.Controllers [Authorize()] public class HomeController : Controller { - private ApplicationDbContext db = new ApplicationDbContext(); + private readonly IRequisitionService requisitionService; + public HomeController(IRequisitionService requisitionService) + { + this.requisitionService = requisitionService; + } public ActionResult Index() { - var requisitions = db.Requisitions.ToList(); + var requisitions = requisitionService.GetAllRequisition(); //.Include(r => r.Dep).Include(r => r.Designation).Include(r => r.Div).Include(r => r.Emp).Include(r => r.Employee).Include(r => r.Stat).Include(r => r.SubUni); return View(requisitions.Where(p => p.StatusId !=3).OrderBy(p => p.RequisitionDate).ToList()); } diff --git a/src/RSTracker/RSTracker/Controllers/ManageController.cs b/src/RSTracker/Controllers/ManageController.cs similarity index 100% rename from src/RSTracker/RSTracker/Controllers/ManageController.cs rename to src/RSTracker/Controllers/ManageController.cs diff --git a/src/RSTracker/Controllers/RequisitionsController.cs b/src/RSTracker/Controllers/RequisitionsController.cs new file mode 100644 index 0000000..42137ec --- /dev/null +++ b/src/RSTracker/Controllers/RequisitionsController.cs @@ -0,0 +1,212 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.Entity; +using System.Linq; +using System.Net; +using System.Web; +using System.Web.Mvc; +using RSTracker.Models; +using RSTracker.Utility; +using HSTrackerService.Interface; +using HSTrackerModel.Models; + +namespace RSTracker.Controllers +{ + [Authorize()] + public class RequisitionsController : Controller + { + private readonly IRequisitionService requisitionService; + private readonly IEmployeeService employeeService; + private readonly ISubUnitService subUnitService; + private readonly IDivisionService divisionService; + private readonly IDesignationService designationService; + private readonly IDeptService deptService; + private readonly IStatusService statusService; + public RequisitionsController( + IRequisitionService requisitionService, + IEmployeeService employeeService, + ISubUnitService subUnitService, + IDivisionService divisionService, + IDesignationService designationService, + IDeptService deptService, + IStatusService statusService + ) + { + this.requisitionService = requisitionService; + this.employeeService = employeeService; + this.subUnitService = subUnitService; + this.divisionService = divisionService; + this.designationService = designationService; + this.deptService = deptService; + this.statusService = statusService; + } + // GET: Requisitions + public ActionResult Index() + { + //var requisitions = db.Requisitions.Include(r => r.Dept).Include(r => r.Designation).Include(r => r.Division).Include(r => r.RequiredByEmp).Include(r => r.Employee).Include(r => r.Status).Include(r => r.SubUnit); + var requisitions = requisitionService.GetAllRequisition(); + return View(requisitions.Where(p=>p.StatusId != 3).OrderBy(p=>p.RequisitionDate).ToList()); + } + + // GET: Requisitions/Details/5 + public ActionResult Details(int? id) + { + if (id == null) + { + return new HttpStatusCodeResult(HttpStatusCode.BadRequest); + } + + Requisition requisition = requisitionService.GetRequisition(id); + int vacancyTypeId = requisition.VacancyTypeId ?? 0; + requisition.VacancyTypeName = VacancyType.GetVacancyType(vacancyTypeId); + + if (requisition == null) + { + return HttpNotFound(); + } + return View(requisition); + } + + // GET: Requisitions/Create + public ActionResult Create() + { + ViewBag.DeptId = new SelectList(deptService.GetAllDept(), "Id", "Name"); + ViewBag.Position = new SelectList(designationService.GetAllDesignation(), "Id", "Name"); + ViewBag.DivisionId = new SelectList(divisionService.GetAllDivision(), "Id", "Name"); + ViewBag.RequiredBy = new SelectList(employeeService.GetAllEmployee(), "Id", "Name"); + ViewBag.RaisedBy = new SelectList(employeeService.GetAllEmployee(), "Id", "Name"); + ViewBag.StatusId = new SelectList(statusService.GetAllStatus(), "Id", "Name"); + ViewBag.SubUnitId = new SelectList(subUnitService.GetAllSubUnit(), "Id", "Name"); + + List vacancyTypeList = new List(); + vacancyTypeList.Add(new SelectListItem { Text = "New", Value = "1" }); + vacancyTypeList.Add(new SelectListItem { Text = "Replacement", Value = "2" }); + + ViewBag.VacancyTypeId = vacancyTypeList; + + return View(); + } + + // POST: Requisitions/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + //public ActionResult Create([Bind(Include = "Id,RefNo,RaisedBy,Position,Division,Dept,SubUnit,RequisitionDate,RequiredBy,VacancyType,LastWorkingDay,Status")] Requisition requisition) + public ActionResult Create(Requisition requisition) + { + if (ModelState.IsValid) + { + requisitionService.CreateRequisition(requisition); + requisitionService.SaveRequisition(); + return RedirectToAction("Index"); + } + + ViewBag.DeptId = new SelectList(deptService.GetAllDept(), "Id", "Name", requisition.Dept); + ViewBag.Position = new SelectList(designationService.GetAllDesignation(), "Id", "Name", requisition.PositionId); + ViewBag.DivisionId = new SelectList(divisionService.GetAllDivision(), "Id", "Name", requisition.Division); + ViewBag.RequiredBy = new SelectList(employeeService.GetAllEmployee(), "Id", "Name", requisition.RequiredBy); + ViewBag.RaisedBy = new SelectList(employeeService.GetAllEmployee(), "Id", "Name", requisition.RaisedBy); + ViewBag.StatusId = new SelectList(statusService.GetAllStatus(), "Id", "Name", requisition.Status); + ViewBag.SubUnitId = new SelectList(subUnitService.GetAllSubUnit(), "Id", "Name", requisition.SubUnit); + + List vacancyTypeList = new List(); + vacancyTypeList.Add(new SelectListItem { Text = "New", Value = "1" }); + vacancyTypeList.Add(new SelectListItem { Text = "Replacement", Value = "2" }); + + ViewBag.VacancyTypeId = vacancyTypeList; + + + return View(requisition); + } + + // GET: Requisitions/Edit/5 + public ActionResult Edit(int? id) + { + if (id == null) + { + return new HttpStatusCodeResult(HttpStatusCode.BadRequest); + } + Requisition requisition = requisitionService.GetRequisition(id); + if (requisition == null) + { + return HttpNotFound(); + } + ViewBag.DeptId = new SelectList(deptService.GetAllDept(), "Id", "Name", requisition.Dept); + ViewBag.PositionId = new SelectList(designationService.GetAllDesignation(), "Id", "Name", requisition.PositionId); + ViewBag.DivisionId = new SelectList(divisionService.GetAllDivision(), "Id", "Name", requisition.Division); + ViewBag.RequiredBy = new SelectList(employeeService.GetAllEmployee(), "Id", "Name", requisition.RequiredBy); + ViewBag.RaisedBy = new SelectList(employeeService.GetAllEmployee(), "Id", "Name", requisition.RaisedBy); + ViewBag.StatusId = new SelectList(statusService.GetAllStatus(), "Id", "Name", requisition.Status); + ViewBag.SubUnitId = new SelectList(subUnitService.GetAllSubUnit(), "Id", "Name", requisition.SubUnit); + + List vacancyTypeList = new List(); + vacancyTypeList.Add(new SelectListItem { Text = "New", Value = "1" }); + vacancyTypeList.Add(new SelectListItem { Text = "Replacement", Value = "2" }); + + ViewBag.VacancyTypeId = new SelectList(vacancyTypeList, "Value", "Text",requisition.VacancyTypeId); + + //ViewBag.VacancyTypeId = new SelectList(db.Division, "Id", "Name", dept.DivisionId); + //ViewBag.DivisionId = new SelectList(db.Division, "Id", "Name", dept.DivisionId); + return View(requisition); + } + + // POST: Requisitions/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public ActionResult Edit(Requisition requisition) + { + if (ModelState.IsValid) + { + requisitionService.EditRequisition(requisition); + requisitionService.SaveRequisition(); + return RedirectToAction("Index"); + } + ViewBag.Dept = new SelectList(deptService.GetAllDept(), "Id", "Name", requisition.Dept); + ViewBag.Position = new SelectList(designationService.GetAllDesignation(), "Id", "Name", requisition.PositionId); + ViewBag.Division = new SelectList(divisionService.GetAllDivision(), "Id", "Name", requisition.Division); + ViewBag.RequiredBy = new SelectList(employeeService.GetAllEmployee(), "Id", "Name", requisition.RequiredBy); + ViewBag.RaisedBy = new SelectList(employeeService.GetAllEmployee(), "Id", "Name", requisition.RaisedBy); + ViewBag.Status = new SelectList(statusService.GetAllStatus(), "Id", "Name", requisition.Status); + ViewBag.SubUnit = new SelectList(subUnitService.GetAllSubUnit(), "Id", "Name", requisition.SubUnit); + + List vacancyTypeList = new List(); + vacancyTypeList.Add(new SelectListItem { Text = "New", Value = "1" }); + vacancyTypeList.Add(new SelectListItem { Text = "Replacement", Value = "2" }); + + ViewBag.VacancyTypeId = new SelectList(vacancyTypeList, "Value", "Text", requisition.VacancyTypeId); + + return View(requisition); + } + + // GET: Requisitions/Delete/5 + public ActionResult Delete(int? id) + { + if (id == null) + { + return new HttpStatusCodeResult(HttpStatusCode.BadRequest); + } + Requisition requisition = requisitionService.GetRequisition(id); + if (requisition == null) + { + return HttpNotFound(); + } + return View(requisition); + } + + // POST: Requisitions/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public ActionResult DeleteConfirmed(int id) + { + Requisition requisition = requisitionService.GetRequisition(id); + requisitionService.DeleteRequisition(requisition); + requisitionService.SaveRequisition(); + return RedirectToAction("Index"); + } + + } +} diff --git a/src/RSTracker/RSTracker/Controllers/StatusController.cs b/src/RSTracker/Controllers/StatusController.cs similarity index 78% rename from src/RSTracker/RSTracker/Controllers/StatusController.cs rename to src/RSTracker/Controllers/StatusController.cs index 885022d..05e4d9a 100644 --- a/src/RSTracker/RSTracker/Controllers/StatusController.cs +++ b/src/RSTracker/Controllers/StatusController.cs @@ -7,18 +7,24 @@ using System.Web; using System.Web.Mvc; using RSTracker.Models; +using HSTrackerService.Interface; +using HSTrackerModel.Models; namespace RSTracker.Controllers { [Authorize()] public class StatusController : Controller { - private ApplicationDbContext db = new ApplicationDbContext(); + private readonly IStatusService statusService; + public StatusController(IStatusService statusService) + { + this.statusService = statusService; + } // GET: Status public ActionResult Index() { - return View(db.Status.ToList()); + return View(statusService.GetAllStatus().ToList()); } // GET: Status/Details/5 @@ -28,7 +34,7 @@ public ActionResult Details(int? id) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } - Status status = db.Status.Find(id); + Status status = statusService.GetStatus(id); if (status == null) { return HttpNotFound(); @@ -51,8 +57,8 @@ public ActionResult Create([Bind(Include = "Id,Name")] Status status) { if (ModelState.IsValid) { - db.Status.Add(status); - db.SaveChanges(); + statusService.CreateStatus(status); + statusService.SaveStatus(); return RedirectToAction("Index"); } @@ -66,7 +72,7 @@ public ActionResult Edit(int? id) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } - Status status = db.Status.Find(id); + Status status = statusService.GetStatus(id); if (status == null) { return HttpNotFound(); @@ -83,8 +89,8 @@ public ActionResult Edit([Bind(Include = "Id,Name")] Status status) { if (ModelState.IsValid) { - db.Entry(status).State = EntityState.Modified; - db.SaveChanges(); + statusService.EditStatus(status); + statusService.SaveStatus(); return RedirectToAction("Index"); } return View(status); @@ -97,7 +103,7 @@ public ActionResult Delete(int? id) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } - Status status = db.Status.Find(id); + Status status = statusService.GetStatus(id); if (status == null) { return HttpNotFound(); @@ -110,19 +116,11 @@ public ActionResult Delete(int? id) [ValidateAntiForgeryToken] public ActionResult DeleteConfirmed(int id) { - Status status = db.Status.Find(id); - db.Status.Remove(status); - db.SaveChanges(); + Status status = statusService.GetStatus(id); + statusService.DeleteStatus(status); + statusService.SaveStatus(); return RedirectToAction("Index"); } - protected override void Dispose(bool disposing) - { - if (disposing) - { - db.Dispose(); - } - base.Dispose(disposing); - } } } diff --git a/src/RSTracker/RSTracker/Controllers/SubUnitsController.cs b/src/RSTracker/Controllers/SubUnitsController.cs similarity index 68% rename from src/RSTracker/RSTracker/Controllers/SubUnitsController.cs rename to src/RSTracker/Controllers/SubUnitsController.cs index d6860dd..46ccb8e 100644 --- a/src/RSTracker/RSTracker/Controllers/SubUnitsController.cs +++ b/src/RSTracker/Controllers/SubUnitsController.cs @@ -7,18 +7,26 @@ using System.Web; using System.Web.Mvc; using RSTracker.Models; +using HSTrackerService.Interface; +using HSTrackerModel.Models; namespace RSTracker.Controllers { [Authorize()] public class SubUnitsController : Controller { - private ApplicationDbContext db = new ApplicationDbContext(); + private readonly IDeptService deptService; + private readonly ISubUnitService subUnitService; + public SubUnitsController(ISubUnitService subUnitService, IDeptService deptService) + { + this.deptService = deptService; + this.subUnitService = subUnitService; + } // GET: SubUnits public ActionResult Index() { - var subUnit = db.SubUnit.Include(s => s.Dept); + var subUnit = subUnitService.GetAllSubUnit(); return View(subUnit.ToList()); } @@ -29,7 +37,7 @@ public ActionResult Details(int? id) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } - SubUnit subUnit = db.SubUnit.Find(id); + SubUnit subUnit = subUnitService.GetSubUnit(id); if (subUnit == null) { return HttpNotFound(); @@ -40,7 +48,7 @@ public ActionResult Details(int? id) // GET: SubUnits/Create public ActionResult Create() { - ViewBag.DeptId = new SelectList(db.Dept, "Id", "Name"); + ViewBag.DeptId = new SelectList(deptService.GetAllDept(), "Id", "Name"); return View(); } @@ -53,12 +61,12 @@ public ActionResult Create([Bind(Include = "Id,Name,DeptId")] SubUnit subUnit) { if (ModelState.IsValid) { - db.SubUnit.Add(subUnit); - db.SaveChanges(); + subUnitService.CreateSubUnit(subUnit); + subUnitService.SaveSubUnit(); return RedirectToAction("Index"); } - ViewBag.DeptId = new SelectList(db.Dept, "Id", "Name", subUnit.DeptId); + ViewBag.DeptId = new SelectList(deptService.GetAllDept(), "Id", "Name", subUnit.DeptId); return View(subUnit); } @@ -69,12 +77,12 @@ public ActionResult Edit(int? id) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } - SubUnit subUnit = db.SubUnit.Find(id); + SubUnit subUnit = subUnitService.GetSubUnit(id); if (subUnit == null) { return HttpNotFound(); } - ViewBag.DeptId = new SelectList(db.Dept, "Id", "Name", subUnit.DeptId); + ViewBag.DeptId = new SelectList(deptService.GetAllDept(), "Id", "Name", subUnit.DeptId); return View(subUnit); } @@ -87,11 +95,11 @@ public ActionResult Edit([Bind(Include = "Id,Name,DeptId")] SubUnit subUnit) { if (ModelState.IsValid) { - db.Entry(subUnit).State = EntityState.Modified; - db.SaveChanges(); + subUnitService.EditSubUnit(subUnit); + subUnitService.SaveSubUnit(); return RedirectToAction("Index"); } - ViewBag.DeptId = new SelectList(db.Dept, "Id", "Name", subUnit.DeptId); + ViewBag.DeptId = new SelectList(deptService.GetAllDept(), "Id", "Name", subUnit.DeptId); return View(subUnit); } @@ -102,7 +110,7 @@ public ActionResult Delete(int? id) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } - SubUnit subUnit = db.SubUnit.Find(id); + SubUnit subUnit = subUnitService.GetSubUnit(id); if (subUnit == null) { return HttpNotFound(); @@ -115,19 +123,11 @@ public ActionResult Delete(int? id) [ValidateAntiForgeryToken] public ActionResult DeleteConfirmed(int id) { - SubUnit subUnit = db.SubUnit.Find(id); - db.SubUnit.Remove(subUnit); - db.SaveChanges(); + SubUnit subUnit = subUnitService.GetSubUnit(id); + subUnitService.DeleteSubUnit(subUnit); + subUnitService.SaveSubUnit(); return RedirectToAction("Index"); } - protected override void Dispose(bool disposing) - { - if (disposing) - { - db.Dispose(); - } - base.Dispose(disposing); - } } } diff --git a/src/RSTracker/RSTracker/Global.asax b/src/RSTracker/Global.asax similarity index 100% rename from src/RSTracker/RSTracker/Global.asax rename to src/RSTracker/Global.asax diff --git a/src/RSTracker/RSTracker/Global.asax.cs b/src/RSTracker/Global.asax.cs similarity index 77% rename from src/RSTracker/RSTracker/Global.asax.cs rename to src/RSTracker/Global.asax.cs index 7e13238..dbf06ba 100644 --- a/src/RSTracker/RSTracker/Global.asax.cs +++ b/src/RSTracker/Global.asax.cs @@ -1,4 +1,6 @@ -using System; +using RSTracker; +using RSTracker.App_Start; +using System; using System.Collections.Generic; using System.Linq; using System.Web; @@ -8,7 +10,7 @@ namespace RSTracker { - public class MvcApplication : System.Web.HttpApplication + public class MvcApplication : HttpApplication { protected void Application_Start() { @@ -16,6 +18,7 @@ protected void Application_Start() FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); + Bootstrapper.Run(); } } } diff --git a/src/RSTracker/RSTracker/Models/AccountViewModels.cs b/src/RSTracker/Models/AccountViewModels.cs similarity index 100% rename from src/RSTracker/RSTracker/Models/AccountViewModels.cs rename to src/RSTracker/Models/AccountViewModels.cs diff --git a/src/RSTracker/RSTracker/Models/ManageViewModels.cs b/src/RSTracker/Models/ManageViewModels.cs similarity index 100% rename from src/RSTracker/RSTracker/Models/ManageViewModels.cs rename to src/RSTracker/Models/ManageViewModels.cs diff --git a/src/RSTracker/RSTracker/Project_Readme.html b/src/RSTracker/Project_Readme.html similarity index 100% rename from src/RSTracker/RSTracker/Project_Readme.html rename to src/RSTracker/Project_Readme.html diff --git a/src/RSTracker/RSTracker/Properties/AssemblyInfo.cs b/src/RSTracker/Properties/AssemblyInfo.cs similarity index 100% rename from src/RSTracker/RSTracker/Properties/AssemblyInfo.cs rename to src/RSTracker/Properties/AssemblyInfo.cs diff --git a/src/RSTracker/RSTracker/RSTracker.csproj.orig b/src/RSTracker/RSTracker.csproj.orig similarity index 100% rename from src/RSTracker/RSTracker/RSTracker.csproj.orig rename to src/RSTracker/RSTracker.csproj.orig diff --git a/src/RSTracker/RSTracker.sln b/src/RSTracker/RSTracker.sln deleted file mode 100644 index 50829a9..0000000 --- a/src/RSTracker/RSTracker.sln +++ /dev/null @@ -1,22 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RSTracker", "RSTracker\RSTracker.csproj", "{B50B0CE5-E14F-4896-848C-CAB1CFD08EB7}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {B50B0CE5-E14F-4896-848C-CAB1CFD08EB7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B50B0CE5-E14F-4896-848C-CAB1CFD08EB7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B50B0CE5-E14F-4896-848C-CAB1CFD08EB7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B50B0CE5-E14F-4896-848C-CAB1CFD08EB7}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/src/RSTracker/RSTracker/Controllers/EmployeesController.cs b/src/RSTracker/RSTracker/Controllers/EmployeesController.cs deleted file mode 100644 index b2f3f59..0000000 --- a/src/RSTracker/RSTracker/Controllers/EmployeesController.cs +++ /dev/null @@ -1,145 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Data; -using System.Data.Entity; -using System.Linq; -using System.Net; -using System.Web; -using System.Web.Mvc; -using RSTracker.Models; - -namespace RSTracker.Controllers -{ - [Authorize()] - public class EmployeesController : Controller - { - private ApplicationDbContext db = new ApplicationDbContext(); - - // GET: Employees - public ActionResult Index() - { - var employee = db.Employee.Include(e => e.Dept).Include(e => e.Designation).Include(e => e.Division).Include(e => e.SubUnit); - return View(employee.ToList()); - } - - // GET: Employees/Details/5 - public ActionResult Details(int? id) - { - if (id == null) - { - return new HttpStatusCodeResult(HttpStatusCode.BadRequest); - } - Employee employee = db.Employee.Find(id); - if (employee == null) - { - return HttpNotFound(); - } - return View(employee); - } - - // GET: Employees/Create - public ActionResult Create() - { - ViewBag.DeptId = new SelectList(db.Dept, "Id", "Name"); - ViewBag.DesignationId = new SelectList(db.Designation, "Id", "Name"); - ViewBag.DivisionId = new SelectList(db.Division, "Id", "Name"); - ViewBag.SubUnitId = new SelectList(db.SubUnit, "Id", "Name"); - return View(); - } - - // POST: Employees/Create - // To protect from overposting attacks, please enable the specific properties you want to bind to, for - // more details see http://go.microsoft.com/fwlink/?LinkId=317598. - [HttpPost] - [ValidateAntiForgeryToken] - public ActionResult Create([Bind(Include = "Id,Name,DesignationId,DeptId,DivisionId,SubUnitId")] Employee employee) - { - if (ModelState.IsValid) - { - db.Employee.Add(employee); - db.SaveChanges(); - return RedirectToAction("Index"); - } - - ViewBag.DeptId = new SelectList(db.Dept, "Id", "Name", employee.DeptId); - ViewBag.DesignationId = new SelectList(db.Designation, "Id", "Name", employee.DesignationId); - ViewBag.DivisionId = new SelectList(db.Division, "Id", "Name", employee.DivisionId); - ViewBag.SubUnitId = new SelectList(db.SubUnit, "Id", "Name", employee.SubUnitId); - return View(employee); - } - - // GET: Employees/Edit/5 - public ActionResult Edit(int? id) - { - if (id == null) - { - return new HttpStatusCodeResult(HttpStatusCode.BadRequest); - } - Employee employee = db.Employee.Find(id); - if (employee == null) - { - return HttpNotFound(); - } - ViewBag.DeptId = new SelectList(db.Dept, "Id", "Name", employee.DeptId); - ViewBag.DesignationId = new SelectList(db.Designation, "Id", "Name", employee.DesignationId); - ViewBag.DivisionId = new SelectList(db.Division, "Id", "Name", employee.DivisionId); - ViewBag.SubUnitId = new SelectList(db.SubUnit, "Id", "Name", employee.SubUnitId); - return View(employee); - } - - // POST: Employees/Edit/5 - // To protect from overposting attacks, please enable the specific properties you want to bind to, for - // more details see http://go.microsoft.com/fwlink/?LinkId=317598. - [HttpPost] - [ValidateAntiForgeryToken] - public ActionResult Edit([Bind(Include = "Id,Name,DesignationId,DeptId,DivisionId,SubUnitId")] Employee employee) - { - if (ModelState.IsValid) - { - db.Entry(employee).State = EntityState.Modified; - db.SaveChanges(); - return RedirectToAction("Index"); - } - ViewBag.DeptId = new SelectList(db.Dept, "Id", "Name", employee.DeptId); - ViewBag.DesignationId = new SelectList(db.Designation, "Id", "Name", employee.DesignationId); - ViewBag.DivisionId = new SelectList(db.Division, "Id", "Name", employee.DivisionId); - ViewBag.SubUnitId = new SelectList(db.SubUnit, "Id", "Name", employee.SubUnitId); - return View(employee); - } - - // GET: Employees/Delete/5 - public ActionResult Delete(int? id) - { - if (id == null) - { - return new HttpStatusCodeResult(HttpStatusCode.BadRequest); - } - Employee employee = db.Employee.Find(id); - if (employee == null) - { - return HttpNotFound(); - } - return View(employee); - } - - // POST: Employees/Delete/5 - [HttpPost, ActionName("Delete")] - [ValidateAntiForgeryToken] - public ActionResult DeleteConfirmed(int id) - { - Employee employee = db.Employee.Find(id); - db.Employee.Remove(employee); - db.SaveChanges(); - return RedirectToAction("Index"); - } - - protected override void Dispose(bool disposing) - { - if (disposing) - { - db.Dispose(); - } - base.Dispose(disposing); - } - } -} diff --git a/src/RSTracker/RSTracker/Controllers/RequisitionsController.cs b/src/RSTracker/RSTracker/Controllers/RequisitionsController.cs deleted file mode 100644 index 45ab69e..0000000 --- a/src/RSTracker/RSTracker/Controllers/RequisitionsController.cs +++ /dev/null @@ -1,194 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Data; -using System.Data.Entity; -using System.Linq; -using System.Net; -using System.Web; -using System.Web.Mvc; -using RSTracker.Models; -using RSTracker.Utility; - -namespace RSTracker.Controllers -{ - [Authorize()] - public class RequisitionsController : Controller - { - private ApplicationDbContext db = new ApplicationDbContext(); - - // GET: Requisitions - public ActionResult Index() - { - var requisitions = db.Requisitions.Include(r => r.Dept).Include(r => r.Designation).Include(r => r.Division).Include(r => r.RequiredByEmp).Include(r => r.Employee).Include(r => r.Status).Include(r => r.SubUnit); - return View(requisitions.Where(p=>p.StatusId != 3).OrderBy(p=>p.RequisitionDate).ToList()); - } - - // GET: Requisitions/Details/5 - public ActionResult Details(int? id) - { - if (id == null) - { - return new HttpStatusCodeResult(HttpStatusCode.BadRequest); - } - - Requisition requisition = db.Requisitions.Find(id); - int vacancyTypeId = requisition.VacancyTypeId ?? 0; - requisition.VacancyTypeName = VacancyType.GetVacancyType(vacancyTypeId); - - if (requisition == null) - { - return HttpNotFound(); - } - return View(requisition); - } - - // GET: Requisitions/Create - public ActionResult Create() - { - ViewBag.DeptId = new SelectList(db.Dept, "Id", "Name"); - ViewBag.Position = new SelectList(db.Designation, "Id", "Name"); - ViewBag.DivisionId = new SelectList(db.Division, "Id", "Name"); - ViewBag.RequiredBy = new SelectList(db.Employee, "Id", "Name"); - ViewBag.RaisedBy = new SelectList(db.Employee, "Id", "Name"); - ViewBag.StatusId = new SelectList(db.Status, "Id", "Name"); - ViewBag.SubUnitId = new SelectList(db.SubUnit, "Id", "Name"); - - List vacancyTypeList = new List(); - vacancyTypeList.Add(new SelectListItem { Text = "New", Value = "1" }); - vacancyTypeList.Add(new SelectListItem { Text = "Replacement", Value = "2" }); - - ViewBag.VacancyTypeId = vacancyTypeList; - - return View(); - } - - // POST: Requisitions/Create - // To protect from overposting attacks, please enable the specific properties you want to bind to, for - // more details see http://go.microsoft.com/fwlink/?LinkId=317598. - [HttpPost] - [ValidateAntiForgeryToken] - //public ActionResult Create([Bind(Include = "Id,RefNo,RaisedBy,Position,Division,Dept,SubUnit,RequisitionDate,RequiredBy,VacancyType,LastWorkingDay,Status")] Requisition requisition) - public ActionResult Create(Requisition requisition) - { - if (ModelState.IsValid) - { - db.Requisitions.Add(requisition); - db.SaveChanges(); - return RedirectToAction("Index"); - } - - ViewBag.DeptId = new SelectList(db.Dept, "Id", "Name", requisition.Dept); - ViewBag.Position = new SelectList(db.Designation, "Id", "Name", requisition.PositionId); - ViewBag.DivisionId = new SelectList(db.Division, "Id", "Name", requisition.Division); - ViewBag.RequiredBy = new SelectList(db.Employee, "Id", "Name", requisition.RequiredBy); - ViewBag.RaisedBy = new SelectList(db.Employee, "Id", "Name", requisition.RaisedBy); - ViewBag.StatusId = new SelectList(db.Status, "Id", "Name", requisition.Status); - ViewBag.SubUnitId = new SelectList(db.SubUnit, "Id", "Name", requisition.SubUnit); - - List vacancyTypeList = new List(); - vacancyTypeList.Add(new SelectListItem { Text = "New", Value = "1" }); - vacancyTypeList.Add(new SelectListItem { Text = "Replacement", Value = "2" }); - - ViewBag.VacancyTypeId = vacancyTypeList; - - - return View(requisition); - } - - // GET: Requisitions/Edit/5 - public ActionResult Edit(int? id) - { - if (id == null) - { - return new HttpStatusCodeResult(HttpStatusCode.BadRequest); - } - Requisition requisition = db.Requisitions.Find(id); - if (requisition == null) - { - return HttpNotFound(); - } - ViewBag.DeptId = new SelectList(db.Dept, "Id", "Name", requisition.Dept); - ViewBag.PositionId = new SelectList(db.Designation, "Id", "Name", requisition.PositionId); - ViewBag.DivisionId = new SelectList(db.Division, "Id", "Name", requisition.Division); - ViewBag.RequiredBy = new SelectList(db.Employee, "Id", "Name", requisition.RequiredBy); - ViewBag.RaisedBy = new SelectList(db.Employee, "Id", "Name", requisition.RaisedBy); - ViewBag.StatusId = new SelectList(db.Status, "Id", "Name", requisition.Status); - ViewBag.SubUnitId = new SelectList(db.SubUnit, "Id", "Name", requisition.SubUnit); - - List vacancyTypeList = new List(); - vacancyTypeList.Add(new SelectListItem { Text = "New", Value = "1" }); - vacancyTypeList.Add(new SelectListItem { Text = "Replacement", Value = "2" }); - - ViewBag.VacancyTypeId = new SelectList(vacancyTypeList, "Value", "Text",requisition.VacancyTypeId); - - //ViewBag.VacancyTypeId = new SelectList(db.Division, "Id", "Name", dept.DivisionId); - //ViewBag.DivisionId = new SelectList(db.Division, "Id", "Name", dept.DivisionId); - return View(requisition); - } - - // POST: Requisitions/Edit/5 - // To protect from overposting attacks, please enable the specific properties you want to bind to, for - // more details see http://go.microsoft.com/fwlink/?LinkId=317598. - [HttpPost] - [ValidateAntiForgeryToken] - public ActionResult Edit(Requisition requisition) - { - if (ModelState.IsValid) - { - db.Entry(requisition).State = EntityState.Modified; - db.SaveChanges(); - return RedirectToAction("Index"); - } - ViewBag.Dept = new SelectList(db.Dept, "Id", "Name", requisition.Dept); - ViewBag.Position = new SelectList(db.Designation, "Id", "Name", requisition.PositionId); - ViewBag.Division = new SelectList(db.Division, "Id", "Name", requisition.Division); - ViewBag.RequiredBy = new SelectList(db.Employee, "Id", "Name", requisition.RequiredBy); - ViewBag.RaisedBy = new SelectList(db.Employee, "Id", "Name", requisition.RaisedBy); - ViewBag.Status = new SelectList(db.Status, "Id", "Name", requisition.Status); - ViewBag.SubUnit = new SelectList(db.SubUnit, "Id", "Name", requisition.SubUnit); - - List vacancyTypeList = new List(); - vacancyTypeList.Add(new SelectListItem { Text = "New", Value = "1" }); - vacancyTypeList.Add(new SelectListItem { Text = "Replacement", Value = "2" }); - - ViewBag.VacancyTypeId = new SelectList(vacancyTypeList, "Value", "Text", requisition.VacancyTypeId); - - return View(requisition); - } - - // GET: Requisitions/Delete/5 - public ActionResult Delete(int? id) - { - if (id == null) - { - return new HttpStatusCodeResult(HttpStatusCode.BadRequest); - } - Requisition requisition = db.Requisitions.Find(id); - if (requisition == null) - { - return HttpNotFound(); - } - return View(requisition); - } - - // POST: Requisitions/Delete/5 - [HttpPost, ActionName("Delete")] - [ValidateAntiForgeryToken] - public ActionResult DeleteConfirmed(int id) - { - Requisition requisition = db.Requisitions.Find(id); - db.Requisitions.Remove(requisition); - db.SaveChanges(); - return RedirectToAction("Index"); - } - - protected override void Dispose(bool disposing) - { - if (disposing) - { - db.Dispose(); - } - base.Dispose(disposing); - } - } -} diff --git a/src/RSTracker/RSTracker/Migrations/201803080926442_mig01.Designer.cs b/src/RSTracker/RSTracker/Migrations/201803080926442_mig01.Designer.cs deleted file mode 100644 index 0e1739d..0000000 --- a/src/RSTracker/RSTracker/Migrations/201803080926442_mig01.Designer.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -namespace RSTracker.Migrations -{ - using System.CodeDom.Compiler; - using System.Data.Entity.Migrations; - using System.Data.Entity.Migrations.Infrastructure; - using System.Resources; - - [GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")] - public sealed partial class mig01 : IMigrationMetadata - { - private readonly ResourceManager Resources = new ResourceManager(typeof(mig01)); - - string IMigrationMetadata.Id - { - get { return "201803080926442_mig01"; } - } - - string IMigrationMetadata.Source - { - get { return null; } - } - - string IMigrationMetadata.Target - { - get { return Resources.GetString("Target"); } - } - } -} diff --git a/src/RSTracker/RSTracker/Migrations/201803080926442_mig01.resx b/src/RSTracker/RSTracker/Migrations/201803080926442_mig01.resx deleted file mode 100644 index 6375c9d..0000000 --- a/src/RSTracker/RSTracker/Migrations/201803080926442_mig01.resx +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - H4sIAAAAAAAEAO1d227kOJJ9X2D/IZFPs4saZ9m13egp2N1w2+VtY112odJdPW8FWqJtoZRStqT02FjMl83DfNL8wlB33oIXibrkjFFAwSmSwWDEYfAWZPzjb38//ul5Ey6ecJIGcXSyPDx4u1zgyIv9IHo4We6y+z/+sPzpx//8j+MP/uZ58aXO9y7PR0pG6cnyMcu271er1HvEG5QebAIvidP4Pjvw4s0K+fHq6O3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se1NFRpbPt8tW4k6V/lz+yU3pw1qli5FS+CmbxINTCpMoqUsaJ5usqz8OESsrPMup5igHZZhtdJN0kSclXqfoq2m04oYo2SVZF65GmFw51RCSREZUqF1WTQV9Xs4Mg1NOkyOqoEg3oVztVIvkqQUpdHp2ep82uUYQa2GRZPafp9hpn8rjCUGWtAQUrbLPAlcIBjfmKhcFEqFfIoa7Wrq3VJFjZ2CqPulogDLiq7mpOpKy7yqOuGwiuLY2fzXqtS+JmK9zamfGYtnFtfDRxyJHt+1Ol2o/8XMA6NLjU0VrSQr1DNttQzuqyAcNUDZZYOiGqjdtmU1ZY3W7Agbgv+6PqW3R+VcJ5SE0P3VTGzVPSStgNtGef5QZQJmaPQw02JBUKhCMVdWB2ZMNEO+FJeybopefMFBlovkPTBJ8xSevUfmU9ASqZ1guBmF03kzJ/utaqoqi5srMTiECBZb23kCNIj9/s1iSom60IAdnJ5EzcbNarQ9N2hQvI3gqgXrCpWw4GXeM9HejRSboUnLq58GCsPdF3Mh6P02TpkbSkzfqj677MM+X5rbCicPuxd7Mlx6eSRusOWaVbs/TGgRh5TtVoaPtBHhitvxCAYz6JIEwOBNU751RLhDRDkTC7FEDQHfdCqbcV9EIBw8cMKRRm+wSIHuNeKNWull4mkvOVwUXisusIAWKatONVuR1VfSA/hUAwx6vPuyh/9ab8Vc5kGxLHhGaEPeYooclzGd3H9YkGx1GdhX/fFWfIRxk6TbLgHnkZSc4fvAmih+WieEQkn1jcYf8yutll211Gmow3dyHjG5mfjKjqP14JPB/fbItNaBdNIGwWYRZuop93Qeg3fF9IHqgASORHLtXzMrkus/yZmYeXhtJ1HBkSqsTXnBTdYjIrI8TSm2iNnnAX3gj8rvAD8l7a50ggInpFsGI/Pg/QQ4I2aUWjLU9+Egz7m+cf/wn3ekNtIg8BAA== - - - dbo - - \ No newline at end of file diff --git a/src/RSTracker/RSTracker/Migrations/201803110803191_addcircular.Designer.cs b/src/RSTracker/RSTracker/Migrations/201803110803191_addcircular.Designer.cs deleted file mode 100644 index 82c39d4..0000000 --- a/src/RSTracker/RSTracker/Migrations/201803110803191_addcircular.Designer.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -namespace RSTracker.Migrations -{ - using System.CodeDom.Compiler; - using System.Data.Entity.Migrations; - using System.Data.Entity.Migrations.Infrastructure; - using System.Resources; - - [GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")] - public sealed partial class addcircular : IMigrationMetadata - { - private readonly ResourceManager Resources = new ResourceManager(typeof(addcircular)); - - string IMigrationMetadata.Id - { - get { return "201803110803191_addcircular"; } - } - - string IMigrationMetadata.Source - { - get { return null; } - } - - string IMigrationMetadata.Target - { - get { return Resources.GetString("Target"); } - } - } -} diff --git a/src/RSTracker/RSTracker/Migrations/201803110803191_addcircular.cs b/src/RSTracker/RSTracker/Migrations/201803110803191_addcircular.cs deleted file mode 100644 index e808a93..0000000 --- a/src/RSTracker/RSTracker/Migrations/201803110803191_addcircular.cs +++ /dev/null @@ -1,22 +0,0 @@ -namespace RSTracker.Migrations -{ - using System; - using System.Data.Entity.Migrations; - - public partial class addcircular : DbMigration - { - public override void Up() - { - AlterColumn("dbo.Circulars", "CircularDate", c => c.DateTime()); - AlterColumn("dbo.Circulars", "WrittentestDate", c => c.DateTime()); - AlterColumn("dbo.Circulars", "VivaDate", c => c.DateTime()); - } - - public override void Down() - { - AlterColumn("dbo.Circulars", "VivaDate", c => c.DateTime(nullable: false)); - AlterColumn("dbo.Circulars", "WrittentestDate", c => c.DateTime(nullable: false)); - AlterColumn("dbo.Circulars", "CircularDate", c => c.DateTime(nullable: false)); - } - } -} diff --git a/src/RSTracker/RSTracker/Migrations/201803110803191_addcircular.resx b/src/RSTracker/RSTracker/Migrations/201803110803191_addcircular.resx deleted file mode 100644 index 6896ae3..0000000 --- a/src/RSTracker/RSTracker/Migrations/201803110803191_addcircular.resx +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - H4sIAAAAAAAEAO1d224cuRF9D5B/GMxTEjgaS84uNoa0C61kZYXIsuHRevNmUD2U1PBM92x3jyIhyJflIZ+UXwj7zksVL32fRFhgYQ3JYrHqsFhNFln/+de/j3942qxnjzSK/TA4mR8evJ7PaOCFKz+4P5nvkrs/fjf/4fvf/ub43WrzNPtc1nuT1mMtg/hk/pAk27eLRew90A2JDza+F4VxeJcceOFmQVbh4uj16z8vDg8XlJGYM1qz2fGnXZD4G5r9wf48CwOPbpMdWb8PV3QdF7+zkmVGdXZNNjTeEo+ezD8tbyLifaXRQV53Pjtd+4TxsaTru/mMBEGYkIRx+fbnmC6TKAzul1v2A1nfPG8pq3dH1jEtuH9bV7cdyOujdCCLumFJytvFSbhxJHj4ppDMQm7eSL7zSnJMdu+YjJPndNSZ/E7mZ37k7dYkms/kzt6eraO0oireg7LRq1lV9KoCAsNL+t+r2dlunewiehLQXRKR9avZx93t2vf+Sp9vwq80OAl26zXPHGOPlQk/sJ8+RuGWRsnzJ3pXsHx5Pp8txHYLuWHVjGuTD+YySN4czWfXrHNyu6aV7rmBL5Mwon+hAY1IQlcfSZLQiKnuckUz6Sm9S319or/u/NhPSV2uTN3qSZWCPmeMlJTSf9+wiWJqex1+uDt7vIjCTTseajqnRiHaUvoQrP2AdkXtJxKtvHD73BU9BrV2pJYPYZRcsRGuzh6XNFgl4VVLJVz4AVkza0Y9hsgzEqz8FQeJZjR/iXyG7CChcdIEX0XzG9b8I4njztj67D+SJvyk7ZqycE0e/fts8uNzeT77RNdZnfjB3+ZrS2UJvwgVMxCFa24C8+VfluEu8lIWQ02lGxLd00Tk9HhR22+tVRe4cTDsXLuRbPuqgW03GtkubfvddVh2xzwJ5hLN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cuoo2WGqsuNFvh1V/MD+VLLAHC8+7YL01Zv8r9yTrUgcM5oB9YSjhKrOZXAXlicaEkdlFfl9V5qQFUnIaZT4d8RLWHH64I0f3M9n2SMiqWNxS1eXwYddst0lbMh0c7sWYiPTkxFd/8cLhefjD9tsE7qLITA2szQLH4Ifd/56VfF9ATxQgZBIj1yK52VSXSbpMzP3zxWl6zCwJFSIrzopuqHMK2PE4g/BkjzSJrwx+F3Re+I918+RYETMihDFfnzuk/uIbOKCRt2e/ckwvNo8ff9fJrtaVuwOAQA= - - - dbo - - \ No newline at end of file diff --git a/src/RSTracker/RSTracker/Migrations/201803110821504_editcircular.Designer.cs b/src/RSTracker/RSTracker/Migrations/201803110821504_editcircular.Designer.cs deleted file mode 100644 index 26a556c..0000000 --- a/src/RSTracker/RSTracker/Migrations/201803110821504_editcircular.Designer.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -namespace RSTracker.Migrations -{ - using System.CodeDom.Compiler; - using System.Data.Entity.Migrations; - using System.Data.Entity.Migrations.Infrastructure; - using System.Resources; - - [GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")] - public sealed partial class editcircular : IMigrationMetadata - { - private readonly ResourceManager Resources = new ResourceManager(typeof(editcircular)); - - string IMigrationMetadata.Id - { - get { return "201803110821504_editcircular"; } - } - - string IMigrationMetadata.Source - { - get { return null; } - } - - string IMigrationMetadata.Target - { - get { return Resources.GetString("Target"); } - } - } -} diff --git a/src/RSTracker/RSTracker/Migrations/201803110821504_editcircular.cs b/src/RSTracker/RSTracker/Migrations/201803110821504_editcircular.cs deleted file mode 100644 index 4613a28..0000000 --- a/src/RSTracker/RSTracker/Migrations/201803110821504_editcircular.cs +++ /dev/null @@ -1,16 +0,0 @@ -namespace RSTracker.Migrations -{ - using System; - using System.Data.Entity.Migrations; - - public partial class editcircular : DbMigration - { - public override void Up() - { - } - - public override void Down() - { - } - } -} diff --git a/src/RSTracker/RSTracker/Migrations/201803110821504_editcircular.resx b/src/RSTracker/RSTracker/Migrations/201803110821504_editcircular.resx deleted file mode 100644 index 6896ae3..0000000 --- a/src/RSTracker/RSTracker/Migrations/201803110821504_editcircular.resx +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - H4sIAAAAAAAEAO1d224cuRF9D5B/GMxTEjgaS84uNoa0C61kZYXIsuHRevNmUD2U1PBM92x3jyIhyJflIZ+UXwj7zksVL32fRFhgYQ3JYrHqsFhNFln/+de/j3942qxnjzSK/TA4mR8evJ7PaOCFKz+4P5nvkrs/fjf/4fvf/ub43WrzNPtc1nuT1mMtg/hk/pAk27eLRew90A2JDza+F4VxeJcceOFmQVbh4uj16z8vDg8XlJGYM1qz2fGnXZD4G5r9wf48CwOPbpMdWb8PV3QdF7+zkmVGdXZNNjTeEo+ezD8tbyLifaXRQV53Pjtd+4TxsaTru/mMBEGYkIRx+fbnmC6TKAzul1v2A1nfPG8pq3dH1jEtuH9bV7cdyOujdCCLumFJytvFSbhxJHj4ppDMQm7eSL7zSnJMdu+YjJPndNSZ/E7mZ37k7dYkms/kzt6eraO0oireg7LRq1lV9KoCAsNL+t+r2dlunewiehLQXRKR9avZx93t2vf+Sp9vwq80OAl26zXPHGOPlQk/sJ8+RuGWRsnzJ3pXsHx5Pp8txHYLuWHVjGuTD+YySN4czWfXrHNyu6aV7rmBL5Mwon+hAY1IQlcfSZLQiKnuckUz6Sm9S319or/u/NhPSV2uTN3qSZWCPmeMlJTSf9+wiWJqex1+uDt7vIjCTTseajqnRiHaUvoQrP2AdkXtJxKtvHD73BU9BrV2pJYPYZRcsRGuzh6XNFgl4VVLJVz4AVkza0Y9hsgzEqz8F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uCn4NjDxRdj44l+J+vxMEMGj6SBMZuPrtsyL7SXt8KyxvWPrYcNHJ8CgzYdsoJbs/zGgZp2TjdobPsBzorWXgjIMR8gCJsDQf3OOTcSpcxSJMIuBZJxp3uhlNsKZqGguWP6FIqwfYKkjuleKMWullkmwPlK7yLpcuoo2WGqsuNFvh1V/MD+VLLAHC8+7YL01Zv8r9yTrUgcM5oB9YSjhKrOZXAXlicaEkdlFfl9V5qQFUnIaZT4d8RLWHH64I0f3M9n2SMiqWNxS1eXwYddst0lbMh0c7sWYiPTkxFd/8cLhefjD9tsE7qLITA2szQLH4Ifd/56VfF9ATxQgZBIj1yK52VSXSbpMzP3zxWl6zCwJFSIrzopuqHMK2PE4g/BkjzSJrwx+F3Re+I918+RYETMihDFfnzuk/uIbOKCRt2e/ckwvNo8ff9fJrtaVuwOAQA= - - - dbo - - \ No newline at end of file diff --git a/src/RSTracker/RSTracker/Migrations/201803111051070_modifycircular.cs b/src/RSTracker/RSTracker/Migrations/201803111051070_modifycircular.cs deleted file mode 100644 index 3651d80..0000000 --- a/src/RSTracker/RSTracker/Migrations/201803111051070_modifycircular.cs +++ /dev/null @@ -1,46 +0,0 @@ -namespace RSTracker.Migrations -{ - using System; - using System.Data.Entity.Migrations; - - public partial class modifycircular : DbMigration - { - public override void Up() - { - AddColumn("dbo.Circulars", "CvSendtoLM", c => c.Int()); - AddColumn("dbo.Circulars", "SortedCvFromLM", c => c.Int()); - AddColumn("dbo.Circulars", "CreateDate", c => c.DateTime(nullable: false)); - AddColumn("dbo.Circulars", "ModifiedDate", c => c.DateTime(nullable: false)); - AddColumn("dbo.Circulars", "CreatedBy", c => c.String()); - AddColumn("dbo.Circulars", "ModifiedBy", c => c.String()); - AlterColumn("dbo.Circulars", "NoOfCvFromAD", c => c.Int()); - AlterColumn("dbo.Circulars", "NoOfCvFromOnline", c => c.Int()); - AlterColumn("dbo.Circulars", "NoOfCvFromHardcopy", c => c.Int()); - AlterColumn("dbo.Circulars", "NoOfCvFromRef", c => c.Int()); - AlterColumn("dbo.Circulars", "FinalSelectedCandidate", c => c.Int()); - AlterColumn("dbo.Circulars", "WrittenTestPassedCandidate", c => c.Int()); - AlterColumn("dbo.Circulars", "VivaCandidate", c => c.Int()); - DropColumn("dbo.Circulars", "NoOfCvFrom"); - DropColumn("dbo.Circulars", "ShortLinedCvSendtoLm"); - } - - public override void Down() - { - AddColumn("dbo.Circulars", "ShortLinedCvSendtoLm", c => c.Int(nullable: false)); - AddColumn("dbo.Circulars", "NoOfCvFrom", c => c.Int(nullable: false)); - AlterColumn("dbo.Circulars", "VivaCandidate", c => c.Int(nullable: false)); - AlterColumn("dbo.Circulars", "WrittenTestPassedCandidate", c => c.Int(nullable: false)); - AlterColumn("dbo.Circulars", "FinalSelectedCandidate", c => c.Int(nullable: false)); - AlterColumn("dbo.Circulars", "NoOfCvFromRef", c => c.Int(nullable: false)); - AlterColumn("dbo.Circulars", "NoOfCvFromHardcopy", c => c.Int(nullable: false)); - AlterColumn("dbo.Circulars", "NoOfCvFromOnline", c => c.Int(nullable: false)); - AlterColumn("dbo.Circulars", "NoOfCvFromAD", c => c.Int(nullable: false)); - DropColumn("dbo.Circulars", "ModifiedBy"); - DropColumn("dbo.Circulars", "CreatedBy"); - DropColumn("dbo.Circulars", "ModifiedDate"); - DropColumn("dbo.Circulars", "CreateDate"); - DropColumn("dbo.Circulars", "SortedCvFromLM"); - DropColumn("dbo.Circulars", "CvSendtoLM"); - } - } -} diff --git a/src/RSTracker/RSTracker/Migrations/201803111051070_modifycircular.resx b/src/RSTracker/RSTracker/Migrations/201803111051070_modifycircular.resx deleted file mode 100644 index c08add4..0000000 --- a/src/RSTracker/RSTracker/Migrations/201803111051070_modifycircular.resx +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - H4sIAAAAAAAEAO1d224ktxF9D5B/aMxTEqw1kjY27IVkQ5ZW8SJaabEjr/O2oLopqbE93ePuHllCkC/LQz4pvxD2nbfipe/jDAwYqyFZLFYdVrHJIuu///7PyQ/P68B5wnHiR+Hp4ujgcOHg0I08P3w4XWzT+6++Xfzw/R//cPLWWz87n6p6r7N6pGWYnC4e03TzZrlM3Ee8RsnB2nfjKInu0wM3Wi+RFy2PDw+/Wx4dLTEhsSC0HOfk4zZM/TXO/yB/nkehizfpFgXvIw8HSfk7KVnlVJ1rtMbJBrn4dPFxdRsj9wuOD4q6C+cs8BHhY4WD+4WDwjBKUUq4fPNzgldpHIUPqw35AQW3LxtM6t2jIMEl92+a6qYDOTzOBrJsGlak3G2SRmtLgkevS8ks+eat5LuoJUdk95bIOH3JRp3L73Rx7sfuNkDxwuE7e3MexFlFUbwHVaNXTl30qgYCwUv23yvnfBuk2xifhnibxih45XzY3gW++3f8cht9weFpuA0CmjnCHiljfiA/fYijDY7Tl4/4vmT5nbdwlmy7Jd+wbka1KQbzLkxfHy+ca9I5ugtwrXtq4Ks0ivHfcIhjlGLvA0pTHIcZDZxLT+id6+sj/nXrJ35GSt+tmlQl6AvCSEUp+/ctmSi6ttfRzf3502Ucrc8uOC5MG96EgR/ilo1/QrHnRpuXls2Jvq1anj+tcOil0dV7q2arKCY6Lrq0bHrphyggFga7GQUUer5HqcmIxC+xT8AVpjhJ26i4bH5Lmn9ASdKWi0/+E2rTfdauXY/nMSZN5H1aThFikvx7H3u9ECv48n6sQUucBfF6C+c9er7C4UP6SDpEzwvn0n/GXvVLSfrn0CdOkjRK460x20N0dY2e/IfclMGWaeF8xEFeJ3n0N4WnrO36Z6ZiPhujgDJHdPnnVbSN3Uz0kaLSLYofcMpyerJsvJHSRzHcWLgpqt3eU8n6IpxeRz3gz3KWfUR+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Li7MEbP3xYOPkjItnC4g5778KbbbrZpmTIeH0XMLGR2cmIqv+TpcDzyc0m34TuYwiEzTw1xU3449YPvJrvS8kDFQCJ7MilfF4m02WaPTPz8FJTuo5CQ0Kl+OqToltMVmWEWHITrtATbsMbgd8VfkDuS/McCURErwhW7CcXPnqI0TopaTTtyZ8Ew976+fv/AaPWrh4OEgEA - - - dbo - - \ No newline at end of file diff --git a/src/RSTracker/RSTracker/Migrations/201803120711583_modifyCircular2.Designer.cs b/src/RSTracker/RSTracker/Migrations/201803120711583_modifyCircular2.Designer.cs deleted file mode 100644 index f61b863..0000000 --- a/src/RSTracker/RSTracker/Migrations/201803120711583_modifyCircular2.Designer.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -namespace RSTracker.Migrations -{ - using System.CodeDom.Compiler; - using System.Data.Entity.Migrations; - using System.Data.Entity.Migrations.Infrastructure; - using System.Resources; - - [GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")] - public sealed partial class modifyCircular2 : IMigrationMetadata - { - private readonly ResourceManager Resources = new ResourceManager(typeof(modifyCircular2)); - - string IMigrationMetadata.Id - { - get { return "201803120711583_modifyCircular2"; } - } - - string IMigrationMetadata.Source - { - get { return null; } - } - - string IMigrationMetadata.Target - { - get { return Resources.GetString("Target"); } - } - } -} diff --git a/src/RSTracker/RSTracker/Migrations/201803120711583_modifyCircular2.cs b/src/RSTracker/RSTracker/Migrations/201803120711583_modifyCircular2.cs deleted file mode 100644 index 77353d8..0000000 --- a/src/RSTracker/RSTracker/Migrations/201803120711583_modifyCircular2.cs +++ /dev/null @@ -1,30 +0,0 @@ -namespace RSTracker.Migrations -{ - using System; - using System.Data.Entity.Migrations; - - public partial class modifyCircular2 : DbMigration - { - public override void Up() - { - AddColumn("dbo.Circulars", "FinalVivaCandidate", c => c.Int()); - AddColumn("dbo.Circulars", "ReferenceCheck", c => c.String()); - AddColumn("dbo.Circulars", "FinalMeetingWithCEO", c => c.String()); - AddColumn("dbo.Circulars", "SelectedCandidateDetails", c => c.String()); - AddColumn("dbo.Circulars", "ALIssueDate", c => c.DateTime()); - AddColumn("dbo.Circulars", "DateOfJoining", c => c.DateTime()); - AddColumn("dbo.Circulars", "ProcessLength", c => c.Int()); - } - - public override void Down() - { - DropColumn("dbo.Circulars", "ProcessLength"); - DropColumn("dbo.Circulars", "DateOfJoining"); - DropColumn("dbo.Circulars", "ALIssueDate"); - DropColumn("dbo.Circulars", "SelectedCandidateDetails"); - DropColumn("dbo.Circulars", "FinalMeetingWithCEO"); - DropColumn("dbo.Circulars", "ReferenceCheck"); - DropColumn("dbo.Circulars", "FinalVivaCandidate"); - } - } -} diff --git a/src/RSTracker/RSTracker/Migrations/201803120711583_modifyCircular2.resx b/src/RSTracker/RSTracker/Migrations/201803120711583_modifyCircular2.resx deleted file mode 100644 index c593213..0000000 --- a/src/RSTracker/RSTracker/Migrations/201803120711583_modifyCircular2.resx +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - H4sIAAAAAAAEAO1dW2/kuLF+P0D+Q6Ofcg4mbttzdrE7sDfwtu2sc3wZTHtnztuAVtO2MGqpV1I7NoL8sjzkJ+UvhJIoibfiRdfupLHAYtwki8Wqj8USWWT98+//OPnj6yqYvOA48aPwdHp0cDid4NCLln74dDrdpI9/+GH6x59+918nF8vV6+RzWe99Vo+0DJPT6XOarj/MZon3jFcoOVj5Xhwl0WN64EWrGVpGs+PDwx9nR0czTEhMCa3J5OTTJkz9Fc7/IH/Oo9DD63SDgptoiYOE/k5KFjnVyS1a4WSNPHw6/bS4j5H3DccHRd3p5CzwEeFjgYPH6QSFYZSilHD54dcEL9I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+XyXSZZs/MPL1VlG6j0JIQFV91UnSPiVdGiCV34QK94Ca8Efhd4yfkvdXPkUBEzIrgxX5y7qOnGK0SSqNuT/4kGF6uXn/6F1Y7jbcGGQEA - - - dbo - - \ No newline at end of file diff --git a/src/RSTracker/RSTracker/Migrations/Configuration.cs b/src/RSTracker/RSTracker/Migrations/Configuration.cs deleted file mode 100644 index cde5b8e..0000000 --- a/src/RSTracker/RSTracker/Migrations/Configuration.cs +++ /dev/null @@ -1,38 +0,0 @@ -namespace RSTracker.Migrations -{ - using Models; - using System; - using System.Data.Entity; - using System.Data.Entity.Migrations; - using System.Linq; - - internal sealed class Configuration : DbMigrationsConfiguration - { - public Configuration() - { - AutomaticMigrationsEnabled = false; - } - - protected override void Seed(RSTracker.Models.ApplicationDbContext context) - { - context.Status.AddOrUpdate( - p => p.Id, - new Status() {Id = 1, Name = "Open" }, - new Status() {Id = 2, Name = "In Progress"}, - new Status() {Id = 3, Name = "Closed"} - ); - // This method will be called after migrating to the latest version. - - // You can use the DbSet.AddOrUpdate() helper extension method - // to avoid creating duplicate seed data. E.g. - // - // context.People.AddOrUpdate( - // p => p.FullName, - // new Person { FullName = "Andrew Peters" }, - // new Person { FullName = "Brice Lambson" }, - // new Person { FullName = "Rowan Miller" } - // ); - // - } - } -} diff --git a/src/RSTracker/RSTracker/RSTracker.csproj b/src/RSTracker/RSTrackerWeb.csproj similarity index 93% rename from src/RSTracker/RSTracker/RSTracker.csproj rename to src/RSTracker/RSTrackerWeb.csproj index 1b6bf81..8b019d9 100644 --- a/src/RSTracker/RSTracker/RSTracker.csproj +++ b/src/RSTracker/RSTrackerWeb.csproj @@ -14,7 +14,7 @@ {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} Library Properties - RSTracker + HSTracker RSTracker v4.5.2 false @@ -46,6 +46,18 @@ 4 + + ..\packages\Autofac.4.0.1\lib\net45\Autofac.dll + True + + + ..\packages\Autofac.Mvc5.4.0.2\lib\net45\Autofac.Integration.Mvc.dll + True + + + ..\packages\AutoMapper.7.0.1\lib\net45\AutoMapper.dll + True + ..\packages\Microsoft.ApplicationInsights.Agent.Intercept.1.2.1\lib\net45\Microsoft.AI.Agent.Intercept.dll True @@ -82,6 +94,11 @@ + + + ..\packages\System.ValueTuple.4.5.0\lib\netstandard1.0\System.ValueTuple.dll + True + @@ -192,6 +209,7 @@ + @@ -211,47 +229,13 @@ Global.asax - - - 201803080926442_mig01.cs - - - - 201803110803191_addcircular.cs - - - - 201803110821504_editcircular.cs - - - - 201803111051070_modifycircular.cs - - - - 201803120711583_modifyCircular2.cs - - - - - - - - - - - - - - RSTrackerDB.mdf - @@ -627,25 +611,23 @@ + - - 201803080926442_mig01.cs - - - 201803110803191_addcircular.cs - - - 201803110821504_editcircular.cs - - - 201803111051070_modifycircular.cs - - - 201803120711583_modifyCircular2.cs - + + {8d70a0cb-f6a5-4a7f-8f28-7c3097ca2697} + RSTrackerData + + + {a5b729db-9a38-4769-9859-7e0b6964afbe} + RSTrackerModel + + + {49eeb116-e3aa-4ef7-9595-c7cc2f81e219} + RSTrackerService + 10.0 @@ -662,7 +644,7 @@ - True + False True 62770 / diff --git a/src/RSTracker/RSTracker/RSTracker_BACKUP_12960.csproj b/src/RSTracker/RSTracker_BACKUP_12960.csproj similarity index 100% rename from src/RSTracker/RSTracker/RSTracker_BACKUP_12960.csproj rename to src/RSTracker/RSTracker_BACKUP_12960.csproj diff --git a/src/RSTracker/RSTracker/RSTracker_BACKUP_9736.csproj b/src/RSTracker/RSTracker_BACKUP_9736.csproj similarity index 100% rename from src/RSTracker/RSTracker/RSTracker_BACKUP_9736.csproj rename to src/RSTracker/RSTracker_BACKUP_9736.csproj diff --git a/src/RSTracker/RSTracker/RSTracker_BASE_12960.csproj b/src/RSTracker/RSTracker_BASE_12960.csproj similarity index 100% rename from src/RSTracker/RSTracker/RSTracker_BASE_12960.csproj rename to src/RSTracker/RSTracker_BASE_12960.csproj diff --git a/src/RSTracker/RSTracker/RSTracker_BASE_9736.csproj b/src/RSTracker/RSTracker_BASE_9736.csproj similarity index 100% rename from src/RSTracker/RSTracker/RSTracker_BASE_9736.csproj rename to src/RSTracker/RSTracker_BASE_9736.csproj diff --git a/src/RSTracker/RSTracker/RSTracker_LOCAL_12960.csproj b/src/RSTracker/RSTracker_LOCAL_12960.csproj similarity index 100% rename from src/RSTracker/RSTracker/RSTracker_LOCAL_12960.csproj rename to src/RSTracker/RSTracker_LOCAL_12960.csproj diff --git a/src/RSTracker/RSTracker/RSTracker_LOCAL_9736.csproj b/src/RSTracker/RSTracker_LOCAL_9736.csproj similarity index 100% rename from src/RSTracker/RSTracker/RSTracker_LOCAL_9736.csproj rename to src/RSTracker/RSTracker_LOCAL_9736.csproj diff --git a/src/RSTracker/RSTracker/RSTracker_REMOTE_12960.csproj b/src/RSTracker/RSTracker_REMOTE_12960.csproj similarity index 100% rename from src/RSTracker/RSTracker/RSTracker_REMOTE_12960.csproj rename to src/RSTracker/RSTracker_REMOTE_12960.csproj diff --git a/src/RSTracker/RSTracker/RSTracker_REMOTE_9736.csproj b/src/RSTracker/RSTracker_REMOTE_9736.csproj similarity index 100% rename from src/RSTracker/RSTracker/RSTracker_REMOTE_9736.csproj rename to src/RSTracker/RSTracker_REMOTE_9736.csproj diff --git a/src/RSTracker/RSTracker/Scripts/README.md b/src/RSTracker/Scripts/README.md similarity index 100% rename from src/RSTracker/RSTracker/Scripts/README.md rename to src/RSTracker/Scripts/README.md diff --git a/src/RSTracker/RSTracker/Scripts/_references.js b/src/RSTracker/Scripts/_references.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/_references.js rename to src/RSTracker/Scripts/_references.js diff --git a/src/RSTracker/RSTracker/Scripts/ai.0.22.9-build00167.js b/src/RSTracker/Scripts/ai.0.22.9-build00167.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/ai.0.22.9-build00167.js rename to src/RSTracker/Scripts/ai.0.22.9-build00167.js diff --git a/src/RSTracker/RSTracker/Scripts/ai.0.22.9-build00167.min.js b/src/RSTracker/Scripts/ai.0.22.9-build00167.min.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/ai.0.22.9-build00167.min.js rename to src/RSTracker/Scripts/ai.0.22.9-build00167.min.js diff --git a/src/RSTracker/RSTracker/Scripts/bootstrap-datetimepicker.js b/src/RSTracker/Scripts/bootstrap-datetimepicker.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/bootstrap-datetimepicker.js rename to src/RSTracker/Scripts/bootstrap-datetimepicker.js diff --git a/src/RSTracker/RSTracker/Scripts/bootstrap-datetimepicker.min.js b/src/RSTracker/Scripts/bootstrap-datetimepicker.min.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/bootstrap-datetimepicker.min.js rename to src/RSTracker/Scripts/bootstrap-datetimepicker.min.js diff --git a/src/RSTracker/RSTracker/Scripts/bootstrap.bundle.js b/src/RSTracker/Scripts/bootstrap.bundle.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/bootstrap.bundle.js rename to src/RSTracker/Scripts/bootstrap.bundle.js diff --git a/src/RSTracker/RSTracker/Scripts/bootstrap.bundle.js.map b/src/RSTracker/Scripts/bootstrap.bundle.js.map similarity index 100% rename from src/RSTracker/RSTracker/Scripts/bootstrap.bundle.js.map rename to src/RSTracker/Scripts/bootstrap.bundle.js.map diff --git a/src/RSTracker/RSTracker/Scripts/bootstrap.bundle.min.js b/src/RSTracker/Scripts/bootstrap.bundle.min.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/bootstrap.bundle.min.js rename to src/RSTracker/Scripts/bootstrap.bundle.min.js diff --git a/src/RSTracker/RSTracker/Scripts/bootstrap.bundle.min.js.map b/src/RSTracker/Scripts/bootstrap.bundle.min.js.map similarity index 100% rename from src/RSTracker/RSTracker/Scripts/bootstrap.bundle.min.js.map rename to src/RSTracker/Scripts/bootstrap.bundle.min.js.map diff --git a/src/RSTracker/RSTracker/Scripts/bootstrap.js b/src/RSTracker/Scripts/bootstrap.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/bootstrap.js rename to src/RSTracker/Scripts/bootstrap.js diff --git a/src/RSTracker/RSTracker/Scripts/bootstrap.js.map b/src/RSTracker/Scripts/bootstrap.js.map similarity index 100% rename from src/RSTracker/RSTracker/Scripts/bootstrap.js.map rename to src/RSTracker/Scripts/bootstrap.js.map diff --git a/src/RSTracker/RSTracker/Scripts/bootstrap.min.js b/src/RSTracker/Scripts/bootstrap.min.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/bootstrap.min.js rename to src/RSTracker/Scripts/bootstrap.min.js diff --git a/src/RSTracker/RSTracker/Scripts/bootstrap.min.js.map b/src/RSTracker/Scripts/bootstrap.min.js.map similarity index 100% rename from src/RSTracker/RSTracker/Scripts/bootstrap.min.js.map rename to src/RSTracker/Scripts/bootstrap.min.js.map diff --git a/src/RSTracker/RSTracker/Scripts/esm/popper-utils.js b/src/RSTracker/Scripts/esm/popper-utils.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/esm/popper-utils.js rename to src/RSTracker/Scripts/esm/popper-utils.js diff --git a/src/RSTracker/RSTracker/Scripts/esm/popper-utils.js.map b/src/RSTracker/Scripts/esm/popper-utils.js.map similarity index 100% rename from src/RSTracker/RSTracker/Scripts/esm/popper-utils.js.map rename to src/RSTracker/Scripts/esm/popper-utils.js.map diff --git a/src/RSTracker/RSTracker/Scripts/esm/popper-utils.min.js b/src/RSTracker/Scripts/esm/popper-utils.min.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/esm/popper-utils.min.js rename to src/RSTracker/Scripts/esm/popper-utils.min.js diff --git a/src/RSTracker/RSTracker/Scripts/esm/popper-utils.min.js.map b/src/RSTracker/Scripts/esm/popper-utils.min.js.map similarity index 100% rename from src/RSTracker/RSTracker/Scripts/esm/popper-utils.min.js.map rename to src/RSTracker/Scripts/esm/popper-utils.min.js.map diff --git a/src/RSTracker/RSTracker/Scripts/esm/popper.js b/src/RSTracker/Scripts/esm/popper.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/esm/popper.js rename to src/RSTracker/Scripts/esm/popper.js diff --git a/src/RSTracker/RSTracker/Scripts/esm/popper.js.map b/src/RSTracker/Scripts/esm/popper.js.map similarity index 100% rename from src/RSTracker/RSTracker/Scripts/esm/popper.js.map rename to src/RSTracker/Scripts/esm/popper.js.map diff --git a/src/RSTracker/RSTracker/Scripts/esm/popper.min.js b/src/RSTracker/Scripts/esm/popper.min.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/esm/popper.min.js rename to src/RSTracker/Scripts/esm/popper.min.js diff --git a/src/RSTracker/RSTracker/Scripts/esm/popper.min.js.map b/src/RSTracker/Scripts/esm/popper.min.js.map similarity index 100% rename from src/RSTracker/RSTracker/Scripts/esm/popper.min.js.map rename to src/RSTracker/Scripts/esm/popper.min.js.map diff --git a/src/RSTracker/RSTracker/Scripts/jquery-1.10.2.intellisense.js b/src/RSTracker/Scripts/jquery-1.10.2.intellisense.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/jquery-1.10.2.intellisense.js rename to src/RSTracker/Scripts/jquery-1.10.2.intellisense.js diff --git a/src/RSTracker/RSTracker/Scripts/jquery-3.3.1.intellisense.js b/src/RSTracker/Scripts/jquery-3.3.1.intellisense.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/jquery-3.3.1.intellisense.js rename to src/RSTracker/Scripts/jquery-3.3.1.intellisense.js diff --git a/src/RSTracker/RSTracker/Scripts/jquery-3.3.1.js b/src/RSTracker/Scripts/jquery-3.3.1.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/jquery-3.3.1.js rename to src/RSTracker/Scripts/jquery-3.3.1.js diff --git a/src/RSTracker/RSTracker/Scripts/jquery-3.3.1.min.js b/src/RSTracker/Scripts/jquery-3.3.1.min.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/jquery-3.3.1.min.js rename to src/RSTracker/Scripts/jquery-3.3.1.min.js diff --git a/src/RSTracker/RSTracker/Scripts/jquery-3.3.1.min.map b/src/RSTracker/Scripts/jquery-3.3.1.min.map similarity index 100% rename from src/RSTracker/RSTracker/Scripts/jquery-3.3.1.min.map rename to src/RSTracker/Scripts/jquery-3.3.1.min.map diff --git a/src/RSTracker/RSTracker/Scripts/jquery-3.3.1.slim.js b/src/RSTracker/Scripts/jquery-3.3.1.slim.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/jquery-3.3.1.slim.js rename to src/RSTracker/Scripts/jquery-3.3.1.slim.js diff --git a/src/RSTracker/RSTracker/Scripts/jquery-3.3.1.slim.min.js b/src/RSTracker/Scripts/jquery-3.3.1.slim.min.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/jquery-3.3.1.slim.min.js rename to src/RSTracker/Scripts/jquery-3.3.1.slim.min.js diff --git a/src/RSTracker/RSTracker/Scripts/jquery-3.3.1.slim.min.map b/src/RSTracker/Scripts/jquery-3.3.1.slim.min.map similarity index 100% rename from src/RSTracker/RSTracker/Scripts/jquery-3.3.1.slim.min.map rename to src/RSTracker/Scripts/jquery-3.3.1.slim.min.map diff --git a/src/RSTracker/RSTracker/Scripts/jquery.validate-vsdoc.js b/src/RSTracker/Scripts/jquery.validate-vsdoc.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/jquery.validate-vsdoc.js rename to src/RSTracker/Scripts/jquery.validate-vsdoc.js diff --git a/src/RSTracker/RSTracker/Scripts/jquery.validate.js b/src/RSTracker/Scripts/jquery.validate.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/jquery.validate.js rename to src/RSTracker/Scripts/jquery.validate.js diff --git a/src/RSTracker/RSTracker/Scripts/jquery.validate.min.js b/src/RSTracker/Scripts/jquery.validate.min.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/jquery.validate.min.js rename to src/RSTracker/Scripts/jquery.validate.min.js diff --git a/src/RSTracker/RSTracker/Scripts/jquery.validate.unobtrusive.js b/src/RSTracker/Scripts/jquery.validate.unobtrusive.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/jquery.validate.unobtrusive.js rename to src/RSTracker/Scripts/jquery.validate.unobtrusive.js diff --git a/src/RSTracker/RSTracker/Scripts/jquery.validate.unobtrusive.min.js b/src/RSTracker/Scripts/jquery.validate.unobtrusive.min.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/jquery.validate.unobtrusive.min.js rename to src/RSTracker/Scripts/jquery.validate.unobtrusive.min.js diff --git a/src/RSTracker/RSTracker/Scripts/modernizr-2.6.2.js b/src/RSTracker/Scripts/modernizr-2.6.2.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/modernizr-2.6.2.js rename to src/RSTracker/Scripts/modernizr-2.6.2.js diff --git a/src/RSTracker/RSTracker/Scripts/moment-with-locales.js b/src/RSTracker/Scripts/moment-with-locales.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/moment-with-locales.js rename to src/RSTracker/Scripts/moment-with-locales.js diff --git a/src/RSTracker/RSTracker/Scripts/moment-with-locales.min.js b/src/RSTracker/Scripts/moment-with-locales.min.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/moment-with-locales.min.js rename to src/RSTracker/Scripts/moment-with-locales.min.js diff --git a/src/RSTracker/RSTracker/Scripts/moment.js b/src/RSTracker/Scripts/moment.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/moment.js rename to src/RSTracker/Scripts/moment.js diff --git a/src/RSTracker/RSTracker/Scripts/moment.min.js b/src/RSTracker/Scripts/moment.min.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/moment.min.js rename to src/RSTracker/Scripts/moment.min.js diff --git a/src/RSTracker/RSTracker/Scripts/popper-utils.js b/src/RSTracker/Scripts/popper-utils.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/popper-utils.js rename to src/RSTracker/Scripts/popper-utils.js diff --git a/src/RSTracker/RSTracker/Scripts/popper-utils.js.map b/src/RSTracker/Scripts/popper-utils.js.map similarity index 100% rename from src/RSTracker/RSTracker/Scripts/popper-utils.js.map rename to src/RSTracker/Scripts/popper-utils.js.map diff --git a/src/RSTracker/RSTracker/Scripts/popper-utils.min.js b/src/RSTracker/Scripts/popper-utils.min.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/popper-utils.min.js rename to src/RSTracker/Scripts/popper-utils.min.js diff --git a/src/RSTracker/RSTracker/Scripts/popper-utils.min.js.map b/src/RSTracker/Scripts/popper-utils.min.js.map similarity index 100% rename from src/RSTracker/RSTracker/Scripts/popper-utils.min.js.map rename to src/RSTracker/Scripts/popper-utils.min.js.map diff --git a/src/RSTracker/RSTracker/Scripts/popper.js b/src/RSTracker/Scripts/popper.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/popper.js rename to src/RSTracker/Scripts/popper.js diff --git a/src/RSTracker/RSTracker/Scripts/popper.js.map b/src/RSTracker/Scripts/popper.js.map similarity index 100% rename from src/RSTracker/RSTracker/Scripts/popper.js.map rename to src/RSTracker/Scripts/popper.js.map diff --git a/src/RSTracker/RSTracker/Scripts/popper.min.js b/src/RSTracker/Scripts/popper.min.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/popper.min.js rename to src/RSTracker/Scripts/popper.min.js diff --git a/src/RSTracker/RSTracker/Scripts/popper.min.js.map b/src/RSTracker/Scripts/popper.min.js.map similarity index 100% rename from src/RSTracker/RSTracker/Scripts/popper.min.js.map rename to src/RSTracker/Scripts/popper.min.js.map diff --git a/src/RSTracker/RSTracker/Scripts/respond.js b/src/RSTracker/Scripts/respond.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/respond.js rename to src/RSTracker/Scripts/respond.js diff --git a/src/RSTracker/RSTracker/Scripts/respond.min.js b/src/RSTracker/Scripts/respond.min.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/respond.min.js rename to src/RSTracker/Scripts/respond.min.js diff --git a/src/RSTracker/RSTracker/Scripts/umd/popper-utils.js b/src/RSTracker/Scripts/umd/popper-utils.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/umd/popper-utils.js rename to src/RSTracker/Scripts/umd/popper-utils.js diff --git a/src/RSTracker/RSTracker/Scripts/umd/popper-utils.js.map b/src/RSTracker/Scripts/umd/popper-utils.js.map similarity index 100% rename from src/RSTracker/RSTracker/Scripts/umd/popper-utils.js.map rename to src/RSTracker/Scripts/umd/popper-utils.js.map diff --git a/src/RSTracker/RSTracker/Scripts/umd/popper-utils.min.js b/src/RSTracker/Scripts/umd/popper-utils.min.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/umd/popper-utils.min.js rename to src/RSTracker/Scripts/umd/popper-utils.min.js diff --git a/src/RSTracker/RSTracker/Scripts/umd/popper-utils.min.js.map b/src/RSTracker/Scripts/umd/popper-utils.min.js.map similarity index 100% rename from src/RSTracker/RSTracker/Scripts/umd/popper-utils.min.js.map rename to src/RSTracker/Scripts/umd/popper-utils.min.js.map diff --git a/src/RSTracker/RSTracker/Scripts/umd/popper.js b/src/RSTracker/Scripts/umd/popper.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/umd/popper.js rename to src/RSTracker/Scripts/umd/popper.js diff --git a/src/RSTracker/RSTracker/Scripts/umd/popper.js.map b/src/RSTracker/Scripts/umd/popper.js.map similarity index 100% rename from src/RSTracker/RSTracker/Scripts/umd/popper.js.map rename to src/RSTracker/Scripts/umd/popper.js.map diff --git a/src/RSTracker/RSTracker/Scripts/umd/popper.min.js b/src/RSTracker/Scripts/umd/popper.min.js similarity index 100% rename from src/RSTracker/RSTracker/Scripts/umd/popper.min.js rename to src/RSTracker/Scripts/umd/popper.min.js diff --git a/src/RSTracker/RSTracker/Scripts/umd/popper.min.js.map b/src/RSTracker/Scripts/umd/popper.min.js.map similarity index 100% rename from src/RSTracker/RSTracker/Scripts/umd/popper.min.js.map rename to src/RSTracker/Scripts/umd/popper.min.js.map diff --git a/src/RSTracker/RSTracker/Startup.cs b/src/RSTracker/Startup.cs similarity index 100% rename from src/RSTracker/RSTracker/Startup.cs rename to src/RSTracker/Startup.cs diff --git a/src/RSTracker/RSTracker/Utility/VacancyType.cs b/src/RSTracker/Utility/VacancyType.cs similarity index 100% rename from src/RSTracker/RSTracker/Utility/VacancyType.cs rename to src/RSTracker/Utility/VacancyType.cs diff --git a/src/RSTracker/RSTracker/Views/Account/ConfirmEmail.cshtml b/src/RSTracker/Views/Account/ConfirmEmail.cshtml similarity index 100% rename from src/RSTracker/RSTracker/Views/Account/ConfirmEmail.cshtml rename to src/RSTracker/Views/Account/ConfirmEmail.cshtml diff --git a/src/RSTracker/RSTracker/Views/Account/ExternalLoginConfirmation.cshtml b/src/RSTracker/Views/Account/ExternalLoginConfirmation.cshtml similarity index 100% rename from src/RSTracker/RSTracker/Views/Account/ExternalLoginConfirmation.cshtml rename to src/RSTracker/Views/Account/ExternalLoginConfirmation.cshtml diff --git a/src/RSTracker/RSTracker/Views/Account/ExternalLoginFailure.cshtml b/src/RSTracker/Views/Account/ExternalLoginFailure.cshtml similarity index 100% rename from src/RSTracker/RSTracker/Views/Account/ExternalLoginFailure.cshtml rename to src/RSTracker/Views/Account/ExternalLoginFailure.cshtml diff --git a/src/RSTracker/RSTracker/Views/Account/ForgotPassword.cshtml b/src/RSTracker/Views/Account/ForgotPassword.cshtml similarity index 100% rename from src/RSTracker/RSTracker/Views/Account/ForgotPassword.cshtml rename to src/RSTracker/Views/Account/ForgotPassword.cshtml diff --git a/src/RSTracker/RSTracker/Views/Account/ForgotPasswordConfirmation.cshtml b/src/RSTracker/Views/Account/ForgotPasswordConfirmation.cshtml similarity index 100% rename from src/RSTracker/RSTracker/Views/Account/ForgotPasswordConfirmation.cshtml rename to src/RSTracker/Views/Account/ForgotPasswordConfirmation.cshtml diff --git a/src/RSTracker/RSTracker/Views/Account/Login - Copy.cshtml b/src/RSTracker/Views/Account/Login - Copy.cshtml similarity index 100% rename from src/RSTracker/RSTracker/Views/Account/Login - Copy.cshtml rename to src/RSTracker/Views/Account/Login - Copy.cshtml diff --git a/src/RSTracker/RSTracker/Views/Account/Login.cshtml b/src/RSTracker/Views/Account/Login.cshtml similarity index 100% rename from src/RSTracker/RSTracker/Views/Account/Login.cshtml rename to src/RSTracker/Views/Account/Login.cshtml diff --git a/src/RSTracker/RSTracker/Views/Account/Register.cshtml b/src/RSTracker/Views/Account/Register.cshtml similarity index 100% rename from src/RSTracker/RSTracker/Views/Account/Register.cshtml rename to src/RSTracker/Views/Account/Register.cshtml diff --git a/src/RSTracker/RSTracker/Views/Account/ResetPassword.cshtml b/src/RSTracker/Views/Account/ResetPassword.cshtml similarity index 100% rename from src/RSTracker/RSTracker/Views/Account/ResetPassword.cshtml rename to src/RSTracker/Views/Account/ResetPassword.cshtml diff --git a/src/RSTracker/RSTracker/Views/Account/ResetPasswordConfirmation.cshtml b/src/RSTracker/Views/Account/ResetPasswordConfirmation.cshtml similarity index 100% rename from src/RSTracker/RSTracker/Views/Account/ResetPasswordConfirmation.cshtml rename to src/RSTracker/Views/Account/ResetPasswordConfirmation.cshtml diff --git a/src/RSTracker/RSTracker/Views/Account/SendCode.cshtml b/src/RSTracker/Views/Account/SendCode.cshtml similarity index 100% rename from src/RSTracker/RSTracker/Views/Account/SendCode.cshtml rename to src/RSTracker/Views/Account/SendCode.cshtml diff --git a/src/RSTracker/RSTracker/Views/Account/VerifyCode.cshtml b/src/RSTracker/Views/Account/VerifyCode.cshtml similarity index 100% rename from src/RSTracker/RSTracker/Views/Account/VerifyCode.cshtml rename to src/RSTracker/Views/Account/VerifyCode.cshtml diff --git a/src/RSTracker/RSTracker/Views/Account/_ExternalLoginsListPartial.cshtml b/src/RSTracker/Views/Account/_ExternalLoginsListPartial.cshtml similarity index 100% rename from src/RSTracker/RSTracker/Views/Account/_ExternalLoginsListPartial.cshtml rename to src/RSTracker/Views/Account/_ExternalLoginsListPartial.cshtml diff --git a/src/RSTracker/RSTracker/Views/Circulars/Create.cshtml b/src/RSTracker/Views/Circulars/Create.cshtml similarity index 99% rename from src/RSTracker/RSTracker/Views/Circulars/Create.cshtml rename to src/RSTracker/Views/Circulars/Create.cshtml index db47dc7..b941dcf 100644 --- a/src/RSTracker/RSTracker/Views/Circulars/Create.cshtml +++ b/src/RSTracker/Views/Circulars/Create.cshtml @@ -1,4 +1,4 @@ -@model RSTracker.Models.Circular +@model HSTrackerModel.Models.Circular