public void Delete() { if (this.Context != null) { if (this.ObjDAL != null && this.ObjDAL.EntityKey != null) { if (this.ObjDAL.EntityState == System.Data.EntityState.Detached) { this.Context.Context.Attach(this.ObjDAL); this.Context.Context.DeleteObject(this.ObjDAL); } else { this.Context.Context.DeleteObject(this.ObjDAL); } } else { Indico.DAL.EmailLogo obj = this.SetDAL(this.Context.Context); this.Context.Context.DeleteObject(obj); } } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.EmailLogo obj = this.SetDAL(objContext.Context); this.Context.Context.DeleteObject(obj); objContext.Context.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToOrderDetailQty(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.OrderDetailQty obj = this.SetDAL(objContext.Context); objContext.Context.AddToOrderDetailQty(obj); objContext.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToPaymentMethod(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.PaymentMethod obj = this.SetDAL(objContext.Context); objContext.Context.AddToPaymentMethod(obj); objContext.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToQuoteStatus(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.QuoteStatus obj = this.SetDAL(objContext.Context); objContext.Context.AddToQuoteStatus(obj); objContext.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToWeeklyProductionCapacityDetails(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.WeeklyProductionCapacityDetails obj = this.SetDAL(objContext.Context); objContext.Context.AddToWeeklyProductionCapacityDetails(obj); objContext.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToMYOBCardFile(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.MYOBCardFile obj = this.SetDAL(objContext.Context); objContext.Context.AddToMYOBCardFile(obj); objContext.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToInvoiceOrder(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.InvoiceOrder obj = this.SetDAL(objContext.Context); objContext.Context.AddToInvoiceOrder(obj); objContext.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToFactoryOrderDetial(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.FactoryOrderDetial obj = this.SetDAL(objContext.Context); objContext.Context.AddToFactoryOrderDetial(obj); objContext.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToProductionLine(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.ProductionLine obj = this.SetDAL(objContext.Context); objContext.Context.AddToProductionLine(obj); objContext.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToCoordinatorEmailAddress(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.CoordinatorEmailAddress obj = this.SetDAL(objContext.Context); objContext.Context.AddToCoordinatorEmailAddress(obj); objContext.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToAcquiredVisulaLayoutName(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.AcquiredVisulaLayoutName obj = this.SetDAL(objContext.Context); objContext.Context.AddToAcquiredVisulaLayoutName(obj); objContext.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToPackingListCartonItem(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.PackingListCartonItem obj = this.SetDAL(objContext.Context); objContext.Context.AddToPackingListCartonItem(obj); objContext.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToCostSheetRemarks(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.CostSheetRemarks obj = this.SetDAL(objContext.Context); objContext.Context.AddToCostSheetRemarks(obj); objContext.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToPatternHistory(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.PatternHistory obj = this.SetDAL(objContext.Context); objContext.Context.AddToPatternHistory(obj); objContext.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToEmailLogo(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.EmailLogo obj = this.SetDAL(objContext.Context); objContext.Context.AddToEmailLogo(obj); objContext.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToDefaultValuesPriceList(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.DefaultValuesPriceList obj = this.SetDAL(objContext.Context); objContext.Context.AddToDefaultValuesPriceList(obj); objContext.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToItemMeasurementGuideImage(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.ItemMeasurementGuideImage obj = this.SetDAL(objContext.Context); objContext.Context.AddToItemMeasurementGuideImage(obj); objContext.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToDistributorPriceLevelCost(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.DistributorPriceLevelCost obj = this.SetDAL(objContext.Context); objContext.Context.AddToDistributorPriceLevelCost(obj); objContext.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToMeasurementLocation(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.MeasurementLocation obj = this.SetDAL(objContext.Context); objContext.Context.AddToMeasurementLocation(obj); objContext.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToVisualLayoutAccessory(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.VisualLayoutAccessory obj = this.SetDAL(objContext.Context); objContext.Context.AddToVisualLayoutAccessory(obj); objContext.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToFabricCodeType(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.FabricCodeType obj = this.SetDAL(objContext.Context); objContext.Context.AddToFabricCodeType(obj); objContext.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToDestinationPort(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.DestinationPort obj = this.SetDAL(objContext.Context); objContext.Context.AddToDestinationPort(obj); objContext.SaveChanges(); objContext.Dispose(); } }
public void Add() { if (this.Context != null) { this.Context.Context.AddToLabelPriceMarkup(this.ObjDAL); } else { IndicoContext objContext = new IndicoContext(); Indico.DAL.LabelPriceMarkup obj = this.SetDAL(objContext.Context); objContext.Context.AddToLabelPriceMarkup(obj); objContext.SaveChanges(); objContext.Dispose(); } }
void PatternOtherCategorysWhereThisIsCategoryList_OnAfterAdd(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.PatternOtherCategorysWhereThisIsCategory.Add(obj); } } else { IndicoContext objContext = new IndicoContext(); obj = ((IndicoList <Indico.BusinessObjects.PatternBO>)sender)[((IndicoList <Indico.BusinessObjects.PatternBO>)sender).Count - 1].SetDAL(objContext.Context); this.ObjDAL.PatternOtherCategorysWhereThisIsCategory.Add(obj); objContext.SaveChanges(); objContext.Dispose(); } }
void DistributorClientAddresssWhereThisIsPortList_OnBeforeRemove(object sender, EventArgs e) { Indico.DAL.DistributorClientAddress obj = null; if (this.Context != null) { if (((IndicoList <Indico.BusinessObjects.DistributorClientAddressBO>)sender).Count > 0) { obj = ((IndicoList <Indico.BusinessObjects.DistributorClientAddressBO>)sender)[((IndicoList <Indico.BusinessObjects.DistributorClientAddressBO>)sender).Count - 1].ObjDAL; this.ObjDAL.DistributorClientAddresssWhereThisIsPort.Remove(obj); } } else { IndicoContext objContext = new IndicoContext(); obj = ((IndicoList <Indico.BusinessObjects.DistributorClientAddressBO>)sender)[((IndicoList <Indico.BusinessObjects.DistributorClientAddressBO>)sender).Count - 1].SetDAL(objContext.Context); this.ObjDAL.DistributorClientAddresssWhereThisIsPort.Remove(obj); objContext.SaveChanges(); objContext.Dispose(); } }
void PackingListsWhereThisIsCartonList_OnBeforeRemove(object sender, EventArgs e) { Indico.DAL.PackingList obj = null; if (this.Context != null) { if (((IndicoList <Indico.BusinessObjects.PackingListBO>)sender).Count > 0) { obj = ((IndicoList <Indico.BusinessObjects.PackingListBO>)sender)[((IndicoList <Indico.BusinessObjects.PackingListBO>)sender).Count - 1].ObjDAL; this.ObjDAL.PackingListsWhereThisIsCarton.Remove(obj); } } else { IndicoContext objContext = new IndicoContext(); obj = ((IndicoList <Indico.BusinessObjects.PackingListBO>)sender)[((IndicoList <Indico.BusinessObjects.PackingListBO>)sender).Count - 1].SetDAL(objContext.Context); this.ObjDAL.PackingListsWhereThisIsCarton.Remove(obj); objContext.SaveChanges(); objContext.Dispose(); } }
void FabricCodesWhereThisIsLandedCurrencyList_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.FabricCodesWhereThisIsLandedCurrency.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.FabricCodesWhereThisIsLandedCurrency.Remove(obj); objContext.SaveChanges(); objContext.Dispose(); } }
void MenuItemsWhereThisIsPageList_OnAfterAdd(object sender, EventArgs e) { Indico.DAL.MenuItem obj = null; if (this.Context != null) { if (((IndicoList <Indico.BusinessObjects.MenuItemBO>)sender).Count > 0) { obj = ((IndicoList <Indico.BusinessObjects.MenuItemBO>)sender)[((IndicoList <Indico.BusinessObjects.MenuItemBO>)sender).Count - 1].ObjDAL; this.ObjDAL.MenuItemsWhereThisIsPage.Add(obj); } } else { IndicoContext objContext = new IndicoContext(); obj = ((IndicoList <Indico.BusinessObjects.MenuItemBO>)sender)[((IndicoList <Indico.BusinessObjects.MenuItemBO>)sender).Count - 1].SetDAL(objContext.Context); this.ObjDAL.MenuItemsWhereThisIsPage.Add(obj); objContext.SaveChanges(); objContext.Dispose(); } }
void VisualLayoutFabricsWhereThisIsFabricCodeTypeList_OnBeforeRemove(object sender, EventArgs e) { Indico.DAL.VisualLayoutFabric obj = null; if (this.Context != null) { if (((IndicoList <Indico.BusinessObjects.VisualLayoutFabricBO>)sender).Count > 0) { obj = ((IndicoList <Indico.BusinessObjects.VisualLayoutFabricBO>)sender)[((IndicoList <Indico.BusinessObjects.VisualLayoutFabricBO>)sender).Count - 1].ObjDAL; this.ObjDAL.VisualLayoutFabricsWhereThisIsFabricCodeType.Remove(obj); } } else { IndicoContext objContext = new IndicoContext(); obj = ((IndicoList <Indico.BusinessObjects.VisualLayoutFabricBO>)sender)[((IndicoList <Indico.BusinessObjects.VisualLayoutFabricBO>)sender).Count - 1].SetDAL(objContext.Context); this.ObjDAL.VisualLayoutFabricsWhereThisIsFabricCodeType.Remove(obj); objContext.SaveChanges(); objContext.Dispose(); } }
void EmbroideryDetailssWhereThisIsFabricTypeList_OnAfterAdd(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.EmbroideryDetailssWhereThisIsFabricType.Add(obj); } } else { IndicoContext objContext = new IndicoContext(); obj = ((IndicoList <Indico.BusinessObjects.EmbroideryDetailsBO>)sender)[((IndicoList <Indico.BusinessObjects.EmbroideryDetailsBO>)sender).Count - 1].SetDAL(objContext.Context); this.ObjDAL.EmbroideryDetailssWhereThisIsFabricType.Add(obj); objContext.SaveChanges(); objContext.Dispose(); } }