コード例 #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);
                    }
                }
            }

            return(blId);
        }