Employes system

Employes system

Postby Silvio.Falconi » Thu Nov 17, 2016 1:11 pm

I must create a small archive to check the presences of employes
times of attendance are inserted manually and not with the help of electonic readers
I created a database with fields for the 5 characters such as entrances and exits sample "08:00" - "14: 00"
my problem is that although I create 5 input groups and output I am afraid that not enough
How can I fix the problem?
I wish also check the tollerance of entrance and the exits .how I must make ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6849
Joined: Thu Oct 18, 2012 7:17 pm

Re: Employes system

Postby joseluisysturiz » Thu Nov 17, 2016 5:24 pm

Silvio.Falconi wrote:I must create a small archive to check the presences of employes
times of attendance are inserted manually and not with the help of electonic readers
I created a database with fields for the 5 characters such as entrances and exits sample "08:00" - "14: 00"
my problem is that although I create 5 input groups and output I am afraid that not enough
How can I fix the problem?
I wish also check the tollerance of entrance and the exits .how I must make ?


Podrias acalara cual es el miedo que tienes.? ya que mi ingles no es muy bueno y el traductor no aclara a que es lo que le temes en lo que haces y a que te refieres con que creas 5 grupos de entradas-salidas, son valores prefeterminados o son para compararlos con la hora de entrada-salida.? si puedes colocal tambien tu pregunta en español para entenderte un poco mejor, saludos, gracias... :shock:
Dios no está muerto...

Gracias a mi Dios ante todo!
User avatar
joseluisysturiz
 
Posts: 2064
Joined: Fri Jan 06, 2006 9:28 pm
Location: Guatire - Caracas - Venezuela

Re: Employes system

Postby Armando » Thu Nov 17, 2016 6:19 pm

Sivio:

Puedes crear un archivo con los siguientes campos

Número de empleado
Fecha
Hora de llegada
Hora de salida

Un registro por cada entrada y/o salida, así no tienes límites.

Ejemplos:
1245 2016/11/17 08:00 00:00
1245 2016/11/17 00:00 14:10
1245 2016/11/17 15:15 00:00
1245 2016/11/17 19:00

1245 2016/1118 07:50 00:00

Saludos
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3084
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: Employes system

Postby James Bott » Fri Nov 18, 2016 9:32 pm

As Armando has shown you need a one-to-many database relationship.

For more information on database design (including one-to-many) see this link:

http://www.ntu.edu.sg/home/ehchua/progr ... esign.html

Regards,
James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Employes system

Postby Silvio.Falconi » Sat Nov 19, 2016 8:07 am

please I not Problem with one to many dbf...

I made 4 group of IN and OUT
E1 U1
E2 U2
E3 U3
E4 U4
generally I use the first for the morning turn and the third for the afternoon turn

but now I saw employes go in and go out many times at morning and on afternoon - the 4 groups are not enough
I thinked to create another dbf with only these fileds

Emplo_number 4 cr
day 8 d
E 5 cr
U 5cr
activity 5cr

and then call all to my elaboration calc

but I wanted to put all the entry and exit for that specific day in a table xbrowse
sample:
this is now the table :
-----------------------------------------------------------------------------------------------------------------
DAY E1 U2 E2 U2 E3 U3 E4 U4
---------------------------------------------------------------------------------------------------------------
4.11.13 || 08:00 |14:00 | | 00:00 |00:00 | | 15:00 |18:00 | | 00:00 |00:00 |
-------------------------------------------------------------------------------------------------------------------

with the new archive I must insert all time stamping on a text field because because the xbrowse does not allow the inclusion of other dbf inside a table column instead of Access .I saw this in an application made with vbasic and access

please see it Image

where I see 8 groups but on the bottom I see horizontal scroll of the column

please see the 13.01 day the emplyer have many times stamping

I f I create 8 groups instead my 4 I'm afraid it not enough....
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6849
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 34 guests