Beispiel #1
0
        public int SaveImportBL(IBLHeader blHeader)
        {
            int blId       = 0;
            int blFooterId = 0;

            blId = ImportBLDAL.SaveImportBL(blHeader);

            if (blId > 0)
            {
                if (!ReferenceEquals(blHeader.BLFooter, null))
                {
                    foreach (IBLFooter footer in blHeader.BLFooter)
                    {
                        footer.BLID = blId;
                        blFooterId  = ImportBLDAL.SaveImportBLFooter(footer);
                    }
                }
                ImportBLDAL.CheckSaveContainers(blId);
            }

            return(blId);
        }