Esempio n. 1
0
        private void btn_DeletedCustomerReport_Click(object sender, RoutedEventArgs e)
        {
            AdvancedReport ar = new AdvancedReport(vwDeletedCustomers, 3, Xstart, Xend);

            ar.Title       = "Silinmiş müştərilər";
            ar.currentUser = currentUser;
            using (TextWriter tw = new StreamWriter(path, true))
            {
                tw.WriteLine("{0} {1} Success:  User {2} with privelegies level : {3} viewed advanced report fordeleted cusromers in period {4}, - {5}", DateTime.Now.ToLongTimeString(),
                             DateTime.Now.ToShortDateString(), currentUser.Username, currentUser.Role.Name, Xstart, Xend);
            }
            ar.Show();
        }
Esempio n. 2
0
        private void btn_NewCommentReport_Click(object sender, RoutedEventArgs e)
        {
            AdvancedReport ar = new AdvancedReport(vwNewComment, 4, Xstart, Xend);

            ar.Title = "Yeni rəylər";
            using (TextWriter tw = new StreamWriter(path, true))
            {
                tw.WriteLine("{0} {1} Success:  User {2} with privelegies level : {3} viewed advanced report for new comments in period {4}, - {5}", DateTime.Now.ToLongTimeString(),
                             DateTime.Now.ToShortDateString(), currentUser.Username, currentUser.Role.Name, Xstart, Xend);
            }
            ar.currentUser = currentUser;
            ar.Show();
        }
Esempio n. 3
0
        private void btn_IncompletedTaskReport_Click(object sender, RoutedEventArgs e)
        {
            AdvancedReport ar = new AdvancedReport(vwIncimpleteTasks, 1, Xstart, Xend);

            ar.Title       = "Bitirilməmiş tasklar";
            ar.currentUser = currentUser;
            using (TextWriter tw = new StreamWriter(path, true))
            {
                tw.WriteLine("{0} {1} Success:  User {2} with privelegies level : {3} viewed advanced report for Incompleted tasks in period {4}, - {5}", DateTime.Now.ToLongTimeString(),
                             DateTime.Now.ToShortDateString(), currentUser.Username, currentUser.Role.Name, Xstart, Xend);
            }
            ar.Show();
        }