Exemplo n.º 1
0
        public computerdto(ComputerDTO dt)
        {
            this.Address           = dt.Address;
            this.ADName            = dt.ADName;
            this.AssetNumber       = dt.AssetNumber;
            this.CNName            = dt.CNName;
            this.company           = dt.company;
            this.ComputerOnwer     = dt.ComputerOnwer;
            this.Description       = dt.Description;
            this.DistinguishedName = dt.DistinguishedName;
            this.dNSHostName       = dt.dNSHostName;
            this.FPC                    = dt.FPC;
            this.LastLoggedUser         = dt.LastLoggedUser;
            this.LDAPPath               = dt.LDAPPath;
            this.managedBy              = dt.managedBy;
            this.Name                   = dt.Name;
            this.operatingSystem        = dt.operatingSystem;
            this.operatingSystemVersion = dt.operatingSystemVersion;
            this.OUName                 = OuString.OuStringFormat(dt.OUName);


            this.site      = dt.site;
            this.Telephone = dt.Telephone;
            this.TypeName  = dt.TypeName;
        }
Exemplo n.º 2
0
 public groupdto(GroupsDTO gd, string con, string members)
 {
     this.BelongsOUPath     = OuString.OuStringFormat(gd.BelongsOUPath);
     this.Description       = gd.Description;
     this.DisplayName       = gd.DisplayName;
     this.DistinguishedName = gd.DistinguishedName;
     this.Email             = gd.Email;
     this.isSecurityGroup   = gd.isSecurityGroup;
     this.ManagedBy         = gd.managedBy;
     this.SamAccountName    = gd.SamAccountName;
     this.GroupScope        = gd.GroupScope;
     this.MembersOf         = gd.MembersOf;
     this.memebertable      = con;
     this.Note    = gd.Note;
     this.Members = gd.Members;
     this.members = members;
 }
Exemplo n.º 3
0
        public userdto(UserDTO ud, bool exist)
        {
            this.exist            = exist;
            this.Address          = ud.Address;
            this.adminDescription = ud.adminDescription;
            this.dcxObjectType    = ud.dcxObjectType;
            this.Department       = ud.Department;
            this.Description      = ud.Description;

            this.homeDrive          = ud.homeDrive;
            this.isRemoteHomeFolder = ud.isRemoteHomeFolder;
            this.MobilePhone        = ud.MobilePhone;
            this.Office             = ud.Office;
            this.otherTelephone     = ud.otherTelephone;
            this.UserID             = ud.UserID;
            this.UserPrincipalName  = ud.UserPrincipalName;
            this.Title               = ud.Title;
            this.Telephone           = ud.Telephone;
            this.SipPhone            = ud.SipPhone;
            this.scriptPath          = ud.scriptPath;
            this.Province            = ud.Province;
            this.profilePath         = ud.profilePath;
            this.PostOfficeBox       = ud.PostOfficeBox;
            this.PostalCode          = ud.PostalCode;
            this.PersonType          = ud.PersonType;
            this.Pager               = ud.Pager;
            this.MemberOf            = ud.MemberOf;
            this.managedBy           = ud.managedBy;
            this.mail                = ud.mail;
            this.LastName            = ud.LastName;
            this.homeDirectory       = ud.homeDirectory;
            this.FirstName           = ud.FirstName;
            this.extensionAttribute2 = ud.extensionAttribute2;
            this.DistinguishedName   = OuString.OuStringFormat(ud.DistinguishedName);
            this.MemberOf            = ud.MemberOf;
            this.adminDisplayName    = ud.adminDisplayName;
            this.City                = ud.City;
            this.comment             = ud.comment;
            this.Company             = ud.Company;
            this.DisplayName         = ud.DisplayName;
        }
Exemplo n.º 4
0
 public userdto(UserDTO ud, string con, int num)
 {
     this.num                     = num;
     this.AccountDisabled         = ud.AccountDisabled;
     this.AccountExpDate          = ud.AccountExpDate.ToString();
     this.AccountExpired          = ud.AccountExpired;
     this.AccountLocked           = ud.AccountLocked;
     this.AccountStatus           = ud.AccountStatus;
     this.Address                 = ud.Address;
     this.adminDescription        = ud.adminDescription;
     this.dcxObjectType           = ud.dcxObjectType;
     this.Department              = ud.Department;
     this.Description             = ud.Description;
     this.extensionAttribute1     = ud.extensionAttribute1;
     this.extensionAttribute2     = ud.extensionAttribute2;
     this.extensionAttribute3     = ud.extensionAttribute3;
     this.extensionAttribute4     = ud.extensionAttribute4;
     this.extensionAttribute5     = ud.extensionAttribute5;
     this.extensionAttribute6     = ud.extensionAttribute6;
     this.extensionAttribute7     = ud.extensionAttribute7;
     this.extensionAttribute8     = ud.extensionAttribute8;
     this.extensionAttribute9     = ud.extensionAttribute9;
     this.extensionAttribute10    = ud.extensionAttribute10;
     this.extensionAttribute11    = ud.extensionAttribute11;
     this.extensionAttribute12    = ud.extensionAttribute12;
     this.extensionAttribute13    = ud.extensionAttribute13;
     this.extensionAttribute14    = ud.extensionAttribute14;
     this.extensionAttribute15    = ud.extensionAttribute15;
     this.homeDrive               = ud.homeDrive;
     this.isRemoteHomeFolder      = ud.isRemoteHomeFolder;
     this.MobilePhone             = ud.MobilePhone;
     this.Office                  = ud.Office;
     this.otherTelephone          = ud.otherTelephone;
     this.UserID                  = ud.UserID;
     this.UserPrincipalName       = ud.UserPrincipalName;
     this.Title                   = ud.Title;
     this.Telephone               = ud.Telephone;
     this.SipPhone                = ud.SipPhone;
     this.scriptPath              = ud.scriptPath;
     this.Province                = ud.Province;
     this.profilePath             = ud.profilePath;
     this.PostOfficeBox           = ud.PostOfficeBox;
     this.PostalCode              = ud.PostalCode;
     this.PersonType              = ud.PersonType;
     this.Pager                   = ud.Pager;
     this.MemberOf                = ud.MemberOf;
     this.managedBy               = ud.managedBy;
     this.mail                    = ud.mail;
     this.LastName                = ud.LastName;
     this.homeDirectory           = ud.homeDirectory;
     this.FirstName               = ud.FirstName;
     this.extensionAttribute2     = ud.extensionAttribute2;
     this.DistinguishedName       = OuString.OuStringFormat(ud.DistinguishedName);;
     this.MemberOf                = ud.MemberOf;
     this.adminDisplayName        = ud.adminDisplayName;
     this.City                    = ud.City;
     this.comment                 = ud.comment;
     this.Company                 = ud.Company;
     this.DisplayName             = ud.DisplayName;
     this.SkypeForBusinessEnabled = ud.SkypeForBusinessEnabled;
     this.ExchangeEnabled         = ud.ExchangeEnabled;
     this.memebertable            = con;
 }