internal void SetBO(Indico.DAL.ReturnDistributorDetailsView obj) { // set the Indico.BusinessObjects.ReturnDistributorDetailsViewBO properties this.Distributor = obj.Distributor; this.Type = obj.Type; this.IsDistributor = obj.IsDistributor; this.Name = obj.Name; this.Number = obj.Number; this.Address1 = obj.Address1; this.Address2 = obj.Address2; this.City = obj.City; this.State = obj.State; this.PostCode = obj.PostCode; this.Country = obj.Country; this.Phone1 = obj.Phone1; this.Phone2 = obj.Phone2; this.Fax = obj.Fax; this.NickName = obj.NickName; this.PrimaryCoordinator = obj.PrimaryCoordinator; this.Owner = obj.Owner; this.Creator = obj.Creator; this.CreatedDate = obj.CreatedDate; this.Modifier = obj.Modifier; this.ModifiedDate = obj.ModifiedDate; this.SecondaryCoordinator = obj.SecondaryCoordinator; this.IsActive = obj.IsActive; this.IsDelete = obj.IsDelete; this.Clients = obj.Clients; this.DistributorLabels = obj.DistributorLabels; this.DistributorPriceLevelCosts = obj.DistributorPriceLevelCosts; this.DistributorPriceMarkups = obj.DistributorPriceMarkups; this.DespatchTo = obj.DespatchTo; this.Order = obj.Order; this.ShipTo = obj.ShipTo; }
internal void SetDAL(Indico.DAL.ReturnDistributorDetailsView obj, IndicoEntities context) { // set the Indico.DAL.ReturnDistributorDetailsView properties obj.Distributor = Convert.ToInt32(Distributor); obj.Type = Type; obj.IsDistributor = Convert.ToBoolean(IsDistributor); obj.Name = Name; obj.Number = Number; obj.Address1 = Address1; obj.Address2 = Address2; obj.City = City; obj.State = State; obj.PostCode = PostCode; obj.Country = Country; obj.Phone1 = Phone1; obj.Phone2 = Phone2; obj.Fax = Fax; obj.NickName = NickName; obj.PrimaryCoordinator = PrimaryCoordinator; obj.Owner = Owner; obj.Creator = Creator; obj.CreatedDate = Convert.ToDateTime(CreatedDate); obj.Modifier = Modifier; obj.ModifiedDate = Convert.ToDateTime(ModifiedDate); obj.SecondaryCoordinator = SecondaryCoordinator; obj.IsActive = Convert.ToBoolean(IsActive); obj.IsDelete = Convert.ToBoolean(IsDelete); obj.Clients = Convert.ToBoolean(Clients); obj.DistributorLabels = Convert.ToBoolean(DistributorLabels); obj.DistributorPriceLevelCosts = Convert.ToBoolean(DistributorPriceLevelCosts); obj.DistributorPriceMarkups = Convert.ToBoolean(DistributorPriceMarkups); obj.DespatchTo = Convert.ToBoolean(DespatchTo); obj.Order = Convert.ToBoolean(Order); obj.ShipTo = Convert.ToBoolean(ShipTo); }