Exemplo n.º 1
0
 public ProfesorController(ITeacher teacher, IContactType contactType,
                           IDocumentType documentType, ICountry country, ICity city,
                           IAddressType addressType, IStatus status, IEducationType educationType,
                           ITeacherEducation teacherEducation, INationality nationality, IMatirialStatus matirialStatus, IProvince province,
                           ITeacherHiringType teacherHiringType, ITeacherFileType teacherFileType, ITeacherFile teacherFile,
                           IWebHostEnvironment hostingEnv, IConfiguration config, IContactAddress contactAddress, IContactCommunication contactCommunication, IUniversity university
                           )
 {
     _teacher              = teacher;
     _contactType          = contactType;
     _documentType         = documentType;
     _country              = country;
     _city                 = city;
     _addressType          = addressType;
     _status               = status;
     _educationType        = educationType;
     _teacherEducation     = teacherEducation;
     _nationality          = nationality;
     _matirialStatus       = matirialStatus;
     _province             = province;
     _teacherHiringType    = teacherHiringType;
     _teacherFileType      = teacherFileType;
     _teacherFile          = teacherFile;
     _hostingEnv           = hostingEnv;
     _config               = config;
     _contactAddress       = contactAddress;
     _contactCommunication = contactCommunication;
     _university           = university;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:B4F.TotalGiro.CRM.Person">Person</see> class.
 /// </summary>
 public ContactPerson(string FirstName, string MiddleName,Gender ContactGender, INationality nationality,
     string LastName, Address postalAddress, Address residentialAddress, IContactDetails contactDetails )
     : base(LastName, postalAddress, residentialAddress, contactDetails)
 {
     this.FirstName = FirstName;
     this.MiddleName = MiddleName;
     this.Gender = ContactGender;
     this.Nationality = nationality;
 }
Exemplo n.º 3
0
 public BasicDataController(ICountries countries, IStates states, IRoles roles, IDepartments departments, IGender gender, INationality nationality, ICurrency currency, IIdentificationtypes identificationtypes, IMaritalstatuses maritalstatuses, IEntities entities)//, ITaxMaster tasMaster)
 {
     _countries           = countries;
     _states              = states;
     _roles               = roles;
     _departments         = departments;
     _gender              = gender;
     _nationality         = nationality;
     _currency            = currency;
     _identificationtypes = identificationtypes;
     _maritalstatuses     = maritalstatuses;
     _entities            = entities;
 }
Exemplo n.º 4
0
 public ProfesorController(ITeacher teacher, IContactType contactType,
                           IDocumentType documentType, ICountry country, ICity city,
                           IAddressType addressType, IStatus status, IEducationType educationType,
                           ITeacherEducation teacherEducation, INationality nationality, IMatirialStatus matirialStatus, IProvince province
                           )
 {
     _teacher          = teacher;
     _contactType      = contactType;
     _documentType     = documentType;
     _country          = country;
     _city             = city;
     _addressType      = addressType;
     _status           = status;
     _educationType    = educationType;
     _teacherEducation = teacherEducation;
     _nationality      = nationality;
     _matirialStatus   = matirialStatus;
     _province         = province;
 }
Exemplo n.º 5
0
        private static ICompanyContactPerson CreateCompanyContactPerson(IDalSession session,
                                                        IContactCompany company,
                                                        string BurgerServiceNummer,
                                                        string Voorletters,
                                                        string Tussenvoegsels,
                                                        string Naam,
                                                        Address PostalAddress,
                                                        Address ResidentialAddress,
                                                        IContactDetails ContactDetails,
                                                        Gender ContactGender,
                                                        INationality ContactNationality,
                                                        IIdentification Id,
                                                        DateTime Dob,
                                                        IManagementCompany AssetManager,
                                                        DateTime creationdate)
        {
            ICompanyContactPerson cmpcp = null;
            IContactPerson contact = null;

            if (company != null && !string.IsNullOrEmpty(Naam))
            {
                if (!LookupContactPersonByBSN(session, BurgerServiceNummer, out contact))
                {
                    contact = new ContactPerson(Voorletters,
                                                    Tussenvoegsels,
                                                    ContactGender,
                                                    ContactNationality,
                                                    Naam,
                                                    PostalAddress,
                                                    ResidentialAddress,
                                                    ContactDetails);
                    contact.BurgerServiceNummer = BurgerServiceNummer;
                    contact.AssetManager = (IAssetManager)AssetManager;
                    contact.Identification = Id;
                    contact.DateOfBirth = Dob;
                    contact.CreationDate = creationdate;
                }
                cmpcp = new CompanyContactPerson(contact, company);
            }
            return cmpcp;
        }
Exemplo n.º 6
0
 public Child(INationality nationality)
 {
     this.nationality = nationality;
 }
Exemplo n.º 7
0
        private static IContactPerson CreateContactPerson(IDalSession session,
                                                        string BurgerServiceNummer,
                                                        string Voorletters,
                                                        string Tussenvoegsels,
                                                        string Naam,
                                                        Address PostalAddress,
                                                        Address ResidentialAddress,
                                                        IContactDetails ContactDetails,
                                                        Gender ContactGender,
                                                        INationality ContactNationality,
                                                        IIdentification Id,
                                                        DateTime Dob,
                                                        IManagementCompany AssetManager,
                                                        DateTime creationdate)
        {
            IContactPerson theContact = null;

            //1st see if the contact exists
            if (!LookupContactPersonByBSN(session, BurgerServiceNummer, out theContact))
            {
                if (!string.IsNullOrEmpty(Naam))
                {
                    theContact = new ContactPerson(Voorletters,
                                                    Tussenvoegsels,
                                                    ContactGender,
                                                    ContactNationality,
                                                    Naam,
                                                    PostalAddress,
                                                    ResidentialAddress,
                                                    ContactDetails);
                    theContact.BurgerServiceNummer = BurgerServiceNummer;
                    theContact.AssetManager = (IAssetManager)AssetManager;
                    theContact.Identification = Id;
                    theContact.DateOfBirth = Dob;
                    theContact.CreationDate = creationdate;
                }
            }
            return theContact;
        }