private void DeleteDetail(IList<EPerVacaDescaDet> col, bool filterModified)
        {
            if (col == null)
                return;

            IDOUpdate objDO = new RHDOMnt.PerVacaDescaDet();
            IEnumerable<EPerVacaDescaDet> colSel = null;

            if (filterModified)
            {
                var deleteItems = from itm in col
                                  where itm.EntityState == EntityState.Deleted
                                  select itm;

                colSel = (IEnumerable<EPerVacaDescaDet>)deleteItems;
            }
            else
            {
                var deleteItems = from itm in col
                                  select itm;

                colSel = (IEnumerable<EPerVacaDescaDet>)deleteItems;
            }
            foreach (EPerVacaDescaDet objE in colSel)
                objDO.Delete(objE);
        }
        private void UpdateDetail(IList<EPerVacaDescaDet> col, object[] primKey)
        {
            if (col == null)
                return;

            IDOUpdate objDO = new RHDOMnt.PerVacaDescaDet();

            foreach (EPerVacaDescaDet objE in col)
            {

                object[] objRet = null;

                if (primKey != null)
                {
                    objE.IdVacaDesca = primKey[0].ToString();
                }

                switch (objE.EntityState)
                {

                    case EntityState.Added:
                        objRet = objDO.Insert(objE);
                        break;

                    case EntityState.Modified:
                        if (objE.StAnulado == ConstFlagEstado.DESACTIVADO)
                            objDO.Update(objE);
                        else
                            objDO.Delete(objE);
                        break;

                }

            }
        }