示例#1
0
        private void BtnGenerateBill_Click(object sender, RoutedEventArgs e)
        {
            var patient = (Patient)DataGridPatient.SelectedItem;

            PdfConnector.GenerateBill(patient);
            throw new NotImplementedException();
        }
示例#2
0
        public void GenerateBillTest()
        {
            var patient = new Patient
            {
                Id             = 1,
                Name           = "Muster",
                Vorname        = "Hans",
                Strasse        = "Musterstrasse 33",
                Plz            = 3333,
                Ort            = "Musterdorf",
                Geburtsdatum   = new DateTime(1999, 9, 9),
                Geschlecht     = GeschlechtType.M,
                PatientenNr    = "PatientNr_100001",
                AhvNr          = "AhvNr_100001",
                VekaNr         = "VekaNr_100001",
                VersichertenNr = "VersichertenNr_100001",
                Kanton         = "SG",
                Kopie          = true,
                VerguetungsArt = VerguetungsartType.Tg,
                VertragsNr     = "VertragsNr_100001"
            };

            PdfConnector.GenerateBill(patient);
        }