Exemple #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            StaticApprovalList.staticApprovalList.Clear();

            pitem.RetrieveDeclined(mitem._EMPID, mitem._POSITION);
            pending.Visibility   = Visibility.Visible;
            approval.ItemsSource = StaticApprovalList.staticApprovalList;
        }
Exemple #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            StaticApprovalList.staticApprovalList.Clear();
            StaticHRList.HRlist.Clear();

            if (mitem._POSITION == "Human Resources Head")
            {
                pitem.RetrieveHrDeclined(mitem._EMPID);
                approval.ItemsSource = StaticHRList.HRlist;
                pending.Visibility   = Visibility.Visible;
            }
            else
            {
                pitem.RetrieveDeclined(mitem._EMPID, mitem._POSITION);
                pending.Visibility   = Visibility.Visible;
                approval.ItemsSource = StaticApprovalList.staticApprovalList;
            }
        }