FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Employes system
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Employes system
Posted: Thu Nov 17, 2016 01: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 March-April 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
Posts: 2064
Joined: Fri Jan 06, 2006 09:28 PM
Re: Employes system
Posted: Thu Nov 17, 2016 05: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... :-)
Dios no está muerto...



Gracias a mi Dios ante todo!
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: Employes system
Posted: Thu Nov 17, 2016 06: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
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Employes system
Posted: Fri Nov 18, 2016 09: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
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Employes system
Posted: Sat Nov 19, 2016 08: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

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 March-April 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

Continue the discussion