Esempio n. 1
0
        public DBContactToServer newContact(DBContactToServer c1)
        {
            throw new InvalidOperationException("Deprecated");
            //if (c1 == null)
            //{
            //    return null;
            //}

            //c1.city =                       c1.city                     != null ? c1.city : valueForUnchanged;
            //c1.company =                    c1.company                  != null ? c1.company : valueForUnchanged;
            //c1.country =                    c1.country                  != null ? c1.country : valueForUnchanged;
            //c1.department =                 c1.department               != null ? c1.department : valueForUnchanged;
            //c1.email =                      c1.email                    != null ? c1.email : valueForUnchanged;
            //c1.externalCompanyReference =   c1.externalCompanyReference != null ? c1.externalCompanyReference : valueForUnchanged;
            //c1.externalReference =          c1.externalReference        != null ? c1.externalReference : valueForUnchanged;
            //c1.fax =                        c1.fax                      != null ? c1.fax : valueForUnchanged;
            //c1.firstname =                  c1.firstname                != null ? c1.firstname : valueForUnchanged;
            //c1.function =                   c1.function                 != null ? c1.function : valueForUnchanged;
            //c1.jobtitle =                   c1.jobtitle                 != null ? c1.jobtitle : valueForUnchanged;
            //c1.lastname =                   c1.lastname                 != null ? c1.lastname : valueForUnchanged;
            //c1.level =                      c1.level                    != null ? c1.level : valueForUnchanged;
            //c1.mobile =                     c1.mobile                   != null ? c1.mobile : valueForUnchanged;
            //c1.phone =                      c1.phone                    != null ? c1.phone : valueForUnchanged;
            //c1.prefix =                     c1.prefix                   != null ? c1.prefix : valueForUnchanged;
            //c1.street =                     c1.street                   != null ? c1.street : valueForUnchanged;
            //c1.vat =                        c1.vat                      != null ? c1.vat : valueForUnchanged;
            //c1.zip =                        c1.zip                      != null ? c1.zip : valueForUnchanged;

            //return c1;
        }
Esempio n. 2
0
 public CustomerType(DBContactToServer serverContact)
 {
     this.city       = serverContact.city;
     this.company    = serverContact.company;
     this.country    = serverContact.country;
     this.department = serverContact.department;
     this.email      = serverContact.email;
     this.externalCompanyReference = serverContact.externalCompanyReference;
     this.externalReference        = serverContact.externalReference;
     this.fax       = serverContact.fax;
     this.firstname = serverContact.firstname;
     this.function  = serverContact.function;
     this.jobtitle  = serverContact.jobtitle;
     this.lastname  = serverContact.lastname;
     this.level     = serverContact.level;
     this.mobile    = serverContact.mobile;
     this.phone     = serverContact.phone;
     this.prefix    = serverContact.prefix;
     this.street    = serverContact.street;
     this.uid       = serverContact.uid;
     this.vat       = serverContact.vat;
     this.zip       = serverContact.zip;
 }