473,549 Members | 2,455 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Any ideas please

375 Contributor
Hi,

I am preparing an employee portal. As the employee logs in website he/she will be treated as present, if he has not logged in it will treated as absence.

This I have done. Now as he logs in I will compare with the previous day using datetime.add(-1) get the values and see whether he logged in the previous day. If not he will be required to fill out the reason of his absence. I will find out whether the day was sunday using day function. if so he will not be asked for any reason. Now my problem is if he puts leave more than one day Consider this situation an employee has taken leave on friday,saturday and sunday. saturday was some public holiday. Now only I have to ensure that friday was treated as absent not other days. Of course I will retrieve all the dates from where he last logged in.But how to proceed from now on.

Please give some idea.



Regards

cmrhema
Nov 30 '07 #1
6 1549
Shashi Sadasivan
1,435 Recognized Expert Top Contributor
you could retrieve all recods where the user was absent and has not filled a reason, (obviously skipping all the days the user had taken a leave, and when it was a holiday)
Nov 30 '07 #2
cmrhema
375 Contributor
you could retrieve all recods where the user was absent and has not filled a reason, (obviously skipping all the days the user had taken a leave, and when it was a holiday)
That means I should already have a database which has stored all the public holidays etc.
Nov 30 '07 #3
Shashi Sadasivan
1,435 Recognized Expert Top Contributor
That means I should already have a database which has stored all the public holidays etc.
Yes you would have to get the information of when public holidays happen,
as they change from region to regio (that would either mein country to coutnry, or state to state, sometimes even cities matter)
Nov 30 '07 #4
redhimanshu
6 New Member
Hello,

I am new to this field but even then i ll try to solve it.

Only you have to do is...

Make a HOLIDAYPOINTER for each day. This field should be kept "1" if the day is holiday and kept "0" if the day is normal

After that when a user logged in just you have to check a single HOLIDAYPOINTER value, If it is 0 then ask for the EXCUSE. Otherwise leave it....

Hope it will work

All the best
Dec 5 '07 #5
cmrhema
375 Contributor
Hello,

I am new to this field but even then i ll try to solve it.

Only you have to do is...

Make a HOLIDAYPOINTER for each day. This field should be kept "1" if the day is holiday and kept "0" if the day is normal

After that when a user logged in just you have to check a single HOLIDAYPOINTER value, If it is 0 then ask for the EXCUSE. Otherwise leave it....

Hope it will work

All the best
Thanks Himanshu for the idea
Its a pretty idea
Dec 6 '07 #6
gr8tgrad
1 New Member
Hello, Our US-based software firm has internally developed an online timesheet program that is used by employees submitting their worked hours (log ins, etc;). This software is for sale currently (Jan 08) as a complete Intellectual Buyout (IP) sale - working code and all files/folders. Our company has just released the site from beta testing and now has several companies using it. We are selling it - even though successful - because the work differentiates from our organization's current goals. Please email to customerservice @onlinetimetrac ker.net for further information. Thanks!


Hi,

I am preparing an employee portal. As the employee logs in website he/she will be treated as present, if he has not logged in it will treated as absence.

This I have done. Now as he logs in I will compare with the previous day using datetime.add(-1) get the values and see whether he logged in the previous day. If not he will be required to fill out the reason of his absence. I will find out whether the day was sunday using day function. if so he will not be asked for any reason. Now my problem is if he puts leave more than one day Consider this situation an employee has taken leave on friday,saturday and sunday. saturday was some public holiday. Now only I have to ensure that friday was treated as absent not other days. Of course I will retrieve all the dates from where he last logged in.But how to proceed from now on.

Please give some idea.



Regards

cmrhema
Jan 7 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

4
3145
by: FLEB | last post by:
I like PHP for its excellent inline integration into standard HTML files, but I like Perl for its quick-moving syntax and simpler data-processing. To resolve this deep-seated inner turmoil (oh, the drama) I've been trying to think of good ways to get Perl code to run inline in a PHP script. Here are a few of my ideas. If anyone has any further...
0
2663
by: Gennadiy Tit | last post by:
I have to load 1700 records from DB into tree view (NOT LIST VIEW). I have tried to load it with locking the windows and control and other stuff, but it not givingme the result that I need. It takes around 18 minutes to load them all. See I am loading those record not in one straight line (in tree view control), but like this:...
14
2834
by: David MacQuigg | last post by:
I am starting a new thread so we can avoid some of the non-productive argument following my earlier post "What is good about Prothon". At Mr. Hahn's request, I will avoid using the name "Prothon" in the subject of any post to this newsgroup. Please ignore the old thread. I've also updated my webpage http://ece.arizona.edu/~edatools/Python...
3
17309
by: Brian Piotrowski | last post by:
Hi All, I'm trying to run a simple query from an ASP page. I want the query to select each individual field in a table and compare it to another table. If the value doesn't exist, I want it reported. Here's the code I have to do this check: 'Check to see if there are any assemblies not in the database! strSQL = "select...
3
4530
by: Slash | last post by:
Hello everyone I'm looking for seminar topics (and project ideas too) for my final year in Computer Engineering. I'm considering doing something on C++/Linux, considering that I love it so much -- I'm still learning it though. The topic could be anything computer-related at all, anything new and interesting perhaps :) Perhaps a research...
1
2592
by: Az Tech | last post by:
Hi people, (Sorry for the somewhat long post). I request some of the people on this group who have good experience using object-orientation in the field, to please give some good ideas for topics to include in a course on object-orientation that I'm going to conduct. (I will later summarize all the replies and discussion, for the
3
1605
by: kaosyeti | last post by:
hello. i want to first say that i welcome anyone's ideas for this post. please feel free to throw your 2 cents in. i have a db that i'm finishing that i'm going to be giving to others to use. the ONLY thing they're going to need to manipulate in this db are 3 forms and 1 simple table (1 field which is a list of names). what is the best way...
1
1781
by: Brian Piotrowski | last post by:
Hi All, I'm trying to run a simple query from an ASP page. I want the query to select each individual field in a table and compare it to another table. If the value doesn't exist, I want it reported. Here's the code I have to do this check: 'Check to see if there are any assemblies not in the database! strSQL = "select...
3
1241
by: pitachu | last post by:
hi all, I need some high level and efficient ideas on how caching should be designed in the scenario below. The application and the cache will most likely be in VB.NET. I have a central interface (does not necessarily have to be a website) that customers will access. This interface would connect to a load balancer, which would then...
0
1222
by: bcannon | last post by:
At Guido's suggestion, a new mailing list has been created named Python-Ideas (http://mail.python.org/mailman/listinfo/python-ideas). This list is meant as a place for speculative, pie-in-the-sky language design ideas to be discussed and honed to the point of practically being a PEP before being presented to python-dev or python-3000. This...
0
7736
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7982
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7500
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6066
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3514
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3494
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1961
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1079
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
783
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.