private void UpdateDetailB(IList<EConRemuCampo> col, object[] primKey)
        {
            if (col == null)
            return;

             IDOUpdate objDO = new RHDOMnt.ConRemuCampo();

             foreach (EConRemuCampo objE in col)
             {

            object[] objRet = null;

            if (primKey != null)
            {
               objE.IdConremu = 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;

            }

             }
        }
        private void DeleteDetailB(EConcepRemu entity)
        {
            IDOUpdate objDO = new RHDOMnt.ConRemuCampo();

             if (entity.EntityState == EntityState.Unchanged)
            return;

             EConRemuCampo objE = new EConRemuCampo();
             objE.IdEmpresa = entity.IdEmpresa;
             objE.IdConremu = entity.IdConRemu;

             objDO.Delete(objE);
        }