Exemple #1
0
 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();
     }
 }
Exemple #2
0
 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();
     }
 }
Exemple #3
0
 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();
     }
 }
Exemple #4
0
 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();
     }
 }
Exemple #5
0
 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();
     }
 }
Exemple #8
0
 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();
     }
 }
Exemple #9
0
 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();
     }
 }
Exemple #10
0
 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();
     }
 }
Exemple #11
0
 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();
     }
 }
Exemple #13
0
 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();
     }
 }