partial void DeleteScrapDispositionDefectHistory(ScrapDispositionDefectHistory instance);
        public void InsertScrapDispositionDefectHistory(IEnumerable<DispositionTag> tags)
        {
            DispositionDataContext dbDisposition = new DispositionDataContext();

            foreach (var tag in tags)
            {
                var side = GetValidSeatSide(tag.Part.side.Trim());
                ScrapDispositionDefectHistory history = new ScrapDispositionDefectHistory
                {
                    DispositionType = tag.Disposition.Transaction.Trim(),
                    Employee = tag.EmployeeInfo.Name.Trim(),
                    PartNumber = tag.Part.partno.Trim(),
                    Qty = tag.Disposition.Qty,
                    TypeID = tag.Disposition.SeatType.TypeID,
                    SeatPortionID = tag.Disposition.SeatPortion.SeatPortionID,
                    SideID = side.SideID,
                    CommodityID = tag.Disposition.SeatCommodity.CommodityID,
                    DefectID = tag.Disposition.SeatDefect.DefectID,
                    DefectDetailID = tag.Disposition.SeatDefectDetail.DefectDetailID,
                    CompletedOn = DateTime.Now,
                };

                dbDisposition.ScrapDispositionDefectHistories.InsertOnSubmit(history);
            }
            dbDisposition.SubmitChanges();
        }
 partial void InsertScrapDispositionDefectHistory(ScrapDispositionDefectHistory instance);