public User(NameOrDescription name, string login, string password, string confirmPassword, long nivel, decimal percentM, decimal percentB, long createdByUser, CompanyAndBranchOffice companyAndBranchOfficeId, string machineNameOrIP) { Name = name; Login = login; Password = Encrypt(password); _confirmPassword = Encrypt(confirmPassword); Active = EActiveDeactive.Active; Nivel = nivel; PercentM = percentM; PercentB = percentB; CreatedDateBy created = new CreatedDateBy(createdByUser); UpdatedDateBy updated = new UpdatedDateBy(null); CompanyAndBranchOffice companyAndBranchOffice = new CompanyAndBranchOffice(companyAndBranchOfficeId.CompanyId, companyAndBranchOfficeId.BranchOfficeId); Audit audit = new Audit(created, updated, companyAndBranchOffice, ERecordStatus.Active, machineNameOrIP); Audit = audit; Validate(); }
public Call(long callTypeId, long callGroupId, long sectorId, long agreementId, long customerId, long employeeId, EPriority priority, NameOrDescription title, string details, long createdByUser, CompanyAndBranchOffice companyId, string machineNameOrIP) { CallTypeId = callTypeId; CallGroupId = callGroupId; SectorId = sectorId; ContractId = agreementId; CustomerId = customerId; EmployeeId = employeeId; Priority = priority; Title = title; Details = details; Status = 0; CreatedDateBy created = new CreatedDateBy(createdByUser); UpdatedDateBy updated = new UpdatedDateBy(null); CompanyAndBranchOffice companyAndBranchOffice = new CompanyAndBranchOffice(companyId.CompanyId, companyId.BranchOfficeId); Audit audit = new Audit(created, updated, companyAndBranchOffice, ERecordStatus.Active, machineNameOrIP); Audit = audit; Validate(); }
public Account(NameOrDescription name, long createdByUser, CompanyAndBranchOffice companyId, string machineNameOrIP) { Name = name; CreatedDateBy created = new CreatedDateBy(createdByUser); UpdatedDateBy updated = new UpdatedDateBy(null); CompanyAndBranchOffice companyAndBranchOffice = new CompanyAndBranchOffice(companyId.CompanyId, companyId.BranchOfficeId); Audit audit = new Audit(created, updated, companyAndBranchOffice, ERecordStatus.Active, machineNameOrIP); Audit = audit; Validate(); }
public Audit( CreatedDateBy createdDateBy, UpdatedDateBy updatedDateBy, CompanyAndBranchOffice companyAndBranchOffice, ERecordStatus recordStatus, string machineNameOrIP) { CreatedDateBy = createdDateBy; UpdatedDateBy = updatedDateBy; CompanyAndBranchOffice = companyAndBranchOffice; RecordStatus = recordStatus; MachineNameOrIP = machineNameOrIP; }
public Contract(NameOrDescription name, DateTime validateDate, long createdByUser, CompanyAndBranchOffice companyId, string machineNameOrIP) { Name = name; ValidateDate = validateDate; CreatedDateBy created = new CreatedDateBy(createdByUser); UpdatedDateBy updated = new UpdatedDateBy(null); CompanyAndBranchOffice companyAndBranchOffice = new CompanyAndBranchOffice(companyId.CompanyId, companyId.BranchOfficeId); Audit audit = new Audit(created, updated, companyAndBranchOffice, ERecordStatus.Active, machineNameOrIP); Audit = audit; AddNotifications(new Flunt.Validations.Contract().Requires() .IsNotNull(validateDate, "validateDate", "Data requerida") .IsLowerOrEqualsThan(validateDate, DateTime.Now, "ValidateDate", "Data da validade precisa ser maior que a data atua"), name); }