void QuotesWhereThisIsStatusList_OnAfterAdd(object sender, EventArgs e) { Indico.DAL.Quote obj = null; if (this.Context != null) { if (((IndicoList <Indico.BusinessObjects.QuoteBO>)sender).Count > 0) { obj = ((IndicoList <Indico.BusinessObjects.QuoteBO>)sender)[((IndicoList <Indico.BusinessObjects.QuoteBO>)sender).Count - 1].ObjDAL; this.ObjDAL.QuotesWhereThisIsStatus.Add(obj); } } else { IndicoContext objContext = new IndicoContext(); obj = ((IndicoList <Indico.BusinessObjects.QuoteBO>)sender)[((IndicoList <Indico.BusinessObjects.QuoteBO>)sender).Count - 1].SetDAL(objContext.Context); this.ObjDAL.QuotesWhereThisIsStatus.Add(obj); objContext.SaveChanges(); objContext.Dispose(); } }
void FabricCodesWhereThisIsUnitList_OnBeforeRemove(object sender, EventArgs e) { Indico.DAL.FabricCode obj = null; if (this.Context != null) { if (((IndicoList <Indico.BusinessObjects.FabricCodeBO>)sender).Count > 0) { obj = ((IndicoList <Indico.BusinessObjects.FabricCodeBO>)sender)[((IndicoList <Indico.BusinessObjects.FabricCodeBO>)sender).Count - 1].ObjDAL; this.ObjDAL.FabricCodesWhereThisIsUnit.Remove(obj); } } else { IndicoContext objContext = new IndicoContext(); obj = ((IndicoList <Indico.BusinessObjects.FabricCodeBO>)sender)[((IndicoList <Indico.BusinessObjects.FabricCodeBO>)sender).Count - 1].SetDAL(objContext.Context); this.ObjDAL.FabricCodesWhereThisIsUnit.Remove(obj); objContext.SaveChanges(); objContext.Dispose(); } }
void EmbroideryDetailssWhereThisIsStatusList_OnBeforeRemove(object sender, EventArgs e) { Indico.DAL.EmbroideryDetails obj = null; if (this.Context != null) { if (((IndicoList <Indico.BusinessObjects.EmbroideryDetailsBO>)sender).Count > 0) { obj = ((IndicoList <Indico.BusinessObjects.EmbroideryDetailsBO>)sender)[((IndicoList <Indico.BusinessObjects.EmbroideryDetailsBO>)sender).Count - 1].ObjDAL; this.ObjDAL.EmbroideryDetailssWhereThisIsStatus.Remove(obj); } } else { IndicoContext objContext = new IndicoContext(); obj = ((IndicoList <Indico.BusinessObjects.EmbroideryDetailsBO>)sender)[((IndicoList <Indico.BusinessObjects.EmbroideryDetailsBO>)sender).Count - 1].SetDAL(objContext.Context); this.ObjDAL.EmbroideryDetailssWhereThisIsStatus.Remove(obj); objContext.SaveChanges(); objContext.Dispose(); } }
void PatternsWhereThisIsPatternCompressionImageList_OnBeforeRemove(object sender, EventArgs e) { Indico.DAL.Pattern obj = null; if (this.Context != null) { if (((IndicoList <Indico.BusinessObjects.PatternBO>)sender).Count > 0) { obj = ((IndicoList <Indico.BusinessObjects.PatternBO>)sender)[((IndicoList <Indico.BusinessObjects.PatternBO>)sender).Count - 1].ObjDAL; this.ObjDAL.PatternsWhereThisIsPatternCompressionImage.Remove(obj); } } else { IndicoContext objContext = new IndicoContext(); obj = ((IndicoList <Indico.BusinessObjects.PatternBO>)sender)[((IndicoList <Indico.BusinessObjects.PatternBO>)sender).Count - 1].SetDAL(objContext.Context); this.ObjDAL.PatternsWhereThisIsPatternCompressionImage.Remove(obj); objContext.SaveChanges(); objContext.Dispose(); } }
void VisualLayoutsWhereThisIsPocketTypeList_OnBeforeRemove(object sender, EventArgs e) { Indico.DAL.VisualLayout obj = null; if (this.Context != null) { if (((IndicoList <Indico.BusinessObjects.VisualLayoutBO>)sender).Count > 0) { obj = ((IndicoList <Indico.BusinessObjects.VisualLayoutBO>)sender)[((IndicoList <Indico.BusinessObjects.VisualLayoutBO>)sender).Count - 1].ObjDAL; this.ObjDAL.VisualLayoutsWhereThisIsPocketType.Remove(obj); } } else { IndicoContext objContext = new IndicoContext(); obj = ((IndicoList <Indico.BusinessObjects.VisualLayoutBO>)sender)[((IndicoList <Indico.BusinessObjects.VisualLayoutBO>)sender).Count - 1].SetDAL(objContext.Context); this.ObjDAL.VisualLayoutsWhereThisIsPocketType.Remove(obj); objContext.SaveChanges(); objContext.Dispose(); } }
void AccessorysWhereThisIsAccessoryCategoryList_OnBeforeRemove(object sender, EventArgs e) { Indico.DAL.Accessory obj = null; if (this.Context != null) { if (((IndicoList <Indico.BusinessObjects.AccessoryBO>)sender).Count > 0) { obj = ((IndicoList <Indico.BusinessObjects.AccessoryBO>)sender)[((IndicoList <Indico.BusinessObjects.AccessoryBO>)sender).Count - 1].ObjDAL; this.ObjDAL.AccessorysWhereThisIsAccessoryCategory.Remove(obj); } } else { IndicoContext objContext = new IndicoContext(); obj = ((IndicoList <Indico.BusinessObjects.AccessoryBO>)sender)[((IndicoList <Indico.BusinessObjects.AccessoryBO>)sender).Count - 1].SetDAL(objContext.Context); this.ObjDAL.AccessorysWhereThisIsAccessoryCategory.Remove(obj); objContext.SaveChanges(); objContext.Dispose(); } }
void OrdersWhereThisIsMYOBCardFileList_OnBeforeRemove(object sender, EventArgs e) { Indico.DAL.Order obj = null; if (this.Context != null) { if (((IndicoList <Indico.BusinessObjects.OrderBO>)sender).Count > 0) { obj = ((IndicoList <Indico.BusinessObjects.OrderBO>)sender)[((IndicoList <Indico.BusinessObjects.OrderBO>)sender).Count - 1].ObjDAL; this.ObjDAL.OrdersWhereThisIsMYOBCardFile.Remove(obj); } } else { IndicoContext objContext = new IndicoContext(); obj = ((IndicoList <Indico.BusinessObjects.OrderBO>)sender)[((IndicoList <Indico.BusinessObjects.OrderBO>)sender).Count - 1].SetDAL(objContext.Context); this.ObjDAL.OrdersWhereThisIsMYOBCardFile.Remove(obj); objContext.SaveChanges(); objContext.Dispose(); } }
void ArtWorksWhereThisIsPocketTypeList_OnAfterAdd(object sender, EventArgs e) { Indico.DAL.ArtWork obj = null; if (this.Context != null) { if (((IndicoList <Indico.BusinessObjects.ArtWorkBO>)sender).Count > 0) { obj = ((IndicoList <Indico.BusinessObjects.ArtWorkBO>)sender)[((IndicoList <Indico.BusinessObjects.ArtWorkBO>)sender).Count - 1].ObjDAL; this.ObjDAL.ArtWorksWhereThisIsPocketType.Add(obj); } } else { IndicoContext objContext = new IndicoContext(); obj = ((IndicoList <Indico.BusinessObjects.ArtWorkBO>)sender)[((IndicoList <Indico.BusinessObjects.ArtWorkBO>)sender).Count - 1].SetDAL(objContext.Context); this.ObjDAL.ArtWorksWhereThisIsPocketType.Add(obj); objContext.SaveChanges(); objContext.Dispose(); } }
void LabelPriceMarkupsWhereThisIsPriceLevelList_OnBeforeRemove(object sender, EventArgs e) { Indico.DAL.LabelPriceMarkup obj = null; if (this.Context != null) { if (((IndicoList <Indico.BusinessObjects.LabelPriceMarkupBO>)sender).Count > 0) { obj = ((IndicoList <Indico.BusinessObjects.LabelPriceMarkupBO>)sender)[((IndicoList <Indico.BusinessObjects.LabelPriceMarkupBO>)sender).Count - 1].ObjDAL; this.ObjDAL.LabelPriceMarkupsWhereThisIsPriceLevel.Remove(obj); } } else { IndicoContext objContext = new IndicoContext(); obj = ((IndicoList <Indico.BusinessObjects.LabelPriceMarkupBO>)sender)[((IndicoList <Indico.BusinessObjects.LabelPriceMarkupBO>)sender).Count - 1].SetDAL(objContext.Context); this.ObjDAL.LabelPriceMarkupsWhereThisIsPriceLevel.Remove(obj); objContext.SaveChanges(); objContext.Dispose(); } }
void PriceLevelCostsWhereThisIsPriceLevelList_OnAfterAdd(object sender, EventArgs e) { Indico.DAL.PriceLevelCost obj = null; if (this.Context != null) { if (((IndicoList <Indico.BusinessObjects.PriceLevelCostBO>)sender).Count > 0) { obj = ((IndicoList <Indico.BusinessObjects.PriceLevelCostBO>)sender)[((IndicoList <Indico.BusinessObjects.PriceLevelCostBO>)sender).Count - 1].ObjDAL; this.ObjDAL.PriceLevelCostsWhereThisIsPriceLevel.Add(obj); } } else { IndicoContext objContext = new IndicoContext(); obj = ((IndicoList <Indico.BusinessObjects.PriceLevelCostBO>)sender)[((IndicoList <Indico.BusinessObjects.PriceLevelCostBO>)sender).Count - 1].SetDAL(objContext.Context); this.ObjDAL.PriceLevelCostsWhereThisIsPriceLevel.Add(obj); objContext.SaveChanges(); objContext.Dispose(); } }
void WeeklyProductionCapacityDetailssWhereThisIsItemTypeList_OnBeforeRemove(object sender, EventArgs e) { Indico.DAL.WeeklyProductionCapacityDetails obj = null; if (this.Context != null) { if (((IndicoList <Indico.BusinessObjects.WeeklyProductionCapacityDetailsBO>)sender).Count > 0) { obj = ((IndicoList <Indico.BusinessObjects.WeeklyProductionCapacityDetailsBO>)sender)[((IndicoList <Indico.BusinessObjects.WeeklyProductionCapacityDetailsBO>)sender).Count - 1].ObjDAL; this.ObjDAL.WeeklyProductionCapacityDetailssWhereThisIsItemType.Remove(obj); } } else { IndicoContext objContext = new IndicoContext(); obj = ((IndicoList <Indico.BusinessObjects.WeeklyProductionCapacityDetailsBO>)sender)[((IndicoList <Indico.BusinessObjects.WeeklyProductionCapacityDetailsBO>)sender).Count - 1].SetDAL(objContext.Context); this.ObjDAL.WeeklyProductionCapacityDetailssWhereThisIsItemType.Remove(obj); objContext.SaveChanges(); objContext.Dispose(); } }
void SizeChartsWhereThisIsMeasurementLocationList_OnBeforeRemove(object sender, EventArgs e) { Indico.DAL.SizeChart obj = null; if (this.Context != null) { if (((IndicoList <Indico.BusinessObjects.SizeChartBO>)sender).Count > 0) { obj = ((IndicoList <Indico.BusinessObjects.SizeChartBO>)sender)[((IndicoList <Indico.BusinessObjects.SizeChartBO>)sender).Count - 1].ObjDAL; this.ObjDAL.SizeChartsWhereThisIsMeasurementLocation.Remove(obj); } } else { IndicoContext objContext = new IndicoContext(); obj = ((IndicoList <Indico.BusinessObjects.SizeChartBO>)sender)[((IndicoList <Indico.BusinessObjects.SizeChartBO>)sender).Count - 1].SetDAL(objContext.Context); this.ObjDAL.SizeChartsWhereThisIsMeasurementLocation.Remove(obj); objContext.SaveChanges(); objContext.Dispose(); } }
void OrdersWhereThisIsDeliveryOptionList_OnAfterAdd(object sender, EventArgs e) { Indico.DAL.Order obj = null; if (this.Context != null) { if (((IndicoList <Indico.BusinessObjects.OrderBO>)sender).Count > 0) { obj = ((IndicoList <Indico.BusinessObjects.OrderBO>)sender)[((IndicoList <Indico.BusinessObjects.OrderBO>)sender).Count - 1].ObjDAL; this.ObjDAL.OrdersWhereThisIsDeliveryOption.Add(obj); } } else { IndicoContext objContext = new IndicoContext(); obj = ((IndicoList <Indico.BusinessObjects.OrderBO>)sender)[((IndicoList <Indico.BusinessObjects.OrderBO>)sender).Count - 1].SetDAL(objContext.Context); this.ObjDAL.OrdersWhereThisIsDeliveryOption.Add(obj); objContext.SaveChanges(); objContext.Dispose(); } }