private void btnNew_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                if (status == "Application")
                {
                    this.Close();
                    wpfSelectClient frm = new wpfSelectClient();
                    frm.UserID = UserID;
                    frm.iDept = iDept;
                    frm.ShowDialog();
                }
                else
                {
                    this.Close();
                    wpfLoanSearch frm = new wpfLoanSearch();
                    frm.UserID = UserID;
                    frm.status = status;
                    frm.iDept = iDept;
                    frm.ShowDialog();
                }
            }
            catch (Exception ex)
            {
                System.Windows.MessageBox.Show("Runtime Error: " + ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
                return;
            }

        }
 private void btnApproval_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         wpfLoanSearch frm = new wpfLoanSearch();
         frm.status = "Renewal Approval";
         frm.iDept = "Financing";
         frm.UserID = UserID;
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         System.Windows.MessageBox.Show("Runtime Error: " + ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
         return;
     }
 }
 private void btnVoid_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         wpfLoanSearch frm = new wpfLoanSearch();
         frm.status = "Voiding2";
         frm.UserID = UserID;
         this.Close();
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         System.Windows.MessageBox.Show("Runtime Error: " + ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
         return;
     }
 }
Exemplo n.º 4
0
 private void itm11_MouseUp(object sender, MouseButtonEventArgs e)
 {
     try
     {
         wpfLoanSearch frm = new wpfLoanSearch();
         frm.status = "Restructure";
         frm.iDept = "Financing";
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         System.Windows.MessageBox.Show("Runtime Error: " + ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
         return;
     }
 }
Exemplo n.º 5
0
 private void btnRef_Copy2_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         wpfLoanSearch frm = new wpfLoanSearch();
         frm.status = "Confirmation";
         frm.UserID = UserID;
         using (var ctx = new finalContext())
         {
             var usr = ctx.Employees.Find(UserID);
             if (usr.Department == "Both")
                 frm.iDept = "Financing";
             else
                 frm.iDept = usr.Department;
         }
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         System.Windows.MessageBox.Show("Runtime Error: " + ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
         return;
     }
 }
Exemplo n.º 6
0
 private void btnMConfirmApplication_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         wpfLoanSearch frm = new wpfLoanSearch();
         frm.status = "Confirmation";
         frm.UserID = UserID;
         frm.iDept = "Micro Business";
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         System.Windows.MessageBox.Show("Runtime Error: " + ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
         return;
     }
 }
Exemplo n.º 7
0
 private void btnVAging_Click(object sender, RoutedEventArgs e)
 {
     wpfLoanSearch frm = new wpfLoanSearch();
     frm.status = "Aging";
     frm.UserID = UserID;
     frm.ShowDialog();
 }