473,467 Members | 1,587 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

help! scheduling employees projects

Hello! I need help to organize the working time spent by each employee
on projects. I thought this wuold be a rather simple probelm, but i realized it is not!!

I have many projects going on, starting at different dates, and each
employee can work on 0/N projects, for # months.
I built three tables: Projects, Employees, Manmonths.
Projects: (K) project_id, acronym, start_date, end_date, ....
Employee: (K) empl_Id, full_name, ....
Manmonths: (K) project_id, (K) empl_id, manmonths
WHen I ask for a report, I would like to see something like this:
empl_id:
full name:

gen feb mar apr mag giu lug ago set ott nov dic
2002 PRG1 PRG1
2003 PRG2 PRG2 PRG2 PRG2 PRG2 PRG3 PRG3
2004 PRG3 PRG3 PRG3 PRG4 PRG4 PRG4 PRG4 PRG4

where PRGnr can be either the Project acronym or the project_id, no matter.
The insertion form only asks how many months it takes for the person to dedicate
to a certain project, no other information, since I suppose
he starts working as the project starts. This is the mistake!
I see the trouble when, for example, I have two projects, both
starting on 1st December 2002, I say that the man works 3 months in
the first project and 4 months in the second one. I should find a way
to schedule his activity in such a way that he's busy for the next 7 months.
When I ask how long did he work, in the interval 1st december 2002-1st
march 2002 I get 6 months out of 3!
I tried to figure out how to better manage the situation but I cannot
find a solution. Can anyone help me?
I'm not asking you to develop a fully functional scheduling application for me,
just help me in finding a way out of this...
Thank you in advance

Lisa

Nov 12 '05 #1
3 1708
lisa[nospam].xxx wrote:
Hello! I need help to organize the working time spent by each employee
on projects. I thought this wuold be a rather simple probelm, but i
realized it is not!!

I have many projects going on, starting at different dates, and each
employee can work on 0/N projects, for # months.
I built three tables: Projects, Employees, Manmonths.
Projects: (K) project_id, acronym, start_date, end_date, ....
Employee: (K) empl_Id, full_name, ....
Manmonths: (K) project_id, (K) empl_id, manmonths
WHen I ask for a report, I would like to see something like this:
empl_id: full
name:

gen feb mar apr mag giu lug ago set ott
nov dic
2002 PRG1 PRG1
2003 PRG2 PRG2 PRG2 PRG2 PRG2
PRG3 PRG3
2004 PRG3 PRG3 PRG3 PRG4 PRG4 PRG4
PRG4 PRG4

where PRGnr can be either the Project acronym or the project_id, no matter.
The insertion form only asks how many months it takes for the person to
dedicate
to a certain project, no other information, since I suppose
he starts working as the project starts. This is the mistake!
I see the trouble when, for example, I have two projects, both
starting on 1st December 2002, I say that the man works 3 months in
the first project and 4 months in the second one. I should find a way
to schedule his activity in such a way that he's busy for the next 7
months.
When I ask how long did he work, in the interval 1st december 2002-1st
march 2002 I get 6 months out of 3!
I tried to figure out how to better manage the situation but I cannot
find a solution. Can anyone help me?
I'm not asking you to develop a fully functional scheduling application
for me,
just help me in finding a way out of this... Thank you in advance

Lisa

Have you considered MS Project? It is a program designed to manage
projects and manpower and time frames. If you are a project manager, I
don't see how you could function w/o a tool like it.

Nov 12 '05 #2
"lisa[nospam].xxx" <"lisa[nospam].xxx"@libero.it> wrote in message
news:c6**********@newsfeed.cineca.it...
Hello! I need help to organize the working time spent by each employee
on projects. I thought this wuold be a rather simple probelm, but i realized it is not!!
I have many projects going on, starting at different dates, and each
employee can work on 0/N projects, for # months.
I built three tables: Projects, Employees, Manmonths.
Projects: (K) project_id, acronym, start_date, end_date, ....
Employee: (K) empl_Id, full_name, ....
Manmonths: (K) project_id, (K) empl_id, manmonths
WHen I ask for a report, I would like to see something like this:
empl_id:
full name:


These types of designs are best done using a calendar table. The calendar
table holds all the individual date elements, (days, weeks, months or
whatever) that you are ever likely to need. When you assign a project to a
person you specify the start and end dates for the project. Whether you use
months or days as your date unit depends on your needs - here I've used
days). These are the tables I suggest:

create table calendar
(
calDate datetime not null,
monthText varchar(15) not null,
yearText int not null,
constraint PK_calendar primary key
(calDate)
)

create table employees
(
empID int not null
constraint PK_employees primary key,
empName varchar(100) not null
)

create table projects
(
projectID int not null
constraint PK_projects primary key,
projectDescription varchar(255) null
)

create table assignedProjects
(
projectID int not null
constraint FK_assignedProjects_projectID
references projects(projectID),
empID int not null
constraint assignedProjects_empID
references employees(empID),
startDate datetime not null
constraint FK_projects_startDate
references calendar(calDate),
endDate datetime not null
constraint FK_projects_endDate
references calendar(calDate),
constraint PK_assignedProjects primary key (projectID, empID)
)
you can fill the calendar table with code like this

Private Sub fillCalendar()

Dim d As Date
Dim rst As ADODB.Recordset

Set rst = New ADODB.Recordset
rst.Open "calendar", CurrentProject.Connection, adOpenStatic,
adLockOptimistic, adCmdTable
For d = #1/1/2004# To #12/31/2009#
rst.AddNew
rst("calDate").Value = d
rst("monthText").Value = Format$(d, "mmm")
rst("yearText").Value = Year(d)
rst.Update
Next d
rst.Close
Set rst = Nothing

End Sub



Nov 12 '05 #3
John Winterbottom wrote:
These types of designs are best done using a calendar table. The calendar
table holds all the individual date elements, (days, weeks, months or
whatever) that you are ever likely to need. When you assign a project to a
person you specify the start and end dates for the project. Whether you use
months or days as your date unit depends on your needs - here I've used
days). These are the tables I suggest:
...snip...


Thank you very much John, but I really cannot make out how to use this calendar
table for my purposes. Can you help me?

Lisa

Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an rtf file created in word. I used the Help...
9
by: Tom | last post by:
A question for gui application programmers. . . I 've got some GUI programs, written in Python/wxPython, and I've got a help button and a help menu item. Also, I've got a compiled file made with...
4
by: Sarir Khamsi | last post by:
Is there a way to get help the way you get it from the Python interpreter (eg, 'help(dir)' gives help on the 'dir' command) in the module cmd.Cmd? I know how to add commands and help text to...
6
by: wukexin | last post by:
Help me, good men. I find mang books that introduce bit "mang header files",they talk too bit,in fact it is my too fool, I don't learn it, I have do a test program, but I have no correct doing...
3
by: Colin J. Williams | last post by:
Python advertises some basic service: C:\Python24>python Python 2.4.1 (#65, Mar 30 2005, 09:13:57) on win32 Type "help", "copyright", "credits" or "license" for more information. >>> With...
7
by: Corepaul | last post by:
Missing Help Files When I enter "recordset" as the keyword and search the Visual Basic Help index, I get many topics of interest in the resulting list. But there isn't any information available...
8
by: Mark | last post by:
I have loaded Visual Studio .net on my home computer and my laptop, but my home computer has an abbreviated help screen not 2% of the help on my laptop. All the settings look the same on both...
10
by: JonathanOrlev | last post by:
Hello everybody, I wrote this comment in another message of mine, but decided to post it again as a standalone message. I think that Microsoft's Office 2003 help system is horrible, probably...
1
by: trunxnirvana007 | last post by:
'UPGRADE_WARNING: Array has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="9B7D5ADD-D8FE-4819-A36C-6DEDAF088CC7"' 'UPGRADE_WARNING: Couldn't resolve...
0
by: hitencontractor | last post by:
I am working on .NET Version 2003 making an SDI application that calls MS Excel 2003. I added a menu item called "MyApp Help" in the end of the menu bar to show Help-> About. The application...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.