473,382 Members | 1,375 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 1704
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel

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.