internal void SetBO(System.Data.Objects.DataClasses.EntityObject eObj) { this._doNotUpdateDALObject = true; // Check the received type if (eObj.GetType() != typeof(Indico.DAL.WeeklyProductionCapacityDetails)) { throw new FormatException("Received wrong parameter type..."); } Indico.DAL.WeeklyProductionCapacityDetails obj = (Indico.DAL.WeeklyProductionCapacityDetails)eObj; // set the Indico.BusinessObjects.WeeklyProductionCapacityDetailsBO properties this.ID = obj.ID; this.Efficiency = obj.Efficiency; this.FivePcsCapacity = obj.FivePcsCapacity; this.SampleCapacity = obj.SampleCapacity; this.TotalCapacity = obj.TotalCapacity; this.Workers = obj.Workers; this.ItemType = (obj.ItemTypeReference.EntityKey != null && obj.ItemTypeReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.ItemTypeReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this.WeeklyProductionCapacity = (obj.WeeklyProductionCapacityReference.EntityKey != null && obj.WeeklyProductionCapacityReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.WeeklyProductionCapacityReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this._doNotUpdateDALObject = false; }
internal void SetBO(System.Data.Objects.DataClasses.EntityObject eObj) { this._doNotUpdateDALObject = true; // Check the received type if (eObj.GetType() != typeof(Indico.DAL.DistributorSendMailCount)) { throw new FormatException("Received wrong parameter type..."); } Indico.DAL.DistributorSendMailCount obj = (Indico.DAL.DistributorSendMailCount)eObj; // set the Indico.BusinessObjects.DistributorSendMailCountBO properties this.ID = obj.ID; this.Count = obj.Count; this.Distributor = (obj.DistributorReference.EntityKey != null && obj.DistributorReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.DistributorReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this.WeeklyProductionCapacity = (obj.WeeklyProductionCapacityReference.EntityKey != null && obj.WeeklyProductionCapacityReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.WeeklyProductionCapacityReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this._doNotUpdateDALObject = false; }
internal void SetBO(System.Data.Objects.DataClasses.EntityObject eObj) { this._doNotUpdateDALObject = true; // Check the received type if (eObj.GetType() != typeof(Indico.DAL.InvoiceOrder)) { throw new FormatException("Received wrong parameter type..."); } Indico.DAL.InvoiceOrder obj = (Indico.DAL.InvoiceOrder)eObj; // set the Indico.BusinessObjects.InvoiceOrderBO properties this.ID = obj.ID; this.FactoryPrice = obj.FactoryPrice; this.IndimanPrice = obj.IndimanPrice; this.Invoice = (obj.InvoiceReference.EntityKey != null && obj.InvoiceReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.InvoiceReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this.OrderDetail = (obj.OrderDetailReference.EntityKey != null && obj.OrderDetailReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.OrderDetailReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this._doNotUpdateDALObject = false; }
internal void SetBO(System.Data.Objects.DataClasses.EntityObject eObj) { this._doNotUpdateDALObject = true; // Check the received type if (eObj.GetType() != typeof(Indico.DAL.DefaultValuesPriceList)) { throw new FormatException("Received wrong parameter type..."); } Indico.DAL.DefaultValuesPriceList obj = (Indico.DAL.DefaultValuesPriceList)eObj; // set the Indico.BusinessObjects.DefaultValuesPriceListBO properties this.ID = obj.ID; this.CreatedDate = obj.CreatedDate; this.CreativeDesign = obj.CreativeDesign; this.ModifiedDate = obj.ModifiedDate; this.Position1 = obj.Position1; this.Position2 = obj.Position2; this.Position3 = obj.Position3; this.StudioDesign = obj.StudioDesign; this.ThirdPartyDesign = obj.ThirdPartyDesign; this.Creator = (obj.CreatorReference.EntityKey != null && obj.CreatorReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.CreatorReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this.Modifier = (obj.ModifierReference.EntityKey != null && obj.ModifierReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.ModifierReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this._doNotUpdateDALObject = false; }
internal void SetBO(System.Data.Objects.DataClasses.EntityObject eObj) { this._doNotUpdateDALObject = true; // Check the received type if (eObj.GetType() != typeof(Indico.DAL.DistributorPriceLevelCostHistory)) { throw new FormatException("Received wrong parameter type..."); } Indico.DAL.DistributorPriceLevelCostHistory obj = (Indico.DAL.DistributorPriceLevelCostHistory)eObj; // set the Indico.BusinessObjects.DistributorPriceLevelCostHistoryBO properties this.ID = obj.ID; this.Distributor = obj.Distributor; this.IndicoCost = obj.IndicoCost; this.ModifiedDate = obj.ModifiedDate; this.Modifier = obj.Modifier; this.PriceLevelCost = obj.PriceLevelCost; this.PriceTerm = obj.PriceTerm; this._doNotUpdateDALObject = false; }
internal void SetBO(System.Data.Objects.DataClasses.EntityObject eObj) { this._doNotUpdateDALObject = true; // Check the received type if (eObj.GetType() != typeof(Indico.DAL.LabelPriceMarkup)) { throw new FormatException("Received wrong parameter type..."); } Indico.DAL.LabelPriceMarkup obj = (Indico.DAL.LabelPriceMarkup)eObj; // set the Indico.BusinessObjects.LabelPriceMarkupBO properties this.ID = obj.ID; this.Markup = obj.Markup; this.Label = (obj.LabelReference.EntityKey != null && obj.LabelReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.LabelReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this.PriceLevel = (obj.PriceLevelReference.EntityKey != null && obj.PriceLevelReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.PriceLevelReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this._doNotUpdateDALObject = false; }
internal void SetBO(System.Data.Objects.DataClasses.EntityObject eObj) { this._doNotUpdateDALObject = true; // Check the received type if (eObj.GetType() != typeof(Indico.DAL.PackingListCartonItem)) { throw new FormatException("Received wrong parameter type..."); } Indico.DAL.PackingListCartonItem obj = (Indico.DAL.PackingListCartonItem)eObj; // set the Indico.BusinessObjects.PackingListCartonItemBO properties this.ID = obj.ID; this.Count = obj.Count; this.PackingList = (obj.PackingListReference.EntityKey != null && obj.PackingListReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.PackingListReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this.Size = (obj.SizeReference.EntityKey != null && obj.SizeReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.SizeReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this._doNotUpdateDALObject = false; }
internal void SetBO(System.Data.Objects.DataClasses.EntityObject eObj) { this._doNotUpdateDALObject = true; // Check the received type if (eObj.GetType() != typeof(Indico.DAL.VisualLayoutAccessory)) { throw new FormatException("Received wrong parameter type..."); } Indico.DAL.VisualLayoutAccessory obj = (Indico.DAL.VisualLayoutAccessory)eObj; // set the Indico.BusinessObjects.VisualLayoutAccessoryBO properties this.ID = obj.ID; this.Accessory = (obj.AccessoryReference.EntityKey != null && obj.AccessoryReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.AccessoryReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this.AccessoryColor = (obj.AccessoryColorReference.EntityKey != null && obj.AccessoryColorReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.AccessoryColorReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this.VisualLayout = (obj.VisualLayoutReference.EntityKey != null && obj.VisualLayoutReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.VisualLayoutReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this._doNotUpdateDALObject = false; }
internal void SetBO(System.Data.Objects.DataClasses.EntityObject eObj) { this._doNotUpdateDALObject = true; // Check the received type if (eObj.GetType() != typeof(Indico.DAL.PatternHistory)) { throw new FormatException("Received wrong parameter type..."); } Indico.DAL.PatternHistory obj = (Indico.DAL.PatternHistory)eObj; // set the Indico.BusinessObjects.PatternHistoryBO properties this.ID = obj.ID; this.Meassage = obj.Meassage; this.ModifiedDate = obj.ModifiedDate; this.Modifier = (obj.ModifierReference.EntityKey != null && obj.ModifierReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.ModifierReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this.Pattern = (obj.PatternReference.EntityKey != null && obj.PatternReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.PatternReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this._doNotUpdateDALObject = false; }
internal void SetBO(System.Data.Objects.DataClasses.EntityObject eObj) { this._doNotUpdateDALObject = true; // Check the received type if (eObj.GetType() != typeof(Indico.DAL.EmbroideryImage)) { throw new FormatException("Received wrong parameter type..."); } Indico.DAL.EmbroideryImage obj = (Indico.DAL.EmbroideryImage)eObj; // set the Indico.BusinessObjects.EmbroideryImageBO properties this.ID = obj.ID; this.Extension = obj.Extension; this.Filename = obj.Filename; this.IsRequested = obj.IsRequested; this.Size = obj.Size; this.EmbroideryDetails = (obj.EmbroideryDetailsReference.EntityKey != null && obj.EmbroideryDetailsReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.EmbroideryDetailsReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this._doNotUpdateDALObject = false; }
internal void SetBO(System.Data.Objects.DataClasses.EntityObject eObj) { this._doNotUpdateDALObject = true; // Check the received type if (eObj.GetType() != typeof(Indico.DAL.UserLogin)) { throw new FormatException("Received wrong parameter type..."); } Indico.DAL.UserLogin obj = (Indico.DAL.UserLogin)eObj; // set the Indico.BusinessObjects.UserLoginBO properties this.ID = obj.ID; this.DateLogin = obj.DateLogin; this.DateLogout = obj.DateLogout; this.IpAddress = obj.IpAddress; this.SessionId = obj.SessionId; this.Success = obj.Success; this.User = (obj.UserReference.EntityKey != null && obj.UserReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.UserReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this._doNotUpdateDALObject = false; }
internal void SetBO(System.Data.Objects.DataClasses.EntityObject eObj) { this._doNotUpdateDALObject = true; // Check the received type if (eObj.GetType() != typeof(Indico.DAL.PriceHistroy)) { throw new FormatException("Received wrong parameter type..."); } Indico.DAL.PriceHistroy obj = (Indico.DAL.PriceHistroy)eObj; // set the Indico.BusinessObjects.PriceHistroyBO properties this.ID = obj.ID; this.ConvertionFactor = obj.ConvertionFactor; this.CreatedDate = obj.CreatedDate; this.Creator = obj.Creator; this.FabricCode = obj.FabricCode; this.FactoryCost = obj.FactoryCost; this.IndimanCost = obj.IndimanCost; this.Pattern = obj.Pattern; this.PriceLevel = obj.PriceLevel; this.PriceLevelCost = obj.PriceLevelCost; this.Remarks = obj.Remarks; this.Price = (obj.PriceReference.EntityKey != null && obj.PriceReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.PriceReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this._doNotUpdateDALObject = false; }
internal void SetBO(System.Data.Objects.DataClasses.EntityObject eObj) { this._doNotUpdateDALObject = true; // Check the received type if (eObj.GetType() != typeof(Indico.DAL.ItemAttribute)) { throw new FormatException("Received wrong parameter type..."); } Indico.DAL.ItemAttribute obj = (Indico.DAL.ItemAttribute)eObj; // set the Indico.BusinessObjects.ItemAttributeBO properties this.ID = obj.ID; this.Description = obj.Description; this.Name = obj.Name; this.Item = (obj.ItemReference.EntityKey != null && obj.ItemReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.ItemReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this.Parent = (obj.ParentReference.EntityKey != null && obj.ParentReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.ParentReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this._doNotUpdateDALObject = false; }
internal void SetBO(System.Data.Objects.DataClasses.EntityObject eObj) { this._doNotUpdateDALObject = true; // Check the received type if (eObj.GetType() != typeof(Indico.DAL.PatternSupportFabric)) { throw new FormatException("Received wrong parameter type..."); } Indico.DAL.PatternSupportFabric obj = (Indico.DAL.PatternSupportFabric)eObj; // set the Indico.BusinessObjects.PatternSupportFabricBO properties this.ID = obj.ID; this.FabConstant = obj.FabConstant; this.CostSheet = (obj.CostSheetReference.EntityKey != null && obj.CostSheetReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.CostSheetReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this.Fabric = (obj.FabricReference.EntityKey != null && obj.FabricReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.FabricReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this._doNotUpdateDALObject = false; }
internal void SetBO(System.Data.Objects.DataClasses.EntityObject eObj) { this._doNotUpdateDALObject = true; // Check the received type if (eObj.GetType() != typeof(Indico.DAL.ProductionPlanning)) { throw new FormatException("Received wrong parameter type..."); } Indico.DAL.ProductionPlanning obj = (Indico.DAL.ProductionPlanning)eObj; // set the Indico.BusinessObjects.ProductionPlanningBO properties this.ID = obj.ID; this.SewingDate = obj.SewingDate; this.OrderDetail = (obj.OrderDetailReference.EntityKey != null && obj.OrderDetailReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.OrderDetailReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this.ProductionLine = (obj.ProductionLineReference.EntityKey != null && obj.ProductionLineReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.ProductionLineReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this.WeeklyProductionCapacity = (obj.WeeklyProductionCapacityReference.EntityKey != null && obj.WeeklyProductionCapacityReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.WeeklyProductionCapacityReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this._doNotUpdateDALObject = false; }
internal void SetBO(System.Data.Objects.DataClasses.EntityObject eObj) { this._doNotUpdateDALObject = true; // Check the received type if (eObj.GetType() != typeof(Indico.DAL.EmailLogo)) { throw new FormatException("Received wrong parameter type..."); } Indico.DAL.EmailLogo obj = (Indico.DAL.EmailLogo)eObj; // set the Indico.BusinessObjects.EmailLogoBO properties this.ID = obj.ID; this.EmailLogoPath = obj.EmailLogoPath; this._doNotUpdateDALObject = false; }
internal void SetBO(System.Data.Objects.DataClasses.EntityObject eObj) { this._doNotUpdateDALObject = true; // Check the received type if (eObj.GetType() != typeof(Indico.DAL.AcquiredVisulaLayoutName)) { throw new FormatException("Received wrong parameter type..."); } Indico.DAL.AcquiredVisulaLayoutName obj = (Indico.DAL.AcquiredVisulaLayoutName)eObj; // set the Indico.BusinessObjects.AcquiredVisulaLayoutNameBO properties this.ID = obj.ID; this.CreatedDate = obj.CreatedDate; this.Name = obj.Name; this._doNotUpdateDALObject = false; }
internal void SetBO(System.Data.Objects.DataClasses.EntityObject eObj) { this._doNotUpdateDALObject = true; // Check the received type if (eObj.GetType() != typeof(Indico.DAL.FabricCodeType)) { throw new FormatException("Received wrong parameter type..."); } Indico.DAL.FabricCodeType obj = (Indico.DAL.FabricCodeType)eObj; // set the Indico.BusinessObjects.FabricCodeTypeBO properties this.ID = obj.ID; this.Description = obj.Description; this.Name = obj.Name; this._doNotUpdateDALObject = false; }
internal void SetBO(System.Data.Objects.DataClasses.EntityObject eObj) { this._doNotUpdateDALObject = true; // Check the received type if (eObj.GetType() != typeof(Indico.DAL.Currency)) { throw new FormatException("Received wrong parameter type..."); } Indico.DAL.Currency obj = (Indico.DAL.Currency)eObj; // set the Indico.BusinessObjects.CurrencyBO properties this.ID = obj.ID; this.Code = obj.Code; this.Country = obj.Country; this.Name = obj.Name; this.Symbol = obj.Symbol; this._doNotUpdateDALObject = false; }
internal void SetBO(System.Data.Objects.DataClasses.EntityObject eObj) { this._doNotUpdateDALObject = true; // Check the received type if (eObj.GetType() != typeof(Indico.DAL.QuoteChangeEmailList)) { throw new FormatException("Received wrong parameter type..."); } Indico.DAL.QuoteChangeEmailList obj = (Indico.DAL.QuoteChangeEmailList)eObj; // set the Indico.BusinessObjects.QuoteChangeEmailListBO properties this.ID = obj.ID; this.IsCC = obj.IsCC; this.User = (obj.UserReference.EntityKey != null && obj.UserReference.EntityKey.EntityKeyValues.Count() > 0) ? (int)((System.Data.EntityKeyMember)obj.UserReference.EntityKey.EntityKeyValues.GetValue(0)).Value : 0; this._doNotUpdateDALObject = false; }