public string[] GetTripperNames(string[] ary_str_account)
        {
            if (ary_str_account == null || ary_str_account.Length == 0) return new string[0];

            _iidentification = new Identification();
            return _iidentification.GetTripperName(ary_str_account);
        }
 public StandardResult Register(string account, string password)
 {
     _iidentification = new Identification();
     var ret = _iidentification.Register(account, password);
     if (ret.Ret)
     {
         GetService<IPackageDelivery>().RegisterTripper(account, account);
         GetService<IRecipientRegistration>().RegisterTripper(account, account);
         GetService<ITripperStatusParser>().RegisterTripper(account, account);
     }
     return ret;
 }
Пример #3
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;
        }
 public StandardResult UpdateTelphone(string ticket, string telphone)
 {
     _iidentification = new Identification();
     return _iidentification.UpdatePhone(ticket, telphone);
 }
 public StandardResult UpdateInfo(string ticket, Gender gender)
 {
     _iidentification = new Identification();
     return _iidentification.UpdateGender(ticket, gender);
 }
 public StandardResult Logout(string ticket)
 {
     _iidentification = new Identification();
     return _iidentification.Logout(ticket);
 }
 public StandardResult Login(string account, string password, DeviceType device_type, string device_sn)
 {
     _iidentification = new Identification();
     return _iidentification.Login(account, password, device_type, device_sn);
 }
 public StandardResult CheckTicket(string ticket)
 {
     _iidentification = new Identification();
     return _iidentification.Check(ticket);
 }
Пример #9
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;
        }