Exemple #1
0
        private void PrintSLCClick(object sender, RoutedEventArgs e)
        {
            if (SLCadmissionNumber.Text == "")
            {
                MessageBox.Show("Admission Number is empty");
                SLCadmissionNumber.Focus();
            }
            else
            {
                var      id    = int.Parse(SLCadmissionNumber.Text.ToString());
                SLCTable modal = new SLCTable();
                modal.AdmissionNumber = id;
                modal.DateIssued      = DateTime.Now.Date;
                modal.IssuedOnce      = "True";
                context.SLCTables.Add(modal);
                context.SaveChanges();

                BCViewer bv = new BCViewer(id, "False", "SLC");
                bv.Show();
            }
        }
Exemple #2
0
        //++++++++++++++++++++++++++++++++++++++ CERTIFICATES +++++++++++++++++++++++++++

        //++++++++++++++++++++++++++++++++++++++ BIRTH CERTIFICATES +++++++++++++++++++++++++++
        private void PrintBCClick(object sender, RoutedEventArgs e)
        {
            if (admissionNumber.Text == "")
            {
                MessageBox.Show("Admission Number is empty");
                admissionNumber.Focus();
            }
            else
            {
                if (isWithdrawn.IsChecked == true)
                {
                    var      id = int.Parse(admissionNumber.Text.ToString());
                    BCViewer bv = new BCViewer(id, "True", "BC");
                    bv.Show();
                }
                else
                {
                    var      id = int.Parse(admissionNumber.Text.ToString());
                    BCViewer bv = new BCViewer(id, "False", "BC");
                    bv.Show();
                }
            }
        }