Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1049625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:38:48+00:00 2026-05-16T16:38:48+00:00

I have what seems to be a simple employee time request web application I

  • 0

I have what seems to be a simple employee time request web application I have to make (C#, Silverlight or ASP.NET). An employee can request vacation time, sick time, maternity leave, comp time, etc (there are probably about 10 different types of leave and could be more in the future) and their manager has to approve each request.

It really turns into a mess with all of the anomolies and such that I must anticipate. People in different roles get different amounts of vacation time, for example. Some people have vacation time accrued, and others get it all up from at the start of the fiscal year (September 1st). Employees have a bank they can keep of sick time and vacation time, but the size of these banks is limited and varies according to the employee role. At any point in time I need to be able to see how much an employee has left and how much is available to them. The biggest anomoly I believe, is that an employee can change roles (ie switch to a manager at any particular time and therefore start getting more vacation from that point forward).

It’s quite a complicated problem. My question was this:

How should I design this? What is a good design pattern to use for this where I can be very flexible in the future?

Thanks!

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T16:38:48+00:00Added an answer on May 16, 2026 at 4:38 pm

    A starting design pattern will be MVC, so probably make use of ASP.NET MVC as its built in 😉

    This is so you can have your view code, separated from your more complex business rules you have for different employees.

    The strategy design pattern will come in for calculating their time left, so you can encapsulate the code for working out how many days they have left based on if they are based from 1st September, or some other date.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have what seems like a simple problem. I have a Spring web app,
I have this simple example I can't seems to get working : MERGE INTO
It seems I can't easily have an XSD declaration for this simple XML <root>
I have a timesheet application in Asp.Net MVC, but the question should be general
We have a very simple list with in/out status. Each time an employee clocks
I have a problem which seems simple, but I can't find an elegant solution
I have what seems like a simple arrangement: a list of tags in a
This seems simple but I've exhausted my Google search patience. I have a RelativeLayout
This seems like a simple problem: I have a WF4 activity that guides the
I have a what seems to be a simple question but for the life

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.