Exemple #1
0
        private void btnGetValue_Click(object sender, RoutedEventArgs e)
        {
            try {
                clsGloFun.LogWrite("User Option: GET VALUE", "INFO");

                //Check muna status ng MDS kung online ba
                MainWindow.GetChequesInBox();
                MainWindow.GetNotesInBox();
            } catch (Exception ex) {
                //Go to Out of Service Page
            }
        }
Exemple #2
0
        private void Window_MouseDown(object sender, RoutedEventArgs e)
        {
            try {
                clsGloFun.LogWrite("*Start Transaction*", "INFO");
                clsGloFun.LogWrite("Card Type: NONCARD", "INFO");

                ////Check mo if cutoff na ba
                TimeSpan start = TimeSpan.Parse("00:00");                  // 12 aM
                TimeSpan end   = TimeSpan.Parse(clsGloVar.str_CutOffTime); // 5 PM
                TimeSpan now   = DateTime.Now.TimeOfDay;

                clsGloVar.str_CardType = "NONCARD";
                ////Log mo yung journal

                //Check if Ilan laman ng CheckBox
                MainWindow.GetChequesInBox();

                //Check if ilan laman ng CashBox
                MainWindow.GetNotesInBox();

                ////Check mo if may receipt

                if (now >= start && now <= end)
                {
                    clsGloVar.ushrt_IsCutOff = 0;

                    Uri uri = new Uri("Page_SelectTrans.xaml", UriKind.RelativeOrAbsolute);
                    NavigationService.Navigate(uri);
                }
                else
                {
                    clsGloVar.ushrt_IsCutOff = 1;

                    Uri uri = new Uri("Page_SelectTrans.xaml", UriKind.RelativeOrAbsolute);
                    NavigationService.Navigate(uri);
                }
            } catch (Exception ex) {
                //Go to Out of Service Page
            }
        }