Exemplo n.º 1
0
        public FindAholaClockPUnchesForEmployeeDataSet FindAholaClockPunchesForEmployee(int intEmployeeID, DateTime dataStartDate, DateTime datEndDate)
        {
            try
            {
                aFindAholaClockPunchesforEmployeeDataSet      = new FindAholaClockPUnchesForEmployeeDataSet();
                aFindAholaClockPunchesForEmployeeTableAdapter = new FindAholaClockPUnchesForEmployeeDataSetTableAdapters.FindAholaClockPunchesForEmployeeTableAdapter();
                aFindAholaClockPunchesForEmployeeTableAdapter.Fill(aFindAholaClockPunchesforEmployeeDataSet.FindAholaClockPunchesForEmployee, intEmployeeID, dataStartDate, datEndDate);
            }
            catch (Exception Ex)
            {
                TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Employee Punched Hours Class // Find Ahola Clock Punches For Employee " + Ex.Message);
            }

            return(aFindAholaClockPunchesforEmployeeDataSet);
        }
Exemplo n.º 2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            DateTime datStartDate;
            DateTime datEndDate;

            try
            {
                datStartDate = TheDateSearchClass.SubtractingDays(MainWindow.gdatPayDate, 6);
                datEndDate   = TheDateSearchClass.AddingDays(MainWindow.gdatPayDate, 1);

                TheFindAholaClockPunchesForEmployeeDataSet = TheEmployeePunchedHoursClass.FindAholaClockPunchesForEmployee(MainWindow.gintEmployeeID, datStartDate, datEndDate);

                dgrEmployeeHours.ItemsSource = TheFindAholaClockPunchesForEmployeeDataSet.FindAholaClockPunchesForEmployee;
            }
            catch (Exception Ex)
            {
                TheSendEmailClass.SendEventLog("New Blue Jay ERP // Ahola Clock Punches // Window Loaded " + Ex.Message);

                TheEventLogClass.InsertEventLogEntry(DateTime.Now, "New Blue Jay ERP // Ahola Clock Punches // Window Loaded " + Ex.Message);

                TheMessagesClass.ErrorMessage(Ex.ToString());
            }
        }