Beispiel #1
0
        public RemisierDetailsView(IRemisier remisier)
            : this()
        {
            this.RemisierKey = remisier.Key;
            this.Name = remisier.Name;
            this.InternalRef = remisier.InternalRef;
            this.RemisierType = remisier.RemisierType;
            this.OfficeAddress = remisier.OfficeAddress;
            this.PostalAddress = remisier.PostalAddress;
            this.ContactPerson = remisier.ContactPerson;
            if (remisier.Telephone != null)
                this.Telephone = remisier.Telephone.Number;
            if (remisier.Fax != null)
                this.Fax = remisier.Fax.Number;
            if (remisier.BankDetails != null)
            {
                this.BankName = remisier.BankDetails.BankName;
                this.BankAccountNumber = remisier.BankDetails.AccountNumber;
                this.BankAccountName = remisier.BankDetails.BankAccountName;
                this.BankCity = remisier.BankDetails.BankAddress.City;
                if (remisier.BankDetails.Bank != null)
                    this.BankID = remisier.BankDetails.Bank.Key;
            }
            if (remisier.Employees != null)
                EmployeeCount = remisier.Employees.Count;

            if (remisier.ParentRemisier != null)
            {
                ParentRemisierKey = remisier.ParentRemisier.Key;
                ParentRemisierKickBackPercentage = remisier.ParentRemisierKickBackPercentage;
            }
        }
Beispiel #2
0
 public RemisierEmployee(IRemisier remisier, Person person)
 {
     if (remisier == null)
         throw new ApplicationException("Remisier is mandatory");
     if (person == null || string.IsNullOrEmpty(person.LastName))
         throw new ApplicationException("Person / last name is mandatory");
     this.Remisier = remisier;
     this.Employee = person;
 }
Beispiel #3
0
        public RemisierDetailsView(IRemisier remisier)
            : this()
        {
            this.RemisierKey = remisier.Key;
            this.CompanyID = remisier.AssetManager.Key;
            this.CompanyName = remisier.AssetManager.CompanyName;
            this.Name = remisier.Name;
            this.InternalRef = remisier.InternalRef;
            this.RemisierType = remisier.RemisierType;
            this.OfficeAddress = remisier.OfficeAddress;
            this.PostalAddress = remisier.PostalAddress;
            this.ContactPerson = remisier.ContactPerson;
            this.Email = remisier.Email;
            if (remisier.Telephone != null)
                this.Telephone = remisier.Telephone.Number;
            if (remisier.Fax != null)
                this.Fax = remisier.Fax.Number;
            if (remisier.BankDetails != null)
            {
                this.BankName = remisier.BankDetails.BankName;
                this.BankAccountNumber = remisier.BankDetails.AccountNumber;
                this.BankAccountName = remisier.BankDetails.BankAccountName;
                this.BankCity = remisier.BankDetails.BankAddress.City;
                if (remisier.BankDetails.Bank != null)
                    this.BankID = remisier.BankDetails.Bank.Key;
            }
            if (remisier.Employees != null)
                EmployeeCount = remisier.Employees.Count;

            if (remisier.ParentRemisier != null)
            {
                ParentRemisierKey = remisier.ParentRemisier.Key;
                ParentRemisierKickBackPercentage = remisier.ParentRemisierKickBackPercentage;
            }

            //this.ProvisieAfspraak = remisier.ProvisieAfspraak;
            this.DatumOvereenkomst = remisier.DatumOvereenkomst;
            this.NummerOvereenkomst = remisier.NummerOvereenkomst;
            this.NummerAFM = remisier.NummerAFM;
            this.NummerKasbank = remisier.NummerKasbank;
            this.IsActive = remisier.IsActive;
        }
 private void assertRemisierIsOwned(IRemisier remisier)
 {
     if (remisier == null || !remisier.IsActive ||
         remisier.AssetManager == null || remisier.AssetManager.Key != CurrentAssetManager.Key)
         throw new SecurityLayerException("Remisier (company) not authorized or not found.");
 }
Beispiel #5
0
 public ContactsIntroducer(IContact con, IRemisier rem, IRemisierEmployee emp)
 {
     this.Contact = con;
     this.Remisier = rem;
     this.RemisierEmployee = emp;
 }
Beispiel #6
0
 public static bool Update(IDalSession session, IRemisier obj)
 {
     return session.Update(obj);
 }
Beispiel #7
0
 public static bool Insert(IDalSession session, IRemisier obj)
 {
     return session.Insert(obj);
 }