Introduction
This tool can be use by any organisation to trace the employee entry and exit time. The data will be stored on the SQL database. If you want to implement this tool in your organisation, please leave me a message on the board below.
Background
There is a separate report generator engine which can be customized and can help to search the data in different ways. such as an introduction to the basic ideas presented?
Using the Code
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.ComponentModel.Com2Interop;
using System.Runtime.InteropServices;
using System.Net;
namespace BetaTimeTracker
{
public partial class Form1 : Form
{
[DllImport("Advapi32.dll", EntryPoint = "GetUserName",ExactSpelling = false,
SetLastError = true)]
static extern bool GetUserName(
[MarshalAs(UnmanagedType.LPArray)] byte[] lpBuffer,
[MarshalAs(UnmanagedType.LPArray)] Int32[] nSize);
string IP, username, machinename;
static long transactionID;